diff --git a/.circleci/config.yml b/.circleci/config.yml index b40f7d3c8d..fc4816edd1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -126,7 +126,7 @@ jobs: command: | python -m venv venv . venv/bin/activate - pip install black==22.3.0 + pip install black==25.1.0 - run: name: Check formatting with black command: | diff --git a/_plotly_utils/basevalidators.py b/_plotly_utils/basevalidators.py index 3e7bd9fadd..5cc8e6c8c7 100644 --- a/_plotly_utils/basevalidators.py +++ b/_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: see https://plotly.com/python/css-colors/ for a list""".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/_plotly_utils/colors/__init__.py b/_plotly_utils/colors/__init__.py index 794c20d2e5..6c6b819904 100644 --- a/_plotly_utils/colors/__init__.py +++ b/_plotly_utils/colors/__init__.py @@ -73,6 +73,7 @@ Be careful! If you have a lot of unique numbers in your color column you will end up with a colormap that is massive and may slow down graphing performance. """ + import decimal from numbers import Number diff --git a/codegen/__init__.py b/codegen/__init__.py index ffc1525721..d3bb05f2ec 100644 --- a/codegen/__init__.py +++ b/codegen/__init__.py @@ -26,6 +26,10 @@ get_data_validator_instance, ) +# Target Python version for code formatting with Black. +# Must be one of the values listed in pyproject.toml. +BLACK_TARGET_VERSIONS = "py38 py39 py310 py311 py312" + # Import notes # ------------ @@ -85,7 +89,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 +271,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 +329,15 @@ 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: + target_version = [ + f"--target-version={v}" for v in BLACK_TARGET_VERSIONS.split() + ] + subprocess.call(["black", *target_version, validators_pkgdir]) + subprocess.call(["black", *target_version, graph_objs_pkgdir]) + subprocess.call(["black", *target_version, graph_objects_path]) + else: + print("skipping reformatting") if __name__ == "__main__": diff --git a/codegen/compatibility.py b/codegen/compatibility.py index 65baf3860e..d806afa09f 100644 --- a/codegen/compatibility.py +++ b/codegen/compatibility.py @@ -89,7 +89,7 @@ def __init__(self, *args, **kwargs): {depr_msg} \"\"\" warnings.warn(\"\"\"{depr_msg}\"\"\", DeprecationWarning) - super({class_name}, self).__init__(*args, **kwargs)\n\n\n""" + super().__init__(*args, **kwargs)\n\n\n""" ) # Return source string diff --git a/codegen/datatypes.py b/codegen/datatypes.py index 178c777850..4376f32165 100644 --- a/codegen/datatypes.py +++ b/codegen/datatypes.py @@ -2,7 +2,7 @@ import textwrap from io import StringIO -from codegen.utils import PlotlyNode, write_source_py +from codegen.utils import CAVEAT, PlotlyNode, write_source_py deprecated_mapbox_traces = [ @@ -69,11 +69,10 @@ def build_datatype_py(node): """ # Validate inputs - # --------------- assert node.is_compound # Handle template traces - # ---------------------- + # # We want template trace/layout classes like # plotly.graph_objs.layout.template.data.Scatter to map to the # corresponding trace/layout class (e.g. plotly.graph_objs.Scatter). @@ -85,17 +84,15 @@ def build_datatype_py(node): return "from plotly.graph_objs import Layout" # Extract node properties - # ----------------------- undercase = node.name_undercase datatype_class = node.name_datatype_class literal_nodes = [n for n in node.child_literals if n.plotly_name in ["type"]] # Initialze source code buffer - # ---------------------------- buffer = StringIO() + buffer.write(CAVEAT) # Imports - # ------- buffer.write( f"from plotly.basedatatypes " f"import {node.name_base_datatype} as _{node.name_base_datatype}\n" @@ -109,14 +106,13 @@ def build_datatype_py(node): buffer.write(f"import warnings\n") # Write class definition - # ---------------------- buffer.write( f""" class {datatype_class}(_{node.name_base_datatype}):\n""" ) - # ### Layout subplot properties ### + ### Layout subplot properties if datatype_class == "Layout": subplot_nodes = [ node @@ -130,7 +126,7 @@ class {datatype_class}(_{node.name_base_datatype}):\n""" import re _subplotid_prop_re = re.compile( - '^(' + '|'.join(_subplotid_prop_names) + r')(\d+)$') + '^(' + '|'.join(_subplotid_prop_names) + r')(\\d+)$') """ ) @@ -171,17 +167,16 @@ def _subplot_re_match(self, prop): valid_props_list = sorted( [node.name_property for node in subtype_nodes + literal_nodes] ) + # class properties buffer.write( f""" - # class properties - # -------------------- _parent_path_str = '{node.parent_path_str}' _path_str = '{node.path_str}' _valid_props = {{"{'", "'.join(valid_props_list)}"}} """ ) - # ### Property definitions ### + ### Property definitions for subtype_node in subtype_nodes: if subtype_node.is_array_element: prop_type = ( @@ -202,7 +197,7 @@ def _subplot_re_match(self, prop): else: prop_type = get_typing_type(subtype_node.datatype, subtype_node.is_array_ok) - # #### Get property description #### + #### Get property description #### raw_description = subtype_node.description property_description = "\n".join( textwrap.wrap( @@ -213,12 +208,12 @@ def _subplot_re_match(self, prop): ) ) - # # #### Get validator description #### + # #### Get validator description #### validator = subtype_node.get_validator_instance() if validator: validator_description = reindent_validator_description(validator, 4) - # #### Combine to form property docstring #### + #### Combine to form property docstring #### if property_description.strip(): property_docstring = f"""{property_description} @@ -228,12 +223,10 @@ def _subplot_re_match(self, prop): else: property_docstring = property_description - # #### Write get property #### + #### Write get property #### buffer.write( f"""\ - # {subtype_node.name_property} - # {'-' * len(subtype_node.name_property)} @property def {subtype_node.name_property}(self): \"\"\" @@ -246,7 +239,7 @@ def {subtype_node.name_property}(self): return self['{subtype_node.name_property}']""" ) - # #### Write set property #### + #### Write set property #### buffer.write( f""" @@ -255,24 +248,20 @@ def {subtype_node.name_property}(self, val): self['{subtype_node.name_property}'] = val\n""" ) - # ### Literals ### + ### Literals for literal_node in literal_nodes: buffer.write( f"""\ - # {literal_node.name_property} - # {'-' * len(literal_node.name_property)} @property def {literal_node.name_property}(self): return self._props['{literal_node.name_property}']\n""" ) - # ### Private properties descriptions ### + ### Private properties descriptions valid_props = {node.name_property for node in subtype_nodes} buffer.write( f""" - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return \"\"\"\\""" @@ -294,7 +283,7 @@ def _prop_descriptions(self): _mapped_properties = {repr(mapped_properties)}""" ) - # ### Constructor ### + ### Constructor buffer.write( f""" def __init__(self""" @@ -302,7 +291,7 @@ def __init__(self""" add_constructor_params(buffer, subtype_nodes, prepend_extras=["arg"]) - # ### Constructor Docstring ### + ### Constructor Docstring header = f"Construct a new {datatype_class} object" class_name = ( f"plotly.graph_objs" f"{node.parent_dotpath_str}." f"{node.name_datatype_class}" @@ -326,8 +315,7 @@ def __init__(self""" buffer.write( f""" - super({datatype_class}, self).__init__('{node.name_property}') - + super().__init__('{node.name_property}') if '_parent' in kwargs: self._parent = kwargs['_parent'] return @@ -335,18 +323,17 @@ def __init__(self""" ) if datatype_class == "Layout": - buffer.write( - f""" # Override _valid_props for instance so that instance can mutate set # to support subplot properties (e.g. xaxis2) + buffer.write( + f""" self._valid_props = {{"{'", "'.join(valid_props_list)}"}} """ ) + # Validate arg buffer.write( f""" - # Validate arg - # ------------ if arg is None: arg = {{}} elif isinstance(arg, self.__class__): @@ -359,53 +346,34 @@ def __init__(self""" constructor must be a dict or an instance of :class:`{class_name}`\"\"\") - # Handle skip_invalid - # ------------------- self._skip_invalid = kwargs.pop('skip_invalid', False) self._validate = kwargs.pop('_validate', True) """ ) - buffer.write( - f""" - - # Populate data dict with properties - # ----------------------------------""" - ) + buffer.write("\n\n") for subtype_node in subtype_nodes: 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:""" - ) if datatype_class == "Template" and name_prop == "data": buffer.write( - """ - # Template.data contains a 'scattermapbox' key, which causes a - # go.Scattermapbox trace object to be created during validation. - # In order to prevent false deprecation warnings from surfacing, - # we suppress deprecation warnings for this line only. - with warnings.catch_warnings(): - warnings.filterwarnings("ignore", category=DeprecationWarning) - self["data"] = _v""" + f""" + # Template.data contains a 'scattermapbox' key, which causes a + # go.Scattermapbox trace object to be created during validation. + # In order to prevent false deprecation warnings from surfacing, + # we suppress deprecation warnings for this line only. + with warnings.catch_warnings(): + warnings.filterwarnings("ignore", category=DeprecationWarning) + self._set_property('{name_prop}', arg, {name_prop})""" ) else: buffer.write( f""" - self['{name_prop}'] = _v""" + self._set_property('{name_prop}', arg, {name_prop})""" ) - # ### Literals ### + ### Literals if literal_nodes: - buffer.write( - f""" - - # Read-only literals - # ------------------ -""" - ) + buffer.write("\n\n") for literal_node in literal_nodes: lit_name = literal_node.name_property lit_val = repr(literal_node.node_data) @@ -417,13 +385,7 @@ def __init__(self""" buffer.write( f""" - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False """ ) @@ -442,7 +404,6 @@ def __init__(self""" ) # Return source string - # -------------------- return buffer.getvalue() @@ -549,11 +510,9 @@ def add_docstring( """ # Validate inputs - # --------------- assert node.is_compound # Build wrapped description - # ------------------------- node_description = node.description if node_description: description_lines = textwrap.wrap( @@ -566,7 +525,6 @@ def add_docstring( node_description = "\n".join(description_lines) + "\n\n" # Write header and description - # ---------------------------- buffer.write( f""" \"\"\" @@ -577,7 +535,7 @@ def add_docstring( ) # Write parameter descriptions - # ---------------------------- + # Write any prepend extras for p, v in prepend_extras: v_wrapped = "\n".join( @@ -616,7 +574,6 @@ def add_docstring( ) # Write return block and close docstring - # -------------------------------------- buffer.write( f""" @@ -645,16 +602,13 @@ def write_datatype_py(outdir, node): """ # Build file path - # --------------- # filepath = opath.join(outdir, "graph_objs", *node.parent_path_parts, "__init__.py") filepath = opath.join( outdir, "graph_objs", *node.parent_path_parts, "_" + node.name_undercase + ".py" ) # Generate source code - # -------------------- datatype_source = build_datatype_py(node) # Write file - # ---------- write_source_py(datatype_source, filepath, leading_newlines=2) diff --git a/codegen/figure.py b/codegen/figure.py index a77fa0678f..c412104af0 100644 --- a/codegen/figure.py +++ b/codegen/figure.py @@ -6,7 +6,7 @@ add_constructor_params, add_docstring, ) -from codegen.utils import write_source_py +from codegen.utils import CAVEAT, write_source_py import inflect from plotly.basedatatypes import BaseFigure @@ -55,6 +55,7 @@ def build_figure_py( # Initialize source code buffer # ----------------------------- buffer = StringIO() + buffer.write(CAVEAT) # Get list of trace type nodes # ---------------------------- @@ -108,9 +109,7 @@ def __init__(self, data=None, layout=None, if a property in the specification of data, layout, or frames is invalid AND skip_invalid is False \"\"\" - super({fig_classname} ,self).__init__(data, layout, - frames, skip_invalid, - **kwargs) + super().__init__(data, layout, frames, skip_invalid, **kwargs) """ ) @@ -121,7 +120,7 @@ def {wrapped_name}(self, {full_params}) -> "{fig_classname}": ''' {getattr(BaseFigure, wrapped_name).__doc__} ''' - return super({fig_classname}, self).{wrapped_name}({param_list}) + return super().{wrapped_name}({param_list}) """ ) diff --git a/codegen/resources/plot-schema.json b/codegen/resources/plot-schema.json index 6aa77cf333..fe1eb67d81 100644 --- a/codegen/resources/plot-schema.json +++ b/codegen/resources/plot-schema.json @@ -761,7 +761,7 @@ "description": "Sets the annotation text font.", "editType": "calc+arraydraw", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc+arraydraw", "noBlank": true, "strict": true, @@ -869,7 +869,7 @@ "description": "Sets the hover label text font. By default uses the global hover font and size, with color from `hoverlabel.bordercolor`.", "editType": "arraydraw", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "arraydraw", "noBlank": true, "strict": true, @@ -1415,7 +1415,7 @@ "description": "Sets the color bar's tick label font", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -1661,7 +1661,7 @@ "description": "Sets this color bar's title font.", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -2000,7 +2000,7 @@ "description": "Sets the global font. Note that fonts used in traces and other layout components inherit from the global font.", "editType": "calc", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "dflt": "\"Open Sans\", verdana, arial, sans-serif", "editType": "calc", "noBlank": true, @@ -2840,7 +2840,7 @@ "description": "Sets the default hover label font used by all traces on the graph.", "editType": "none", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "dflt": "Arial, sans-serif", "editType": "none", "noBlank": true, @@ -2931,7 +2931,7 @@ "description": "Sets the font for group titles in hover (unified modes). Defaults to `hoverlabel.font`.", "editType": "none", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -3216,7 +3216,7 @@ "description": "Sets the font used to text the legend items.", "editType": "legend", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "legend", "noBlank": true, "strict": true, @@ -3315,7 +3315,7 @@ "description": "Sets the font for group titles in legend. Defaults to `legend.font` with its size increased about 10%.", "editType": "legend", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "legend", "noBlank": true, "strict": true, @@ -3463,7 +3463,7 @@ "description": "Sets this legend's title font. Defaults to `legend.font` with its size increased about 20%.", "editType": "legend", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "legend", "noBlank": true, "strict": true, @@ -3933,7 +3933,7 @@ "description": "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*.", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "dflt": "Open Sans Regular, Arial Unicode MS Regular", "editType": "plot", "noBlank": true, @@ -4339,7 +4339,7 @@ "description": "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*.", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "dflt": "Open Sans Regular, Arial Unicode MS Regular", "editType": "plot", "noBlank": true, @@ -4675,7 +4675,7 @@ "description": "Sets the new shape label text font.", "editType": "none", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -4857,7 +4857,7 @@ "description": "Sets this legend group's title font.", "editType": "none", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -5306,7 +5306,7 @@ "description": "Sets the tick font.", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -5919,7 +5919,7 @@ "valType": "info_array" }, "rangemode": { - "description": "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).", + "description": "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).", "dflt": "tozero", "editType": "calc", "valType": "enumerated", @@ -6028,7 +6028,7 @@ "description": "Sets the tick font.", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -6245,7 +6245,7 @@ "description": "Sets this axis' title font.", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "ticks", "noBlank": true, "strict": true, @@ -6494,7 +6494,7 @@ "description": "Sets the annotation text font.", "editType": "calc", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -6602,7 +6602,7 @@ "description": "Sets the hover label text font. By default uses the global hover font and size, with color from `hoverlabel.bordercolor`.", "editType": "calc", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -7325,7 +7325,7 @@ "valType": "info_array" }, "rangemode": { - "description": "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.", + "description": "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.", "dflt": "normal", "editType": "plot", "valType": "enumerated", @@ -7460,7 +7460,7 @@ "description": "Sets the tick font.", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -7670,7 +7670,7 @@ "description": "Sets this axis' title font.", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -8064,7 +8064,7 @@ "valType": "info_array" }, "rangemode": { - "description": "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.", + "description": "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.", "dflt": "normal", "editType": "plot", "valType": "enumerated", @@ -8199,7 +8199,7 @@ "description": "Sets the tick font.", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -8409,7 +8409,7 @@ "description": "Sets this axis' title font.", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -8803,7 +8803,7 @@ "valType": "info_array" }, "rangemode": { - "description": "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.", + "description": "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.", "dflt": "normal", "editType": "plot", "valType": "enumerated", @@ -8938,7 +8938,7 @@ "description": "Sets the tick font.", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -9148,7 +9148,7 @@ "description": "Sets this axis' title font.", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -9443,7 +9443,7 @@ "description": "Sets the shape label text font.", "editType": "calc+arraydraw", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc+arraydraw", "noBlank": true, "strict": true, @@ -9625,7 +9625,7 @@ "description": "Sets this legend group's title font.", "editType": "calc+arraydraw", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc+arraydraw", "noBlank": true, "strict": true, @@ -9964,7 +9964,7 @@ "description": "Sets the font of the current value label text.", "editType": "arraydraw", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "arraydraw", "noBlank": true, "strict": true, @@ -10089,7 +10089,7 @@ "description": "Sets the font of the slider step labels.", "editType": "arraydraw", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "arraydraw", "noBlank": true, "strict": true, @@ -10633,7 +10633,7 @@ "description": "Sets the tick font.", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -10916,7 +10916,7 @@ "description": "Sets the tick font.", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -11281,7 +11281,7 @@ "description": "Sets the tick font.", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -11498,7 +11498,7 @@ "description": "Sets this axis' title font.", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -11794,7 +11794,7 @@ "description": "Sets the tick font.", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -12011,7 +12011,7 @@ "description": "Sets this axis' title font.", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -12313,7 +12313,7 @@ "description": "Sets the tick font.", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -12530,7 +12530,7 @@ "description": "Sets this axis' title font.", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -12719,7 +12719,7 @@ "description": "Sets the title font.", "editType": "layoutstyle", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "layoutstyle", "noBlank": true, "strict": true, @@ -12840,7 +12840,7 @@ "description": "Sets the subtitle font.", "editType": "layoutstyle", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "layoutstyle", "noBlank": true, "strict": true, @@ -13228,7 +13228,7 @@ "description": "Sets the font of the update menu button text.", "editType": "arraydraw", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "arraydraw", "noBlank": true, "strict": true, @@ -14032,7 +14032,7 @@ "role": "object" }, "rangemode": { - "description": "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.", + "description": "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.", "dflt": "normal", "editType": "plot", "valType": "enumerated", @@ -14139,7 +14139,7 @@ "description": "Sets the font of the range selector button text.", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -14540,7 +14540,7 @@ "description": "Sets the tick font.", "editType": "ticks", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "ticks", "noBlank": true, "strict": true, @@ -14829,7 +14829,7 @@ "description": "Sets this axis' title font.", "editType": "ticks", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "ticks", "noBlank": true, "strict": true, @@ -15583,7 +15583,7 @@ "role": "object" }, "rangemode": { - "description": "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.", + "description": "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.", "dflt": "normal", "editType": "plot", "valType": "enumerated", @@ -15774,7 +15774,7 @@ "description": "Sets the tick font.", "editType": "ticks", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "ticks", "noBlank": true, "strict": true, @@ -16063,7 +16063,7 @@ "description": "Sets this axis' title font.", "editType": "ticks", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "ticks", "noBlank": true, "strict": true, @@ -16323,7 +16323,7 @@ "valType": "integer" }, "type": { - "description": "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`.", + "description": "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`.", "editType": "calc", "valType": "enumerated", "values": [ @@ -16412,7 +16412,7 @@ "valType": "integer" }, "type": { - "description": "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`.", + "description": "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`.", "editType": "calc", "valType": "enumerated", "values": [ @@ -16528,7 +16528,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -16732,7 +16732,7 @@ "editType": "calc", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -16882,7 +16882,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -17233,7 +17233,7 @@ "description": "Sets the color bar's tick label font", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -17479,7 +17479,7 @@ "description": "Sets this color bar's title font.", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -17939,7 +17939,7 @@ "editType": "calc", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -18154,7 +18154,7 @@ "editType": "calc", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -18716,7 +18716,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -18915,7 +18915,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -19266,7 +19266,7 @@ "description": "Sets the color bar's tick label font", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -19512,7 +19512,7 @@ "description": "Sets this color bar's title font.", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -20287,7 +20287,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -20503,7 +20503,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -21824,7 +21824,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -22043,7 +22043,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -22654,7 +22654,7 @@ "valType": "info_array" }, "rangemode": { - "description": "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.", + "description": "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.", "dflt": "normal", "editType": "calc", "valType": "enumerated", @@ -22775,7 +22775,7 @@ "description": "Sets the tick font.", "editType": "calc", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -22959,7 +22959,7 @@ "description": "Sets this axis' title font.", "editType": "calc", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -23325,7 +23325,7 @@ "valType": "info_array" }, "rangemode": { - "description": "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.", + "description": "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.", "dflt": "normal", "editType": "calc", "valType": "enumerated", @@ -23446,7 +23446,7 @@ "description": "Sets the tick font.", "editType": "calc", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -23630,7 +23630,7 @@ "description": "Sets this axis' title font.", "editType": "calc", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -23791,7 +23791,7 @@ "description": "The default font used for axis & tick labels on this carpet", "editType": "calc", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "dflt": "\"Open Sans\", verdana, arial, sans-serif", "editType": "calc", "noBlank": true, @@ -23901,7 +23901,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -24336,7 +24336,7 @@ "description": "Sets the color bar's tick label font", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -24582,7 +24582,7 @@ "description": "Sets this color bar's title font.", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -24860,7 +24860,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -25059,7 +25059,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -25623,7 +25623,7 @@ "description": "Sets the color bar's tick label font", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -25869,7 +25869,7 @@ "description": "Sets this color bar's title font.", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -26141,7 +26141,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -26340,7 +26340,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -26900,7 +26900,7 @@ "description": "Sets the color bar's tick label font", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -27146,7 +27146,7 @@ "description": "Sets this color bar's title font.", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -27418,7 +27418,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -27617,7 +27617,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -28216,7 +28216,7 @@ "description": "Sets the color bar's tick label font", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -28462,7 +28462,7 @@ "description": "Sets this color bar's title font.", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -28728,7 +28728,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -28927,7 +28927,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -29561,7 +29561,7 @@ "description": "Sets the color bar's tick label font", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -29807,7 +29807,7 @@ "description": "Sets this color bar's title font.", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -30019,7 +30019,7 @@ "description": "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`.", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -30289,7 +30289,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -30492,7 +30492,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -30712,7 +30712,7 @@ "description": "For this trace it only has an effect if `coloring` is set to *heatmap*. Sets the text font.", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -31378,7 +31378,7 @@ "description": "Sets the color bar's tick label font", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -31624,7 +31624,7 @@ "description": "Sets this color bar's title font.", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -31830,7 +31830,7 @@ "description": "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`.", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -32062,7 +32062,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -32604,7 +32604,7 @@ "description": "Sets the color bar's tick label font", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -32850,7 +32850,7 @@ "description": "Sets this color bar's title font.", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -33112,7 +33112,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -33321,7 +33321,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -33819,7 +33819,7 @@ "description": "Sets the color bar's tick label font", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -34065,7 +34065,7 @@ "description": "Sets this color bar's title font.", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -34327,7 +34327,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -34536,7 +34536,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -34992,7 +34992,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -35195,7 +35195,7 @@ "editType": "calc", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -35345,7 +35345,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -35696,7 +35696,7 @@ "description": "Sets the color bar's tick label font", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -35942,7 +35942,7 @@ "description": "Sets this color bar's title font.", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -36298,7 +36298,7 @@ "editType": "calc", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -36484,7 +36484,7 @@ "editType": "calc", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -37020,7 +37020,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -37212,7 +37212,7 @@ "editType": "plot", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -37378,7 +37378,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -37690,7 +37690,7 @@ "editType": "plot", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -37882,7 +37882,7 @@ "editType": "plot", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -38309,7 +38309,7 @@ "description": "Sets the color bar's tick label font", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -38555,7 +38555,7 @@ "description": "Sets this color bar's title font.", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -38840,7 +38840,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -39043,7 +39043,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -39219,7 +39219,7 @@ "description": "Sets the text font.", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -39770,7 +39770,7 @@ "valType": "integer" }, "type": { - "description": "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`.", + "description": "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`.", "editType": "calc", "valType": "enumerated", "values": [ @@ -39859,7 +39859,7 @@ "valType": "integer" }, "type": { - "description": "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`.", + "description": "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`.", "editType": "calc", "valType": "enumerated", "values": [ @@ -40001,7 +40001,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -40197,7 +40197,7 @@ "description": "Sets the font used for `text` lying inside the bar.", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -40300,7 +40300,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -40651,7 +40651,7 @@ "description": "Sets the color bar's tick label font", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -40897,7 +40897,7 @@ "description": "Sets this color bar's title font.", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -41351,7 +41351,7 @@ "description": "Sets the font used for `text` lying outside the bar.", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -41512,7 +41512,7 @@ "description": "Sets the text font.", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -42097,7 +42097,7 @@ "description": "Sets the color bar's tick label font", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -42343,7 +42343,7 @@ "description": "Sets this color bar's title font.", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -42631,7 +42631,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -42818,7 +42818,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -43017,7 +43017,7 @@ "description": "Sets the text font.", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -43595,7 +43595,7 @@ "description": "Sets the color bar's tick label font", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -43841,7 +43841,7 @@ "description": "Sets this color bar's title font.", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -44048,7 +44048,7 @@ "description": "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`.", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -44321,7 +44321,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -44508,7 +44508,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -44752,7 +44752,7 @@ "description": "For this trace it only has an effect if `coloring` is set to *heatmap*. Sets the text font.", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -45247,7 +45247,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -45440,7 +45440,7 @@ "editType": "plot", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -45605,7 +45605,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -45956,7 +45956,7 @@ "description": "Sets the color bar's tick label font", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -46202,7 +46202,7 @@ "description": "Sets this color bar's title font.", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -46566,7 +46566,7 @@ "editType": "plot", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -46745,7 +46745,7 @@ "editType": "plot", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -46941,7 +46941,7 @@ "editType": "plot", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -47322,7 +47322,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -47513,7 +47513,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -47851,7 +47851,7 @@ "description": "Set the font used to display the delta", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -48191,7 +48191,7 @@ "description": "Sets the color bar's tick label font", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -48600,7 +48600,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -48738,7 +48738,7 @@ "description": "Set the font used to display main number", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -48878,7 +48878,7 @@ "description": "Set the font used to display the title", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -49310,7 +49310,7 @@ "description": "Sets the color bar's tick label font", "editType": "calc", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -49556,7 +49556,7 @@ "description": "Sets this color bar's title font.", "editType": "calc", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -49848,7 +49848,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -50057,7 +50057,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -50830,7 +50830,7 @@ "description": "Sets the color bar's tick label font", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -51076,7 +51076,7 @@ "description": "Sets this color bar's title font.", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -51389,7 +51389,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -51638,7 +51638,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -52216,7 +52216,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -52444,7 +52444,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -52990,7 +52990,7 @@ "description": "Sets the font for the `dimension` labels.", "editType": "calc", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -53081,7 +53081,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -53426,7 +53426,7 @@ "description": "Sets the color bar's tick label font", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -53672,7 +53672,7 @@ "description": "Sets this color bar's title font.", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -53933,7 +53933,7 @@ "description": "Sets the font for the `category` labels.", "editType": "calc", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -54251,7 +54251,7 @@ "description": "Sets the font for the `dimension` labels.", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -54358,7 +54358,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -54709,7 +54709,7 @@ "description": "Sets the color bar's tick label font", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -54955,7 +54955,7 @@ "description": "Sets this color bar's title font.", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -55240,7 +55240,7 @@ "description": "Sets the font for the `dimension` range values.", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -55348,7 +55348,7 @@ "description": "Sets the font for the `dimension` tick values.", "editType": "plot", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -55672,7 +55672,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -55864,7 +55864,7 @@ "editType": "plot", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -56042,7 +56042,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -56318,7 +56318,7 @@ "editType": "plot", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -56523,7 +56523,7 @@ "editType": "plot", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -56717,7 +56717,7 @@ "editType": "plot", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -57091,7 +57091,7 @@ "editType": "calc", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -57260,7 +57260,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -57525,7 +57525,7 @@ "editType": "calc", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -57890,7 +57890,7 @@ "editType": "calc", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -58167,7 +58167,7 @@ "description": "Sets the font for node labels", "editType": "calc", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -58393,7 +58393,7 @@ "valType": "integer" }, "type": { - "description": "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`.", + "description": "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`.", "editType": "calc", "valType": "enumerated", "values": [ @@ -58482,7 +58482,7 @@ "valType": "integer" }, "type": { - "description": "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`.", + "description": "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`.", "editType": "calc", "valType": "enumerated", "values": [ @@ -58754,7 +58754,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -58963,7 +58963,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -59412,7 +59412,7 @@ "description": "Sets the color bar's tick label font", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -59658,7 +59658,7 @@ "description": "Sets this color bar's title font.", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -60700,7 +60700,7 @@ "editType": "calc", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -61194,7 +61194,7 @@ "valType": "integer" }, "type": { - "description": "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`.", + "description": "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`.", "editType": "calc", "valType": "enumerated", "values": [ @@ -61287,7 +61287,7 @@ "valType": "integer" }, "type": { - "description": "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`.", + "description": "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`.", "editType": "calc", "valType": "enumerated", "values": [ @@ -61376,7 +61376,7 @@ "valType": "integer" }, "type": { - "description": "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`.", + "description": "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`.", "editType": "calc", "valType": "enumerated", "values": [ @@ -61492,7 +61492,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -61691,7 +61691,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -62042,7 +62042,7 @@ "description": "Sets the color bar's tick label font", "editType": "calc", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -62288,7 +62288,7 @@ "description": "Sets this color bar's title font.", "editType": "calc", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -62751,7 +62751,7 @@ "description": "Sets the color bar's tick label font", "editType": "calc", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -62997,7 +62997,7 @@ "description": "Sets this color bar's title font.", "editType": "calc", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -63528,7 +63528,7 @@ "editType": "calc", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -63936,7 +63936,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -64144,7 +64144,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -64578,7 +64578,7 @@ "description": "Sets the color bar's tick label font", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -64824,7 +64824,7 @@ "description": "Sets this color bar's title font.", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -65831,7 +65831,7 @@ "editType": "calc", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -66220,7 +66220,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -66429,7 +66429,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -66865,7 +66865,7 @@ "description": "Sets the color bar's tick label font", "editType": "calc", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -67111,7 +67111,7 @@ "description": "Sets this color bar's title font.", "editType": "calc", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -68111,7 +68111,7 @@ "editType": "calc", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -68437,7 +68437,7 @@ "valType": "integer" }, "type": { - "description": "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`.", + "description": "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`.", "editType": "calc", "valType": "enumerated", "values": [ @@ -68526,7 +68526,7 @@ "valType": "integer" }, "type": { - "description": "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`.", + "description": "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`.", "editType": "calc", "valType": "enumerated", "values": [ @@ -68662,7 +68662,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -68861,7 +68861,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -69267,7 +69267,7 @@ "description": "Sets the color bar's tick label font", "editType": "calc", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -69513,7 +69513,7 @@ "description": "Sets this color bar's title font.", "editType": "calc", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -70466,7 +70466,7 @@ "editType": "calc", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -70985,7 +70985,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -71194,7 +71194,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -71589,7 +71589,7 @@ "description": "Sets the color bar's tick label font", "editType": "calc", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -71835,7 +71835,7 @@ "description": "Sets this color bar's title font.", "editType": "calc", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -72203,7 +72203,7 @@ "description": "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*.", "editType": "calc", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "dflt": "Open Sans Regular, Arial Unicode MS Regular", "editType": "calc", "noBlank": true, @@ -72522,7 +72522,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -72731,7 +72731,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -73126,7 +73126,7 @@ "description": "Sets the color bar's tick label font", "editType": "calc", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -73372,7 +73372,7 @@ "description": "Sets this color bar's title font.", "editType": "calc", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -73740,7 +73740,7 @@ "description": "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*.", "editType": "calc", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "dflt": "Open Sans Regular, Arial Unicode MS Regular", "editType": "calc", "noBlank": true, @@ -74004,7 +74004,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -74212,7 +74212,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -74646,7 +74646,7 @@ "description": "Sets the color bar's tick label font", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -74892,7 +74892,7 @@ "description": "Sets this color bar's title font.", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -75920,7 +75920,7 @@ "editType": "calc", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -76314,7 +76314,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -76513,7 +76513,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -76906,7 +76906,7 @@ "description": "Sets the color bar's tick label font", "editType": "calc", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -77152,7 +77152,7 @@ "description": "Sets this color bar's title font.", "editType": "calc", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -78127,7 +78127,7 @@ "editType": "calc", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -78458,7 +78458,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -78676,7 +78676,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -79110,7 +79110,7 @@ "description": "Sets the color bar's tick label font", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -79356,7 +79356,7 @@ "description": "Sets this color bar's title font.", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -80378,7 +80378,7 @@ "editType": "calc", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -80767,7 +80767,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -80975,7 +80975,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -81409,7 +81409,7 @@ "description": "Sets the color bar's tick label font", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -81655,7 +81655,7 @@ "description": "Sets this color bar's title font.", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -82675,7 +82675,7 @@ "editType": "calc", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -83077,7 +83077,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -83276,7 +83276,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -83639,7 +83639,7 @@ "description": "Sets the color bar's tick label font", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -83885,7 +83885,7 @@ "description": "Sets this color bar's title font.", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -85160,7 +85160,7 @@ "description": "Sets the color bar's tick label font", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -85406,7 +85406,7 @@ "description": "Sets this color bar's title font.", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -85673,7 +85673,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -85866,7 +85866,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -86484,7 +86484,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -86677,7 +86677,7 @@ "editType": "plot", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -86854,7 +86854,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -87205,7 +87205,7 @@ "description": "Sets the color bar's tick label font", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -87451,7 +87451,7 @@ "description": "Sets this color bar's title font.", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -87815,7 +87815,7 @@ "editType": "plot", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -88014,7 +88014,7 @@ "editType": "plot", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -88475,7 +88475,7 @@ "description": "Sets the color bar's tick label font", "editType": "calc", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -88721,7 +88721,7 @@ "description": "Sets this color bar's title font.", "editType": "calc", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -89272,7 +89272,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -89471,7 +89471,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -89944,7 +89944,7 @@ "editType": "calc", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -90299,7 +90299,7 @@ "editType": "calc", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -90587,7 +90587,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -90756,7 +90756,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -91103,7 +91103,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -91296,7 +91296,7 @@ "editType": "plot", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -91450,7 +91450,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -91801,7 +91801,7 @@ "description": "Sets the color bar's tick label font", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -92047,7 +92047,7 @@ "description": "Sets this color bar's title font.", "editType": "colorbars", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "colorbars", "noBlank": true, "strict": true, @@ -92456,7 +92456,7 @@ "editType": "plot", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -92635,7 +92635,7 @@ "editType": "plot", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -92831,7 +92831,7 @@ "editType": "plot", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "plot", "noBlank": true, "strict": true, @@ -93253,7 +93253,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -93473,7 +93473,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -94829,7 +94829,7 @@ "description": "Sets the color bar's tick label font", "editType": "calc", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -95075,7 +95075,7 @@ "description": "Sets this color bar's title font.", "editType": "calc", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -95367,7 +95367,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -95576,7 +95576,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -96318,7 +96318,7 @@ "editType": "none", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "none", "noBlank": true, "strict": true, @@ -96553,7 +96553,7 @@ "editType": "calc", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -96703,7 +96703,7 @@ "description": "Sets this legend group's title font.", "editType": "style", "family": { - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "style", "noBlank": true, "strict": true, @@ -96881,7 +96881,7 @@ "editType": "calc", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, @@ -97067,7 +97067,7 @@ "editType": "calc", "family": { "arrayOk": true, - "description": "HTML font family - the typeface that will be applied by the web browser. The web browser will only be able to apply a font if it is available on the system which it operates. Provide multiple font families, separated by commas, to indicate the preference in which to apply fonts if they aren't available on the system. The Chart Studio Cloud (at https://chart-studio.plotly.com or on-premise) generates images on a server, where only a select number of fonts are installed and supported. These include *Arial*, *Balto*, *Courier New*, *Droid Sans*, *Droid Serif*, *Droid Sans Mono*, *Gravitas One*, *Old Standard TT*, *Open Sans*, *Overpass*, *PT Sans Narrow*, *Raleway*, *Times New Roman*.", + "description": "HTML font family - the typeface that will be applied by the web browser. The web browser can only apply a font if it is available on the system where it runs. Provide multiple font families, separated by commas, to indicate the order in which to apply fonts if they aren't available.", "editType": "calc", "noBlank": true, "strict": true, diff --git a/codegen/utils.py b/codegen/utils.py index 087e3d683b..8c68d017c0 100644 --- a/codegen/utils.py +++ b/codegen/utils.py @@ -8,6 +8,13 @@ import re import errno +CAVEAT = """ + +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + +""" + # Source code utilities # ===================== @@ -75,16 +82,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} """ @@ -126,14 +129,14 @@ def write_init_py(pkg_root, path_parts, rel_modules=(), rel_classes=(), init_ext def format_description(desc): # Remove surrounding *s from numbers - desc = re.sub("(^|[\s(,.:])\*([\d.]+)\*([\s),.:]|$)", r"\1\2\3", desc) + desc = re.sub(r"(^|[\s(,.:])\*([\d.]+)\*([\s),.:]|$)", r"\1\2\3", desc) # replace *true* with True desc = desc.replace("*true*", "True") desc = desc.replace("*false*", "False") # Replace *word* with "word" - desc = re.sub("(^|[\s(,.:])\*(\S+)\*([\s),.:]|$)", r'\1"\2"\3', desc) + desc = re.sub(r"(^|[\s(,.:])\*(\S+)\*([\s),.:]|$)", r'\1"\2"\3', desc) # Special case strings that don't satisfy regex above other_strings = [ @@ -456,9 +459,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/codegen/validators.py b/codegen/validators.py index 6867e2fd3a..cad1188a9e 100644 --- a/codegen/validators.py +++ b/codegen/validators.py @@ -2,7 +2,7 @@ from io import StringIO import _plotly_utils.basevalidators -from codegen.utils import PlotlyNode, TraceNode, write_source_py +from codegen.utils import CAVEAT, PlotlyNode, TraceNode, write_source_py def build_validator_py(node: PlotlyNode): @@ -24,15 +24,16 @@ def build_validator_py(node: PlotlyNode): # --------------- assert node.is_datatype - # Initialize source code buffer - # ----------------------------- + # Initialize + import_alias = "_bv" buffer = StringIO() + buffer.write(CAVEAT) # 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 +42,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):""" @@ -54,8 +55,7 @@ def __init__(self, plotly_name={params['plotly_name']}, # ### Write constructor ### buffer.write( f""" - super({class_name}, self).__init__(plotly_name=plotly_name, - parent_name=parent_name""" + super().__init__(plotly_name, parent_name""" ) # Write out remaining constructor parameters @@ -198,10 +198,7 @@ def __init__(self, plotly_name={params['plotly_name']}, parent_name={params['parent_name']}, **kwargs): - super(DataValidator, self).__init__(class_strs_map={params['class_strs_map']}, - plotly_name=plotly_name, - parent_name=parent_name, - **kwargs)""" + super().__init__({params['class_strs_map']}, plotly_name, parent_name, **kwargs)""" ) return buffer.getvalue() diff --git a/commands.py b/commands.py index 9c529e87e9..3d9977bdd9 100644 --- a/commands.py +++ b/commands.py @@ -1,31 +1,31 @@ +from distutils import log +import json import os -import sys -import time import platform -import json import shutil - from subprocess import check_call -from distutils import log +import sys +import time -project_root = os.path.dirname(os.path.abspath(__file__)) -node_root = os.path.join(project_root, "js") -is_repo = os.path.exists(os.path.join(project_root, ".git")) -node_modules = os.path.join(node_root, "node_modules") -targets = [ - os.path.join(project_root, "plotly", "package_data", "widgetbundle.js"), +USAGE = "usage: python commands.py [updateplotlyjsdev | updateplotlyjs | codegen]" +PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__)) +NODE_ROOT = os.path.join(PROJECT_ROOT, "js") +NODE_MODULES = os.path.join(NODE_ROOT, "node_modules") +TARGETS = [ + os.path.join(PROJECT_ROOT, "plotly", "package_data", "widgetbundle.js"), ] -npm_path = os.pathsep.join( +NPM_PATH = os.pathsep.join( [ - os.path.join(node_root, "node_modules", ".bin"), + os.path.join(NODE_ROOT, "node_modules", ".bin"), os.environ.get("PATH", os.defpath), ] ) + # Load plotly.js version from js/package.json def plotly_js_version(): - path = os.path.join(project_root, "js", "package.json") + path = os.path.join(PROJECT_ROOT, "js", "package.json") with open(path, "rt") as f: package_json = json.load(f) version = package_json["dependencies"]["plotly.js"] @@ -57,13 +57,13 @@ def install_js_deps(local): ) env = os.environ.copy() - env["PATH"] = npm_path + env["PATH"] = NPM_PATH if has_npm: log.info("Installing build dependencies with npm. This may take a while...") check_call( [npmName, "install"], - cwd=node_root, + cwd=NODE_ROOT, stdout=sys.stdout, stderr=sys.stderr, ) @@ -71,19 +71,19 @@ def install_js_deps(local): plotly_archive = os.path.join(local, "plotly.js.tgz") check_call( [npmName, "install", plotly_archive], - cwd=node_root, + cwd=NODE_ROOT, stdout=sys.stdout, stderr=sys.stderr, ) check_call( [npmName, "run", "build"], - cwd=node_root, + cwd=NODE_ROOT, stdout=sys.stdout, stderr=sys.stderr, ) - os.utime(node_modules, None) + os.utime(NODE_MODULES, None) - for t in targets: + for t in TARGETS: if not os.path.exists(t): msg = "Missing file: %s" % t raise ValueError(msg) @@ -100,7 +100,7 @@ def run_codegen(): def overwrite_schema_local(uri): - path = os.path.join(project_root, "codegen", "resources", "plot-schema.json") + path = os.path.join(PROJECT_ROOT, "codegen", "resources", "plot-schema.json") shutil.copyfile(uri, path) @@ -109,13 +109,13 @@ def overwrite_schema(url): req = requests.get(url) assert req.status_code == 200 - path = os.path.join(project_root, "codegen", "resources", "plot-schema.json") + path = os.path.join(PROJECT_ROOT, "codegen", "resources", "plot-schema.json") with open(path, "wb") as f: f.write(req.content) def overwrite_bundle_local(uri): - path = os.path.join(project_root, "plotly", "package_data", "plotly.min.js") + path = os.path.join(PROJECT_ROOT, "plotly", "package_data", "plotly.min.js") shutil.copyfile(uri, path) @@ -125,13 +125,13 @@ def overwrite_bundle(url): req = requests.get(url) print("url:", url) assert req.status_code == 200 - path = os.path.join(project_root, "plotly", "package_data", "plotly.min.js") + path = os.path.join(PROJECT_ROOT, "plotly", "package_data", "plotly.min.js") with open(path, "wb") as f: f.write(req.content) def overwrite_plotlyjs_version_file(plotlyjs_version): - path = os.path.join(project_root, "plotly", "offline", "_plotlyjs_version.py") + path = os.path.join(PROJECT_ROOT, "plotly", "offline", "_plotlyjs_version.py") with open(path, "w") as f: f.write( """\ @@ -274,7 +274,7 @@ def update_schema_bundle_from_master(): overwrite_schema_local(schema_uri) # Update plotly.js url in package.json - package_json_path = os.path.join(node_root, "package.json") + package_json_path = os.path.join(NODE_ROOT, "package.json") with open(package_json_path, "r") as f: package_json = json.load(f) @@ -299,9 +299,18 @@ def update_plotlyjs_dev(): run_codegen() -if __name__ == "__main__": - if "updateplotlyjsdev" in sys.argv: +def main(): + if len(sys.argv) != 2: + print(USAGE, file=sys.stderr) + sys.exit(1) + elif sys.argv[1] == "codegen": + run_codegen() + elif sys.argv[1] == "updateplotlyjsdev": update_plotlyjs_dev() - elif "updateplotlyjs" in sys.argv: + elif sys.argv[1] == "updateplotlyjs": print(plotly_js_version()) update_plotlyjs(plotly_js_version()) + + +if __name__ == "__main__": + main() diff --git a/plotly/__init__.py b/plotly/__init__.py index 9bf096de20..a831ffffad 100644 --- a/plotly/__init__.py +++ b/plotly/__init__.py @@ -25,6 +25,7 @@ - exceptions: defines our custom exception classes """ + import sys from typing import TYPE_CHECKING from _plotly_utils.importers import relative_import diff --git a/plotly/basedatatypes.py b/plotly/basedatatypes.py index a3044f6763..c64cae218f 100644 --- a/plotly/basedatatypes.py +++ b/plotly/basedatatypes.py @@ -86,6 +86,7 @@ def _make_underscore_key(key): return key.replace("-", "_") key_path2b = list(map(_make_hyphen_key, key_path2)) + # Here we want to split up each non-empty string in the list at # underscores and recombine the strings using chomp_empty_strings so # that leading, trailing and multiple _ will be preserved @@ -385,6 +386,18 @@ def _generator(i): yield x +def _set_property_provided_value(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 +847,14 @@ def _ipython_display_(self): else: print(repr(self)) + def _set_property(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. + """ + _set_property_provided_value(self, name, arg, provided) + def update(self, dict1=None, overwrite=False, **kwargs): """ Update the properties of the figure with a dict and/or with @@ -1591,6 +1612,7 @@ def _add_annotation_like( ) ): return self + # in case the user specified they wanted an axis to refer to the # domain of that axis and not the data, append ' domain' to the # computed axis accordingly @@ -4329,6 +4351,14 @@ def _get_validator(self, prop): return ValidatorCache.get_validator(self._path_str, prop) + def _set_property(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. + """ + _set_property_provided_value(self, name, arg, provided) + @property def _validators(self): """ diff --git a/plotly/data/__init__.py b/plotly/data/__init__.py index ef6bcdd2f0..3bba38974b 100644 --- a/plotly/data/__init__.py +++ b/plotly/data/__init__.py @@ -1,6 +1,7 @@ """ Built-in datasets for demonstration, educational and test purposes. """ + import os from importlib import import_module diff --git a/plotly/express/_core.py b/plotly/express/_core.py index 5f0eb53f95..3e0675dcbb 100644 --- a/plotly/express/_core.py +++ b/plotly/express/_core.py @@ -985,9 +985,11 @@ def make_trace_spec(args, constructor, attrs, trace_patch): def make_trendline_spec(args, constructor): trace_spec = TraceSpec( - constructor=go.Scattergl - if constructor == go.Scattergl # could be contour - else go.Scatter, + constructor=( + go.Scattergl + if constructor == go.Scattergl # could be contour + else go.Scatter + ), attrs=["trendline"], trace_patch=dict(mode="lines"), marginal=None, @@ -2456,9 +2458,11 @@ def get_groups_and_orders(args, grouper): full_sorted_group_names = [ tuple( [ - "" - if col == one_group - else sub_group_names[required_grouper.index(col)] + ( + "" + if col == one_group + else sub_group_names[required_grouper.index(col)] + ) for col in grouper ] ) diff --git a/plotly/express/data/__init__.py b/plotly/express/data/__init__.py index 02c8753175..25ce826d87 100644 --- a/plotly/express/data/__init__.py +++ b/plotly/express/data/__init__.py @@ -1,5 +1,4 @@ -"""Built-in datasets for demonstration, educational and test purposes. -""" +"""Built-in datasets for demonstration, educational and test purposes.""" from plotly.data import * diff --git a/plotly/graph_objects/__init__.py b/plotly/graph_objects/__init__.py index 2e6e5980cf..6ac98aa458 100644 --- a/plotly/graph_objects/__init__.py +++ b/plotly/graph_objects/__init__.py @@ -1,303 +1,161 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ..graph_objs import Waterfall - from ..graph_objs import Volume - from ..graph_objs import Violin - from ..graph_objs import Treemap - from ..graph_objs import Table - from ..graph_objs import Surface - from ..graph_objs import Sunburst - from ..graph_objs import Streamtube - from ..graph_objs import Splom - from ..graph_objs import Scatterternary - from ..graph_objs import Scattersmith - from ..graph_objs import Scatterpolargl - from ..graph_objs import Scatterpolar - from ..graph_objs import Scattermapbox - from ..graph_objs import Scattermap - from ..graph_objs import Scattergl - from ..graph_objs import Scattergeo - from ..graph_objs import Scattercarpet - from ..graph_objs import Scatter3d - from ..graph_objs import Scatter - from ..graph_objs import Sankey - from ..graph_objs import Pie - from ..graph_objs import Parcoords - from ..graph_objs import Parcats - from ..graph_objs import Ohlc - from ..graph_objs import Mesh3d - from ..graph_objs import Isosurface - from ..graph_objs import Indicator - from ..graph_objs import Image - from ..graph_objs import Icicle - from ..graph_objs import Histogram2dContour - from ..graph_objs import Histogram2d - from ..graph_objs import Histogram - from ..graph_objs import Heatmap - from ..graph_objs import Funnelarea - from ..graph_objs import Funnel - from ..graph_objs import Densitymapbox - from ..graph_objs import Densitymap - from ..graph_objs import Contourcarpet - from ..graph_objs import Contour - from ..graph_objs import Cone - from ..graph_objs import Choroplethmapbox - from ..graph_objs import Choroplethmap - from ..graph_objs import Choropleth - from ..graph_objs import Carpet - from ..graph_objs import Candlestick - from ..graph_objs import Box - from ..graph_objs import Barpolar - from ..graph_objs import Bar - from ..graph_objs import Layout - from ..graph_objs import Frame - from ..graph_objs import Figure - from ..graph_objs import Data - from ..graph_objs import Annotations - from ..graph_objs import Frames - from ..graph_objs import AngularAxis - from ..graph_objs import Annotation - from ..graph_objs import ColorBar - from ..graph_objs import Contours - from ..graph_objs import ErrorX - from ..graph_objs import ErrorY - from ..graph_objs import ErrorZ - from ..graph_objs import Font - from ..graph_objs import Legend - from ..graph_objs import Line - from ..graph_objs import Margin - from ..graph_objs import Marker - from ..graph_objs import RadialAxis - from ..graph_objs import Scene - from ..graph_objs import Stream - from ..graph_objs import XAxis - from ..graph_objs import YAxis - from ..graph_objs import ZAxis - from ..graph_objs import XBins - from ..graph_objs import YBins - from ..graph_objs import Trace - from ..graph_objs import Histogram2dcontour - from ..graph_objs import waterfall - from ..graph_objs import volume - from ..graph_objs import violin - from ..graph_objs import treemap - from ..graph_objs import table - from ..graph_objs import surface - from ..graph_objs import sunburst - from ..graph_objs import streamtube - from ..graph_objs import splom - from ..graph_objs import scatterternary - from ..graph_objs import scattersmith - from ..graph_objs import scatterpolargl - from ..graph_objs import scatterpolar - from ..graph_objs import scattermapbox - from ..graph_objs import scattermap - from ..graph_objs import scattergl - from ..graph_objs import scattergeo - from ..graph_objs import scattercarpet - from ..graph_objs import scatter3d - from ..graph_objs import scatter - from ..graph_objs import sankey - from ..graph_objs import pie - from ..graph_objs import parcoords - from ..graph_objs import parcats - from ..graph_objs import ohlc - from ..graph_objs import mesh3d - from ..graph_objs import isosurface - from ..graph_objs import indicator - from ..graph_objs import image - from ..graph_objs import icicle - from ..graph_objs import histogram2dcontour - from ..graph_objs import histogram2d - from ..graph_objs import histogram - from ..graph_objs import heatmap - from ..graph_objs import funnelarea - from ..graph_objs import funnel - from ..graph_objs import densitymapbox - from ..graph_objs import densitymap - from ..graph_objs import contourcarpet - from ..graph_objs import contour - from ..graph_objs import cone - from ..graph_objs import choroplethmapbox - from ..graph_objs import choroplethmap - from ..graph_objs import choropleth - from ..graph_objs import carpet - from ..graph_objs import candlestick - from ..graph_objs import box - from ..graph_objs import barpolar - from ..graph_objs import bar - 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", + ], +) - __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", - ], - ) +__all__.append("FigureWidget") +orig_getattr = __getattr__ -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 - 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 + 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) diff --git a/plotly/graph_objs/__init__.py b/plotly/graph_objs/__init__.py index 9e80b4063e..5e36196d07 100644 --- a/plotly/graph_objs/__init__.py +++ b/plotly/graph_objs/__init__.py @@ -1,303 +1,161 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._bar import Bar - from ._barpolar import Barpolar - from ._box import Box - from ._candlestick import Candlestick - from ._carpet import Carpet - from ._choropleth import Choropleth - from ._choroplethmap import Choroplethmap - from ._choroplethmapbox import Choroplethmapbox - from ._cone import Cone - from ._contour import Contour - from ._contourcarpet import Contourcarpet - from ._densitymap import Densitymap - from ._densitymapbox import Densitymapbox - from ._deprecations import AngularAxis - from ._deprecations import Annotation - from ._deprecations import Annotations - from ._deprecations import ColorBar - from ._deprecations import Contours - from ._deprecations import Data - from ._deprecations import ErrorX - from ._deprecations import ErrorY - from ._deprecations import ErrorZ - from ._deprecations import Font - from ._deprecations import Frames - from ._deprecations import Histogram2dcontour - from ._deprecations import Legend - from ._deprecations import Line - from ._deprecations import Margin - from ._deprecations import Marker - from ._deprecations import RadialAxis - from ._deprecations import Scene - from ._deprecations import Stream - from ._deprecations import Trace - from ._deprecations import XAxis - from ._deprecations import XBins - from ._deprecations import YAxis - from ._deprecations import YBins - from ._deprecations import ZAxis - from ._figure import Figure - from ._frame import Frame - from ._funnel import Funnel - from ._funnelarea import Funnelarea - from ._heatmap import Heatmap - from ._histogram import Histogram - from ._histogram2d import Histogram2d - from ._histogram2dcontour import Histogram2dContour - from ._icicle import Icicle - from ._image import Image - from ._indicator import Indicator - from ._isosurface import Isosurface - from ._layout import Layout - from ._mesh3d import Mesh3d - from ._ohlc import Ohlc - from ._parcats import Parcats - from ._parcoords import Parcoords - from ._pie import Pie - from ._sankey import Sankey - from ._scatter import Scatter - from ._scatter3d import Scatter3d - from ._scattercarpet import Scattercarpet - from ._scattergeo import Scattergeo - from ._scattergl import Scattergl - from ._scattermap import Scattermap - from ._scattermapbox import Scattermapbox - from ._scatterpolar import Scatterpolar - from ._scatterpolargl import Scatterpolargl - from ._scattersmith import Scattersmith - from ._scatterternary import Scatterternary - from ._splom import Splom - from ._streamtube import Streamtube - from ._sunburst import Sunburst - from ._surface import Surface - from ._table import Table - from ._treemap import Treemap - from ._violin import Violin - from ._volume import Volume - from ._waterfall import Waterfall - from . import bar - from . import barpolar - from . import box - from . import candlestick - from . import carpet - from . import choropleth - from . import choroplethmap - from . import choroplethmapbox - from . import cone - from . import contour - from . import contourcarpet - from . import densitymap - from . import densitymapbox - from . import funnel - from . import funnelarea - from . import heatmap - from . import histogram - from . import histogram2d - from . import histogram2dcontour - from . import icicle - from . import image - from . import indicator - from . import isosurface - from . import layout - from . import mesh3d - from . import ohlc - from . import parcats - from . import parcoords - from . import pie - from . import sankey - from . import scatter - from . import scatter3d - from . import scattercarpet - from . import scattergeo - from . import scattergl - from . import scattermap - from . import scattermapbox - from . import scatterpolar - from . import scatterpolargl - from . import scattersmith - from . import scatterternary - from . import splom - from . import streamtube - from . import sunburst - from . import surface - from . import table - from . import treemap - from . import violin - from . import volume - 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", + ], +) - __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", - ], - ) +__all__.append("FigureWidget") +orig_getattr = __getattr__ -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 - 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 + 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) diff --git a/plotly/graph_objs/_bar.py b/plotly/graph_objs/_bar.py index 0b5e5a9671..c72b7f9e8f 100644 --- a/plotly/graph_objs/_bar.py +++ b/plotly/graph_objs/_bar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Bar(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "bar" _valid_props = { @@ -86,8 +87,6 @@ class Bar(_BaseTraceType): "zorder", } - # alignmentgroup - # -------------- @property def alignmentgroup(self): """ @@ -109,8 +108,6 @@ def alignmentgroup(self): def alignmentgroup(self, val): self["alignmentgroup"] = val - # base - # ---- @property def base(self): """ @@ -130,8 +127,6 @@ def base(self): def base(self, val): self["base"] = val - # basesrc - # ------- @property def basesrc(self): """ @@ -150,8 +145,6 @@ def basesrc(self): def basesrc(self, val): self["basesrc"] = val - # cliponaxis - # ---------- @property def cliponaxis(self): """ @@ -173,8 +166,6 @@ def cliponaxis(self): def cliponaxis(self, val): self["cliponaxis"] = val - # constraintext - # ------------- @property def constraintext(self): """ @@ -195,8 +186,6 @@ def constraintext(self): def constraintext(self, val): self["constraintext"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -218,8 +207,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -239,8 +226,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # dx - # -- @property def dx(self): """ @@ -259,8 +244,6 @@ def dx(self): def dx(self, val): self["dx"] = val - # dy - # -- @property def dy(self): """ @@ -279,8 +262,6 @@ def dy(self): def dy(self, val): self["dy"] = val - # error_x - # ------- @property def error_x(self): """ @@ -290,66 +271,6 @@ 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 @@ -360,8 +281,6 @@ def error_x(self): def error_x(self, val): self["error_x"] = val - # error_y - # ------- @property def error_y(self): """ @@ -371,64 +290,6 @@ 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 @@ -439,8 +300,6 @@ def error_y(self): def error_y(self, val): self["error_y"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -465,8 +324,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -486,8 +343,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -497,44 +352,6 @@ 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 @@ -545,8 +362,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -591,8 +406,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -612,8 +425,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -638,8 +449,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -659,8 +468,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -681,8 +488,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -701,8 +506,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # insidetextanchor - # ---------------- @property def insidetextanchor(self): """ @@ -723,8 +526,6 @@ def insidetextanchor(self): def insidetextanchor(self, val): self["insidetextanchor"] = val - # insidetextfont - # -------------- @property def insidetextfont(self): """ @@ -736,79 +537,6 @@ 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 @@ -819,8 +547,6 @@ def insidetextfont(self): def insidetextfont(self, val): self["insidetextfont"] = val - # legend - # ------ @property def legend(self): """ @@ -844,8 +570,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -867,8 +591,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -878,13 +600,6 @@ 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 @@ -895,8 +610,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -922,8 +635,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -943,8 +654,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # marker - # ------ @property def marker(self): """ @@ -954,112 +663,6 @@ 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 @@ -1070,8 +673,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # meta - # ---- @property def meta(self): """ @@ -1098,8 +699,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -1118,8 +717,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -1140,8 +737,6 @@ def name(self): def name(self, val): self["name"] = val - # offset - # ------ @property def offset(self): """ @@ -1163,8 +758,6 @@ def offset(self): def offset(self, val): self["offset"] = val - # offsetgroup - # ----------- @property def offsetgroup(self): """ @@ -1186,8 +779,6 @@ def offsetgroup(self): def offsetgroup(self, val): self["offsetgroup"] = val - # offsetsrc - # --------- @property def offsetsrc(self): """ @@ -1206,8 +797,6 @@ def offsetsrc(self): def offsetsrc(self, val): self["offsetsrc"] = val - # opacity - # ------- @property def opacity(self): """ @@ -1226,8 +815,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -1248,8 +835,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outsidetextfont - # --------------- @property def outsidetextfont(self): """ @@ -1261,79 +846,6 @@ 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 @@ -1344,8 +856,6 @@ def outsidetextfont(self): def outsidetextfont(self, val): self["outsidetextfont"] = val - # selected - # -------- @property def selected(self): """ @@ -1355,16 +865,6 @@ 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 @@ -1375,8 +875,6 @@ def selected(self): def selected(self, val): self["selected"] = val - # selectedpoints - # -------------- @property def selectedpoints(self): """ @@ -1399,8 +897,6 @@ def selectedpoints(self): def selectedpoints(self, val): self["selectedpoints"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -1420,8 +916,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # stream - # ------ @property def stream(self): """ @@ -1431,18 +925,6 @@ 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 @@ -1453,8 +935,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # text - # ---- @property def text(self): """ @@ -1480,8 +960,6 @@ def text(self): def text(self, val): self["text"] = val - # textangle - # --------- @property def textangle(self): """ @@ -1505,8 +983,6 @@ def textangle(self): def textangle(self, val): self["textangle"] = val - # textfont - # -------- @property def textfont(self): """ @@ -1518,79 +994,6 @@ 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 @@ -1601,8 +1004,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # textposition - # ------------ @property def textposition(self): """ @@ -1630,8 +1031,6 @@ def textposition(self): def textposition(self, val): self["textposition"] = val - # textpositionsrc - # --------------- @property def textpositionsrc(self): """ @@ -1651,8 +1050,6 @@ def textpositionsrc(self): def textpositionsrc(self, val): self["textpositionsrc"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1671,8 +1068,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # texttemplate - # ------------ @property def texttemplate(self): """ @@ -1706,8 +1101,6 @@ def texttemplate(self): def texttemplate(self, val): self["texttemplate"] = val - # texttemplatesrc - # --------------- @property def texttemplatesrc(self): """ @@ -1727,8 +1120,6 @@ def texttemplatesrc(self): def texttemplatesrc(self, val): self["texttemplatesrc"] = val - # uid - # --- @property def uid(self): """ @@ -1749,8 +1140,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1782,8 +1171,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # unselected - # ---------- @property def unselected(self): """ @@ -1793,17 +1180,6 @@ 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 @@ -1814,8 +1190,6 @@ def unselected(self): def unselected(self, val): self["unselected"] = val - # visible - # ------- @property def visible(self): """ @@ -1837,8 +1211,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # width - # ----- @property def width(self): """ @@ -1858,8 +1230,6 @@ def width(self): def width(self, val): self["width"] = val - # widthsrc - # -------- @property def widthsrc(self): """ @@ -1878,8 +1248,6 @@ def widthsrc(self): def widthsrc(self, val): self["widthsrc"] = val - # x - # - @property def x(self): """ @@ -1898,8 +1266,6 @@ def x(self): def x(self, val): self["x"] = val - # x0 - # -- @property def x0(self): """ @@ -1919,8 +1285,6 @@ def x0(self): def x0(self, val): self["x0"] = val - # xaxis - # ----- @property def xaxis(self): """ @@ -1944,8 +1308,6 @@ def xaxis(self): def xaxis(self, val): self["xaxis"] = val - # xcalendar - # --------- @property def xcalendar(self): """ @@ -1968,8 +1330,6 @@ def xcalendar(self): def xcalendar(self, val): self["xcalendar"] = val - # xhoverformat - # ------------ @property def xhoverformat(self): """ @@ -1999,8 +1359,6 @@ def xhoverformat(self): def xhoverformat(self, val): self["xhoverformat"] = val - # xperiod - # ------- @property def xperiod(self): """ @@ -2021,8 +1379,6 @@ def xperiod(self): def xperiod(self, val): self["xperiod"] = val - # xperiod0 - # -------- @property def xperiod0(self): """ @@ -2044,8 +1400,6 @@ def xperiod0(self): def xperiod0(self, val): self["xperiod0"] = val - # xperiodalignment - # ---------------- @property def xperiodalignment(self): """ @@ -2066,8 +1420,6 @@ def xperiodalignment(self): def xperiodalignment(self, val): self["xperiodalignment"] = val - # xsrc - # ---- @property def xsrc(self): """ @@ -2086,8 +1438,6 @@ def xsrc(self): def xsrc(self, val): self["xsrc"] = val - # y - # - @property def y(self): """ @@ -2106,8 +1456,6 @@ def y(self): def y(self, val): self["y"] = val - # y0 - # -- @property def y0(self): """ @@ -2127,8 +1475,6 @@ def y0(self): def y0(self, val): self["y0"] = val - # yaxis - # ----- @property def yaxis(self): """ @@ -2152,8 +1498,6 @@ def yaxis(self): def yaxis(self, val): self["yaxis"] = val - # ycalendar - # --------- @property def ycalendar(self): """ @@ -2176,8 +1520,6 @@ def ycalendar(self): def ycalendar(self, val): self["ycalendar"] = val - # yhoverformat - # ------------ @property def yhoverformat(self): """ @@ -2207,8 +1549,6 @@ def yhoverformat(self): def yhoverformat(self, val): self["yhoverformat"] = val - # yperiod - # ------- @property def yperiod(self): """ @@ -2229,8 +1569,6 @@ def yperiod(self): def yperiod(self, val): self["yperiod"] = val - # yperiod0 - # -------- @property def yperiod0(self): """ @@ -2252,8 +1590,6 @@ def yperiod0(self): def yperiod0(self, val): self["yperiod0"] = val - # yperiodalignment - # ---------------- @property def yperiodalignment(self): """ @@ -2274,8 +1610,6 @@ def yperiodalignment(self): def yperiodalignment(self, val): self["yperiodalignment"] = val - # ysrc - # ---- @property def ysrc(self): """ @@ -2294,8 +1628,6 @@ def ysrc(self): def ysrc(self, val): self["ysrc"] = val - # zorder - # ------ @property def zorder(self): """ @@ -2316,14 +1648,10 @@ def zorder(self): def zorder(self, val): self["zorder"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -3170,14 +2498,11 @@ def __init__( ------- Bar """ - super(Bar, self).__init__("bar") - + super().__init__("bar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -3192,320 +2517,85 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("alignmentgroup", arg, alignmentgroup) + self._set_property("base", arg, base) + self._set_property("basesrc", arg, basesrc) + self._set_property("cliponaxis", arg, cliponaxis) + self._set_property("constraintext", arg, constraintext) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("dx", arg, dx) + self._set_property("dy", arg, dy) + self._set_property("error_x", arg, error_x) + self._set_property("error_y", arg, error_y) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("insidetextanchor", arg, insidetextanchor) + self._set_property("insidetextfont", arg, insidetextfont) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("marker", arg, marker) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("offset", arg, offset) + self._set_property("offsetgroup", arg, offsetgroup) + self._set_property("offsetsrc", arg, offsetsrc) + self._set_property("opacity", arg, opacity) + self._set_property("orientation", arg, orientation) + self._set_property("outsidetextfont", arg, outsidetextfont) + self._set_property("selected", arg, selected) + self._set_property("selectedpoints", arg, selectedpoints) + self._set_property("showlegend", arg, showlegend) + self._set_property("stream", arg, stream) + self._set_property("text", arg, text) + self._set_property("textangle", arg, textangle) + self._set_property("textfont", arg, textfont) + self._set_property("textposition", arg, textposition) + self._set_property("textpositionsrc", arg, textpositionsrc) + self._set_property("textsrc", arg, textsrc) + self._set_property("texttemplate", arg, texttemplate) + self._set_property("texttemplatesrc", arg, texttemplatesrc) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("unselected", arg, unselected) + self._set_property("visible", arg, visible) + self._set_property("width", arg, width) + self._set_property("widthsrc", arg, widthsrc) + self._set_property("x", arg, x) + self._set_property("x0", arg, x0) + self._set_property("xaxis", arg, xaxis) + self._set_property("xcalendar", arg, xcalendar) + self._set_property("xhoverformat", arg, xhoverformat) + self._set_property("xperiod", arg, xperiod) + self._set_property("xperiod0", arg, xperiod0) + self._set_property("xperiodalignment", arg, xperiodalignment) + self._set_property("xsrc", arg, xsrc) + self._set_property("y", arg, y) + self._set_property("y0", arg, y0) + self._set_property("yaxis", arg, yaxis) + self._set_property("ycalendar", arg, ycalendar) + self._set_property("yhoverformat", arg, yhoverformat) + self._set_property("yperiod", arg, yperiod) + self._set_property("yperiod0", arg, yperiod0) + self._set_property("yperiodalignment", arg, yperiodalignment) + self._set_property("ysrc", arg, ysrc) + self._set_property("zorder", arg, zorder) self._props["type"] = "bar" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_barpolar.py b/plotly/graph_objs/_barpolar.py index 56101f1da9..a58929798c 100644 --- a/plotly/graph_objs/_barpolar.py +++ b/plotly/graph_objs/_barpolar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Barpolar(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "barpolar" _valid_props = { @@ -59,8 +60,6 @@ class Barpolar(_BaseTraceType): "widthsrc", } - # base - # ---- @property def base(self): """ @@ -80,8 +79,6 @@ def base(self): def base(self, val): self["base"] = val - # basesrc - # ------- @property def basesrc(self): """ @@ -100,8 +97,6 @@ def basesrc(self): def basesrc(self, val): self["basesrc"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -123,8 +118,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -144,8 +137,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # dr - # -- @property def dr(self): """ @@ -164,8 +155,6 @@ def dr(self): def dr(self, val): self["dr"] = val - # dtheta - # ------ @property def dtheta(self): """ @@ -186,8 +175,6 @@ def dtheta(self): def dtheta(self, val): self["dtheta"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -212,8 +199,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -233,8 +218,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -244,44 +227,6 @@ 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 @@ -292,8 +237,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -336,8 +279,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -357,8 +298,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -379,8 +318,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -400,8 +337,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -422,8 +357,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -442,8 +375,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # legend - # ------ @property def legend(self): """ @@ -467,8 +398,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -490,8 +419,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -501,13 +428,6 @@ 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 @@ -518,8 +438,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -545,8 +463,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -566,8 +482,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # marker - # ------ @property def marker(self): """ @@ -577,106 +491,6 @@ 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 @@ -687,8 +501,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # meta - # ---- @property def meta(self): """ @@ -715,8 +527,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -735,8 +545,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -757,8 +565,6 @@ def name(self): def name(self, val): self["name"] = val - # offset - # ------ @property def offset(self): """ @@ -779,8 +585,6 @@ def offset(self): def offset(self, val): self["offset"] = val - # offsetsrc - # --------- @property def offsetsrc(self): """ @@ -799,8 +603,6 @@ def offsetsrc(self): def offsetsrc(self, val): self["offsetsrc"] = val - # opacity - # ------- @property def opacity(self): """ @@ -819,8 +621,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # r - # - @property def r(self): """ @@ -839,8 +639,6 @@ def r(self): def r(self, val): self["r"] = val - # r0 - # -- @property def r0(self): """ @@ -860,8 +658,6 @@ def r0(self): def r0(self, val): self["r0"] = val - # rsrc - # ---- @property def rsrc(self): """ @@ -880,8 +676,6 @@ def rsrc(self): def rsrc(self, val): self["rsrc"] = val - # selected - # -------- @property def selected(self): """ @@ -891,17 +685,6 @@ 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 @@ -912,8 +695,6 @@ def selected(self): def selected(self, val): self["selected"] = val - # selectedpoints - # -------------- @property def selectedpoints(self): """ @@ -936,8 +717,6 @@ def selectedpoints(self): def selectedpoints(self, val): self["selectedpoints"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -957,8 +736,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # stream - # ------ @property def stream(self): """ @@ -968,18 +745,6 @@ 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 @@ -990,8 +755,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # subplot - # ------- @property def subplot(self): """ @@ -1015,8 +778,6 @@ def subplot(self): def subplot(self, val): self["subplot"] = val - # text - # ---- @property def text(self): """ @@ -1040,8 +801,6 @@ def text(self): def text(self, val): self["text"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1060,8 +819,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # theta - # ----- @property def theta(self): """ @@ -1080,8 +837,6 @@ def theta(self): def theta(self, val): self["theta"] = val - # theta0 - # ------ @property def theta0(self): """ @@ -1101,8 +856,6 @@ def theta0(self): def theta0(self, val): self["theta0"] = val - # thetasrc - # -------- @property def thetasrc(self): """ @@ -1121,8 +874,6 @@ def thetasrc(self): def thetasrc(self, val): self["thetasrc"] = val - # thetaunit - # --------- @property def thetaunit(self): """ @@ -1143,8 +894,6 @@ def thetaunit(self): def thetaunit(self, val): self["thetaunit"] = val - # uid - # --- @property def uid(self): """ @@ -1165,8 +914,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1198,8 +945,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # unselected - # ---------- @property def unselected(self): """ @@ -1209,17 +954,6 @@ 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 @@ -1230,8 +964,6 @@ def unselected(self): def unselected(self, val): self["unselected"] = val - # visible - # ------- @property def visible(self): """ @@ -1253,8 +985,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # width - # ----- @property def width(self): """ @@ -1274,8 +1004,6 @@ def width(self): def width(self, val): self["width"] = val - # widthsrc - # -------- @property def widthsrc(self): """ @@ -1294,14 +1022,10 @@ def widthsrc(self): def widthsrc(self, val): self["widthsrc"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1809,14 +1533,11 @@ def __init__( ------- Barpolar """ - super(Barpolar, self).__init__("barpolar") - + super().__init__("barpolar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1831,212 +1552,58 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("base", arg, base) + self._set_property("basesrc", arg, basesrc) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("dr", arg, dr) + self._set_property("dtheta", arg, dtheta) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("marker", arg, marker) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("offset", arg, offset) + self._set_property("offsetsrc", arg, offsetsrc) + self._set_property("opacity", arg, opacity) + self._set_property("r", arg, r) + self._set_property("r0", arg, r0) + self._set_property("rsrc", arg, rsrc) + self._set_property("selected", arg, selected) + self._set_property("selectedpoints", arg, selectedpoints) + self._set_property("showlegend", arg, showlegend) + self._set_property("stream", arg, stream) + self._set_property("subplot", arg, subplot) + self._set_property("text", arg, text) + self._set_property("textsrc", arg, textsrc) + self._set_property("theta", arg, theta) + self._set_property("theta0", arg, theta0) + self._set_property("thetasrc", arg, thetasrc) + self._set_property("thetaunit", arg, thetaunit) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("unselected", arg, unselected) + self._set_property("visible", arg, visible) + self._set_property("width", arg, width) + self._set_property("widthsrc", arg, widthsrc) self._props["type"] = "barpolar" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_box.py b/plotly/graph_objs/_box.py index 0e372f6507..a579d4deaf 100644 --- a/plotly/graph_objs/_box.py +++ b/plotly/graph_objs/_box.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Box(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "box" _valid_props = { @@ -98,8 +99,6 @@ class Box(_BaseTraceType): "zorder", } - # alignmentgroup - # -------------- @property def alignmentgroup(self): """ @@ -121,8 +120,6 @@ def alignmentgroup(self): def alignmentgroup(self, val): self["alignmentgroup"] = val - # boxmean - # ------- @property def boxmean(self): """ @@ -145,8 +142,6 @@ def boxmean(self): def boxmean(self, val): self["boxmean"] = val - # boxpoints - # --------- @property def boxpoints(self): """ @@ -174,8 +169,6 @@ def boxpoints(self): def boxpoints(self, val): self["boxpoints"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -197,8 +190,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -218,8 +209,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # dx - # -- @property def dx(self): """ @@ -239,8 +228,6 @@ def dx(self): def dx(self, val): self["dx"] = val - # dy - # -- @property def dy(self): """ @@ -260,8 +247,6 @@ def dy(self): def dy(self, val): self["dy"] = val - # fillcolor - # --------- @property def fillcolor(self): """ @@ -274,42 +259,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -321,8 +271,6 @@ def fillcolor(self): def fillcolor(self, val): self["fillcolor"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -347,8 +295,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -368,8 +314,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -379,44 +323,6 @@ 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 @@ -427,8 +333,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hoveron - # ------- @property def hoveron(self): """ @@ -450,8 +354,6 @@ def hoveron(self): def hoveron(self, val): self["hoveron"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -494,8 +396,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -515,8 +415,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -537,8 +435,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -558,8 +454,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -580,8 +474,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -600,8 +492,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # jitter - # ------ @property def jitter(self): """ @@ -623,8 +513,6 @@ def jitter(self): def jitter(self, val): self["jitter"] = val - # legend - # ------ @property def legend(self): """ @@ -648,8 +536,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -671,8 +557,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -682,13 +566,6 @@ 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 @@ -699,8 +576,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -726,8 +601,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -747,8 +620,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # line - # ---- @property def line(self): """ @@ -758,14 +629,6 @@ 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 @@ -776,8 +639,6 @@ def line(self): def line(self, val): self["line"] = val - # lowerfence - # ---------- @property def lowerfence(self): """ @@ -800,8 +661,6 @@ def lowerfence(self): def lowerfence(self, val): self["lowerfence"] = val - # lowerfencesrc - # ------------- @property def lowerfencesrc(self): """ @@ -821,8 +680,6 @@ def lowerfencesrc(self): def lowerfencesrc(self, val): self["lowerfencesrc"] = val - # marker - # ------ @property def marker(self): """ @@ -832,33 +689,6 @@ 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 @@ -869,8 +699,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # mean - # ---- @property def mean(self): """ @@ -893,8 +721,6 @@ def mean(self): def mean(self, val): self["mean"] = val - # meansrc - # ------- @property def meansrc(self): """ @@ -913,8 +739,6 @@ def meansrc(self): def meansrc(self, val): self["meansrc"] = val - # median - # ------ @property def median(self): """ @@ -934,8 +758,6 @@ def median(self): def median(self, val): self["median"] = val - # mediansrc - # --------- @property def mediansrc(self): """ @@ -954,8 +776,6 @@ def mediansrc(self): def mediansrc(self, val): self["mediansrc"] = val - # meta - # ---- @property def meta(self): """ @@ -982,8 +802,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -1002,8 +820,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -1026,8 +842,6 @@ def name(self): def name(self, val): self["name"] = val - # notched - # ------- @property def notched(self): """ @@ -1054,8 +868,6 @@ def notched(self): def notched(self, val): self["notched"] = val - # notchspan - # --------- @property def notchspan(self): """ @@ -1079,8 +891,6 @@ def notchspan(self): def notchspan(self, val): self["notchspan"] = val - # notchspansrc - # ------------ @property def notchspansrc(self): """ @@ -1100,8 +910,6 @@ def notchspansrc(self): def notchspansrc(self, val): self["notchspansrc"] = val - # notchwidth - # ---------- @property def notchwidth(self): """ @@ -1121,8 +929,6 @@ def notchwidth(self): def notchwidth(self, val): self["notchwidth"] = val - # offsetgroup - # ----------- @property def offsetgroup(self): """ @@ -1144,8 +950,6 @@ def offsetgroup(self): def offsetgroup(self, val): self["offsetgroup"] = val - # opacity - # ------- @property def opacity(self): """ @@ -1164,8 +968,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -1186,8 +988,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # pointpos - # -------- @property def pointpos(self): """ @@ -1210,8 +1010,6 @@ def pointpos(self): def pointpos(self, val): self["pointpos"] = val - # q1 - # -- @property def q1(self): """ @@ -1231,8 +1029,6 @@ def q1(self): def q1(self, val): self["q1"] = val - # q1src - # ----- @property def q1src(self): """ @@ -1251,8 +1047,6 @@ def q1src(self): def q1src(self, val): self["q1src"] = val - # q3 - # -- @property def q3(self): """ @@ -1272,8 +1066,6 @@ def q3(self): def q3(self, val): self["q3"] = val - # q3src - # ----- @property def q3src(self): """ @@ -1292,8 +1084,6 @@ def q3src(self): def q3src(self, val): self["q3src"] = val - # quartilemethod - # -------------- @property def quartilemethod(self): """ @@ -1324,8 +1114,6 @@ def quartilemethod(self): def quartilemethod(self, val): self["quartilemethod"] = val - # sd - # -- @property def sd(self): """ @@ -1348,8 +1136,6 @@ def sd(self): def sd(self, val): self["sd"] = val - # sdmultiple - # ---------- @property def sdmultiple(self): """ @@ -1370,8 +1156,6 @@ def sdmultiple(self): def sdmultiple(self, val): self["sdmultiple"] = val - # sdsrc - # ----- @property def sdsrc(self): """ @@ -1390,8 +1174,6 @@ def sdsrc(self): def sdsrc(self, val): self["sdsrc"] = val - # selected - # -------- @property def selected(self): """ @@ -1401,12 +1183,6 @@ 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 @@ -1417,8 +1193,6 @@ def selected(self): def selected(self, val): self["selected"] = val - # selectedpoints - # -------------- @property def selectedpoints(self): """ @@ -1441,8 +1215,6 @@ def selectedpoints(self): def selectedpoints(self, val): self["selectedpoints"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -1462,8 +1234,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # showwhiskers - # ------------ @property def showwhiskers(self): """ @@ -1483,8 +1253,6 @@ def showwhiskers(self): def showwhiskers(self, val): self["showwhiskers"] = val - # sizemode - # -------- @property def sizemode(self): """ @@ -1508,8 +1276,6 @@ def sizemode(self): def sizemode(self, val): self["sizemode"] = val - # stream - # ------ @property def stream(self): """ @@ -1519,18 +1285,6 @@ 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 @@ -1541,8 +1295,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # text - # ---- @property def text(self): """ @@ -1567,8 +1319,6 @@ def text(self): def text(self, val): self["text"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1587,8 +1337,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # uid - # --- @property def uid(self): """ @@ -1609,8 +1357,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1642,8 +1388,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # unselected - # ---------- @property def unselected(self): """ @@ -1653,13 +1397,6 @@ 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 @@ -1670,8 +1407,6 @@ def unselected(self): def unselected(self, val): self["unselected"] = val - # upperfence - # ---------- @property def upperfence(self): """ @@ -1694,8 +1429,6 @@ def upperfence(self): def upperfence(self, val): self["upperfence"] = val - # upperfencesrc - # ------------- @property def upperfencesrc(self): """ @@ -1715,8 +1448,6 @@ def upperfencesrc(self): def upperfencesrc(self, val): self["upperfencesrc"] = val - # visible - # ------- @property def visible(self): """ @@ -1738,8 +1469,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # whiskerwidth - # ------------ @property def whiskerwidth(self): """ @@ -1759,8 +1488,6 @@ def whiskerwidth(self): def whiskerwidth(self, val): self["whiskerwidth"] = val - # width - # ----- @property def width(self): """ @@ -1781,8 +1508,6 @@ def width(self): def width(self, val): self["width"] = val - # x - # - @property def x(self): """ @@ -1802,8 +1527,6 @@ def x(self): def x(self, val): self["x"] = val - # x0 - # -- @property def x0(self): """ @@ -1823,8 +1546,6 @@ def x0(self): def x0(self, val): self["x0"] = val - # xaxis - # ----- @property def xaxis(self): """ @@ -1848,8 +1569,6 @@ def xaxis(self): def xaxis(self, val): self["xaxis"] = val - # xcalendar - # --------- @property def xcalendar(self): """ @@ -1872,8 +1591,6 @@ def xcalendar(self): def xcalendar(self, val): self["xcalendar"] = val - # xhoverformat - # ------------ @property def xhoverformat(self): """ @@ -1903,8 +1620,6 @@ def xhoverformat(self): def xhoverformat(self, val): self["xhoverformat"] = val - # xperiod - # ------- @property def xperiod(self): """ @@ -1925,8 +1640,6 @@ def xperiod(self): def xperiod(self, val): self["xperiod"] = val - # xperiod0 - # -------- @property def xperiod0(self): """ @@ -1948,8 +1661,6 @@ def xperiod0(self): def xperiod0(self, val): self["xperiod0"] = val - # xperiodalignment - # ---------------- @property def xperiodalignment(self): """ @@ -1970,8 +1681,6 @@ def xperiodalignment(self): def xperiodalignment(self, val): self["xperiodalignment"] = val - # xsrc - # ---- @property def xsrc(self): """ @@ -1990,8 +1699,6 @@ def xsrc(self): def xsrc(self, val): self["xsrc"] = val - # y - # - @property def y(self): """ @@ -2011,8 +1718,6 @@ def y(self): def y(self, val): self["y"] = val - # y0 - # -- @property def y0(self): """ @@ -2032,8 +1737,6 @@ def y0(self): def y0(self, val): self["y0"] = val - # yaxis - # ----- @property def yaxis(self): """ @@ -2057,8 +1760,6 @@ def yaxis(self): def yaxis(self, val): self["yaxis"] = val - # ycalendar - # --------- @property def ycalendar(self): """ @@ -2081,8 +1782,6 @@ def ycalendar(self): def ycalendar(self, val): self["ycalendar"] = val - # yhoverformat - # ------------ @property def yhoverformat(self): """ @@ -2112,8 +1811,6 @@ def yhoverformat(self): def yhoverformat(self, val): self["yhoverformat"] = val - # yperiod - # ------- @property def yperiod(self): """ @@ -2134,8 +1831,6 @@ def yperiod(self): def yperiod(self, val): self["yperiod"] = val - # yperiod0 - # -------- @property def yperiod0(self): """ @@ -2157,8 +1852,6 @@ def yperiod0(self): def yperiod0(self, val): self["yperiod0"] = val - # yperiodalignment - # ---------------- @property def yperiodalignment(self): """ @@ -2179,8 +1872,6 @@ def yperiodalignment(self): def yperiodalignment(self, val): self["yperiodalignment"] = val - # ysrc - # ---- @property def ysrc(self): """ @@ -2199,8 +1890,6 @@ def ysrc(self): def ysrc(self, val): self["ysrc"] = val - # zorder - # ------ @property def zorder(self): """ @@ -2221,14 +1910,10 @@ def zorder(self): def zorder(self, val): self["zorder"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -3253,14 +2938,11 @@ def __init__( ------- Box """ - super(Box, self).__init__("box") - + super().__init__("box") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -3275,368 +2957,97 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("alignmentgroup", arg, alignmentgroup) + self._set_property("boxmean", arg, boxmean) + self._set_property("boxpoints", arg, boxpoints) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("dx", arg, dx) + self._set_property("dy", arg, dy) + self._set_property("fillcolor", arg, fillcolor) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hoveron", arg, hoveron) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("jitter", arg, jitter) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("line", arg, line) + self._set_property("lowerfence", arg, lowerfence) + self._set_property("lowerfencesrc", arg, lowerfencesrc) + self._set_property("marker", arg, marker) + self._set_property("mean", arg, mean) + self._set_property("meansrc", arg, meansrc) + self._set_property("median", arg, median) + self._set_property("mediansrc", arg, mediansrc) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("notched", arg, notched) + self._set_property("notchspan", arg, notchspan) + self._set_property("notchspansrc", arg, notchspansrc) + self._set_property("notchwidth", arg, notchwidth) + self._set_property("offsetgroup", arg, offsetgroup) + self._set_property("opacity", arg, opacity) + self._set_property("orientation", arg, orientation) + self._set_property("pointpos", arg, pointpos) + self._set_property("q1", arg, q1) + self._set_property("q1src", arg, q1src) + self._set_property("q3", arg, q3) + self._set_property("q3src", arg, q3src) + self._set_property("quartilemethod", arg, quartilemethod) + self._set_property("sd", arg, sd) + self._set_property("sdmultiple", arg, sdmultiple) + self._set_property("sdsrc", arg, sdsrc) + self._set_property("selected", arg, selected) + self._set_property("selectedpoints", arg, selectedpoints) + self._set_property("showlegend", arg, showlegend) + self._set_property("showwhiskers", arg, showwhiskers) + self._set_property("sizemode", arg, sizemode) + self._set_property("stream", arg, stream) + self._set_property("text", arg, text) + self._set_property("textsrc", arg, textsrc) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("unselected", arg, unselected) + self._set_property("upperfence", arg, upperfence) + self._set_property("upperfencesrc", arg, upperfencesrc) + self._set_property("visible", arg, visible) + self._set_property("whiskerwidth", arg, whiskerwidth) + self._set_property("width", arg, width) + self._set_property("x", arg, x) + self._set_property("x0", arg, x0) + self._set_property("xaxis", arg, xaxis) + self._set_property("xcalendar", arg, xcalendar) + self._set_property("xhoverformat", arg, xhoverformat) + self._set_property("xperiod", arg, xperiod) + self._set_property("xperiod0", arg, xperiod0) + self._set_property("xperiodalignment", arg, xperiodalignment) + self._set_property("xsrc", arg, xsrc) + self._set_property("y", arg, y) + self._set_property("y0", arg, y0) + self._set_property("yaxis", arg, yaxis) + self._set_property("ycalendar", arg, ycalendar) + self._set_property("yhoverformat", arg, yhoverformat) + self._set_property("yperiod", arg, yperiod) + self._set_property("yperiod0", arg, yperiod0) + self._set_property("yperiodalignment", arg, yperiodalignment) + self._set_property("ysrc", arg, ysrc) + self._set_property("zorder", arg, zorder) self._props["type"] = "box" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_candlestick.py b/plotly/graph_objs/_candlestick.py index 946743d944..32fd12c67c 100644 --- a/plotly/graph_objs/_candlestick.py +++ b/plotly/graph_objs/_candlestick.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Candlestick(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "candlestick" _valid_props = { @@ -61,8 +62,6 @@ class Candlestick(_BaseTraceType): "zorder", } - # close - # ----- @property def close(self): """ @@ -81,8 +80,6 @@ def close(self): def close(self, val): self["close"] = val - # closesrc - # -------- @property def closesrc(self): """ @@ -101,8 +98,6 @@ def closesrc(self): def closesrc(self, val): self["closesrc"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -124,8 +119,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -145,8 +138,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # decreasing - # ---------- @property def decreasing(self): """ @@ -156,18 +147,6 @@ 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 @@ -178,8 +157,6 @@ def decreasing(self): def decreasing(self, val): self["decreasing"] = val - # high - # ---- @property def high(self): """ @@ -198,8 +175,6 @@ def high(self): def high(self, val): self["high"] = val - # highsrc - # ------- @property def highsrc(self): """ @@ -218,8 +193,6 @@ def highsrc(self): def highsrc(self, val): self["highsrc"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -244,8 +217,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -265,8 +236,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -276,47 +245,6 @@ 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 @@ -327,8 +255,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -349,8 +275,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -370,8 +294,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -392,8 +314,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -412,8 +332,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # increasing - # ---------- @property def increasing(self): """ @@ -423,18 +341,6 @@ 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 @@ -445,8 +351,6 @@ def increasing(self): def increasing(self, val): self["increasing"] = val - # legend - # ------ @property def legend(self): """ @@ -470,8 +374,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -493,8 +395,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -504,13 +404,6 @@ 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 @@ -521,8 +414,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -548,8 +439,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -569,8 +458,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # line - # ---- @property def line(self): """ @@ -580,15 +467,6 @@ 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 @@ -599,8 +477,6 @@ def line(self): def line(self, val): self["line"] = val - # low - # --- @property def low(self): """ @@ -619,8 +495,6 @@ def low(self): def low(self, val): self["low"] = val - # lowsrc - # ------ @property def lowsrc(self): """ @@ -639,8 +513,6 @@ def lowsrc(self): def lowsrc(self, val): self["lowsrc"] = val - # meta - # ---- @property def meta(self): """ @@ -667,8 +539,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -687,8 +557,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -709,8 +577,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -729,8 +595,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # open - # ---- @property def open(self): """ @@ -749,8 +613,6 @@ def open(self): def open(self, val): self["open"] = val - # opensrc - # ------- @property def opensrc(self): """ @@ -769,8 +631,6 @@ def opensrc(self): def opensrc(self, val): self["opensrc"] = val - # selectedpoints - # -------------- @property def selectedpoints(self): """ @@ -793,8 +653,6 @@ def selectedpoints(self): def selectedpoints(self, val): self["selectedpoints"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -814,8 +672,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # stream - # ------ @property def stream(self): """ @@ -825,18 +681,6 @@ 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 @@ -847,8 +691,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # text - # ---- @property def text(self): """ @@ -872,8 +714,6 @@ def text(self): def text(self, val): self["text"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -892,8 +732,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # uid - # --- @property def uid(self): """ @@ -914,8 +752,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -947,8 +783,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # visible - # ------- @property def visible(self): """ @@ -970,8 +804,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # whiskerwidth - # ------------ @property def whiskerwidth(self): """ @@ -991,8 +823,6 @@ def whiskerwidth(self): def whiskerwidth(self, val): self["whiskerwidth"] = val - # x - # - @property def x(self): """ @@ -1012,8 +842,6 @@ def x(self): def x(self, val): self["x"] = val - # xaxis - # ----- @property def xaxis(self): """ @@ -1037,8 +865,6 @@ def xaxis(self): def xaxis(self, val): self["xaxis"] = val - # xcalendar - # --------- @property def xcalendar(self): """ @@ -1061,8 +887,6 @@ def xcalendar(self): def xcalendar(self, val): self["xcalendar"] = val - # xhoverformat - # ------------ @property def xhoverformat(self): """ @@ -1092,8 +916,6 @@ def xhoverformat(self): def xhoverformat(self, val): self["xhoverformat"] = val - # xperiod - # ------- @property def xperiod(self): """ @@ -1114,8 +936,6 @@ def xperiod(self): def xperiod(self, val): self["xperiod"] = val - # xperiod0 - # -------- @property def xperiod0(self): """ @@ -1137,8 +957,6 @@ def xperiod0(self): def xperiod0(self, val): self["xperiod0"] = val - # xperiodalignment - # ---------------- @property def xperiodalignment(self): """ @@ -1159,8 +977,6 @@ def xperiodalignment(self): def xperiodalignment(self, val): self["xperiodalignment"] = val - # xsrc - # ---- @property def xsrc(self): """ @@ -1179,8 +995,6 @@ def xsrc(self): def xsrc(self, val): self["xsrc"] = val - # yaxis - # ----- @property def yaxis(self): """ @@ -1204,8 +1018,6 @@ def yaxis(self): def yaxis(self, val): self["yaxis"] = val - # yhoverformat - # ------------ @property def yhoverformat(self): """ @@ -1235,8 +1047,6 @@ def yhoverformat(self): def yhoverformat(self, val): self["yhoverformat"] = val - # zorder - # ------ @property def zorder(self): """ @@ -1257,14 +1067,10 @@ def zorder(self): def zorder(self, val): self["zorder"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1796,14 +1602,11 @@ def __init__( ------- Candlestick """ - super(Candlestick, self).__init__("candlestick") - + super().__init__("candlestick") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1818,220 +1621,60 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("close", arg, close) + self._set_property("closesrc", arg, closesrc) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("decreasing", arg, decreasing) + self._set_property("high", arg, high) + self._set_property("highsrc", arg, highsrc) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("increasing", arg, increasing) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("line", arg, line) + self._set_property("low", arg, low) + self._set_property("lowsrc", arg, lowsrc) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("open", arg, open) + self._set_property("opensrc", arg, opensrc) + self._set_property("selectedpoints", arg, selectedpoints) + self._set_property("showlegend", arg, showlegend) + self._set_property("stream", arg, stream) + self._set_property("text", arg, text) + self._set_property("textsrc", arg, textsrc) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("visible", arg, visible) + self._set_property("whiskerwidth", arg, whiskerwidth) + self._set_property("x", arg, x) + self._set_property("xaxis", arg, xaxis) + self._set_property("xcalendar", arg, xcalendar) + self._set_property("xhoverformat", arg, xhoverformat) + self._set_property("xperiod", arg, xperiod) + self._set_property("xperiod0", arg, xperiod0) + self._set_property("xperiodalignment", arg, xperiodalignment) + self._set_property("xsrc", arg, xsrc) + self._set_property("yaxis", arg, yaxis) + self._set_property("yhoverformat", arg, yhoverformat) + self._set_property("zorder", arg, zorder) self._props["type"] = "candlestick" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_carpet.py b/plotly/graph_objs/_carpet.py index 71a5c95019..e173ff67b5 100644 --- a/plotly/graph_objs/_carpet.py +++ b/plotly/graph_objs/_carpet.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Carpet(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "carpet" _valid_props = { @@ -49,8 +50,6 @@ class Carpet(_BaseTraceType): "zorder", } - # a - # - @property def a(self): """ @@ -69,8 +68,6 @@ def a(self): def a(self, val): self["a"] = val - # a0 - # -- @property def a0(self): """ @@ -91,8 +88,6 @@ def a0(self): def a0(self, val): self["a0"] = val - # aaxis - # ----- @property def aaxis(self): """ @@ -102,244 +97,6 @@ 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 @@ -350,8 +107,6 @@ def aaxis(self): def aaxis(self, val): self["aaxis"] = val - # asrc - # ---- @property def asrc(self): """ @@ -370,8 +125,6 @@ def asrc(self): def asrc(self, val): self["asrc"] = val - # b - # - @property def b(self): """ @@ -390,8 +143,6 @@ def b(self): def b(self, val): self["b"] = val - # b0 - # -- @property def b0(self): """ @@ -412,8 +163,6 @@ def b0(self): def b0(self, val): self["b0"] = val - # baxis - # ----- @property def baxis(self): """ @@ -423,244 +172,6 @@ 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 @@ -671,8 +182,6 @@ def baxis(self): def baxis(self, val): self["baxis"] = val - # bsrc - # ---- @property def bsrc(self): """ @@ -691,8 +200,6 @@ def bsrc(self): def bsrc(self, val): self["bsrc"] = val - # carpet - # ------ @property def carpet(self): """ @@ -714,8 +221,6 @@ def carpet(self): def carpet(self, val): self["carpet"] = val - # cheaterslope - # ------------ @property def cheaterslope(self): """ @@ -735,8 +240,6 @@ def cheaterslope(self): def cheaterslope(self, val): self["cheaterslope"] = val - # color - # ----- @property def color(self): """ @@ -750,42 +253,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -797,8 +265,6 @@ def color(self): def color(self, val): self["color"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -820,8 +286,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -841,8 +305,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # da - # -- @property def da(self): """ @@ -861,8 +323,6 @@ def da(self): def da(self, val): self["da"] = val - # db - # -- @property def db(self): """ @@ -881,8 +341,6 @@ def db(self): def db(self, val): self["db"] = val - # font - # ---- @property def font(self): """ @@ -894,52 +352,6 @@ 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 @@ -950,8 +362,6 @@ def font(self): def font(self, val): self["font"] = val - # ids - # --- @property def ids(self): """ @@ -972,8 +382,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -992,8 +400,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # legend - # ------ @property def legend(self): """ @@ -1017,8 +423,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -1028,13 +432,6 @@ 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 @@ -1045,8 +442,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -1072,8 +467,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -1093,8 +486,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # meta - # ---- @property def meta(self): """ @@ -1121,8 +512,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -1141,8 +530,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -1163,8 +550,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -1183,8 +568,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # stream - # ------ @property def stream(self): """ @@ -1194,18 +577,6 @@ 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 @@ -1216,8 +587,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # uid - # --- @property def uid(self): """ @@ -1238,8 +607,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1271,8 +638,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # visible - # ------- @property def visible(self): """ @@ -1294,8 +659,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # x - # - @property def x(self): """ @@ -1316,8 +679,6 @@ def x(self): def x(self, val): self["x"] = val - # xaxis - # ----- @property def xaxis(self): """ @@ -1341,8 +702,6 @@ def xaxis(self): def xaxis(self, val): self["xaxis"] = val - # xsrc - # ---- @property def xsrc(self): """ @@ -1361,8 +720,6 @@ def xsrc(self): def xsrc(self, val): self["xsrc"] = val - # y - # - @property def y(self): """ @@ -1381,8 +738,6 @@ def y(self): def y(self, val): self["y"] = val - # yaxis - # ----- @property def yaxis(self): """ @@ -1406,8 +761,6 @@ def yaxis(self): def yaxis(self, val): self["yaxis"] = val - # ysrc - # ---- @property def ysrc(self): """ @@ -1426,8 +779,6 @@ def ysrc(self): def ysrc(self, val): self["ysrc"] = val - # zorder - # ------ @property def zorder(self): """ @@ -1448,14 +799,10 @@ def zorder(self): def zorder(self, val): self["zorder"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1847,14 +1194,11 @@ def __init__( ------- Carpet """ - super(Carpet, self).__init__("carpet") - + super().__init__("carpet") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1869,172 +1213,48 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("a", arg, a) + self._set_property("a0", arg, a0) + self._set_property("aaxis", arg, aaxis) + self._set_property("asrc", arg, asrc) + self._set_property("b", arg, b) + self._set_property("b0", arg, b0) + self._set_property("baxis", arg, baxis) + self._set_property("bsrc", arg, bsrc) + self._set_property("carpet", arg, carpet) + self._set_property("cheaterslope", arg, cheaterslope) + self._set_property("color", arg, color) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("da", arg, da) + self._set_property("db", arg, db) + self._set_property("font", arg, font) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("legend", arg, legend) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("stream", arg, stream) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("visible", arg, visible) + self._set_property("x", arg, x) + self._set_property("xaxis", arg, xaxis) + self._set_property("xsrc", arg, xsrc) + self._set_property("y", arg, y) + self._set_property("yaxis", arg, yaxis) + self._set_property("ysrc", arg, ysrc) + self._set_property("zorder", arg, zorder) self._props["type"] = "carpet" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_choropleth.py b/plotly/graph_objs/_choropleth.py index bad982915b..8f1475e671 100644 --- a/plotly/graph_objs/_choropleth.py +++ b/plotly/graph_objs/_choropleth.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Choropleth(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "choropleth" _valid_props = { @@ -60,8 +61,6 @@ class Choropleth(_BaseTraceType): "zsrc", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -85,8 +84,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -112,8 +109,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -123,272 +118,6 @@ 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 @@ -399,8 +128,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -452,8 +179,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -475,8 +200,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -496,8 +219,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # featureidkey - # ------------ @property def featureidkey(self): """ @@ -520,8 +241,6 @@ def featureidkey(self): def featureidkey(self, val): self["featureidkey"] = val - # geo - # --- @property def geo(self): """ @@ -545,8 +264,6 @@ def geo(self): def geo(self, val): self["geo"] = val - # geojson - # ------- @property def geojson(self): """ @@ -568,8 +285,6 @@ def geojson(self): def geojson(self, val): self["geojson"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -594,8 +309,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -615,8 +328,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -626,44 +337,6 @@ 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 @@ -674,8 +347,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -718,8 +389,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -739,8 +408,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -761,8 +428,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -782,8 +447,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -804,8 +467,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -824,8 +485,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # legend - # ------ @property def legend(self): """ @@ -849,8 +508,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -872,8 +529,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -883,13 +538,6 @@ 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 @@ -900,8 +548,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -927,8 +573,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -948,8 +592,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # locationmode - # ------------ @property def locationmode(self): """ @@ -973,8 +615,6 @@ def locationmode(self): def locationmode(self, val): self["locationmode"] = val - # locations - # --------- @property def locations(self): """ @@ -994,8 +634,6 @@ def locations(self): def locations(self, val): self["locations"] = val - # locationssrc - # ------------ @property def locationssrc(self): """ @@ -1015,8 +653,6 @@ def locationssrc(self): def locationssrc(self, val): self["locationssrc"] = val - # marker - # ------ @property def marker(self): """ @@ -1026,18 +662,6 @@ 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 @@ -1048,8 +672,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # meta - # ---- @property def meta(self): """ @@ -1076,8 +698,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -1096,8 +716,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -1118,8 +736,6 @@ def name(self): def name(self, val): self["name"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -1140,8 +756,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # selected - # -------- @property def selected(self): """ @@ -1151,13 +765,6 @@ 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 @@ -1168,8 +775,6 @@ def selected(self): def selected(self, val): self["selected"] = val - # selectedpoints - # -------------- @property def selectedpoints(self): """ @@ -1192,8 +797,6 @@ def selectedpoints(self): def selectedpoints(self, val): self["selectedpoints"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -1213,8 +816,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # showscale - # --------- @property def showscale(self): """ @@ -1234,8 +835,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # stream - # ------ @property def stream(self): """ @@ -1245,18 +844,6 @@ 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 @@ -1267,8 +854,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # text - # ---- @property def text(self): """ @@ -1289,8 +874,6 @@ def text(self): def text(self, val): self["text"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1309,8 +892,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # uid - # --- @property def uid(self): """ @@ -1331,8 +912,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1364,8 +943,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # unselected - # ---------- @property def unselected(self): """ @@ -1375,13 +952,6 @@ 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 @@ -1392,8 +962,6 @@ def unselected(self): def unselected(self, val): self["unselected"] = val - # visible - # ------- @property def visible(self): """ @@ -1415,8 +983,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # z - # - @property def z(self): """ @@ -1435,8 +1001,6 @@ def z(self): def z(self, val): self["z"] = val - # zauto - # ----- @property def zauto(self): """ @@ -1458,8 +1022,6 @@ def zauto(self): def zauto(self, val): self["zauto"] = val - # zmax - # ---- @property def zmax(self): """ @@ -1479,8 +1041,6 @@ def zmax(self): def zmax(self, val): self["zmax"] = val - # zmid - # ---- @property def zmid(self): """ @@ -1501,8 +1061,6 @@ def zmid(self): def zmid(self, val): self["zmid"] = val - # zmin - # ---- @property def zmin(self): """ @@ -1522,8 +1080,6 @@ def zmin(self): def zmin(self, val): self["zmin"] = val - # zsrc - # ---- @property def zsrc(self): """ @@ -1542,14 +1098,10 @@ def zsrc(self): def zsrc(self, val): self["zsrc"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -2129,14 +1681,11 @@ def __init__( ------- Choropleth """ - super(Choropleth, self).__init__("choropleth") - + super().__init__("choropleth") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2151,216 +1700,59 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("featureidkey", arg, featureidkey) + self._set_property("geo", arg, geo) + self._set_property("geojson", arg, geojson) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("locationmode", arg, locationmode) + self._set_property("locations", arg, locations) + self._set_property("locationssrc", arg, locationssrc) + self._set_property("marker", arg, marker) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("reversescale", arg, reversescale) + self._set_property("selected", arg, selected) + self._set_property("selectedpoints", arg, selectedpoints) + self._set_property("showlegend", arg, showlegend) + self._set_property("showscale", arg, showscale) + self._set_property("stream", arg, stream) + self._set_property("text", arg, text) + self._set_property("textsrc", arg, textsrc) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("unselected", arg, unselected) + self._set_property("visible", arg, visible) + self._set_property("z", arg, z) + self._set_property("zauto", arg, zauto) + self._set_property("zmax", arg, zmax) + self._set_property("zmid", arg, zmid) + self._set_property("zmin", arg, zmin) + self._set_property("zsrc", arg, zsrc) self._props["type"] = "choropleth" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_choroplethmap.py b/plotly/graph_objs/_choroplethmap.py index 86edbf5362..4585a3c03e 100644 --- a/plotly/graph_objs/_choroplethmap.py +++ b/plotly/graph_objs/_choroplethmap.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Choroplethmap(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "choroplethmap" _valid_props = { @@ -60,8 +61,6 @@ class Choroplethmap(_BaseTraceType): "zsrc", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -85,8 +84,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # below - # ----- @property def below(self): """ @@ -109,8 +106,6 @@ def below(self): def below(self, val): self["below"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -136,8 +131,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -147,273 +140,6 @@ 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 @@ -424,8 +150,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -477,8 +201,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -500,8 +222,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -521,8 +241,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # featureidkey - # ------------ @property def featureidkey(self): """ @@ -544,8 +262,6 @@ def featureidkey(self): def featureidkey(self, val): self["featureidkey"] = val - # geojson - # ------- @property def geojson(self): """ @@ -566,8 +282,6 @@ def geojson(self): def geojson(self, val): self["geojson"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -592,8 +306,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -613,8 +325,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -624,44 +334,6 @@ 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 @@ -672,8 +344,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -717,8 +387,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -738,8 +406,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -760,8 +426,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -781,8 +445,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -803,8 +465,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -823,8 +483,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # legend - # ------ @property def legend(self): """ @@ -848,8 +506,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -871,8 +527,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -882,13 +536,6 @@ 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 @@ -899,8 +546,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -926,8 +571,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -947,8 +590,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # locations - # --------- @property def locations(self): """ @@ -968,8 +609,6 @@ def locations(self): def locations(self, val): self["locations"] = val - # locationssrc - # ------------ @property def locationssrc(self): """ @@ -989,8 +628,6 @@ def locationssrc(self): def locationssrc(self, val): self["locationssrc"] = val - # marker - # ------ @property def marker(self): """ @@ -1000,18 +637,6 @@ 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 @@ -1022,8 +647,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # meta - # ---- @property def meta(self): """ @@ -1050,8 +673,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -1070,8 +691,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -1092,8 +711,6 @@ def name(self): def name(self, val): self["name"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -1114,8 +731,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # selected - # -------- @property def selected(self): """ @@ -1125,13 +740,6 @@ 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 @@ -1142,8 +750,6 @@ def selected(self): def selected(self, val): self["selected"] = val - # selectedpoints - # -------------- @property def selectedpoints(self): """ @@ -1166,8 +772,6 @@ def selectedpoints(self): def selectedpoints(self, val): self["selectedpoints"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -1187,8 +791,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # showscale - # --------- @property def showscale(self): """ @@ -1208,8 +810,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # stream - # ------ @property def stream(self): """ @@ -1219,18 +819,6 @@ 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 @@ -1241,8 +829,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # subplot - # ------- @property def subplot(self): """ @@ -1266,8 +852,6 @@ def subplot(self): def subplot(self, val): self["subplot"] = val - # text - # ---- @property def text(self): """ @@ -1288,8 +872,6 @@ def text(self): def text(self, val): self["text"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1308,8 +890,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # uid - # --- @property def uid(self): """ @@ -1330,8 +910,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1363,8 +941,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # unselected - # ---------- @property def unselected(self): """ @@ -1374,13 +950,6 @@ 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 @@ -1391,8 +960,6 @@ def unselected(self): def unselected(self, val): self["unselected"] = val - # visible - # ------- @property def visible(self): """ @@ -1414,8 +981,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # z - # - @property def z(self): """ @@ -1434,8 +999,6 @@ def z(self): def z(self, val): self["z"] = val - # zauto - # ----- @property def zauto(self): """ @@ -1457,8 +1020,6 @@ def zauto(self): def zauto(self, val): self["zauto"] = val - # zmax - # ---- @property def zmax(self): """ @@ -1478,8 +1039,6 @@ def zmax(self): def zmax(self, val): self["zmax"] = val - # zmid - # ---- @property def zmid(self): """ @@ -1500,8 +1059,6 @@ def zmid(self): def zmid(self, val): self["zmid"] = val - # zmin - # ---- @property def zmin(self): """ @@ -1521,8 +1078,6 @@ def zmin(self): def zmin(self, val): self["zmin"] = val - # zsrc - # ---- @property def zsrc(self): """ @@ -1541,14 +1096,10 @@ def zsrc(self): def zsrc(self, val): self["zsrc"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -2124,14 +1675,11 @@ def __init__( ------- Choroplethmap """ - super(Choroplethmap, self).__init__("choroplethmap") - + super().__init__("choroplethmap") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2146,216 +1694,59 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("below", arg, below) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("featureidkey", arg, featureidkey) + self._set_property("geojson", arg, geojson) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("locations", arg, locations) + self._set_property("locationssrc", arg, locationssrc) + self._set_property("marker", arg, marker) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("reversescale", arg, reversescale) + self._set_property("selected", arg, selected) + self._set_property("selectedpoints", arg, selectedpoints) + self._set_property("showlegend", arg, showlegend) + self._set_property("showscale", arg, showscale) + self._set_property("stream", arg, stream) + self._set_property("subplot", arg, subplot) + self._set_property("text", arg, text) + self._set_property("textsrc", arg, textsrc) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("unselected", arg, unselected) + self._set_property("visible", arg, visible) + self._set_property("z", arg, z) + self._set_property("zauto", arg, zauto) + self._set_property("zmax", arg, zmax) + self._set_property("zmid", arg, zmid) + self._set_property("zmin", arg, zmin) + self._set_property("zsrc", arg, zsrc) self._props["type"] = "choroplethmap" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_choroplethmapbox.py b/plotly/graph_objs/_choroplethmapbox.py index 9169bfcc15..05b1448a95 100644 --- a/plotly/graph_objs/_choroplethmapbox.py +++ b/plotly/graph_objs/_choroplethmapbox.py @@ -1,3 +1,6 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy import warnings @@ -5,8 +8,6 @@ class Choroplethmapbox(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "choroplethmapbox" _valid_props = { @@ -61,8 +62,6 @@ class Choroplethmapbox(_BaseTraceType): "zsrc", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -86,8 +85,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # below - # ----- @property def below(self): """ @@ -110,8 +107,6 @@ def below(self): def below(self, val): self["below"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -137,8 +132,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -148,273 +141,6 @@ 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 @@ -425,8 +151,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -478,8 +202,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -501,8 +223,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -522,8 +242,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # featureidkey - # ------------ @property def featureidkey(self): """ @@ -545,8 +263,6 @@ def featureidkey(self): def featureidkey(self, val): self["featureidkey"] = val - # geojson - # ------- @property def geojson(self): """ @@ -567,8 +283,6 @@ def geojson(self): def geojson(self, val): self["geojson"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -593,8 +307,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -614,8 +326,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -625,44 +335,6 @@ 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 @@ -673,8 +345,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -718,8 +388,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -739,8 +407,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -761,8 +427,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -782,8 +446,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -804,8 +466,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -824,8 +484,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # legend - # ------ @property def legend(self): """ @@ -849,8 +507,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -872,8 +528,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -883,13 +537,6 @@ 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 @@ -900,8 +547,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -927,8 +572,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -948,8 +591,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # locations - # --------- @property def locations(self): """ @@ -969,8 +610,6 @@ def locations(self): def locations(self, val): self["locations"] = val - # locationssrc - # ------------ @property def locationssrc(self): """ @@ -990,8 +629,6 @@ def locationssrc(self): def locationssrc(self, val): self["locationssrc"] = val - # marker - # ------ @property def marker(self): """ @@ -1001,18 +638,6 @@ 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 @@ -1023,8 +648,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # meta - # ---- @property def meta(self): """ @@ -1051,8 +674,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -1071,8 +692,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -1093,8 +712,6 @@ def name(self): def name(self, val): self["name"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -1115,8 +732,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # selected - # -------- @property def selected(self): """ @@ -1126,13 +741,6 @@ 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 @@ -1143,8 +751,6 @@ def selected(self): def selected(self, val): self["selected"] = val - # selectedpoints - # -------------- @property def selectedpoints(self): """ @@ -1167,8 +773,6 @@ def selectedpoints(self): def selectedpoints(self, val): self["selectedpoints"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -1188,8 +792,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # showscale - # --------- @property def showscale(self): """ @@ -1209,8 +811,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # stream - # ------ @property def stream(self): """ @@ -1220,18 +820,6 @@ 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 @@ -1242,8 +830,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # subplot - # ------- @property def subplot(self): """ @@ -1271,8 +857,6 @@ def subplot(self): def subplot(self, val): self["subplot"] = val - # text - # ---- @property def text(self): """ @@ -1293,8 +877,6 @@ def text(self): def text(self, val): self["text"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1313,8 +895,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # uid - # --- @property def uid(self): """ @@ -1335,8 +915,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1368,8 +946,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # unselected - # ---------- @property def unselected(self): """ @@ -1379,13 +955,6 @@ 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 @@ -1396,8 +965,6 @@ def unselected(self): def unselected(self, val): self["unselected"] = val - # visible - # ------- @property def visible(self): """ @@ -1419,8 +986,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # z - # - @property def z(self): """ @@ -1439,8 +1004,6 @@ def z(self): def z(self, val): self["z"] = val - # zauto - # ----- @property def zauto(self): """ @@ -1462,8 +1025,6 @@ def zauto(self): def zauto(self, val): self["zauto"] = val - # zmax - # ---- @property def zmax(self): """ @@ -1483,8 +1044,6 @@ def zmax(self): def zmax(self, val): self["zmax"] = val - # zmid - # ---- @property def zmid(self): """ @@ -1505,8 +1064,6 @@ def zmid(self): def zmid(self, val): self["zmid"] = val - # zmin - # ---- @property def zmin(self): """ @@ -1526,8 +1083,6 @@ def zmin(self): def zmin(self, val): self["zmin"] = val - # zsrc - # ---- @property def zsrc(self): """ @@ -1546,14 +1101,10 @@ def zsrc(self): def zsrc(self, val): self["zsrc"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -2144,14 +1695,11 @@ def __init__( ------- Choroplethmapbox """ - super(Choroplethmapbox, self).__init__("choroplethmapbox") - + super().__init__("choroplethmapbox") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2166,218 +1714,61 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("below", arg, below) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("featureidkey", arg, featureidkey) + self._set_property("geojson", arg, geojson) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("locations", arg, locations) + self._set_property("locationssrc", arg, locationssrc) + self._set_property("marker", arg, marker) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("reversescale", arg, reversescale) + self._set_property("selected", arg, selected) + self._set_property("selectedpoints", arg, selectedpoints) + self._set_property("showlegend", arg, showlegend) + self._set_property("showscale", arg, showscale) + self._set_property("stream", arg, stream) + self._set_property("subplot", arg, subplot) + self._set_property("text", arg, text) + self._set_property("textsrc", arg, textsrc) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("unselected", arg, unselected) + self._set_property("visible", arg, visible) + self._set_property("z", arg, z) + self._set_property("zauto", arg, zauto) + self._set_property("zmax", arg, zmax) + self._set_property("zmid", arg, zmid) + self._set_property("zmin", arg, zmin) + self._set_property("zsrc", arg, zsrc) self._props["type"] = "choroplethmapbox" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False warnings.warn( diff --git a/plotly/graph_objs/_cone.py b/plotly/graph_objs/_cone.py index 1c902d7183..fe64fc64ca 100644 --- a/plotly/graph_objs/_cone.py +++ b/plotly/graph_objs/_cone.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Cone(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "cone" _valid_props = { @@ -73,8 +74,6 @@ class Cone(_BaseTraceType): "zsrc", } - # anchor - # ------ @property def anchor(self): """ @@ -96,8 +95,6 @@ def anchor(self): def anchor(self, val): self["anchor"] = val - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -121,8 +118,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -144,8 +139,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -166,8 +159,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -189,8 +180,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -211,8 +200,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -238,8 +225,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -249,271 +234,6 @@ 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 @@ -524,8 +244,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -577,8 +295,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -600,8 +316,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -621,8 +335,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -647,8 +359,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -668,8 +378,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -679,44 +387,6 @@ 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 @@ -727,8 +397,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -772,8 +440,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -793,8 +459,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -815,8 +479,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -836,8 +498,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -858,8 +518,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -878,8 +536,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # legend - # ------ @property def legend(self): """ @@ -903,8 +559,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -926,8 +580,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -937,13 +589,6 @@ 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 @@ -954,8 +599,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -981,8 +624,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -1002,8 +643,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # lighting - # -------- @property def lighting(self): """ @@ -1013,33 +652,6 @@ 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 @@ -1050,8 +662,6 @@ def lighting(self): def lighting(self, val): self["lighting"] = val - # lightposition - # ------------- @property def lightposition(self): """ @@ -1061,18 +671,6 @@ 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 @@ -1083,8 +681,6 @@ def lightposition(self): def lightposition(self, val): self["lightposition"] = val - # meta - # ---- @property def meta(self): """ @@ -1111,8 +707,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -1131,8 +725,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -1153,8 +745,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -1178,8 +768,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -1200,8 +788,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # scene - # ----- @property def scene(self): """ @@ -1225,8 +811,6 @@ def scene(self): def scene(self, val): self["scene"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -1246,8 +830,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # showscale - # --------- @property def showscale(self): """ @@ -1267,8 +849,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # sizemode - # -------- @property def sizemode(self): """ @@ -1292,8 +872,6 @@ def sizemode(self): def sizemode(self, val): self["sizemode"] = val - # sizeref - # ------- @property def sizeref(self): """ @@ -1322,8 +900,6 @@ def sizeref(self): def sizeref(self, val): self["sizeref"] = val - # stream - # ------ @property def stream(self): """ @@ -1333,18 +909,6 @@ 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 @@ -1355,8 +919,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # text - # ---- @property def text(self): """ @@ -1379,8 +941,6 @@ def text(self): def text(self, val): self["text"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1399,8 +959,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # u - # - @property def u(self): """ @@ -1419,8 +977,6 @@ def u(self): def u(self, val): self["u"] = val - # uhoverformat - # ------------ @property def uhoverformat(self): """ @@ -1444,8 +1000,6 @@ def uhoverformat(self): def uhoverformat(self, val): self["uhoverformat"] = val - # uid - # --- @property def uid(self): """ @@ -1466,8 +1020,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1499,8 +1051,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # usrc - # ---- @property def usrc(self): """ @@ -1519,8 +1069,6 @@ def usrc(self): def usrc(self, val): self["usrc"] = val - # v - # - @property def v(self): """ @@ -1539,8 +1087,6 @@ def v(self): def v(self, val): self["v"] = val - # vhoverformat - # ------------ @property def vhoverformat(self): """ @@ -1564,8 +1110,6 @@ def vhoverformat(self): def vhoverformat(self, val): self["vhoverformat"] = val - # visible - # ------- @property def visible(self): """ @@ -1587,8 +1131,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # vsrc - # ---- @property def vsrc(self): """ @@ -1607,8 +1149,6 @@ def vsrc(self): def vsrc(self, val): self["vsrc"] = val - # w - # - @property def w(self): """ @@ -1627,8 +1167,6 @@ def w(self): def w(self, val): self["w"] = val - # whoverformat - # ------------ @property def whoverformat(self): """ @@ -1652,8 +1190,6 @@ def whoverformat(self): def whoverformat(self, val): self["whoverformat"] = val - # wsrc - # ---- @property def wsrc(self): """ @@ -1672,8 +1208,6 @@ def wsrc(self): def wsrc(self, val): self["wsrc"] = val - # x - # - @property def x(self): """ @@ -1693,8 +1227,6 @@ def x(self): def x(self, val): self["x"] = val - # xhoverformat - # ------------ @property def xhoverformat(self): """ @@ -1724,8 +1256,6 @@ def xhoverformat(self): def xhoverformat(self, val): self["xhoverformat"] = val - # xsrc - # ---- @property def xsrc(self): """ @@ -1744,8 +1274,6 @@ def xsrc(self): def xsrc(self, val): self["xsrc"] = val - # y - # - @property def y(self): """ @@ -1765,8 +1293,6 @@ def y(self): def y(self, val): self["y"] = val - # yhoverformat - # ------------ @property def yhoverformat(self): """ @@ -1796,8 +1322,6 @@ def yhoverformat(self): def yhoverformat(self, val): self["yhoverformat"] = val - # ysrc - # ---- @property def ysrc(self): """ @@ -1816,8 +1340,6 @@ def ysrc(self): def ysrc(self, val): self["ysrc"] = val - # z - # - @property def z(self): """ @@ -1837,8 +1359,6 @@ def z(self): def z(self, val): self["z"] = val - # zhoverformat - # ------------ @property def zhoverformat(self): """ @@ -1868,8 +1388,6 @@ def zhoverformat(self): def zhoverformat(self, val): self["zhoverformat"] = val - # zsrc - # ---- @property def zsrc(self): """ @@ -1888,14 +1406,10 @@ def zsrc(self): def zsrc(self, val): self["zsrc"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -2659,14 +2173,11 @@ def __init__( ------- Cone """ - super(Cone, self).__init__("cone") - + super().__init__("cone") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2681,268 +2192,72 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("anchor", arg, anchor) + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("lighting", arg, lighting) + self._set_property("lightposition", arg, lightposition) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("reversescale", arg, reversescale) + self._set_property("scene", arg, scene) + self._set_property("showlegend", arg, showlegend) + self._set_property("showscale", arg, showscale) + self._set_property("sizemode", arg, sizemode) + self._set_property("sizeref", arg, sizeref) + self._set_property("stream", arg, stream) + self._set_property("text", arg, text) + self._set_property("textsrc", arg, textsrc) + self._set_property("u", arg, u) + self._set_property("uhoverformat", arg, uhoverformat) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("usrc", arg, usrc) + self._set_property("v", arg, v) + self._set_property("vhoverformat", arg, vhoverformat) + self._set_property("visible", arg, visible) + self._set_property("vsrc", arg, vsrc) + self._set_property("w", arg, w) + self._set_property("whoverformat", arg, whoverformat) + self._set_property("wsrc", arg, wsrc) + self._set_property("x", arg, x) + self._set_property("xhoverformat", arg, xhoverformat) + self._set_property("xsrc", arg, xsrc) + self._set_property("y", arg, y) + self._set_property("yhoverformat", arg, yhoverformat) + self._set_property("ysrc", arg, ysrc) + self._set_property("z", arg, z) + self._set_property("zhoverformat", arg, zhoverformat) + self._set_property("zsrc", arg, zsrc) self._props["type"] = "cone" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_contour.py b/plotly/graph_objs/_contour.py index 889a1aa7dc..d64583be87 100644 --- a/plotly/graph_objs/_contour.py +++ b/plotly/graph_objs/_contour.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Contour(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "contour" _valid_props = { @@ -85,8 +86,6 @@ class Contour(_BaseTraceType): "zsrc", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -110,8 +109,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # autocontour - # ----------- @property def autocontour(self): """ @@ -133,8 +130,6 @@ def autocontour(self): def autocontour(self, val): self["autocontour"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -160,8 +155,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -171,272 +164,6 @@ 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 @@ -447,8 +174,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -500,8 +225,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # connectgaps - # ----------- @property def connectgaps(self): """ @@ -522,8 +245,6 @@ def connectgaps(self): def connectgaps(self, val): self["connectgaps"] = val - # contours - # -------- @property def contours(self): """ @@ -533,72 +254,6 @@ 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 @@ -609,8 +264,6 @@ def contours(self): def contours(self, val): self["contours"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -632,8 +285,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -653,8 +304,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # dx - # -- @property def dx(self): """ @@ -673,8 +322,6 @@ def dx(self): def dx(self, val): self["dx"] = val - # dy - # -- @property def dy(self): """ @@ -693,8 +340,6 @@ def dy(self): def dy(self, val): self["dy"] = val - # fillcolor - # --------- @property def fillcolor(self): """ @@ -707,42 +352,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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to contour.colorscale @@ -756,8 +366,6 @@ def fillcolor(self): def fillcolor(self, val): self["fillcolor"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -782,8 +390,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -803,8 +409,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -814,44 +418,6 @@ 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 @@ -862,8 +428,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hoverongaps - # ----------- @property def hoverongaps(self): """ @@ -883,8 +447,6 @@ def hoverongaps(self): def hoverongaps(self, val): self["hoverongaps"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -927,8 +489,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -948,8 +508,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -968,8 +526,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -989,8 +545,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -1011,8 +565,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -1031,8 +583,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # legend - # ------ @property def legend(self): """ @@ -1056,8 +606,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -1079,8 +627,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -1090,13 +636,6 @@ 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 @@ -1107,8 +646,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -1134,8 +671,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -1155,8 +690,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # line - # ---- @property def line(self): """ @@ -1166,26 +699,6 @@ 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 @@ -1196,8 +709,6 @@ def line(self): def line(self, val): self["line"] = val - # meta - # ---- @property def meta(self): """ @@ -1224,8 +735,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -1244,8 +753,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -1266,8 +773,6 @@ def name(self): def name(self, val): self["name"] = val - # ncontours - # --------- @property def ncontours(self): """ @@ -1290,8 +795,6 @@ def ncontours(self): def ncontours(self, val): self["ncontours"] = val - # opacity - # ------- @property def opacity(self): """ @@ -1310,8 +813,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -1332,8 +833,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -1353,8 +852,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # showscale - # --------- @property def showscale(self): """ @@ -1374,8 +871,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # stream - # ------ @property def stream(self): """ @@ -1385,18 +880,6 @@ 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 @@ -1407,8 +890,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # text - # ---- @property def text(self): """ @@ -1427,8 +908,6 @@ def text(self): def text(self, val): self["text"] = val - # textfont - # -------- @property def textfont(self): """ @@ -1441,52 +920,6 @@ 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 @@ -1497,8 +930,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1517,8 +948,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # texttemplate - # ------------ @property def texttemplate(self): """ @@ -1552,8 +981,6 @@ def texttemplate(self): def texttemplate(self, val): self["texttemplate"] = val - # transpose - # --------- @property def transpose(self): """ @@ -1572,8 +999,6 @@ def transpose(self): def transpose(self, val): self["transpose"] = val - # uid - # --- @property def uid(self): """ @@ -1594,8 +1019,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1627,8 +1050,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # visible - # ------- @property def visible(self): """ @@ -1650,8 +1071,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # x - # - @property def x(self): """ @@ -1670,8 +1089,6 @@ def x(self): def x(self, val): self["x"] = val - # x0 - # -- @property def x0(self): """ @@ -1691,8 +1108,6 @@ def x0(self): def x0(self, val): self["x0"] = val - # xaxis - # ----- @property def xaxis(self): """ @@ -1716,8 +1131,6 @@ def xaxis(self): def xaxis(self, val): self["xaxis"] = val - # xcalendar - # --------- @property def xcalendar(self): """ @@ -1740,8 +1153,6 @@ def xcalendar(self): def xcalendar(self, val): self["xcalendar"] = val - # xhoverformat - # ------------ @property def xhoverformat(self): """ @@ -1771,8 +1182,6 @@ def xhoverformat(self): def xhoverformat(self, val): self["xhoverformat"] = val - # xperiod - # ------- @property def xperiod(self): """ @@ -1793,8 +1202,6 @@ def xperiod(self): def xperiod(self, val): self["xperiod"] = val - # xperiod0 - # -------- @property def xperiod0(self): """ @@ -1816,8 +1223,6 @@ def xperiod0(self): def xperiod0(self, val): self["xperiod0"] = val - # xperiodalignment - # ---------------- @property def xperiodalignment(self): """ @@ -1838,8 +1243,6 @@ def xperiodalignment(self): def xperiodalignment(self, val): self["xperiodalignment"] = val - # xsrc - # ---- @property def xsrc(self): """ @@ -1858,8 +1261,6 @@ def xsrc(self): def xsrc(self, val): self["xsrc"] = val - # xtype - # ----- @property def xtype(self): """ @@ -1882,8 +1283,6 @@ def xtype(self): def xtype(self, val): self["xtype"] = val - # y - # - @property def y(self): """ @@ -1902,8 +1301,6 @@ def y(self): def y(self, val): self["y"] = val - # y0 - # -- @property def y0(self): """ @@ -1923,8 +1320,6 @@ def y0(self): def y0(self, val): self["y0"] = val - # yaxis - # ----- @property def yaxis(self): """ @@ -1948,8 +1343,6 @@ def yaxis(self): def yaxis(self, val): self["yaxis"] = val - # ycalendar - # --------- @property def ycalendar(self): """ @@ -1972,8 +1365,6 @@ def ycalendar(self): def ycalendar(self, val): self["ycalendar"] = val - # yhoverformat - # ------------ @property def yhoverformat(self): """ @@ -2003,8 +1394,6 @@ def yhoverformat(self): def yhoverformat(self, val): self["yhoverformat"] = val - # yperiod - # ------- @property def yperiod(self): """ @@ -2025,8 +1414,6 @@ def yperiod(self): def yperiod(self, val): self["yperiod"] = val - # yperiod0 - # -------- @property def yperiod0(self): """ @@ -2048,8 +1435,6 @@ def yperiod0(self): def yperiod0(self, val): self["yperiod0"] = val - # yperiodalignment - # ---------------- @property def yperiodalignment(self): """ @@ -2070,8 +1455,6 @@ def yperiodalignment(self): def yperiodalignment(self, val): self["yperiodalignment"] = val - # ysrc - # ---- @property def ysrc(self): """ @@ -2090,8 +1473,6 @@ def ysrc(self): def ysrc(self, val): self["ysrc"] = val - # ytype - # ----- @property def ytype(self): """ @@ -2114,8 +1495,6 @@ def ytype(self): def ytype(self, val): self["ytype"] = val - # z - # - @property def z(self): """ @@ -2134,8 +1513,6 @@ def z(self): def z(self, val): self["z"] = val - # zauto - # ----- @property def zauto(self): """ @@ -2157,8 +1534,6 @@ def zauto(self): def zauto(self, val): self["zauto"] = val - # zhoverformat - # ------------ @property def zhoverformat(self): """ @@ -2182,8 +1557,6 @@ def zhoverformat(self): def zhoverformat(self, val): self["zhoverformat"] = val - # zmax - # ---- @property def zmax(self): """ @@ -2203,8 +1576,6 @@ def zmax(self): def zmax(self, val): self["zmax"] = val - # zmid - # ---- @property def zmid(self): """ @@ -2225,8 +1596,6 @@ def zmid(self): def zmid(self, val): self["zmid"] = val - # zmin - # ---- @property def zmin(self): """ @@ -2246,8 +1615,6 @@ def zmin(self): def zmin(self, val): self["zmin"] = val - # zorder - # ------ @property def zorder(self): """ @@ -2268,8 +1635,6 @@ def zorder(self): def zorder(self, val): self["zorder"] = val - # zsrc - # ---- @property def zsrc(self): """ @@ -2288,14 +1653,10 @@ def zsrc(self): def zsrc(self, val): self["zsrc"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -3156,14 +2517,11 @@ def __init__( ------- Contour """ - super(Contour, self).__init__("contour") - + super().__init__("contour") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -3178,316 +2536,84 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("autocontour", arg, autocontour) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("connectgaps", arg, connectgaps) + self._set_property("contours", arg, contours) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("dx", arg, dx) + self._set_property("dy", arg, dy) + self._set_property("fillcolor", arg, fillcolor) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hoverongaps", arg, hoverongaps) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("line", arg, line) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("ncontours", arg, ncontours) + self._set_property("opacity", arg, opacity) + self._set_property("reversescale", arg, reversescale) + self._set_property("showlegend", arg, showlegend) + self._set_property("showscale", arg, showscale) + self._set_property("stream", arg, stream) + self._set_property("text", arg, text) + self._set_property("textfont", arg, textfont) + self._set_property("textsrc", arg, textsrc) + self._set_property("texttemplate", arg, texttemplate) + self._set_property("transpose", arg, transpose) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("visible", arg, visible) + self._set_property("x", arg, x) + self._set_property("x0", arg, x0) + self._set_property("xaxis", arg, xaxis) + self._set_property("xcalendar", arg, xcalendar) + self._set_property("xhoverformat", arg, xhoverformat) + self._set_property("xperiod", arg, xperiod) + self._set_property("xperiod0", arg, xperiod0) + self._set_property("xperiodalignment", arg, xperiodalignment) + self._set_property("xsrc", arg, xsrc) + self._set_property("xtype", arg, xtype) + self._set_property("y", arg, y) + self._set_property("y0", arg, y0) + self._set_property("yaxis", arg, yaxis) + self._set_property("ycalendar", arg, ycalendar) + self._set_property("yhoverformat", arg, yhoverformat) + self._set_property("yperiod", arg, yperiod) + self._set_property("yperiod0", arg, yperiod0) + self._set_property("yperiodalignment", arg, yperiodalignment) + self._set_property("ysrc", arg, ysrc) + self._set_property("ytype", arg, ytype) + self._set_property("z", arg, z) + self._set_property("zauto", arg, zauto) + self._set_property("zhoverformat", arg, zhoverformat) + self._set_property("zmax", arg, zmax) + self._set_property("zmid", arg, zmid) + self._set_property("zmin", arg, zmin) + self._set_property("zorder", arg, zorder) + self._set_property("zsrc", arg, zsrc) self._props["type"] = "contour" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_contourcarpet.py b/plotly/graph_objs/_contourcarpet.py index 02dd7d6040..f6aadf6ea7 100644 --- a/plotly/graph_objs/_contourcarpet.py +++ b/plotly/graph_objs/_contourcarpet.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Contourcarpet(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "contourcarpet" _valid_props = { @@ -66,8 +67,6 @@ class Contourcarpet(_BaseTraceType): "zsrc", } - # a - # - @property def a(self): """ @@ -86,8 +85,6 @@ def a(self): def a(self, val): self["a"] = val - # a0 - # -- @property def a0(self): """ @@ -107,8 +104,6 @@ def a0(self): def a0(self, val): self["a0"] = val - # asrc - # ---- @property def asrc(self): """ @@ -127,8 +122,6 @@ def asrc(self): def asrc(self, val): self["asrc"] = val - # atype - # ----- @property def atype(self): """ @@ -151,8 +144,6 @@ def atype(self): def atype(self, val): self["atype"] = val - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -176,8 +167,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # autocontour - # ----------- @property def autocontour(self): """ @@ -199,8 +188,6 @@ def autocontour(self): def autocontour(self, val): self["autocontour"] = val - # b - # - @property def b(self): """ @@ -219,8 +206,6 @@ def b(self): def b(self, val): self["b"] = val - # b0 - # -- @property def b0(self): """ @@ -240,8 +225,6 @@ def b0(self): def b0(self, val): self["b0"] = val - # bsrc - # ---- @property def bsrc(self): """ @@ -260,8 +243,6 @@ def bsrc(self): def bsrc(self, val): self["bsrc"] = val - # btype - # ----- @property def btype(self): """ @@ -284,8 +265,6 @@ def btype(self): def btype(self, val): self["btype"] = val - # carpet - # ------ @property def carpet(self): """ @@ -306,8 +285,6 @@ def carpet(self): def carpet(self, val): self["carpet"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -333,8 +310,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -344,273 +319,6 @@ 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 @@ -621,8 +329,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -674,8 +380,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # contours - # -------- @property def contours(self): """ @@ -685,70 +389,6 @@ 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 @@ -759,8 +399,6 @@ def contours(self): def contours(self, val): self["contours"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -782,8 +420,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -803,8 +439,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # da - # -- @property def da(self): """ @@ -823,8 +457,6 @@ def da(self): def da(self, val): self["da"] = val - # db - # -- @property def db(self): """ @@ -843,8 +475,6 @@ def db(self): def db(self, val): self["db"] = val - # fillcolor - # --------- @property def fillcolor(self): """ @@ -857,42 +487,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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to contourcarpet.colorscale @@ -906,8 +501,6 @@ def fillcolor(self): def fillcolor(self, val): self["fillcolor"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -926,8 +519,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -947,8 +538,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -969,8 +558,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -989,8 +576,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # legend - # ------ @property def legend(self): """ @@ -1014,8 +599,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -1037,8 +620,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -1048,13 +629,6 @@ 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 @@ -1065,8 +639,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -1092,8 +664,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -1113,8 +683,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # line - # ---- @property def line(self): """ @@ -1124,26 +692,6 @@ 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 @@ -1154,8 +702,6 @@ def line(self): def line(self, val): self["line"] = val - # meta - # ---- @property def meta(self): """ @@ -1182,8 +728,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -1202,8 +746,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -1224,8 +766,6 @@ def name(self): def name(self, val): self["name"] = val - # ncontours - # --------- @property def ncontours(self): """ @@ -1248,8 +788,6 @@ def ncontours(self): def ncontours(self, val): self["ncontours"] = val - # opacity - # ------- @property def opacity(self): """ @@ -1268,8 +806,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -1290,8 +826,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -1311,8 +845,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # showscale - # --------- @property def showscale(self): """ @@ -1332,8 +864,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # stream - # ------ @property def stream(self): """ @@ -1343,18 +873,6 @@ 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 @@ -1365,8 +883,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # text - # ---- @property def text(self): """ @@ -1385,8 +901,6 @@ def text(self): def text(self, val): self["text"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1405,8 +919,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # transpose - # --------- @property def transpose(self): """ @@ -1425,8 +937,6 @@ def transpose(self): def transpose(self, val): self["transpose"] = val - # uid - # --- @property def uid(self): """ @@ -1447,8 +957,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1480,8 +988,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # visible - # ------- @property def visible(self): """ @@ -1503,8 +1009,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # xaxis - # ----- @property def xaxis(self): """ @@ -1528,8 +1032,6 @@ def xaxis(self): def xaxis(self, val): self["xaxis"] = val - # yaxis - # ----- @property def yaxis(self): """ @@ -1553,8 +1055,6 @@ def yaxis(self): def yaxis(self, val): self["yaxis"] = val - # z - # - @property def z(self): """ @@ -1573,8 +1073,6 @@ def z(self): def z(self, val): self["z"] = val - # zauto - # ----- @property def zauto(self): """ @@ -1596,8 +1094,6 @@ def zauto(self): def zauto(self, val): self["zauto"] = val - # zmax - # ---- @property def zmax(self): """ @@ -1617,8 +1113,6 @@ def zmax(self): def zmax(self, val): self["zmax"] = val - # zmid - # ---- @property def zmid(self): """ @@ -1639,8 +1133,6 @@ def zmid(self): def zmid(self, val): self["zmid"] = val - # zmin - # ---- @property def zmin(self): """ @@ -1660,8 +1152,6 @@ def zmin(self): def zmin(self, val): self["zmin"] = val - # zorder - # ------ @property def zorder(self): """ @@ -1682,8 +1172,6 @@ def zorder(self): def zorder(self, val): self["zorder"] = val - # zsrc - # ---- @property def zsrc(self): """ @@ -1702,14 +1190,10 @@ def zsrc(self): def zsrc(self, val): self["zsrc"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -2273,14 +1757,11 @@ def __init__( ------- Contourcarpet """ - super(Contourcarpet, self).__init__("contourcarpet") - + super().__init__("contourcarpet") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2295,240 +1776,65 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("a", arg, a) + self._set_property("a0", arg, a0) + self._set_property("asrc", arg, asrc) + self._set_property("atype", arg, atype) + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("autocontour", arg, autocontour) + self._set_property("b", arg, b) + self._set_property("b0", arg, b0) + self._set_property("bsrc", arg, bsrc) + self._set_property("btype", arg, btype) + self._set_property("carpet", arg, carpet) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("contours", arg, contours) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("da", arg, da) + self._set_property("db", arg, db) + self._set_property("fillcolor", arg, fillcolor) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("line", arg, line) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("ncontours", arg, ncontours) + self._set_property("opacity", arg, opacity) + self._set_property("reversescale", arg, reversescale) + self._set_property("showlegend", arg, showlegend) + self._set_property("showscale", arg, showscale) + self._set_property("stream", arg, stream) + self._set_property("text", arg, text) + self._set_property("textsrc", arg, textsrc) + self._set_property("transpose", arg, transpose) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("visible", arg, visible) + self._set_property("xaxis", arg, xaxis) + self._set_property("yaxis", arg, yaxis) + self._set_property("z", arg, z) + self._set_property("zauto", arg, zauto) + self._set_property("zmax", arg, zmax) + self._set_property("zmid", arg, zmid) + self._set_property("zmin", arg, zmin) + self._set_property("zorder", arg, zorder) + self._set_property("zsrc", arg, zsrc) self._props["type"] = "contourcarpet" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_densitymap.py b/plotly/graph_objs/_densitymap.py index 5fc0b4bd1d..d63b2fc81b 100644 --- a/plotly/graph_objs/_densitymap.py +++ b/plotly/graph_objs/_densitymap.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Densitymap(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "densitymap" _valid_props = { @@ -59,8 +60,6 @@ class Densitymap(_BaseTraceType): "zsrc", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -84,8 +83,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # below - # ----- @property def below(self): """ @@ -108,8 +105,6 @@ def below(self): def below(self, val): self["below"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -135,8 +130,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -146,272 +139,6 @@ 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 @@ -422,8 +149,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -475,8 +200,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -498,8 +221,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -519,8 +240,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -545,8 +264,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -566,8 +283,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -577,44 +292,6 @@ 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 @@ -625,8 +302,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -669,8 +344,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -690,8 +363,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -716,8 +387,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -737,8 +406,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -759,8 +426,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -779,8 +444,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # lat - # --- @property def lat(self): """ @@ -799,8 +462,6 @@ def lat(self): def lat(self, val): self["lat"] = val - # latsrc - # ------ @property def latsrc(self): """ @@ -819,8 +480,6 @@ def latsrc(self): def latsrc(self, val): self["latsrc"] = val - # legend - # ------ @property def legend(self): """ @@ -844,8 +503,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -867,8 +524,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -878,13 +533,6 @@ 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 @@ -895,8 +543,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -922,8 +568,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -943,8 +587,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # lon - # --- @property def lon(self): """ @@ -963,8 +605,6 @@ def lon(self): def lon(self, val): self["lon"] = val - # lonsrc - # ------ @property def lonsrc(self): """ @@ -983,8 +623,6 @@ def lonsrc(self): def lonsrc(self, val): self["lonsrc"] = val - # meta - # ---- @property def meta(self): """ @@ -1011,8 +649,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -1031,8 +667,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -1053,8 +687,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -1073,8 +705,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # radius - # ------ @property def radius(self): """ @@ -1096,8 +726,6 @@ def radius(self): def radius(self, val): self["radius"] = val - # radiussrc - # --------- @property def radiussrc(self): """ @@ -1116,8 +744,6 @@ def radiussrc(self): def radiussrc(self, val): self["radiussrc"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -1138,8 +764,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -1159,8 +783,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # showscale - # --------- @property def showscale(self): """ @@ -1180,8 +802,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # stream - # ------ @property def stream(self): """ @@ -1191,18 +811,6 @@ 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 @@ -1213,8 +821,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # subplot - # ------- @property def subplot(self): """ @@ -1238,8 +844,6 @@ def subplot(self): def subplot(self, val): self["subplot"] = val - # text - # ---- @property def text(self): """ @@ -1265,8 +869,6 @@ def text(self): def text(self, val): self["text"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1285,8 +887,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # uid - # --- @property def uid(self): """ @@ -1307,8 +907,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1340,8 +938,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # visible - # ------- @property def visible(self): """ @@ -1363,8 +959,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # z - # - @property def z(self): """ @@ -1384,8 +978,6 @@ def z(self): def z(self, val): self["z"] = val - # zauto - # ----- @property def zauto(self): """ @@ -1407,8 +999,6 @@ def zauto(self): def zauto(self, val): self["zauto"] = val - # zmax - # ---- @property def zmax(self): """ @@ -1428,8 +1018,6 @@ def zmax(self): def zmax(self, val): self["zmax"] = val - # zmid - # ---- @property def zmid(self): """ @@ -1450,8 +1038,6 @@ def zmid(self): def zmid(self, val): self["zmid"] = val - # zmin - # ---- @property def zmin(self): """ @@ -1471,8 +1057,6 @@ def zmin(self): def zmin(self, val): self["zmin"] = val - # zsrc - # ---- @property def zsrc(self): """ @@ -1491,14 +1075,10 @@ def zsrc(self): def zsrc(self, val): self["zsrc"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -2069,14 +1649,11 @@ def __init__( ------- Densitymap """ - super(Densitymap, self).__init__("densitymap") - + super().__init__("densitymap") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2091,212 +1668,58 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("below", arg, below) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("lat", arg, lat) + self._set_property("latsrc", arg, latsrc) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("lon", arg, lon) + self._set_property("lonsrc", arg, lonsrc) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("radius", arg, radius) + self._set_property("radiussrc", arg, radiussrc) + self._set_property("reversescale", arg, reversescale) + self._set_property("showlegend", arg, showlegend) + self._set_property("showscale", arg, showscale) + self._set_property("stream", arg, stream) + self._set_property("subplot", arg, subplot) + self._set_property("text", arg, text) + self._set_property("textsrc", arg, textsrc) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("visible", arg, visible) + self._set_property("z", arg, z) + self._set_property("zauto", arg, zauto) + self._set_property("zmax", arg, zmax) + self._set_property("zmid", arg, zmid) + self._set_property("zmin", arg, zmin) + self._set_property("zsrc", arg, zsrc) self._props["type"] = "densitymap" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_densitymapbox.py b/plotly/graph_objs/_densitymapbox.py index 3623258306..44c03e0eeb 100644 --- a/plotly/graph_objs/_densitymapbox.py +++ b/plotly/graph_objs/_densitymapbox.py @@ -1,3 +1,6 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy import warnings @@ -5,8 +8,6 @@ class Densitymapbox(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "densitymapbox" _valid_props = { @@ -60,8 +61,6 @@ class Densitymapbox(_BaseTraceType): "zsrc", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -85,8 +84,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # below - # ----- @property def below(self): """ @@ -109,8 +106,6 @@ def below(self): def below(self, val): self["below"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -136,8 +131,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -147,273 +140,6 @@ 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 @@ -424,8 +150,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -477,8 +201,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -500,8 +222,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -521,8 +241,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -547,8 +265,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -568,8 +284,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -579,44 +293,6 @@ 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 @@ -627,8 +303,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -671,8 +345,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -692,8 +364,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -718,8 +388,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -739,8 +407,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -761,8 +427,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -781,8 +445,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # lat - # --- @property def lat(self): """ @@ -801,8 +463,6 @@ def lat(self): def lat(self, val): self["lat"] = val - # latsrc - # ------ @property def latsrc(self): """ @@ -821,8 +481,6 @@ def latsrc(self): def latsrc(self, val): self["latsrc"] = val - # legend - # ------ @property def legend(self): """ @@ -846,8 +504,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -869,8 +525,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -880,13 +534,6 @@ 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 @@ -897,8 +544,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -924,8 +569,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -945,8 +588,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # lon - # --- @property def lon(self): """ @@ -965,8 +606,6 @@ def lon(self): def lon(self, val): self["lon"] = val - # lonsrc - # ------ @property def lonsrc(self): """ @@ -985,8 +624,6 @@ def lonsrc(self): def lonsrc(self, val): self["lonsrc"] = val - # meta - # ---- @property def meta(self): """ @@ -1013,8 +650,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -1033,8 +668,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -1055,8 +688,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -1075,8 +706,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # radius - # ------ @property def radius(self): """ @@ -1098,8 +727,6 @@ def radius(self): def radius(self, val): self["radius"] = val - # radiussrc - # --------- @property def radiussrc(self): """ @@ -1118,8 +745,6 @@ def radiussrc(self): def radiussrc(self, val): self["radiussrc"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -1140,8 +765,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -1161,8 +784,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # showscale - # --------- @property def showscale(self): """ @@ -1182,8 +803,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # stream - # ------ @property def stream(self): """ @@ -1193,18 +812,6 @@ 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 @@ -1215,8 +822,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # subplot - # ------- @property def subplot(self): """ @@ -1244,8 +849,6 @@ def subplot(self): def subplot(self, val): self["subplot"] = val - # text - # ---- @property def text(self): """ @@ -1271,8 +874,6 @@ def text(self): def text(self, val): self["text"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1291,8 +892,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # uid - # --- @property def uid(self): """ @@ -1313,8 +912,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1346,8 +943,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # visible - # ------- @property def visible(self): """ @@ -1369,8 +964,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # z - # - @property def z(self): """ @@ -1390,8 +983,6 @@ def z(self): def z(self, val): self["z"] = val - # zauto - # ----- @property def zauto(self): """ @@ -1413,8 +1004,6 @@ def zauto(self): def zauto(self, val): self["zauto"] = val - # zmax - # ---- @property def zmax(self): """ @@ -1434,8 +1023,6 @@ def zmax(self): def zmax(self, val): self["zmax"] = val - # zmid - # ---- @property def zmid(self): """ @@ -1456,8 +1043,6 @@ def zmid(self): def zmid(self, val): self["zmid"] = val - # zmin - # ---- @property def zmin(self): """ @@ -1477,8 +1062,6 @@ def zmin(self): def zmin(self, val): self["zmin"] = val - # zsrc - # ---- @property def zsrc(self): """ @@ -1497,14 +1080,10 @@ def zsrc(self): def zsrc(self, val): self["zsrc"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -2089,14 +1668,11 @@ def __init__( ------- Densitymapbox """ - super(Densitymapbox, self).__init__("densitymapbox") - + super().__init__("densitymapbox") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2111,214 +1687,60 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("below", arg, below) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("lat", arg, lat) + self._set_property("latsrc", arg, latsrc) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("lon", arg, lon) + self._set_property("lonsrc", arg, lonsrc) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("radius", arg, radius) + self._set_property("radiussrc", arg, radiussrc) + self._set_property("reversescale", arg, reversescale) + self._set_property("showlegend", arg, showlegend) + self._set_property("showscale", arg, showscale) + self._set_property("stream", arg, stream) + self._set_property("subplot", arg, subplot) + self._set_property("text", arg, text) + self._set_property("textsrc", arg, textsrc) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("visible", arg, visible) + self._set_property("z", arg, z) + self._set_property("zauto", arg, zauto) + self._set_property("zmax", arg, zmax) + self._set_property("zmid", arg, zmid) + self._set_property("zmin", arg, zmin) + self._set_property("zsrc", arg, zsrc) self._props["type"] = "densitymapbox" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False warnings.warn( diff --git a/plotly/graph_objs/_deprecations.py b/plotly/graph_objs/_deprecations.py index d8caedcb79..aa08325deb 100644 --- a/plotly/graph_objs/_deprecations.py +++ b/plotly/graph_objs/_deprecations.py @@ -39,7 +39,7 @@ def __init__(self, *args, **kwargs): """, DeprecationWarning, ) - super(Data, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) class Annotations(list): @@ -67,7 +67,7 @@ def __init__(self, *args, **kwargs): """, DeprecationWarning, ) - super(Annotations, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) class Frames(list): @@ -92,7 +92,7 @@ def __init__(self, *args, **kwargs): """, DeprecationWarning, ) - super(Frames, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) class AngularAxis(dict): @@ -120,7 +120,7 @@ def __init__(self, *args, **kwargs): """, DeprecationWarning, ) - super(AngularAxis, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) class Annotation(dict): @@ -148,7 +148,7 @@ def __init__(self, *args, **kwargs): """, DeprecationWarning, ) - super(Annotation, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) class ColorBar(dict): @@ -179,7 +179,7 @@ def __init__(self, *args, **kwargs): """, DeprecationWarning, ) - super(ColorBar, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) class Contours(dict): @@ -210,7 +210,7 @@ def __init__(self, *args, **kwargs): """, DeprecationWarning, ) - super(Contours, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) class ErrorX(dict): @@ -241,7 +241,7 @@ def __init__(self, *args, **kwargs): """, DeprecationWarning, ) - super(ErrorX, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) class ErrorY(dict): @@ -272,7 +272,7 @@ def __init__(self, *args, **kwargs): """, DeprecationWarning, ) - super(ErrorY, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) class ErrorZ(dict): @@ -297,7 +297,7 @@ def __init__(self, *args, **kwargs): """, DeprecationWarning, ) - super(ErrorZ, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) class Font(dict): @@ -328,7 +328,7 @@ def __init__(self, *args, **kwargs): """, DeprecationWarning, ) - super(Font, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) class Legend(dict): @@ -353,7 +353,7 @@ def __init__(self, *args, **kwargs): """, DeprecationWarning, ) - super(Legend, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) class Line(dict): @@ -384,7 +384,7 @@ def __init__(self, *args, **kwargs): """, DeprecationWarning, ) - super(Line, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) class Margin(dict): @@ -409,7 +409,7 @@ def __init__(self, *args, **kwargs): """, DeprecationWarning, ) - super(Margin, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) class Marker(dict): @@ -440,7 +440,7 @@ def __init__(self, *args, **kwargs): """, DeprecationWarning, ) - super(Marker, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) class RadialAxis(dict): @@ -468,7 +468,7 @@ def __init__(self, *args, **kwargs): """, DeprecationWarning, ) - super(RadialAxis, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) class Scene(dict): @@ -493,7 +493,7 @@ def __init__(self, *args, **kwargs): """, DeprecationWarning, ) - super(Scene, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) class Stream(dict): @@ -521,7 +521,7 @@ def __init__(self, *args, **kwargs): """, DeprecationWarning, ) - super(Stream, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) class XAxis(dict): @@ -549,7 +549,7 @@ def __init__(self, *args, **kwargs): """, DeprecationWarning, ) - super(XAxis, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) class YAxis(dict): @@ -577,7 +577,7 @@ def __init__(self, *args, **kwargs): """, DeprecationWarning, ) - super(YAxis, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) class ZAxis(dict): @@ -602,7 +602,7 @@ def __init__(self, *args, **kwargs): """, DeprecationWarning, ) - super(ZAxis, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) class XBins(dict): @@ -630,7 +630,7 @@ def __init__(self, *args, **kwargs): """, DeprecationWarning, ) - super(XBins, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) class YBins(dict): @@ -658,7 +658,7 @@ def __init__(self, *args, **kwargs): """, DeprecationWarning, ) - super(YBins, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) class Trace(dict): @@ -695,7 +695,7 @@ def __init__(self, *args, **kwargs): """, DeprecationWarning, ) - super(Trace, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) class Histogram2dcontour(dict): @@ -720,4 +720,4 @@ def __init__(self, *args, **kwargs): """, DeprecationWarning, ) - super(Histogram2dcontour, self).__init__(*args, **kwargs) + super().__init__(*args, **kwargs) diff --git a/plotly/graph_objs/_figure.py b/plotly/graph_objs/_figure.py index 4dd8e88548..e61a9b46db 100644 --- a/plotly/graph_objs/_figure.py +++ b/plotly/graph_objs/_figure.py @@ -1,7 +1,11 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseFigure class Figure(BaseFigure): + def __init__( self, data=None, layout=None, frames=None, skip_invalid=False, **kwargs ): @@ -48,552 +52,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 +59,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,7 +70,7 @@ 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().__init__(data, layout, frames, skip_invalid, **kwargs) def update(self, dict1=None, overwrite=False, **kwargs) -> "Figure": """ @@ -689,7 +121,7 @@ def update(self, dict1=None, overwrite=False, **kwargs) -> "Figure": Updated figure """ - return super(Figure, self).update(dict1, overwrite, **kwargs) + return super().update(dict1, overwrite, **kwargs) def update_traces( self, @@ -754,7 +186,7 @@ def update_traces( Returns the Figure object that the method was called on """ - return super(Figure, self).update_traces( + return super().update_traces( patch, selector, row, col, secondary_y, overwrite, **kwargs ) @@ -784,7 +216,7 @@ def update_layout(self, dict1=None, overwrite=False, **kwargs) -> "Figure": The Figure object that the update_layout method was called on """ - return super(Figure, self).update_layout(dict1, overwrite, **kwargs) + return super().update_layout(dict1, overwrite, **kwargs) def for_each_trace( self, fn, selector=None, row=None, col=None, secondary_y=None @@ -832,7 +264,7 @@ def for_each_trace( Returns the Figure object that the method was called on """ - return super(Figure, self).for_each_trace(fn, selector, row, col, secondary_y) + return super().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 @@ -909,9 +341,7 @@ def add_trace( Figure(...) """ - return super(Figure, self).add_trace( - trace, row, col, secondary_y, exclude_empty_subplots - ) + return super().add_trace(trace, row, col, secondary_y, exclude_empty_subplots) def add_traces( self, @@ -989,7 +419,7 @@ def add_traces( Figure(...) """ - return super(Figure, self).add_traces( + return super().add_traces( data, rows, cols, secondary_ys, exclude_empty_subplots ) @@ -1041,7 +471,7 @@ def add_vline( 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( + return super().add_vline( x, row, col, exclude_empty_subplots, annotation, **kwargs ) @@ -1093,7 +523,7 @@ def add_hline( 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( + return super().add_hline( y, row, col, exclude_empty_subplots, annotation, **kwargs ) @@ -1149,7 +579,7 @@ def add_vrect( 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( + return super().add_vrect( x0, x1, row, col, exclude_empty_subplots, annotation, **kwargs ) @@ -1205,7 +635,7 @@ def add_hrect( 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( + return super().add_hrect( y0, y1, row, col, exclude_empty_subplots, annotation, **kwargs ) @@ -1217,7 +647,7 @@ def set_subplots(self, rows=None, cols=None, **make_subplots_args) -> "Figure": plotly.subplots.make_subplots accepts. """ - return super(Figure, self).set_subplots(rows, cols, **make_subplots_args) + return super().set_subplots(rows, cols, **make_subplots_args) def add_bar( self, diff --git a/plotly/graph_objs/_figurewidget.py b/plotly/graph_objs/_figurewidget.py index 4ced40e75f..5955507022 100644 --- a/plotly/graph_objs/_figurewidget.py +++ b/plotly/graph_objs/_figurewidget.py @@ -1,7 +1,11 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basewidget import BaseFigureWidget class FigureWidget(BaseFigureWidget): + def __init__( self, data=None, layout=None, frames=None, skip_invalid=False, **kwargs ): @@ -48,552 +52,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 +59,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,7 +70,7 @@ 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().__init__(data, layout, frames, skip_invalid, **kwargs) def update(self, dict1=None, overwrite=False, **kwargs) -> "FigureWidget": """ @@ -689,7 +121,7 @@ def update(self, dict1=None, overwrite=False, **kwargs) -> "FigureWidget": Updated figure """ - return super(FigureWidget, self).update(dict1, overwrite, **kwargs) + return super().update(dict1, overwrite, **kwargs) def update_traces( self, @@ -754,7 +186,7 @@ def update_traces( Returns the Figure object that the method was called on """ - return super(FigureWidget, self).update_traces( + return super().update_traces( patch, selector, row, col, secondary_y, overwrite, **kwargs ) @@ -784,7 +216,7 @@ def update_layout(self, dict1=None, overwrite=False, **kwargs) -> "FigureWidget" The Figure object that the update_layout method was called on """ - return super(FigureWidget, self).update_layout(dict1, overwrite, **kwargs) + return super().update_layout(dict1, overwrite, **kwargs) def for_each_trace( self, fn, selector=None, row=None, col=None, secondary_y=None @@ -832,9 +264,7 @@ def for_each_trace( Returns the Figure object that the method was called on """ - return super(FigureWidget, self).for_each_trace( - fn, selector, row, col, secondary_y - ) + return super().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 @@ -911,9 +341,7 @@ def add_trace( Figure(...) """ - return super(FigureWidget, self).add_trace( - trace, row, col, secondary_y, exclude_empty_subplots - ) + return super().add_trace(trace, row, col, secondary_y, exclude_empty_subplots) def add_traces( self, @@ -991,7 +419,7 @@ def add_traces( Figure(...) """ - return super(FigureWidget, self).add_traces( + return super().add_traces( data, rows, cols, secondary_ys, exclude_empty_subplots ) @@ -1043,7 +471,7 @@ def add_vline( 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( + return super().add_vline( x, row, col, exclude_empty_subplots, annotation, **kwargs ) @@ -1095,7 +523,7 @@ def add_hline( 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( + return super().add_hline( y, row, col, exclude_empty_subplots, annotation, **kwargs ) @@ -1151,7 +579,7 @@ def add_vrect( 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( + return super().add_vrect( x0, x1, row, col, exclude_empty_subplots, annotation, **kwargs ) @@ -1207,7 +635,7 @@ def add_hrect( 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( + return super().add_hrect( y0, y1, row, col, exclude_empty_subplots, annotation, **kwargs ) @@ -1221,7 +649,7 @@ def set_subplots( plotly.subplots.make_subplots accepts. """ - return super(FigureWidget, self).set_subplots(rows, cols, **make_subplots_args) + return super().set_subplots(rows, cols, **make_subplots_args) def add_bar( self, diff --git a/plotly/graph_objs/_frame.py b/plotly/graph_objs/_frame.py index a5782f794d..1841465fe0 100644 --- a/plotly/graph_objs/_frame.py +++ b/plotly/graph_objs/_frame.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseFrameHierarchyType as _BaseFrameHierarchyType import copy as _copy class Frame(_BaseFrameHierarchyType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "frame" _valid_props = {"baseframe", "data", "group", "layout", "name", "traces"} - # baseframe - # --------- @property def baseframe(self): """ @@ -34,8 +33,6 @@ def baseframe(self): def baseframe(self, val): self["baseframe"] = val - # data - # ---- @property def data(self): """ @@ -52,8 +49,6 @@ def data(self): def data(self, val): self["data"] = val - # group - # ----- @property def group(self): """ @@ -74,8 +69,6 @@ def group(self): def group(self, val): self["group"] = val - # layout - # ------ @property def layout(self): """ @@ -92,8 +85,6 @@ def layout(self): def layout(self, val): self["layout"] = val - # name - # ---- @property def name(self): """ @@ -113,8 +104,6 @@ def name(self): def name(self, val): self["name"] = val - # traces - # ------ @property def traces(self): """ @@ -133,8 +122,6 @@ def traces(self): def traces(self, val): self["traces"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -204,14 +191,11 @@ def __init__( ------- Frame """ - super(Frame, self).__init__("frames") - + super().__init__("frames") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -226,42 +210,14 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("baseframe", arg, baseframe) + self._set_property("data", arg, data) + self._set_property("group", arg, group) + self._set_property("layout", arg, layout) + self._set_property("name", arg, name) + self._set_property("traces", arg, traces) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_funnel.py b/plotly/graph_objs/_funnel.py index 020103db49..4120a125c0 100644 --- a/plotly/graph_objs/_funnel.py +++ b/plotly/graph_objs/_funnel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Funnel(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "funnel" _valid_props = { @@ -78,8 +79,6 @@ class Funnel(_BaseTraceType): "zorder", } - # alignmentgroup - # -------------- @property def alignmentgroup(self): """ @@ -101,8 +100,6 @@ def alignmentgroup(self): def alignmentgroup(self, val): self["alignmentgroup"] = val - # cliponaxis - # ---------- @property def cliponaxis(self): """ @@ -124,8 +121,6 @@ def cliponaxis(self): def cliponaxis(self, val): self["cliponaxis"] = val - # connector - # --------- @property def connector(self): """ @@ -135,18 +130,6 @@ 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 @@ -157,8 +140,6 @@ def connector(self): def connector(self, val): self["connector"] = val - # constraintext - # ------------- @property def constraintext(self): """ @@ -179,8 +160,6 @@ def constraintext(self): def constraintext(self, val): self["constraintext"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -202,8 +181,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -223,8 +200,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # dx - # -- @property def dx(self): """ @@ -243,8 +218,6 @@ def dx(self): def dx(self, val): self["dx"] = val - # dy - # -- @property def dy(self): """ @@ -263,8 +236,6 @@ def dy(self): def dy(self, val): self["dy"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -289,8 +260,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -310,8 +279,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -321,44 +288,6 @@ 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 @@ -369,8 +298,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -415,8 +342,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -436,8 +361,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -462,8 +385,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -483,8 +404,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -505,8 +424,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -525,8 +442,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # insidetextanchor - # ---------------- @property def insidetextanchor(self): """ @@ -547,8 +462,6 @@ def insidetextanchor(self): def insidetextanchor(self, val): self["insidetextanchor"] = val - # insidetextfont - # -------------- @property def insidetextfont(self): """ @@ -560,79 +473,6 @@ 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 @@ -643,8 +483,6 @@ def insidetextfont(self): def insidetextfont(self, val): self["insidetextfont"] = val - # legend - # ------ @property def legend(self): """ @@ -668,8 +506,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -691,8 +527,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -702,13 +536,6 @@ 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 @@ -719,8 +546,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -746,8 +571,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -767,8 +590,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # marker - # ------ @property def marker(self): """ @@ -778,104 +599,6 @@ 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 @@ -886,8 +609,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # meta - # ---- @property def meta(self): """ @@ -914,8 +635,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -934,8 +653,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -956,8 +673,6 @@ def name(self): def name(self, val): self["name"] = val - # offset - # ------ @property def offset(self): """ @@ -978,8 +693,6 @@ def offset(self): def offset(self, val): self["offset"] = val - # offsetgroup - # ----------- @property def offsetgroup(self): """ @@ -1001,8 +714,6 @@ def offsetgroup(self): def offsetgroup(self, val): self["offsetgroup"] = val - # opacity - # ------- @property def opacity(self): """ @@ -1021,8 +732,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -1047,8 +756,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outsidetextfont - # --------------- @property def outsidetextfont(self): """ @@ -1060,79 +767,6 @@ 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 @@ -1143,8 +777,6 @@ def outsidetextfont(self): def outsidetextfont(self, val): self["outsidetextfont"] = val - # selectedpoints - # -------------- @property def selectedpoints(self): """ @@ -1167,8 +799,6 @@ def selectedpoints(self): def selectedpoints(self, val): self["selectedpoints"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -1188,8 +818,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # stream - # ------ @property def stream(self): """ @@ -1199,18 +827,6 @@ 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 @@ -1221,8 +837,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # text - # ---- @property def text(self): """ @@ -1248,8 +862,6 @@ def text(self): def text(self, val): self["text"] = val - # textangle - # --------- @property def textangle(self): """ @@ -1273,8 +885,6 @@ def textangle(self): def textangle(self, val): self["textangle"] = val - # textfont - # -------- @property def textfont(self): """ @@ -1286,79 +896,6 @@ 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 @@ -1369,8 +906,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # textinfo - # -------- @property def textinfo(self): """ @@ -1394,8 +929,6 @@ def textinfo(self): def textinfo(self, val): self["textinfo"] = val - # textposition - # ------------ @property def textposition(self): """ @@ -1423,8 +956,6 @@ def textposition(self): def textposition(self, val): self["textposition"] = val - # textpositionsrc - # --------------- @property def textpositionsrc(self): """ @@ -1444,8 +975,6 @@ def textpositionsrc(self): def textpositionsrc(self, val): self["textpositionsrc"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1464,8 +993,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # texttemplate - # ------------ @property def texttemplate(self): """ @@ -1500,8 +1027,6 @@ def texttemplate(self): def texttemplate(self, val): self["texttemplate"] = val - # texttemplatesrc - # --------------- @property def texttemplatesrc(self): """ @@ -1521,8 +1046,6 @@ def texttemplatesrc(self): def texttemplatesrc(self, val): self["texttemplatesrc"] = val - # uid - # --- @property def uid(self): """ @@ -1543,8 +1066,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1576,8 +1097,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # visible - # ------- @property def visible(self): """ @@ -1599,8 +1118,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # width - # ----- @property def width(self): """ @@ -1619,8 +1136,6 @@ def width(self): def width(self, val): self["width"] = val - # x - # - @property def x(self): """ @@ -1639,8 +1154,6 @@ def x(self): def x(self, val): self["x"] = val - # x0 - # -- @property def x0(self): """ @@ -1660,8 +1173,6 @@ def x0(self): def x0(self, val): self["x0"] = val - # xaxis - # ----- @property def xaxis(self): """ @@ -1685,8 +1196,6 @@ def xaxis(self): def xaxis(self, val): self["xaxis"] = val - # xhoverformat - # ------------ @property def xhoverformat(self): """ @@ -1716,8 +1225,6 @@ def xhoverformat(self): def xhoverformat(self, val): self["xhoverformat"] = val - # xperiod - # ------- @property def xperiod(self): """ @@ -1738,8 +1245,6 @@ def xperiod(self): def xperiod(self, val): self["xperiod"] = val - # xperiod0 - # -------- @property def xperiod0(self): """ @@ -1761,8 +1266,6 @@ def xperiod0(self): def xperiod0(self, val): self["xperiod0"] = val - # xperiodalignment - # ---------------- @property def xperiodalignment(self): """ @@ -1783,8 +1286,6 @@ def xperiodalignment(self): def xperiodalignment(self, val): self["xperiodalignment"] = val - # xsrc - # ---- @property def xsrc(self): """ @@ -1803,8 +1304,6 @@ def xsrc(self): def xsrc(self, val): self["xsrc"] = val - # y - # - @property def y(self): """ @@ -1823,8 +1322,6 @@ def y(self): def y(self, val): self["y"] = val - # y0 - # -- @property def y0(self): """ @@ -1844,8 +1341,6 @@ def y0(self): def y0(self, val): self["y0"] = val - # yaxis - # ----- @property def yaxis(self): """ @@ -1869,8 +1364,6 @@ def yaxis(self): def yaxis(self, val): self["yaxis"] = val - # yhoverformat - # ------------ @property def yhoverformat(self): """ @@ -1900,8 +1393,6 @@ def yhoverformat(self): def yhoverformat(self, val): self["yhoverformat"] = val - # yperiod - # ------- @property def yperiod(self): """ @@ -1922,8 +1413,6 @@ def yperiod(self): def yperiod(self, val): self["yperiod"] = val - # yperiod0 - # -------- @property def yperiod0(self): """ @@ -1945,8 +1434,6 @@ def yperiod0(self): def yperiod0(self, val): self["yperiod0"] = val - # yperiodalignment - # ---------------- @property def yperiodalignment(self): """ @@ -1967,8 +1454,6 @@ def yperiodalignment(self): def yperiodalignment(self, val): self["yperiodalignment"] = val - # ysrc - # ---- @property def ysrc(self): """ @@ -1987,8 +1472,6 @@ def ysrc(self): def ysrc(self, val): self["ysrc"] = val - # zorder - # ------ @property def zorder(self): """ @@ -2009,14 +1492,10 @@ def zorder(self): def zorder(self, val): self["zorder"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -2821,14 +2300,11 @@ def __init__( ------- Funnel """ - super(Funnel, self).__init__("funnel") - + super().__init__("funnel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2843,288 +2319,77 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("alignmentgroup", arg, alignmentgroup) + self._set_property("cliponaxis", arg, cliponaxis) + self._set_property("connector", arg, connector) + self._set_property("constraintext", arg, constraintext) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("dx", arg, dx) + self._set_property("dy", arg, dy) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("insidetextanchor", arg, insidetextanchor) + self._set_property("insidetextfont", arg, insidetextfont) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("marker", arg, marker) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("offset", arg, offset) + self._set_property("offsetgroup", arg, offsetgroup) + self._set_property("opacity", arg, opacity) + self._set_property("orientation", arg, orientation) + self._set_property("outsidetextfont", arg, outsidetextfont) + self._set_property("selectedpoints", arg, selectedpoints) + self._set_property("showlegend", arg, showlegend) + self._set_property("stream", arg, stream) + self._set_property("text", arg, text) + self._set_property("textangle", arg, textangle) + self._set_property("textfont", arg, textfont) + self._set_property("textinfo", arg, textinfo) + self._set_property("textposition", arg, textposition) + self._set_property("textpositionsrc", arg, textpositionsrc) + self._set_property("textsrc", arg, textsrc) + self._set_property("texttemplate", arg, texttemplate) + self._set_property("texttemplatesrc", arg, texttemplatesrc) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("visible", arg, visible) + self._set_property("width", arg, width) + self._set_property("x", arg, x) + self._set_property("x0", arg, x0) + self._set_property("xaxis", arg, xaxis) + self._set_property("xhoverformat", arg, xhoverformat) + self._set_property("xperiod", arg, xperiod) + self._set_property("xperiod0", arg, xperiod0) + self._set_property("xperiodalignment", arg, xperiodalignment) + self._set_property("xsrc", arg, xsrc) + self._set_property("y", arg, y) + self._set_property("y0", arg, y0) + self._set_property("yaxis", arg, yaxis) + self._set_property("yhoverformat", arg, yhoverformat) + self._set_property("yperiod", arg, yperiod) + self._set_property("yperiod0", arg, yperiod0) + self._set_property("yperiodalignment", arg, yperiodalignment) + self._set_property("ysrc", arg, ysrc) + self._set_property("zorder", arg, zorder) self._props["type"] = "funnel" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_funnelarea.py b/plotly/graph_objs/_funnelarea.py index 9397fde43d..0761329b62 100644 --- a/plotly/graph_objs/_funnelarea.py +++ b/plotly/graph_objs/_funnelarea.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Funnelarea(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "funnelarea" _valid_props = { @@ -58,8 +59,6 @@ class Funnelarea(_BaseTraceType): "visible", } - # aspectratio - # ----------- @property def aspectratio(self): """ @@ -78,8 +77,6 @@ def aspectratio(self): def aspectratio(self, val): self["aspectratio"] = val - # baseratio - # --------- @property def baseratio(self): """ @@ -98,8 +95,6 @@ def baseratio(self): def baseratio(self, val): self["baseratio"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -121,8 +116,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -142,8 +135,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # dlabel - # ------ @property def dlabel(self): """ @@ -162,8 +153,6 @@ def dlabel(self): def dlabel(self, val): self["dlabel"] = val - # domain - # ------ @property def domain(self): """ @@ -173,23 +162,6 @@ 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 @@ -200,8 +172,6 @@ def domain(self): def domain(self, val): self["domain"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -226,8 +196,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -247,8 +215,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -258,44 +224,6 @@ 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 @@ -306,8 +234,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -352,8 +278,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -373,8 +297,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -399,8 +321,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -420,8 +340,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -442,8 +360,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -462,8 +378,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # insidetextfont - # -------------- @property def insidetextfont(self): """ @@ -475,79 +389,6 @@ 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 @@ -558,8 +399,6 @@ def insidetextfont(self): def insidetextfont(self, val): self["insidetextfont"] = val - # label0 - # ------ @property def label0(self): """ @@ -580,8 +419,6 @@ def label0(self): def label0(self, val): self["label0"] = val - # labels - # ------ @property def labels(self): """ @@ -604,8 +441,6 @@ def labels(self): def labels(self, val): self["labels"] = val - # labelssrc - # --------- @property def labelssrc(self): """ @@ -624,8 +459,6 @@ def labelssrc(self): def labelssrc(self, val): self["labelssrc"] = val - # legend - # ------ @property def legend(self): """ @@ -649,8 +482,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -672,8 +503,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -683,13 +512,6 @@ 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 @@ -700,8 +522,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -727,8 +547,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -748,8 +566,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # marker - # ------ @property def marker(self): """ @@ -759,22 +575,6 @@ 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 @@ -785,8 +585,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # meta - # ---- @property def meta(self): """ @@ -813,8 +611,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -833,8 +629,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -855,8 +649,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -875,8 +667,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # scalegroup - # ---------- @property def scalegroup(self): """ @@ -898,8 +688,6 @@ def scalegroup(self): def scalegroup(self, val): self["scalegroup"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -919,8 +707,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # stream - # ------ @property def stream(self): """ @@ -930,18 +716,6 @@ 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 @@ -952,8 +726,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # text - # ---- @property def text(self): """ @@ -976,8 +748,6 @@ def text(self): def text(self, val): self["text"] = val - # textfont - # -------- @property def textfont(self): """ @@ -989,79 +759,6 @@ 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 @@ -1072,8 +769,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # textinfo - # -------- @property def textinfo(self): """ @@ -1095,8 +790,6 @@ def textinfo(self): def textinfo(self, val): self["textinfo"] = val - # textposition - # ------------ @property def textposition(self): """ @@ -1117,8 +810,6 @@ def textposition(self): def textposition(self, val): self["textposition"] = val - # textpositionsrc - # --------------- @property def textpositionsrc(self): """ @@ -1138,8 +829,6 @@ def textpositionsrc(self): def textpositionsrc(self, val): self["textpositionsrc"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1158,8 +847,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # texttemplate - # ------------ @property def texttemplate(self): """ @@ -1193,8 +880,6 @@ def texttemplate(self): def texttemplate(self, val): self["texttemplate"] = val - # texttemplatesrc - # --------------- @property def texttemplatesrc(self): """ @@ -1214,8 +899,6 @@ def texttemplatesrc(self): def texttemplatesrc(self, val): self["texttemplatesrc"] = val - # title - # ----- @property def title(self): """ @@ -1225,16 +908,6 @@ 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 @@ -1245,8 +918,6 @@ def title(self): def title(self, val): self["title"] = val - # uid - # --- @property def uid(self): """ @@ -1267,8 +938,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1300,8 +969,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # values - # ------ @property def values(self): """ @@ -1321,8 +988,6 @@ def values(self): def values(self, val): self["values"] = val - # valuessrc - # --------- @property def valuessrc(self): """ @@ -1341,8 +1006,6 @@ def valuessrc(self): def valuessrc(self, val): self["valuessrc"] = val - # visible - # ------- @property def visible(self): """ @@ -1364,14 +1027,10 @@ def visible(self): def visible(self, val): self["visible"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1909,14 +1568,11 @@ def __init__( ------- Funnelarea """ - super(Funnelarea, self).__init__("funnelarea") - + super().__init__("funnelarea") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1931,208 +1587,57 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("aspectratio", arg, aspectratio) + self._set_property("baseratio", arg, baseratio) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("dlabel", arg, dlabel) + self._set_property("domain", arg, domain) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("insidetextfont", arg, insidetextfont) + self._set_property("label0", arg, label0) + self._set_property("labels", arg, labels) + self._set_property("labelssrc", arg, labelssrc) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("marker", arg, marker) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("scalegroup", arg, scalegroup) + self._set_property("showlegend", arg, showlegend) + self._set_property("stream", arg, stream) + self._set_property("text", arg, text) + self._set_property("textfont", arg, textfont) + self._set_property("textinfo", arg, textinfo) + self._set_property("textposition", arg, textposition) + self._set_property("textpositionsrc", arg, textpositionsrc) + self._set_property("textsrc", arg, textsrc) + self._set_property("texttemplate", arg, texttemplate) + self._set_property("texttemplatesrc", arg, texttemplatesrc) + self._set_property("title", arg, title) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("values", arg, values) + self._set_property("valuessrc", arg, valuessrc) + self._set_property("visible", arg, visible) self._props["type"] = "funnelarea" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_heatmap.py b/plotly/graph_objs/_heatmap.py index cd1b72c1e1..448e28d563 100644 --- a/plotly/graph_objs/_heatmap.py +++ b/plotly/graph_objs/_heatmap.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Heatmap(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "heatmap" _valid_props = { @@ -83,8 +84,6 @@ class Heatmap(_BaseTraceType): "zsrc", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -108,8 +107,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -135,8 +132,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -146,272 +141,6 @@ 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 @@ -422,8 +151,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -475,8 +202,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # connectgaps - # ----------- @property def connectgaps(self): """ @@ -498,8 +223,6 @@ def connectgaps(self): def connectgaps(self, val): self["connectgaps"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -521,8 +244,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -542,8 +263,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # dx - # -- @property def dx(self): """ @@ -562,8 +281,6 @@ def dx(self): def dx(self, val): self["dx"] = val - # dy - # -- @property def dy(self): """ @@ -582,8 +299,6 @@ def dy(self): def dy(self, val): self["dy"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -608,8 +323,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -629,8 +342,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -640,44 +351,6 @@ 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 @@ -688,8 +361,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hoverongaps - # ----------- @property def hoverongaps(self): """ @@ -709,8 +380,6 @@ def hoverongaps(self): def hoverongaps(self, val): self["hoverongaps"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -753,8 +422,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -774,8 +441,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -794,8 +459,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -815,8 +478,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -837,8 +498,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -857,8 +516,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # legend - # ------ @property def legend(self): """ @@ -882,8 +539,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -905,8 +560,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -916,13 +569,6 @@ 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 @@ -933,8 +579,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -960,8 +604,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -981,8 +623,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # meta - # ---- @property def meta(self): """ @@ -1009,8 +649,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -1029,8 +667,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -1051,8 +687,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -1071,8 +705,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -1093,8 +725,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -1114,8 +744,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # showscale - # --------- @property def showscale(self): """ @@ -1135,8 +763,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # stream - # ------ @property def stream(self): """ @@ -1146,18 +772,6 @@ 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 @@ -1168,8 +782,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # text - # ---- @property def text(self): """ @@ -1188,8 +800,6 @@ def text(self): def text(self, val): self["text"] = val - # textfont - # -------- @property def textfont(self): """ @@ -1201,52 +811,6 @@ 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 @@ -1257,8 +821,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1277,8 +839,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # texttemplate - # ------------ @property def texttemplate(self): """ @@ -1311,8 +871,6 @@ def texttemplate(self): def texttemplate(self, val): self["texttemplate"] = val - # transpose - # --------- @property def transpose(self): """ @@ -1331,8 +889,6 @@ def transpose(self): def transpose(self, val): self["transpose"] = val - # uid - # --- @property def uid(self): """ @@ -1353,8 +909,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1386,8 +940,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # visible - # ------- @property def visible(self): """ @@ -1409,8 +961,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # x - # - @property def x(self): """ @@ -1429,8 +979,6 @@ def x(self): def x(self, val): self["x"] = val - # x0 - # -- @property def x0(self): """ @@ -1450,8 +998,6 @@ def x0(self): def x0(self, val): self["x0"] = val - # xaxis - # ----- @property def xaxis(self): """ @@ -1475,8 +1021,6 @@ def xaxis(self): def xaxis(self, val): self["xaxis"] = val - # xcalendar - # --------- @property def xcalendar(self): """ @@ -1499,8 +1043,6 @@ def xcalendar(self): def xcalendar(self, val): self["xcalendar"] = val - # xgap - # ---- @property def xgap(self): """ @@ -1519,8 +1061,6 @@ def xgap(self): def xgap(self, val): self["xgap"] = val - # xhoverformat - # ------------ @property def xhoverformat(self): """ @@ -1550,8 +1090,6 @@ def xhoverformat(self): def xhoverformat(self, val): self["xhoverformat"] = val - # xperiod - # ------- @property def xperiod(self): """ @@ -1572,8 +1110,6 @@ def xperiod(self): def xperiod(self, val): self["xperiod"] = val - # xperiod0 - # -------- @property def xperiod0(self): """ @@ -1595,8 +1131,6 @@ def xperiod0(self): def xperiod0(self, val): self["xperiod0"] = val - # xperiodalignment - # ---------------- @property def xperiodalignment(self): """ @@ -1617,8 +1151,6 @@ def xperiodalignment(self): def xperiodalignment(self, val): self["xperiodalignment"] = val - # xsrc - # ---- @property def xsrc(self): """ @@ -1637,8 +1169,6 @@ def xsrc(self): def xsrc(self, val): self["xsrc"] = val - # xtype - # ----- @property def xtype(self): """ @@ -1661,8 +1191,6 @@ def xtype(self): def xtype(self, val): self["xtype"] = val - # y - # - @property def y(self): """ @@ -1681,8 +1209,6 @@ def y(self): def y(self, val): self["y"] = val - # y0 - # -- @property def y0(self): """ @@ -1702,8 +1228,6 @@ def y0(self): def y0(self, val): self["y0"] = val - # yaxis - # ----- @property def yaxis(self): """ @@ -1727,8 +1251,6 @@ def yaxis(self): def yaxis(self, val): self["yaxis"] = val - # ycalendar - # --------- @property def ycalendar(self): """ @@ -1751,8 +1273,6 @@ def ycalendar(self): def ycalendar(self, val): self["ycalendar"] = val - # ygap - # ---- @property def ygap(self): """ @@ -1771,8 +1291,6 @@ def ygap(self): def ygap(self, val): self["ygap"] = val - # yhoverformat - # ------------ @property def yhoverformat(self): """ @@ -1802,8 +1320,6 @@ def yhoverformat(self): def yhoverformat(self, val): self["yhoverformat"] = val - # yperiod - # ------- @property def yperiod(self): """ @@ -1824,8 +1340,6 @@ def yperiod(self): def yperiod(self, val): self["yperiod"] = val - # yperiod0 - # -------- @property def yperiod0(self): """ @@ -1847,8 +1361,6 @@ def yperiod0(self): def yperiod0(self, val): self["yperiod0"] = val - # yperiodalignment - # ---------------- @property def yperiodalignment(self): """ @@ -1869,8 +1381,6 @@ def yperiodalignment(self): def yperiodalignment(self, val): self["yperiodalignment"] = val - # ysrc - # ---- @property def ysrc(self): """ @@ -1889,8 +1399,6 @@ def ysrc(self): def ysrc(self, val): self["ysrc"] = val - # ytype - # ----- @property def ytype(self): """ @@ -1913,8 +1421,6 @@ def ytype(self): def ytype(self, val): self["ytype"] = val - # z - # - @property def z(self): """ @@ -1933,8 +1439,6 @@ def z(self): def z(self, val): self["z"] = val - # zauto - # ----- @property def zauto(self): """ @@ -1956,8 +1460,6 @@ def zauto(self): def zauto(self, val): self["zauto"] = val - # zhoverformat - # ------------ @property def zhoverformat(self): """ @@ -1981,8 +1483,6 @@ def zhoverformat(self): def zhoverformat(self, val): self["zhoverformat"] = val - # zmax - # ---- @property def zmax(self): """ @@ -2002,8 +1502,6 @@ def zmax(self): def zmax(self, val): self["zmax"] = val - # zmid - # ---- @property def zmid(self): """ @@ -2024,8 +1522,6 @@ def zmid(self): def zmid(self, val): self["zmid"] = val - # zmin - # ---- @property def zmin(self): """ @@ -2045,8 +1541,6 @@ def zmin(self): def zmin(self, val): self["zmin"] = val - # zorder - # ------ @property def zorder(self): """ @@ -2067,8 +1561,6 @@ def zorder(self): def zorder(self, val): self["zorder"] = val - # zsmooth - # ------- @property def zsmooth(self): """ @@ -2088,8 +1580,6 @@ def zsmooth(self): def zsmooth(self, val): self["zsmooth"] = val - # zsrc - # ---- @property def zsrc(self): """ @@ -2108,14 +1598,10 @@ def zsrc(self): def zsrc(self, val): self["zsrc"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -2948,14 +2434,11 @@ def __init__( ------- Heatmap """ - super(Heatmap, self).__init__("heatmap") - + super().__init__("heatmap") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2970,308 +2453,82 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("connectgaps", arg, connectgaps) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("dx", arg, dx) + self._set_property("dy", arg, dy) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hoverongaps", arg, hoverongaps) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("reversescale", arg, reversescale) + self._set_property("showlegend", arg, showlegend) + self._set_property("showscale", arg, showscale) + self._set_property("stream", arg, stream) + self._set_property("text", arg, text) + self._set_property("textfont", arg, textfont) + self._set_property("textsrc", arg, textsrc) + self._set_property("texttemplate", arg, texttemplate) + self._set_property("transpose", arg, transpose) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("visible", arg, visible) + self._set_property("x", arg, x) + self._set_property("x0", arg, x0) + self._set_property("xaxis", arg, xaxis) + self._set_property("xcalendar", arg, xcalendar) + self._set_property("xgap", arg, xgap) + self._set_property("xhoverformat", arg, xhoverformat) + self._set_property("xperiod", arg, xperiod) + self._set_property("xperiod0", arg, xperiod0) + self._set_property("xperiodalignment", arg, xperiodalignment) + self._set_property("xsrc", arg, xsrc) + self._set_property("xtype", arg, xtype) + self._set_property("y", arg, y) + self._set_property("y0", arg, y0) + self._set_property("yaxis", arg, yaxis) + self._set_property("ycalendar", arg, ycalendar) + self._set_property("ygap", arg, ygap) + self._set_property("yhoverformat", arg, yhoverformat) + self._set_property("yperiod", arg, yperiod) + self._set_property("yperiod0", arg, yperiod0) + self._set_property("yperiodalignment", arg, yperiodalignment) + self._set_property("ysrc", arg, ysrc) + self._set_property("ytype", arg, ytype) + self._set_property("z", arg, z) + self._set_property("zauto", arg, zauto) + self._set_property("zhoverformat", arg, zhoverformat) + self._set_property("zmax", arg, zmax) + self._set_property("zmid", arg, zmid) + self._set_property("zmin", arg, zmin) + self._set_property("zorder", arg, zorder) + self._set_property("zsmooth", arg, zsmooth) + self._set_property("zsrc", arg, zsrc) self._props["type"] = "heatmap" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_histogram.py b/plotly/graph_objs/_histogram.py index 19fc25e00c..668b203c3f 100644 --- a/plotly/graph_objs/_histogram.py +++ b/plotly/graph_objs/_histogram.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Histogram(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "histogram" _valid_props = { @@ -78,8 +79,6 @@ class Histogram(_BaseTraceType): "zorder", } - # alignmentgroup - # -------------- @property def alignmentgroup(self): """ @@ -101,8 +100,6 @@ def alignmentgroup(self): def alignmentgroup(self, val): self["alignmentgroup"] = val - # autobinx - # -------- @property def autobinx(self): """ @@ -124,8 +121,6 @@ def autobinx(self): def autobinx(self, val): self["autobinx"] = val - # autobiny - # -------- @property def autobiny(self): """ @@ -147,8 +142,6 @@ def autobiny(self): def autobiny(self, val): self["autobiny"] = val - # bingroup - # -------- @property def bingroup(self): """ @@ -174,8 +167,6 @@ def bingroup(self): def bingroup(self, val): self["bingroup"] = val - # cliponaxis - # ---------- @property def cliponaxis(self): """ @@ -197,8 +188,6 @@ def cliponaxis(self): def cliponaxis(self, val): self["cliponaxis"] = val - # constraintext - # ------------- @property def constraintext(self): """ @@ -219,8 +208,6 @@ def constraintext(self): def constraintext(self, val): self["constraintext"] = val - # cumulative - # ---------- @property def cumulative(self): """ @@ -230,35 +217,6 @@ 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 @@ -269,8 +227,6 @@ def cumulative(self): def cumulative(self, val): self["cumulative"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -292,8 +248,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -313,8 +267,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # error_x - # ------- @property def error_x(self): """ @@ -324,66 +276,6 @@ 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 @@ -394,8 +286,6 @@ def error_x(self): def error_x(self, val): self["error_x"] = val - # error_y - # ------- @property def error_y(self): """ @@ -405,64 +295,6 @@ 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 @@ -473,8 +305,6 @@ def error_y(self): def error_y(self, val): self["error_y"] = val - # histfunc - # -------- @property def histfunc(self): """ @@ -499,8 +329,6 @@ def histfunc(self): def histfunc(self, val): self["histfunc"] = val - # histnorm - # -------- @property def histnorm(self): """ @@ -533,8 +361,6 @@ def histnorm(self): def histnorm(self, val): self["histnorm"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -559,8 +385,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -580,8 +404,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -591,44 +413,6 @@ 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 @@ -639,8 +423,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -684,8 +466,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -705,8 +485,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -727,8 +505,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -748,8 +524,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -770,8 +544,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -790,8 +562,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # insidetextanchor - # ---------------- @property def insidetextanchor(self): """ @@ -812,8 +582,6 @@ def insidetextanchor(self): def insidetextanchor(self, val): self["insidetextanchor"] = val - # insidetextfont - # -------------- @property def insidetextfont(self): """ @@ -825,52 +593,6 @@ 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 @@ -881,8 +603,6 @@ def insidetextfont(self): def insidetextfont(self, val): self["insidetextfont"] = val - # legend - # ------ @property def legend(self): """ @@ -906,8 +626,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -929,8 +647,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -940,13 +656,6 @@ 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 @@ -957,8 +666,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -984,8 +691,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -1005,8 +710,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # marker - # ------ @property def marker(self): """ @@ -1016,114 +719,6 @@ 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 @@ -1134,8 +729,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # meta - # ---- @property def meta(self): """ @@ -1162,8 +755,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -1182,8 +773,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -1204,8 +793,6 @@ def name(self): def name(self, val): self["name"] = val - # nbinsx - # ------ @property def nbinsx(self): """ @@ -1228,8 +815,6 @@ def nbinsx(self): def nbinsx(self, val): self["nbinsx"] = val - # nbinsy - # ------ @property def nbinsy(self): """ @@ -1252,8 +837,6 @@ def nbinsy(self): def nbinsy(self, val): self["nbinsy"] = val - # offsetgroup - # ----------- @property def offsetgroup(self): """ @@ -1275,8 +858,6 @@ def offsetgroup(self): def offsetgroup(self, val): self["offsetgroup"] = val - # opacity - # ------- @property def opacity(self): """ @@ -1295,8 +876,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -1317,8 +896,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outsidetextfont - # --------------- @property def outsidetextfont(self): """ @@ -1330,52 +907,6 @@ 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 @@ -1386,8 +917,6 @@ def outsidetextfont(self): def outsidetextfont(self, val): self["outsidetextfont"] = val - # selected - # -------- @property def selected(self): """ @@ -1397,17 +926,6 @@ 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 @@ -1418,8 +936,6 @@ def selected(self): def selected(self, val): self["selected"] = val - # selectedpoints - # -------------- @property def selectedpoints(self): """ @@ -1442,8 +958,6 @@ def selectedpoints(self): def selectedpoints(self, val): self["selectedpoints"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -1463,8 +977,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # stream - # ------ @property def stream(self): """ @@ -1474,18 +986,6 @@ 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 @@ -1496,8 +996,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # text - # ---- @property def text(self): """ @@ -1521,8 +1019,6 @@ def text(self): def text(self, val): self["text"] = val - # textangle - # --------- @property def textangle(self): """ @@ -1546,8 +1042,6 @@ def textangle(self): def textangle(self, val): self["textangle"] = val - # textfont - # -------- @property def textfont(self): """ @@ -1559,52 +1053,6 @@ 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 @@ -1615,8 +1063,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # textposition - # ------------ @property def textposition(self): """ @@ -1643,8 +1089,6 @@ def textposition(self): def textposition(self, val): self["textposition"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1663,8 +1107,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # texttemplate - # ------------ @property def texttemplate(self): """ @@ -1697,8 +1139,6 @@ def texttemplate(self): def texttemplate(self, val): self["texttemplate"] = val - # uid - # --- @property def uid(self): """ @@ -1719,8 +1159,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1752,8 +1190,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # unselected - # ---------- @property def unselected(self): """ @@ -1763,17 +1199,6 @@ 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 @@ -1784,8 +1209,6 @@ def unselected(self): def unselected(self, val): self["unselected"] = val - # visible - # ------- @property def visible(self): """ @@ -1807,8 +1230,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # x - # - @property def x(self): """ @@ -1827,8 +1248,6 @@ def x(self): def x(self, val): self["x"] = val - # xaxis - # ----- @property def xaxis(self): """ @@ -1852,8 +1271,6 @@ def xaxis(self): def xaxis(self, val): self["xaxis"] = val - # xbins - # ----- @property def xbins(self): """ @@ -1863,53 +1280,6 @@ 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 @@ -1920,8 +1290,6 @@ def xbins(self): def xbins(self, val): self["xbins"] = val - # xcalendar - # --------- @property def xcalendar(self): """ @@ -1944,8 +1312,6 @@ def xcalendar(self): def xcalendar(self, val): self["xcalendar"] = val - # xhoverformat - # ------------ @property def xhoverformat(self): """ @@ -1975,8 +1341,6 @@ def xhoverformat(self): def xhoverformat(self, val): self["xhoverformat"] = val - # xsrc - # ---- @property def xsrc(self): """ @@ -1995,8 +1359,6 @@ def xsrc(self): def xsrc(self, val): self["xsrc"] = val - # y - # - @property def y(self): """ @@ -2015,8 +1377,6 @@ def y(self): def y(self, val): self["y"] = val - # yaxis - # ----- @property def yaxis(self): """ @@ -2040,8 +1400,6 @@ def yaxis(self): def yaxis(self, val): self["yaxis"] = val - # ybins - # ----- @property def ybins(self): """ @@ -2051,53 +1409,6 @@ 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 @@ -2108,8 +1419,6 @@ def ybins(self): def ybins(self, val): self["ybins"] = val - # ycalendar - # --------- @property def ycalendar(self): """ @@ -2132,8 +1441,6 @@ def ycalendar(self): def ycalendar(self, val): self["ycalendar"] = val - # yhoverformat - # ------------ @property def yhoverformat(self): """ @@ -2163,8 +1470,6 @@ def yhoverformat(self): def yhoverformat(self, val): self["yhoverformat"] = val - # ysrc - # ---- @property def ysrc(self): """ @@ -2183,8 +1488,6 @@ def ysrc(self): def ysrc(self, val): self["ysrc"] = val - # zorder - # ------ @property def zorder(self): """ @@ -2205,14 +1508,10 @@ def zorder(self): def zorder(self, val): self["zorder"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -3028,14 +2327,11 @@ def __init__( ------- Histogram """ - super(Histogram, self).__init__("histogram") - + super().__init__("histogram") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -3050,288 +2346,77 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("alignmentgroup", arg, alignmentgroup) + self._set_property("autobinx", arg, autobinx) + self._set_property("autobiny", arg, autobiny) + self._set_property("bingroup", arg, bingroup) + self._set_property("cliponaxis", arg, cliponaxis) + self._set_property("constraintext", arg, constraintext) + self._set_property("cumulative", arg, cumulative) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("error_x", arg, error_x) + self._set_property("error_y", arg, error_y) + self._set_property("histfunc", arg, histfunc) + self._set_property("histnorm", arg, histnorm) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("insidetextanchor", arg, insidetextanchor) + self._set_property("insidetextfont", arg, insidetextfont) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("marker", arg, marker) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("nbinsx", arg, nbinsx) + self._set_property("nbinsy", arg, nbinsy) + self._set_property("offsetgroup", arg, offsetgroup) + self._set_property("opacity", arg, opacity) + self._set_property("orientation", arg, orientation) + self._set_property("outsidetextfont", arg, outsidetextfont) + self._set_property("selected", arg, selected) + self._set_property("selectedpoints", arg, selectedpoints) + self._set_property("showlegend", arg, showlegend) + self._set_property("stream", arg, stream) + self._set_property("text", arg, text) + self._set_property("textangle", arg, textangle) + self._set_property("textfont", arg, textfont) + self._set_property("textposition", arg, textposition) + self._set_property("textsrc", arg, textsrc) + self._set_property("texttemplate", arg, texttemplate) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("unselected", arg, unselected) + self._set_property("visible", arg, visible) + self._set_property("x", arg, x) + self._set_property("xaxis", arg, xaxis) + self._set_property("xbins", arg, xbins) + self._set_property("xcalendar", arg, xcalendar) + self._set_property("xhoverformat", arg, xhoverformat) + self._set_property("xsrc", arg, xsrc) + self._set_property("y", arg, y) + self._set_property("yaxis", arg, yaxis) + self._set_property("ybins", arg, ybins) + self._set_property("ycalendar", arg, ycalendar) + self._set_property("yhoverformat", arg, yhoverformat) + self._set_property("ysrc", arg, ysrc) + self._set_property("zorder", arg, zorder) self._props["type"] = "histogram" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_histogram2d.py b/plotly/graph_objs/_histogram2d.py index 16b64a1fbc..3825b500fc 100644 --- a/plotly/graph_objs/_histogram2d.py +++ b/plotly/graph_objs/_histogram2d.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Histogram2d(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "histogram2d" _valid_props = { @@ -75,8 +76,6 @@ class Histogram2d(_BaseTraceType): "zsrc", } - # autobinx - # -------- @property def autobinx(self): """ @@ -98,8 +97,6 @@ def autobinx(self): def autobinx(self, val): self["autobinx"] = val - # autobiny - # -------- @property def autobiny(self): """ @@ -121,8 +118,6 @@ def autobiny(self): def autobiny(self, val): self["autobiny"] = val - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -146,8 +141,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # bingroup - # -------- @property def bingroup(self): """ @@ -169,8 +162,6 @@ def bingroup(self): def bingroup(self, val): self["bingroup"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -196,8 +187,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -207,273 +196,6 @@ 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 @@ -484,8 +206,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -537,8 +257,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -560,8 +278,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -581,8 +297,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # histfunc - # -------- @property def histfunc(self): """ @@ -607,8 +321,6 @@ def histfunc(self): def histfunc(self, val): self["histfunc"] = val - # histnorm - # -------- @property def histnorm(self): """ @@ -641,8 +353,6 @@ def histnorm(self): def histnorm(self, val): self["histnorm"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -667,8 +377,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -688,8 +396,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -699,44 +405,6 @@ 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 @@ -747,8 +415,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -792,8 +458,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -813,8 +477,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # ids - # --- @property def ids(self): """ @@ -835,8 +497,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -855,8 +515,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # legend - # ------ @property def legend(self): """ @@ -880,8 +538,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -903,8 +559,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -914,13 +568,6 @@ 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 @@ -931,8 +578,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -958,8 +603,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -979,8 +622,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # marker - # ------ @property def marker(self): """ @@ -990,14 +631,6 @@ 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 @@ -1008,8 +641,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # meta - # ---- @property def meta(self): """ @@ -1036,8 +667,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -1056,8 +685,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -1078,8 +705,6 @@ def name(self): def name(self, val): self["name"] = val - # nbinsx - # ------ @property def nbinsx(self): """ @@ -1102,8 +727,6 @@ def nbinsx(self): def nbinsx(self, val): self["nbinsx"] = val - # nbinsy - # ------ @property def nbinsy(self): """ @@ -1126,8 +749,6 @@ def nbinsy(self): def nbinsy(self, val): self["nbinsy"] = val - # opacity - # ------- @property def opacity(self): """ @@ -1146,8 +767,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -1168,8 +787,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -1189,8 +806,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # showscale - # --------- @property def showscale(self): """ @@ -1210,8 +825,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # stream - # ------ @property def stream(self): """ @@ -1221,18 +834,6 @@ 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 @@ -1243,8 +844,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # textfont - # -------- @property def textfont(self): """ @@ -1256,52 +855,6 @@ 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 @@ -1312,8 +865,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # texttemplate - # ------------ @property def texttemplate(self): """ @@ -1345,8 +896,6 @@ def texttemplate(self): def texttemplate(self, val): self["texttemplate"] = val - # uid - # --- @property def uid(self): """ @@ -1367,8 +916,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1400,8 +947,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # visible - # ------- @property def visible(self): """ @@ -1423,8 +968,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # x - # - @property def x(self): """ @@ -1443,8 +986,6 @@ def x(self): def x(self, val): self["x"] = val - # xaxis - # ----- @property def xaxis(self): """ @@ -1468,8 +1009,6 @@ def xaxis(self): def xaxis(self, val): self["xaxis"] = val - # xbingroup - # --------- @property def xbingroup(self): """ @@ -1493,8 +1032,6 @@ def xbingroup(self): def xbingroup(self, val): self["xbingroup"] = val - # xbins - # ----- @property def xbins(self): """ @@ -1504,43 +1041,6 @@ 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 @@ -1551,8 +1051,6 @@ def xbins(self): def xbins(self, val): self["xbins"] = val - # xcalendar - # --------- @property def xcalendar(self): """ @@ -1575,8 +1073,6 @@ def xcalendar(self): def xcalendar(self, val): self["xcalendar"] = val - # xgap - # ---- @property def xgap(self): """ @@ -1595,8 +1091,6 @@ def xgap(self): def xgap(self, val): self["xgap"] = val - # xhoverformat - # ------------ @property def xhoverformat(self): """ @@ -1626,8 +1120,6 @@ def xhoverformat(self): def xhoverformat(self, val): self["xhoverformat"] = val - # xsrc - # ---- @property def xsrc(self): """ @@ -1646,8 +1138,6 @@ def xsrc(self): def xsrc(self, val): self["xsrc"] = val - # y - # - @property def y(self): """ @@ -1666,8 +1156,6 @@ def y(self): def y(self, val): self["y"] = val - # yaxis - # ----- @property def yaxis(self): """ @@ -1691,8 +1179,6 @@ def yaxis(self): def yaxis(self, val): self["yaxis"] = val - # ybingroup - # --------- @property def ybingroup(self): """ @@ -1716,8 +1202,6 @@ def ybingroup(self): def ybingroup(self, val): self["ybingroup"] = val - # ybins - # ----- @property def ybins(self): """ @@ -1727,43 +1211,6 @@ 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 @@ -1774,8 +1221,6 @@ def ybins(self): def ybins(self, val): self["ybins"] = val - # ycalendar - # --------- @property def ycalendar(self): """ @@ -1798,8 +1243,6 @@ def ycalendar(self): def ycalendar(self, val): self["ycalendar"] = val - # ygap - # ---- @property def ygap(self): """ @@ -1818,8 +1261,6 @@ def ygap(self): def ygap(self, val): self["ygap"] = val - # yhoverformat - # ------------ @property def yhoverformat(self): """ @@ -1849,8 +1290,6 @@ def yhoverformat(self): def yhoverformat(self, val): self["yhoverformat"] = val - # ysrc - # ---- @property def ysrc(self): """ @@ -1869,8 +1308,6 @@ def ysrc(self): def ysrc(self, val): self["ysrc"] = val - # z - # - @property def z(self): """ @@ -1889,8 +1326,6 @@ def z(self): def z(self, val): self["z"] = val - # zauto - # ----- @property def zauto(self): """ @@ -1912,8 +1347,6 @@ def zauto(self): def zauto(self, val): self["zauto"] = val - # zhoverformat - # ------------ @property def zhoverformat(self): """ @@ -1937,8 +1370,6 @@ def zhoverformat(self): def zhoverformat(self, val): self["zhoverformat"] = val - # zmax - # ---- @property def zmax(self): """ @@ -1958,8 +1389,6 @@ def zmax(self): def zmax(self, val): self["zmax"] = val - # zmid - # ---- @property def zmid(self): """ @@ -1980,8 +1409,6 @@ def zmid(self): def zmid(self, val): self["zmid"] = val - # zmin - # ---- @property def zmin(self): """ @@ -2001,8 +1428,6 @@ def zmin(self): def zmin(self, val): self["zmin"] = val - # zsmooth - # ------- @property def zsmooth(self): """ @@ -2022,8 +1447,6 @@ def zsmooth(self): def zsmooth(self, val): self["zsmooth"] = val - # zsrc - # ---- @property def zsrc(self): """ @@ -2042,14 +1465,10 @@ def zsrc(self): def zsrc(self, val): self["zsrc"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -2855,14 +2274,11 @@ def __init__( ------- Histogram2d """ - super(Histogram2d, self).__init__("histogram2d") - + super().__init__("histogram2d") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2877,276 +2293,74 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("autobinx", arg, autobinx) + self._set_property("autobiny", arg, autobiny) + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("bingroup", arg, bingroup) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("histfunc", arg, histfunc) + self._set_property("histnorm", arg, histnorm) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("marker", arg, marker) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("nbinsx", arg, nbinsx) + self._set_property("nbinsy", arg, nbinsy) + self._set_property("opacity", arg, opacity) + self._set_property("reversescale", arg, reversescale) + self._set_property("showlegend", arg, showlegend) + self._set_property("showscale", arg, showscale) + self._set_property("stream", arg, stream) + self._set_property("textfont", arg, textfont) + self._set_property("texttemplate", arg, texttemplate) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("visible", arg, visible) + self._set_property("x", arg, x) + self._set_property("xaxis", arg, xaxis) + self._set_property("xbingroup", arg, xbingroup) + self._set_property("xbins", arg, xbins) + self._set_property("xcalendar", arg, xcalendar) + self._set_property("xgap", arg, xgap) + self._set_property("xhoverformat", arg, xhoverformat) + self._set_property("xsrc", arg, xsrc) + self._set_property("y", arg, y) + self._set_property("yaxis", arg, yaxis) + self._set_property("ybingroup", arg, ybingroup) + self._set_property("ybins", arg, ybins) + self._set_property("ycalendar", arg, ycalendar) + self._set_property("ygap", arg, ygap) + self._set_property("yhoverformat", arg, yhoverformat) + self._set_property("ysrc", arg, ysrc) + self._set_property("z", arg, z) + self._set_property("zauto", arg, zauto) + self._set_property("zhoverformat", arg, zhoverformat) + self._set_property("zmax", arg, zmax) + self._set_property("zmid", arg, zmid) + self._set_property("zmin", arg, zmin) + self._set_property("zsmooth", arg, zsmooth) + self._set_property("zsrc", arg, zsrc) self._props["type"] = "histogram2d" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_histogram2dcontour.py b/plotly/graph_objs/_histogram2dcontour.py index aedd85a1cb..f414c779f3 100644 --- a/plotly/graph_objs/_histogram2dcontour.py +++ b/plotly/graph_objs/_histogram2dcontour.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Histogram2dContour(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "histogram2dcontour" _valid_props = { @@ -76,8 +77,6 @@ class Histogram2dContour(_BaseTraceType): "zsrc", } - # autobinx - # -------- @property def autobinx(self): """ @@ -99,8 +98,6 @@ def autobinx(self): def autobinx(self, val): self["autobinx"] = val - # autobiny - # -------- @property def autobiny(self): """ @@ -122,8 +119,6 @@ def autobiny(self): def autobiny(self, val): self["autobiny"] = val - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -147,8 +142,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # autocontour - # ----------- @property def autocontour(self): """ @@ -170,8 +163,6 @@ def autocontour(self): def autocontour(self, val): self["autocontour"] = val - # bingroup - # -------- @property def bingroup(self): """ @@ -193,8 +184,6 @@ def bingroup(self): def bingroup(self, val): self["bingroup"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -220,8 +209,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -231,273 +218,6 @@ 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 @@ -508,8 +228,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -561,8 +279,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # contours - # -------- @property def contours(self): """ @@ -572,72 +288,6 @@ 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 @@ -648,8 +298,6 @@ def contours(self): def contours(self, val): self["contours"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -671,8 +319,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -692,8 +338,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # histfunc - # -------- @property def histfunc(self): """ @@ -718,8 +362,6 @@ def histfunc(self): def histfunc(self, val): self["histfunc"] = val - # histnorm - # -------- @property def histnorm(self): """ @@ -752,8 +394,6 @@ def histnorm(self): def histnorm(self, val): self["histnorm"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -778,8 +418,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -799,8 +437,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -810,44 +446,6 @@ 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 @@ -858,8 +456,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -903,8 +499,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -924,8 +518,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # ids - # --- @property def ids(self): """ @@ -946,8 +538,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -966,8 +556,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # legend - # ------ @property def legend(self): """ @@ -991,8 +579,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -1014,8 +600,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -1025,13 +609,6 @@ 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 @@ -1042,8 +619,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -1069,8 +644,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -1090,8 +663,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # line - # ---- @property def line(self): """ @@ -1101,23 +672,6 @@ 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 @@ -1128,8 +682,6 @@ def line(self): def line(self, val): self["line"] = val - # marker - # ------ @property def marker(self): """ @@ -1139,14 +691,6 @@ 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 @@ -1157,8 +701,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # meta - # ---- @property def meta(self): """ @@ -1185,8 +727,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -1205,8 +745,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -1227,8 +765,6 @@ def name(self): def name(self, val): self["name"] = val - # nbinsx - # ------ @property def nbinsx(self): """ @@ -1251,8 +787,6 @@ def nbinsx(self): def nbinsx(self, val): self["nbinsx"] = val - # nbinsy - # ------ @property def nbinsy(self): """ @@ -1275,8 +809,6 @@ def nbinsy(self): def nbinsy(self, val): self["nbinsy"] = val - # ncontours - # --------- @property def ncontours(self): """ @@ -1299,8 +831,6 @@ def ncontours(self): def ncontours(self, val): self["ncontours"] = val - # opacity - # ------- @property def opacity(self): """ @@ -1319,8 +849,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -1341,8 +869,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -1362,8 +888,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # showscale - # --------- @property def showscale(self): """ @@ -1383,8 +907,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # stream - # ------ @property def stream(self): """ @@ -1394,18 +916,6 @@ 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 @@ -1416,8 +926,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # textfont - # -------- @property def textfont(self): """ @@ -1430,52 +938,6 @@ 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 @@ -1486,8 +948,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # texttemplate - # ------------ @property def texttemplate(self): """ @@ -1521,8 +981,6 @@ def texttemplate(self): def texttemplate(self, val): self["texttemplate"] = val - # uid - # --- @property def uid(self): """ @@ -1543,8 +1001,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1576,8 +1032,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # visible - # ------- @property def visible(self): """ @@ -1599,8 +1053,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # x - # - @property def x(self): """ @@ -1619,8 +1071,6 @@ def x(self): def x(self, val): self["x"] = val - # xaxis - # ----- @property def xaxis(self): """ @@ -1644,8 +1094,6 @@ def xaxis(self): def xaxis(self, val): self["xaxis"] = val - # xbingroup - # --------- @property def xbingroup(self): """ @@ -1669,8 +1117,6 @@ def xbingroup(self): def xbingroup(self, val): self["xbingroup"] = val - # xbins - # ----- @property def xbins(self): """ @@ -1680,43 +1126,6 @@ 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 @@ -1727,8 +1136,6 @@ def xbins(self): def xbins(self, val): self["xbins"] = val - # xcalendar - # --------- @property def xcalendar(self): """ @@ -1751,8 +1158,6 @@ def xcalendar(self): def xcalendar(self, val): self["xcalendar"] = val - # xhoverformat - # ------------ @property def xhoverformat(self): """ @@ -1782,8 +1187,6 @@ def xhoverformat(self): def xhoverformat(self, val): self["xhoverformat"] = val - # xsrc - # ---- @property def xsrc(self): """ @@ -1802,8 +1205,6 @@ def xsrc(self): def xsrc(self, val): self["xsrc"] = val - # y - # - @property def y(self): """ @@ -1822,8 +1223,6 @@ def y(self): def y(self, val): self["y"] = val - # yaxis - # ----- @property def yaxis(self): """ @@ -1847,8 +1246,6 @@ def yaxis(self): def yaxis(self, val): self["yaxis"] = val - # ybingroup - # --------- @property def ybingroup(self): """ @@ -1872,8 +1269,6 @@ def ybingroup(self): def ybingroup(self, val): self["ybingroup"] = val - # ybins - # ----- @property def ybins(self): """ @@ -1883,43 +1278,6 @@ 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 @@ -1930,8 +1288,6 @@ def ybins(self): def ybins(self, val): self["ybins"] = val - # ycalendar - # --------- @property def ycalendar(self): """ @@ -1954,8 +1310,6 @@ def ycalendar(self): def ycalendar(self, val): self["ycalendar"] = val - # yhoverformat - # ------------ @property def yhoverformat(self): """ @@ -1985,8 +1339,6 @@ def yhoverformat(self): def yhoverformat(self, val): self["yhoverformat"] = val - # ysrc - # ---- @property def ysrc(self): """ @@ -2005,8 +1357,6 @@ def ysrc(self): def ysrc(self, val): self["ysrc"] = val - # z - # - @property def z(self): """ @@ -2025,8 +1375,6 @@ def z(self): def z(self, val): self["z"] = val - # zauto - # ----- @property def zauto(self): """ @@ -2048,8 +1396,6 @@ def zauto(self): def zauto(self, val): self["zauto"] = val - # zhoverformat - # ------------ @property def zhoverformat(self): """ @@ -2073,8 +1419,6 @@ def zhoverformat(self): def zhoverformat(self, val): self["zhoverformat"] = val - # zmax - # ---- @property def zmax(self): """ @@ -2094,8 +1438,6 @@ def zmax(self): def zmax(self, val): self["zmax"] = val - # zmid - # ---- @property def zmid(self): """ @@ -2116,8 +1458,6 @@ def zmid(self): def zmid(self, val): self["zmid"] = val - # zmin - # ---- @property def zmin(self): """ @@ -2137,8 +1477,6 @@ def zmin(self): def zmin(self, val): self["zmin"] = val - # zsrc - # ---- @property def zsrc(self): """ @@ -2157,14 +1495,10 @@ def zsrc(self): def zsrc(self, val): self["zsrc"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -2998,14 +2332,11 @@ def __init__( ------- Histogram2dContour """ - super(Histogram2dContour, self).__init__("histogram2dcontour") - + super().__init__("histogram2dcontour") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -3020,280 +2351,75 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("autobinx", arg, autobinx) + self._set_property("autobiny", arg, autobiny) + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("autocontour", arg, autocontour) + self._set_property("bingroup", arg, bingroup) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("contours", arg, contours) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("histfunc", arg, histfunc) + self._set_property("histnorm", arg, histnorm) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("line", arg, line) + self._set_property("marker", arg, marker) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("nbinsx", arg, nbinsx) + self._set_property("nbinsy", arg, nbinsy) + self._set_property("ncontours", arg, ncontours) + self._set_property("opacity", arg, opacity) + self._set_property("reversescale", arg, reversescale) + self._set_property("showlegend", arg, showlegend) + self._set_property("showscale", arg, showscale) + self._set_property("stream", arg, stream) + self._set_property("textfont", arg, textfont) + self._set_property("texttemplate", arg, texttemplate) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("visible", arg, visible) + self._set_property("x", arg, x) + self._set_property("xaxis", arg, xaxis) + self._set_property("xbingroup", arg, xbingroup) + self._set_property("xbins", arg, xbins) + self._set_property("xcalendar", arg, xcalendar) + self._set_property("xhoverformat", arg, xhoverformat) + self._set_property("xsrc", arg, xsrc) + self._set_property("y", arg, y) + self._set_property("yaxis", arg, yaxis) + self._set_property("ybingroup", arg, ybingroup) + self._set_property("ybins", arg, ybins) + self._set_property("ycalendar", arg, ycalendar) + self._set_property("yhoverformat", arg, yhoverformat) + self._set_property("ysrc", arg, ysrc) + self._set_property("z", arg, z) + self._set_property("zauto", arg, zauto) + self._set_property("zhoverformat", arg, zhoverformat) + self._set_property("zmax", arg, zmax) + self._set_property("zmid", arg, zmid) + self._set_property("zmin", arg, zmin) + self._set_property("zsrc", arg, zsrc) self._props["type"] = "histogram2dcontour" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_icicle.py b/plotly/graph_objs/_icicle.py index da989e61f2..6ffce7d2f2 100644 --- a/plotly/graph_objs/_icicle.py +++ b/plotly/graph_objs/_icicle.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Icicle(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "icicle" _valid_props = { @@ -61,8 +62,6 @@ class Icicle(_BaseTraceType): "visible", } - # branchvalues - # ------------ @property def branchvalues(self): """ @@ -87,8 +86,6 @@ def branchvalues(self): def branchvalues(self, val): self["branchvalues"] = val - # count - # ----- @property def count(self): """ @@ -111,8 +108,6 @@ def count(self): def count(self, val): self["count"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -134,8 +129,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -155,8 +148,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # domain - # ------ @property def domain(self): """ @@ -166,21 +157,6 @@ 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 @@ -191,8 +167,6 @@ def domain(self): def domain(self, val): self["domain"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -217,8 +191,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -238,8 +210,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -249,44 +219,6 @@ 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 @@ -297,8 +229,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -344,8 +274,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -365,8 +293,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -391,8 +317,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -412,8 +336,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -434,8 +356,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -454,8 +374,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # insidetextfont - # -------------- @property def insidetextfont(self): """ @@ -467,79 +385,6 @@ 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 @@ -550,8 +395,6 @@ def insidetextfont(self): def insidetextfont(self, val): self["insidetextfont"] = val - # labels - # ------ @property def labels(self): """ @@ -570,8 +413,6 @@ def labels(self): def labels(self, val): self["labels"] = val - # labelssrc - # --------- @property def labelssrc(self): """ @@ -590,8 +431,6 @@ def labelssrc(self): def labelssrc(self, val): self["labelssrc"] = val - # leaf - # ---- @property def leaf(self): """ @@ -601,13 +440,6 @@ 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 @@ -618,8 +450,6 @@ def leaf(self): def leaf(self, val): self["leaf"] = val - # legend - # ------ @property def legend(self): """ @@ -643,8 +473,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -654,13 +482,6 @@ 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 @@ -671,8 +492,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -698,8 +517,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -719,8 +536,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # level - # ----- @property def level(self): """ @@ -741,8 +556,6 @@ def level(self): def level(self, val): self["level"] = val - # marker - # ------ @property def marker(self): """ @@ -752,98 +565,6 @@ 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 @@ -854,8 +575,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # maxdepth - # -------- @property def maxdepth(self): """ @@ -875,8 +594,6 @@ def maxdepth(self): def maxdepth(self, val): self["maxdepth"] = val - # meta - # ---- @property def meta(self): """ @@ -903,8 +620,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -923,8 +638,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -945,8 +658,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -965,8 +676,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # outsidetextfont - # --------------- @property def outsidetextfont(self): """ @@ -982,79 +691,6 @@ 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 @@ -1065,8 +701,6 @@ def outsidetextfont(self): def outsidetextfont(self, val): self["outsidetextfont"] = val - # parents - # ------- @property def parents(self): """ @@ -1090,8 +724,6 @@ def parents(self): def parents(self, val): self["parents"] = val - # parentssrc - # ---------- @property def parentssrc(self): """ @@ -1110,8 +742,6 @@ def parentssrc(self): def parentssrc(self, val): self["parentssrc"] = val - # pathbar - # ------- @property def pathbar(self): """ @@ -1121,25 +751,6 @@ 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 @@ -1150,8 +761,6 @@ def pathbar(self): def pathbar(self, val): self["pathbar"] = val - # root - # ---- @property def root(self): """ @@ -1161,14 +770,6 @@ 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 @@ -1179,8 +780,6 @@ def root(self): def root(self, val): self["root"] = val - # sort - # ---- @property def sort(self): """ @@ -1200,8 +799,6 @@ def sort(self): def sort(self, val): self["sort"] = val - # stream - # ------ @property def stream(self): """ @@ -1211,18 +808,6 @@ 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 @@ -1233,8 +818,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # text - # ---- @property def text(self): """ @@ -1257,8 +840,6 @@ def text(self): def text(self, val): self["text"] = val - # textfont - # -------- @property def textfont(self): """ @@ -1270,79 +851,6 @@ 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 @@ -1353,8 +861,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # textinfo - # -------- @property def textinfo(self): """ @@ -1376,8 +882,6 @@ def textinfo(self): def textinfo(self, val): self["textinfo"] = val - # textposition - # ------------ @property def textposition(self): """ @@ -1399,8 +903,6 @@ def textposition(self): def textposition(self, val): self["textposition"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1419,8 +921,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # texttemplate - # ------------ @property def texttemplate(self): """ @@ -1455,8 +955,6 @@ def texttemplate(self): def texttemplate(self, val): self["texttemplate"] = val - # texttemplatesrc - # --------------- @property def texttemplatesrc(self): """ @@ -1476,8 +974,6 @@ def texttemplatesrc(self): def texttemplatesrc(self, val): self["texttemplatesrc"] = val - # tiling - # ------ @property def tiling(self): """ @@ -1487,26 +983,6 @@ 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 @@ -1517,8 +993,6 @@ def tiling(self): def tiling(self, val): self["tiling"] = val - # uid - # --- @property def uid(self): """ @@ -1539,8 +1013,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1572,8 +1044,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # values - # ------ @property def values(self): """ @@ -1593,8 +1063,6 @@ def values(self): def values(self, val): self["values"] = val - # valuessrc - # --------- @property def valuessrc(self): """ @@ -1613,8 +1081,6 @@ def valuessrc(self): def valuessrc(self, val): self["valuessrc"] = val - # visible - # ------- @property def visible(self): """ @@ -1636,14 +1102,10 @@ def visible(self): def visible(self, val): self["visible"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -2228,14 +1690,11 @@ def __init__( ------- Icicle """ - super(Icicle, self).__init__("icicle") - + super().__init__("icicle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2250,220 +1709,60 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("branchvalues", arg, branchvalues) + self._set_property("count", arg, count) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("domain", arg, domain) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("insidetextfont", arg, insidetextfont) + self._set_property("labels", arg, labels) + self._set_property("labelssrc", arg, labelssrc) + self._set_property("leaf", arg, leaf) + self._set_property("legend", arg, legend) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("level", arg, level) + self._set_property("marker", arg, marker) + self._set_property("maxdepth", arg, maxdepth) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("outsidetextfont", arg, outsidetextfont) + self._set_property("parents", arg, parents) + self._set_property("parentssrc", arg, parentssrc) + self._set_property("pathbar", arg, pathbar) + self._set_property("root", arg, root) + self._set_property("sort", arg, sort) + self._set_property("stream", arg, stream) + self._set_property("text", arg, text) + self._set_property("textfont", arg, textfont) + self._set_property("textinfo", arg, textinfo) + self._set_property("textposition", arg, textposition) + self._set_property("textsrc", arg, textsrc) + self._set_property("texttemplate", arg, texttemplate) + self._set_property("texttemplatesrc", arg, texttemplatesrc) + self._set_property("tiling", arg, tiling) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("values", arg, values) + self._set_property("valuessrc", arg, valuessrc) + self._set_property("visible", arg, visible) self._props["type"] = "icicle" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_image.py b/plotly/graph_objs/_image.py index 5e1b935e07..f1da17bc24 100644 --- a/plotly/graph_objs/_image.py +++ b/plotly/graph_objs/_image.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Image(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "image" _valid_props = { @@ -51,8 +52,6 @@ class Image(_BaseTraceType): "zsrc", } - # colormodel - # ---------- @property def colormodel(self): """ @@ -75,8 +74,6 @@ def colormodel(self): def colormodel(self, val): self["colormodel"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -98,8 +95,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -119,8 +114,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # dx - # -- @property def dx(self): """ @@ -139,8 +132,6 @@ def dx(self): def dx(self, val): self["dx"] = val - # dy - # -- @property def dy(self): """ @@ -159,8 +150,6 @@ def dy(self): def dy(self, val): self["dy"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -185,8 +174,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -206,8 +193,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -217,44 +202,6 @@ 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 @@ -265,8 +212,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -311,8 +256,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -332,8 +275,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -352,8 +293,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -373,8 +312,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -395,8 +332,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -415,8 +350,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # legend - # ------ @property def legend(self): """ @@ -440,8 +373,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -451,13 +382,6 @@ 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 @@ -468,8 +392,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -495,8 +417,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -516,8 +436,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # meta - # ---- @property def meta(self): """ @@ -544,8 +462,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -564,8 +480,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -586,8 +500,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -606,8 +518,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # source - # ------ @property def source(self): """ @@ -628,8 +538,6 @@ def source(self): def source(self, val): self["source"] = val - # stream - # ------ @property def stream(self): """ @@ -639,18 +547,6 @@ 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 @@ -661,8 +557,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # text - # ---- @property def text(self): """ @@ -681,8 +575,6 @@ def text(self): def text(self, val): self["text"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -701,8 +593,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # uid - # --- @property def uid(self): """ @@ -723,8 +613,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -756,8 +644,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # visible - # ------- @property def visible(self): """ @@ -779,8 +665,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # x0 - # -- @property def x0(self): """ @@ -800,8 +684,6 @@ def x0(self): def x0(self, val): self["x0"] = val - # xaxis - # ----- @property def xaxis(self): """ @@ -825,8 +707,6 @@ def xaxis(self): def xaxis(self, val): self["xaxis"] = val - # y0 - # -- @property def y0(self): """ @@ -849,8 +729,6 @@ def y0(self): def y0(self, val): self["y0"] = val - # yaxis - # ----- @property def yaxis(self): """ @@ -874,8 +752,6 @@ def yaxis(self): def yaxis(self, val): self["yaxis"] = val - # z - # - @property def z(self): """ @@ -895,8 +771,6 @@ def z(self): def z(self, val): self["z"] = val - # zmax - # ---- @property def zmax(self): """ @@ -930,8 +804,6 @@ def zmax(self): def zmax(self, val): self["zmax"] = val - # zmin - # ---- @property def zmin(self): """ @@ -964,8 +836,6 @@ def zmin(self): def zmin(self, val): self["zmin"] = val - # zorder - # ------ @property def zorder(self): """ @@ -986,8 +856,6 @@ def zorder(self): def zorder(self, val): self["zorder"] = val - # zsmooth - # ------- @property def zsmooth(self): """ @@ -1008,8 +876,6 @@ def zsmooth(self): def zsmooth(self, val): self["zsmooth"] = val - # zsrc - # ---- @property def zsrc(self): """ @@ -1028,14 +894,10 @@ def zsrc(self): def zsrc(self, val): self["zsrc"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1527,14 +1389,11 @@ def __init__( ------- Image """ - super(Image, self).__init__("image") - + super().__init__("image") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1549,180 +1408,50 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("colormodel", arg, colormodel) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("dx", arg, dx) + self._set_property("dy", arg, dy) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("legend", arg, legend) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("source", arg, source) + self._set_property("stream", arg, stream) + self._set_property("text", arg, text) + self._set_property("textsrc", arg, textsrc) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("visible", arg, visible) + self._set_property("x0", arg, x0) + self._set_property("xaxis", arg, xaxis) + self._set_property("y0", arg, y0) + self._set_property("yaxis", arg, yaxis) + self._set_property("z", arg, z) + self._set_property("zmax", arg, zmax) + self._set_property("zmin", arg, zmin) + self._set_property("zorder", arg, zorder) + self._set_property("zsmooth", arg, zsmooth) + self._set_property("zsrc", arg, zsrc) self._props["type"] = "image" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_indicator.py b/plotly/graph_objs/_indicator.py index e459172dac..e7bc8edb2a 100644 --- a/plotly/graph_objs/_indicator.py +++ b/plotly/graph_objs/_indicator.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Indicator(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "indicator" _valid_props = { @@ -35,8 +36,6 @@ class Indicator(_BaseTraceType): "visible", } - # align - # ----- @property def align(self): """ @@ -58,8 +57,6 @@ def align(self): def align(self, val): self["align"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -81,8 +78,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -102,8 +97,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # delta - # ----- @property def delta(self): """ @@ -113,37 +106,6 @@ 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 @@ -154,8 +116,6 @@ def delta(self): def delta(self, val): self["delta"] = val - # domain - # ------ @property def domain(self): """ @@ -165,22 +125,6 @@ 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 @@ -191,8 +135,6 @@ def domain(self): def domain(self, val): self["domain"] = val - # gauge - # ----- @property def gauge(self): """ @@ -204,37 +146,6 @@ 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 @@ -245,8 +156,6 @@ def gauge(self): def gauge(self, val): self["gauge"] = val - # ids - # --- @property def ids(self): """ @@ -267,8 +176,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -287,8 +194,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # legend - # ------ @property def legend(self): """ @@ -312,8 +217,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -323,13 +226,6 @@ 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 @@ -340,8 +236,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -367,8 +261,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -388,8 +280,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # meta - # ---- @property def meta(self): """ @@ -416,8 +306,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -436,8 +324,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # mode - # ---- @property def mode(self): """ @@ -461,8 +347,6 @@ def mode(self): def mode(self, val): self["mode"] = val - # name - # ---- @property def name(self): """ @@ -483,8 +367,6 @@ def name(self): def name(self, val): self["name"] = val - # number - # ------ @property def number(self): """ @@ -494,21 +376,6 @@ 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 @@ -519,8 +386,6 @@ def number(self): def number(self, val): self["number"] = val - # stream - # ------ @property def stream(self): """ @@ -530,18 +395,6 @@ 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 @@ -552,8 +405,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # title - # ----- @property def title(self): """ @@ -563,17 +414,6 @@ 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 @@ -584,8 +424,6 @@ def title(self): def title(self, val): self["title"] = val - # uid - # --- @property def uid(self): """ @@ -606,8 +444,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -639,8 +475,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # value - # ----- @property def value(self): """ @@ -659,8 +493,6 @@ def value(self): def value(self, val): self["value"] = val - # visible - # ------- @property def visible(self): """ @@ -682,14 +514,10 @@ def visible(self): def visible(self, val): self["visible"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -971,14 +799,11 @@ def __init__( ------- Indicator """ - super(Indicator, self).__init__("indicator") - + super().__init__("indicator") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -993,116 +818,34 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("align", arg, align) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("delta", arg, delta) + self._set_property("domain", arg, domain) + self._set_property("gauge", arg, gauge) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("legend", arg, legend) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("mode", arg, mode) + self._set_property("name", arg, name) + self._set_property("number", arg, number) + self._set_property("stream", arg, stream) + self._set_property("title", arg, title) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("value", arg, value) + self._set_property("visible", arg, visible) self._props["type"] = "indicator" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_isosurface.py b/plotly/graph_objs/_isosurface.py index 0d74e1ecd1..9688ad9fad 100644 --- a/plotly/graph_objs/_isosurface.py +++ b/plotly/graph_objs/_isosurface.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Isosurface(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "isosurface" _valid_props = { @@ -72,8 +73,6 @@ class Isosurface(_BaseTraceType): "zsrc", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -97,8 +96,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # caps - # ---- @property def caps(self): """ @@ -108,18 +105,6 @@ 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 @@ -130,8 +115,6 @@ def caps(self): def caps(self, val): self["caps"] = val - # cauto - # ----- @property def cauto(self): """ @@ -153,8 +136,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -174,8 +155,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -196,8 +175,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -217,8 +194,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -244,8 +219,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -255,272 +228,6 @@ 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 @@ -531,8 +238,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -584,8 +289,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # contour - # ------- @property def contour(self): """ @@ -595,16 +298,6 @@ 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 @@ -615,8 +308,6 @@ def contour(self): def contour(self, val): self["contour"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -638,8 +329,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -659,8 +348,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # flatshading - # ----------- @property def flatshading(self): """ @@ -681,8 +368,6 @@ def flatshading(self): def flatshading(self, val): self["flatshading"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -707,8 +392,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -728,8 +411,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -739,44 +420,6 @@ 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 @@ -787,8 +430,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -831,8 +472,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -852,8 +491,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -874,8 +511,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -895,8 +530,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -917,8 +550,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -937,8 +568,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # isomax - # ------ @property def isomax(self): """ @@ -957,8 +586,6 @@ def isomax(self): def isomax(self, val): self["isomax"] = val - # isomin - # ------ @property def isomin(self): """ @@ -977,8 +604,6 @@ def isomin(self): def isomin(self, val): self["isomin"] = val - # legend - # ------ @property def legend(self): """ @@ -1002,8 +627,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -1025,8 +648,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -1036,13 +657,6 @@ 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 @@ -1053,8 +667,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -1080,8 +692,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -1101,8 +711,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # lighting - # -------- @property def lighting(self): """ @@ -1112,33 +720,6 @@ 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 @@ -1149,8 +730,6 @@ def lighting(self): def lighting(self, val): self["lighting"] = val - # lightposition - # ------------- @property def lightposition(self): """ @@ -1160,18 +739,6 @@ 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 @@ -1182,8 +749,6 @@ def lightposition(self): def lightposition(self, val): self["lightposition"] = val - # meta - # ---- @property def meta(self): """ @@ -1210,8 +775,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -1230,8 +793,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -1252,8 +813,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -1277,8 +836,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -1299,8 +856,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # scene - # ----- @property def scene(self): """ @@ -1324,8 +879,6 @@ def scene(self): def scene(self, val): self["scene"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -1345,8 +898,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # showscale - # --------- @property def showscale(self): """ @@ -1366,8 +917,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # slices - # ------ @property def slices(self): """ @@ -1377,18 +926,6 @@ 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 @@ -1399,8 +936,6 @@ def slices(self): def slices(self, val): self["slices"] = val - # spaceframe - # ---------- @property def spaceframe(self): """ @@ -1410,22 +945,6 @@ 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 @@ -1436,8 +955,6 @@ def spaceframe(self): def spaceframe(self, val): self["spaceframe"] = val - # stream - # ------ @property def stream(self): """ @@ -1447,18 +964,6 @@ 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 @@ -1469,8 +974,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # surface - # ------- @property def surface(self): """ @@ -1480,35 +983,6 @@ 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 @@ -1519,8 +993,6 @@ def surface(self): def surface(self, val): self["surface"] = val - # text - # ---- @property def text(self): """ @@ -1543,8 +1015,6 @@ def text(self): def text(self, val): self["text"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1563,8 +1033,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # uid - # --- @property def uid(self): """ @@ -1585,8 +1053,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1618,8 +1084,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # value - # ----- @property def value(self): """ @@ -1638,8 +1102,6 @@ def value(self): def value(self, val): self["value"] = val - # valuehoverformat - # ---------------- @property def valuehoverformat(self): """ @@ -1663,8 +1125,6 @@ def valuehoverformat(self): def valuehoverformat(self, val): self["valuehoverformat"] = val - # valuesrc - # -------- @property def valuesrc(self): """ @@ -1683,8 +1143,6 @@ def valuesrc(self): def valuesrc(self, val): self["valuesrc"] = val - # visible - # ------- @property def visible(self): """ @@ -1706,8 +1164,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # x - # - @property def x(self): """ @@ -1726,8 +1182,6 @@ def x(self): def x(self, val): self["x"] = val - # xhoverformat - # ------------ @property def xhoverformat(self): """ @@ -1757,8 +1211,6 @@ def xhoverformat(self): def xhoverformat(self, val): self["xhoverformat"] = val - # xsrc - # ---- @property def xsrc(self): """ @@ -1777,8 +1229,6 @@ def xsrc(self): def xsrc(self, val): self["xsrc"] = val - # y - # - @property def y(self): """ @@ -1797,8 +1247,6 @@ def y(self): def y(self, val): self["y"] = val - # yhoverformat - # ------------ @property def yhoverformat(self): """ @@ -1828,8 +1276,6 @@ def yhoverformat(self): def yhoverformat(self, val): self["yhoverformat"] = val - # ysrc - # ---- @property def ysrc(self): """ @@ -1848,8 +1294,6 @@ def ysrc(self): def ysrc(self, val): self["ysrc"] = val - # z - # - @property def z(self): """ @@ -1868,8 +1312,6 @@ def z(self): def z(self, val): self["z"] = val - # zhoverformat - # ------------ @property def zhoverformat(self): """ @@ -1899,8 +1341,6 @@ def zhoverformat(self): def zhoverformat(self, val): self["zhoverformat"] = val - # zsrc - # ---- @property def zsrc(self): """ @@ -1919,14 +1359,10 @@ def zsrc(self): def zsrc(self, val): self["zsrc"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -2639,14 +2075,11 @@ def __init__( ------- Isosurface """ - super(Isosurface, self).__init__("isosurface") - + super().__init__("isosurface") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2661,264 +2094,71 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("caps", arg, caps) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("contour", arg, contour) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("flatshading", arg, flatshading) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("isomax", arg, isomax) + self._set_property("isomin", arg, isomin) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("lighting", arg, lighting) + self._set_property("lightposition", arg, lightposition) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("reversescale", arg, reversescale) + self._set_property("scene", arg, scene) + self._set_property("showlegend", arg, showlegend) + self._set_property("showscale", arg, showscale) + self._set_property("slices", arg, slices) + self._set_property("spaceframe", arg, spaceframe) + self._set_property("stream", arg, stream) + self._set_property("surface", arg, surface) + self._set_property("text", arg, text) + self._set_property("textsrc", arg, textsrc) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("value", arg, value) + self._set_property("valuehoverformat", arg, valuehoverformat) + self._set_property("valuesrc", arg, valuesrc) + self._set_property("visible", arg, visible) + self._set_property("x", arg, x) + self._set_property("xhoverformat", arg, xhoverformat) + self._set_property("xsrc", arg, xsrc) + self._set_property("y", arg, y) + self._set_property("yhoverformat", arg, yhoverformat) + self._set_property("ysrc", arg, ysrc) + self._set_property("z", arg, z) + self._set_property("zhoverformat", arg, zhoverformat) + self._set_property("zsrc", arg, zsrc) self._props["type"] = "isosurface" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_layout.py b/plotly/graph_objs/_layout.py index c6e9887954..9cf41c41f5 100644 --- a/plotly/graph_objs/_layout.py +++ b/plotly/graph_objs/_layout.py @@ -1,3 +1,6 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutType as _BaseLayoutType import copy as _copy @@ -62,8 +65,6 @@ def _subplotid_validators(self): def _subplot_re_match(self, prop): return self._subplotid_prop_re.match(prop) - # class properties - # -------------------- _parent_path_str = "" _path_str = "layout" _valid_props = { @@ -164,8 +165,6 @@ def _subplot_re_match(self, prop): "yaxis", } - # activeselection - # --------------- @property def activeselection(self): """ @@ -175,14 +174,6 @@ 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 @@ -193,8 +184,6 @@ def activeselection(self): def activeselection(self, val): self["activeselection"] = val - # activeshape - # ----------- @property def activeshape(self): """ @@ -204,14 +193,6 @@ 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 @@ -222,8 +203,6 @@ def activeshape(self): def activeshape(self, val): self["activeshape"] = val - # annotations - # ----------- @property def annotations(self): """ @@ -233,326 +212,6 @@ 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] @@ -563,8 +222,6 @@ def annotations(self): def annotations(self, val): self["annotations"] = val - # annotationdefaults - # ------------------ @property def annotationdefaults(self): """ @@ -578,8 +235,6 @@ 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 @@ -590,8 +245,6 @@ def annotationdefaults(self): def annotationdefaults(self, val): self["annotationdefaults"] = val - # autosize - # -------- @property def autosize(self): """ @@ -614,8 +267,6 @@ def autosize(self): def autosize(self, val): self["autosize"] = val - # autotypenumbers - # --------------- @property def autotypenumbers(self): """ @@ -639,8 +290,6 @@ def autotypenumbers(self): def autotypenumbers(self, val): self["autotypenumbers"] = val - # barcornerradius - # --------------- @property def barcornerradius(self): """ @@ -659,8 +308,6 @@ def barcornerradius(self): def barcornerradius(self, val): self["barcornerradius"] = val - # bargap - # ------ @property def bargap(self): """ @@ -680,8 +327,6 @@ def bargap(self): def bargap(self, val): self["bargap"] = val - # bargroupgap - # ----------- @property def bargroupgap(self): """ @@ -701,8 +346,6 @@ def bargroupgap(self): def bargroupgap(self, val): self["bargroupgap"] = val - # barmode - # ------- @property def barmode(self): """ @@ -729,8 +372,6 @@ def barmode(self): def barmode(self, val): self["barmode"] = val - # barnorm - # ------- @property def barnorm(self): """ @@ -753,8 +394,6 @@ def barnorm(self): def barnorm(self, val): self["barnorm"] = val - # boxgap - # ------ @property def boxgap(self): """ @@ -775,8 +414,6 @@ def boxgap(self): def boxgap(self, val): self["boxgap"] = val - # boxgroupgap - # ----------- @property def boxgroupgap(self): """ @@ -797,8 +434,6 @@ def boxgroupgap(self): def boxgroupgap(self, val): self["boxgroupgap"] = val - # boxmode - # ------- @property def boxmode(self): """ @@ -823,8 +458,6 @@ def boxmode(self): def boxmode(self, val): self["boxmode"] = val - # calendar - # -------- @property def calendar(self): """ @@ -848,8 +481,6 @@ def calendar(self): def calendar(self, val): self["calendar"] = val - # clickmode - # --------- @property def clickmode(self): """ @@ -883,8 +514,6 @@ def clickmode(self): def clickmode(self, val): self["clickmode"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -894,66 +523,6 @@ 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 @@ -964,8 +533,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -975,21 +542,6 @@ 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 @@ -1000,8 +552,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorway - # -------- @property def colorway(self): """ @@ -1021,8 +571,6 @@ def colorway(self): def colorway(self, val): self["colorway"] = val - # computed - # -------- @property def computed(self): """ @@ -1042,8 +590,6 @@ def computed(self): def computed(self, val): self["computed"] = val - # datarevision - # ------------ @property def datarevision(self): """ @@ -1067,8 +613,6 @@ def datarevision(self): def datarevision(self, val): self["datarevision"] = val - # dragmode - # -------- @property def dragmode(self): """ @@ -1092,8 +636,6 @@ def dragmode(self): def dragmode(self, val): self["dragmode"] = val - # editrevision - # ------------ @property def editrevision(self): """ @@ -1113,8 +655,6 @@ def editrevision(self): def editrevision(self, val): self["editrevision"] = val - # extendfunnelareacolors - # ---------------------- @property def extendfunnelareacolors(self): """ @@ -1140,8 +680,6 @@ def extendfunnelareacolors(self): def extendfunnelareacolors(self, val): self["extendfunnelareacolors"] = val - # extendiciclecolors - # ------------------ @property def extendiciclecolors(self): """ @@ -1167,8 +705,6 @@ def extendiciclecolors(self): def extendiciclecolors(self, val): self["extendiciclecolors"] = val - # extendpiecolors - # --------------- @property def extendpiecolors(self): """ @@ -1193,8 +729,6 @@ def extendpiecolors(self): def extendpiecolors(self, val): self["extendpiecolors"] = val - # extendsunburstcolors - # -------------------- @property def extendsunburstcolors(self): """ @@ -1220,8 +754,6 @@ def extendsunburstcolors(self): def extendsunburstcolors(self, val): self["extendsunburstcolors"] = val - # extendtreemapcolors - # ------------------- @property def extendtreemapcolors(self): """ @@ -1247,8 +779,6 @@ def extendtreemapcolors(self): def extendtreemapcolors(self, val): self["extendtreemapcolors"] = val - # font - # ---- @property def font(self): """ @@ -1261,52 +791,6 @@ 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 @@ -1317,8 +801,6 @@ def font(self): def font(self, val): self["font"] = val - # funnelareacolorway - # ------------------ @property def funnelareacolorway(self): """ @@ -1341,8 +823,6 @@ def funnelareacolorway(self): def funnelareacolorway(self, val): self["funnelareacolorway"] = val - # funnelgap - # --------- @property def funnelgap(self): """ @@ -1362,8 +842,6 @@ def funnelgap(self): def funnelgap(self, val): self["funnelgap"] = val - # funnelgroupgap - # -------------- @property def funnelgroupgap(self): """ @@ -1383,8 +861,6 @@ def funnelgroupgap(self): def funnelgroupgap(self, val): self["funnelgroupgap"] = val - # funnelmode - # ---------- @property def funnelmode(self): """ @@ -1409,8 +885,6 @@ def funnelmode(self): def funnelmode(self, val): self["funnelmode"] = val - # geo - # --- @property def geo(self): """ @@ -1420,107 +894,6 @@ 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 @@ -1531,8 +904,6 @@ def geo(self): def geo(self, val): self["geo"] = val - # grid - # ---- @property def grid(self): """ @@ -1542,88 +913,6 @@ 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 @@ -1634,8 +923,6 @@ def grid(self): def grid(self, val): self["grid"] = val - # height - # ------ @property def height(self): """ @@ -1654,8 +941,6 @@ def height(self): def height(self, val): self["height"] = val - # hiddenlabels - # ------------ @property def hiddenlabels(self): """ @@ -1676,8 +961,6 @@ def hiddenlabels(self): def hiddenlabels(self, val): self["hiddenlabels"] = val - # hiddenlabelssrc - # --------------- @property def hiddenlabelssrc(self): """ @@ -1697,8 +980,6 @@ def hiddenlabelssrc(self): def hiddenlabelssrc(self, val): self["hiddenlabelssrc"] = val - # hidesources - # ----------- @property def hidesources(self): """ @@ -1721,8 +1002,6 @@ def hidesources(self): def hidesources(self, val): self["hidesources"] = val - # hoverdistance - # ------------- @property def hoverdistance(self): """ @@ -1748,8 +1027,6 @@ def hoverdistance(self): def hoverdistance(self, val): self["hoverdistance"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -1759,36 +1036,6 @@ 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 @@ -1799,8 +1046,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovermode - # --------- @property def hovermode(self): """ @@ -1831,8 +1076,6 @@ def hovermode(self): def hovermode(self, val): self["hovermode"] = val - # hoversubplots - # ------------- @property def hoversubplots(self): """ @@ -1857,8 +1100,6 @@ def hoversubplots(self): def hoversubplots(self, val): self["hoversubplots"] = val - # iciclecolorway - # -------------- @property def iciclecolorway(self): """ @@ -1881,8 +1122,6 @@ def iciclecolorway(self): def iciclecolorway(self, val): self["iciclecolorway"] = val - # images - # ------ @property def images(self): """ @@ -1892,106 +1131,6 @@ 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] @@ -2002,8 +1141,6 @@ def images(self): def images(self, val): self["images"] = val - # imagedefaults - # ------------- @property def imagedefaults(self): """ @@ -2017,8 +1154,6 @@ 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 @@ -2029,8 +1164,6 @@ def imagedefaults(self): def imagedefaults(self, val): self["imagedefaults"] = val - # legend - # ------ @property def legend(self): """ @@ -2040,138 +1173,6 @@ 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 @@ -2182,8 +1183,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # map - # --- @property def map(self): """ @@ -2193,62 +1192,6 @@ 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 @@ -2259,8 +1202,6 @@ def map(self): def map(self, val): self["map"] = val - # mapbox - # ------ @property def mapbox(self): """ @@ -2270,78 +1211,6 @@ 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 @@ -2352,8 +1221,6 @@ def mapbox(self): def mapbox(self, val): self["mapbox"] = val - # margin - # ------ @property def margin(self): """ @@ -2363,25 +1230,6 @@ 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 @@ -2392,8 +1240,6 @@ def margin(self): def margin(self, val): self["margin"] = val - # meta - # ---- @property def meta(self): """ @@ -2418,8 +1264,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -2438,8 +1282,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # minreducedheight - # ---------------- @property def minreducedheight(self): """ @@ -2459,8 +1301,6 @@ def minreducedheight(self): def minreducedheight(self, val): self["minreducedheight"] = val - # minreducedwidth - # --------------- @property def minreducedwidth(self): """ @@ -2480,8 +1320,6 @@ def minreducedwidth(self): def minreducedwidth(self, val): self["minreducedwidth"] = val - # modebar - # ------- @property def modebar(self): """ @@ -2491,66 +1329,6 @@ 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 @@ -2561,8 +1339,6 @@ def modebar(self): def modebar(self, val): self["modebar"] = val - # newselection - # ------------ @property def newselection(self): """ @@ -2572,21 +1348,6 @@ 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 @@ -2597,8 +1358,6 @@ def newselection(self): def newselection(self, val): self["newselection"] = val - # newshape - # -------- @property def newshape(self): """ @@ -2608,79 +1367,6 @@ 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 @@ -2691,8 +1377,6 @@ def newshape(self): def newshape(self, val): self["newshape"] = val - # paper_bgcolor - # ------------- @property def paper_bgcolor(self): """ @@ -2704,42 +1388,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -2751,8 +1400,6 @@ def paper_bgcolor(self): def paper_bgcolor(self, val): self["paper_bgcolor"] = val - # piecolorway - # ----------- @property def piecolorway(self): """ @@ -2775,8 +1422,6 @@ def piecolorway(self): def piecolorway(self, val): self["piecolorway"] = val - # plot_bgcolor - # ------------ @property def plot_bgcolor(self): """ @@ -2788,42 +1433,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -2835,8 +1445,6 @@ def plot_bgcolor(self): def plot_bgcolor(self, val): self["plot_bgcolor"] = val - # polar - # ----- @property def polar(self): """ @@ -2846,57 +1454,6 @@ 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 @@ -2907,8 +1464,6 @@ def polar(self): def polar(self, val): self["polar"] = val - # scattergap - # ---------- @property def scattergap(self): """ @@ -2928,8 +1483,6 @@ def scattergap(self): def scattergap(self, val): self["scattergap"] = val - # scattermode - # ----------- @property def scattermode(self): """ @@ -2954,8 +1507,6 @@ def scattermode(self): def scattermode(self, val): self["scattermode"] = val - # scene - # ----- @property def scene(self): """ @@ -2965,60 +1516,6 @@ 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 @@ -3029,8 +1526,6 @@ def scene(self): def scene(self, val): self["scene"] = val - # selectdirection - # --------------- @property def selectdirection(self): """ @@ -3053,8 +1548,6 @@ def selectdirection(self): def selectdirection(self, val): self["selectdirection"] = val - # selectionrevision - # ----------------- @property def selectionrevision(self): """ @@ -3073,8 +1566,6 @@ def selectionrevision(self): def selectionrevision(self, val): self["selectionrevision"] = val - # selections - # ---------- @property def selections(self): """ @@ -3084,86 +1575,6 @@ 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] @@ -3174,8 +1585,6 @@ def selections(self): def selections(self, val): self["selections"] = val - # selectiondefaults - # ----------------- @property def selectiondefaults(self): """ @@ -3189,8 +1598,6 @@ 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 @@ -3201,8 +1608,6 @@ def selectiondefaults(self): def selectiondefaults(self, val): self["selectiondefaults"] = val - # separators - # ---------- @property def separators(self): """ @@ -3225,8 +1630,6 @@ def separators(self): def separators(self, val): self["separators"] = val - # shapes - # ------ @property def shapes(self): """ @@ -3236,243 +1639,6 @@ 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] @@ -3483,8 +1649,6 @@ def shapes(self): def shapes(self, val): self["shapes"] = val - # shapedefaults - # ------------- @property def shapedefaults(self): """ @@ -3498,8 +1662,6 @@ 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 @@ -3510,8 +1672,6 @@ def shapedefaults(self): def shapedefaults(self, val): self["shapedefaults"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -3534,8 +1694,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # sliders - # ------- @property def sliders(self): """ @@ -3545,103 +1703,6 @@ 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] @@ -3652,8 +1713,6 @@ def sliders(self): def sliders(self, val): self["sliders"] = val - # sliderdefaults - # -------------- @property def sliderdefaults(self): """ @@ -3667,8 +1726,6 @@ 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 @@ -3679,8 +1736,6 @@ def sliderdefaults(self): def sliderdefaults(self, val): self["sliderdefaults"] = val - # smith - # ----- @property def smith(self): """ @@ -3690,22 +1745,6 @@ 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 @@ -3716,8 +1755,6 @@ def smith(self): def smith(self, val): self["smith"] = val - # spikedistance - # ------------- @property def spikedistance(self): """ @@ -3741,8 +1778,6 @@ def spikedistance(self): def spikedistance(self, val): self["spikedistance"] = val - # sunburstcolorway - # ---------------- @property def sunburstcolorway(self): """ @@ -3765,8 +1800,6 @@ def sunburstcolorway(self): def sunburstcolorway(self, val): self["sunburstcolorway"] = val - # template - # -------- @property def template(self): """ @@ -3795,16 +1828,6 @@ 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: @@ -3827,8 +1850,6 @@ def template(self): def template(self, val): self["template"] = val - # ternary - # ------- @property def ternary(self): """ @@ -3838,32 +1859,6 @@ 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 @@ -3874,8 +1869,6 @@ def ternary(self): def ternary(self, val): self["ternary"] = val - # title - # ----- @property def title(self): """ @@ -3885,76 +1878,6 @@ 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 @@ -3965,8 +1888,6 @@ def title(self): def title(self, val): self["title"] = val - # transition - # ---------- @property def transition(self): """ @@ -3978,19 +1899,6 @@ 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 @@ -4001,8 +1909,6 @@ def transition(self): def transition(self, val): self["transition"] = val - # treemapcolorway - # --------------- @property def treemapcolorway(self): """ @@ -4025,8 +1931,6 @@ def treemapcolorway(self): def treemapcolorway(self, val): self["treemapcolorway"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -4059,8 +1963,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # uniformtext - # ----------- @property def uniformtext(self): """ @@ -4070,23 +1972,6 @@ 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 @@ -4097,8 +1982,6 @@ def uniformtext(self): def uniformtext(self, val): self["uniformtext"] = val - # updatemenus - # ----------- @property def updatemenus(self): """ @@ -4108,88 +1991,6 @@ 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] @@ -4200,8 +2001,6 @@ def updatemenus(self): def updatemenus(self, val): self["updatemenus"] = val - # updatemenudefaults - # ------------------ @property def updatemenudefaults(self): """ @@ -4215,8 +2014,6 @@ 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 @@ -4227,8 +2024,6 @@ def updatemenudefaults(self): def updatemenudefaults(self, val): self["updatemenudefaults"] = val - # violingap - # --------- @property def violingap(self): """ @@ -4249,8 +2044,6 @@ def violingap(self): def violingap(self, val): self["violingap"] = val - # violingroupgap - # -------------- @property def violingroupgap(self): """ @@ -4271,8 +2064,6 @@ def violingroupgap(self): def violingroupgap(self, val): self["violingroupgap"] = val - # violinmode - # ---------- @property def violinmode(self): """ @@ -4297,8 +2088,6 @@ def violinmode(self): def violinmode(self, val): self["violinmode"] = val - # waterfallgap - # ------------ @property def waterfallgap(self): """ @@ -4318,8 +2107,6 @@ def waterfallgap(self): def waterfallgap(self, val): self["waterfallgap"] = val - # waterfallgroupgap - # ----------------- @property def waterfallgroupgap(self): """ @@ -4339,8 +2126,6 @@ def waterfallgroupgap(self): def waterfallgroupgap(self, val): self["waterfallgroupgap"] = val - # waterfallmode - # ------------- @property def waterfallmode(self): """ @@ -4364,8 +2149,6 @@ def waterfallmode(self): def waterfallmode(self, val): self["waterfallmode"] = val - # width - # ----- @property def width(self): """ @@ -4384,8 +2167,6 @@ def width(self): def width(self, val): self["width"] = val - # xaxis - # ----- @property def xaxis(self): """ @@ -4395,578 +2176,6 @@ 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 @@ -4977,8 +2186,6 @@ def xaxis(self): def xaxis(self, val): self["xaxis"] = val - # yaxis - # ----- @property def yaxis(self): """ @@ -4988,589 +2195,6 @@ 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 @@ -5581,8 +2205,6 @@ def yaxis(self): def yaxis(self, val): self["yaxis"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -6681,14 +3303,11 @@ def __init__( ------- Layout """ - super(Layout, self).__init__("layout") - + super().__init__("layout") 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", @@ -6787,8 +3406,6 @@ def __init__( "yaxis", } - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -6803,398 +3420,103 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("activeselection", arg, activeselection) + self._set_property("activeshape", arg, activeshape) + self._set_property("annotations", arg, annotations) + self._set_property("annotationdefaults", arg, annotationdefaults) + self._set_property("autosize", arg, autosize) + self._set_property("autotypenumbers", arg, autotypenumbers) + self._set_property("barcornerradius", arg, barcornerradius) + self._set_property("bargap", arg, bargap) + self._set_property("bargroupgap", arg, bargroupgap) + self._set_property("barmode", arg, barmode) + self._set_property("barnorm", arg, barnorm) + self._set_property("boxgap", arg, boxgap) + self._set_property("boxgroupgap", arg, boxgroupgap) + self._set_property("boxmode", arg, boxmode) + self._set_property("calendar", arg, calendar) + self._set_property("clickmode", arg, clickmode) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorway", arg, colorway) + self._set_property("computed", arg, computed) + self._set_property("datarevision", arg, datarevision) + self._set_property("dragmode", arg, dragmode) + self._set_property("editrevision", arg, editrevision) + self._set_property("extendfunnelareacolors", arg, extendfunnelareacolors) + self._set_property("extendiciclecolors", arg, extendiciclecolors) + self._set_property("extendpiecolors", arg, extendpiecolors) + self._set_property("extendsunburstcolors", arg, extendsunburstcolors) + self._set_property("extendtreemapcolors", arg, extendtreemapcolors) + self._set_property("font", arg, font) + self._set_property("funnelareacolorway", arg, funnelareacolorway) + self._set_property("funnelgap", arg, funnelgap) + self._set_property("funnelgroupgap", arg, funnelgroupgap) + self._set_property("funnelmode", arg, funnelmode) + self._set_property("geo", arg, geo) + self._set_property("grid", arg, grid) + self._set_property("height", arg, height) + self._set_property("hiddenlabels", arg, hiddenlabels) + self._set_property("hiddenlabelssrc", arg, hiddenlabelssrc) + self._set_property("hidesources", arg, hidesources) + self._set_property("hoverdistance", arg, hoverdistance) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovermode", arg, hovermode) + self._set_property("hoversubplots", arg, hoversubplots) + self._set_property("iciclecolorway", arg, iciclecolorway) + self._set_property("images", arg, images) + self._set_property("imagedefaults", arg, imagedefaults) + self._set_property("legend", arg, legend) + self._set_property("map", arg, map) + self._set_property("mapbox", arg, mapbox) + self._set_property("margin", arg, margin) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("minreducedheight", arg, minreducedheight) + self._set_property("minreducedwidth", arg, minreducedwidth) + self._set_property("modebar", arg, modebar) + self._set_property("newselection", arg, newselection) + self._set_property("newshape", arg, newshape) + self._set_property("paper_bgcolor", arg, paper_bgcolor) + self._set_property("piecolorway", arg, piecolorway) + self._set_property("plot_bgcolor", arg, plot_bgcolor) + self._set_property("polar", arg, polar) + self._set_property("scattergap", arg, scattergap) + self._set_property("scattermode", arg, scattermode) + self._set_property("scene", arg, scene) + self._set_property("selectdirection", arg, selectdirection) + self._set_property("selectionrevision", arg, selectionrevision) + self._set_property("selections", arg, selections) + self._set_property("selectiondefaults", arg, selectiondefaults) + self._set_property("separators", arg, separators) + self._set_property("shapes", arg, shapes) + self._set_property("shapedefaults", arg, shapedefaults) + self._set_property("showlegend", arg, showlegend) + self._set_property("sliders", arg, sliders) + self._set_property("sliderdefaults", arg, sliderdefaults) + self._set_property("smith", arg, smith) + self._set_property("spikedistance", arg, spikedistance) + self._set_property("sunburstcolorway", arg, sunburstcolorway) + self._set_property("template", arg, template) + self._set_property("ternary", arg, ternary) + self._set_property("title", arg, title) + self._set_property("transition", arg, transition) + self._set_property("treemapcolorway", arg, treemapcolorway) + self._set_property("uirevision", arg, uirevision) + self._set_property("uniformtext", arg, uniformtext) + self._set_property("updatemenus", arg, updatemenus) + self._set_property("updatemenudefaults", arg, updatemenudefaults) + self._set_property("violingap", arg, violingap) + self._set_property("violingroupgap", arg, violingroupgap) + self._set_property("violinmode", arg, violinmode) + self._set_property("waterfallgap", arg, waterfallgap) + self._set_property("waterfallgroupgap", arg, waterfallgroupgap) + self._set_property("waterfallmode", arg, waterfallmode) + self._set_property("width", arg, width) + self._set_property("xaxis", arg, xaxis) + self._set_property("yaxis", arg, yaxis) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_mesh3d.py b/plotly/graph_objs/_mesh3d.py index a23756902a..fa4ef25a7d 100644 --- a/plotly/graph_objs/_mesh3d.py +++ b/plotly/graph_objs/_mesh3d.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Mesh3d(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "mesh3d" _valid_props = { @@ -82,8 +83,6 @@ class Mesh3d(_BaseTraceType): "zsrc", } - # alphahull - # --------- @property def alphahull(self): """ @@ -117,8 +116,6 @@ def alphahull(self): def alphahull(self, val): self["alphahull"] = val - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -142,8 +139,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -165,8 +160,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -187,8 +180,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -210,8 +201,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -232,8 +221,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # color - # ----- @property def color(self): """ @@ -244,42 +231,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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to mesh3d.colorscale @@ -293,8 +245,6 @@ def color(self): def color(self, val): self["color"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -320,8 +270,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -331,272 +279,6 @@ 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 @@ -607,8 +289,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -660,8 +340,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # contour - # ------- @property def contour(self): """ @@ -671,16 +349,6 @@ 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 @@ -691,8 +359,6 @@ def contour(self): def contour(self, val): self["contour"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -714,8 +380,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -735,8 +399,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # delaunayaxis - # ------------ @property def delaunayaxis(self): """ @@ -759,8 +421,6 @@ def delaunayaxis(self): def delaunayaxis(self, val): self["delaunayaxis"] = val - # facecolor - # --------- @property def facecolor(self): """ @@ -780,8 +440,6 @@ def facecolor(self): def facecolor(self, val): self["facecolor"] = val - # facecolorsrc - # ------------ @property def facecolorsrc(self): """ @@ -801,8 +459,6 @@ def facecolorsrc(self): def facecolorsrc(self, val): self["facecolorsrc"] = val - # flatshading - # ----------- @property def flatshading(self): """ @@ -823,8 +479,6 @@ def flatshading(self): def flatshading(self, val): self["flatshading"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -849,8 +503,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -870,8 +522,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -881,44 +531,6 @@ 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 @@ -929,8 +541,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -973,8 +583,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -994,8 +602,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -1016,8 +622,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -1037,8 +641,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # i - # - @property def i(self): """ @@ -1063,8 +665,6 @@ def i(self): def i(self, val): self["i"] = val - # ids - # --- @property def ids(self): """ @@ -1085,8 +685,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -1105,8 +703,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # intensity - # --------- @property def intensity(self): """ @@ -1126,8 +722,6 @@ def intensity(self): def intensity(self, val): self["intensity"] = val - # intensitymode - # ------------- @property def intensitymode(self): """ @@ -1147,8 +741,6 @@ def intensitymode(self): def intensitymode(self, val): self["intensitymode"] = val - # intensitysrc - # ------------ @property def intensitysrc(self): """ @@ -1168,8 +760,6 @@ def intensitysrc(self): def intensitysrc(self, val): self["intensitysrc"] = val - # isrc - # ---- @property def isrc(self): """ @@ -1188,8 +778,6 @@ def isrc(self): def isrc(self, val): self["isrc"] = val - # j - # - @property def j(self): """ @@ -1214,8 +802,6 @@ def j(self): def j(self, val): self["j"] = val - # jsrc - # ---- @property def jsrc(self): """ @@ -1234,8 +820,6 @@ def jsrc(self): def jsrc(self, val): self["jsrc"] = val - # k - # - @property def k(self): """ @@ -1260,8 +844,6 @@ def k(self): def k(self, val): self["k"] = val - # ksrc - # ---- @property def ksrc(self): """ @@ -1280,8 +862,6 @@ def ksrc(self): def ksrc(self, val): self["ksrc"] = val - # legend - # ------ @property def legend(self): """ @@ -1305,8 +885,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -1328,8 +906,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -1339,13 +915,6 @@ 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 @@ -1356,8 +925,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -1383,8 +950,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -1404,8 +969,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # lighting - # -------- @property def lighting(self): """ @@ -1415,33 +978,6 @@ 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 @@ -1452,8 +988,6 @@ def lighting(self): def lighting(self, val): self["lighting"] = val - # lightposition - # ------------- @property def lightposition(self): """ @@ -1463,18 +997,6 @@ 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 @@ -1485,8 +1007,6 @@ def lightposition(self): def lightposition(self, val): self["lightposition"] = val - # meta - # ---- @property def meta(self): """ @@ -1513,8 +1033,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -1533,8 +1051,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -1555,8 +1071,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -1580,8 +1094,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -1602,8 +1114,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # scene - # ----- @property def scene(self): """ @@ -1627,8 +1137,6 @@ def scene(self): def scene(self, val): self["scene"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -1648,8 +1156,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # showscale - # --------- @property def showscale(self): """ @@ -1669,8 +1175,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # stream - # ------ @property def stream(self): """ @@ -1680,18 +1184,6 @@ 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 @@ -1702,8 +1194,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # text - # ---- @property def text(self): """ @@ -1726,8 +1216,6 @@ def text(self): def text(self, val): self["text"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1746,8 +1234,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # uid - # --- @property def uid(self): """ @@ -1768,8 +1254,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1801,8 +1285,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # vertexcolor - # ----------- @property def vertexcolor(self): """ @@ -1824,8 +1306,6 @@ def vertexcolor(self): def vertexcolor(self, val): self["vertexcolor"] = val - # vertexcolorsrc - # -------------- @property def vertexcolorsrc(self): """ @@ -1845,8 +1325,6 @@ def vertexcolorsrc(self): def vertexcolorsrc(self, val): self["vertexcolorsrc"] = val - # visible - # ------- @property def visible(self): """ @@ -1868,8 +1346,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # x - # - @property def x(self): """ @@ -1890,8 +1366,6 @@ def x(self): def x(self, val): self["x"] = val - # xcalendar - # --------- @property def xcalendar(self): """ @@ -1914,8 +1388,6 @@ def xcalendar(self): def xcalendar(self, val): self["xcalendar"] = val - # xhoverformat - # ------------ @property def xhoverformat(self): """ @@ -1945,8 +1417,6 @@ def xhoverformat(self): def xhoverformat(self, val): self["xhoverformat"] = val - # xsrc - # ---- @property def xsrc(self): """ @@ -1965,8 +1435,6 @@ def xsrc(self): def xsrc(self, val): self["xsrc"] = val - # y - # - @property def y(self): """ @@ -1987,8 +1455,6 @@ def y(self): def y(self, val): self["y"] = val - # ycalendar - # --------- @property def ycalendar(self): """ @@ -2011,8 +1477,6 @@ def ycalendar(self): def ycalendar(self, val): self["ycalendar"] = val - # yhoverformat - # ------------ @property def yhoverformat(self): """ @@ -2042,8 +1506,6 @@ def yhoverformat(self): def yhoverformat(self, val): self["yhoverformat"] = val - # ysrc - # ---- @property def ysrc(self): """ @@ -2062,8 +1524,6 @@ def ysrc(self): def ysrc(self, val): self["ysrc"] = val - # z - # - @property def z(self): """ @@ -2084,8 +1544,6 @@ def z(self): def z(self, val): self["z"] = val - # zcalendar - # --------- @property def zcalendar(self): """ @@ -2108,8 +1566,6 @@ def zcalendar(self): def zcalendar(self, val): self["zcalendar"] = val - # zhoverformat - # ------------ @property def zhoverformat(self): """ @@ -2139,8 +1595,6 @@ def zhoverformat(self): def zhoverformat(self, val): self["zhoverformat"] = val - # zsrc - # ---- @property def zsrc(self): """ @@ -2159,14 +1613,10 @@ def zsrc(self): def zsrc(self, val): self["zsrc"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -3031,14 +2481,11 @@ def __init__( ------- Mesh3d """ - super(Mesh3d, self).__init__("mesh3d") - + super().__init__("mesh3d") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -3053,304 +2500,81 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("alphahull", arg, alphahull) + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("color", arg, color) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("contour", arg, contour) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("delaunayaxis", arg, delaunayaxis) + self._set_property("facecolor", arg, facecolor) + self._set_property("facecolorsrc", arg, facecolorsrc) + self._set_property("flatshading", arg, flatshading) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("i", arg, i) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("intensity", arg, intensity) + self._set_property("intensitymode", arg, intensitymode) + self._set_property("intensitysrc", arg, intensitysrc) + self._set_property("isrc", arg, isrc) + self._set_property("j", arg, j) + self._set_property("jsrc", arg, jsrc) + self._set_property("k", arg, k) + self._set_property("ksrc", arg, ksrc) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("lighting", arg, lighting) + self._set_property("lightposition", arg, lightposition) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("reversescale", arg, reversescale) + self._set_property("scene", arg, scene) + self._set_property("showlegend", arg, showlegend) + self._set_property("showscale", arg, showscale) + self._set_property("stream", arg, stream) + self._set_property("text", arg, text) + self._set_property("textsrc", arg, textsrc) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("vertexcolor", arg, vertexcolor) + self._set_property("vertexcolorsrc", arg, vertexcolorsrc) + self._set_property("visible", arg, visible) + self._set_property("x", arg, x) + self._set_property("xcalendar", arg, xcalendar) + self._set_property("xhoverformat", arg, xhoverformat) + self._set_property("xsrc", arg, xsrc) + self._set_property("y", arg, y) + self._set_property("ycalendar", arg, ycalendar) + self._set_property("yhoverformat", arg, yhoverformat) + self._set_property("ysrc", arg, ysrc) + self._set_property("z", arg, z) + self._set_property("zcalendar", arg, zcalendar) + self._set_property("zhoverformat", arg, zhoverformat) + self._set_property("zsrc", arg, zsrc) self._props["type"] = "mesh3d" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_ohlc.py b/plotly/graph_objs/_ohlc.py index b979885827..3b3b43c4e9 100644 --- a/plotly/graph_objs/_ohlc.py +++ b/plotly/graph_objs/_ohlc.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Ohlc(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "ohlc" _valid_props = { @@ -61,8 +62,6 @@ class Ohlc(_BaseTraceType): "zorder", } - # close - # ----- @property def close(self): """ @@ -81,8 +80,6 @@ def close(self): def close(self, val): self["close"] = val - # closesrc - # -------- @property def closesrc(self): """ @@ -101,8 +98,6 @@ def closesrc(self): def closesrc(self, val): self["closesrc"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -124,8 +119,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -145,8 +138,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # decreasing - # ---------- @property def decreasing(self): """ @@ -156,12 +147,6 @@ 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 @@ -172,8 +157,6 @@ def decreasing(self): def decreasing(self, val): self["decreasing"] = val - # high - # ---- @property def high(self): """ @@ -192,8 +175,6 @@ def high(self): def high(self, val): self["high"] = val - # highsrc - # ------- @property def highsrc(self): """ @@ -212,8 +193,6 @@ def highsrc(self): def highsrc(self, val): self["highsrc"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -238,8 +217,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -259,8 +236,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -270,47 +245,6 @@ 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 @@ -321,8 +255,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -343,8 +275,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -364,8 +294,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -386,8 +314,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -406,8 +332,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # increasing - # ---------- @property def increasing(self): """ @@ -417,12 +341,6 @@ 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 @@ -433,8 +351,6 @@ def increasing(self): def increasing(self, val): self["increasing"] = val - # legend - # ------ @property def legend(self): """ @@ -458,8 +374,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -481,8 +395,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -492,13 +404,6 @@ 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 @@ -509,8 +414,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -536,8 +439,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -557,8 +458,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # line - # ---- @property def line(self): """ @@ -568,22 +467,6 @@ 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 @@ -594,8 +477,6 @@ def line(self): def line(self, val): self["line"] = val - # low - # --- @property def low(self): """ @@ -614,8 +495,6 @@ def low(self): def low(self, val): self["low"] = val - # lowsrc - # ------ @property def lowsrc(self): """ @@ -634,8 +513,6 @@ def lowsrc(self): def lowsrc(self, val): self["lowsrc"] = val - # meta - # ---- @property def meta(self): """ @@ -662,8 +539,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -682,8 +557,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -704,8 +577,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -724,8 +595,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # open - # ---- @property def open(self): """ @@ -744,8 +613,6 @@ def open(self): def open(self, val): self["open"] = val - # opensrc - # ------- @property def opensrc(self): """ @@ -764,8 +631,6 @@ def opensrc(self): def opensrc(self, val): self["opensrc"] = val - # selectedpoints - # -------------- @property def selectedpoints(self): """ @@ -788,8 +653,6 @@ def selectedpoints(self): def selectedpoints(self, val): self["selectedpoints"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -809,8 +672,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # stream - # ------ @property def stream(self): """ @@ -820,18 +681,6 @@ 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 @@ -842,8 +691,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # text - # ---- @property def text(self): """ @@ -867,8 +714,6 @@ def text(self): def text(self, val): self["text"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -887,8 +732,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -908,8 +751,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # uid - # --- @property def uid(self): """ @@ -930,8 +771,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -963,8 +802,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # visible - # ------- @property def visible(self): """ @@ -986,8 +823,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # x - # - @property def x(self): """ @@ -1007,8 +842,6 @@ def x(self): def x(self, val): self["x"] = val - # xaxis - # ----- @property def xaxis(self): """ @@ -1032,8 +865,6 @@ def xaxis(self): def xaxis(self, val): self["xaxis"] = val - # xcalendar - # --------- @property def xcalendar(self): """ @@ -1056,8 +887,6 @@ def xcalendar(self): def xcalendar(self, val): self["xcalendar"] = val - # xhoverformat - # ------------ @property def xhoverformat(self): """ @@ -1087,8 +916,6 @@ def xhoverformat(self): def xhoverformat(self, val): self["xhoverformat"] = val - # xperiod - # ------- @property def xperiod(self): """ @@ -1109,8 +936,6 @@ def xperiod(self): def xperiod(self, val): self["xperiod"] = val - # xperiod0 - # -------- @property def xperiod0(self): """ @@ -1132,8 +957,6 @@ def xperiod0(self): def xperiod0(self, val): self["xperiod0"] = val - # xperiodalignment - # ---------------- @property def xperiodalignment(self): """ @@ -1154,8 +977,6 @@ def xperiodalignment(self): def xperiodalignment(self, val): self["xperiodalignment"] = val - # xsrc - # ---- @property def xsrc(self): """ @@ -1174,8 +995,6 @@ def xsrc(self): def xsrc(self, val): self["xsrc"] = val - # yaxis - # ----- @property def yaxis(self): """ @@ -1199,8 +1018,6 @@ def yaxis(self): def yaxis(self, val): self["yaxis"] = val - # yhoverformat - # ------------ @property def yhoverformat(self): """ @@ -1230,8 +1047,6 @@ def yhoverformat(self): def yhoverformat(self, val): self["yhoverformat"] = val - # zorder - # ------ @property def zorder(self): """ @@ -1252,14 +1067,10 @@ def zorder(self): def zorder(self, val): self["zorder"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1789,14 +1600,11 @@ def __init__( ------- Ohlc """ - super(Ohlc, self).__init__("ohlc") - + super().__init__("ohlc") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1811,220 +1619,60 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("close", arg, close) + self._set_property("closesrc", arg, closesrc) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("decreasing", arg, decreasing) + self._set_property("high", arg, high) + self._set_property("highsrc", arg, highsrc) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("increasing", arg, increasing) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("line", arg, line) + self._set_property("low", arg, low) + self._set_property("lowsrc", arg, lowsrc) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("open", arg, open) + self._set_property("opensrc", arg, opensrc) + self._set_property("selectedpoints", arg, selectedpoints) + self._set_property("showlegend", arg, showlegend) + self._set_property("stream", arg, stream) + self._set_property("text", arg, text) + self._set_property("textsrc", arg, textsrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("visible", arg, visible) + self._set_property("x", arg, x) + self._set_property("xaxis", arg, xaxis) + self._set_property("xcalendar", arg, xcalendar) + self._set_property("xhoverformat", arg, xhoverformat) + self._set_property("xperiod", arg, xperiod) + self._set_property("xperiod0", arg, xperiod0) + self._set_property("xperiodalignment", arg, xperiodalignment) + self._set_property("xsrc", arg, xsrc) + self._set_property("yaxis", arg, yaxis) + self._set_property("yhoverformat", arg, yhoverformat) + self._set_property("zorder", arg, zorder) self._props["type"] = "ohlc" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_parcats.py b/plotly/graph_objs/_parcats.py index 14abfac323..d9122c5c97 100644 --- a/plotly/graph_objs/_parcats.py +++ b/plotly/graph_objs/_parcats.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Parcats(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "parcats" _valid_props = { @@ -35,8 +36,6 @@ class Parcats(_BaseTraceType): "visible", } - # arrangement - # ----------- @property def arrangement(self): """ @@ -60,8 +59,6 @@ def arrangement(self): def arrangement(self, val): self["arrangement"] = val - # bundlecolors - # ------------ @property def bundlecolors(self): """ @@ -81,8 +78,6 @@ def bundlecolors(self): def bundlecolors(self, val): self["bundlecolors"] = val - # counts - # ------ @property def counts(self): """ @@ -103,8 +98,6 @@ def counts(self): def counts(self, val): self["counts"] = val - # countssrc - # --------- @property def countssrc(self): """ @@ -123,8 +116,6 @@ def countssrc(self): def countssrc(self, val): self["countssrc"] = val - # dimensions - # ---------- @property def dimensions(self): """ @@ -136,59 +127,6 @@ 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] @@ -199,8 +137,6 @@ def dimensions(self): def dimensions(self, val): self["dimensions"] = val - # dimensiondefaults - # ----------------- @property def dimensiondefaults(self): """ @@ -215,8 +151,6 @@ 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 @@ -227,8 +161,6 @@ def dimensiondefaults(self): def dimensiondefaults(self, val): self["dimensiondefaults"] = val - # domain - # ------ @property def domain(self): """ @@ -238,22 +170,6 @@ 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 @@ -264,8 +180,6 @@ def domain(self): def domain(self, val): self["domain"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -289,8 +203,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoveron - # ------- @property def hoveron(self): """ @@ -314,8 +226,6 @@ def hoveron(self): def hoveron(self, val): self["hoveron"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -363,8 +273,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # labelfont - # --------- @property def labelfont(self): """ @@ -376,52 +284,6 @@ 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 @@ -432,8 +294,6 @@ def labelfont(self): def labelfont(self, val): self["labelfont"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -443,13 +303,6 @@ 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 @@ -460,8 +313,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -481,8 +332,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # line - # ---- @property def line(self): """ @@ -492,135 +341,6 @@ 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 @@ -631,8 +351,6 @@ def line(self): def line(self, val): self["line"] = val - # meta - # ---- @property def meta(self): """ @@ -659,8 +377,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -679,8 +395,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -701,8 +415,6 @@ def name(self): def name(self, val): self["name"] = val - # sortpaths - # --------- @property def sortpaths(self): """ @@ -724,8 +436,6 @@ def sortpaths(self): def sortpaths(self, val): self["sortpaths"] = val - # stream - # ------ @property def stream(self): """ @@ -735,18 +445,6 @@ 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 @@ -757,8 +455,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -770,52 +466,6 @@ 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 @@ -826,8 +476,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # uid - # --- @property def uid(self): """ @@ -848,8 +496,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -881,8 +527,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # visible - # ------- @property def visible(self): """ @@ -904,14 +548,10 @@ def visible(self): def visible(self, val): self["visible"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1245,14 +885,11 @@ def __init__( ------- Parcats """ - super(Parcats, self).__init__("parcats") - + super().__init__("parcats") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1267,116 +904,34 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("arrangement", arg, arrangement) + self._set_property("bundlecolors", arg, bundlecolors) + self._set_property("counts", arg, counts) + self._set_property("countssrc", arg, countssrc) + self._set_property("dimensions", arg, dimensions) + self._set_property("dimensiondefaults", arg, dimensiondefaults) + self._set_property("domain", arg, domain) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoveron", arg, hoveron) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("labelfont", arg, labelfont) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("line", arg, line) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("sortpaths", arg, sortpaths) + self._set_property("stream", arg, stream) + self._set_property("tickfont", arg, tickfont) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("visible", arg, visible) self._props["type"] = "parcats" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_parcoords.py b/plotly/graph_objs/_parcoords.py index 52ce3b4c6e..f9100dc900 100644 --- a/plotly/graph_objs/_parcoords.py +++ b/plotly/graph_objs/_parcoords.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Parcoords(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "parcoords" _valid_props = { @@ -37,8 +38,6 @@ class Parcoords(_BaseTraceType): "visible", } - # customdata - # ---------- @property def customdata(self): """ @@ -60,8 +59,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -81,8 +78,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # dimensions - # ---------- @property def dimensions(self): """ @@ -95,86 +90,6 @@ 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] @@ -185,8 +100,6 @@ def dimensions(self): def dimensions(self, val): self["dimensions"] = val - # dimensiondefaults - # ----------------- @property def dimensiondefaults(self): """ @@ -201,8 +114,6 @@ 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 @@ -213,8 +124,6 @@ def dimensiondefaults(self): def dimensiondefaults(self, val): self["dimensiondefaults"] = val - # domain - # ------ @property def domain(self): """ @@ -224,22 +133,6 @@ 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 @@ -250,8 +143,6 @@ def domain(self): def domain(self, val): self["domain"] = val - # ids - # --- @property def ids(self): """ @@ -272,8 +163,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -292,8 +181,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # labelangle - # ---------- @property def labelangle(self): """ @@ -317,8 +204,6 @@ def labelangle(self): def labelangle(self, val): self["labelangle"] = val - # labelfont - # --------- @property def labelfont(self): """ @@ -330,52 +215,6 @@ 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 @@ -386,8 +225,6 @@ def labelfont(self): def labelfont(self, val): self["labelfont"] = val - # labelside - # --------- @property def labelside(self): """ @@ -410,8 +247,6 @@ def labelside(self): def labelside(self, val): self["labelside"] = val - # legend - # ------ @property def legend(self): """ @@ -435,8 +270,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -446,13 +279,6 @@ 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 @@ -463,8 +289,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -490,8 +314,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -511,8 +333,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # line - # ---- @property def line(self): """ @@ -522,95 +342,6 @@ 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 @@ -621,8 +352,6 @@ def line(self): def line(self, val): self["line"] = val - # meta - # ---- @property def meta(self): """ @@ -649,8 +378,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -669,8 +396,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -691,8 +416,6 @@ def name(self): def name(self, val): self["name"] = val - # rangefont - # --------- @property def rangefont(self): """ @@ -704,52 +427,6 @@ 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 @@ -760,8 +437,6 @@ def rangefont(self): def rangefont(self, val): self["rangefont"] = val - # stream - # ------ @property def stream(self): """ @@ -771,18 +446,6 @@ 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 @@ -793,8 +456,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -806,52 +467,6 @@ 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 @@ -862,8 +477,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # uid - # --- @property def uid(self): """ @@ -884,8 +497,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -917,8 +528,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # unselected - # ---------- @property def unselected(self): """ @@ -928,13 +537,6 @@ 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 @@ -945,8 +547,6 @@ def unselected(self): def unselected(self, val): self["unselected"] = val - # visible - # ------- @property def visible(self): """ @@ -968,14 +568,10 @@ def visible(self): def visible(self, val): self["visible"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1272,14 +868,11 @@ def __init__( ------- Parcoords """ - super(Parcoords, self).__init__("parcoords") - + super().__init__("parcoords") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1294,124 +887,36 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("dimensions", arg, dimensions) + self._set_property("dimensiondefaults", arg, dimensiondefaults) + self._set_property("domain", arg, domain) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("labelangle", arg, labelangle) + self._set_property("labelfont", arg, labelfont) + self._set_property("labelside", arg, labelside) + self._set_property("legend", arg, legend) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("line", arg, line) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("rangefont", arg, rangefont) + self._set_property("stream", arg, stream) + self._set_property("tickfont", arg, tickfont) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("unselected", arg, unselected) + self._set_property("visible", arg, visible) self._props["type"] = "parcoords" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_pie.py b/plotly/graph_objs/_pie.py index 199af139f8..822cad3bc7 100644 --- a/plotly/graph_objs/_pie.py +++ b/plotly/graph_objs/_pie.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Pie(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "pie" _valid_props = { @@ -65,8 +66,6 @@ class Pie(_BaseTraceType): "visible", } - # automargin - # ---------- @property def automargin(self): """ @@ -85,8 +84,6 @@ def automargin(self): def automargin(self, val): self["automargin"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -108,8 +105,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -129,8 +124,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # direction - # --------- @property def direction(self): """ @@ -151,8 +144,6 @@ def direction(self): def direction(self, val): self["direction"] = val - # dlabel - # ------ @property def dlabel(self): """ @@ -171,8 +162,6 @@ def dlabel(self): def dlabel(self, val): self["dlabel"] = val - # domain - # ------ @property def domain(self): """ @@ -182,21 +171,6 @@ 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 @@ -207,8 +181,6 @@ def domain(self): def domain(self, val): self["domain"] = val - # hole - # ---- @property def hole(self): """ @@ -228,8 +200,6 @@ def hole(self): def hole(self, val): self["hole"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -254,8 +224,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -275,8 +243,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -286,44 +252,6 @@ 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 @@ -334,8 +262,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -380,8 +306,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -401,8 +325,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -427,8 +349,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -448,8 +368,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -470,8 +388,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -490,8 +406,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # insidetextfont - # -------------- @property def insidetextfont(self): """ @@ -503,79 +417,6 @@ 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 @@ -586,8 +427,6 @@ def insidetextfont(self): def insidetextfont(self, val): self["insidetextfont"] = val - # insidetextorientation - # --------------------- @property def insidetextorientation(self): """ @@ -614,8 +453,6 @@ def insidetextorientation(self): def insidetextorientation(self, val): self["insidetextorientation"] = val - # label0 - # ------ @property def label0(self): """ @@ -636,8 +473,6 @@ def label0(self): def label0(self, val): self["label0"] = val - # labels - # ------ @property def labels(self): """ @@ -660,8 +495,6 @@ def labels(self): def labels(self, val): self["labels"] = val - # labelssrc - # --------- @property def labelssrc(self): """ @@ -680,8 +513,6 @@ def labelssrc(self): def labelssrc(self, val): self["labelssrc"] = val - # legend - # ------ @property def legend(self): """ @@ -705,8 +536,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -728,8 +557,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -739,13 +566,6 @@ 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 @@ -756,8 +576,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -783,8 +601,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -804,8 +620,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # marker - # ------ @property def marker(self): """ @@ -815,21 +629,6 @@ 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 @@ -840,8 +639,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # meta - # ---- @property def meta(self): """ @@ -868,8 +665,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -888,8 +683,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -910,8 +703,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -930,8 +721,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # outsidetextfont - # --------------- @property def outsidetextfont(self): """ @@ -943,79 +732,6 @@ 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 @@ -1026,8 +742,6 @@ def outsidetextfont(self): def outsidetextfont(self, val): self["outsidetextfont"] = val - # pull - # ---- @property def pull(self): """ @@ -1050,8 +764,6 @@ def pull(self): def pull(self, val): self["pull"] = val - # pullsrc - # ------- @property def pullsrc(self): """ @@ -1070,8 +782,6 @@ def pullsrc(self): def pullsrc(self, val): self["pullsrc"] = val - # rotation - # -------- @property def rotation(self): """ @@ -1093,8 +803,6 @@ def rotation(self): def rotation(self, val): self["rotation"] = val - # scalegroup - # ---------- @property def scalegroup(self): """ @@ -1116,8 +824,6 @@ def scalegroup(self): def scalegroup(self, val): self["scalegroup"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -1137,8 +843,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # sort - # ---- @property def sort(self): """ @@ -1158,8 +862,6 @@ def sort(self): def sort(self, val): self["sort"] = val - # stream - # ------ @property def stream(self): """ @@ -1169,18 +871,6 @@ 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 @@ -1191,8 +881,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # text - # ---- @property def text(self): """ @@ -1215,8 +903,6 @@ def text(self): def text(self, val): self["text"] = val - # textfont - # -------- @property def textfont(self): """ @@ -1228,79 +914,6 @@ 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 @@ -1311,8 +924,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # textinfo - # -------- @property def textinfo(self): """ @@ -1334,8 +945,6 @@ def textinfo(self): def textinfo(self, val): self["textinfo"] = val - # textposition - # ------------ @property def textposition(self): """ @@ -1356,8 +965,6 @@ def textposition(self): def textposition(self, val): self["textposition"] = val - # textpositionsrc - # --------------- @property def textpositionsrc(self): """ @@ -1377,8 +984,6 @@ def textpositionsrc(self): def textpositionsrc(self, val): self["textpositionsrc"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1397,8 +1002,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # texttemplate - # ------------ @property def texttemplate(self): """ @@ -1432,8 +1035,6 @@ def texttemplate(self): def texttemplate(self, val): self["texttemplate"] = val - # texttemplatesrc - # --------------- @property def texttemplatesrc(self): """ @@ -1453,8 +1054,6 @@ def texttemplatesrc(self): def texttemplatesrc(self, val): self["texttemplatesrc"] = val - # title - # ----- @property def title(self): """ @@ -1464,16 +1063,6 @@ 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 @@ -1484,8 +1073,6 @@ def title(self): def title(self, val): self["title"] = val - # uid - # --- @property def uid(self): """ @@ -1506,8 +1093,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1539,8 +1124,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # values - # ------ @property def values(self): """ @@ -1560,8 +1143,6 @@ def values(self): def values(self, val): self["values"] = val - # valuessrc - # --------- @property def valuessrc(self): """ @@ -1580,8 +1161,6 @@ def valuessrc(self): def valuessrc(self, val): self["valuessrc"] = val - # visible - # ------- @property def visible(self): """ @@ -1603,14 +1182,10 @@ def visible(self): def visible(self, val): self["visible"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -2215,14 +1790,11 @@ def __init__( ------- Pie """ - super(Pie, self).__init__("pie") - + super().__init__("pie") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2237,236 +1809,64 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("automargin", arg, automargin) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("direction", arg, direction) + self._set_property("dlabel", arg, dlabel) + self._set_property("domain", arg, domain) + self._set_property("hole", arg, hole) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("insidetextfont", arg, insidetextfont) + self._set_property("insidetextorientation", arg, insidetextorientation) + self._set_property("label0", arg, label0) + self._set_property("labels", arg, labels) + self._set_property("labelssrc", arg, labelssrc) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("marker", arg, marker) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("outsidetextfont", arg, outsidetextfont) + self._set_property("pull", arg, pull) + self._set_property("pullsrc", arg, pullsrc) + self._set_property("rotation", arg, rotation) + self._set_property("scalegroup", arg, scalegroup) + self._set_property("showlegend", arg, showlegend) + self._set_property("sort", arg, sort) + self._set_property("stream", arg, stream) + self._set_property("text", arg, text) + self._set_property("textfont", arg, textfont) + self._set_property("textinfo", arg, textinfo) + self._set_property("textposition", arg, textposition) + self._set_property("textpositionsrc", arg, textpositionsrc) + self._set_property("textsrc", arg, textsrc) + self._set_property("texttemplate", arg, texttemplate) + self._set_property("texttemplatesrc", arg, texttemplatesrc) + self._set_property("title", arg, title) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("values", arg, values) + self._set_property("valuessrc", arg, valuessrc) + self._set_property("visible", arg, visible) self._props["type"] = "pie" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_sankey.py b/plotly/graph_objs/_sankey.py index 0baeb303eb..2fdac8ed9b 100644 --- a/plotly/graph_objs/_sankey.py +++ b/plotly/graph_objs/_sankey.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Sankey(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "sankey" _valid_props = { @@ -38,8 +39,6 @@ class Sankey(_BaseTraceType): "visible", } - # arrangement - # ----------- @property def arrangement(self): """ @@ -65,8 +64,6 @@ def arrangement(self): def arrangement(self, val): self["arrangement"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -88,8 +85,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -109,8 +104,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # domain - # ------ @property def domain(self): """ @@ -120,21 +113,6 @@ 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 @@ -145,8 +123,6 @@ def domain(self): def domain(self, val): self["domain"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -172,8 +148,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -183,44 +157,6 @@ 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 @@ -231,8 +167,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # ids - # --- @property def ids(self): """ @@ -253,8 +187,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -273,8 +205,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # legend - # ------ @property def legend(self): """ @@ -298,8 +228,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -309,13 +237,6 @@ 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 @@ -326,8 +247,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -353,8 +272,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -374,8 +291,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # link - # ---- @property def link(self): """ @@ -387,119 +302,6 @@ 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 @@ -510,8 +312,6 @@ def link(self): def link(self, val): self["link"] = val - # meta - # ---- @property def meta(self): """ @@ -538,8 +338,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -558,8 +356,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -580,8 +376,6 @@ def name(self): def name(self, val): self["name"] = val - # node - # ---- @property def node(self): """ @@ -593,103 +387,6 @@ 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 @@ -700,8 +397,6 @@ def node(self): def node(self, val): self["node"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -721,8 +416,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # selectedpoints - # -------------- @property def selectedpoints(self): """ @@ -745,8 +438,6 @@ def selectedpoints(self): def selectedpoints(self, val): self["selectedpoints"] = val - # stream - # ------ @property def stream(self): """ @@ -756,18 +447,6 @@ 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 @@ -778,8 +457,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # textfont - # -------- @property def textfont(self): """ @@ -791,52 +468,6 @@ 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 @@ -847,8 +478,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # uid - # --- @property def uid(self): """ @@ -869,8 +498,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -902,8 +529,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # valueformat - # ----------- @property def valueformat(self): """ @@ -926,8 +551,6 @@ def valueformat(self): def valueformat(self, val): self["valueformat"] = val - # valuesuffix - # ----------- @property def valuesuffix(self): """ @@ -948,8 +571,6 @@ def valuesuffix(self): def valuesuffix(self, val): self["valuesuffix"] = val - # visible - # ------- @property def visible(self): """ @@ -971,14 +592,10 @@ def visible(self): def visible(self, val): self["visible"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1297,14 +914,11 @@ def __init__( ------- Sankey """ - super(Sankey, self).__init__("sankey") - + super().__init__("sankey") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1319,128 +933,37 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("arrangement", arg, arrangement) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("domain", arg, domain) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("legend", arg, legend) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("link", arg, link) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("node", arg, node) + self._set_property("orientation", arg, orientation) + self._set_property("selectedpoints", arg, selectedpoints) + self._set_property("stream", arg, stream) + self._set_property("textfont", arg, textfont) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("valueformat", arg, valueformat) + self._set_property("valuesuffix", arg, valuesuffix) + self._set_property("visible", arg, visible) self._props["type"] = "sankey" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_scatter.py b/plotly/graph_objs/_scatter.py index a7e3556f63..331daf4f9e 100644 --- a/plotly/graph_objs/_scatter.py +++ b/plotly/graph_objs/_scatter.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Scatter(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "scatter" _valid_props = { @@ -86,8 +87,6 @@ class Scatter(_BaseTraceType): "zorder", } - # alignmentgroup - # -------------- @property def alignmentgroup(self): """ @@ -109,8 +108,6 @@ def alignmentgroup(self): def alignmentgroup(self, val): self["alignmentgroup"] = val - # cliponaxis - # ---------- @property def cliponaxis(self): """ @@ -132,8 +129,6 @@ def cliponaxis(self): def cliponaxis(self, val): self["cliponaxis"] = val - # connectgaps - # ----------- @property def connectgaps(self): """ @@ -153,8 +148,6 @@ def connectgaps(self): def connectgaps(self, val): self["connectgaps"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -176,8 +169,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -197,8 +188,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # dx - # -- @property def dx(self): """ @@ -217,8 +206,6 @@ def dx(self): def dx(self, val): self["dx"] = val - # dy - # -- @property def dy(self): """ @@ -237,8 +224,6 @@ def dy(self): def dy(self, val): self["dy"] = val - # error_x - # ------- @property def error_x(self): """ @@ -248,66 +233,6 @@ 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 @@ -318,8 +243,6 @@ def error_x(self): def error_x(self, val): self["error_x"] = val - # error_y - # ------- @property def error_y(self): """ @@ -329,64 +252,6 @@ 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 @@ -397,8 +262,6 @@ def error_y(self): def error_y(self, val): self["error_y"] = val - # fill - # ---- @property def fill(self): """ @@ -437,8 +300,6 @@ def fill(self): def fill(self, val): self["fill"] = val - # fillcolor - # --------- @property def fillcolor(self): """ @@ -453,42 +314,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -500,8 +326,6 @@ def fillcolor(self): def fillcolor(self, val): self["fillcolor"] = val - # fillgradient - # ------------ @property def fillgradient(self): """ @@ -514,38 +338,6 @@ 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 @@ -556,8 +348,6 @@ def fillgradient(self): def fillgradient(self, val): self["fillgradient"] = val - # fillpattern - # ----------- @property def fillpattern(self): """ @@ -569,57 +359,6 @@ 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 @@ -630,8 +369,6 @@ def fillpattern(self): def fillpattern(self, val): self["fillpattern"] = val - # groupnorm - # --------- @property def groupnorm(self): """ @@ -659,8 +396,6 @@ def groupnorm(self): def groupnorm(self, val): self["groupnorm"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -685,8 +420,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -706,8 +439,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -717,44 +448,6 @@ 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 @@ -765,8 +458,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hoveron - # ------- @property def hoveron(self): """ @@ -790,8 +481,6 @@ def hoveron(self): def hoveron(self, val): self["hoveron"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -834,8 +523,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -855,8 +542,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -881,8 +566,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -902,8 +585,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -924,8 +605,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -944,8 +623,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # legend - # ------ @property def legend(self): """ @@ -969,8 +646,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -992,8 +667,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -1003,13 +676,6 @@ 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 @@ -1020,8 +686,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -1047,8 +711,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -1068,8 +730,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # line - # ---- @property def line(self): """ @@ -1079,44 +739,6 @@ 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 @@ -1127,8 +749,6 @@ def line(self): def line(self, val): self["line"] = val - # marker - # ------ @property def marker(self): """ @@ -1138,158 +758,6 @@ 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 @@ -1300,8 +768,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # meta - # ---- @property def meta(self): """ @@ -1328,8 +794,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -1348,8 +812,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # mode - # ---- @property def mode(self): """ @@ -1376,8 +838,6 @@ def mode(self): def mode(self, val): self["mode"] = val - # name - # ---- @property def name(self): """ @@ -1398,8 +858,6 @@ def name(self): def name(self, val): self["name"] = val - # offsetgroup - # ----------- @property def offsetgroup(self): """ @@ -1421,8 +879,6 @@ def offsetgroup(self): def offsetgroup(self, val): self["offsetgroup"] = val - # opacity - # ------- @property def opacity(self): """ @@ -1441,8 +897,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -1468,8 +922,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # selected - # -------- @property def selected(self): """ @@ -1479,17 +931,6 @@ 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 @@ -1500,8 +941,6 @@ def selected(self): def selected(self, val): self["selected"] = val - # selectedpoints - # -------------- @property def selectedpoints(self): """ @@ -1524,8 +963,6 @@ def selectedpoints(self): def selectedpoints(self, val): self["selectedpoints"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -1545,8 +982,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # stackgaps - # --------- @property def stackgaps(self): """ @@ -1573,8 +1008,6 @@ def stackgaps(self): def stackgaps(self, val): self["stackgaps"] = val - # stackgroup - # ---------- @property def stackgroup(self): """ @@ -1605,8 +1038,6 @@ def stackgroup(self): def stackgroup(self, val): self["stackgroup"] = val - # stream - # ------ @property def stream(self): """ @@ -1616,18 +1047,6 @@ 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 @@ -1638,8 +1057,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # text - # ---- @property def text(self): """ @@ -1665,8 +1082,6 @@ def text(self): def text(self, val): self["text"] = val - # textfont - # -------- @property def textfont(self): """ @@ -1678,79 +1093,6 @@ 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 @@ -1761,8 +1103,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # textposition - # ------------ @property def textposition(self): """ @@ -1786,8 +1126,6 @@ def textposition(self): def textposition(self, val): self["textposition"] = val - # textpositionsrc - # --------------- @property def textpositionsrc(self): """ @@ -1807,8 +1145,6 @@ def textpositionsrc(self): def textpositionsrc(self, val): self["textpositionsrc"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1827,8 +1163,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # texttemplate - # ------------ @property def texttemplate(self): """ @@ -1860,8 +1194,6 @@ def texttemplate(self): def texttemplate(self, val): self["texttemplate"] = val - # texttemplatesrc - # --------------- @property def texttemplatesrc(self): """ @@ -1881,8 +1213,6 @@ def texttemplatesrc(self): def texttemplatesrc(self, val): self["texttemplatesrc"] = val - # uid - # --- @property def uid(self): """ @@ -1903,8 +1233,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1936,8 +1264,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # unselected - # ---------- @property def unselected(self): """ @@ -1947,17 +1273,6 @@ 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 @@ -1968,8 +1283,6 @@ def unselected(self): def unselected(self, val): self["unselected"] = val - # visible - # ------- @property def visible(self): """ @@ -1991,8 +1304,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # x - # - @property def x(self): """ @@ -2011,8 +1322,6 @@ def x(self): def x(self, val): self["x"] = val - # x0 - # -- @property def x0(self): """ @@ -2032,8 +1341,6 @@ def x0(self): def x0(self, val): self["x0"] = val - # xaxis - # ----- @property def xaxis(self): """ @@ -2057,8 +1364,6 @@ def xaxis(self): def xaxis(self, val): self["xaxis"] = val - # xcalendar - # --------- @property def xcalendar(self): """ @@ -2081,8 +1386,6 @@ def xcalendar(self): def xcalendar(self, val): self["xcalendar"] = val - # xhoverformat - # ------------ @property def xhoverformat(self): """ @@ -2112,8 +1415,6 @@ def xhoverformat(self): def xhoverformat(self, val): self["xhoverformat"] = val - # xperiod - # ------- @property def xperiod(self): """ @@ -2134,8 +1435,6 @@ def xperiod(self): def xperiod(self, val): self["xperiod"] = val - # xperiod0 - # -------- @property def xperiod0(self): """ @@ -2157,8 +1456,6 @@ def xperiod0(self): def xperiod0(self, val): self["xperiod0"] = val - # xperiodalignment - # ---------------- @property def xperiodalignment(self): """ @@ -2179,8 +1476,6 @@ def xperiodalignment(self): def xperiodalignment(self, val): self["xperiodalignment"] = val - # xsrc - # ---- @property def xsrc(self): """ @@ -2199,8 +1494,6 @@ def xsrc(self): def xsrc(self, val): self["xsrc"] = val - # y - # - @property def y(self): """ @@ -2219,8 +1512,6 @@ def y(self): def y(self, val): self["y"] = val - # y0 - # -- @property def y0(self): """ @@ -2240,8 +1531,6 @@ def y0(self): def y0(self, val): self["y0"] = val - # yaxis - # ----- @property def yaxis(self): """ @@ -2265,8 +1554,6 @@ def yaxis(self): def yaxis(self, val): self["yaxis"] = val - # ycalendar - # --------- @property def ycalendar(self): """ @@ -2289,8 +1576,6 @@ def ycalendar(self): def ycalendar(self, val): self["ycalendar"] = val - # yhoverformat - # ------------ @property def yhoverformat(self): """ @@ -2320,8 +1605,6 @@ def yhoverformat(self): def yhoverformat(self, val): self["yhoverformat"] = val - # yperiod - # ------- @property def yperiod(self): """ @@ -2342,8 +1625,6 @@ def yperiod(self): def yperiod(self, val): self["yperiod"] = val - # yperiod0 - # -------- @property def yperiod0(self): """ @@ -2365,8 +1646,6 @@ def yperiod0(self): def yperiod0(self, val): self["yperiod0"] = val - # yperiodalignment - # ---------------- @property def yperiodalignment(self): """ @@ -2387,8 +1666,6 @@ def yperiodalignment(self): def yperiodalignment(self, val): self["yperiodalignment"] = val - # ysrc - # ---- @property def ysrc(self): """ @@ -2407,8 +1684,6 @@ def ysrc(self): def ysrc(self, val): self["ysrc"] = val - # zorder - # ------ @property def zorder(self): """ @@ -2429,14 +1704,10 @@ def zorder(self): def zorder(self, val): self["zorder"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -3379,14 +2650,11 @@ def __init__( ------- Scatter """ - super(Scatter, self).__init__("scatter") - + super().__init__("scatter") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -3401,320 +2669,85 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("alignmentgroup", arg, alignmentgroup) + self._set_property("cliponaxis", arg, cliponaxis) + self._set_property("connectgaps", arg, connectgaps) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("dx", arg, dx) + self._set_property("dy", arg, dy) + self._set_property("error_x", arg, error_x) + self._set_property("error_y", arg, error_y) + self._set_property("fill", arg, fill) + self._set_property("fillcolor", arg, fillcolor) + self._set_property("fillgradient", arg, fillgradient) + self._set_property("fillpattern", arg, fillpattern) + self._set_property("groupnorm", arg, groupnorm) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hoveron", arg, hoveron) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("line", arg, line) + self._set_property("marker", arg, marker) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("mode", arg, mode) + self._set_property("name", arg, name) + self._set_property("offsetgroup", arg, offsetgroup) + self._set_property("opacity", arg, opacity) + self._set_property("orientation", arg, orientation) + self._set_property("selected", arg, selected) + self._set_property("selectedpoints", arg, selectedpoints) + self._set_property("showlegend", arg, showlegend) + self._set_property("stackgaps", arg, stackgaps) + self._set_property("stackgroup", arg, stackgroup) + self._set_property("stream", arg, stream) + self._set_property("text", arg, text) + self._set_property("textfont", arg, textfont) + self._set_property("textposition", arg, textposition) + self._set_property("textpositionsrc", arg, textpositionsrc) + self._set_property("textsrc", arg, textsrc) + self._set_property("texttemplate", arg, texttemplate) + self._set_property("texttemplatesrc", arg, texttemplatesrc) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("unselected", arg, unselected) + self._set_property("visible", arg, visible) + self._set_property("x", arg, x) + self._set_property("x0", arg, x0) + self._set_property("xaxis", arg, xaxis) + self._set_property("xcalendar", arg, xcalendar) + self._set_property("xhoverformat", arg, xhoverformat) + self._set_property("xperiod", arg, xperiod) + self._set_property("xperiod0", arg, xperiod0) + self._set_property("xperiodalignment", arg, xperiodalignment) + self._set_property("xsrc", arg, xsrc) + self._set_property("y", arg, y) + self._set_property("y0", arg, y0) + self._set_property("yaxis", arg, yaxis) + self._set_property("ycalendar", arg, ycalendar) + self._set_property("yhoverformat", arg, yhoverformat) + self._set_property("yperiod", arg, yperiod) + self._set_property("yperiod0", arg, yperiod0) + self._set_property("yperiodalignment", arg, yperiodalignment) + self._set_property("ysrc", arg, ysrc) + self._set_property("zorder", arg, zorder) self._props["type"] = "scatter" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_scatter3d.py b/plotly/graph_objs/_scatter3d.py index bb0094c928..8c01f1b85d 100644 --- a/plotly/graph_objs/_scatter3d.py +++ b/plotly/graph_objs/_scatter3d.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Scatter3d(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "scatter3d" _valid_props = { @@ -67,8 +68,6 @@ class Scatter3d(_BaseTraceType): "zsrc", } - # connectgaps - # ----------- @property def connectgaps(self): """ @@ -88,8 +87,6 @@ def connectgaps(self): def connectgaps(self, val): self["connectgaps"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -111,8 +108,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -132,8 +127,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # error_x - # ------- @property def error_x(self): """ @@ -143,66 +136,6 @@ 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 @@ -213,8 +146,6 @@ def error_x(self): def error_x(self, val): self["error_x"] = val - # error_y - # ------- @property def error_y(self): """ @@ -224,66 +155,6 @@ 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 @@ -294,8 +165,6 @@ def error_y(self): def error_y(self, val): self["error_y"] = val - # error_z - # ------- @property def error_z(self): """ @@ -305,64 +174,6 @@ 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 @@ -373,8 +184,6 @@ def error_z(self): def error_z(self, val): self["error_z"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -399,8 +208,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -420,8 +227,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -431,44 +236,6 @@ 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 @@ -479,8 +246,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -523,8 +288,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -544,8 +307,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -570,8 +331,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -591,8 +350,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -613,8 +370,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -633,8 +388,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # legend - # ------ @property def legend(self): """ @@ -658,8 +411,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -681,8 +432,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -692,13 +441,6 @@ 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 @@ -709,8 +451,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -736,8 +476,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -757,8 +495,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # line - # ---- @property def line(self): """ @@ -768,99 +504,6 @@ 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 @@ -871,8 +514,6 @@ def line(self): def line(self, val): self["line"] = val - # marker - # ------ @property def marker(self): """ @@ -882,130 +523,6 @@ 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 @@ -1016,8 +533,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # meta - # ---- @property def meta(self): """ @@ -1044,8 +559,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -1064,8 +577,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # mode - # ---- @property def mode(self): """ @@ -1092,8 +603,6 @@ def mode(self): def mode(self, val): self["mode"] = val - # name - # ---- @property def name(self): """ @@ -1114,8 +623,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -1134,8 +641,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # projection - # ---------- @property def projection(self): """ @@ -1145,21 +650,6 @@ 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 @@ -1170,8 +660,6 @@ def projection(self): def projection(self, val): self["projection"] = val - # scene - # ----- @property def scene(self): """ @@ -1195,8 +683,6 @@ def scene(self): def scene(self, val): self["scene"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -1216,8 +702,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # stream - # ------ @property def stream(self): """ @@ -1227,18 +711,6 @@ 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 @@ -1249,8 +721,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # surfaceaxis - # ----------- @property def surfaceaxis(self): """ @@ -1272,8 +742,6 @@ def surfaceaxis(self): def surfaceaxis(self, val): self["surfaceaxis"] = val - # surfacecolor - # ------------ @property def surfacecolor(self): """ @@ -1284,42 +752,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -1331,8 +764,6 @@ def surfacecolor(self): def surfacecolor(self, val): self["surfacecolor"] = val - # text - # ---- @property def text(self): """ @@ -1358,8 +789,6 @@ def text(self): def text(self, val): self["text"] = val - # textfont - # -------- @property def textfont(self): """ @@ -1371,55 +800,6 @@ 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 @@ -1430,8 +810,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # textposition - # ------------ @property def textposition(self): """ @@ -1455,8 +833,6 @@ def textposition(self): def textposition(self, val): self["textposition"] = val - # textpositionsrc - # --------------- @property def textpositionsrc(self): """ @@ -1476,8 +852,6 @@ def textpositionsrc(self): def textpositionsrc(self, val): self["textpositionsrc"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1496,8 +870,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # texttemplate - # ------------ @property def texttemplate(self): """ @@ -1529,8 +901,6 @@ def texttemplate(self): def texttemplate(self, val): self["texttemplate"] = val - # texttemplatesrc - # --------------- @property def texttemplatesrc(self): """ @@ -1550,8 +920,6 @@ def texttemplatesrc(self): def texttemplatesrc(self, val): self["texttemplatesrc"] = val - # uid - # --- @property def uid(self): """ @@ -1572,8 +940,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1605,8 +971,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # visible - # ------- @property def visible(self): """ @@ -1628,8 +992,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # x - # - @property def x(self): """ @@ -1648,8 +1010,6 @@ def x(self): def x(self, val): self["x"] = val - # xcalendar - # --------- @property def xcalendar(self): """ @@ -1672,8 +1032,6 @@ def xcalendar(self): def xcalendar(self, val): self["xcalendar"] = val - # xhoverformat - # ------------ @property def xhoverformat(self): """ @@ -1703,8 +1061,6 @@ def xhoverformat(self): def xhoverformat(self, val): self["xhoverformat"] = val - # xsrc - # ---- @property def xsrc(self): """ @@ -1723,8 +1079,6 @@ def xsrc(self): def xsrc(self, val): self["xsrc"] = val - # y - # - @property def y(self): """ @@ -1743,8 +1097,6 @@ def y(self): def y(self, val): self["y"] = val - # ycalendar - # --------- @property def ycalendar(self): """ @@ -1767,8 +1119,6 @@ def ycalendar(self): def ycalendar(self, val): self["ycalendar"] = val - # yhoverformat - # ------------ @property def yhoverformat(self): """ @@ -1798,8 +1148,6 @@ def yhoverformat(self): def yhoverformat(self, val): self["yhoverformat"] = val - # ysrc - # ---- @property def ysrc(self): """ @@ -1818,8 +1166,6 @@ def ysrc(self): def ysrc(self, val): self["ysrc"] = val - # z - # - @property def z(self): """ @@ -1838,8 +1184,6 @@ def z(self): def z(self, val): self["z"] = val - # zcalendar - # --------- @property def zcalendar(self): """ @@ -1862,8 +1206,6 @@ def zcalendar(self): def zcalendar(self, val): self["zcalendar"] = val - # zhoverformat - # ------------ @property def zhoverformat(self): """ @@ -1893,8 +1235,6 @@ def zhoverformat(self): def zhoverformat(self, val): self["zhoverformat"] = val - # zsrc - # ---- @property def zsrc(self): """ @@ -1913,14 +1253,10 @@ def zsrc(self): def zsrc(self, val): self["zsrc"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -2578,14 +1914,11 @@ def __init__( ------- Scatter3d """ - super(Scatter3d, self).__init__("scatter3d") - + super().__init__("scatter3d") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2600,244 +1933,66 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("connectgaps", arg, connectgaps) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("error_x", arg, error_x) + self._set_property("error_y", arg, error_y) + self._set_property("error_z", arg, error_z) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("line", arg, line) + self._set_property("marker", arg, marker) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("mode", arg, mode) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("projection", arg, projection) + self._set_property("scene", arg, scene) + self._set_property("showlegend", arg, showlegend) + self._set_property("stream", arg, stream) + self._set_property("surfaceaxis", arg, surfaceaxis) + self._set_property("surfacecolor", arg, surfacecolor) + self._set_property("text", arg, text) + self._set_property("textfont", arg, textfont) + self._set_property("textposition", arg, textposition) + self._set_property("textpositionsrc", arg, textpositionsrc) + self._set_property("textsrc", arg, textsrc) + self._set_property("texttemplate", arg, texttemplate) + self._set_property("texttemplatesrc", arg, texttemplatesrc) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("visible", arg, visible) + self._set_property("x", arg, x) + self._set_property("xcalendar", arg, xcalendar) + self._set_property("xhoverformat", arg, xhoverformat) + self._set_property("xsrc", arg, xsrc) + self._set_property("y", arg, y) + self._set_property("ycalendar", arg, ycalendar) + self._set_property("yhoverformat", arg, yhoverformat) + self._set_property("ysrc", arg, ysrc) + self._set_property("z", arg, z) + self._set_property("zcalendar", arg, zcalendar) + self._set_property("zhoverformat", arg, zhoverformat) + self._set_property("zsrc", arg, zsrc) self._props["type"] = "scatter3d" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_scattercarpet.py b/plotly/graph_objs/_scattercarpet.py index 4c66720906..5d838adf51 100644 --- a/plotly/graph_objs/_scattercarpet.py +++ b/plotly/graph_objs/_scattercarpet.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Scattercarpet(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "scattercarpet" _valid_props = { @@ -62,8 +63,6 @@ class Scattercarpet(_BaseTraceType): "zorder", } - # a - # - @property def a(self): """ @@ -82,8 +81,6 @@ def a(self): def a(self, val): self["a"] = val - # asrc - # ---- @property def asrc(self): """ @@ -102,8 +99,6 @@ def asrc(self): def asrc(self, val): self["asrc"] = val - # b - # - @property def b(self): """ @@ -122,8 +117,6 @@ def b(self): def b(self, val): self["b"] = val - # bsrc - # ---- @property def bsrc(self): """ @@ -142,8 +135,6 @@ def bsrc(self): def bsrc(self, val): self["bsrc"] = val - # carpet - # ------ @property def carpet(self): """ @@ -165,8 +156,6 @@ def carpet(self): def carpet(self, val): self["carpet"] = val - # connectgaps - # ----------- @property def connectgaps(self): """ @@ -186,8 +175,6 @@ def connectgaps(self): def connectgaps(self, val): self["connectgaps"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -209,8 +196,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -230,8 +215,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # fill - # ---- @property def fill(self): """ @@ -259,8 +242,6 @@ def fill(self): def fill(self, val): self["fill"] = val - # fillcolor - # --------- @property def fillcolor(self): """ @@ -273,42 +254,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -320,8 +266,6 @@ def fillcolor(self): def fillcolor(self, val): self["fillcolor"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -346,8 +290,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -367,8 +309,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -378,44 +318,6 @@ 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 @@ -426,8 +328,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hoveron - # ------- @property def hoveron(self): """ @@ -451,8 +351,6 @@ def hoveron(self): def hoveron(self, val): self["hoveron"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -495,8 +393,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -516,8 +412,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -542,8 +436,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -563,8 +455,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -585,8 +475,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -605,8 +493,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # legend - # ------ @property def legend(self): """ @@ -630,8 +516,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -653,8 +537,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -664,13 +546,6 @@ 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 @@ -681,8 +556,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -708,8 +581,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -729,8 +600,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # line - # ---- @property def line(self): """ @@ -740,38 +609,6 @@ 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 @@ -782,8 +619,6 @@ def line(self): def line(self, val): self["line"] = val - # marker - # ------ @property def marker(self): """ @@ -793,159 +628,6 @@ 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 @@ -956,8 +638,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # meta - # ---- @property def meta(self): """ @@ -984,8 +664,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -1004,8 +682,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # mode - # ---- @property def mode(self): """ @@ -1032,8 +708,6 @@ def mode(self): def mode(self, val): self["mode"] = val - # name - # ---- @property def name(self): """ @@ -1054,8 +728,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -1074,8 +746,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # selected - # -------- @property def selected(self): """ @@ -1085,17 +755,6 @@ 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 @@ -1106,8 +765,6 @@ def selected(self): def selected(self, val): self["selected"] = val - # selectedpoints - # -------------- @property def selectedpoints(self): """ @@ -1130,8 +787,6 @@ def selectedpoints(self): def selectedpoints(self, val): self["selectedpoints"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -1151,8 +806,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # stream - # ------ @property def stream(self): """ @@ -1162,18 +815,6 @@ 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 @@ -1184,8 +825,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # text - # ---- @property def text(self): """ @@ -1211,8 +850,6 @@ def text(self): def text(self, val): self["text"] = val - # textfont - # -------- @property def textfont(self): """ @@ -1224,79 +861,6 @@ 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 @@ -1307,8 +871,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # textposition - # ------------ @property def textposition(self): """ @@ -1332,8 +894,6 @@ def textposition(self): def textposition(self, val): self["textposition"] = val - # textpositionsrc - # --------------- @property def textpositionsrc(self): """ @@ -1353,8 +913,6 @@ def textpositionsrc(self): def textpositionsrc(self, val): self["textpositionsrc"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1373,8 +931,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # texttemplate - # ------------ @property def texttemplate(self): """ @@ -1408,8 +964,6 @@ def texttemplate(self): def texttemplate(self, val): self["texttemplate"] = val - # texttemplatesrc - # --------------- @property def texttemplatesrc(self): """ @@ -1429,8 +983,6 @@ def texttemplatesrc(self): def texttemplatesrc(self, val): self["texttemplatesrc"] = val - # uid - # --- @property def uid(self): """ @@ -1451,8 +1003,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1484,8 +1034,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # unselected - # ---------- @property def unselected(self): """ @@ -1495,17 +1043,6 @@ 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 @@ -1516,8 +1053,6 @@ def unselected(self): def unselected(self, val): self["unselected"] = val - # visible - # ------- @property def visible(self): """ @@ -1539,8 +1074,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # xaxis - # ----- @property def xaxis(self): """ @@ -1564,8 +1097,6 @@ def xaxis(self): def xaxis(self, val): self["xaxis"] = val - # yaxis - # ----- @property def yaxis(self): """ @@ -1589,8 +1120,6 @@ def yaxis(self): def yaxis(self, val): self["yaxis"] = val - # zorder - # ------ @property def zorder(self): """ @@ -1611,14 +1140,10 @@ def zorder(self): def zorder(self, val): self["zorder"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -2225,14 +1750,11 @@ def __init__( ------- Scattercarpet """ - super(Scattercarpet, self).__init__("scattercarpet") - + super().__init__("scattercarpet") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2247,224 +1769,61 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("a", arg, a) + self._set_property("asrc", arg, asrc) + self._set_property("b", arg, b) + self._set_property("bsrc", arg, bsrc) + self._set_property("carpet", arg, carpet) + self._set_property("connectgaps", arg, connectgaps) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("fill", arg, fill) + self._set_property("fillcolor", arg, fillcolor) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hoveron", arg, hoveron) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("line", arg, line) + self._set_property("marker", arg, marker) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("mode", arg, mode) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("selected", arg, selected) + self._set_property("selectedpoints", arg, selectedpoints) + self._set_property("showlegend", arg, showlegend) + self._set_property("stream", arg, stream) + self._set_property("text", arg, text) + self._set_property("textfont", arg, textfont) + self._set_property("textposition", arg, textposition) + self._set_property("textpositionsrc", arg, textpositionsrc) + self._set_property("textsrc", arg, textsrc) + self._set_property("texttemplate", arg, texttemplate) + self._set_property("texttemplatesrc", arg, texttemplatesrc) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("unselected", arg, unselected) + self._set_property("visible", arg, visible) + self._set_property("xaxis", arg, xaxis) + self._set_property("yaxis", arg, yaxis) + self._set_property("zorder", arg, zorder) self._props["type"] = "scattercarpet" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_scattergeo.py b/plotly/graph_objs/_scattergeo.py index 0fcf2f839a..d63e89f232 100644 --- a/plotly/graph_objs/_scattergeo.py +++ b/plotly/graph_objs/_scattergeo.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Scattergeo(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "scattergeo" _valid_props = { @@ -63,8 +64,6 @@ class Scattergeo(_BaseTraceType): "visible", } - # connectgaps - # ----------- @property def connectgaps(self): """ @@ -84,8 +83,6 @@ def connectgaps(self): def connectgaps(self, val): self["connectgaps"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -107,8 +104,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -128,8 +123,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # featureidkey - # ------------ @property def featureidkey(self): """ @@ -152,8 +145,6 @@ def featureidkey(self): def featureidkey(self, val): self["featureidkey"] = val - # fill - # ---- @property def fill(self): """ @@ -175,8 +166,6 @@ def fill(self): def fill(self, val): self["fill"] = val - # fillcolor - # --------- @property def fillcolor(self): """ @@ -189,42 +178,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -236,8 +190,6 @@ def fillcolor(self): def fillcolor(self, val): self["fillcolor"] = val - # geo - # --- @property def geo(self): """ @@ -261,8 +213,6 @@ def geo(self): def geo(self, val): self["geo"] = val - # geojson - # ------- @property def geojson(self): """ @@ -285,8 +235,6 @@ def geojson(self): def geojson(self, val): self["geojson"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -311,8 +259,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -332,8 +278,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -343,44 +287,6 @@ 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 @@ -391,8 +297,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -435,8 +339,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -456,8 +358,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -483,8 +383,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -504,8 +402,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -526,8 +422,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -546,8 +440,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # lat - # --- @property def lat(self): """ @@ -566,8 +458,6 @@ def lat(self): def lat(self, val): self["lat"] = val - # latsrc - # ------ @property def latsrc(self): """ @@ -586,8 +476,6 @@ def latsrc(self): def latsrc(self, val): self["latsrc"] = val - # legend - # ------ @property def legend(self): """ @@ -611,8 +499,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -634,8 +520,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -645,13 +529,6 @@ 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 @@ -662,8 +539,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -689,8 +564,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -710,8 +583,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # line - # ---- @property def line(self): """ @@ -721,18 +592,6 @@ 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 @@ -743,8 +602,6 @@ def line(self): def line(self, val): self["line"] = val - # locationmode - # ------------ @property def locationmode(self): """ @@ -768,8 +625,6 @@ def locationmode(self): def locationmode(self, val): self["locationmode"] = val - # locations - # --------- @property def locations(self): """ @@ -790,8 +645,6 @@ def locations(self): def locations(self, val): self["locations"] = val - # locationssrc - # ------------ @property def locationssrc(self): """ @@ -811,8 +664,6 @@ def locationssrc(self): def locationssrc(self, val): self["locationssrc"] = val - # lon - # --- @property def lon(self): """ @@ -831,8 +682,6 @@ def lon(self): def lon(self, val): self["lon"] = val - # lonsrc - # ------ @property def lonsrc(self): """ @@ -851,8 +700,6 @@ def lonsrc(self): def lonsrc(self, val): self["lonsrc"] = val - # marker - # ------ @property def marker(self): """ @@ -862,158 +709,6 @@ 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 @@ -1024,8 +719,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # meta - # ---- @property def meta(self): """ @@ -1052,8 +745,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -1072,8 +763,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # mode - # ---- @property def mode(self): """ @@ -1100,8 +789,6 @@ def mode(self): def mode(self, val): self["mode"] = val - # name - # ---- @property def name(self): """ @@ -1122,8 +809,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -1142,8 +827,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # selected - # -------- @property def selected(self): """ @@ -1153,17 +836,6 @@ 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 @@ -1174,8 +846,6 @@ def selected(self): def selected(self, val): self["selected"] = val - # selectedpoints - # -------------- @property def selectedpoints(self): """ @@ -1198,8 +868,6 @@ def selectedpoints(self): def selectedpoints(self, val): self["selectedpoints"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -1219,8 +887,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # stream - # ------ @property def stream(self): """ @@ -1230,18 +896,6 @@ 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 @@ -1252,8 +906,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # text - # ---- @property def text(self): """ @@ -1280,8 +932,6 @@ def text(self): def text(self, val): self["text"] = val - # textfont - # -------- @property def textfont(self): """ @@ -1293,79 +943,6 @@ 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 @@ -1376,8 +953,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # textposition - # ------------ @property def textposition(self): """ @@ -1401,8 +976,6 @@ def textposition(self): def textposition(self, val): self["textposition"] = val - # textpositionsrc - # --------------- @property def textpositionsrc(self): """ @@ -1422,8 +995,6 @@ def textpositionsrc(self): def textpositionsrc(self, val): self["textpositionsrc"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1442,8 +1013,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # texttemplate - # ------------ @property def texttemplate(self): """ @@ -1477,8 +1046,6 @@ def texttemplate(self): def texttemplate(self, val): self["texttemplate"] = val - # texttemplatesrc - # --------------- @property def texttemplatesrc(self): """ @@ -1498,8 +1065,6 @@ def texttemplatesrc(self): def texttemplatesrc(self, val): self["texttemplatesrc"] = val - # uid - # --- @property def uid(self): """ @@ -1520,8 +1085,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1553,8 +1116,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # unselected - # ---------- @property def unselected(self): """ @@ -1564,17 +1125,6 @@ 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 @@ -1585,8 +1135,6 @@ def unselected(self): def unselected(self, val): self["unselected"] = val - # visible - # ------- @property def visible(self): """ @@ -1608,14 +1156,10 @@ def visible(self): def visible(self, val): self["visible"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -2233,14 +1777,11 @@ def __init__( ------- Scattergeo """ - super(Scattergeo, self).__init__("scattergeo") - + super().__init__("scattergeo") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2255,228 +1796,62 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("connectgaps", arg, connectgaps) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("featureidkey", arg, featureidkey) + self._set_property("fill", arg, fill) + self._set_property("fillcolor", arg, fillcolor) + self._set_property("geo", arg, geo) + self._set_property("geojson", arg, geojson) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("lat", arg, lat) + self._set_property("latsrc", arg, latsrc) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("line", arg, line) + self._set_property("locationmode", arg, locationmode) + self._set_property("locations", arg, locations) + self._set_property("locationssrc", arg, locationssrc) + self._set_property("lon", arg, lon) + self._set_property("lonsrc", arg, lonsrc) + self._set_property("marker", arg, marker) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("mode", arg, mode) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("selected", arg, selected) + self._set_property("selectedpoints", arg, selectedpoints) + self._set_property("showlegend", arg, showlegend) + self._set_property("stream", arg, stream) + self._set_property("text", arg, text) + self._set_property("textfont", arg, textfont) + self._set_property("textposition", arg, textposition) + self._set_property("textpositionsrc", arg, textpositionsrc) + self._set_property("textsrc", arg, textsrc) + self._set_property("texttemplate", arg, texttemplate) + self._set_property("texttemplatesrc", arg, texttemplatesrc) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("unselected", arg, unselected) + self._set_property("visible", arg, visible) self._props["type"] = "scattergeo" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_scattergl.py b/plotly/graph_objs/_scattergl.py index ec04368d8b..f161fd75d4 100644 --- a/plotly/graph_objs/_scattergl.py +++ b/plotly/graph_objs/_scattergl.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Scattergl(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "scattergl" _valid_props = { @@ -75,8 +76,6 @@ class Scattergl(_BaseTraceType): "ysrc", } - # connectgaps - # ----------- @property def connectgaps(self): """ @@ -96,8 +95,6 @@ def connectgaps(self): def connectgaps(self, val): self["connectgaps"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -119,8 +116,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -140,8 +135,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # dx - # -- @property def dx(self): """ @@ -160,8 +153,6 @@ def dx(self): def dx(self, val): self["dx"] = val - # dy - # -- @property def dy(self): """ @@ -180,8 +171,6 @@ def dy(self): def dy(self, val): self["dy"] = val - # error_x - # ------- @property def error_x(self): """ @@ -191,66 +180,6 @@ 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 @@ -261,8 +190,6 @@ def error_x(self): def error_x(self, val): self["error_x"] = val - # error_y - # ------- @property def error_y(self): """ @@ -272,64 +199,6 @@ 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 @@ -340,8 +209,6 @@ def error_y(self): def error_y(self, val): self["error_y"] = val - # fill - # ---- @property def fill(self): """ @@ -380,8 +247,6 @@ def fill(self): def fill(self, val): self["fill"] = val - # fillcolor - # --------- @property def fillcolor(self): """ @@ -394,42 +259,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -441,8 +271,6 @@ def fillcolor(self): def fillcolor(self, val): self["fillcolor"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -467,8 +295,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -488,8 +314,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -499,44 +323,6 @@ 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 @@ -547,8 +333,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -591,8 +375,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -612,8 +394,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -638,8 +418,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -659,8 +437,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -681,8 +457,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -701,8 +475,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # legend - # ------ @property def legend(self): """ @@ -726,8 +498,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -749,8 +519,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -760,13 +528,6 @@ 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 @@ -777,8 +538,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -804,8 +563,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -825,8 +582,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # line - # ---- @property def line(self): """ @@ -836,18 +591,6 @@ 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 @@ -858,8 +601,6 @@ def line(self): def line(self, val): self["line"] = val - # marker - # ------ @property def marker(self): """ @@ -869,138 +610,6 @@ 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 @@ -1011,8 +620,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # meta - # ---- @property def meta(self): """ @@ -1039,8 +646,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -1059,8 +664,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # mode - # ---- @property def mode(self): """ @@ -1082,8 +685,6 @@ def mode(self): def mode(self, val): self["mode"] = val - # name - # ---- @property def name(self): """ @@ -1104,8 +705,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -1124,8 +723,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # selected - # -------- @property def selected(self): """ @@ -1135,17 +732,6 @@ 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 @@ -1156,8 +742,6 @@ def selected(self): def selected(self, val): self["selected"] = val - # selectedpoints - # -------------- @property def selectedpoints(self): """ @@ -1180,8 +764,6 @@ def selectedpoints(self): def selectedpoints(self, val): self["selectedpoints"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -1201,8 +783,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # stream - # ------ @property def stream(self): """ @@ -1212,18 +792,6 @@ 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 @@ -1234,8 +802,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # text - # ---- @property def text(self): """ @@ -1261,8 +827,6 @@ def text(self): def text(self, val): self["text"] = val - # textfont - # -------- @property def textfont(self): """ @@ -1274,55 +838,6 @@ 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 @@ -1333,8 +848,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # textposition - # ------------ @property def textposition(self): """ @@ -1358,8 +871,6 @@ def textposition(self): def textposition(self, val): self["textposition"] = val - # textpositionsrc - # --------------- @property def textpositionsrc(self): """ @@ -1379,8 +890,6 @@ def textpositionsrc(self): def textpositionsrc(self, val): self["textpositionsrc"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1399,8 +908,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # texttemplate - # ------------ @property def texttemplate(self): """ @@ -1432,8 +939,6 @@ def texttemplate(self): def texttemplate(self, val): self["texttemplate"] = val - # texttemplatesrc - # --------------- @property def texttemplatesrc(self): """ @@ -1453,8 +958,6 @@ def texttemplatesrc(self): def texttemplatesrc(self, val): self["texttemplatesrc"] = val - # uid - # --- @property def uid(self): """ @@ -1475,8 +978,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1508,8 +1009,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # unselected - # ---------- @property def unselected(self): """ @@ -1519,17 +1018,6 @@ 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 @@ -1540,8 +1028,6 @@ def unselected(self): def unselected(self, val): self["unselected"] = val - # visible - # ------- @property def visible(self): """ @@ -1563,8 +1049,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # x - # - @property def x(self): """ @@ -1583,8 +1067,6 @@ def x(self): def x(self, val): self["x"] = val - # x0 - # -- @property def x0(self): """ @@ -1604,8 +1086,6 @@ def x0(self): def x0(self, val): self["x0"] = val - # xaxis - # ----- @property def xaxis(self): """ @@ -1629,8 +1109,6 @@ def xaxis(self): def xaxis(self, val): self["xaxis"] = val - # xcalendar - # --------- @property def xcalendar(self): """ @@ -1653,8 +1131,6 @@ def xcalendar(self): def xcalendar(self, val): self["xcalendar"] = val - # xhoverformat - # ------------ @property def xhoverformat(self): """ @@ -1684,8 +1160,6 @@ def xhoverformat(self): def xhoverformat(self, val): self["xhoverformat"] = val - # xperiod - # ------- @property def xperiod(self): """ @@ -1706,8 +1180,6 @@ def xperiod(self): def xperiod(self, val): self["xperiod"] = val - # xperiod0 - # -------- @property def xperiod0(self): """ @@ -1729,8 +1201,6 @@ def xperiod0(self): def xperiod0(self, val): self["xperiod0"] = val - # xperiodalignment - # ---------------- @property def xperiodalignment(self): """ @@ -1751,8 +1221,6 @@ def xperiodalignment(self): def xperiodalignment(self, val): self["xperiodalignment"] = val - # xsrc - # ---- @property def xsrc(self): """ @@ -1771,8 +1239,6 @@ def xsrc(self): def xsrc(self, val): self["xsrc"] = val - # y - # - @property def y(self): """ @@ -1791,8 +1257,6 @@ def y(self): def y(self, val): self["y"] = val - # y0 - # -- @property def y0(self): """ @@ -1812,8 +1276,6 @@ def y0(self): def y0(self, val): self["y0"] = val - # yaxis - # ----- @property def yaxis(self): """ @@ -1837,8 +1299,6 @@ def yaxis(self): def yaxis(self, val): self["yaxis"] = val - # ycalendar - # --------- @property def ycalendar(self): """ @@ -1861,8 +1321,6 @@ def ycalendar(self): def ycalendar(self, val): self["ycalendar"] = val - # yhoverformat - # ------------ @property def yhoverformat(self): """ @@ -1892,8 +1350,6 @@ def yhoverformat(self): def yhoverformat(self, val): self["yhoverformat"] = val - # yperiod - # ------- @property def yperiod(self): """ @@ -1914,8 +1370,6 @@ def yperiod(self): def yperiod(self, val): self["yperiod"] = val - # yperiod0 - # -------- @property def yperiod0(self): """ @@ -1937,8 +1391,6 @@ def yperiod0(self): def yperiod0(self, val): self["yperiod0"] = val - # yperiodalignment - # ---------------- @property def yperiodalignment(self): """ @@ -1959,8 +1411,6 @@ def yperiodalignment(self): def yperiodalignment(self, val): self["yperiodalignment"] = val - # ysrc - # ---- @property def ysrc(self): """ @@ -1979,14 +1429,10 @@ def ysrc(self): def ysrc(self, val): self["ysrc"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -2752,14 +2198,11 @@ def __init__( ------- Scattergl """ - super(Scattergl, self).__init__("scattergl") - + super().__init__("scattergl") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2774,276 +2217,74 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("connectgaps", arg, connectgaps) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("dx", arg, dx) + self._set_property("dy", arg, dy) + self._set_property("error_x", arg, error_x) + self._set_property("error_y", arg, error_y) + self._set_property("fill", arg, fill) + self._set_property("fillcolor", arg, fillcolor) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("line", arg, line) + self._set_property("marker", arg, marker) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("mode", arg, mode) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("selected", arg, selected) + self._set_property("selectedpoints", arg, selectedpoints) + self._set_property("showlegend", arg, showlegend) + self._set_property("stream", arg, stream) + self._set_property("text", arg, text) + self._set_property("textfont", arg, textfont) + self._set_property("textposition", arg, textposition) + self._set_property("textpositionsrc", arg, textpositionsrc) + self._set_property("textsrc", arg, textsrc) + self._set_property("texttemplate", arg, texttemplate) + self._set_property("texttemplatesrc", arg, texttemplatesrc) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("unselected", arg, unselected) + self._set_property("visible", arg, visible) + self._set_property("x", arg, x) + self._set_property("x0", arg, x0) + self._set_property("xaxis", arg, xaxis) + self._set_property("xcalendar", arg, xcalendar) + self._set_property("xhoverformat", arg, xhoverformat) + self._set_property("xperiod", arg, xperiod) + self._set_property("xperiod0", arg, xperiod0) + self._set_property("xperiodalignment", arg, xperiodalignment) + self._set_property("xsrc", arg, xsrc) + self._set_property("y", arg, y) + self._set_property("y0", arg, y0) + self._set_property("yaxis", arg, yaxis) + self._set_property("ycalendar", arg, ycalendar) + self._set_property("yhoverformat", arg, yhoverformat) + self._set_property("yperiod", arg, yperiod) + self._set_property("yperiod0", arg, yperiod0) + self._set_property("yperiodalignment", arg, yperiodalignment) + self._set_property("ysrc", arg, ysrc) self._props["type"] = "scattergl" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_scattermap.py b/plotly/graph_objs/_scattermap.py index cb1b8713c9..e244e57dc8 100644 --- a/plotly/graph_objs/_scattermap.py +++ b/plotly/graph_objs/_scattermap.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Scattermap(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "scattermap" _valid_props = { @@ -59,8 +60,6 @@ class Scattermap(_BaseTraceType): "visible", } - # below - # ----- @property def below(self): """ @@ -83,8 +82,6 @@ def below(self): def below(self, val): self["below"] = val - # cluster - # ------- @property def cluster(self): """ @@ -94,42 +91,6 @@ 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 @@ -140,8 +101,6 @@ def cluster(self): def cluster(self, val): self["cluster"] = val - # connectgaps - # ----------- @property def connectgaps(self): """ @@ -161,8 +120,6 @@ def connectgaps(self): def connectgaps(self, val): self["connectgaps"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -184,8 +141,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -205,8 +160,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # fill - # ---- @property def fill(self): """ @@ -228,8 +181,6 @@ def fill(self): def fill(self, val): self["fill"] = val - # fillcolor - # --------- @property def fillcolor(self): """ @@ -242,42 +193,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -289,8 +205,6 @@ def fillcolor(self): def fillcolor(self, val): self["fillcolor"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -315,8 +229,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -336,8 +248,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -347,44 +257,6 @@ 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 @@ -395,8 +267,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -439,8 +309,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -460,8 +328,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -486,8 +352,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -507,8 +371,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -529,8 +391,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -549,8 +409,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # lat - # --- @property def lat(self): """ @@ -569,8 +427,6 @@ def lat(self): def lat(self, val): self["lat"] = val - # latsrc - # ------ @property def latsrc(self): """ @@ -589,8 +445,6 @@ def latsrc(self): def latsrc(self, val): self["latsrc"] = val - # legend - # ------ @property def legend(self): """ @@ -614,8 +468,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -637,8 +489,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -648,13 +498,6 @@ 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 @@ -665,8 +508,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -692,8 +533,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -713,8 +552,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # line - # ---- @property def line(self): """ @@ -724,13 +561,6 @@ 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 @@ -741,8 +571,6 @@ def line(self): def line(self, val): self["line"] = val - # lon - # --- @property def lon(self): """ @@ -761,8 +589,6 @@ def lon(self): def lon(self, val): self["lon"] = val - # lonsrc - # ------ @property def lonsrc(self): """ @@ -781,8 +607,6 @@ def lonsrc(self): def lonsrc(self, val): self["lonsrc"] = val - # marker - # ------ @property def marker(self): """ @@ -792,138 +616,6 @@ 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 @@ -934,8 +626,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # meta - # ---- @property def meta(self): """ @@ -962,8 +652,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -982,8 +670,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # mode - # ---- @property def mode(self): """ @@ -1008,8 +694,6 @@ def mode(self): def mode(self, val): self["mode"] = val - # name - # ---- @property def name(self): """ @@ -1030,8 +714,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -1050,8 +732,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # selected - # -------- @property def selected(self): """ @@ -1061,13 +741,6 @@ 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 @@ -1078,8 +751,6 @@ def selected(self): def selected(self, val): self["selected"] = val - # selectedpoints - # -------------- @property def selectedpoints(self): """ @@ -1102,8 +773,6 @@ def selectedpoints(self): def selectedpoints(self, val): self["selectedpoints"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -1123,8 +792,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # stream - # ------ @property def stream(self): """ @@ -1134,18 +801,6 @@ 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 @@ -1156,8 +811,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # subplot - # ------- @property def subplot(self): """ @@ -1181,8 +834,6 @@ def subplot(self): def subplot(self, val): self["subplot"] = val - # text - # ---- @property def text(self): """ @@ -1208,8 +859,6 @@ def text(self): def text(self, val): self["text"] = val - # textfont - # -------- @property def textfont(self): """ @@ -1223,35 +872,6 @@ 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 @@ -1262,8 +882,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # textposition - # ------------ @property def textposition(self): """ @@ -1286,8 +904,6 @@ def textposition(self): def textposition(self, val): self["textposition"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1306,8 +922,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # texttemplate - # ------------ @property def texttemplate(self): """ @@ -1341,8 +955,6 @@ def texttemplate(self): def texttemplate(self, val): self["texttemplate"] = val - # texttemplatesrc - # --------------- @property def texttemplatesrc(self): """ @@ -1362,8 +974,6 @@ def texttemplatesrc(self): def texttemplatesrc(self, val): self["texttemplatesrc"] = val - # uid - # --- @property def uid(self): """ @@ -1384,8 +994,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1417,8 +1025,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # unselected - # ---------- @property def unselected(self): """ @@ -1428,13 +1034,6 @@ 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 @@ -1445,8 +1044,6 @@ def unselected(self): def unselected(self, val): self["unselected"] = val - # visible - # ------- @property def visible(self): """ @@ -1468,14 +1065,10 @@ def visible(self): def visible(self, val): self["visible"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -2042,14 +1635,11 @@ def __init__( ------- Scattermap """ - super(Scattermap, self).__init__("scattermap") - + super().__init__("scattermap") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2064,212 +1654,58 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("below", arg, below) + self._set_property("cluster", arg, cluster) + self._set_property("connectgaps", arg, connectgaps) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("fill", arg, fill) + self._set_property("fillcolor", arg, fillcolor) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("lat", arg, lat) + self._set_property("latsrc", arg, latsrc) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("line", arg, line) + self._set_property("lon", arg, lon) + self._set_property("lonsrc", arg, lonsrc) + self._set_property("marker", arg, marker) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("mode", arg, mode) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("selected", arg, selected) + self._set_property("selectedpoints", arg, selectedpoints) + self._set_property("showlegend", arg, showlegend) + self._set_property("stream", arg, stream) + self._set_property("subplot", arg, subplot) + self._set_property("text", arg, text) + self._set_property("textfont", arg, textfont) + self._set_property("textposition", arg, textposition) + self._set_property("textsrc", arg, textsrc) + self._set_property("texttemplate", arg, texttemplate) + self._set_property("texttemplatesrc", arg, texttemplatesrc) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("unselected", arg, unselected) + self._set_property("visible", arg, visible) self._props["type"] = "scattermap" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_scattermapbox.py b/plotly/graph_objs/_scattermapbox.py index 9f98a2b1af..345c02fa5b 100644 --- a/plotly/graph_objs/_scattermapbox.py +++ b/plotly/graph_objs/_scattermapbox.py @@ -1,3 +1,6 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy import warnings @@ -5,8 +8,6 @@ class Scattermapbox(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "scattermapbox" _valid_props = { @@ -60,8 +61,6 @@ class Scattermapbox(_BaseTraceType): "visible", } - # below - # ----- @property def below(self): """ @@ -85,8 +84,6 @@ def below(self): def below(self, val): self["below"] = val - # cluster - # ------- @property def cluster(self): """ @@ -96,42 +93,6 @@ 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 @@ -142,8 +103,6 @@ def cluster(self): def cluster(self, val): self["cluster"] = val - # connectgaps - # ----------- @property def connectgaps(self): """ @@ -163,8 +122,6 @@ def connectgaps(self): def connectgaps(self, val): self["connectgaps"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -186,8 +143,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -207,8 +162,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # fill - # ---- @property def fill(self): """ @@ -230,8 +183,6 @@ def fill(self): def fill(self, val): self["fill"] = val - # fillcolor - # --------- @property def fillcolor(self): """ @@ -244,42 +195,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -291,8 +207,6 @@ def fillcolor(self): def fillcolor(self, val): self["fillcolor"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -317,8 +231,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -338,8 +250,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -349,44 +259,6 @@ 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 @@ -397,8 +269,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -441,8 +311,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -462,8 +330,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -488,8 +354,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -509,8 +373,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -531,8 +393,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -551,8 +411,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # lat - # --- @property def lat(self): """ @@ -571,8 +429,6 @@ def lat(self): def lat(self, val): self["lat"] = val - # latsrc - # ------ @property def latsrc(self): """ @@ -591,8 +447,6 @@ def latsrc(self): def latsrc(self, val): self["latsrc"] = val - # legend - # ------ @property def legend(self): """ @@ -616,8 +470,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -639,8 +491,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -650,13 +500,6 @@ 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 @@ -667,8 +510,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -694,8 +535,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -715,8 +554,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # line - # ---- @property def line(self): """ @@ -726,13 +563,6 @@ 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 @@ -743,8 +573,6 @@ def line(self): def line(self, val): self["line"] = val - # lon - # --- @property def lon(self): """ @@ -763,8 +591,6 @@ def lon(self): def lon(self, val): self["lon"] = val - # lonsrc - # ------ @property def lonsrc(self): """ @@ -783,8 +609,6 @@ def lonsrc(self): def lonsrc(self, val): self["lonsrc"] = val - # marker - # ------ @property def marker(self): """ @@ -794,138 +618,6 @@ 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 @@ -936,8 +628,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # meta - # ---- @property def meta(self): """ @@ -964,8 +654,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -984,8 +672,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # mode - # ---- @property def mode(self): """ @@ -1010,8 +696,6 @@ def mode(self): def mode(self, val): self["mode"] = val - # name - # ---- @property def name(self): """ @@ -1032,8 +716,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -1052,8 +734,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # selected - # -------- @property def selected(self): """ @@ -1063,13 +743,6 @@ 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 @@ -1080,8 +753,6 @@ def selected(self): def selected(self, val): self["selected"] = val - # selectedpoints - # -------------- @property def selectedpoints(self): """ @@ -1104,8 +775,6 @@ def selectedpoints(self): def selectedpoints(self, val): self["selectedpoints"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -1125,8 +794,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # stream - # ------ @property def stream(self): """ @@ -1136,18 +803,6 @@ 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 @@ -1158,8 +813,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # subplot - # ------- @property def subplot(self): """ @@ -1187,8 +840,6 @@ def subplot(self): def subplot(self, val): self["subplot"] = val - # text - # ---- @property def text(self): """ @@ -1214,8 +865,6 @@ def text(self): def text(self, val): self["text"] = val - # textfont - # -------- @property def textfont(self): """ @@ -1229,35 +878,6 @@ 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 @@ -1268,8 +888,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # textposition - # ------------ @property def textposition(self): """ @@ -1292,8 +910,6 @@ def textposition(self): def textposition(self, val): self["textposition"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1312,8 +928,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # texttemplate - # ------------ @property def texttemplate(self): """ @@ -1347,8 +961,6 @@ def texttemplate(self): def texttemplate(self, val): self["texttemplate"] = val - # texttemplatesrc - # --------------- @property def texttemplatesrc(self): """ @@ -1368,8 +980,6 @@ def texttemplatesrc(self): def texttemplatesrc(self, val): self["texttemplatesrc"] = val - # uid - # --- @property def uid(self): """ @@ -1390,8 +1000,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1423,8 +1031,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # unselected - # ---------- @property def unselected(self): """ @@ -1434,13 +1040,6 @@ 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 @@ -1451,8 +1050,6 @@ def unselected(self): def unselected(self, val): self["unselected"] = val - # visible - # ------- @property def visible(self): """ @@ -1474,14 +1071,10 @@ def visible(self): def visible(self, val): self["visible"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -2062,14 +1655,11 @@ def __init__( ------- Scattermapbox """ - super(Scattermapbox, self).__init__("scattermapbox") - + super().__init__("scattermapbox") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2084,214 +1674,60 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("below", arg, below) + self._set_property("cluster", arg, cluster) + self._set_property("connectgaps", arg, connectgaps) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("fill", arg, fill) + self._set_property("fillcolor", arg, fillcolor) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("lat", arg, lat) + self._set_property("latsrc", arg, latsrc) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("line", arg, line) + self._set_property("lon", arg, lon) + self._set_property("lonsrc", arg, lonsrc) + self._set_property("marker", arg, marker) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("mode", arg, mode) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("selected", arg, selected) + self._set_property("selectedpoints", arg, selectedpoints) + self._set_property("showlegend", arg, showlegend) + self._set_property("stream", arg, stream) + self._set_property("subplot", arg, subplot) + self._set_property("text", arg, text) + self._set_property("textfont", arg, textfont) + self._set_property("textposition", arg, textposition) + self._set_property("textsrc", arg, textsrc) + self._set_property("texttemplate", arg, texttemplate) + self._set_property("texttemplatesrc", arg, texttemplatesrc) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("unselected", arg, unselected) + self._set_property("visible", arg, visible) self._props["type"] = "scattermapbox" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False warnings.warn( diff --git a/plotly/graph_objs/_scatterpolar.py b/plotly/graph_objs/_scatterpolar.py index 57ba5a4e27..946df6293e 100644 --- a/plotly/graph_objs/_scatterpolar.py +++ b/plotly/graph_objs/_scatterpolar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Scatterpolar(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "scatterpolar" _valid_props = { @@ -65,8 +66,6 @@ class Scatterpolar(_BaseTraceType): "visible", } - # cliponaxis - # ---------- @property def cliponaxis(self): """ @@ -88,8 +87,6 @@ def cliponaxis(self): def cliponaxis(self, val): self["cliponaxis"] = val - # connectgaps - # ----------- @property def connectgaps(self): """ @@ -109,8 +106,6 @@ def connectgaps(self): def connectgaps(self, val): self["connectgaps"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -132,8 +127,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -153,8 +146,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # dr - # -- @property def dr(self): """ @@ -173,8 +164,6 @@ def dr(self): def dr(self, val): self["dr"] = val - # dtheta - # ------ @property def dtheta(self): """ @@ -195,8 +184,6 @@ def dtheta(self): def dtheta(self, val): self["dtheta"] = val - # fill - # ---- @property def fill(self): """ @@ -224,8 +211,6 @@ def fill(self): def fill(self, val): self["fill"] = val - # fillcolor - # --------- @property def fillcolor(self): """ @@ -238,42 +223,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -285,8 +235,6 @@ def fillcolor(self): def fillcolor(self, val): self["fillcolor"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -311,8 +259,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -332,8 +278,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -343,44 +287,6 @@ 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 @@ -391,8 +297,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hoveron - # ------- @property def hoveron(self): """ @@ -416,8 +320,6 @@ def hoveron(self): def hoveron(self, val): self["hoveron"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -460,8 +362,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -481,8 +381,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -507,8 +405,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -528,8 +424,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -550,8 +444,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -570,8 +462,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # legend - # ------ @property def legend(self): """ @@ -595,8 +485,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -618,8 +506,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -629,13 +515,6 @@ 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 @@ -646,8 +525,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -673,8 +550,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -694,8 +569,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # line - # ---- @property def line(self): """ @@ -705,38 +578,6 @@ 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 @@ -747,8 +588,6 @@ def line(self): def line(self, val): self["line"] = val - # marker - # ------ @property def marker(self): """ @@ -758,159 +597,6 @@ 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 @@ -921,8 +607,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # meta - # ---- @property def meta(self): """ @@ -949,8 +633,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -969,8 +651,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # mode - # ---- @property def mode(self): """ @@ -997,8 +677,6 @@ def mode(self): def mode(self, val): self["mode"] = val - # name - # ---- @property def name(self): """ @@ -1019,8 +697,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -1039,8 +715,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # r - # - @property def r(self): """ @@ -1059,8 +733,6 @@ def r(self): def r(self, val): self["r"] = val - # r0 - # -- @property def r0(self): """ @@ -1080,8 +752,6 @@ def r0(self): def r0(self, val): self["r0"] = val - # rsrc - # ---- @property def rsrc(self): """ @@ -1100,8 +770,6 @@ def rsrc(self): def rsrc(self, val): self["rsrc"] = val - # selected - # -------- @property def selected(self): """ @@ -1111,17 +779,6 @@ 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 @@ -1132,8 +789,6 @@ def selected(self): def selected(self, val): self["selected"] = val - # selectedpoints - # -------------- @property def selectedpoints(self): """ @@ -1156,8 +811,6 @@ def selectedpoints(self): def selectedpoints(self, val): self["selectedpoints"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -1177,8 +830,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # stream - # ------ @property def stream(self): """ @@ -1188,18 +839,6 @@ 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 @@ -1210,8 +849,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # subplot - # ------- @property def subplot(self): """ @@ -1235,8 +872,6 @@ def subplot(self): def subplot(self, val): self["subplot"] = val - # text - # ---- @property def text(self): """ @@ -1262,8 +897,6 @@ def text(self): def text(self, val): self["text"] = val - # textfont - # -------- @property def textfont(self): """ @@ -1275,79 +908,6 @@ 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 @@ -1358,8 +918,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # textposition - # ------------ @property def textposition(self): """ @@ -1383,8 +941,6 @@ def textposition(self): def textposition(self, val): self["textposition"] = val - # textpositionsrc - # --------------- @property def textpositionsrc(self): """ @@ -1404,8 +960,6 @@ def textpositionsrc(self): def textpositionsrc(self, val): self["textpositionsrc"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1424,8 +978,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # texttemplate - # ------------ @property def texttemplate(self): """ @@ -1459,8 +1011,6 @@ def texttemplate(self): def texttemplate(self, val): self["texttemplate"] = val - # texttemplatesrc - # --------------- @property def texttemplatesrc(self): """ @@ -1480,8 +1030,6 @@ def texttemplatesrc(self): def texttemplatesrc(self, val): self["texttemplatesrc"] = val - # theta - # ----- @property def theta(self): """ @@ -1500,8 +1048,6 @@ def theta(self): def theta(self, val): self["theta"] = val - # theta0 - # ------ @property def theta0(self): """ @@ -1521,8 +1067,6 @@ def theta0(self): def theta0(self, val): self["theta0"] = val - # thetasrc - # -------- @property def thetasrc(self): """ @@ -1541,8 +1085,6 @@ def thetasrc(self): def thetasrc(self, val): self["thetasrc"] = val - # thetaunit - # --------- @property def thetaunit(self): """ @@ -1563,8 +1105,6 @@ def thetaunit(self): def thetaunit(self, val): self["thetaunit"] = val - # uid - # --- @property def uid(self): """ @@ -1585,8 +1125,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1618,8 +1156,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # unselected - # ---------- @property def unselected(self): """ @@ -1629,17 +1165,6 @@ 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 @@ -1650,8 +1175,6 @@ def unselected(self): def unselected(self, val): self["unselected"] = val - # visible - # ------- @property def visible(self): """ @@ -1673,14 +1196,10 @@ def visible(self): def visible(self, val): self["visible"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -2315,14 +1834,11 @@ def __init__( ------- Scatterpolar """ - super(Scatterpolar, self).__init__("scatterpolar") - + super().__init__("scatterpolar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2337,236 +1853,64 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("cliponaxis", arg, cliponaxis) + self._set_property("connectgaps", arg, connectgaps) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("dr", arg, dr) + self._set_property("dtheta", arg, dtheta) + self._set_property("fill", arg, fill) + self._set_property("fillcolor", arg, fillcolor) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hoveron", arg, hoveron) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("line", arg, line) + self._set_property("marker", arg, marker) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("mode", arg, mode) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("r", arg, r) + self._set_property("r0", arg, r0) + self._set_property("rsrc", arg, rsrc) + self._set_property("selected", arg, selected) + self._set_property("selectedpoints", arg, selectedpoints) + self._set_property("showlegend", arg, showlegend) + self._set_property("stream", arg, stream) + self._set_property("subplot", arg, subplot) + self._set_property("text", arg, text) + self._set_property("textfont", arg, textfont) + self._set_property("textposition", arg, textposition) + self._set_property("textpositionsrc", arg, textpositionsrc) + self._set_property("textsrc", arg, textsrc) + self._set_property("texttemplate", arg, texttemplate) + self._set_property("texttemplatesrc", arg, texttemplatesrc) + self._set_property("theta", arg, theta) + self._set_property("theta0", arg, theta0) + self._set_property("thetasrc", arg, thetasrc) + self._set_property("thetaunit", arg, thetaunit) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("unselected", arg, unselected) + self._set_property("visible", arg, visible) self._props["type"] = "scatterpolar" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_scatterpolargl.py b/plotly/graph_objs/_scatterpolargl.py index 0269ff4df8..eb81a753b5 100644 --- a/plotly/graph_objs/_scatterpolargl.py +++ b/plotly/graph_objs/_scatterpolargl.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Scatterpolargl(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "scatterpolargl" _valid_props = { @@ -63,8 +64,6 @@ class Scatterpolargl(_BaseTraceType): "visible", } - # connectgaps - # ----------- @property def connectgaps(self): """ @@ -84,8 +83,6 @@ def connectgaps(self): def connectgaps(self, val): self["connectgaps"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -107,8 +104,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -128,8 +123,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # dr - # -- @property def dr(self): """ @@ -148,8 +141,6 @@ def dr(self): def dr(self, val): self["dr"] = val - # dtheta - # ------ @property def dtheta(self): """ @@ -170,8 +161,6 @@ def dtheta(self): def dtheta(self, val): self["dtheta"] = val - # fill - # ---- @property def fill(self): """ @@ -210,8 +199,6 @@ def fill(self): def fill(self, val): self["fill"] = val - # fillcolor - # --------- @property def fillcolor(self): """ @@ -224,42 +211,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -271,8 +223,6 @@ def fillcolor(self): def fillcolor(self, val): self["fillcolor"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -297,8 +247,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -318,8 +266,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -329,44 +275,6 @@ 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 @@ -377,8 +285,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -421,8 +327,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -442,8 +346,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -468,8 +370,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -489,8 +389,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -511,8 +409,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -531,8 +427,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # legend - # ------ @property def legend(self): """ @@ -556,8 +450,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -579,8 +471,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -590,13 +480,6 @@ 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 @@ -607,8 +490,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -634,8 +515,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -655,8 +534,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # line - # ---- @property def line(self): """ @@ -666,15 +543,6 @@ 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 @@ -685,8 +553,6 @@ def line(self): def line(self, val): self["line"] = val - # marker - # ------ @property def marker(self): """ @@ -696,138 +562,6 @@ 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 @@ -838,8 +572,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # meta - # ---- @property def meta(self): """ @@ -866,8 +598,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -886,8 +616,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # mode - # ---- @property def mode(self): """ @@ -914,8 +642,6 @@ def mode(self): def mode(self, val): self["mode"] = val - # name - # ---- @property def name(self): """ @@ -936,8 +662,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -956,8 +680,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # r - # - @property def r(self): """ @@ -976,8 +698,6 @@ def r(self): def r(self, val): self["r"] = val - # r0 - # -- @property def r0(self): """ @@ -997,8 +717,6 @@ def r0(self): def r0(self, val): self["r0"] = val - # rsrc - # ---- @property def rsrc(self): """ @@ -1017,8 +735,6 @@ def rsrc(self): def rsrc(self, val): self["rsrc"] = val - # selected - # -------- @property def selected(self): """ @@ -1028,17 +744,6 @@ 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 @@ -1049,8 +754,6 @@ def selected(self): def selected(self, val): self["selected"] = val - # selectedpoints - # -------------- @property def selectedpoints(self): """ @@ -1073,8 +776,6 @@ def selectedpoints(self): def selectedpoints(self, val): self["selectedpoints"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -1094,8 +795,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # stream - # ------ @property def stream(self): """ @@ -1105,18 +804,6 @@ 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 @@ -1127,8 +814,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # subplot - # ------- @property def subplot(self): """ @@ -1152,8 +837,6 @@ def subplot(self): def subplot(self, val): self["subplot"] = val - # text - # ---- @property def text(self): """ @@ -1179,8 +862,6 @@ def text(self): def text(self, val): self["text"] = val - # textfont - # -------- @property def textfont(self): """ @@ -1192,55 +873,6 @@ 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 @@ -1251,8 +883,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # textposition - # ------------ @property def textposition(self): """ @@ -1276,8 +906,6 @@ def textposition(self): def textposition(self, val): self["textposition"] = val - # textpositionsrc - # --------------- @property def textpositionsrc(self): """ @@ -1297,8 +925,6 @@ def textpositionsrc(self): def textpositionsrc(self, val): self["textpositionsrc"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1317,8 +943,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # texttemplate - # ------------ @property def texttemplate(self): """ @@ -1352,8 +976,6 @@ def texttemplate(self): def texttemplate(self, val): self["texttemplate"] = val - # texttemplatesrc - # --------------- @property def texttemplatesrc(self): """ @@ -1373,8 +995,6 @@ def texttemplatesrc(self): def texttemplatesrc(self, val): self["texttemplatesrc"] = val - # theta - # ----- @property def theta(self): """ @@ -1393,8 +1013,6 @@ def theta(self): def theta(self, val): self["theta"] = val - # theta0 - # ------ @property def theta0(self): """ @@ -1414,8 +1032,6 @@ def theta0(self): def theta0(self, val): self["theta0"] = val - # thetasrc - # -------- @property def thetasrc(self): """ @@ -1434,8 +1050,6 @@ def thetasrc(self): def thetasrc(self, val): self["thetasrc"] = val - # thetaunit - # --------- @property def thetaunit(self): """ @@ -1456,8 +1070,6 @@ def thetaunit(self): def thetaunit(self, val): self["thetaunit"] = val - # uid - # --- @property def uid(self): """ @@ -1478,8 +1090,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1511,8 +1121,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # unselected - # ---------- @property def unselected(self): """ @@ -1522,17 +1130,6 @@ 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 @@ -1543,8 +1140,6 @@ def unselected(self): def unselected(self, val): self["unselected"] = val - # visible - # ------- @property def visible(self): """ @@ -1566,14 +1161,10 @@ def visible(self): def visible(self, val): self["visible"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -2206,14 +1797,11 @@ def __init__( ------- Scatterpolargl """ - super(Scatterpolargl, self).__init__("scatterpolargl") - + super().__init__("scatterpolargl") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2228,228 +1816,62 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("connectgaps", arg, connectgaps) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("dr", arg, dr) + self._set_property("dtheta", arg, dtheta) + self._set_property("fill", arg, fill) + self._set_property("fillcolor", arg, fillcolor) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("line", arg, line) + self._set_property("marker", arg, marker) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("mode", arg, mode) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("r", arg, r) + self._set_property("r0", arg, r0) + self._set_property("rsrc", arg, rsrc) + self._set_property("selected", arg, selected) + self._set_property("selectedpoints", arg, selectedpoints) + self._set_property("showlegend", arg, showlegend) + self._set_property("stream", arg, stream) + self._set_property("subplot", arg, subplot) + self._set_property("text", arg, text) + self._set_property("textfont", arg, textfont) + self._set_property("textposition", arg, textposition) + self._set_property("textpositionsrc", arg, textpositionsrc) + self._set_property("textsrc", arg, textsrc) + self._set_property("texttemplate", arg, texttemplate) + self._set_property("texttemplatesrc", arg, texttemplatesrc) + self._set_property("theta", arg, theta) + self._set_property("theta0", arg, theta0) + self._set_property("thetasrc", arg, thetasrc) + self._set_property("thetaunit", arg, thetaunit) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("unselected", arg, unselected) + self._set_property("visible", arg, visible) self._props["type"] = "scatterpolargl" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_scattersmith.py b/plotly/graph_objs/_scattersmith.py index 81f82092bf..6646e9dd6b 100644 --- a/plotly/graph_objs/_scattersmith.py +++ b/plotly/graph_objs/_scattersmith.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Scattersmith(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "scattersmith" _valid_props = { @@ -60,8 +61,6 @@ class Scattersmith(_BaseTraceType): "visible", } - # cliponaxis - # ---------- @property def cliponaxis(self): """ @@ -83,8 +82,6 @@ def cliponaxis(self): def cliponaxis(self, val): self["cliponaxis"] = val - # connectgaps - # ----------- @property def connectgaps(self): """ @@ -104,8 +101,6 @@ def connectgaps(self): def connectgaps(self, val): self["connectgaps"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -127,8 +122,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -148,8 +141,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # fill - # ---- @property def fill(self): """ @@ -177,8 +168,6 @@ def fill(self): def fill(self, val): self["fill"] = val - # fillcolor - # --------- @property def fillcolor(self): """ @@ -191,42 +180,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -238,8 +192,6 @@ def fillcolor(self): def fillcolor(self, val): self["fillcolor"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -264,8 +216,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -285,8 +235,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -296,44 +244,6 @@ 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 @@ -344,8 +254,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hoveron - # ------- @property def hoveron(self): """ @@ -369,8 +277,6 @@ def hoveron(self): def hoveron(self, val): self["hoveron"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -413,8 +319,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -434,8 +338,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -460,8 +362,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -481,8 +381,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -503,8 +401,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -523,8 +419,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # imag - # ---- @property def imag(self): """ @@ -545,8 +439,6 @@ def imag(self): def imag(self, val): self["imag"] = val - # imagsrc - # ------- @property def imagsrc(self): """ @@ -565,8 +457,6 @@ def imagsrc(self): def imagsrc(self, val): self["imagsrc"] = val - # legend - # ------ @property def legend(self): """ @@ -590,8 +480,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -613,8 +501,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -624,13 +510,6 @@ 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 @@ -641,8 +520,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -668,8 +545,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -689,8 +564,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # line - # ---- @property def line(self): """ @@ -700,38 +573,6 @@ 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 @@ -742,8 +583,6 @@ def line(self): def line(self, val): self["line"] = val - # marker - # ------ @property def marker(self): """ @@ -753,159 +592,6 @@ 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 @@ -916,8 +602,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # meta - # ---- @property def meta(self): """ @@ -944,8 +628,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -964,8 +646,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # mode - # ---- @property def mode(self): """ @@ -992,8 +672,6 @@ def mode(self): def mode(self, val): self["mode"] = val - # name - # ---- @property def name(self): """ @@ -1014,8 +692,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -1034,8 +710,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # real - # ---- @property def real(self): """ @@ -1055,8 +729,6 @@ def real(self): def real(self, val): self["real"] = val - # realsrc - # ------- @property def realsrc(self): """ @@ -1075,8 +747,6 @@ def realsrc(self): def realsrc(self, val): self["realsrc"] = val - # selected - # -------- @property def selected(self): """ @@ -1086,17 +756,6 @@ 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 @@ -1107,8 +766,6 @@ def selected(self): def selected(self, val): self["selected"] = val - # selectedpoints - # -------------- @property def selectedpoints(self): """ @@ -1131,8 +788,6 @@ def selectedpoints(self): def selectedpoints(self, val): self["selectedpoints"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -1152,8 +807,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # stream - # ------ @property def stream(self): """ @@ -1163,18 +816,6 @@ 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 @@ -1185,8 +826,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # subplot - # ------- @property def subplot(self): """ @@ -1210,8 +849,6 @@ def subplot(self): def subplot(self, val): self["subplot"] = val - # text - # ---- @property def text(self): """ @@ -1237,8 +874,6 @@ def text(self): def text(self, val): self["text"] = val - # textfont - # -------- @property def textfont(self): """ @@ -1250,79 +885,6 @@ 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 @@ -1333,8 +895,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # textposition - # ------------ @property def textposition(self): """ @@ -1358,8 +918,6 @@ def textposition(self): def textposition(self, val): self["textposition"] = val - # textpositionsrc - # --------------- @property def textpositionsrc(self): """ @@ -1379,8 +937,6 @@ def textpositionsrc(self): def textpositionsrc(self, val): self["textpositionsrc"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1399,8 +955,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # texttemplate - # ------------ @property def texttemplate(self): """ @@ -1434,8 +988,6 @@ def texttemplate(self): def texttemplate(self, val): self["texttemplate"] = val - # texttemplatesrc - # --------------- @property def texttemplatesrc(self): """ @@ -1455,8 +1007,6 @@ def texttemplatesrc(self): def texttemplatesrc(self, val): self["texttemplatesrc"] = val - # uid - # --- @property def uid(self): """ @@ -1477,8 +1027,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1510,8 +1058,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # unselected - # ---------- @property def unselected(self): """ @@ -1521,17 +1067,6 @@ 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 @@ -1542,8 +1077,6 @@ def unselected(self): def unselected(self, val): self["unselected"] = val - # visible - # ------- @property def visible(self): """ @@ -1565,14 +1098,10 @@ def visible(self): def visible(self, val): self["visible"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -2176,14 +1705,11 @@ def __init__( ------- Scattersmith """ - super(Scattersmith, self).__init__("scattersmith") - + super().__init__("scattersmith") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2198,216 +1724,59 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("cliponaxis", arg, cliponaxis) + self._set_property("connectgaps", arg, connectgaps) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("fill", arg, fill) + self._set_property("fillcolor", arg, fillcolor) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hoveron", arg, hoveron) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("imag", arg, imag) + self._set_property("imagsrc", arg, imagsrc) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("line", arg, line) + self._set_property("marker", arg, marker) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("mode", arg, mode) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("real", arg, real) + self._set_property("realsrc", arg, realsrc) + self._set_property("selected", arg, selected) + self._set_property("selectedpoints", arg, selectedpoints) + self._set_property("showlegend", arg, showlegend) + self._set_property("stream", arg, stream) + self._set_property("subplot", arg, subplot) + self._set_property("text", arg, text) + self._set_property("textfont", arg, textfont) + self._set_property("textposition", arg, textposition) + self._set_property("textpositionsrc", arg, textpositionsrc) + self._set_property("textsrc", arg, textsrc) + self._set_property("texttemplate", arg, texttemplate) + self._set_property("texttemplatesrc", arg, texttemplatesrc) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("unselected", arg, unselected) + self._set_property("visible", arg, visible) self._props["type"] = "scattersmith" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_scatterternary.py b/plotly/graph_objs/_scatterternary.py index ed6069b993..753c0a2f3e 100644 --- a/plotly/graph_objs/_scatterternary.py +++ b/plotly/graph_objs/_scatterternary.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Scatterternary(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "scatterternary" _valid_props = { @@ -63,8 +64,6 @@ class Scatterternary(_BaseTraceType): "visible", } - # a - # - @property def a(self): """ @@ -86,8 +85,6 @@ def a(self): def a(self, val): self["a"] = val - # asrc - # ---- @property def asrc(self): """ @@ -106,8 +103,6 @@ def asrc(self): def asrc(self, val): self["asrc"] = val - # b - # - @property def b(self): """ @@ -129,8 +124,6 @@ def b(self): def b(self, val): self["b"] = val - # bsrc - # ---- @property def bsrc(self): """ @@ -149,8 +142,6 @@ def bsrc(self): def bsrc(self, val): self["bsrc"] = val - # c - # - @property def c(self): """ @@ -172,8 +163,6 @@ def c(self): def c(self, val): self["c"] = val - # cliponaxis - # ---------- @property def cliponaxis(self): """ @@ -195,8 +184,6 @@ def cliponaxis(self): def cliponaxis(self, val): self["cliponaxis"] = val - # connectgaps - # ----------- @property def connectgaps(self): """ @@ -216,8 +203,6 @@ def connectgaps(self): def connectgaps(self, val): self["connectgaps"] = val - # csrc - # ---- @property def csrc(self): """ @@ -236,8 +221,6 @@ def csrc(self): def csrc(self, val): self["csrc"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -259,8 +242,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -280,8 +261,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # fill - # ---- @property def fill(self): """ @@ -309,8 +288,6 @@ def fill(self): def fill(self, val): self["fill"] = val - # fillcolor - # --------- @property def fillcolor(self): """ @@ -323,42 +300,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -370,8 +312,6 @@ def fillcolor(self): def fillcolor(self, val): self["fillcolor"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -396,8 +336,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -417,8 +355,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -428,44 +364,6 @@ 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 @@ -476,8 +374,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hoveron - # ------- @property def hoveron(self): """ @@ -501,8 +397,6 @@ def hoveron(self): def hoveron(self, val): self["hoveron"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -545,8 +439,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -566,8 +458,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -592,8 +482,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -613,8 +501,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -635,8 +521,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -655,8 +539,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # legend - # ------ @property def legend(self): """ @@ -680,8 +562,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -703,8 +583,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -714,13 +592,6 @@ 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 @@ -731,8 +602,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -758,8 +627,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -779,8 +646,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # line - # ---- @property def line(self): """ @@ -790,38 +655,6 @@ 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 @@ -832,8 +665,6 @@ def line(self): def line(self, val): self["line"] = val - # marker - # ------ @property def marker(self): """ @@ -843,159 +674,6 @@ 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 @@ -1006,8 +684,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # meta - # ---- @property def meta(self): """ @@ -1034,8 +710,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -1054,8 +728,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # mode - # ---- @property def mode(self): """ @@ -1082,8 +754,6 @@ def mode(self): def mode(self, val): self["mode"] = val - # name - # ---- @property def name(self): """ @@ -1104,8 +774,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -1124,8 +792,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # selected - # -------- @property def selected(self): """ @@ -1135,17 +801,6 @@ 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 @@ -1156,8 +811,6 @@ def selected(self): def selected(self, val): self["selected"] = val - # selectedpoints - # -------------- @property def selectedpoints(self): """ @@ -1180,8 +833,6 @@ def selectedpoints(self): def selectedpoints(self, val): self["selectedpoints"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -1201,8 +852,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # stream - # ------ @property def stream(self): """ @@ -1212,18 +861,6 @@ 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 @@ -1234,8 +871,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # subplot - # ------- @property def subplot(self): """ @@ -1259,8 +894,6 @@ def subplot(self): def subplot(self, val): self["subplot"] = val - # sum - # --- @property def sum(self): """ @@ -1283,8 +916,6 @@ def sum(self): def sum(self, val): self["sum"] = val - # text - # ---- @property def text(self): """ @@ -1310,8 +941,6 @@ def text(self): def text(self, val): self["text"] = val - # textfont - # -------- @property def textfont(self): """ @@ -1323,79 +952,6 @@ 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 @@ -1406,8 +962,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # textposition - # ------------ @property def textposition(self): """ @@ -1431,8 +985,6 @@ def textposition(self): def textposition(self, val): self["textposition"] = val - # textpositionsrc - # --------------- @property def textpositionsrc(self): """ @@ -1452,8 +1004,6 @@ def textpositionsrc(self): def textpositionsrc(self, val): self["textpositionsrc"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1472,8 +1022,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # texttemplate - # ------------ @property def texttemplate(self): """ @@ -1507,8 +1055,6 @@ def texttemplate(self): def texttemplate(self, val): self["texttemplate"] = val - # texttemplatesrc - # --------------- @property def texttemplatesrc(self): """ @@ -1528,8 +1074,6 @@ def texttemplatesrc(self): def texttemplatesrc(self, val): self["texttemplatesrc"] = val - # uid - # --- @property def uid(self): """ @@ -1550,8 +1094,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1583,8 +1125,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # unselected - # ---------- @property def unselected(self): """ @@ -1594,17 +1134,6 @@ 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 @@ -1615,8 +1144,6 @@ def unselected(self): def unselected(self, val): self["unselected"] = val - # visible - # ------- @property def visible(self): """ @@ -1638,14 +1165,10 @@ def visible(self): def visible(self, val): self["visible"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -2289,14 +1812,11 @@ def __init__( ------- Scatterternary """ - super(Scatterternary, self).__init__("scatterternary") - + super().__init__("scatterternary") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2311,228 +1831,62 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("a", arg, a) + self._set_property("asrc", arg, asrc) + self._set_property("b", arg, b) + self._set_property("bsrc", arg, bsrc) + self._set_property("c", arg, c) + self._set_property("cliponaxis", arg, cliponaxis) + self._set_property("connectgaps", arg, connectgaps) + self._set_property("csrc", arg, csrc) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("fill", arg, fill) + self._set_property("fillcolor", arg, fillcolor) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hoveron", arg, hoveron) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("line", arg, line) + self._set_property("marker", arg, marker) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("mode", arg, mode) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("selected", arg, selected) + self._set_property("selectedpoints", arg, selectedpoints) + self._set_property("showlegend", arg, showlegend) + self._set_property("stream", arg, stream) + self._set_property("subplot", arg, subplot) + self._set_property("sum", arg, sum) + self._set_property("text", arg, text) + self._set_property("textfont", arg, textfont) + self._set_property("textposition", arg, textposition) + self._set_property("textpositionsrc", arg, textpositionsrc) + self._set_property("textsrc", arg, textsrc) + self._set_property("texttemplate", arg, texttemplate) + self._set_property("texttemplatesrc", arg, texttemplatesrc) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("unselected", arg, unselected) + self._set_property("visible", arg, visible) self._props["type"] = "scatterternary" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_splom.py b/plotly/graph_objs/_splom.py index e31ba1d7fe..4072b32c52 100644 --- a/plotly/graph_objs/_splom.py +++ b/plotly/graph_objs/_splom.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Splom(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "splom" _valid_props = { @@ -52,8 +53,6 @@ class Splom(_BaseTraceType): "yhoverformat", } - # customdata - # ---------- @property def customdata(self): """ @@ -75,8 +74,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -96,8 +93,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # diagonal - # -------- @property def diagonal(self): """ @@ -107,12 +102,6 @@ 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 @@ -123,8 +112,6 @@ def diagonal(self): def diagonal(self, val): self["diagonal"] = val - # dimensions - # ---------- @property def dimensions(self): """ @@ -134,46 +121,6 @@ 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] @@ -184,8 +131,6 @@ def dimensions(self): def dimensions(self, val): self["dimensions"] = val - # dimensiondefaults - # ----------------- @property def dimensiondefaults(self): """ @@ -199,8 +144,6 @@ 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 @@ -211,8 +154,6 @@ def dimensiondefaults(self): def dimensiondefaults(self, val): self["dimensiondefaults"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -237,8 +178,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -258,8 +197,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -269,44 +206,6 @@ 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 @@ -317,8 +216,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -361,8 +258,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -382,8 +277,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -404,8 +297,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -425,8 +316,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -447,8 +336,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -467,8 +354,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # legend - # ------ @property def legend(self): """ @@ -492,8 +377,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -515,8 +398,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -526,13 +407,6 @@ 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 @@ -543,8 +417,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -570,8 +442,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -591,8 +461,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # marker - # ------ @property def marker(self): """ @@ -602,137 +470,6 @@ 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 @@ -743,8 +480,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # meta - # ---- @property def meta(self): """ @@ -771,8 +506,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -791,8 +524,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -813,8 +544,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -833,8 +562,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # selected - # -------- @property def selected(self): """ @@ -844,13 +571,6 @@ 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 @@ -861,8 +581,6 @@ def selected(self): def selected(self, val): self["selected"] = val - # selectedpoints - # -------------- @property def selectedpoints(self): """ @@ -885,8 +603,6 @@ def selectedpoints(self): def selectedpoints(self, val): self["selectedpoints"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -906,8 +622,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # showlowerhalf - # ------------- @property def showlowerhalf(self): """ @@ -927,8 +641,6 @@ def showlowerhalf(self): def showlowerhalf(self, val): self["showlowerhalf"] = val - # showupperhalf - # ------------- @property def showupperhalf(self): """ @@ -948,8 +660,6 @@ def showupperhalf(self): def showupperhalf(self, val): self["showupperhalf"] = val - # stream - # ------ @property def stream(self): """ @@ -959,18 +669,6 @@ 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 @@ -981,8 +679,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # text - # ---- @property def text(self): """ @@ -1006,8 +702,6 @@ def text(self): def text(self, val): self["text"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1026,8 +720,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # uid - # --- @property def uid(self): """ @@ -1048,8 +740,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1081,8 +771,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # unselected - # ---------- @property def unselected(self): """ @@ -1092,13 +780,6 @@ 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 @@ -1109,8 +790,6 @@ def unselected(self): def unselected(self, val): self["unselected"] = val - # visible - # ------- @property def visible(self): """ @@ -1132,8 +811,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # xaxes - # ----- @property def xaxes(self): """ @@ -1161,8 +838,6 @@ def xaxes(self): def xaxes(self, val): self["xaxes"] = val - # xhoverformat - # ------------ @property def xhoverformat(self): """ @@ -1192,8 +867,6 @@ def xhoverformat(self): def xhoverformat(self, val): self["xhoverformat"] = val - # yaxes - # ----- @property def yaxes(self): """ @@ -1221,8 +894,6 @@ def yaxes(self): def yaxes(self, val): self["yaxes"] = val - # yhoverformat - # ------------ @property def yhoverformat(self): """ @@ -1252,14 +923,10 @@ def yhoverformat(self): def yhoverformat(self, val): self["yhoverformat"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1787,14 +1454,11 @@ def __init__( ------- Splom """ - super(Splom, self).__init__("splom") - + super().__init__("splom") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1809,184 +1473,51 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("diagonal", arg, diagonal) + self._set_property("dimensions", arg, dimensions) + self._set_property("dimensiondefaults", arg, dimensiondefaults) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("marker", arg, marker) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("selected", arg, selected) + self._set_property("selectedpoints", arg, selectedpoints) + self._set_property("showlegend", arg, showlegend) + self._set_property("showlowerhalf", arg, showlowerhalf) + self._set_property("showupperhalf", arg, showupperhalf) + self._set_property("stream", arg, stream) + self._set_property("text", arg, text) + self._set_property("textsrc", arg, textsrc) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("unselected", arg, unselected) + self._set_property("visible", arg, visible) + self._set_property("xaxes", arg, xaxes) + self._set_property("xhoverformat", arg, xhoverformat) + self._set_property("yaxes", arg, yaxes) + self._set_property("yhoverformat", arg, yhoverformat) self._props["type"] = "splom" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_streamtube.py b/plotly/graph_objs/_streamtube.py index b43c7ee8fa..eacfa1649f 100644 --- a/plotly/graph_objs/_streamtube.py +++ b/plotly/graph_objs/_streamtube.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Streamtube(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "streamtube" _valid_props = { @@ -71,8 +72,6 @@ class Streamtube(_BaseTraceType): "zsrc", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -96,8 +95,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -119,8 +116,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -141,8 +136,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -164,8 +157,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -186,8 +177,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -213,8 +202,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -224,272 +211,6 @@ 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 @@ -500,8 +221,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -553,8 +272,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -576,8 +293,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -597,8 +312,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -623,8 +336,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -644,8 +355,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -655,44 +364,6 @@ 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 @@ -703,8 +374,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -750,8 +419,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -771,8 +438,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -792,8 +457,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # ids - # --- @property def ids(self): """ @@ -814,8 +477,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -834,8 +495,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # legend - # ------ @property def legend(self): """ @@ -859,8 +518,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -882,8 +539,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -893,13 +548,6 @@ 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 @@ -910,8 +558,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -937,8 +583,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -958,8 +602,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # lighting - # -------- @property def lighting(self): """ @@ -969,33 +611,6 @@ 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 @@ -1006,8 +621,6 @@ def lighting(self): def lighting(self, val): self["lighting"] = val - # lightposition - # ------------- @property def lightposition(self): """ @@ -1017,18 +630,6 @@ 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 @@ -1039,8 +640,6 @@ def lightposition(self): def lightposition(self, val): self["lightposition"] = val - # maxdisplayed - # ------------ @property def maxdisplayed(self): """ @@ -1060,8 +659,6 @@ def maxdisplayed(self): def maxdisplayed(self, val): self["maxdisplayed"] = val - # meta - # ---- @property def meta(self): """ @@ -1088,8 +685,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -1108,8 +703,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -1130,8 +723,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -1155,8 +746,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -1177,8 +766,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # scene - # ----- @property def scene(self): """ @@ -1202,8 +789,6 @@ def scene(self): def scene(self, val): self["scene"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -1223,8 +808,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # showscale - # --------- @property def showscale(self): """ @@ -1244,8 +827,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # sizeref - # ------- @property def sizeref(self): """ @@ -1266,8 +847,6 @@ def sizeref(self): def sizeref(self, val): self["sizeref"] = val - # starts - # ------ @property def starts(self): """ @@ -1277,27 +856,6 @@ 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 @@ -1308,8 +866,6 @@ def starts(self): def starts(self, val): self["starts"] = val - # stream - # ------ @property def stream(self): """ @@ -1319,18 +875,6 @@ 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 @@ -1341,8 +885,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # text - # ---- @property def text(self): """ @@ -1365,8 +907,6 @@ def text(self): def text(self, val): self["text"] = val - # u - # - @property def u(self): """ @@ -1385,8 +925,6 @@ def u(self): def u(self, val): self["u"] = val - # uhoverformat - # ------------ @property def uhoverformat(self): """ @@ -1410,8 +948,6 @@ def uhoverformat(self): def uhoverformat(self, val): self["uhoverformat"] = val - # uid - # --- @property def uid(self): """ @@ -1432,8 +968,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1465,8 +999,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # usrc - # ---- @property def usrc(self): """ @@ -1485,8 +1017,6 @@ def usrc(self): def usrc(self, val): self["usrc"] = val - # v - # - @property def v(self): """ @@ -1505,8 +1035,6 @@ def v(self): def v(self, val): self["v"] = val - # vhoverformat - # ------------ @property def vhoverformat(self): """ @@ -1530,8 +1058,6 @@ def vhoverformat(self): def vhoverformat(self, val): self["vhoverformat"] = val - # visible - # ------- @property def visible(self): """ @@ -1553,8 +1079,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # vsrc - # ---- @property def vsrc(self): """ @@ -1573,8 +1097,6 @@ def vsrc(self): def vsrc(self, val): self["vsrc"] = val - # w - # - @property def w(self): """ @@ -1593,8 +1115,6 @@ def w(self): def w(self, val): self["w"] = val - # whoverformat - # ------------ @property def whoverformat(self): """ @@ -1618,8 +1138,6 @@ def whoverformat(self): def whoverformat(self, val): self["whoverformat"] = val - # wsrc - # ---- @property def wsrc(self): """ @@ -1638,8 +1156,6 @@ def wsrc(self): def wsrc(self, val): self["wsrc"] = val - # x - # - @property def x(self): """ @@ -1658,8 +1174,6 @@ def x(self): def x(self, val): self["x"] = val - # xhoverformat - # ------------ @property def xhoverformat(self): """ @@ -1689,8 +1203,6 @@ def xhoverformat(self): def xhoverformat(self, val): self["xhoverformat"] = val - # xsrc - # ---- @property def xsrc(self): """ @@ -1709,8 +1221,6 @@ def xsrc(self): def xsrc(self, val): self["xsrc"] = val - # y - # - @property def y(self): """ @@ -1729,8 +1239,6 @@ def y(self): def y(self, val): self["y"] = val - # yhoverformat - # ------------ @property def yhoverformat(self): """ @@ -1760,8 +1268,6 @@ def yhoverformat(self): def yhoverformat(self, val): self["yhoverformat"] = val - # ysrc - # ---- @property def ysrc(self): """ @@ -1780,8 +1286,6 @@ def ysrc(self): def ysrc(self, val): self["ysrc"] = val - # z - # - @property def z(self): """ @@ -1800,8 +1304,6 @@ def z(self): def z(self, val): self["z"] = val - # zhoverformat - # ------------ @property def zhoverformat(self): """ @@ -1831,8 +1333,6 @@ def zhoverformat(self): def zhoverformat(self, val): self["zhoverformat"] = val - # zsrc - # ---- @property def zsrc(self): """ @@ -1851,14 +1351,10 @@ def zsrc(self): def zsrc(self, val): self["zsrc"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -2585,14 +2081,11 @@ def __init__( ------- Streamtube """ - super(Streamtube, self).__init__("streamtube") - + super().__init__("streamtube") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2607,260 +2100,70 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("lighting", arg, lighting) + self._set_property("lightposition", arg, lightposition) + self._set_property("maxdisplayed", arg, maxdisplayed) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("reversescale", arg, reversescale) + self._set_property("scene", arg, scene) + self._set_property("showlegend", arg, showlegend) + self._set_property("showscale", arg, showscale) + self._set_property("sizeref", arg, sizeref) + self._set_property("starts", arg, starts) + self._set_property("stream", arg, stream) + self._set_property("text", arg, text) + self._set_property("u", arg, u) + self._set_property("uhoverformat", arg, uhoverformat) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("usrc", arg, usrc) + self._set_property("v", arg, v) + self._set_property("vhoverformat", arg, vhoverformat) + self._set_property("visible", arg, visible) + self._set_property("vsrc", arg, vsrc) + self._set_property("w", arg, w) + self._set_property("whoverformat", arg, whoverformat) + self._set_property("wsrc", arg, wsrc) + self._set_property("x", arg, x) + self._set_property("xhoverformat", arg, xhoverformat) + self._set_property("xsrc", arg, xsrc) + self._set_property("y", arg, y) + self._set_property("yhoverformat", arg, yhoverformat) + self._set_property("ysrc", arg, ysrc) + self._set_property("z", arg, z) + self._set_property("zhoverformat", arg, zhoverformat) + self._set_property("zsrc", arg, zsrc) self._props["type"] = "streamtube" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_sunburst.py b/plotly/graph_objs/_sunburst.py index 1772f95271..932729a734 100644 --- a/plotly/graph_objs/_sunburst.py +++ b/plotly/graph_objs/_sunburst.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Sunburst(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "sunburst" _valid_props = { @@ -60,8 +61,6 @@ class Sunburst(_BaseTraceType): "visible", } - # branchvalues - # ------------ @property def branchvalues(self): """ @@ -86,8 +85,6 @@ def branchvalues(self): def branchvalues(self, val): self["branchvalues"] = val - # count - # ----- @property def count(self): """ @@ -110,8 +107,6 @@ def count(self): def count(self, val): self["count"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -133,8 +128,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -154,8 +147,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # domain - # ------ @property def domain(self): """ @@ -165,22 +156,6 @@ 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 @@ -191,8 +166,6 @@ def domain(self): def domain(self, val): self["domain"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -217,8 +190,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -238,8 +209,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -249,44 +218,6 @@ 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 @@ -297,8 +228,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -344,8 +273,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -365,8 +292,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -391,8 +316,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -412,8 +335,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -434,8 +355,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -454,8 +373,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # insidetextfont - # -------------- @property def insidetextfont(self): """ @@ -467,79 +384,6 @@ 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 @@ -550,8 +394,6 @@ def insidetextfont(self): def insidetextfont(self, val): self["insidetextfont"] = val - # insidetextorientation - # --------------------- @property def insidetextorientation(self): """ @@ -578,8 +420,6 @@ def insidetextorientation(self): def insidetextorientation(self, val): self["insidetextorientation"] = val - # labels - # ------ @property def labels(self): """ @@ -598,8 +438,6 @@ def labels(self): def labels(self, val): self["labels"] = val - # labelssrc - # --------- @property def labelssrc(self): """ @@ -618,8 +456,6 @@ def labelssrc(self): def labelssrc(self, val): self["labelssrc"] = val - # leaf - # ---- @property def leaf(self): """ @@ -629,13 +465,6 @@ 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 @@ -646,8 +475,6 @@ def leaf(self): def leaf(self, val): self["leaf"] = val - # legend - # ------ @property def legend(self): """ @@ -671,8 +498,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -682,13 +507,6 @@ 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 @@ -699,8 +517,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -726,8 +542,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -747,8 +561,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # level - # ----- @property def level(self): """ @@ -769,8 +581,6 @@ def level(self): def level(self, val): self["level"] = val - # marker - # ------ @property def marker(self): """ @@ -780,98 +590,6 @@ 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 @@ -882,8 +600,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # maxdepth - # -------- @property def maxdepth(self): """ @@ -903,8 +619,6 @@ def maxdepth(self): def maxdepth(self, val): self["maxdepth"] = val - # meta - # ---- @property def meta(self): """ @@ -931,8 +645,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -951,8 +663,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -973,8 +683,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -993,8 +701,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # outsidetextfont - # --------------- @property def outsidetextfont(self): """ @@ -1010,79 +716,6 @@ 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 @@ -1093,8 +726,6 @@ def outsidetextfont(self): def outsidetextfont(self, val): self["outsidetextfont"] = val - # parents - # ------- @property def parents(self): """ @@ -1118,8 +749,6 @@ def parents(self): def parents(self, val): self["parents"] = val - # parentssrc - # ---------- @property def parentssrc(self): """ @@ -1138,8 +767,6 @@ def parentssrc(self): def parentssrc(self, val): self["parentssrc"] = val - # root - # ---- @property def root(self): """ @@ -1149,14 +776,6 @@ 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 @@ -1167,8 +786,6 @@ def root(self): def root(self, val): self["root"] = val - # rotation - # -------- @property def rotation(self): """ @@ -1190,8 +807,6 @@ def rotation(self): def rotation(self, val): self["rotation"] = val - # sort - # ---- @property def sort(self): """ @@ -1211,8 +826,6 @@ def sort(self): def sort(self, val): self["sort"] = val - # stream - # ------ @property def stream(self): """ @@ -1222,18 +835,6 @@ 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 @@ -1244,8 +845,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # text - # ---- @property def text(self): """ @@ -1268,8 +867,6 @@ def text(self): def text(self, val): self["text"] = val - # textfont - # -------- @property def textfont(self): """ @@ -1281,79 +878,6 @@ 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 @@ -1364,8 +888,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # textinfo - # -------- @property def textinfo(self): """ @@ -1387,8 +909,6 @@ def textinfo(self): def textinfo(self, val): self["textinfo"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1407,8 +927,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # texttemplate - # ------------ @property def texttemplate(self): """ @@ -1443,8 +961,6 @@ def texttemplate(self): def texttemplate(self, val): self["texttemplate"] = val - # texttemplatesrc - # --------------- @property def texttemplatesrc(self): """ @@ -1464,8 +980,6 @@ def texttemplatesrc(self): def texttemplatesrc(self, val): self["texttemplatesrc"] = val - # uid - # --- @property def uid(self): """ @@ -1486,8 +1000,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1519,8 +1031,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # values - # ------ @property def values(self): """ @@ -1540,8 +1050,6 @@ def values(self): def values(self, val): self["values"] = val - # valuessrc - # --------- @property def valuessrc(self): """ @@ -1560,8 +1068,6 @@ def valuessrc(self): def valuessrc(self, val): self["valuessrc"] = val - # visible - # ------- @property def visible(self): """ @@ -1583,14 +1089,10 @@ def visible(self): def visible(self, val): self["visible"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -2184,14 +1686,11 @@ def __init__( ------- Sunburst """ - super(Sunburst, self).__init__("sunburst") - + super().__init__("sunburst") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2206,216 +1705,59 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("branchvalues", arg, branchvalues) + self._set_property("count", arg, count) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("domain", arg, domain) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("insidetextfont", arg, insidetextfont) + self._set_property("insidetextorientation", arg, insidetextorientation) + self._set_property("labels", arg, labels) + self._set_property("labelssrc", arg, labelssrc) + self._set_property("leaf", arg, leaf) + self._set_property("legend", arg, legend) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("level", arg, level) + self._set_property("marker", arg, marker) + self._set_property("maxdepth", arg, maxdepth) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("outsidetextfont", arg, outsidetextfont) + self._set_property("parents", arg, parents) + self._set_property("parentssrc", arg, parentssrc) + self._set_property("root", arg, root) + self._set_property("rotation", arg, rotation) + self._set_property("sort", arg, sort) + self._set_property("stream", arg, stream) + self._set_property("text", arg, text) + self._set_property("textfont", arg, textfont) + self._set_property("textinfo", arg, textinfo) + self._set_property("textsrc", arg, textsrc) + self._set_property("texttemplate", arg, texttemplate) + self._set_property("texttemplatesrc", arg, texttemplatesrc) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("values", arg, values) + self._set_property("valuessrc", arg, valuessrc) + self._set_property("visible", arg, visible) self._props["type"] = "sunburst" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_surface.py b/plotly/graph_objs/_surface.py index 79704dbfd1..3569472bbe 100644 --- a/plotly/graph_objs/_surface.py +++ b/plotly/graph_objs/_surface.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Surface(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "surface" _valid_props = { @@ -70,8 +71,6 @@ class Surface(_BaseTraceType): "zsrc", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -95,8 +94,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -118,8 +115,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -140,8 +135,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -163,8 +156,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -185,8 +176,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -212,8 +201,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -223,272 +210,6 @@ 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 @@ -499,8 +220,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -552,8 +271,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # connectgaps - # ----------- @property def connectgaps(self): """ @@ -573,8 +290,6 @@ def connectgaps(self): def connectgaps(self, val): self["connectgaps"] = val - # contours - # -------- @property def contours(self): """ @@ -584,18 +299,6 @@ 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 @@ -606,8 +309,6 @@ def contours(self): def contours(self, val): self["contours"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -629,8 +330,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -650,8 +349,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # hidesurface - # ----------- @property def hidesurface(self): """ @@ -672,8 +369,6 @@ def hidesurface(self): def hidesurface(self, val): self["hidesurface"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -698,8 +393,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -719,8 +412,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -730,44 +421,6 @@ 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 @@ -778,8 +431,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -822,8 +473,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -843,8 +492,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -865,8 +512,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -886,8 +531,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -908,8 +551,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -928,8 +569,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # legend - # ------ @property def legend(self): """ @@ -953,8 +592,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -976,8 +613,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -987,13 +622,6 @@ 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 @@ -1004,8 +632,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -1031,8 +657,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -1052,8 +676,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # lighting - # -------- @property def lighting(self): """ @@ -1063,27 +685,6 @@ 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 @@ -1094,8 +695,6 @@ def lighting(self): def lighting(self, val): self["lighting"] = val - # lightposition - # ------------- @property def lightposition(self): """ @@ -1105,18 +704,6 @@ 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 @@ -1127,8 +714,6 @@ def lightposition(self): def lightposition(self, val): self["lightposition"] = val - # meta - # ---- @property def meta(self): """ @@ -1155,8 +740,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -1175,8 +758,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -1197,8 +778,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -1222,8 +801,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # opacityscale - # ------------ @property def opacityscale(self): """ @@ -1249,8 +826,6 @@ def opacityscale(self): def opacityscale(self, val): self["opacityscale"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -1271,8 +846,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # scene - # ----- @property def scene(self): """ @@ -1296,8 +869,6 @@ def scene(self): def scene(self, val): self["scene"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -1317,8 +888,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # showscale - # --------- @property def showscale(self): """ @@ -1338,8 +907,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # stream - # ------ @property def stream(self): """ @@ -1349,18 +916,6 @@ 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 @@ -1371,8 +926,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # surfacecolor - # ------------ @property def surfacecolor(self): """ @@ -1392,8 +945,6 @@ def surfacecolor(self): def surfacecolor(self, val): self["surfacecolor"] = val - # surfacecolorsrc - # --------------- @property def surfacecolorsrc(self): """ @@ -1413,8 +964,6 @@ def surfacecolorsrc(self): def surfacecolorsrc(self, val): self["surfacecolorsrc"] = val - # text - # ---- @property def text(self): """ @@ -1437,8 +986,6 @@ def text(self): def text(self, val): self["text"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1457,8 +1004,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # uid - # --- @property def uid(self): """ @@ -1479,8 +1024,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1512,8 +1055,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # visible - # ------- @property def visible(self): """ @@ -1535,8 +1076,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # x - # - @property def x(self): """ @@ -1555,8 +1094,6 @@ def x(self): def x(self, val): self["x"] = val - # xcalendar - # --------- @property def xcalendar(self): """ @@ -1579,8 +1116,6 @@ def xcalendar(self): def xcalendar(self, val): self["xcalendar"] = val - # xhoverformat - # ------------ @property def xhoverformat(self): """ @@ -1610,8 +1145,6 @@ def xhoverformat(self): def xhoverformat(self, val): self["xhoverformat"] = val - # xsrc - # ---- @property def xsrc(self): """ @@ -1630,8 +1163,6 @@ def xsrc(self): def xsrc(self, val): self["xsrc"] = val - # y - # - @property def y(self): """ @@ -1650,8 +1181,6 @@ def y(self): def y(self, val): self["y"] = val - # ycalendar - # --------- @property def ycalendar(self): """ @@ -1674,8 +1203,6 @@ def ycalendar(self): def ycalendar(self, val): self["ycalendar"] = val - # yhoverformat - # ------------ @property def yhoverformat(self): """ @@ -1705,8 +1232,6 @@ def yhoverformat(self): def yhoverformat(self, val): self["yhoverformat"] = val - # ysrc - # ---- @property def ysrc(self): """ @@ -1725,8 +1250,6 @@ def ysrc(self): def ysrc(self, val): self["ysrc"] = val - # z - # - @property def z(self): """ @@ -1745,8 +1268,6 @@ def z(self): def z(self, val): self["z"] = val - # zcalendar - # --------- @property def zcalendar(self): """ @@ -1769,8 +1290,6 @@ def zcalendar(self): def zcalendar(self, val): self["zcalendar"] = val - # zhoverformat - # ------------ @property def zhoverformat(self): """ @@ -1800,8 +1319,6 @@ def zhoverformat(self): def zhoverformat(self, val): self["zhoverformat"] = val - # zsrc - # ---- @property def zsrc(self): """ @@ -1820,14 +1337,10 @@ def zsrc(self): def zsrc(self, val): self["zsrc"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -2541,14 +2054,11 @@ def __init__( ------- Surface """ - super(Surface, self).__init__("surface") - + super().__init__("surface") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2563,256 +2073,69 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("connectgaps", arg, connectgaps) + self._set_property("contours", arg, contours) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("hidesurface", arg, hidesurface) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("lighting", arg, lighting) + self._set_property("lightposition", arg, lightposition) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("opacityscale", arg, opacityscale) + self._set_property("reversescale", arg, reversescale) + self._set_property("scene", arg, scene) + self._set_property("showlegend", arg, showlegend) + self._set_property("showscale", arg, showscale) + self._set_property("stream", arg, stream) + self._set_property("surfacecolor", arg, surfacecolor) + self._set_property("surfacecolorsrc", arg, surfacecolorsrc) + self._set_property("text", arg, text) + self._set_property("textsrc", arg, textsrc) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("visible", arg, visible) + self._set_property("x", arg, x) + self._set_property("xcalendar", arg, xcalendar) + self._set_property("xhoverformat", arg, xhoverformat) + self._set_property("xsrc", arg, xsrc) + self._set_property("y", arg, y) + self._set_property("ycalendar", arg, ycalendar) + self._set_property("yhoverformat", arg, yhoverformat) + self._set_property("ysrc", arg, ysrc) + self._set_property("z", arg, z) + self._set_property("zcalendar", arg, zcalendar) + self._set_property("zhoverformat", arg, zhoverformat) + self._set_property("zsrc", arg, zsrc) self._props["type"] = "surface" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_table.py b/plotly/graph_objs/_table.py index c8dda0a63b..9bdb4b78be 100644 --- a/plotly/graph_objs/_table.py +++ b/plotly/graph_objs/_table.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Table(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "table" _valid_props = { @@ -37,8 +38,6 @@ class Table(_BaseTraceType): "visible", } - # cells - # ----- @property def cells(self): """ @@ -48,58 +47,6 @@ 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 @@ -110,8 +57,6 @@ def cells(self): def cells(self, val): self["cells"] = val - # columnorder - # ----------- @property def columnorder(self): """ @@ -133,8 +78,6 @@ def columnorder(self): def columnorder(self, val): self["columnorder"] = val - # columnordersrc - # -------------- @property def columnordersrc(self): """ @@ -154,8 +97,6 @@ def columnordersrc(self): def columnordersrc(self, val): self["columnordersrc"] = val - # columnwidth - # ----------- @property def columnwidth(self): """ @@ -176,8 +117,6 @@ def columnwidth(self): def columnwidth(self, val): self["columnwidth"] = val - # columnwidthsrc - # -------------- @property def columnwidthsrc(self): """ @@ -197,8 +136,6 @@ def columnwidthsrc(self): def columnwidthsrc(self, val): self["columnwidthsrc"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -220,8 +157,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -241,8 +176,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # domain - # ------ @property def domain(self): """ @@ -252,21 +185,6 @@ 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 @@ -277,8 +195,6 @@ def domain(self): def domain(self, val): self["domain"] = val - # header - # ------ @property def header(self): """ @@ -288,58 +204,6 @@ 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 @@ -350,8 +214,6 @@ def header(self): def header(self, val): self["header"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -376,8 +238,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -397,8 +257,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -408,44 +266,6 @@ 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 @@ -456,8 +276,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # ids - # --- @property def ids(self): """ @@ -478,8 +296,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -498,8 +314,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # legend - # ------ @property def legend(self): """ @@ -523,8 +337,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -534,13 +346,6 @@ 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 @@ -551,8 +356,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -578,8 +381,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -599,8 +400,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # meta - # ---- @property def meta(self): """ @@ -627,8 +426,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -647,8 +444,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -669,8 +464,6 @@ def name(self): def name(self, val): self["name"] = val - # stream - # ------ @property def stream(self): """ @@ -680,18 +473,6 @@ 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 @@ -702,8 +483,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # uid - # --- @property def uid(self): """ @@ -724,8 +503,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -757,8 +534,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # visible - # ------- @property def visible(self): """ @@ -780,14 +555,10 @@ def visible(self): def visible(self, val): self["visible"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1086,14 +857,11 @@ def __init__( ------- Table """ - super(Table, self).__init__("table") - + super().__init__("table") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1108,124 +876,36 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("cells", arg, cells) + self._set_property("columnorder", arg, columnorder) + self._set_property("columnordersrc", arg, columnordersrc) + self._set_property("columnwidth", arg, columnwidth) + self._set_property("columnwidthsrc", arg, columnwidthsrc) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("domain", arg, domain) + self._set_property("header", arg, header) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("legend", arg, legend) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("stream", arg, stream) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("visible", arg, visible) self._props["type"] = "table" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_treemap.py b/plotly/graph_objs/_treemap.py index 3a8ecce44e..a8b0a06916 100644 --- a/plotly/graph_objs/_treemap.py +++ b/plotly/graph_objs/_treemap.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Treemap(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "treemap" _valid_props = { @@ -60,8 +61,6 @@ class Treemap(_BaseTraceType): "visible", } - # branchvalues - # ------------ @property def branchvalues(self): """ @@ -86,8 +85,6 @@ def branchvalues(self): def branchvalues(self, val): self["branchvalues"] = val - # count - # ----- @property def count(self): """ @@ -110,8 +107,6 @@ def count(self): def count(self, val): self["count"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -133,8 +128,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -154,8 +147,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # domain - # ------ @property def domain(self): """ @@ -165,22 +156,6 @@ 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 @@ -191,8 +166,6 @@ def domain(self): def domain(self, val): self["domain"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -217,8 +190,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -238,8 +209,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -249,44 +218,6 @@ 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 @@ -297,8 +228,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -344,8 +273,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -365,8 +292,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -391,8 +316,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -412,8 +335,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -434,8 +355,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -454,8 +373,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # insidetextfont - # -------------- @property def insidetextfont(self): """ @@ -467,79 +384,6 @@ 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 @@ -550,8 +394,6 @@ def insidetextfont(self): def insidetextfont(self, val): self["insidetextfont"] = val - # labels - # ------ @property def labels(self): """ @@ -570,8 +412,6 @@ def labels(self): def labels(self, val): self["labels"] = val - # labelssrc - # --------- @property def labelssrc(self): """ @@ -590,8 +430,6 @@ def labelssrc(self): def labelssrc(self, val): self["labelssrc"] = val - # legend - # ------ @property def legend(self): """ @@ -615,8 +453,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -626,13 +462,6 @@ 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 @@ -643,8 +472,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -670,8 +497,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -691,8 +516,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # level - # ----- @property def level(self): """ @@ -713,8 +536,6 @@ def level(self): def level(self, val): self["level"] = val - # marker - # ------ @property def marker(self): """ @@ -724,114 +545,6 @@ 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 @@ -842,8 +555,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # maxdepth - # -------- @property def maxdepth(self): """ @@ -863,8 +574,6 @@ def maxdepth(self): def maxdepth(self, val): self["maxdepth"] = val - # meta - # ---- @property def meta(self): """ @@ -891,8 +600,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -911,8 +618,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -933,8 +638,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -953,8 +656,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # outsidetextfont - # --------------- @property def outsidetextfont(self): """ @@ -970,79 +671,6 @@ 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 @@ -1053,8 +681,6 @@ def outsidetextfont(self): def outsidetextfont(self, val): self["outsidetextfont"] = val - # parents - # ------- @property def parents(self): """ @@ -1078,8 +704,6 @@ def parents(self): def parents(self, val): self["parents"] = val - # parentssrc - # ---------- @property def parentssrc(self): """ @@ -1098,8 +722,6 @@ def parentssrc(self): def parentssrc(self, val): self["parentssrc"] = val - # pathbar - # ------- @property def pathbar(self): """ @@ -1109,25 +731,6 @@ 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 @@ -1138,8 +741,6 @@ def pathbar(self): def pathbar(self, val): self["pathbar"] = val - # root - # ---- @property def root(self): """ @@ -1149,14 +750,6 @@ 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 @@ -1167,8 +760,6 @@ def root(self): def root(self, val): self["root"] = val - # sort - # ---- @property def sort(self): """ @@ -1188,8 +779,6 @@ def sort(self): def sort(self, val): self["sort"] = val - # stream - # ------ @property def stream(self): """ @@ -1199,18 +788,6 @@ 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 @@ -1221,8 +798,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # text - # ---- @property def text(self): """ @@ -1245,8 +820,6 @@ def text(self): def text(self, val): self["text"] = val - # textfont - # -------- @property def textfont(self): """ @@ -1258,79 +831,6 @@ 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 @@ -1341,8 +841,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # textinfo - # -------- @property def textinfo(self): """ @@ -1364,8 +862,6 @@ def textinfo(self): def textinfo(self, val): self["textinfo"] = val - # textposition - # ------------ @property def textposition(self): """ @@ -1387,8 +883,6 @@ def textposition(self): def textposition(self, val): self["textposition"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1407,8 +901,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # texttemplate - # ------------ @property def texttemplate(self): """ @@ -1443,8 +935,6 @@ def texttemplate(self): def texttemplate(self, val): self["texttemplate"] = val - # texttemplatesrc - # --------------- @property def texttemplatesrc(self): """ @@ -1464,8 +954,6 @@ def texttemplatesrc(self): def texttemplatesrc(self, val): self["texttemplatesrc"] = val - # tiling - # ------ @property def tiling(self): """ @@ -1475,34 +963,6 @@ 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 @@ -1513,8 +973,6 @@ def tiling(self): def tiling(self, val): self["tiling"] = val - # uid - # --- @property def uid(self): """ @@ -1535,8 +993,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1568,8 +1024,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # values - # ------ @property def values(self): """ @@ -1589,8 +1043,6 @@ def values(self): def values(self, val): self["values"] = val - # valuessrc - # --------- @property def valuessrc(self): """ @@ -1609,8 +1061,6 @@ def valuessrc(self): def valuessrc(self, val): self["valuessrc"] = val - # visible - # ------- @property def visible(self): """ @@ -1632,14 +1082,10 @@ def visible(self): def visible(self, val): self["visible"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -2218,14 +1664,11 @@ def __init__( ------- Treemap """ - super(Treemap, self).__init__("treemap") - + super().__init__("treemap") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2240,216 +1683,59 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("branchvalues", arg, branchvalues) + self._set_property("count", arg, count) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("domain", arg, domain) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("insidetextfont", arg, insidetextfont) + self._set_property("labels", arg, labels) + self._set_property("labelssrc", arg, labelssrc) + self._set_property("legend", arg, legend) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("level", arg, level) + self._set_property("marker", arg, marker) + self._set_property("maxdepth", arg, maxdepth) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("outsidetextfont", arg, outsidetextfont) + self._set_property("parents", arg, parents) + self._set_property("parentssrc", arg, parentssrc) + self._set_property("pathbar", arg, pathbar) + self._set_property("root", arg, root) + self._set_property("sort", arg, sort) + self._set_property("stream", arg, stream) + self._set_property("text", arg, text) + self._set_property("textfont", arg, textfont) + self._set_property("textinfo", arg, textinfo) + self._set_property("textposition", arg, textposition) + self._set_property("textsrc", arg, textsrc) + self._set_property("texttemplate", arg, texttemplate) + self._set_property("texttemplatesrc", arg, texttemplatesrc) + self._set_property("tiling", arg, tiling) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("values", arg, values) + self._set_property("valuessrc", arg, valuessrc) + self._set_property("visible", arg, visible) self._props["type"] = "treemap" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_violin.py b/plotly/graph_objs/_violin.py index ffb7362db0..9223d4d7b5 100644 --- a/plotly/graph_objs/_violin.py +++ b/plotly/graph_objs/_violin.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Violin(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "violin" _valid_props = { @@ -73,8 +74,6 @@ class Violin(_BaseTraceType): "zorder", } - # alignmentgroup - # -------------- @property def alignmentgroup(self): """ @@ -96,8 +95,6 @@ def alignmentgroup(self): def alignmentgroup(self, val): self["alignmentgroup"] = val - # bandwidth - # --------- @property def bandwidth(self): """ @@ -118,8 +115,6 @@ def bandwidth(self): def bandwidth(self, val): self["bandwidth"] = val - # box - # --- @property def box(self): """ @@ -129,21 +124,6 @@ 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 @@ -154,8 +134,6 @@ def box(self): def box(self, val): self["box"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -177,8 +155,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -198,8 +174,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # fillcolor - # --------- @property def fillcolor(self): """ @@ -212,42 +186,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -259,8 +198,6 @@ def fillcolor(self): def fillcolor(self, val): self["fillcolor"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -285,8 +222,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -306,8 +241,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -317,44 +250,6 @@ 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 @@ -365,8 +260,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hoveron - # ------- @property def hoveron(self): """ @@ -390,8 +283,6 @@ def hoveron(self): def hoveron(self, val): self["hoveron"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -434,8 +325,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -455,8 +344,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -477,8 +364,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -498,8 +383,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -520,8 +403,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -540,8 +421,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # jitter - # ------ @property def jitter(self): """ @@ -563,8 +442,6 @@ def jitter(self): def jitter(self, val): self["jitter"] = val - # legend - # ------ @property def legend(self): """ @@ -588,8 +465,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -611,8 +486,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -622,13 +495,6 @@ 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 @@ -639,8 +505,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -666,8 +530,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -687,8 +549,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # line - # ---- @property def line(self): """ @@ -698,14 +558,6 @@ 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 @@ -716,8 +568,6 @@ def line(self): def line(self, val): self["line"] = val - # marker - # ------ @property def marker(self): """ @@ -727,33 +577,6 @@ 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 @@ -764,8 +587,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # meanline - # -------- @property def meanline(self): """ @@ -775,20 +596,6 @@ 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 @@ -799,8 +606,6 @@ def meanline(self): def meanline(self, val): self["meanline"] = val - # meta - # ---- @property def meta(self): """ @@ -827,8 +632,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -847,8 +650,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -874,8 +675,6 @@ def name(self): def name(self, val): self["name"] = val - # offsetgroup - # ----------- @property def offsetgroup(self): """ @@ -897,8 +696,6 @@ def offsetgroup(self): def offsetgroup(self, val): self["offsetgroup"] = val - # opacity - # ------- @property def opacity(self): """ @@ -917,8 +714,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -939,8 +734,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # pointpos - # -------- @property def pointpos(self): """ @@ -963,8 +756,6 @@ def pointpos(self): def pointpos(self, val): self["pointpos"] = val - # points - # ------ @property def points(self): """ @@ -991,8 +782,6 @@ def points(self): def points(self, val): self["points"] = val - # quartilemethod - # -------------- @property def quartilemethod(self): """ @@ -1023,8 +812,6 @@ def quartilemethod(self): def quartilemethod(self, val): self["quartilemethod"] = val - # scalegroup - # ---------- @property def scalegroup(self): """ @@ -1049,8 +836,6 @@ def scalegroup(self): def scalegroup(self, val): self["scalegroup"] = val - # scalemode - # --------- @property def scalemode(self): """ @@ -1073,8 +858,6 @@ def scalemode(self): def scalemode(self, val): self["scalemode"] = val - # selected - # -------- @property def selected(self): """ @@ -1084,13 +867,6 @@ 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 @@ -1101,8 +877,6 @@ def selected(self): def selected(self, val): self["selected"] = val - # selectedpoints - # -------------- @property def selectedpoints(self): """ @@ -1125,8 +899,6 @@ def selectedpoints(self): def selectedpoints(self, val): self["selectedpoints"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -1146,8 +918,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # side - # ---- @property def side(self): """ @@ -1170,8 +940,6 @@ def side(self): def side(self, val): self["side"] = val - # span - # ---- @property def span(self): """ @@ -1195,8 +963,6 @@ def span(self): def span(self, val): self["span"] = val - # spanmode - # -------- @property def spanmode(self): """ @@ -1222,8 +988,6 @@ def spanmode(self): def spanmode(self, val): self["spanmode"] = val - # stream - # ------ @property def stream(self): """ @@ -1233,18 +997,6 @@ 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 @@ -1255,8 +1007,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # text - # ---- @property def text(self): """ @@ -1281,8 +1031,6 @@ def text(self): def text(self, val): self["text"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1301,8 +1049,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # uid - # --- @property def uid(self): """ @@ -1323,8 +1069,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1356,8 +1100,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # unselected - # ---------- @property def unselected(self): """ @@ -1367,13 +1109,6 @@ 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 @@ -1384,8 +1119,6 @@ def unselected(self): def unselected(self, val): self["unselected"] = val - # visible - # ------- @property def visible(self): """ @@ -1407,8 +1140,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # width - # ----- @property def width(self): """ @@ -1429,8 +1160,6 @@ def width(self): def width(self, val): self["width"] = val - # x - # - @property def x(self): """ @@ -1450,8 +1179,6 @@ def x(self): def x(self, val): self["x"] = val - # x0 - # -- @property def x0(self): """ @@ -1471,8 +1198,6 @@ def x0(self): def x0(self, val): self["x0"] = val - # xaxis - # ----- @property def xaxis(self): """ @@ -1496,8 +1221,6 @@ def xaxis(self): def xaxis(self, val): self["xaxis"] = val - # xhoverformat - # ------------ @property def xhoverformat(self): """ @@ -1527,8 +1250,6 @@ def xhoverformat(self): def xhoverformat(self, val): self["xhoverformat"] = val - # xsrc - # ---- @property def xsrc(self): """ @@ -1547,8 +1268,6 @@ def xsrc(self): def xsrc(self, val): self["xsrc"] = val - # y - # - @property def y(self): """ @@ -1568,8 +1287,6 @@ def y(self): def y(self, val): self["y"] = val - # y0 - # -- @property def y0(self): """ @@ -1589,8 +1306,6 @@ def y0(self): def y0(self, val): self["y0"] = val - # yaxis - # ----- @property def yaxis(self): """ @@ -1614,8 +1329,6 @@ def yaxis(self): def yaxis(self, val): self["yaxis"] = val - # yhoverformat - # ------------ @property def yhoverformat(self): """ @@ -1645,8 +1358,6 @@ def yhoverformat(self): def yhoverformat(self, val): self["yhoverformat"] = val - # ysrc - # ---- @property def ysrc(self): """ @@ -1665,8 +1376,6 @@ def ysrc(self): def ysrc(self, val): self["ysrc"] = val - # zorder - # ------ @property def zorder(self): """ @@ -1687,14 +1396,10 @@ def zorder(self): def zorder(self, val): self["zorder"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -2472,14 +2177,11 @@ def __init__( ------- Violin """ - super(Violin, self).__init__("violin") - + super().__init__("violin") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2494,268 +2196,72 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("alignmentgroup", arg, alignmentgroup) + self._set_property("bandwidth", arg, bandwidth) + self._set_property("box", arg, box) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("fillcolor", arg, fillcolor) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hoveron", arg, hoveron) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("jitter", arg, jitter) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("line", arg, line) + self._set_property("marker", arg, marker) + self._set_property("meanline", arg, meanline) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("offsetgroup", arg, offsetgroup) + self._set_property("opacity", arg, opacity) + self._set_property("orientation", arg, orientation) + self._set_property("pointpos", arg, pointpos) + self._set_property("points", arg, points) + self._set_property("quartilemethod", arg, quartilemethod) + self._set_property("scalegroup", arg, scalegroup) + self._set_property("scalemode", arg, scalemode) + self._set_property("selected", arg, selected) + self._set_property("selectedpoints", arg, selectedpoints) + self._set_property("showlegend", arg, showlegend) + self._set_property("side", arg, side) + self._set_property("span", arg, span) + self._set_property("spanmode", arg, spanmode) + self._set_property("stream", arg, stream) + self._set_property("text", arg, text) + self._set_property("textsrc", arg, textsrc) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("unselected", arg, unselected) + self._set_property("visible", arg, visible) + self._set_property("width", arg, width) + self._set_property("x", arg, x) + self._set_property("x0", arg, x0) + self._set_property("xaxis", arg, xaxis) + self._set_property("xhoverformat", arg, xhoverformat) + self._set_property("xsrc", arg, xsrc) + self._set_property("y", arg, y) + self._set_property("y0", arg, y0) + self._set_property("yaxis", arg, yaxis) + self._set_property("yhoverformat", arg, yhoverformat) + self._set_property("ysrc", arg, ysrc) + self._set_property("zorder", arg, zorder) self._props["type"] = "violin" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_volume.py b/plotly/graph_objs/_volume.py index 1c86a41552..9933e9b20a 100644 --- a/plotly/graph_objs/_volume.py +++ b/plotly/graph_objs/_volume.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Volume(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "volume" _valid_props = { @@ -73,8 +74,6 @@ class Volume(_BaseTraceType): "zsrc", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -98,8 +97,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # caps - # ---- @property def caps(self): """ @@ -109,18 +106,6 @@ 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 @@ -131,8 +116,6 @@ def caps(self): def caps(self, val): self["caps"] = val - # cauto - # ----- @property def cauto(self): """ @@ -154,8 +137,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -175,8 +156,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -197,8 +176,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -218,8 +195,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -245,8 +220,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -256,272 +229,6 @@ 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 @@ -532,8 +239,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -585,8 +290,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # contour - # ------- @property def contour(self): """ @@ -596,16 +299,6 @@ 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 @@ -616,8 +309,6 @@ def contour(self): def contour(self, val): self["contour"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -639,8 +330,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -660,8 +349,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # flatshading - # ----------- @property def flatshading(self): """ @@ -682,8 +369,6 @@ def flatshading(self): def flatshading(self, val): self["flatshading"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -708,8 +393,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -729,8 +412,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -740,44 +421,6 @@ 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 @@ -788,8 +431,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -832,8 +473,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -853,8 +492,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -875,8 +512,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -896,8 +531,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -918,8 +551,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -938,8 +569,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # isomax - # ------ @property def isomax(self): """ @@ -958,8 +587,6 @@ def isomax(self): def isomax(self, val): self["isomax"] = val - # isomin - # ------ @property def isomin(self): """ @@ -978,8 +605,6 @@ def isomin(self): def isomin(self, val): self["isomin"] = val - # legend - # ------ @property def legend(self): """ @@ -1003,8 +628,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -1026,8 +649,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -1037,13 +658,6 @@ 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 @@ -1054,8 +668,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -1081,8 +693,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -1102,8 +712,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # lighting - # -------- @property def lighting(self): """ @@ -1113,33 +721,6 @@ 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 @@ -1150,8 +731,6 @@ def lighting(self): def lighting(self, val): self["lighting"] = val - # lightposition - # ------------- @property def lightposition(self): """ @@ -1161,18 +740,6 @@ 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 @@ -1183,8 +750,6 @@ def lightposition(self): def lightposition(self, val): self["lightposition"] = val - # meta - # ---- @property def meta(self): """ @@ -1211,8 +776,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -1231,8 +794,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -1253,8 +814,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -1278,8 +837,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # opacityscale - # ------------ @property def opacityscale(self): """ @@ -1305,8 +862,6 @@ def opacityscale(self): def opacityscale(self, val): self["opacityscale"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -1327,8 +882,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # scene - # ----- @property def scene(self): """ @@ -1352,8 +905,6 @@ def scene(self): def scene(self, val): self["scene"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -1373,8 +924,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # showscale - # --------- @property def showscale(self): """ @@ -1394,8 +943,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # slices - # ------ @property def slices(self): """ @@ -1405,18 +952,6 @@ 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 @@ -1427,8 +962,6 @@ def slices(self): def slices(self, val): self["slices"] = val - # spaceframe - # ---------- @property def spaceframe(self): """ @@ -1438,20 +971,6 @@ 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 @@ -1462,8 +981,6 @@ def spaceframe(self): def spaceframe(self, val): self["spaceframe"] = val - # stream - # ------ @property def stream(self): """ @@ -1473,18 +990,6 @@ 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 @@ -1495,8 +1000,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # surface - # ------- @property def surface(self): """ @@ -1506,35 +1009,6 @@ 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 @@ -1545,8 +1019,6 @@ def surface(self): def surface(self, val): self["surface"] = val - # text - # ---- @property def text(self): """ @@ -1569,8 +1041,6 @@ def text(self): def text(self, val): self["text"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1589,8 +1059,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # uid - # --- @property def uid(self): """ @@ -1611,8 +1079,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1644,8 +1110,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # value - # ----- @property def value(self): """ @@ -1664,8 +1128,6 @@ def value(self): def value(self, val): self["value"] = val - # valuehoverformat - # ---------------- @property def valuehoverformat(self): """ @@ -1689,8 +1151,6 @@ def valuehoverformat(self): def valuehoverformat(self, val): self["valuehoverformat"] = val - # valuesrc - # -------- @property def valuesrc(self): """ @@ -1709,8 +1169,6 @@ def valuesrc(self): def valuesrc(self, val): self["valuesrc"] = val - # visible - # ------- @property def visible(self): """ @@ -1732,8 +1190,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # x - # - @property def x(self): """ @@ -1752,8 +1208,6 @@ def x(self): def x(self, val): self["x"] = val - # xhoverformat - # ------------ @property def xhoverformat(self): """ @@ -1783,8 +1237,6 @@ def xhoverformat(self): def xhoverformat(self, val): self["xhoverformat"] = val - # xsrc - # ---- @property def xsrc(self): """ @@ -1803,8 +1255,6 @@ def xsrc(self): def xsrc(self, val): self["xsrc"] = val - # y - # - @property def y(self): """ @@ -1823,8 +1273,6 @@ def y(self): def y(self, val): self["y"] = val - # yhoverformat - # ------------ @property def yhoverformat(self): """ @@ -1854,8 +1302,6 @@ def yhoverformat(self): def yhoverformat(self, val): self["yhoverformat"] = val - # ysrc - # ---- @property def ysrc(self): """ @@ -1874,8 +1320,6 @@ def ysrc(self): def ysrc(self, val): self["ysrc"] = val - # z - # - @property def z(self): """ @@ -1894,8 +1338,6 @@ def z(self): def z(self, val): self["z"] = val - # zhoverformat - # ------------ @property def zhoverformat(self): """ @@ -1925,8 +1367,6 @@ def zhoverformat(self): def zhoverformat(self, val): self["zhoverformat"] = val - # zsrc - # ---- @property def zsrc(self): """ @@ -1945,14 +1385,10 @@ def zsrc(self): def zsrc(self, val): self["zsrc"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -2688,14 +2124,11 @@ def __init__( ------- Volume """ - super(Volume, self).__init__("volume") - + super().__init__("volume") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2710,268 +2143,72 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("caps", arg, caps) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("contour", arg, contour) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("flatshading", arg, flatshading) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("isomax", arg, isomax) + self._set_property("isomin", arg, isomin) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("lighting", arg, lighting) + self._set_property("lightposition", arg, lightposition) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("opacityscale", arg, opacityscale) + self._set_property("reversescale", arg, reversescale) + self._set_property("scene", arg, scene) + self._set_property("showlegend", arg, showlegend) + self._set_property("showscale", arg, showscale) + self._set_property("slices", arg, slices) + self._set_property("spaceframe", arg, spaceframe) + self._set_property("stream", arg, stream) + self._set_property("surface", arg, surface) + self._set_property("text", arg, text) + self._set_property("textsrc", arg, textsrc) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("value", arg, value) + self._set_property("valuehoverformat", arg, valuehoverformat) + self._set_property("valuesrc", arg, valuesrc) + self._set_property("visible", arg, visible) + self._set_property("x", arg, x) + self._set_property("xhoverformat", arg, xhoverformat) + self._set_property("xsrc", arg, xsrc) + self._set_property("y", arg, y) + self._set_property("yhoverformat", arg, yhoverformat) + self._set_property("ysrc", arg, ysrc) + self._set_property("z", arg, z) + self._set_property("zhoverformat", arg, zhoverformat) + self._set_property("zsrc", arg, zsrc) self._props["type"] = "volume" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/_waterfall.py b/plotly/graph_objs/_waterfall.py index 42767a089d..47ac0f17e0 100644 --- a/plotly/graph_objs/_waterfall.py +++ b/plotly/graph_objs/_waterfall.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceType as _BaseTraceType import copy as _copy class Waterfall(_BaseTraceType): - # class properties - # -------------------- _parent_path_str = "" _path_str = "waterfall" _valid_props = { @@ -85,8 +86,6 @@ class Waterfall(_BaseTraceType): "zorder", } - # alignmentgroup - # -------------- @property def alignmentgroup(self): """ @@ -108,8 +107,6 @@ def alignmentgroup(self): def alignmentgroup(self, val): self["alignmentgroup"] = val - # base - # ---- @property def base(self): """ @@ -128,8 +125,6 @@ def base(self): def base(self, val): self["base"] = val - # cliponaxis - # ---------- @property def cliponaxis(self): """ @@ -151,8 +146,6 @@ def cliponaxis(self): def cliponaxis(self, val): self["cliponaxis"] = val - # connector - # --------- @property def connector(self): """ @@ -162,17 +155,6 @@ 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 @@ -183,8 +165,6 @@ def connector(self): def connector(self, val): self["connector"] = val - # constraintext - # ------------- @property def constraintext(self): """ @@ -205,8 +185,6 @@ def constraintext(self): def constraintext(self, val): self["constraintext"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -228,8 +206,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -249,8 +225,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # decreasing - # ---------- @property def decreasing(self): """ @@ -260,13 +234,6 @@ 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 @@ -277,8 +244,6 @@ def decreasing(self): def decreasing(self, val): self["decreasing"] = val - # dx - # -- @property def dx(self): """ @@ -297,8 +262,6 @@ def dx(self): def dx(self, val): self["dx"] = val - # dy - # -- @property def dy(self): """ @@ -317,8 +280,6 @@ def dy(self): def dy(self, val): self["dy"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -343,8 +304,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverinfosrc - # ------------ @property def hoverinfosrc(self): """ @@ -364,8 +323,6 @@ def hoverinfosrc(self): def hoverinfosrc(self, val): self["hoverinfosrc"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -375,44 +332,6 @@ 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 @@ -423,8 +342,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -469,8 +386,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -490,8 +405,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -516,8 +429,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # hovertextsrc - # ------------ @property def hovertextsrc(self): """ @@ -537,8 +448,6 @@ def hovertextsrc(self): def hovertextsrc(self, val): self["hovertextsrc"] = val - # ids - # --- @property def ids(self): """ @@ -559,8 +468,6 @@ def ids(self): def ids(self, val): self["ids"] = val - # idssrc - # ------ @property def idssrc(self): """ @@ -579,8 +486,6 @@ def idssrc(self): def idssrc(self, val): self["idssrc"] = val - # increasing - # ---------- @property def increasing(self): """ @@ -590,13 +495,6 @@ 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 @@ -607,8 +505,6 @@ def increasing(self): def increasing(self, val): self["increasing"] = val - # insidetextanchor - # ---------------- @property def insidetextanchor(self): """ @@ -629,8 +525,6 @@ def insidetextanchor(self): def insidetextanchor(self, val): self["insidetextanchor"] = val - # insidetextfont - # -------------- @property def insidetextfont(self): """ @@ -642,79 +536,6 @@ 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 @@ -725,8 +546,6 @@ def insidetextfont(self): def insidetextfont(self, val): self["insidetextfont"] = val - # legend - # ------ @property def legend(self): """ @@ -750,8 +569,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -773,8 +590,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -784,13 +599,6 @@ 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 @@ -801,8 +609,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -828,8 +634,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -849,8 +653,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # measure - # ------- @property def measure(self): """ @@ -873,8 +675,6 @@ def measure(self): def measure(self, val): self["measure"] = val - # measuresrc - # ---------- @property def measuresrc(self): """ @@ -893,8 +693,6 @@ def measuresrc(self): def measuresrc(self, val): self["measuresrc"] = val - # meta - # ---- @property def meta(self): """ @@ -921,8 +719,6 @@ def meta(self): def meta(self, val): self["meta"] = val - # metasrc - # ------- @property def metasrc(self): """ @@ -941,8 +737,6 @@ def metasrc(self): def metasrc(self, val): self["metasrc"] = val - # name - # ---- @property def name(self): """ @@ -963,8 +757,6 @@ def name(self): def name(self, val): self["name"] = val - # offset - # ------ @property def offset(self): """ @@ -986,8 +778,6 @@ def offset(self): def offset(self, val): self["offset"] = val - # offsetgroup - # ----------- @property def offsetgroup(self): """ @@ -1009,8 +799,6 @@ def offsetgroup(self): def offsetgroup(self, val): self["offsetgroup"] = val - # offsetsrc - # --------- @property def offsetsrc(self): """ @@ -1029,8 +817,6 @@ def offsetsrc(self): def offsetsrc(self, val): self["offsetsrc"] = val - # opacity - # ------- @property def opacity(self): """ @@ -1049,8 +835,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -1071,8 +855,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outsidetextfont - # --------------- @property def outsidetextfont(self): """ @@ -1084,79 +866,6 @@ 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 @@ -1167,8 +876,6 @@ def outsidetextfont(self): def outsidetextfont(self, val): self["outsidetextfont"] = val - # selectedpoints - # -------------- @property def selectedpoints(self): """ @@ -1191,8 +898,6 @@ def selectedpoints(self): def selectedpoints(self, val): self["selectedpoints"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -1212,8 +917,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # stream - # ------ @property def stream(self): """ @@ -1223,18 +926,6 @@ 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 @@ -1245,8 +936,6 @@ def stream(self): def stream(self, val): self["stream"] = val - # text - # ---- @property def text(self): """ @@ -1272,8 +961,6 @@ def text(self): def text(self, val): self["text"] = val - # textangle - # --------- @property def textangle(self): """ @@ -1297,8 +984,6 @@ def textangle(self): def textangle(self, val): self["textangle"] = val - # textfont - # -------- @property def textfont(self): """ @@ -1310,79 +995,6 @@ 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 @@ -1393,8 +1005,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # textinfo - # -------- @property def textinfo(self): """ @@ -1418,8 +1028,6 @@ def textinfo(self): def textinfo(self, val): self["textinfo"] = val - # textposition - # ------------ @property def textposition(self): """ @@ -1447,8 +1055,6 @@ def textposition(self): def textposition(self, val): self["textposition"] = val - # textpositionsrc - # --------------- @property def textpositionsrc(self): """ @@ -1468,8 +1074,6 @@ def textpositionsrc(self): def textpositionsrc(self, val): self["textpositionsrc"] = val - # textsrc - # ------- @property def textsrc(self): """ @@ -1488,8 +1092,6 @@ def textsrc(self): def textsrc(self, val): self["textsrc"] = val - # texttemplate - # ------------ @property def texttemplate(self): """ @@ -1523,8 +1125,6 @@ def texttemplate(self): def texttemplate(self, val): self["texttemplate"] = val - # texttemplatesrc - # --------------- @property def texttemplatesrc(self): """ @@ -1544,8 +1144,6 @@ def texttemplatesrc(self): def texttemplatesrc(self, val): self["texttemplatesrc"] = val - # totals - # ------ @property def totals(self): """ @@ -1555,13 +1153,6 @@ 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 @@ -1572,8 +1163,6 @@ def totals(self): def totals(self, val): self["totals"] = val - # uid - # --- @property def uid(self): """ @@ -1594,8 +1183,6 @@ def uid(self): def uid(self, val): self["uid"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1627,8 +1214,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # visible - # ------- @property def visible(self): """ @@ -1650,8 +1235,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # width - # ----- @property def width(self): """ @@ -1671,8 +1254,6 @@ def width(self): def width(self, val): self["width"] = val - # widthsrc - # -------- @property def widthsrc(self): """ @@ -1691,8 +1272,6 @@ def widthsrc(self): def widthsrc(self, val): self["widthsrc"] = val - # x - # - @property def x(self): """ @@ -1711,8 +1290,6 @@ def x(self): def x(self, val): self["x"] = val - # x0 - # -- @property def x0(self): """ @@ -1732,8 +1309,6 @@ def x0(self): def x0(self, val): self["x0"] = val - # xaxis - # ----- @property def xaxis(self): """ @@ -1757,8 +1332,6 @@ def xaxis(self): def xaxis(self, val): self["xaxis"] = val - # xhoverformat - # ------------ @property def xhoverformat(self): """ @@ -1788,8 +1361,6 @@ def xhoverformat(self): def xhoverformat(self, val): self["xhoverformat"] = val - # xperiod - # ------- @property def xperiod(self): """ @@ -1810,8 +1381,6 @@ def xperiod(self): def xperiod(self, val): self["xperiod"] = val - # xperiod0 - # -------- @property def xperiod0(self): """ @@ -1833,8 +1402,6 @@ def xperiod0(self): def xperiod0(self, val): self["xperiod0"] = val - # xperiodalignment - # ---------------- @property def xperiodalignment(self): """ @@ -1855,8 +1422,6 @@ def xperiodalignment(self): def xperiodalignment(self, val): self["xperiodalignment"] = val - # xsrc - # ---- @property def xsrc(self): """ @@ -1875,8 +1440,6 @@ def xsrc(self): def xsrc(self, val): self["xsrc"] = val - # y - # - @property def y(self): """ @@ -1895,8 +1458,6 @@ def y(self): def y(self, val): self["y"] = val - # y0 - # -- @property def y0(self): """ @@ -1916,8 +1477,6 @@ def y0(self): def y0(self, val): self["y0"] = val - # yaxis - # ----- @property def yaxis(self): """ @@ -1941,8 +1500,6 @@ def yaxis(self): def yaxis(self, val): self["yaxis"] = val - # yhoverformat - # ------------ @property def yhoverformat(self): """ @@ -1972,8 +1529,6 @@ def yhoverformat(self): def yhoverformat(self, val): self["yhoverformat"] = val - # yperiod - # ------- @property def yperiod(self): """ @@ -1994,8 +1549,6 @@ def yperiod(self): def yperiod(self, val): self["yperiod"] = val - # yperiod0 - # -------- @property def yperiod0(self): """ @@ -2017,8 +1570,6 @@ def yperiod0(self): def yperiod0(self, val): self["yperiod0"] = val - # yperiodalignment - # ---------------- @property def yperiodalignment(self): """ @@ -2039,8 +1590,6 @@ def yperiodalignment(self): def yperiodalignment(self, val): self["yperiodalignment"] = val - # ysrc - # ---- @property def ysrc(self): """ @@ -2059,8 +1608,6 @@ def ysrc(self): def ysrc(self, val): self["ysrc"] = val - # zorder - # ------ @property def zorder(self): """ @@ -2081,14 +1628,10 @@ def zorder(self): def zorder(self, val): self["zorder"] = val - # type - # ---- @property def type(self): return self._props["type"] - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -2938,14 +2481,11 @@ def __init__( ------- Waterfall """ - super(Waterfall, self).__init__("waterfall") - + super().__init__("waterfall") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2960,316 +2500,84 @@ def __init__( 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) - # 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 - - # Read-only literals - # ------------------ + self._set_property("alignmentgroup", arg, alignmentgroup) + self._set_property("base", arg, base) + self._set_property("cliponaxis", arg, cliponaxis) + self._set_property("connector", arg, connector) + self._set_property("constraintext", arg, constraintext) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("decreasing", arg, decreasing) + self._set_property("dx", arg, dx) + self._set_property("dy", arg, dy) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverinfosrc", arg, hoverinfosrc) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("hovertext", arg, hovertext) + self._set_property("hovertextsrc", arg, hovertextsrc) + self._set_property("ids", arg, ids) + self._set_property("idssrc", arg, idssrc) + self._set_property("increasing", arg, increasing) + self._set_property("insidetextanchor", arg, insidetextanchor) + self._set_property("insidetextfont", arg, insidetextfont) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("measure", arg, measure) + self._set_property("measuresrc", arg, measuresrc) + self._set_property("meta", arg, meta) + self._set_property("metasrc", arg, metasrc) + self._set_property("name", arg, name) + self._set_property("offset", arg, offset) + self._set_property("offsetgroup", arg, offsetgroup) + self._set_property("offsetsrc", arg, offsetsrc) + self._set_property("opacity", arg, opacity) + self._set_property("orientation", arg, orientation) + self._set_property("outsidetextfont", arg, outsidetextfont) + self._set_property("selectedpoints", arg, selectedpoints) + self._set_property("showlegend", arg, showlegend) + self._set_property("stream", arg, stream) + self._set_property("text", arg, text) + self._set_property("textangle", arg, textangle) + self._set_property("textfont", arg, textfont) + self._set_property("textinfo", arg, textinfo) + self._set_property("textposition", arg, textposition) + self._set_property("textpositionsrc", arg, textpositionsrc) + self._set_property("textsrc", arg, textsrc) + self._set_property("texttemplate", arg, texttemplate) + self._set_property("texttemplatesrc", arg, texttemplatesrc) + self._set_property("totals", arg, totals) + self._set_property("uid", arg, uid) + self._set_property("uirevision", arg, uirevision) + self._set_property("visible", arg, visible) + self._set_property("width", arg, width) + self._set_property("widthsrc", arg, widthsrc) + self._set_property("x", arg, x) + self._set_property("x0", arg, x0) + self._set_property("xaxis", arg, xaxis) + self._set_property("xhoverformat", arg, xhoverformat) + self._set_property("xperiod", arg, xperiod) + self._set_property("xperiod0", arg, xperiod0) + self._set_property("xperiodalignment", arg, xperiodalignment) + self._set_property("xsrc", arg, xsrc) + self._set_property("y", arg, y) + self._set_property("y0", arg, y0) + self._set_property("yaxis", arg, yaxis) + self._set_property("yhoverformat", arg, yhoverformat) + self._set_property("yperiod", arg, yperiod) + self._set_property("yperiod0", arg, yperiod0) + self._set_property("yperiodalignment", arg, yperiodalignment) + self._set_property("ysrc", arg, ysrc) + self._set_property("zorder", arg, zorder) self._props["type"] = "waterfall" arg.pop("type", None) - - # Process unknown kwargs - # ---------------------- self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/bar/__init__.py b/plotly/graph_objs/bar/__init__.py index 7a342c0d56..3d2c5be92b 100644 --- a/plotly/graph_objs/bar/__init__.py +++ b/plotly/graph_objs/bar/__init__.py @@ -1,40 +1,20 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._error_x import ErrorX - from ._error_y import ErrorY - from ._hoverlabel import Hoverlabel - from ._insidetextfont import Insidetextfont - from ._legendgrouptitle import Legendgrouptitle - from ._marker import Marker - from ._outsidetextfont import Outsidetextfont - from ._selected import Selected - from ._stream import Stream - from ._textfont import Textfont - from ._unselected import Unselected - from . import hoverlabel - from . import legendgrouptitle - from . import marker - from . import selected - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/bar/_error_x.py b/plotly/graph_objs/bar/_error_x.py index b83b39034b..9377120b64 100644 --- a/plotly/graph_objs/bar/_error_x.py +++ b/plotly/graph_objs/bar/_error_x.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ErrorX(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "bar" _path_str = "bar.error_x" _valid_props = { @@ -26,8 +27,6 @@ class ErrorX(_BaseTraceHierarchyType): "width", } - # array - # ----- @property def array(self): """ @@ -47,8 +46,6 @@ def array(self): def array(self, val): self["array"] = val - # arrayminus - # ---------- @property def arrayminus(self): """ @@ -69,8 +66,6 @@ def arrayminus(self): def arrayminus(self, val): self["arrayminus"] = val - # arrayminussrc - # ------------- @property def arrayminussrc(self): """ @@ -90,8 +85,6 @@ def arrayminussrc(self): def arrayminussrc(self, val): self["arrayminussrc"] = val - # arraysrc - # -------- @property def arraysrc(self): """ @@ -110,8 +103,6 @@ def arraysrc(self): def arraysrc(self, val): self["arraysrc"] = val - # color - # ----- @property def color(self): """ @@ -122,42 +113,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -169,8 +125,6 @@ def color(self): def color(self, val): self["color"] = val - # copy_ystyle - # ----------- @property def copy_ystyle(self): """ @@ -187,8 +141,6 @@ def copy_ystyle(self): def copy_ystyle(self, val): self["copy_ystyle"] = val - # symmetric - # --------- @property def symmetric(self): """ @@ -209,8 +161,6 @@ def symmetric(self): def symmetric(self, val): self["symmetric"] = val - # thickness - # --------- @property def thickness(self): """ @@ -229,8 +179,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # traceref - # -------- @property def traceref(self): """ @@ -248,8 +196,6 @@ def traceref(self): def traceref(self, val): self["traceref"] = val - # tracerefminus - # ------------- @property def tracerefminus(self): """ @@ -267,13 +213,11 @@ def tracerefminus(self): def tracerefminus(self, val): self["tracerefminus"] = val - # type - # ---- @property def type(self): """ Determines the rule used to generate the error bars. If - *constant`, the bar lengths are of a constant value. Set this + "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 @@ -294,8 +238,6 @@ def type(self): def type(self, val): self["type"] = val - # value - # ----- @property def value(self): """ @@ -316,8 +258,6 @@ def value(self): def value(self, val): self["value"] = val - # valueminus - # ---------- @property def valueminus(self): """ @@ -339,8 +279,6 @@ def valueminus(self): def valueminus(self, val): self["valueminus"] = val - # visible - # ------- @property def visible(self): """ @@ -359,8 +297,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # width - # ----- @property def width(self): """ @@ -380,8 +316,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -416,7 +350,7 @@ def _prop_descriptions(self): type Determines the rule used to generate the error bars. If - *constant`, the bar lengths are of a constant value. + "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 @@ -501,7 +435,7 @@ def __init__( type Determines the rule used to generate the error bars. If - *constant`, the bar lengths are of a constant value. + "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 @@ -530,14 +464,11 @@ def __init__( ------- ErrorX """ - super(ErrorX, self).__init__("error_x") - + super().__init__("error_x") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -552,78 +483,23 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("array", arg, array) + self._set_property("arrayminus", arg, arrayminus) + self._set_property("arrayminussrc", arg, arrayminussrc) + self._set_property("arraysrc", arg, arraysrc) + self._set_property("color", arg, color) + self._set_property("copy_ystyle", arg, copy_ystyle) + self._set_property("symmetric", arg, symmetric) + self._set_property("thickness", arg, thickness) + self._set_property("traceref", arg, traceref) + self._set_property("tracerefminus", arg, tracerefminus) + self._set_property("type", arg, type) + self._set_property("value", arg, value) + self._set_property("valueminus", arg, valueminus) + self._set_property("visible", arg, visible) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/bar/_error_y.py b/plotly/graph_objs/bar/_error_y.py index c6b3d93917..e3fc87e7c1 100644 --- a/plotly/graph_objs/bar/_error_y.py +++ b/plotly/graph_objs/bar/_error_y.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ErrorY(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "bar" _path_str = "bar.error_y" _valid_props = { @@ -25,8 +26,6 @@ class ErrorY(_BaseTraceHierarchyType): "width", } - # array - # ----- @property def array(self): """ @@ -46,8 +45,6 @@ def array(self): def array(self, val): self["array"] = val - # arrayminus - # ---------- @property def arrayminus(self): """ @@ -68,8 +65,6 @@ def arrayminus(self): def arrayminus(self, val): self["arrayminus"] = val - # arrayminussrc - # ------------- @property def arrayminussrc(self): """ @@ -89,8 +84,6 @@ def arrayminussrc(self): def arrayminussrc(self, val): self["arrayminussrc"] = val - # arraysrc - # -------- @property def arraysrc(self): """ @@ -109,8 +102,6 @@ def arraysrc(self): def arraysrc(self, val): self["arraysrc"] = val - # color - # ----- @property def color(self): """ @@ -121,42 +112,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -168,8 +124,6 @@ def color(self): def color(self, val): self["color"] = val - # symmetric - # --------- @property def symmetric(self): """ @@ -190,8 +144,6 @@ def symmetric(self): def symmetric(self, val): self["symmetric"] = val - # thickness - # --------- @property def thickness(self): """ @@ -210,8 +162,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # traceref - # -------- @property def traceref(self): """ @@ -229,8 +179,6 @@ def traceref(self): def traceref(self, val): self["traceref"] = val - # tracerefminus - # ------------- @property def tracerefminus(self): """ @@ -248,13 +196,11 @@ def tracerefminus(self): def tracerefminus(self, val): self["tracerefminus"] = val - # type - # ---- @property def type(self): """ Determines the rule used to generate the error bars. If - *constant`, the bar lengths are of a constant value. Set this + "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 @@ -275,8 +221,6 @@ def type(self): def type(self, val): self["type"] = val - # value - # ----- @property def value(self): """ @@ -297,8 +241,6 @@ def value(self): def value(self, val): self["value"] = val - # valueminus - # ---------- @property def valueminus(self): """ @@ -320,8 +262,6 @@ def valueminus(self): def valueminus(self, val): self["valueminus"] = val - # visible - # ------- @property def visible(self): """ @@ -340,8 +280,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # width - # ----- @property def width(self): """ @@ -361,8 +299,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -395,7 +331,7 @@ def _prop_descriptions(self): type Determines the rule used to generate the error bars. If - *constant`, the bar lengths are of a constant value. + "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 @@ -477,7 +413,7 @@ def __init__( type Determines the rule used to generate the error bars. If - *constant`, the bar lengths are of a constant value. + "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 @@ -506,14 +442,11 @@ def __init__( ------- ErrorY """ - super(ErrorY, self).__init__("error_y") - + super().__init__("error_y") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -528,74 +461,22 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("array", arg, array) + self._set_property("arrayminus", arg, arrayminus) + self._set_property("arrayminussrc", arg, arrayminussrc) + self._set_property("arraysrc", arg, arraysrc) + self._set_property("color", arg, color) + self._set_property("symmetric", arg, symmetric) + self._set_property("thickness", arg, thickness) + self._set_property("traceref", arg, traceref) + self._set_property("tracerefminus", arg, tracerefminus) + self._set_property("type", arg, type) + self._set_property("value", arg, value) + self._set_property("valueminus", arg, valueminus) + self._set_property("visible", arg, visible) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/bar/_hoverlabel.py b/plotly/graph_objs/bar/_hoverlabel.py index c3176a3f1a..f1900dd264 100644 --- a/plotly/graph_objs/bar/_hoverlabel.py +++ b/plotly/graph_objs/bar/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "bar" _path_str = "bar.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/bar/_insidetextfont.py b/plotly/graph_objs/bar/_insidetextfont.py index 6ee256b05e..a8b04caef6 100644 --- a/plotly/graph_objs/bar/_insidetextfont.py +++ b/plotly/graph_objs/bar/_insidetextfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Insidetextfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "bar" _path_str = "bar.insidetextfont" _valid_props = { @@ -29,8 +30,6 @@ class Insidetextfont(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Insidetextfont """ - super(Insidetextfont, self).__init__("insidetextfont") - + super().__init__("insidetextfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/bar/_legendgrouptitle.py b/plotly/graph_objs/bar/_legendgrouptitle.py index 04d4ea9812..4e26b2361d 100644 --- a/plotly/graph_objs/bar/_legendgrouptitle.py +++ b/plotly/graph_objs/bar/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "bar" _path_str = "bar.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/bar/_marker.py b/plotly/graph_objs/bar/_marker.py index 6af1d5c021..0c40f9fabc 100644 --- a/plotly/graph_objs/bar/_marker.py +++ b/plotly/graph_objs/bar/_marker.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "bar" _path_str = "bar.marker" _valid_props = { @@ -28,8 +29,6 @@ class Marker(_BaseTraceHierarchyType): "showscale", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -54,8 +53,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -79,8 +76,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -102,8 +97,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -126,8 +119,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -149,8 +140,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # color - # ----- @property def color(self): """ @@ -164,42 +153,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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to bar.marker.colorscale - A list or array of any of the above @@ -214,8 +168,6 @@ def color(self): def color(self, val): self["color"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -241,8 +193,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -252,272 +202,6 @@ 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 @@ -528,8 +212,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -582,8 +264,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -602,8 +282,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # cornerradius - # ------------ @property def cornerradius(self): """ @@ -625,8 +303,6 @@ def cornerradius(self): def cornerradius(self, val): self["cornerradius"] = val - # line - # ---- @property def line(self): """ @@ -636,98 +312,6 @@ 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 @@ -738,8 +322,6 @@ def line(self): def line(self, val): self["line"] = val - # opacity - # ------- @property def opacity(self): """ @@ -759,8 +341,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # opacitysrc - # ---------- @property def opacitysrc(self): """ @@ -779,8 +359,6 @@ def opacitysrc(self): def opacitysrc(self, val): self["opacitysrc"] = val - # pattern - # ------- @property def pattern(self): """ @@ -792,57 +370,6 @@ 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 @@ -853,8 +380,6 @@ def pattern(self): def pattern(self, val): self["pattern"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -876,8 +401,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # showscale - # --------- @property def showscale(self): """ @@ -898,8 +421,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1124,14 +645,11 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1146,86 +664,25 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("color", arg, color) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("cornerradius", arg, cornerradius) + self._set_property("line", arg, line) + self._set_property("opacity", arg, opacity) + self._set_property("opacitysrc", arg, opacitysrc) + self._set_property("pattern", arg, pattern) + self._set_property("reversescale", arg, reversescale) + self._set_property("showscale", arg, showscale) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/bar/_outsidetextfont.py b/plotly/graph_objs/bar/_outsidetextfont.py index 3f549b619c..3cebce60bf 100644 --- a/plotly/graph_objs/bar/_outsidetextfont.py +++ b/plotly/graph_objs/bar/_outsidetextfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Outsidetextfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "bar" _path_str = "bar.outsidetextfont" _valid_props = { @@ -29,8 +30,6 @@ class Outsidetextfont(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Outsidetextfont """ - super(Outsidetextfont, self).__init__("outsidetextfont") - + super().__init__("outsidetextfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/bar/_selected.py b/plotly/graph_objs/bar/_selected.py index 2cacdf125c..c28ea9e2cc 100644 --- a/plotly/graph_objs/bar/_selected.py +++ b/plotly/graph_objs/bar/_selected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Selected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "bar" _path_str = "bar.selected" _valid_props = {"marker", "textfont"} - # marker - # ------ @property def marker(self): """ @@ -21,13 +20,6 @@ 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 @@ -38,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # textfont - # -------- @property def textfont(self): """ @@ -49,11 +39,6 @@ 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 @@ -64,8 +49,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -97,14 +80,11 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") - + super().__init__("selected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -119,26 +99,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) + self._set_property("textfont", arg, textfont) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/bar/_stream.py b/plotly/graph_objs/bar/_stream.py index 5b276e2eee..6e30b04917 100644 --- a/plotly/graph_objs/bar/_stream.py +++ b/plotly/graph_objs/bar/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "bar" _path_str = "bar.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -93,14 +88,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -115,26 +107,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/bar/_textfont.py b/plotly/graph_objs/bar/_textfont.py index 0dfa461b5a..864be8aca5 100644 --- a/plotly/graph_objs/bar/_textfont.py +++ b/plotly/graph_objs/bar/_textfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "bar" _path_str = "bar.textfont" _valid_props = { @@ -29,8 +30,6 @@ class Textfont(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -575,18 +489,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -638,14 +545,11 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -660,90 +564,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/bar/_unselected.py b/plotly/graph_objs/bar/_unselected.py index cac2eb4462..467d8acd76 100644 --- a/plotly/graph_objs/bar/_unselected.py +++ b/plotly/graph_objs/bar/_unselected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Unselected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "bar" _path_str = "bar.unselected" _valid_props = {"marker", "textfont"} - # marker - # ------ @property def marker(self): """ @@ -21,15 +20,6 @@ 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 @@ -40,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # textfont - # -------- @property def textfont(self): """ @@ -51,12 +39,6 @@ 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 @@ -67,8 +49,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -101,14 +81,11 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") - + super().__init__("unselected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -123,26 +100,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) + self._set_property("textfont", arg, textfont) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/bar/hoverlabel/__init__.py b/plotly/graph_objs/bar/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/bar/hoverlabel/__init__.py +++ b/plotly/graph_objs/bar/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/bar/hoverlabel/_font.py b/plotly/graph_objs/bar/hoverlabel/_font.py index 9ddfd6157d..0d5e37cadb 100644 --- a/plotly/graph_objs/bar/hoverlabel/_font.py +++ b/plotly/graph_objs/bar/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "bar.hoverlabel" _path_str = "bar.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/bar/legendgrouptitle/__init__.py b/plotly/graph_objs/bar/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/bar/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/bar/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/bar/legendgrouptitle/_font.py b/plotly/graph_objs/bar/legendgrouptitle/_font.py index a74f82ad72..dc540b96c2 100644 --- a/plotly/graph_objs/bar/legendgrouptitle/_font.py +++ b/plotly/graph_objs/bar/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "bar.legendgrouptitle" _path_str = "bar.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/bar/marker/__init__.py b/plotly/graph_objs/bar/marker/__init__.py index ce0279c544..700941a53e 100644 --- a/plotly/graph_objs/bar/marker/__init__.py +++ b/plotly/graph_objs/bar/marker/__init__.py @@ -1,16 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._colorbar import ColorBar - from ._line import Line - from ._pattern import Pattern - from . import colorbar -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".colorbar"], - ["._colorbar.ColorBar", "._line.Line", "._pattern.Pattern"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [".colorbar"], ["._colorbar.ColorBar", "._line.Line", "._pattern.Pattern"] +) diff --git a/plotly/graph_objs/bar/marker/_colorbar.py b/plotly/graph_objs/bar/marker/_colorbar.py index 7f93706dd2..d79fdf1c97 100644 --- a/plotly/graph_objs/bar/marker/_colorbar.py +++ b/plotly/graph_objs/bar/marker/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "bar.marker" _path_str = "bar.marker.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -912,8 +637,6 @@ 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 @@ -924,8 +647,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -948,8 +669,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -973,8 +692,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -999,8 +716,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1019,8 +734,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1046,8 +759,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1067,8 +778,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1090,8 +799,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1111,8 +818,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1133,8 +838,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1153,8 +856,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1174,8 +875,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1194,8 +893,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1214,8 +911,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1225,18 +920,6 @@ 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 @@ -1247,8 +930,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1273,8 +954,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1297,8 +976,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1317,8 +994,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1340,8 +1015,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1366,8 +1039,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1390,8 +1061,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1410,8 +1079,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1433,8 +1100,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1984,14 +1649,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2006,214 +1668,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/bar/marker/_line.py b/plotly/graph_objs/bar/marker/_line.py index ac0e99e0ce..150984dfd4 100644 --- a/plotly/graph_objs/bar/marker/_line.py +++ b/plotly/graph_objs/bar/marker/_line.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "bar.marker" _path_str = "bar.marker.line" _valid_props = { @@ -23,8 +24,6 @@ class Line(_BaseTraceHierarchyType): "widthsrc", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -49,8 +48,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -74,8 +71,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -97,8 +92,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -122,8 +115,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -145,8 +136,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # color - # ----- @property def color(self): """ @@ -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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to bar.marker.line.colorscale - A list or array of any of the above @@ -210,8 +164,6 @@ def color(self): def color(self, val): self["color"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -237,8 +189,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -292,8 +242,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -312,8 +260,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -336,8 +282,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # width - # ----- @property def width(self): """ @@ -357,8 +301,6 @@ def width(self): def width(self, val): self["width"] = val - # widthsrc - # -------- @property def widthsrc(self): """ @@ -377,8 +319,6 @@ def widthsrc(self): def widthsrc(self, val): self["widthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -571,14 +511,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -593,66 +530,20 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("color", arg, color) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("reversescale", arg, reversescale) + self._set_property("width", arg, width) + self._set_property("widthsrc", arg, widthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/bar/marker/_pattern.py b/plotly/graph_objs/bar/marker/_pattern.py index 423062a837..64c5c498fe 100644 --- a/plotly/graph_objs/bar/marker/_pattern.py +++ b/plotly/graph_objs/bar/marker/_pattern.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Pattern(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "bar.marker" _path_str = "bar.marker.pattern" _valid_props = { @@ -23,8 +24,6 @@ class Pattern(_BaseTraceHierarchyType): "soliditysrc", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -38,42 +37,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -86,8 +50,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -106,8 +68,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # fgcolor - # ------- @property def fgcolor(self): """ @@ -121,42 +81,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -169,8 +94,6 @@ def fgcolor(self): def fgcolor(self, val): self["fgcolor"] = val - # fgcolorsrc - # ---------- @property def fgcolorsrc(self): """ @@ -189,8 +112,6 @@ def fgcolorsrc(self): def fgcolorsrc(self, val): self["fgcolorsrc"] = val - # fgopacity - # --------- @property def fgopacity(self): """ @@ -210,8 +131,6 @@ def fgopacity(self): def fgopacity(self, val): self["fgopacity"] = val - # fillmode - # -------- @property def fillmode(self): """ @@ -232,8 +151,6 @@ def fillmode(self): def fillmode(self, val): self["fillmode"] = val - # shape - # ----- @property def shape(self): """ @@ -255,8 +172,6 @@ def shape(self): def shape(self, val): self["shape"] = val - # shapesrc - # -------- @property def shapesrc(self): """ @@ -275,8 +190,6 @@ def shapesrc(self): def shapesrc(self, val): self["shapesrc"] = val - # size - # ---- @property def size(self): """ @@ -297,8 +210,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -317,8 +228,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # solidity - # -------- @property def solidity(self): """ @@ -341,8 +250,6 @@ def solidity(self): def solidity(self, val): self["solidity"] = val - # soliditysrc - # ----------- @property def soliditysrc(self): """ @@ -361,8 +268,6 @@ def soliditysrc(self): def soliditysrc(self, val): self["soliditysrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -493,14 +398,11 @@ def __init__( ------- Pattern """ - super(Pattern, self).__init__("pattern") - + super().__init__("pattern") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -515,66 +417,20 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("fgcolor", arg, fgcolor) + self._set_property("fgcolorsrc", arg, fgcolorsrc) + self._set_property("fgopacity", arg, fgopacity) + self._set_property("fillmode", arg, fillmode) + self._set_property("shape", arg, shape) + self._set_property("shapesrc", arg, shapesrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("solidity", arg, solidity) + self._set_property("soliditysrc", arg, soliditysrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/bar/marker/colorbar/__init__.py b/plotly/graph_objs/bar/marker/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/bar/marker/colorbar/__init__.py +++ b/plotly/graph_objs/bar/marker/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/bar/marker/colorbar/_tickfont.py b/plotly/graph_objs/bar/marker/colorbar/_tickfont.py index 394786fc03..8d3b1a6e25 100644 --- a/plotly/graph_objs/bar/marker/colorbar/_tickfont.py +++ b/plotly/graph_objs/bar/marker/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "bar.marker.colorbar" _path_str = "bar.marker.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/bar/marker/colorbar/_tickformatstop.py b/plotly/graph_objs/bar/marker/colorbar/_tickformatstop.py index 43310337d7..6eae822c9c 100644 --- a/plotly/graph_objs/bar/marker/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/bar/marker/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "bar.marker.colorbar" _path_str = "bar.marker.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/bar/marker/colorbar/_title.py b/plotly/graph_objs/bar/marker/colorbar/_title.py index 3ad48f55ad..d4fd0b5625 100644 --- a/plotly/graph_objs/bar/marker/colorbar/_title.py +++ b/plotly/graph_objs/bar/marker/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "bar.marker.colorbar" _path_str = "bar.marker.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/bar/marker/colorbar/title/__init__.py b/plotly/graph_objs/bar/marker/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/bar/marker/colorbar/title/__init__.py +++ b/plotly/graph_objs/bar/marker/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/bar/marker/colorbar/title/_font.py b/plotly/graph_objs/bar/marker/colorbar/title/_font.py index c6b3218ea7..4ade1e3924 100644 --- a/plotly/graph_objs/bar/marker/colorbar/title/_font.py +++ b/plotly/graph_objs/bar/marker/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "bar.marker.colorbar.title" _path_str = "bar.marker.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/bar/selected/__init__.py b/plotly/graph_objs/bar/selected/__init__.py index ae964f0b65..473168fdb5 100644 --- a/plotly/graph_objs/bar/selected/__init__.py +++ b/plotly/graph_objs/bar/selected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.Marker", "._textfont.Textfont"] +) diff --git a/plotly/graph_objs/bar/selected/_marker.py b/plotly/graph_objs/bar/selected/_marker.py index bb3c22b56e..45c17e04fd 100644 --- a/plotly/graph_objs/bar/selected/_marker.py +++ b/plotly/graph_objs/bar/selected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "bar.selected" _path_str = "bar.selected.marker" _valid_props = {"color", "opacity"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # opacity - # ------- @property def opacity(self): """ @@ -89,8 +51,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -119,14 +79,11 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -141,26 +98,10 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("opacity", arg, opacity) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/bar/selected/_textfont.py b/plotly/graph_objs/bar/selected/_textfont.py index d6dc88660c..da5420ddf1 100644 --- a/plotly/graph_objs/bar/selected/_textfont.py +++ b/plotly/graph_objs/bar/selected/_textfont.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "bar.selected" _path_str = "bar.selected.textfont" _valid_props = {"color"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -95,14 +57,11 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -117,22 +76,9 @@ def __init__(self, arg=None, color=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/bar/unselected/__init__.py b/plotly/graph_objs/bar/unselected/__init__.py index ae964f0b65..473168fdb5 100644 --- a/plotly/graph_objs/bar/unselected/__init__.py +++ b/plotly/graph_objs/bar/unselected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.Marker", "._textfont.Textfont"] +) diff --git a/plotly/graph_objs/bar/unselected/_marker.py b/plotly/graph_objs/bar/unselected/_marker.py index 61d2d0d8e1..b048561802 100644 --- a/plotly/graph_objs/bar/unselected/_marker.py +++ b/plotly/graph_objs/bar/unselected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "bar.unselected" _path_str = "bar.unselected.marker" _valid_props = {"color", "opacity"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # opacity - # ------- @property def opacity(self): """ @@ -91,8 +53,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -125,14 +85,11 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -147,26 +104,10 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("opacity", arg, opacity) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/bar/unselected/_textfont.py b/plotly/graph_objs/bar/unselected/_textfont.py index 59c239103f..67dc0205bc 100644 --- a/plotly/graph_objs/bar/unselected/_textfont.py +++ b/plotly/graph_objs/bar/unselected/_textfont.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "bar.unselected" _path_str = "bar.unselected.textfont" _valid_props = {"color"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -98,14 +60,11 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -120,22 +79,9 @@ def __init__(self, arg=None, color=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/barpolar/__init__.py b/plotly/graph_objs/barpolar/__init__.py index 27b45079d2..0d240d0ac9 100644 --- a/plotly/graph_objs/barpolar/__init__.py +++ b/plotly/graph_objs/barpolar/__init__.py @@ -1,30 +1,15 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._hoverlabel import Hoverlabel - from ._legendgrouptitle import Legendgrouptitle - from ._marker import Marker - from ._selected import Selected - from ._stream import Stream - from ._unselected import Unselected - from . import hoverlabel - from . import legendgrouptitle - from . import marker - from . import selected - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".hoverlabel", ".legendgrouptitle", ".marker", ".selected", ".unselected"], + [ + "._hoverlabel.Hoverlabel", + "._legendgrouptitle.Legendgrouptitle", + "._marker.Marker", + "._selected.Selected", + "._stream.Stream", + "._unselected.Unselected", + ], +) diff --git a/plotly/graph_objs/barpolar/_hoverlabel.py b/plotly/graph_objs/barpolar/_hoverlabel.py index 319d6463b9..c10fd72478 100644 --- a/plotly/graph_objs/barpolar/_hoverlabel.py +++ b/plotly/graph_objs/barpolar/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "barpolar" _path_str = "barpolar.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/barpolar/_legendgrouptitle.py b/plotly/graph_objs/barpolar/_legendgrouptitle.py index 382ec3f2fa..48a1a88024 100644 --- a/plotly/graph_objs/barpolar/_legendgrouptitle.py +++ b/plotly/graph_objs/barpolar/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "barpolar" _path_str = "barpolar.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/barpolar/_marker.py b/plotly/graph_objs/barpolar/_marker.py index 3602ee7081..21406705a3 100644 --- a/plotly/graph_objs/barpolar/_marker.py +++ b/plotly/graph_objs/barpolar/_marker.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "barpolar" _path_str = "barpolar.marker" _valid_props = { @@ -27,8 +28,6 @@ class Marker(_BaseTraceHierarchyType): "showscale", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -53,8 +52,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -78,8 +75,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -101,8 +96,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -125,8 +118,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -148,8 +139,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # color - # ----- @property def color(self): """ @@ -163,42 +152,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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to barpolar.marker.colorscale - A list or array of any of the above @@ -213,8 +167,6 @@ def color(self): def color(self, val): self["color"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -240,8 +192,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -251,273 +201,6 @@ 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 @@ -528,8 +211,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -582,8 +263,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -602,8 +281,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # line - # ---- @property def line(self): """ @@ -613,98 +290,6 @@ 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 @@ -715,8 +300,6 @@ def line(self): def line(self, val): self["line"] = val - # opacity - # ------- @property def opacity(self): """ @@ -736,8 +319,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # opacitysrc - # ---------- @property def opacitysrc(self): """ @@ -756,8 +337,6 @@ def opacitysrc(self): def opacitysrc(self, val): self["opacitysrc"] = val - # pattern - # ------- @property def pattern(self): """ @@ -769,57 +348,6 @@ 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 @@ -830,8 +358,6 @@ def pattern(self): def pattern(self, val): self["pattern"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -853,8 +379,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # showscale - # --------- @property def showscale(self): """ @@ -875,8 +399,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1089,14 +611,11 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1111,82 +630,24 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("color", arg, color) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("line", arg, line) + self._set_property("opacity", arg, opacity) + self._set_property("opacitysrc", arg, opacitysrc) + self._set_property("pattern", arg, pattern) + self._set_property("reversescale", arg, reversescale) + self._set_property("showscale", arg, showscale) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/barpolar/_selected.py b/plotly/graph_objs/barpolar/_selected.py index 2738d420ab..69b655ca15 100644 --- a/plotly/graph_objs/barpolar/_selected.py +++ b/plotly/graph_objs/barpolar/_selected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Selected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "barpolar" _path_str = "barpolar.selected" _valid_props = {"marker", "textfont"} - # marker - # ------ @property def marker(self): """ @@ -21,13 +20,6 @@ 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 @@ -38,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # textfont - # -------- @property def textfont(self): """ @@ -49,11 +39,6 @@ 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 @@ -64,8 +49,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -98,14 +81,11 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") - + super().__init__("selected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -120,26 +100,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) + self._set_property("textfont", arg, textfont) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/barpolar/_stream.py b/plotly/graph_objs/barpolar/_stream.py index fbfdae7eb2..53de6c54d4 100644 --- a/plotly/graph_objs/barpolar/_stream.py +++ b/plotly/graph_objs/barpolar/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "barpolar" _path_str = "barpolar.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -94,14 +89,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -116,26 +108,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/barpolar/_unselected.py b/plotly/graph_objs/barpolar/_unselected.py index a83f619986..49016840f0 100644 --- a/plotly/graph_objs/barpolar/_unselected.py +++ b/plotly/graph_objs/barpolar/_unselected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Unselected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "barpolar" _path_str = "barpolar.unselected" _valid_props = {"marker", "textfont"} - # marker - # ------ @property def marker(self): """ @@ -21,15 +20,6 @@ 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 @@ -40,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # textfont - # -------- @property def textfont(self): """ @@ -51,12 +39,6 @@ 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 @@ -67,8 +49,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -101,14 +81,11 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") - + super().__init__("unselected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -123,26 +100,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) + self._set_property("textfont", arg, textfont) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/barpolar/hoverlabel/__init__.py b/plotly/graph_objs/barpolar/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/barpolar/hoverlabel/__init__.py +++ b/plotly/graph_objs/barpolar/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/barpolar/hoverlabel/_font.py b/plotly/graph_objs/barpolar/hoverlabel/_font.py index 7a45bd2cd8..4c8ed8c83c 100644 --- a/plotly/graph_objs/barpolar/hoverlabel/_font.py +++ b/plotly/graph_objs/barpolar/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "barpolar.hoverlabel" _path_str = "barpolar.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/barpolar/legendgrouptitle/__init__.py b/plotly/graph_objs/barpolar/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/barpolar/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/barpolar/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/barpolar/legendgrouptitle/_font.py b/plotly/graph_objs/barpolar/legendgrouptitle/_font.py index c687282cf1..e53bb36fc7 100644 --- a/plotly/graph_objs/barpolar/legendgrouptitle/_font.py +++ b/plotly/graph_objs/barpolar/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "barpolar.legendgrouptitle" _path_str = "barpolar.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/barpolar/marker/__init__.py b/plotly/graph_objs/barpolar/marker/__init__.py index ce0279c544..700941a53e 100644 --- a/plotly/graph_objs/barpolar/marker/__init__.py +++ b/plotly/graph_objs/barpolar/marker/__init__.py @@ -1,16 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._colorbar import ColorBar - from ._line import Line - from ._pattern import Pattern - from . import colorbar -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".colorbar"], - ["._colorbar.ColorBar", "._line.Line", "._pattern.Pattern"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [".colorbar"], ["._colorbar.ColorBar", "._line.Line", "._pattern.Pattern"] +) diff --git a/plotly/graph_objs/barpolar/marker/_colorbar.py b/plotly/graph_objs/barpolar/marker/_colorbar.py index 1a42eb92b8..f08a1a2ba1 100644 --- a/plotly/graph_objs/barpolar/marker/_colorbar.py +++ b/plotly/graph_objs/barpolar/marker/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "barpolar.marker" _path_str = "barpolar.marker.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -913,8 +638,6 @@ 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 @@ -925,8 +648,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -949,8 +670,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -974,8 +693,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1000,8 +717,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1020,8 +735,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1047,8 +760,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1068,8 +779,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1091,8 +800,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1112,8 +819,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1134,8 +839,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1154,8 +857,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1175,8 +876,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1195,8 +894,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1215,8 +912,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1226,18 +921,6 @@ 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 @@ -1248,8 +931,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1274,8 +955,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1298,8 +977,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1318,8 +995,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1341,8 +1016,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1367,8 +1040,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1391,8 +1062,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1411,8 +1080,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1434,8 +1101,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1985,14 +1650,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2007,214 +1669,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/barpolar/marker/_line.py b/plotly/graph_objs/barpolar/marker/_line.py index 1fc6461876..69783b7a50 100644 --- a/plotly/graph_objs/barpolar/marker/_line.py +++ b/plotly/graph_objs/barpolar/marker/_line.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "barpolar.marker" _path_str = "barpolar.marker.line" _valid_props = { @@ -23,8 +24,6 @@ class Line(_BaseTraceHierarchyType): "widthsrc", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -49,8 +48,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -74,8 +71,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -97,8 +92,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -122,8 +115,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -145,8 +136,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # color - # ----- @property def color(self): """ @@ -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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to barpolar.marker.line.colorscale - A list or array of any of the above @@ -210,8 +164,6 @@ def color(self): def color(self, val): self["color"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -237,8 +189,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -292,8 +242,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -312,8 +260,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -336,8 +282,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # width - # ----- @property def width(self): """ @@ -357,8 +301,6 @@ def width(self): def width(self, val): self["width"] = val - # widthsrc - # -------- @property def widthsrc(self): """ @@ -377,8 +319,6 @@ def widthsrc(self): def widthsrc(self, val): self["widthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -571,14 +511,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -593,66 +530,20 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("color", arg, color) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("reversescale", arg, reversescale) + self._set_property("width", arg, width) + self._set_property("widthsrc", arg, widthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/barpolar/marker/_pattern.py b/plotly/graph_objs/barpolar/marker/_pattern.py index 74f81eefcc..26e1cb9457 100644 --- a/plotly/graph_objs/barpolar/marker/_pattern.py +++ b/plotly/graph_objs/barpolar/marker/_pattern.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Pattern(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "barpolar.marker" _path_str = "barpolar.marker.pattern" _valid_props = { @@ -23,8 +24,6 @@ class Pattern(_BaseTraceHierarchyType): "soliditysrc", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -38,42 +37,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -86,8 +50,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -106,8 +68,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # fgcolor - # ------- @property def fgcolor(self): """ @@ -121,42 +81,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -169,8 +94,6 @@ def fgcolor(self): def fgcolor(self, val): self["fgcolor"] = val - # fgcolorsrc - # ---------- @property def fgcolorsrc(self): """ @@ -189,8 +112,6 @@ def fgcolorsrc(self): def fgcolorsrc(self, val): self["fgcolorsrc"] = val - # fgopacity - # --------- @property def fgopacity(self): """ @@ -210,8 +131,6 @@ def fgopacity(self): def fgopacity(self, val): self["fgopacity"] = val - # fillmode - # -------- @property def fillmode(self): """ @@ -232,8 +151,6 @@ def fillmode(self): def fillmode(self, val): self["fillmode"] = val - # shape - # ----- @property def shape(self): """ @@ -255,8 +172,6 @@ def shape(self): def shape(self, val): self["shape"] = val - # shapesrc - # -------- @property def shapesrc(self): """ @@ -275,8 +190,6 @@ def shapesrc(self): def shapesrc(self, val): self["shapesrc"] = val - # size - # ---- @property def size(self): """ @@ -297,8 +210,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -317,8 +228,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # solidity - # -------- @property def solidity(self): """ @@ -341,8 +250,6 @@ def solidity(self): def solidity(self, val): self["solidity"] = val - # soliditysrc - # ----------- @property def soliditysrc(self): """ @@ -361,8 +268,6 @@ def soliditysrc(self): def soliditysrc(self, val): self["soliditysrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -493,14 +398,11 @@ def __init__( ------- Pattern """ - super(Pattern, self).__init__("pattern") - + super().__init__("pattern") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -515,66 +417,20 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("fgcolor", arg, fgcolor) + self._set_property("fgcolorsrc", arg, fgcolorsrc) + self._set_property("fgopacity", arg, fgopacity) + self._set_property("fillmode", arg, fillmode) + self._set_property("shape", arg, shape) + self._set_property("shapesrc", arg, shapesrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("solidity", arg, solidity) + self._set_property("soliditysrc", arg, soliditysrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/barpolar/marker/colorbar/__init__.py b/plotly/graph_objs/barpolar/marker/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/barpolar/marker/colorbar/__init__.py +++ b/plotly/graph_objs/barpolar/marker/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/barpolar/marker/colorbar/_tickfont.py b/plotly/graph_objs/barpolar/marker/colorbar/_tickfont.py index 2667ba1461..ffe56848b1 100644 --- a/plotly/graph_objs/barpolar/marker/colorbar/_tickfont.py +++ b/plotly/graph_objs/barpolar/marker/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "barpolar.marker.colorbar" _path_str = "barpolar.marker.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/barpolar/marker/colorbar/_tickformatstop.py b/plotly/graph_objs/barpolar/marker/colorbar/_tickformatstop.py index c74dabd649..4754ea97ab 100644 --- a/plotly/graph_objs/barpolar/marker/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/barpolar/marker/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "barpolar.marker.colorbar" _path_str = "barpolar.marker.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/barpolar/marker/colorbar/_title.py b/plotly/graph_objs/barpolar/marker/colorbar/_title.py index 0f41b12c58..a8e620904e 100644 --- a/plotly/graph_objs/barpolar/marker/colorbar/_title.py +++ b/plotly/graph_objs/barpolar/marker/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "barpolar.marker.colorbar" _path_str = "barpolar.marker.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/barpolar/marker/colorbar/title/__init__.py b/plotly/graph_objs/barpolar/marker/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/barpolar/marker/colorbar/title/__init__.py +++ b/plotly/graph_objs/barpolar/marker/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/barpolar/marker/colorbar/title/_font.py b/plotly/graph_objs/barpolar/marker/colorbar/title/_font.py index da6165775b..8b8121b404 100644 --- a/plotly/graph_objs/barpolar/marker/colorbar/title/_font.py +++ b/plotly/graph_objs/barpolar/marker/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "barpolar.marker.colorbar.title" _path_str = "barpolar.marker.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/barpolar/selected/__init__.py b/plotly/graph_objs/barpolar/selected/__init__.py index ae964f0b65..473168fdb5 100644 --- a/plotly/graph_objs/barpolar/selected/__init__.py +++ b/plotly/graph_objs/barpolar/selected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.Marker", "._textfont.Textfont"] +) diff --git a/plotly/graph_objs/barpolar/selected/_marker.py b/plotly/graph_objs/barpolar/selected/_marker.py index f8f3979653..4d223f96eb 100644 --- a/plotly/graph_objs/barpolar/selected/_marker.py +++ b/plotly/graph_objs/barpolar/selected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "barpolar.selected" _path_str = "barpolar.selected.marker" _valid_props = {"color", "opacity"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # opacity - # ------- @property def opacity(self): """ @@ -89,8 +51,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -119,14 +79,11 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -141,26 +98,10 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("opacity", arg, opacity) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/barpolar/selected/_textfont.py b/plotly/graph_objs/barpolar/selected/_textfont.py index 55f2e0291d..f7c74183bc 100644 --- a/plotly/graph_objs/barpolar/selected/_textfont.py +++ b/plotly/graph_objs/barpolar/selected/_textfont.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "barpolar.selected" _path_str = "barpolar.selected.textfont" _valid_props = {"color"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -95,14 +57,11 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -117,22 +76,9 @@ def __init__(self, arg=None, color=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/barpolar/unselected/__init__.py b/plotly/graph_objs/barpolar/unselected/__init__.py index ae964f0b65..473168fdb5 100644 --- a/plotly/graph_objs/barpolar/unselected/__init__.py +++ b/plotly/graph_objs/barpolar/unselected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.Marker", "._textfont.Textfont"] +) diff --git a/plotly/graph_objs/barpolar/unselected/_marker.py b/plotly/graph_objs/barpolar/unselected/_marker.py index 57a165ddd4..1f326927e7 100644 --- a/plotly/graph_objs/barpolar/unselected/_marker.py +++ b/plotly/graph_objs/barpolar/unselected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "barpolar.unselected" _path_str = "barpolar.unselected.marker" _valid_props = {"color", "opacity"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # opacity - # ------- @property def opacity(self): """ @@ -91,8 +53,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -125,14 +85,11 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -147,26 +104,10 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("opacity", arg, opacity) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/barpolar/unselected/_textfont.py b/plotly/graph_objs/barpolar/unselected/_textfont.py index ae9cbbb18d..aae918804a 100644 --- a/plotly/graph_objs/barpolar/unselected/_textfont.py +++ b/plotly/graph_objs/barpolar/unselected/_textfont.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "barpolar.unselected" _path_str = "barpolar.unselected.textfont" _valid_props = {"color"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -98,14 +60,11 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -120,22 +79,9 @@ def __init__(self, arg=None, color=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/box/__init__.py b/plotly/graph_objs/box/__init__.py index b27fd1bac3..230fc72eb2 100644 --- a/plotly/graph_objs/box/__init__.py +++ b/plotly/graph_objs/box/__init__.py @@ -1,32 +1,16 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._hoverlabel import Hoverlabel - from ._legendgrouptitle import Legendgrouptitle - from ._line import Line - from ._marker import Marker - from ._selected import Selected - from ._stream import Stream - from ._unselected import Unselected - from . import hoverlabel - from . import legendgrouptitle - from . import marker - from . import selected - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/box/_hoverlabel.py b/plotly/graph_objs/box/_hoverlabel.py index 085989401d..726a111b1a 100644 --- a/plotly/graph_objs/box/_hoverlabel.py +++ b/plotly/graph_objs/box/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "box" _path_str = "box.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/box/_legendgrouptitle.py b/plotly/graph_objs/box/_legendgrouptitle.py index 3b29c42997..870c4eba20 100644 --- a/plotly/graph_objs/box/_legendgrouptitle.py +++ b/plotly/graph_objs/box/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "box" _path_str = "box.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/box/_line.py b/plotly/graph_objs/box/_line.py index 577cef7233..c8de46243d 100644 --- a/plotly/graph_objs/box/_line.py +++ b/plotly/graph_objs/box/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "box" _path_str = "box.line" _valid_props = {"color", "width"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # width - # ----- @property def width(self): """ @@ -89,8 +51,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -118,14 +78,11 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -140,26 +97,10 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/box/_marker.py b/plotly/graph_objs/box/_marker.py index 1ff502a66d..43a32e63c4 100644 --- a/plotly/graph_objs/box/_marker.py +++ b/plotly/graph_objs/box/_marker.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "box" _path_str = "box.marker" _valid_props = { @@ -18,8 +19,6 @@ class Marker(_BaseTraceHierarchyType): "symbol", } - # angle - # ----- @property def angle(self): """ @@ -40,8 +39,6 @@ def angle(self): def angle(self, val): self["angle"] = val - # color - # ----- @property def color(self): """ @@ -55,42 +52,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -102,8 +64,6 @@ def color(self): def color(self, val): self["color"] = val - # line - # ---- @property def line(self): """ @@ -113,25 +73,6 @@ 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 @@ -142,8 +83,6 @@ def line(self): def line(self, val): self["line"] = val - # opacity - # ------- @property def opacity(self): """ @@ -162,8 +101,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # outliercolor - # ------------ @property def outliercolor(self): """ @@ -174,42 +111,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -221,8 +123,6 @@ def outliercolor(self): def outliercolor(self, val): self["outliercolor"] = val - # size - # ---- @property def size(self): """ @@ -241,8 +141,6 @@ def size(self): def size(self, val): self["size"] = val - # symbol - # ------ @property def symbol(self): """ @@ -353,8 +251,6 @@ def symbol(self): def symbol(self, val): self["symbol"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -431,14 +327,11 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -453,46 +346,15 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("angle", arg, angle) + self._set_property("color", arg, color) + self._set_property("line", arg, line) + self._set_property("opacity", arg, opacity) + self._set_property("outliercolor", arg, outliercolor) + self._set_property("size", arg, size) + self._set_property("symbol", arg, symbol) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/box/_selected.py b/plotly/graph_objs/box/_selected.py index 74b4d95616..f7da4088fa 100644 --- a/plotly/graph_objs/box/_selected.py +++ b/plotly/graph_objs/box/_selected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Selected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "box" _path_str = "box.selected" _valid_props = {"marker"} - # marker - # ------ @property def marker(self): """ @@ -21,15 +20,6 @@ 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 @@ -40,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -67,14 +55,11 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") - + super().__init__("selected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -89,22 +74,9 @@ def __init__(self, arg=None, marker=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/box/_stream.py b/plotly/graph_objs/box/_stream.py index 7f218ccefd..b6ddbeb38a 100644 --- a/plotly/graph_objs/box/_stream.py +++ b/plotly/graph_objs/box/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "box" _path_str = "box.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -93,14 +88,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -115,26 +107,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/box/_unselected.py b/plotly/graph_objs/box/_unselected.py index 05b5168d69..41aea7e6c7 100644 --- a/plotly/graph_objs/box/_unselected.py +++ b/plotly/graph_objs/box/_unselected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Unselected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "box" _path_str = "box.unselected" _valid_props = {"marker"} - # marker - # ------ @property def marker(self): """ @@ -21,18 +20,6 @@ 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 @@ -43,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -71,14 +56,11 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") - + super().__init__("unselected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -93,22 +75,9 @@ def __init__(self, arg=None, marker=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/box/hoverlabel/__init__.py b/plotly/graph_objs/box/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/box/hoverlabel/__init__.py +++ b/plotly/graph_objs/box/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/box/hoverlabel/_font.py b/plotly/graph_objs/box/hoverlabel/_font.py index 88a5fb615b..fb61202157 100644 --- a/plotly/graph_objs/box/hoverlabel/_font.py +++ b/plotly/graph_objs/box/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "box.hoverlabel" _path_str = "box.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/box/legendgrouptitle/__init__.py b/plotly/graph_objs/box/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/box/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/box/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/box/legendgrouptitle/_font.py b/plotly/graph_objs/box/legendgrouptitle/_font.py index 3518bc7dc5..659f326c39 100644 --- a/plotly/graph_objs/box/legendgrouptitle/_font.py +++ b/plotly/graph_objs/box/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "box.legendgrouptitle" _path_str = "box.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/box/marker/__init__.py b/plotly/graph_objs/box/marker/__init__.py index 8722c15a2b..579ff002ce 100644 --- a/plotly/graph_objs/box/marker/__init__.py +++ b/plotly/graph_objs/box/marker/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/box/marker/_line.py b/plotly/graph_objs/box/marker/_line.py index ad6e7d2636..d2c4abdaa0 100644 --- a/plotly/graph_objs/box/marker/_line.py +++ b/plotly/graph_objs/box/marker/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "box.marker" _path_str = "box.marker.line" _valid_props = {"color", "outliercolor", "outlierwidth", "width"} - # color - # ----- @property def color(self): """ @@ -25,42 +24,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -72,8 +36,6 @@ def color(self): def color(self, val): self["color"] = val - # outliercolor - # ------------ @property def outliercolor(self): """ @@ -85,42 +47,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -132,8 +59,6 @@ def outliercolor(self): def outliercolor(self, val): self["outliercolor"] = val - # outlierwidth - # ------------ @property def outlierwidth(self): """ @@ -153,8 +78,6 @@ def outlierwidth(self): def outlierwidth(self, val): self["outlierwidth"] = val - # width - # ----- @property def width(self): """ @@ -173,8 +96,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -233,14 +154,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -255,34 +173,12 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("outliercolor", arg, outliercolor) + self._set_property("outlierwidth", arg, outlierwidth) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/box/selected/__init__.py b/plotly/graph_objs/box/selected/__init__.py index dfd3406713..17b6d670bc 100644 --- a/plotly/graph_objs/box/selected/__init__.py +++ b/plotly/graph_objs/box/selected/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/box/selected/_marker.py b/plotly/graph_objs/box/selected/_marker.py index 271ae2b8b9..15ce087219 100644 --- a/plotly/graph_objs/box/selected/_marker.py +++ b/plotly/graph_objs/box/selected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "box.selected" _path_str = "box.selected.marker" _valid_props = {"color", "opacity", "size"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # opacity - # ------- @property def opacity(self): """ @@ -89,8 +51,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # size - # ---- @property def size(self): """ @@ -109,8 +69,6 @@ def size(self): def size(self, val): self["size"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -143,14 +101,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -165,30 +120,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("opacity", arg, opacity) + self._set_property("size", arg, size) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/box/unselected/__init__.py b/plotly/graph_objs/box/unselected/__init__.py index dfd3406713..17b6d670bc 100644 --- a/plotly/graph_objs/box/unselected/__init__.py +++ b/plotly/graph_objs/box/unselected/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/box/unselected/_marker.py b/plotly/graph_objs/box/unselected/_marker.py index dab1bcd318..2e01902026 100644 --- a/plotly/graph_objs/box/unselected/_marker.py +++ b/plotly/graph_objs/box/unselected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "box.unselected" _path_str = "box.unselected.marker" _valid_props = {"color", "opacity", "size"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # opacity - # ------- @property def opacity(self): """ @@ -91,8 +53,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # size - # ---- @property def size(self): """ @@ -112,8 +72,6 @@ def size(self): def size(self, val): self["size"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -152,14 +110,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -174,30 +129,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("opacity", arg, opacity) + self._set_property("size", arg, size) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/candlestick/__init__.py b/plotly/graph_objs/candlestick/__init__.py index eef010c140..4b308ef8c3 100644 --- a/plotly/graph_objs/candlestick/__init__.py +++ b/plotly/graph_objs/candlestick/__init__.py @@ -1,29 +1,15 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._decreasing import Decreasing - from ._hoverlabel import Hoverlabel - from ._increasing import Increasing - from ._legendgrouptitle import Legendgrouptitle - from ._line import Line - from ._stream import Stream - from . import decreasing - from . import hoverlabel - from . import increasing - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".decreasing", ".hoverlabel", ".increasing", ".legendgrouptitle"], + [ + "._decreasing.Decreasing", + "._hoverlabel.Hoverlabel", + "._increasing.Increasing", + "._legendgrouptitle.Legendgrouptitle", + "._line.Line", + "._stream.Stream", + ], +) diff --git a/plotly/graph_objs/candlestick/_decreasing.py b/plotly/graph_objs/candlestick/_decreasing.py index e7bfc44082..c3464b82a2 100644 --- a/plotly/graph_objs/candlestick/_decreasing.py +++ b/plotly/graph_objs/candlestick/_decreasing.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Decreasing(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "candlestick" _path_str = "candlestick.decreasing" _valid_props = {"fillcolor", "line"} - # fillcolor - # --------- @property def fillcolor(self): """ @@ -24,42 +23,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -71,8 +35,6 @@ def fillcolor(self): def fillcolor(self, val): self["fillcolor"] = val - # line - # ---- @property def line(self): """ @@ -82,14 +44,6 @@ 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 @@ -100,8 +54,6 @@ def line(self): def line(self, val): self["line"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -136,14 +88,11 @@ def __init__(self, arg=None, fillcolor=None, line=None, **kwargs): ------- Decreasing """ - super(Decreasing, self).__init__("decreasing") - + super().__init__("decreasing") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -158,26 +107,10 @@ def __init__(self, arg=None, fillcolor=None, line=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("fillcolor", arg, fillcolor) + self._set_property("line", arg, line) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/candlestick/_hoverlabel.py b/plotly/graph_objs/candlestick/_hoverlabel.py index 15b35f56c0..deb894c854 100644 --- a/plotly/graph_objs/candlestick/_hoverlabel.py +++ b/plotly/graph_objs/candlestick/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "candlestick" _path_str = "candlestick.hoverlabel" _valid_props = { @@ -21,8 +22,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "split", } - # align - # ----- @property def align(self): """ @@ -45,8 +44,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -65,8 +62,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -77,42 +72,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -125,8 +85,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -145,8 +103,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -157,42 +113,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -205,8 +126,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -226,8 +145,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -239,79 +156,6 @@ 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 @@ -322,8 +166,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -349,8 +191,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -370,8 +210,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # split - # ----- @property def split(self): """ @@ -391,8 +229,6 @@ def split(self): def split(self, val): self["split"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -497,14 +333,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -519,58 +352,18 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) + self._set_property("split", arg, split) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/candlestick/_increasing.py b/plotly/graph_objs/candlestick/_increasing.py index a93cdb43a4..c3bc170eef 100644 --- a/plotly/graph_objs/candlestick/_increasing.py +++ b/plotly/graph_objs/candlestick/_increasing.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Increasing(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "candlestick" _path_str = "candlestick.increasing" _valid_props = {"fillcolor", "line"} - # fillcolor - # --------- @property def fillcolor(self): """ @@ -24,42 +23,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -71,8 +35,6 @@ def fillcolor(self): def fillcolor(self, val): self["fillcolor"] = val - # line - # ---- @property def line(self): """ @@ -82,14 +44,6 @@ 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 @@ -100,8 +54,6 @@ def line(self): def line(self, val): self["line"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -136,14 +88,11 @@ def __init__(self, arg=None, fillcolor=None, line=None, **kwargs): ------- Increasing """ - super(Increasing, self).__init__("increasing") - + super().__init__("increasing") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -158,26 +107,10 @@ def __init__(self, arg=None, fillcolor=None, line=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("fillcolor", arg, fillcolor) + self._set_property("line", arg, line) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/candlestick/_legendgrouptitle.py b/plotly/graph_objs/candlestick/_legendgrouptitle.py index a22132a92a..f26b1a4774 100644 --- a/plotly/graph_objs/candlestick/_legendgrouptitle.py +++ b/plotly/graph_objs/candlestick/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "candlestick" _path_str = "candlestick.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/candlestick/_line.py b/plotly/graph_objs/candlestick/_line.py index f1c95b633d..557c4d2a6d 100644 --- a/plotly/graph_objs/candlestick/_line.py +++ b/plotly/graph_objs/candlestick/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "candlestick" _path_str = "candlestick.line" _valid_props = {"width"} - # width - # ----- @property def width(self): """ @@ -32,8 +31,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -64,14 +61,11 @@ def __init__(self, arg=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -86,22 +80,9 @@ def __init__(self, arg=None, width=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/candlestick/_stream.py b/plotly/graph_objs/candlestick/_stream.py index c399e008da..5fd66aebaa 100644 --- a/plotly/graph_objs/candlestick/_stream.py +++ b/plotly/graph_objs/candlestick/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "candlestick" _path_str = "candlestick.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -94,14 +89,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -116,26 +108,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/candlestick/decreasing/__init__.py b/plotly/graph_objs/candlestick/decreasing/__init__.py index 8722c15a2b..579ff002ce 100644 --- a/plotly/graph_objs/candlestick/decreasing/__init__.py +++ b/plotly/graph_objs/candlestick/decreasing/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/candlestick/decreasing/_line.py b/plotly/graph_objs/candlestick/decreasing/_line.py index e3ea54012a..7fad2eb467 100644 --- a/plotly/graph_objs/candlestick/decreasing/_line.py +++ b/plotly/graph_objs/candlestick/decreasing/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "candlestick.decreasing" _path_str = "candlestick.decreasing.line" _valid_props = {"color", "width"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # width - # ----- @property def width(self): """ @@ -89,8 +51,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -119,14 +79,11 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -141,26 +98,10 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/candlestick/hoverlabel/__init__.py b/plotly/graph_objs/candlestick/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/candlestick/hoverlabel/__init__.py +++ b/plotly/graph_objs/candlestick/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/candlestick/hoverlabel/_font.py b/plotly/graph_objs/candlestick/hoverlabel/_font.py index 2d14c6a155..33074f6dec 100644 --- a/plotly/graph_objs/candlestick/hoverlabel/_font.py +++ b/plotly/graph_objs/candlestick/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "candlestick.hoverlabel" _path_str = "candlestick.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/candlestick/increasing/__init__.py b/plotly/graph_objs/candlestick/increasing/__init__.py index 8722c15a2b..579ff002ce 100644 --- a/plotly/graph_objs/candlestick/increasing/__init__.py +++ b/plotly/graph_objs/candlestick/increasing/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/candlestick/increasing/_line.py b/plotly/graph_objs/candlestick/increasing/_line.py index 7c40879a53..b3b1f43034 100644 --- a/plotly/graph_objs/candlestick/increasing/_line.py +++ b/plotly/graph_objs/candlestick/increasing/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "candlestick.increasing" _path_str = "candlestick.increasing.line" _valid_props = {"color", "width"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # width - # ----- @property def width(self): """ @@ -89,8 +51,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -119,14 +79,11 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -141,26 +98,10 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/candlestick/legendgrouptitle/__init__.py b/plotly/graph_objs/candlestick/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/candlestick/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/candlestick/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/candlestick/legendgrouptitle/_font.py b/plotly/graph_objs/candlestick/legendgrouptitle/_font.py index 91a143fa79..69ba0e0bdb 100644 --- a/plotly/graph_objs/candlestick/legendgrouptitle/_font.py +++ b/plotly/graph_objs/candlestick/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "candlestick.legendgrouptitle" _path_str = "candlestick.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/carpet/__init__.py b/plotly/graph_objs/carpet/__init__.py index 32126bf0f8..0c15645762 100644 --- a/plotly/graph_objs/carpet/__init__.py +++ b/plotly/graph_objs/carpet/__init__.py @@ -1,26 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._aaxis import Aaxis - from ._baxis import Baxis - from ._font import Font - from ._legendgrouptitle import Legendgrouptitle - from ._stream import Stream - from . import aaxis - from . import baxis - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".aaxis", ".baxis", ".legendgrouptitle"], + [ + "._aaxis.Aaxis", + "._baxis.Baxis", + "._font.Font", + "._legendgrouptitle.Legendgrouptitle", + "._stream.Stream", + ], +) diff --git a/plotly/graph_objs/carpet/_aaxis.py b/plotly/graph_objs/carpet/_aaxis.py index d8a2d9d28a..63ac58e94d 100644 --- a/plotly/graph_objs/carpet/_aaxis.py +++ b/plotly/graph_objs/carpet/_aaxis.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Aaxis(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "carpet" _path_str = "carpet.aaxis" _valid_props = { @@ -69,8 +70,6 @@ class Aaxis(_BaseTraceHierarchyType): "type", } - # arraydtick - # ---------- @property def arraydtick(self): """ @@ -90,8 +89,6 @@ def arraydtick(self): def arraydtick(self, val): self["arraydtick"] = val - # arraytick0 - # ---------- @property def arraytick0(self): """ @@ -111,8 +108,6 @@ def arraytick0(self): def arraytick0(self, val): self["arraytick0"] = val - # autorange - # --------- @property def autorange(self): """ @@ -134,8 +129,6 @@ def autorange(self): def autorange(self, val): self["autorange"] = val - # autotypenumbers - # --------------- @property def autotypenumbers(self): """ @@ -158,8 +151,6 @@ def autotypenumbers(self): def autotypenumbers(self, val): self["autotypenumbers"] = val - # categoryarray - # ------------- @property def categoryarray(self): """ @@ -180,8 +171,6 @@ def categoryarray(self): def categoryarray(self, val): self["categoryarray"] = val - # categoryarraysrc - # ---------------- @property def categoryarraysrc(self): """ @@ -201,8 +190,6 @@ def categoryarraysrc(self): def categoryarraysrc(self, val): self["categoryarraysrc"] = val - # categoryorder - # ------------- @property def categoryorder(self): """ @@ -233,8 +220,6 @@ def categoryorder(self): def categoryorder(self, val): self["categoryorder"] = val - # cheatertype - # ----------- @property def cheatertype(self): """ @@ -252,8 +237,6 @@ def cheatertype(self): def cheatertype(self, val): self["cheatertype"] = val - # color - # ----- @property def color(self): """ @@ -267,42 +250,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -314,8 +262,6 @@ def color(self): def color(self, val): self["color"] = val - # dtick - # ----- @property def dtick(self): """ @@ -334,8 +280,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # endline - # ------- @property def endline(self): """ @@ -356,8 +300,6 @@ def endline(self): def endline(self, val): self["endline"] = val - # endlinecolor - # ------------ @property def endlinecolor(self): """ @@ -368,42 +310,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -415,8 +322,6 @@ def endlinecolor(self): def endlinecolor(self, val): self["endlinecolor"] = val - # endlinewidth - # ------------ @property def endlinewidth(self): """ @@ -435,8 +340,6 @@ def endlinewidth(self): def endlinewidth(self, val): self["endlinewidth"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -460,8 +363,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # fixedrange - # ---------- @property def fixedrange(self): """ @@ -481,8 +382,6 @@ def fixedrange(self): def fixedrange(self, val): self["fixedrange"] = val - # gridcolor - # --------- @property def gridcolor(self): """ @@ -493,42 +392,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -540,8 +404,6 @@ def gridcolor(self): def gridcolor(self, val): self["gridcolor"] = val - # griddash - # -------- @property def griddash(self): """ @@ -566,8 +428,6 @@ def griddash(self): def griddash(self, val): self["griddash"] = val - # gridwidth - # --------- @property def gridwidth(self): """ @@ -586,8 +446,6 @@ def gridwidth(self): def gridwidth(self, val): self["gridwidth"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -613,8 +471,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # labelpadding - # ------------ @property def labelpadding(self): """ @@ -633,8 +489,6 @@ def labelpadding(self): def labelpadding(self, val): self["labelpadding"] = val - # labelprefix - # ----------- @property def labelprefix(self): """ @@ -654,8 +508,6 @@ def labelprefix(self): def labelprefix(self, val): self["labelprefix"] = val - # labelsuffix - # ----------- @property def labelsuffix(self): """ @@ -675,8 +527,6 @@ def labelsuffix(self): def labelsuffix(self, val): self["labelsuffix"] = val - # linecolor - # --------- @property def linecolor(self): """ @@ -687,42 +537,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -734,8 +549,6 @@ def linecolor(self): def linecolor(self, val): self["linecolor"] = val - # linewidth - # --------- @property def linewidth(self): """ @@ -754,8 +567,6 @@ def linewidth(self): def linewidth(self, val): self["linewidth"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -774,8 +585,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # minorgridcolor - # -------------- @property def minorgridcolor(self): """ @@ -786,42 +595,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -833,8 +607,6 @@ def minorgridcolor(self): def minorgridcolor(self, val): self["minorgridcolor"] = val - # minorgridcount - # -------------- @property def minorgridcount(self): """ @@ -854,8 +626,6 @@ def minorgridcount(self): def minorgridcount(self, val): self["minorgridcount"] = val - # minorgriddash - # ------------- @property def minorgriddash(self): """ @@ -880,8 +650,6 @@ def minorgriddash(self): def minorgriddash(self, val): self["minorgriddash"] = val - # minorgridwidth - # -------------- @property def minorgridwidth(self): """ @@ -900,8 +668,6 @@ def minorgridwidth(self): def minorgridwidth(self, val): self["minorgridwidth"] = val - # nticks - # ------ @property def nticks(self): """ @@ -924,8 +690,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # range - # ----- @property def range(self): """ @@ -954,13 +718,11 @@ def range(self): def range(self, val): self["range"] = val - # rangemode - # --------- @property def rangemode(self): """ If "normal", the range is computed in relation to the extrema - of the input data. If *tozero*`, the range extends to 0, + 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. @@ -978,8 +740,6 @@ def rangemode(self): def rangemode(self, val): self["rangemode"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -998,8 +758,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -1022,8 +780,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showgrid - # -------- @property def showgrid(self): """ @@ -1043,8 +799,6 @@ def showgrid(self): def showgrid(self, val): self["showgrid"] = val - # showline - # -------- @property def showline(self): """ @@ -1063,8 +817,6 @@ def showline(self): def showline(self, val): self["showline"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -1085,8 +837,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -1109,8 +859,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -1130,8 +878,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # smoothing - # --------- @property def smoothing(self): """ @@ -1148,8 +894,6 @@ def smoothing(self): def smoothing(self, val): self["smoothing"] = val - # startline - # --------- @property def startline(self): """ @@ -1170,8 +914,6 @@ def startline(self): def startline(self, val): self["startline"] = val - # startlinecolor - # -------------- @property def startlinecolor(self): """ @@ -1182,42 +924,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -1229,8 +936,6 @@ def startlinecolor(self): def startlinecolor(self, val): self["startlinecolor"] = val - # startlinewidth - # -------------- @property def startlinewidth(self): """ @@ -1249,8 +954,6 @@ def startlinewidth(self): def startlinewidth(self, val): self["startlinewidth"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -1269,8 +972,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -1293,8 +994,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -1306,52 +1005,6 @@ 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 @@ -1362,8 +1015,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -1392,8 +1043,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -1403,42 +1052,6 @@ 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] @@ -1449,8 +1062,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -1465,8 +1076,6 @@ 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 @@ -1477,8 +1086,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1496,8 +1103,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1517,8 +1122,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1538,8 +1141,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1560,8 +1161,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1580,8 +1179,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1601,8 +1198,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1621,8 +1216,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # title - # ----- @property def title(self): """ @@ -1632,16 +1225,6 @@ 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 @@ -1652,8 +1235,6 @@ def title(self): def title(self, val): self["title"] = val - # type - # ---- @property def type(self): """ @@ -1675,8 +1256,6 @@ def type(self): def type(self, val): self["type"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1803,7 +1382,7 @@ def _prop_descriptions(self): appears. rangemode If "normal", the range is computed in relation to the - extrema of the input data. If *tozero*`, the range + 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. @@ -2092,7 +1671,7 @@ def __init__( appears. rangemode If "normal", the range is computed in relation to the - extrema of the input data. If *tozero*`, the range + 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. @@ -2190,14 +1769,11 @@ def __init__( ------- Aaxis """ - super(Aaxis, self).__init__("aaxis") - + super().__init__("aaxis") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2212,250 +1788,66 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("arraydtick", arg, arraydtick) + self._set_property("arraytick0", arg, arraytick0) + self._set_property("autorange", arg, autorange) + self._set_property("autotypenumbers", arg, autotypenumbers) + self._set_property("categoryarray", arg, categoryarray) + self._set_property("categoryarraysrc", arg, categoryarraysrc) + self._set_property("categoryorder", arg, categoryorder) + self._set_property("cheatertype", arg, cheatertype) + self._set_property("color", arg, color) + self._set_property("dtick", arg, dtick) + self._set_property("endline", arg, endline) + self._set_property("endlinecolor", arg, endlinecolor) + self._set_property("endlinewidth", arg, endlinewidth) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("fixedrange", arg, fixedrange) + self._set_property("gridcolor", arg, gridcolor) + self._set_property("griddash", arg, griddash) + self._set_property("gridwidth", arg, gridwidth) + self._set_property("labelalias", arg, labelalias) + self._set_property("labelpadding", arg, labelpadding) + self._set_property("labelprefix", arg, labelprefix) + self._set_property("labelsuffix", arg, labelsuffix) + self._set_property("linecolor", arg, linecolor) + self._set_property("linewidth", arg, linewidth) + self._set_property("minexponent", arg, minexponent) + self._set_property("minorgridcolor", arg, minorgridcolor) + self._set_property("minorgridcount", arg, minorgridcount) + self._set_property("minorgriddash", arg, minorgriddash) + self._set_property("minorgridwidth", arg, minorgridwidth) + self._set_property("nticks", arg, nticks) + self._set_property("range", arg, range) + self._set_property("rangemode", arg, rangemode) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showgrid", arg, showgrid) + self._set_property("showline", arg, showline) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("smoothing", arg, smoothing) + self._set_property("startline", arg, startline) + self._set_property("startlinecolor", arg, startlinecolor) + self._set_property("startlinewidth", arg, startlinewidth) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("title", arg, title) + self._set_property("type", arg, type) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/carpet/_baxis.py b/plotly/graph_objs/carpet/_baxis.py index 342ccfb781..70dafa7233 100644 --- a/plotly/graph_objs/carpet/_baxis.py +++ b/plotly/graph_objs/carpet/_baxis.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Baxis(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "carpet" _path_str = "carpet.baxis" _valid_props = { @@ -69,8 +70,6 @@ class Baxis(_BaseTraceHierarchyType): "type", } - # arraydtick - # ---------- @property def arraydtick(self): """ @@ -90,8 +89,6 @@ def arraydtick(self): def arraydtick(self, val): self["arraydtick"] = val - # arraytick0 - # ---------- @property def arraytick0(self): """ @@ -111,8 +108,6 @@ def arraytick0(self): def arraytick0(self, val): self["arraytick0"] = val - # autorange - # --------- @property def autorange(self): """ @@ -134,8 +129,6 @@ def autorange(self): def autorange(self, val): self["autorange"] = val - # autotypenumbers - # --------------- @property def autotypenumbers(self): """ @@ -158,8 +151,6 @@ def autotypenumbers(self): def autotypenumbers(self, val): self["autotypenumbers"] = val - # categoryarray - # ------------- @property def categoryarray(self): """ @@ -180,8 +171,6 @@ def categoryarray(self): def categoryarray(self, val): self["categoryarray"] = val - # categoryarraysrc - # ---------------- @property def categoryarraysrc(self): """ @@ -201,8 +190,6 @@ def categoryarraysrc(self): def categoryarraysrc(self, val): self["categoryarraysrc"] = val - # categoryorder - # ------------- @property def categoryorder(self): """ @@ -233,8 +220,6 @@ def categoryorder(self): def categoryorder(self, val): self["categoryorder"] = val - # cheatertype - # ----------- @property def cheatertype(self): """ @@ -252,8 +237,6 @@ def cheatertype(self): def cheatertype(self, val): self["cheatertype"] = val - # color - # ----- @property def color(self): """ @@ -267,42 +250,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -314,8 +262,6 @@ def color(self): def color(self, val): self["color"] = val - # dtick - # ----- @property def dtick(self): """ @@ -334,8 +280,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # endline - # ------- @property def endline(self): """ @@ -356,8 +300,6 @@ def endline(self): def endline(self, val): self["endline"] = val - # endlinecolor - # ------------ @property def endlinecolor(self): """ @@ -368,42 +310,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -415,8 +322,6 @@ def endlinecolor(self): def endlinecolor(self, val): self["endlinecolor"] = val - # endlinewidth - # ------------ @property def endlinewidth(self): """ @@ -435,8 +340,6 @@ def endlinewidth(self): def endlinewidth(self, val): self["endlinewidth"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -460,8 +363,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # fixedrange - # ---------- @property def fixedrange(self): """ @@ -481,8 +382,6 @@ def fixedrange(self): def fixedrange(self, val): self["fixedrange"] = val - # gridcolor - # --------- @property def gridcolor(self): """ @@ -493,42 +392,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -540,8 +404,6 @@ def gridcolor(self): def gridcolor(self, val): self["gridcolor"] = val - # griddash - # -------- @property def griddash(self): """ @@ -566,8 +428,6 @@ def griddash(self): def griddash(self, val): self["griddash"] = val - # gridwidth - # --------- @property def gridwidth(self): """ @@ -586,8 +446,6 @@ def gridwidth(self): def gridwidth(self, val): self["gridwidth"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -613,8 +471,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # labelpadding - # ------------ @property def labelpadding(self): """ @@ -633,8 +489,6 @@ def labelpadding(self): def labelpadding(self, val): self["labelpadding"] = val - # labelprefix - # ----------- @property def labelprefix(self): """ @@ -654,8 +508,6 @@ def labelprefix(self): def labelprefix(self, val): self["labelprefix"] = val - # labelsuffix - # ----------- @property def labelsuffix(self): """ @@ -675,8 +527,6 @@ def labelsuffix(self): def labelsuffix(self, val): self["labelsuffix"] = val - # linecolor - # --------- @property def linecolor(self): """ @@ -687,42 +537,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -734,8 +549,6 @@ def linecolor(self): def linecolor(self, val): self["linecolor"] = val - # linewidth - # --------- @property def linewidth(self): """ @@ -754,8 +567,6 @@ def linewidth(self): def linewidth(self, val): self["linewidth"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -774,8 +585,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # minorgridcolor - # -------------- @property def minorgridcolor(self): """ @@ -786,42 +595,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -833,8 +607,6 @@ def minorgridcolor(self): def minorgridcolor(self, val): self["minorgridcolor"] = val - # minorgridcount - # -------------- @property def minorgridcount(self): """ @@ -854,8 +626,6 @@ def minorgridcount(self): def minorgridcount(self, val): self["minorgridcount"] = val - # minorgriddash - # ------------- @property def minorgriddash(self): """ @@ -880,8 +650,6 @@ def minorgriddash(self): def minorgriddash(self, val): self["minorgriddash"] = val - # minorgridwidth - # -------------- @property def minorgridwidth(self): """ @@ -900,8 +668,6 @@ def minorgridwidth(self): def minorgridwidth(self, val): self["minorgridwidth"] = val - # nticks - # ------ @property def nticks(self): """ @@ -924,8 +690,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # range - # ----- @property def range(self): """ @@ -954,13 +718,11 @@ def range(self): def range(self, val): self["range"] = val - # rangemode - # --------- @property def rangemode(self): """ If "normal", the range is computed in relation to the extrema - of the input data. If *tozero*`, the range extends to 0, + 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. @@ -978,8 +740,6 @@ def rangemode(self): def rangemode(self, val): self["rangemode"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -998,8 +758,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -1022,8 +780,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showgrid - # -------- @property def showgrid(self): """ @@ -1043,8 +799,6 @@ def showgrid(self): def showgrid(self, val): self["showgrid"] = val - # showline - # -------- @property def showline(self): """ @@ -1063,8 +817,6 @@ def showline(self): def showline(self, val): self["showline"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -1085,8 +837,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -1109,8 +859,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -1130,8 +878,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # smoothing - # --------- @property def smoothing(self): """ @@ -1148,8 +894,6 @@ def smoothing(self): def smoothing(self, val): self["smoothing"] = val - # startline - # --------- @property def startline(self): """ @@ -1170,8 +914,6 @@ def startline(self): def startline(self, val): self["startline"] = val - # startlinecolor - # -------------- @property def startlinecolor(self): """ @@ -1182,42 +924,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -1229,8 +936,6 @@ def startlinecolor(self): def startlinecolor(self, val): self["startlinecolor"] = val - # startlinewidth - # -------------- @property def startlinewidth(self): """ @@ -1249,8 +954,6 @@ def startlinewidth(self): def startlinewidth(self, val): self["startlinewidth"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -1269,8 +972,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -1293,8 +994,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -1306,52 +1005,6 @@ 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 @@ -1362,8 +1015,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -1392,8 +1043,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -1403,42 +1052,6 @@ 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] @@ -1449,8 +1062,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -1465,8 +1076,6 @@ 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 @@ -1477,8 +1086,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1496,8 +1103,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1517,8 +1122,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1538,8 +1141,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1560,8 +1161,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1580,8 +1179,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1601,8 +1198,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1621,8 +1216,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # title - # ----- @property def title(self): """ @@ -1632,16 +1225,6 @@ 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 @@ -1652,8 +1235,6 @@ def title(self): def title(self, val): self["title"] = val - # type - # ---- @property def type(self): """ @@ -1675,8 +1256,6 @@ def type(self): def type(self, val): self["type"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1803,7 +1382,7 @@ def _prop_descriptions(self): appears. rangemode If "normal", the range is computed in relation to the - extrema of the input data. If *tozero*`, the range + 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. @@ -2092,7 +1671,7 @@ def __init__( appears. rangemode If "normal", the range is computed in relation to the - extrema of the input data. If *tozero*`, the range + 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. @@ -2190,14 +1769,11 @@ def __init__( ------- Baxis """ - super(Baxis, self).__init__("baxis") - + super().__init__("baxis") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2212,250 +1788,66 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("arraydtick", arg, arraydtick) + self._set_property("arraytick0", arg, arraytick0) + self._set_property("autorange", arg, autorange) + self._set_property("autotypenumbers", arg, autotypenumbers) + self._set_property("categoryarray", arg, categoryarray) + self._set_property("categoryarraysrc", arg, categoryarraysrc) + self._set_property("categoryorder", arg, categoryorder) + self._set_property("cheatertype", arg, cheatertype) + self._set_property("color", arg, color) + self._set_property("dtick", arg, dtick) + self._set_property("endline", arg, endline) + self._set_property("endlinecolor", arg, endlinecolor) + self._set_property("endlinewidth", arg, endlinewidth) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("fixedrange", arg, fixedrange) + self._set_property("gridcolor", arg, gridcolor) + self._set_property("griddash", arg, griddash) + self._set_property("gridwidth", arg, gridwidth) + self._set_property("labelalias", arg, labelalias) + self._set_property("labelpadding", arg, labelpadding) + self._set_property("labelprefix", arg, labelprefix) + self._set_property("labelsuffix", arg, labelsuffix) + self._set_property("linecolor", arg, linecolor) + self._set_property("linewidth", arg, linewidth) + self._set_property("minexponent", arg, minexponent) + self._set_property("minorgridcolor", arg, minorgridcolor) + self._set_property("minorgridcount", arg, minorgridcount) + self._set_property("minorgriddash", arg, minorgriddash) + self._set_property("minorgridwidth", arg, minorgridwidth) + self._set_property("nticks", arg, nticks) + self._set_property("range", arg, range) + self._set_property("rangemode", arg, rangemode) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showgrid", arg, showgrid) + self._set_property("showline", arg, showline) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("smoothing", arg, smoothing) + self._set_property("startline", arg, startline) + self._set_property("startlinecolor", arg, startlinecolor) + self._set_property("startlinewidth", arg, startlinewidth) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("title", arg, title) + self._set_property("type", arg, type) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/carpet/_font.py b/plotly/graph_objs/carpet/_font.py index 0c9a268fe4..1b75d67585 100644 --- a/plotly/graph_objs/carpet/_font.py +++ b/plotly/graph_objs/carpet/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "carpet" _path_str = "carpet.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -337,18 +269,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -376,14 +301,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -398,54 +320,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/carpet/_legendgrouptitle.py b/plotly/graph_objs/carpet/_legendgrouptitle.py index 21c3ed89ce..885c7fbe00 100644 --- a/plotly/graph_objs/carpet/_legendgrouptitle.py +++ b/plotly/graph_objs/carpet/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "carpet" _path_str = "carpet.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/carpet/_stream.py b/plotly/graph_objs/carpet/_stream.py index c5480dabab..65d80e96ec 100644 --- a/plotly/graph_objs/carpet/_stream.py +++ b/plotly/graph_objs/carpet/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "carpet" _path_str = "carpet.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -93,14 +88,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -115,26 +107,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/carpet/aaxis/__init__.py b/plotly/graph_objs/carpet/aaxis/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/carpet/aaxis/__init__.py +++ b/plotly/graph_objs/carpet/aaxis/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/carpet/aaxis/_tickfont.py b/plotly/graph_objs/carpet/aaxis/_tickfont.py index 7f475688ca..447a500cd9 100644 --- a/plotly/graph_objs/carpet/aaxis/_tickfont.py +++ b/plotly/graph_objs/carpet/aaxis/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "carpet.aaxis" _path_str = "carpet.aaxis.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/carpet/aaxis/_tickformatstop.py b/plotly/graph_objs/carpet/aaxis/_tickformatstop.py index 00b65384ce..c0a7bb3883 100644 --- a/plotly/graph_objs/carpet/aaxis/_tickformatstop.py +++ b/plotly/graph_objs/carpet/aaxis/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "carpet.aaxis" _path_str = "carpet.aaxis.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/carpet/aaxis/_title.py b/plotly/graph_objs/carpet/aaxis/_title.py index c679b74e5e..093a7186b9 100644 --- a/plotly/graph_objs/carpet/aaxis/_title.py +++ b/plotly/graph_objs/carpet/aaxis/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "carpet.aaxis" _path_str = "carpet.aaxis.title" _valid_props = {"font", "offset", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # offset - # ------ @property def offset(self): """ @@ -100,8 +51,6 @@ def offset(self): def offset(self, val): self["offset"] = val - # text - # ---- @property def text(self): """ @@ -121,8 +70,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -157,14 +104,11 @@ def __init__(self, arg=None, font=None, offset=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -179,30 +123,11 @@ def __init__(self, arg=None, font=None, offset=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("offset", arg, offset) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/carpet/aaxis/title/__init__.py b/plotly/graph_objs/carpet/aaxis/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/carpet/aaxis/title/__init__.py +++ b/plotly/graph_objs/carpet/aaxis/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/carpet/aaxis/title/_font.py b/plotly/graph_objs/carpet/aaxis/title/_font.py index 68c94793e8..dfa4a4ee49 100644 --- a/plotly/graph_objs/carpet/aaxis/title/_font.py +++ b/plotly/graph_objs/carpet/aaxis/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "carpet.aaxis.title" _path_str = "carpet.aaxis.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/carpet/baxis/__init__.py b/plotly/graph_objs/carpet/baxis/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/carpet/baxis/__init__.py +++ b/plotly/graph_objs/carpet/baxis/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/carpet/baxis/_tickfont.py b/plotly/graph_objs/carpet/baxis/_tickfont.py index b213684bd4..d6fd63595b 100644 --- a/plotly/graph_objs/carpet/baxis/_tickfont.py +++ b/plotly/graph_objs/carpet/baxis/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "carpet.baxis" _path_str = "carpet.baxis.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/carpet/baxis/_tickformatstop.py b/plotly/graph_objs/carpet/baxis/_tickformatstop.py index 8fdb187c5a..fdd8cdbcd3 100644 --- a/plotly/graph_objs/carpet/baxis/_tickformatstop.py +++ b/plotly/graph_objs/carpet/baxis/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "carpet.baxis" _path_str = "carpet.baxis.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/carpet/baxis/_title.py b/plotly/graph_objs/carpet/baxis/_title.py index d2faac44c8..56b55d0e44 100644 --- a/plotly/graph_objs/carpet/baxis/_title.py +++ b/plotly/graph_objs/carpet/baxis/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "carpet.baxis" _path_str = "carpet.baxis.title" _valid_props = {"font", "offset", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # offset - # ------ @property def offset(self): """ @@ -100,8 +51,6 @@ def offset(self): def offset(self, val): self["offset"] = val - # text - # ---- @property def text(self): """ @@ -121,8 +70,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -157,14 +104,11 @@ def __init__(self, arg=None, font=None, offset=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -179,30 +123,11 @@ def __init__(self, arg=None, font=None, offset=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("offset", arg, offset) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/carpet/baxis/title/__init__.py b/plotly/graph_objs/carpet/baxis/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/carpet/baxis/title/__init__.py +++ b/plotly/graph_objs/carpet/baxis/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/carpet/baxis/title/_font.py b/plotly/graph_objs/carpet/baxis/title/_font.py index 5977cc199c..4a4d483e18 100644 --- a/plotly/graph_objs/carpet/baxis/title/_font.py +++ b/plotly/graph_objs/carpet/baxis/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "carpet.baxis.title" _path_str = "carpet.baxis.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/carpet/legendgrouptitle/__init__.py b/plotly/graph_objs/carpet/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/carpet/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/carpet/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/carpet/legendgrouptitle/_font.py b/plotly/graph_objs/carpet/legendgrouptitle/_font.py index cf69105682..4e4e7d76cc 100644 --- a/plotly/graph_objs/carpet/legendgrouptitle/_font.py +++ b/plotly/graph_objs/carpet/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "carpet.legendgrouptitle" _path_str = "carpet.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choropleth/__init__.py b/plotly/graph_objs/choropleth/__init__.py index bb31cb6217..7467efa587 100644 --- a/plotly/graph_objs/choropleth/__init__.py +++ b/plotly/graph_objs/choropleth/__init__.py @@ -1,40 +1,23 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._colorbar import ColorBar - from ._hoverlabel import Hoverlabel - from ._legendgrouptitle import Legendgrouptitle - from ._marker import Marker - from ._selected import Selected - from ._stream import Stream - from ._unselected import Unselected - from . import colorbar - from . import hoverlabel - from . import legendgrouptitle - from . import marker - from . import selected - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/choropleth/_colorbar.py b/plotly/graph_objs/choropleth/_colorbar.py index adf4d0c779..39174f50c5 100644 --- a/plotly/graph_objs/choropleth/_colorbar.py +++ b/plotly/graph_objs/choropleth/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choropleth" _path_str = "choropleth.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -912,8 +637,6 @@ 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 @@ -924,8 +647,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -948,8 +669,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -973,8 +692,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -999,8 +716,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1019,8 +734,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1046,8 +759,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1067,8 +778,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1090,8 +799,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1111,8 +818,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1133,8 +838,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1153,8 +856,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1174,8 +875,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1194,8 +893,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1214,8 +911,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1225,18 +920,6 @@ 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 @@ -1247,8 +930,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1273,8 +954,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1297,8 +976,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1317,8 +994,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1340,8 +1015,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1366,8 +1039,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1390,8 +1061,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1410,8 +1079,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1433,8 +1100,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1984,14 +1649,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2006,214 +1668,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choropleth/_hoverlabel.py b/plotly/graph_objs/choropleth/_hoverlabel.py index 0bdd610b66..d05020212d 100644 --- a/plotly/graph_objs/choropleth/_hoverlabel.py +++ b/plotly/graph_objs/choropleth/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choropleth" _path_str = "choropleth.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choropleth/_legendgrouptitle.py b/plotly/graph_objs/choropleth/_legendgrouptitle.py index 74bf725c37..27904cdbf8 100644 --- a/plotly/graph_objs/choropleth/_legendgrouptitle.py +++ b/plotly/graph_objs/choropleth/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choropleth" _path_str = "choropleth.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choropleth/_marker.py b/plotly/graph_objs/choropleth/_marker.py index 190fbf219b..492ab9a6df 100644 --- a/plotly/graph_objs/choropleth/_marker.py +++ b/plotly/graph_objs/choropleth/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choropleth" _path_str = "choropleth.marker" _valid_props = {"line", "opacity", "opacitysrc"} - # line - # ---- @property def line(self): """ @@ -21,25 +20,6 @@ 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 @@ -50,8 +30,6 @@ def line(self): def line(self, val): self["line"] = val - # opacity - # ------- @property def opacity(self): """ @@ -71,8 +49,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # opacitysrc - # ---------- @property def opacitysrc(self): """ @@ -91,8 +67,6 @@ def opacitysrc(self): def opacitysrc(self, val): self["opacitysrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -129,14 +103,11 @@ def __init__(self, arg=None, line=None, opacity=None, opacitysrc=None, **kwargs) ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -151,30 +122,11 @@ def __init__(self, arg=None, line=None, opacity=None, opacitysrc=None, **kwargs) 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("line", arg, line) + self._set_property("opacity", arg, opacity) + self._set_property("opacitysrc", arg, opacitysrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choropleth/_selected.py b/plotly/graph_objs/choropleth/_selected.py index b0918c3ec2..8a34bcaa45 100644 --- a/plotly/graph_objs/choropleth/_selected.py +++ b/plotly/graph_objs/choropleth/_selected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Selected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choropleth" _path_str = "choropleth.selected" _valid_props = {"marker"} - # marker - # ------ @property def marker(self): """ @@ -21,11 +20,6 @@ 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 @@ -36,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -64,14 +56,11 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") - + super().__init__("selected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -86,22 +75,9 @@ def __init__(self, arg=None, marker=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choropleth/_stream.py b/plotly/graph_objs/choropleth/_stream.py index 8a641e2d19..c131261cf2 100644 --- a/plotly/graph_objs/choropleth/_stream.py +++ b/plotly/graph_objs/choropleth/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choropleth" _path_str = "choropleth.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -94,14 +89,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -116,26 +108,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choropleth/_unselected.py b/plotly/graph_objs/choropleth/_unselected.py index f43fcdfbd9..350c86a2d3 100644 --- a/plotly/graph_objs/choropleth/_unselected.py +++ b/plotly/graph_objs/choropleth/_unselected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Unselected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choropleth" _path_str = "choropleth.unselected" _valid_props = {"marker"} - # marker - # ------ @property def marker(self): """ @@ -21,12 +20,6 @@ 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 @@ -37,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -65,14 +56,11 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") - + super().__init__("unselected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -87,22 +75,9 @@ def __init__(self, arg=None, marker=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choropleth/colorbar/__init__.py b/plotly/graph_objs/choropleth/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/choropleth/colorbar/__init__.py +++ b/plotly/graph_objs/choropleth/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/choropleth/colorbar/_tickfont.py b/plotly/graph_objs/choropleth/colorbar/_tickfont.py index ec56e3bf55..9619ce163f 100644 --- a/plotly/graph_objs/choropleth/colorbar/_tickfont.py +++ b/plotly/graph_objs/choropleth/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choropleth.colorbar" _path_str = "choropleth.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choropleth/colorbar/_tickformatstop.py b/plotly/graph_objs/choropleth/colorbar/_tickformatstop.py index 6ebb3aafc7..b6fed280dc 100644 --- a/plotly/graph_objs/choropleth/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/choropleth/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choropleth.colorbar" _path_str = "choropleth.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choropleth/colorbar/_title.py b/plotly/graph_objs/choropleth/colorbar/_title.py index 51207da44d..fbfdfcddca 100644 --- a/plotly/graph_objs/choropleth/colorbar/_title.py +++ b/plotly/graph_objs/choropleth/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choropleth.colorbar" _path_str = "choropleth.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choropleth/colorbar/title/__init__.py b/plotly/graph_objs/choropleth/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/choropleth/colorbar/title/__init__.py +++ b/plotly/graph_objs/choropleth/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/choropleth/colorbar/title/_font.py b/plotly/graph_objs/choropleth/colorbar/title/_font.py index c906610bcc..6c8bab6e6a 100644 --- a/plotly/graph_objs/choropleth/colorbar/title/_font.py +++ b/plotly/graph_objs/choropleth/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choropleth.colorbar.title" _path_str = "choropleth.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choropleth/hoverlabel/__init__.py b/plotly/graph_objs/choropleth/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/choropleth/hoverlabel/__init__.py +++ b/plotly/graph_objs/choropleth/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/choropleth/hoverlabel/_font.py b/plotly/graph_objs/choropleth/hoverlabel/_font.py index eb251f0f84..3febc15ba8 100644 --- a/plotly/graph_objs/choropleth/hoverlabel/_font.py +++ b/plotly/graph_objs/choropleth/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choropleth.hoverlabel" _path_str = "choropleth.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choropleth/legendgrouptitle/__init__.py b/plotly/graph_objs/choropleth/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/choropleth/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/choropleth/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/choropleth/legendgrouptitle/_font.py b/plotly/graph_objs/choropleth/legendgrouptitle/_font.py index bff087169d..fb96100668 100644 --- a/plotly/graph_objs/choropleth/legendgrouptitle/_font.py +++ b/plotly/graph_objs/choropleth/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choropleth.legendgrouptitle" _path_str = "choropleth.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choropleth/marker/__init__.py b/plotly/graph_objs/choropleth/marker/__init__.py index 8722c15a2b..579ff002ce 100644 --- a/plotly/graph_objs/choropleth/marker/__init__.py +++ b/plotly/graph_objs/choropleth/marker/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/choropleth/marker/_line.py b/plotly/graph_objs/choropleth/marker/_line.py index 8bc91d727d..439b7a705f 100644 --- a/plotly/graph_objs/choropleth/marker/_line.py +++ b/plotly/graph_objs/choropleth/marker/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choropleth.marker" _path_str = "choropleth.marker.line" _valid_props = {"color", "colorsrc", "width", "widthsrc"} - # color - # ----- @property def color(self): """ @@ -25,42 +24,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -73,8 +37,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -93,8 +55,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # width - # ----- @property def width(self): """ @@ -114,8 +74,6 @@ def width(self): def width(self, val): self["width"] = val - # widthsrc - # -------- @property def widthsrc(self): """ @@ -134,8 +92,6 @@ def widthsrc(self): def widthsrc(self, val): self["widthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -188,14 +144,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -210,34 +163,12 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("width", arg, width) + self._set_property("widthsrc", arg, widthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choropleth/selected/__init__.py b/plotly/graph_objs/choropleth/selected/__init__.py index dfd3406713..17b6d670bc 100644 --- a/plotly/graph_objs/choropleth/selected/__init__.py +++ b/plotly/graph_objs/choropleth/selected/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/choropleth/selected/_marker.py b/plotly/graph_objs/choropleth/selected/_marker.py index a7c7881506..652c8098a9 100644 --- a/plotly/graph_objs/choropleth/selected/_marker.py +++ b/plotly/graph_objs/choropleth/selected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choropleth.selected" _path_str = "choropleth.selected.marker" _valid_props = {"opacity"} - # opacity - # ------- @property def opacity(self): """ @@ -30,8 +29,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -56,14 +53,11 @@ def __init__(self, arg=None, opacity=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -78,22 +72,9 @@ def __init__(self, arg=None, opacity=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("opacity", arg, opacity) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choropleth/unselected/__init__.py b/plotly/graph_objs/choropleth/unselected/__init__.py index dfd3406713..17b6d670bc 100644 --- a/plotly/graph_objs/choropleth/unselected/__init__.py +++ b/plotly/graph_objs/choropleth/unselected/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/choropleth/unselected/_marker.py b/plotly/graph_objs/choropleth/unselected/_marker.py index 5b1f9b9c4c..65713847b5 100644 --- a/plotly/graph_objs/choropleth/unselected/_marker.py +++ b/plotly/graph_objs/choropleth/unselected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choropleth.unselected" _path_str = "choropleth.unselected.marker" _valid_props = {"opacity"} - # opacity - # ------- @property def opacity(self): """ @@ -31,8 +30,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -59,14 +56,11 @@ def __init__(self, arg=None, opacity=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -81,22 +75,9 @@ def __init__(self, arg=None, opacity=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("opacity", arg, opacity) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choroplethmap/__init__.py b/plotly/graph_objs/choroplethmap/__init__.py index bb31cb6217..7467efa587 100644 --- a/plotly/graph_objs/choroplethmap/__init__.py +++ b/plotly/graph_objs/choroplethmap/__init__.py @@ -1,40 +1,23 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._colorbar import ColorBar - from ._hoverlabel import Hoverlabel - from ._legendgrouptitle import Legendgrouptitle - from ._marker import Marker - from ._selected import Selected - from ._stream import Stream - from ._unselected import Unselected - from . import colorbar - from . import hoverlabel - from . import legendgrouptitle - from . import marker - from . import selected - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/choroplethmap/_colorbar.py b/plotly/graph_objs/choroplethmap/_colorbar.py index b01c415ff5..e59bbad187 100644 --- a/plotly/graph_objs/choroplethmap/_colorbar.py +++ b/plotly/graph_objs/choroplethmap/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choroplethmap" _path_str = "choroplethmap.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -913,8 +638,6 @@ 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 @@ -925,8 +648,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -949,8 +670,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -974,8 +693,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1000,8 +717,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1020,8 +735,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1047,8 +760,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1068,8 +779,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1091,8 +800,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1112,8 +819,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1134,8 +839,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1154,8 +857,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1175,8 +876,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1195,8 +894,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1215,8 +912,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1226,18 +921,6 @@ 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 @@ -1248,8 +931,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1274,8 +955,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1298,8 +977,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1318,8 +995,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1341,8 +1016,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1367,8 +1040,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1391,8 +1062,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1411,8 +1080,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1434,8 +1101,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1985,14 +1650,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2007,214 +1669,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choroplethmap/_hoverlabel.py b/plotly/graph_objs/choroplethmap/_hoverlabel.py index 6997ee43b3..9dbdabf340 100644 --- a/plotly/graph_objs/choroplethmap/_hoverlabel.py +++ b/plotly/graph_objs/choroplethmap/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choroplethmap" _path_str = "choroplethmap.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choroplethmap/_legendgrouptitle.py b/plotly/graph_objs/choroplethmap/_legendgrouptitle.py index 944e0f424c..228e2493b5 100644 --- a/plotly/graph_objs/choroplethmap/_legendgrouptitle.py +++ b/plotly/graph_objs/choroplethmap/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choroplethmap" _path_str = "choroplethmap.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choroplethmap/_marker.py b/plotly/graph_objs/choroplethmap/_marker.py index 29e701b4b5..567341c8ba 100644 --- a/plotly/graph_objs/choroplethmap/_marker.py +++ b/plotly/graph_objs/choroplethmap/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choroplethmap" _path_str = "choroplethmap.marker" _valid_props = {"line", "opacity", "opacitysrc"} - # line - # ---- @property def line(self): """ @@ -21,25 +20,6 @@ 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 @@ -50,8 +30,6 @@ def line(self): def line(self, val): self["line"] = val - # opacity - # ------- @property def opacity(self): """ @@ -71,8 +49,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # opacitysrc - # ---------- @property def opacitysrc(self): """ @@ -91,8 +67,6 @@ def opacitysrc(self): def opacitysrc(self, val): self["opacitysrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -129,14 +103,11 @@ def __init__(self, arg=None, line=None, opacity=None, opacitysrc=None, **kwargs) ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -151,30 +122,11 @@ def __init__(self, arg=None, line=None, opacity=None, opacitysrc=None, **kwargs) 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("line", arg, line) + self._set_property("opacity", arg, opacity) + self._set_property("opacitysrc", arg, opacitysrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choroplethmap/_selected.py b/plotly/graph_objs/choroplethmap/_selected.py index 4261b3718a..d4ad6cc6e8 100644 --- a/plotly/graph_objs/choroplethmap/_selected.py +++ b/plotly/graph_objs/choroplethmap/_selected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Selected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choroplethmap" _path_str = "choroplethmap.selected" _valid_props = {"marker"} - # marker - # ------ @property def marker(self): """ @@ -21,11 +20,6 @@ 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 @@ -36,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -64,14 +56,11 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") - + super().__init__("selected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -86,22 +75,9 @@ def __init__(self, arg=None, marker=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choroplethmap/_stream.py b/plotly/graph_objs/choroplethmap/_stream.py index dd9f018e60..afae9f66e7 100644 --- a/plotly/graph_objs/choroplethmap/_stream.py +++ b/plotly/graph_objs/choroplethmap/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choroplethmap" _path_str = "choroplethmap.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -94,14 +89,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -116,26 +108,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choroplethmap/_unselected.py b/plotly/graph_objs/choroplethmap/_unselected.py index 9a3eaf7c93..419fa29373 100644 --- a/plotly/graph_objs/choroplethmap/_unselected.py +++ b/plotly/graph_objs/choroplethmap/_unselected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Unselected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choroplethmap" _path_str = "choroplethmap.unselected" _valid_props = {"marker"} - # marker - # ------ @property def marker(self): """ @@ -21,12 +20,6 @@ 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 @@ -37,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -65,14 +56,11 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") - + super().__init__("unselected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -87,22 +75,9 @@ def __init__(self, arg=None, marker=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choroplethmap/colorbar/__init__.py b/plotly/graph_objs/choroplethmap/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/choroplethmap/colorbar/__init__.py +++ b/plotly/graph_objs/choroplethmap/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/choroplethmap/colorbar/_tickfont.py b/plotly/graph_objs/choroplethmap/colorbar/_tickfont.py index dc9704e0ba..3a060d41a8 100644 --- a/plotly/graph_objs/choroplethmap/colorbar/_tickfont.py +++ b/plotly/graph_objs/choroplethmap/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choroplethmap.colorbar" _path_str = "choroplethmap.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choroplethmap/colorbar/_tickformatstop.py b/plotly/graph_objs/choroplethmap/colorbar/_tickformatstop.py index 2d76600577..7140429c34 100644 --- a/plotly/graph_objs/choroplethmap/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/choroplethmap/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choroplethmap.colorbar" _path_str = "choroplethmap.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choroplethmap/colorbar/_title.py b/plotly/graph_objs/choroplethmap/colorbar/_title.py index 4d42a1c321..58d52f6d94 100644 --- a/plotly/graph_objs/choroplethmap/colorbar/_title.py +++ b/plotly/graph_objs/choroplethmap/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choroplethmap.colorbar" _path_str = "choroplethmap.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choroplethmap/colorbar/title/__init__.py b/plotly/graph_objs/choroplethmap/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/choroplethmap/colorbar/title/__init__.py +++ b/plotly/graph_objs/choroplethmap/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/choroplethmap/colorbar/title/_font.py b/plotly/graph_objs/choroplethmap/colorbar/title/_font.py index 4b8af44ad0..f5a00ed287 100644 --- a/plotly/graph_objs/choroplethmap/colorbar/title/_font.py +++ b/plotly/graph_objs/choroplethmap/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choroplethmap.colorbar.title" _path_str = "choroplethmap.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choroplethmap/hoverlabel/__init__.py b/plotly/graph_objs/choroplethmap/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/choroplethmap/hoverlabel/__init__.py +++ b/plotly/graph_objs/choroplethmap/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/choroplethmap/hoverlabel/_font.py b/plotly/graph_objs/choroplethmap/hoverlabel/_font.py index fdf1c6d1d0..d0c1d7c7ea 100644 --- a/plotly/graph_objs/choroplethmap/hoverlabel/_font.py +++ b/plotly/graph_objs/choroplethmap/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choroplethmap.hoverlabel" _path_str = "choroplethmap.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choroplethmap/legendgrouptitle/__init__.py b/plotly/graph_objs/choroplethmap/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/choroplethmap/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/choroplethmap/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/choroplethmap/legendgrouptitle/_font.py b/plotly/graph_objs/choroplethmap/legendgrouptitle/_font.py index a1eed39e11..ff2ae05ea6 100644 --- a/plotly/graph_objs/choroplethmap/legendgrouptitle/_font.py +++ b/plotly/graph_objs/choroplethmap/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choroplethmap.legendgrouptitle" _path_str = "choroplethmap.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choroplethmap/marker/__init__.py b/plotly/graph_objs/choroplethmap/marker/__init__.py index 8722c15a2b..579ff002ce 100644 --- a/plotly/graph_objs/choroplethmap/marker/__init__.py +++ b/plotly/graph_objs/choroplethmap/marker/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/choroplethmap/marker/_line.py b/plotly/graph_objs/choroplethmap/marker/_line.py index a0e551b88b..cff9195929 100644 --- a/plotly/graph_objs/choroplethmap/marker/_line.py +++ b/plotly/graph_objs/choroplethmap/marker/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choroplethmap.marker" _path_str = "choroplethmap.marker.line" _valid_props = {"color", "colorsrc", "width", "widthsrc"} - # color - # ----- @property def color(self): """ @@ -25,42 +24,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -73,8 +37,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -93,8 +55,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # width - # ----- @property def width(self): """ @@ -114,8 +74,6 @@ def width(self): def width(self, val): self["width"] = val - # widthsrc - # -------- @property def widthsrc(self): """ @@ -134,8 +92,6 @@ def widthsrc(self): def widthsrc(self, val): self["widthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -188,14 +144,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -210,34 +163,12 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("width", arg, width) + self._set_property("widthsrc", arg, widthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choroplethmap/selected/__init__.py b/plotly/graph_objs/choroplethmap/selected/__init__.py index dfd3406713..17b6d670bc 100644 --- a/plotly/graph_objs/choroplethmap/selected/__init__.py +++ b/plotly/graph_objs/choroplethmap/selected/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/choroplethmap/selected/_marker.py b/plotly/graph_objs/choroplethmap/selected/_marker.py index 9b659e40c7..7d34c68681 100644 --- a/plotly/graph_objs/choroplethmap/selected/_marker.py +++ b/plotly/graph_objs/choroplethmap/selected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choroplethmap.selected" _path_str = "choroplethmap.selected.marker" _valid_props = {"opacity"} - # opacity - # ------- @property def opacity(self): """ @@ -30,8 +29,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -56,14 +53,11 @@ def __init__(self, arg=None, opacity=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -78,22 +72,9 @@ def __init__(self, arg=None, opacity=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("opacity", arg, opacity) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choroplethmap/unselected/__init__.py b/plotly/graph_objs/choroplethmap/unselected/__init__.py index dfd3406713..17b6d670bc 100644 --- a/plotly/graph_objs/choroplethmap/unselected/__init__.py +++ b/plotly/graph_objs/choroplethmap/unselected/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/choroplethmap/unselected/_marker.py b/plotly/graph_objs/choroplethmap/unselected/_marker.py index c2fd93944a..518f96e5d6 100644 --- a/plotly/graph_objs/choroplethmap/unselected/_marker.py +++ b/plotly/graph_objs/choroplethmap/unselected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choroplethmap.unselected" _path_str = "choroplethmap.unselected.marker" _valid_props = {"opacity"} - # opacity - # ------- @property def opacity(self): """ @@ -31,8 +30,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -59,14 +56,11 @@ def __init__(self, arg=None, opacity=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -81,22 +75,9 @@ def __init__(self, arg=None, opacity=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("opacity", arg, opacity) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choroplethmapbox/__init__.py b/plotly/graph_objs/choroplethmapbox/__init__.py index bb31cb6217..7467efa587 100644 --- a/plotly/graph_objs/choroplethmapbox/__init__.py +++ b/plotly/graph_objs/choroplethmapbox/__init__.py @@ -1,40 +1,23 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._colorbar import ColorBar - from ._hoverlabel import Hoverlabel - from ._legendgrouptitle import Legendgrouptitle - from ._marker import Marker - from ._selected import Selected - from ._stream import Stream - from ._unselected import Unselected - from . import colorbar - from . import hoverlabel - from . import legendgrouptitle - from . import marker - from . import selected - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/choroplethmapbox/_colorbar.py b/plotly/graph_objs/choroplethmapbox/_colorbar.py index c3e5f1f710..eabc5a8c17 100644 --- a/plotly/graph_objs/choroplethmapbox/_colorbar.py +++ b/plotly/graph_objs/choroplethmapbox/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choroplethmapbox" _path_str = "choroplethmapbox.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -913,8 +638,6 @@ 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 @@ -925,8 +648,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -949,8 +670,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -974,8 +693,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1000,8 +717,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1020,8 +735,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1047,8 +760,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1068,8 +779,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1091,8 +800,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1112,8 +819,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1134,8 +839,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1154,8 +857,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1175,8 +876,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1195,8 +894,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1215,8 +912,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1226,18 +921,6 @@ 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 @@ -1248,8 +931,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1274,8 +955,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1298,8 +977,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1318,8 +995,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1341,8 +1016,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1367,8 +1040,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1391,8 +1062,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1411,8 +1080,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1434,8 +1101,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1985,14 +1650,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2007,214 +1669,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choroplethmapbox/_hoverlabel.py b/plotly/graph_objs/choroplethmapbox/_hoverlabel.py index de0a533c59..bcfdeceeca 100644 --- a/plotly/graph_objs/choroplethmapbox/_hoverlabel.py +++ b/plotly/graph_objs/choroplethmapbox/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choroplethmapbox" _path_str = "choroplethmapbox.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choroplethmapbox/_legendgrouptitle.py b/plotly/graph_objs/choroplethmapbox/_legendgrouptitle.py index 9056854540..28433f4bb2 100644 --- a/plotly/graph_objs/choroplethmapbox/_legendgrouptitle.py +++ b/plotly/graph_objs/choroplethmapbox/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choroplethmapbox" _path_str = "choroplethmapbox.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choroplethmapbox/_marker.py b/plotly/graph_objs/choroplethmapbox/_marker.py index 40f0fe6516..8af9169be7 100644 --- a/plotly/graph_objs/choroplethmapbox/_marker.py +++ b/plotly/graph_objs/choroplethmapbox/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choroplethmapbox" _path_str = "choroplethmapbox.marker" _valid_props = {"line", "opacity", "opacitysrc"} - # line - # ---- @property def line(self): """ @@ -21,25 +20,6 @@ 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 @@ -50,8 +30,6 @@ def line(self): def line(self, val): self["line"] = val - # opacity - # ------- @property def opacity(self): """ @@ -71,8 +49,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # opacitysrc - # ---------- @property def opacitysrc(self): """ @@ -91,8 +67,6 @@ def opacitysrc(self): def opacitysrc(self, val): self["opacitysrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -129,14 +103,11 @@ def __init__(self, arg=None, line=None, opacity=None, opacitysrc=None, **kwargs) ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -151,30 +122,11 @@ def __init__(self, arg=None, line=None, opacity=None, opacitysrc=None, **kwargs) 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("line", arg, line) + self._set_property("opacity", arg, opacity) + self._set_property("opacitysrc", arg, opacitysrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choroplethmapbox/_selected.py b/plotly/graph_objs/choroplethmapbox/_selected.py index 0d8b3d0bce..a53ee20cc4 100644 --- a/plotly/graph_objs/choroplethmapbox/_selected.py +++ b/plotly/graph_objs/choroplethmapbox/_selected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Selected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choroplethmapbox" _path_str = "choroplethmapbox.selected" _valid_props = {"marker"} - # marker - # ------ @property def marker(self): """ @@ -21,11 +20,6 @@ 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 @@ -36,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -64,14 +56,11 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") - + super().__init__("selected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -86,22 +75,9 @@ def __init__(self, arg=None, marker=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choroplethmapbox/_stream.py b/plotly/graph_objs/choroplethmapbox/_stream.py index 109aa2aaad..a4f4edc76a 100644 --- a/plotly/graph_objs/choroplethmapbox/_stream.py +++ b/plotly/graph_objs/choroplethmapbox/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choroplethmapbox" _path_str = "choroplethmapbox.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -94,14 +89,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -116,26 +108,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choroplethmapbox/_unselected.py b/plotly/graph_objs/choroplethmapbox/_unselected.py index e42b481cb2..35b6305e91 100644 --- a/plotly/graph_objs/choroplethmapbox/_unselected.py +++ b/plotly/graph_objs/choroplethmapbox/_unselected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Unselected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choroplethmapbox" _path_str = "choroplethmapbox.unselected" _valid_props = {"marker"} - # marker - # ------ @property def marker(self): """ @@ -21,12 +20,6 @@ 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 @@ -37,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -65,14 +56,11 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") - + super().__init__("unselected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -87,22 +75,9 @@ def __init__(self, arg=None, marker=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choroplethmapbox/colorbar/__init__.py b/plotly/graph_objs/choroplethmapbox/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/choroplethmapbox/colorbar/__init__.py +++ b/plotly/graph_objs/choroplethmapbox/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/choroplethmapbox/colorbar/_tickfont.py b/plotly/graph_objs/choroplethmapbox/colorbar/_tickfont.py index 749bc578d0..e428b19cb5 100644 --- a/plotly/graph_objs/choroplethmapbox/colorbar/_tickfont.py +++ b/plotly/graph_objs/choroplethmapbox/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choroplethmapbox.colorbar" _path_str = "choroplethmapbox.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choroplethmapbox/colorbar/_tickformatstop.py b/plotly/graph_objs/choroplethmapbox/colorbar/_tickformatstop.py index 396ee959d2..7f5c44ccf3 100644 --- a/plotly/graph_objs/choroplethmapbox/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/choroplethmapbox/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choroplethmapbox.colorbar" _path_str = "choroplethmapbox.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choroplethmapbox/colorbar/_title.py b/plotly/graph_objs/choroplethmapbox/colorbar/_title.py index 2fe9e2be4e..155db24be9 100644 --- a/plotly/graph_objs/choroplethmapbox/colorbar/_title.py +++ b/plotly/graph_objs/choroplethmapbox/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choroplethmapbox.colorbar" _path_str = "choroplethmapbox.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choroplethmapbox/colorbar/title/__init__.py b/plotly/graph_objs/choroplethmapbox/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/choroplethmapbox/colorbar/title/__init__.py +++ b/plotly/graph_objs/choroplethmapbox/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/choroplethmapbox/colorbar/title/_font.py b/plotly/graph_objs/choroplethmapbox/colorbar/title/_font.py index 91f2657d33..0e691e406a 100644 --- a/plotly/graph_objs/choroplethmapbox/colorbar/title/_font.py +++ b/plotly/graph_objs/choroplethmapbox/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choroplethmapbox.colorbar.title" _path_str = "choroplethmapbox.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choroplethmapbox/hoverlabel/__init__.py b/plotly/graph_objs/choroplethmapbox/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/choroplethmapbox/hoverlabel/__init__.py +++ b/plotly/graph_objs/choroplethmapbox/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/choroplethmapbox/hoverlabel/_font.py b/plotly/graph_objs/choroplethmapbox/hoverlabel/_font.py index 20baef3110..d68e020e8b 100644 --- a/plotly/graph_objs/choroplethmapbox/hoverlabel/_font.py +++ b/plotly/graph_objs/choroplethmapbox/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choroplethmapbox.hoverlabel" _path_str = "choroplethmapbox.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choroplethmapbox/legendgrouptitle/__init__.py b/plotly/graph_objs/choroplethmapbox/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/choroplethmapbox/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/choroplethmapbox/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/choroplethmapbox/legendgrouptitle/_font.py b/plotly/graph_objs/choroplethmapbox/legendgrouptitle/_font.py index cfc6f22938..75512dc09f 100644 --- a/plotly/graph_objs/choroplethmapbox/legendgrouptitle/_font.py +++ b/plotly/graph_objs/choroplethmapbox/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choroplethmapbox.legendgrouptitle" _path_str = "choroplethmapbox.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choroplethmapbox/marker/__init__.py b/plotly/graph_objs/choroplethmapbox/marker/__init__.py index 8722c15a2b..579ff002ce 100644 --- a/plotly/graph_objs/choroplethmapbox/marker/__init__.py +++ b/plotly/graph_objs/choroplethmapbox/marker/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/choroplethmapbox/marker/_line.py b/plotly/graph_objs/choroplethmapbox/marker/_line.py index 356d7ba20d..0e58dc40e0 100644 --- a/plotly/graph_objs/choroplethmapbox/marker/_line.py +++ b/plotly/graph_objs/choroplethmapbox/marker/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choroplethmapbox.marker" _path_str = "choroplethmapbox.marker.line" _valid_props = {"color", "colorsrc", "width", "widthsrc"} - # color - # ----- @property def color(self): """ @@ -25,42 +24,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -73,8 +37,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -93,8 +55,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # width - # ----- @property def width(self): """ @@ -114,8 +74,6 @@ def width(self): def width(self, val): self["width"] = val - # widthsrc - # -------- @property def widthsrc(self): """ @@ -134,8 +92,6 @@ def widthsrc(self): def widthsrc(self, val): self["widthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -188,14 +144,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -210,34 +163,12 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("width", arg, width) + self._set_property("widthsrc", arg, widthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choroplethmapbox/selected/__init__.py b/plotly/graph_objs/choroplethmapbox/selected/__init__.py index dfd3406713..17b6d670bc 100644 --- a/plotly/graph_objs/choroplethmapbox/selected/__init__.py +++ b/plotly/graph_objs/choroplethmapbox/selected/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/choroplethmapbox/selected/_marker.py b/plotly/graph_objs/choroplethmapbox/selected/_marker.py index f4ec556e34..52fdc754c9 100644 --- a/plotly/graph_objs/choroplethmapbox/selected/_marker.py +++ b/plotly/graph_objs/choroplethmapbox/selected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choroplethmapbox.selected" _path_str = "choroplethmapbox.selected.marker" _valid_props = {"opacity"} - # opacity - # ------- @property def opacity(self): """ @@ -30,8 +29,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -56,14 +53,11 @@ def __init__(self, arg=None, opacity=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -78,22 +72,9 @@ def __init__(self, arg=None, opacity=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("opacity", arg, opacity) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/choroplethmapbox/unselected/__init__.py b/plotly/graph_objs/choroplethmapbox/unselected/__init__.py index dfd3406713..17b6d670bc 100644 --- a/plotly/graph_objs/choroplethmapbox/unselected/__init__.py +++ b/plotly/graph_objs/choroplethmapbox/unselected/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/choroplethmapbox/unselected/_marker.py b/plotly/graph_objs/choroplethmapbox/unselected/_marker.py index 1d6bdff0ab..4b0c9c707c 100644 --- a/plotly/graph_objs/choroplethmapbox/unselected/_marker.py +++ b/plotly/graph_objs/choroplethmapbox/unselected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "choroplethmapbox.unselected" _path_str = "choroplethmapbox.unselected.marker" _valid_props = {"opacity"} - # opacity - # ------- @property def opacity(self): """ @@ -31,8 +30,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -59,14 +56,11 @@ def __init__(self, arg=None, opacity=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -81,22 +75,9 @@ def __init__(self, arg=None, opacity=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("opacity", arg, opacity) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/cone/__init__.py b/plotly/graph_objs/cone/__init__.py index 6faa693279..c3eb9c5f21 100644 --- a/plotly/graph_objs/cone/__init__.py +++ b/plotly/graph_objs/cone/__init__.py @@ -1,28 +1,15 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._colorbar import ColorBar - from ._hoverlabel import Hoverlabel - from ._legendgrouptitle import Legendgrouptitle - from ._lighting import Lighting - from ._lightposition import Lightposition - from ._stream import Stream - from . import colorbar - from . import hoverlabel - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".colorbar", ".hoverlabel", ".legendgrouptitle"], + [ + "._colorbar.ColorBar", + "._hoverlabel.Hoverlabel", + "._legendgrouptitle.Legendgrouptitle", + "._lighting.Lighting", + "._lightposition.Lightposition", + "._stream.Stream", + ], +) diff --git a/plotly/graph_objs/cone/_colorbar.py b/plotly/graph_objs/cone/_colorbar.py index d0a9bfcca9..992ae1811a 100644 --- a/plotly/graph_objs/cone/_colorbar.py +++ b/plotly/graph_objs/cone/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "cone" _path_str = "cone.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -913,8 +638,6 @@ 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 @@ -925,8 +648,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -949,8 +670,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -974,8 +693,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1000,8 +717,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1020,8 +735,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1047,8 +760,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1068,8 +779,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1091,8 +800,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1112,8 +819,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1134,8 +839,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1154,8 +857,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1175,8 +876,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1195,8 +894,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1215,8 +912,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1226,18 +921,6 @@ 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 @@ -1248,8 +931,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1274,8 +955,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1298,8 +977,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1318,8 +995,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1341,8 +1016,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1367,8 +1040,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1391,8 +1062,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1411,8 +1080,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1434,8 +1101,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1984,14 +1649,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2006,214 +1668,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/cone/_hoverlabel.py b/plotly/graph_objs/cone/_hoverlabel.py index ef2366f78b..ecb067e96f 100644 --- a/plotly/graph_objs/cone/_hoverlabel.py +++ b/plotly/graph_objs/cone/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "cone" _path_str = "cone.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/cone/_legendgrouptitle.py b/plotly/graph_objs/cone/_legendgrouptitle.py index 24dc61b02e..bf86738c7b 100644 --- a/plotly/graph_objs/cone/_legendgrouptitle.py +++ b/plotly/graph_objs/cone/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "cone" _path_str = "cone.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/cone/_lighting.py b/plotly/graph_objs/cone/_lighting.py index d30017a71f..9feeee4f31 100644 --- a/plotly/graph_objs/cone/_lighting.py +++ b/plotly/graph_objs/cone/_lighting.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Lighting(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "cone" _path_str = "cone.lighting" _valid_props = { @@ -18,8 +19,6 @@ class Lighting(_BaseTraceHierarchyType): "vertexnormalsepsilon", } - # ambient - # ------- @property def ambient(self): """ @@ -39,8 +38,6 @@ def ambient(self): def ambient(self, val): self["ambient"] = val - # diffuse - # ------- @property def diffuse(self): """ @@ -60,8 +57,6 @@ def diffuse(self): def diffuse(self, val): self["diffuse"] = val - # facenormalsepsilon - # ------------------ @property def facenormalsepsilon(self): """ @@ -81,8 +76,6 @@ def facenormalsepsilon(self): def facenormalsepsilon(self, val): self["facenormalsepsilon"] = val - # fresnel - # ------- @property def fresnel(self): """ @@ -103,8 +96,6 @@ def fresnel(self): def fresnel(self, val): self["fresnel"] = val - # roughness - # --------- @property def roughness(self): """ @@ -124,8 +115,6 @@ def roughness(self): def roughness(self, val): self["roughness"] = val - # specular - # -------- @property def specular(self): """ @@ -145,8 +134,6 @@ def specular(self): def specular(self, val): self["specular"] = val - # vertexnormalsepsilon - # -------------------- @property def vertexnormalsepsilon(self): """ @@ -166,8 +153,6 @@ def vertexnormalsepsilon(self): def vertexnormalsepsilon(self, val): self["vertexnormalsepsilon"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -244,14 +229,11 @@ def __init__( ------- Lighting """ - super(Lighting, self).__init__("lighting") - + super().__init__("lighting") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -266,46 +248,15 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("ambient", arg, ambient) + self._set_property("diffuse", arg, diffuse) + self._set_property("facenormalsepsilon", arg, facenormalsepsilon) + self._set_property("fresnel", arg, fresnel) + self._set_property("roughness", arg, roughness) + self._set_property("specular", arg, specular) + self._set_property("vertexnormalsepsilon", arg, vertexnormalsepsilon) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/cone/_lightposition.py b/plotly/graph_objs/cone/_lightposition.py index 9751ecc083..737785ef37 100644 --- a/plotly/graph_objs/cone/_lightposition.py +++ b/plotly/graph_objs/cone/_lightposition.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Lightposition(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "cone" _path_str = "cone.lightposition" _valid_props = {"x", "y", "z"} - # x - # - @property def x(self): """ @@ -30,8 +29,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -50,8 +47,6 @@ def y(self): def y(self, val): self["y"] = val - # z - # - @property def z(self): """ @@ -70,8 +65,6 @@ def z(self): def z(self, val): self["z"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -110,14 +103,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Lightposition """ - super(Lightposition, self).__init__("lightposition") - + super().__init__("lightposition") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -132,30 +122,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("x", arg, x) + self._set_property("y", arg, y) + self._set_property("z", arg, z) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/cone/_stream.py b/plotly/graph_objs/cone/_stream.py index 369a19fffe..0bb3806ed2 100644 --- a/plotly/graph_objs/cone/_stream.py +++ b/plotly/graph_objs/cone/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "cone" _path_str = "cone.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -93,14 +88,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -115,26 +107,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/cone/colorbar/__init__.py b/plotly/graph_objs/cone/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/cone/colorbar/__init__.py +++ b/plotly/graph_objs/cone/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/cone/colorbar/_tickfont.py b/plotly/graph_objs/cone/colorbar/_tickfont.py index 2381270385..9296220ef4 100644 --- a/plotly/graph_objs/cone/colorbar/_tickfont.py +++ b/plotly/graph_objs/cone/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "cone.colorbar" _path_str = "cone.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/cone/colorbar/_tickformatstop.py b/plotly/graph_objs/cone/colorbar/_tickformatstop.py index e0fee742fd..d9c4699f10 100644 --- a/plotly/graph_objs/cone/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/cone/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "cone.colorbar" _path_str = "cone.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/cone/colorbar/_title.py b/plotly/graph_objs/cone/colorbar/_title.py index 97e1d202eb..760e95a274 100644 --- a/plotly/graph_objs/cone/colorbar/_title.py +++ b/plotly/graph_objs/cone/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "cone.colorbar" _path_str = "cone.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/cone/colorbar/title/__init__.py b/plotly/graph_objs/cone/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/cone/colorbar/title/__init__.py +++ b/plotly/graph_objs/cone/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/cone/colorbar/title/_font.py b/plotly/graph_objs/cone/colorbar/title/_font.py index 9f0f703aa9..25debdef61 100644 --- a/plotly/graph_objs/cone/colorbar/title/_font.py +++ b/plotly/graph_objs/cone/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "cone.colorbar.title" _path_str = "cone.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/cone/hoverlabel/__init__.py b/plotly/graph_objs/cone/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/cone/hoverlabel/__init__.py +++ b/plotly/graph_objs/cone/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/cone/hoverlabel/_font.py b/plotly/graph_objs/cone/hoverlabel/_font.py index b91545dc98..d6ab161958 100644 --- a/plotly/graph_objs/cone/hoverlabel/_font.py +++ b/plotly/graph_objs/cone/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "cone.hoverlabel" _path_str = "cone.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/cone/legendgrouptitle/__init__.py b/plotly/graph_objs/cone/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/cone/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/cone/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/cone/legendgrouptitle/_font.py b/plotly/graph_objs/cone/legendgrouptitle/_font.py index 63ce18de9a..f2eb484bc2 100644 --- a/plotly/graph_objs/cone/legendgrouptitle/_font.py +++ b/plotly/graph_objs/cone/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "cone.legendgrouptitle" _path_str = "cone.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/contour/__init__.py b/plotly/graph_objs/contour/__init__.py index 7b983d6452..6830694f75 100644 --- a/plotly/graph_objs/contour/__init__.py +++ b/plotly/graph_objs/contour/__init__.py @@ -1,31 +1,16 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._colorbar import ColorBar - from ._contours import Contours - from ._hoverlabel import Hoverlabel - from ._legendgrouptitle import Legendgrouptitle - from ._line import Line - from ._stream import Stream - from ._textfont import Textfont - from . import colorbar - from . import contours - from . import hoverlabel - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".colorbar", ".contours", ".hoverlabel", ".legendgrouptitle"], + [ + "._colorbar.ColorBar", + "._contours.Contours", + "._hoverlabel.Hoverlabel", + "._legendgrouptitle.Legendgrouptitle", + "._line.Line", + "._stream.Stream", + "._textfont.Textfont", + ], +) diff --git a/plotly/graph_objs/contour/_colorbar.py b/plotly/graph_objs/contour/_colorbar.py index 317b4ef44b..85d4f3124c 100644 --- a/plotly/graph_objs/contour/_colorbar.py +++ b/plotly/graph_objs/contour/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "contour" _path_str = "contour.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -913,8 +638,6 @@ 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 @@ -925,8 +648,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -949,8 +670,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -974,8 +693,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1000,8 +717,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1020,8 +735,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1047,8 +760,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1068,8 +779,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1091,8 +800,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1112,8 +819,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1134,8 +839,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1154,8 +857,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1175,8 +876,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1195,8 +894,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1215,8 +912,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1226,18 +921,6 @@ 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 @@ -1248,8 +931,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1274,8 +955,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1298,8 +977,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1318,8 +995,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1341,8 +1016,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1367,8 +1040,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1391,8 +1062,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1411,8 +1080,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1434,8 +1101,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1985,14 +1650,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2007,214 +1669,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/contour/_contours.py b/plotly/graph_objs/contour/_contours.py index 4ad82b3cd1..ef0f4374fb 100644 --- a/plotly/graph_objs/contour/_contours.py +++ b/plotly/graph_objs/contour/_contours.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Contours(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "contour" _path_str = "contour.contours" _valid_props = { @@ -22,8 +23,6 @@ class Contours(_BaseTraceHierarchyType): "value", } - # coloring - # -------- @property def coloring(self): """ @@ -47,8 +46,6 @@ def coloring(self): def coloring(self, val): self["coloring"] = val - # end - # --- @property def end(self): """ @@ -68,8 +65,6 @@ def end(self): def end(self, val): self["end"] = val - # labelfont - # --------- @property def labelfont(self): """ @@ -83,52 +78,6 @@ 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 @@ -139,8 +88,6 @@ def labelfont(self): def labelfont(self, val): self["labelfont"] = val - # labelformat - # ----------- @property def labelformat(self): """ @@ -163,8 +110,6 @@ def labelformat(self): def labelformat(self, val): self["labelformat"] = val - # operation - # --------- @property def operation(self): """ @@ -192,8 +137,6 @@ def operation(self): def operation(self, val): self["operation"] = val - # showlabels - # ---------- @property def showlabels(self): """ @@ -213,8 +156,6 @@ def showlabels(self): def showlabels(self, val): self["showlabels"] = val - # showlines - # --------- @property def showlines(self): """ @@ -234,8 +175,6 @@ def showlines(self): def showlines(self, val): self["showlines"] = val - # size - # ---- @property def size(self): """ @@ -254,8 +193,6 @@ def size(self): def size(self, val): self["size"] = val - # start - # ----- @property def start(self): """ @@ -275,8 +212,6 @@ def start(self): def start(self, val): self["start"] = val - # type - # ---- @property def type(self): """ @@ -299,8 +234,6 @@ def type(self): def type(self, val): self["type"] = val - # value - # ----- @property def value(self): """ @@ -324,8 +257,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -471,14 +402,11 @@ def __init__( ------- Contours """ - super(Contours, self).__init__("contours") - + super().__init__("contours") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -493,62 +421,19 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("coloring", arg, coloring) + self._set_property("end", arg, end) + self._set_property("labelfont", arg, labelfont) + self._set_property("labelformat", arg, labelformat) + self._set_property("operation", arg, operation) + self._set_property("showlabels", arg, showlabels) + self._set_property("showlines", arg, showlines) + self._set_property("size", arg, size) + self._set_property("start", arg, start) + self._set_property("type", arg, type) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/contour/_hoverlabel.py b/plotly/graph_objs/contour/_hoverlabel.py index 52d7b6bf37..4b4d5ecb3c 100644 --- a/plotly/graph_objs/contour/_hoverlabel.py +++ b/plotly/graph_objs/contour/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "contour" _path_str = "contour.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/contour/_legendgrouptitle.py b/plotly/graph_objs/contour/_legendgrouptitle.py index 40421668d9..b5ffa80ebe 100644 --- a/plotly/graph_objs/contour/_legendgrouptitle.py +++ b/plotly/graph_objs/contour/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "contour" _path_str = "contour.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/contour/_line.py b/plotly/graph_objs/contour/_line.py index 9e307806d7..5b69afca1c 100644 --- a/plotly/graph_objs/contour/_line.py +++ b/plotly/graph_objs/contour/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "contour" _path_str = "contour.line" _valid_props = {"color", "dash", "smoothing", "width"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # dash - # ---- @property def dash(self): """ @@ -96,8 +58,6 @@ def dash(self): def dash(self, val): self["dash"] = val - # smoothing - # --------- @property def smoothing(self): """ @@ -117,8 +77,6 @@ def smoothing(self): def smoothing(self, val): self["smoothing"] = val - # width - # ----- @property def width(self): """ @@ -139,8 +97,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -192,14 +148,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -214,34 +167,12 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("dash", arg, dash) + self._set_property("smoothing", arg, smoothing) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/contour/_stream.py b/plotly/graph_objs/contour/_stream.py index 25e7f6ff1d..377e507959 100644 --- a/plotly/graph_objs/contour/_stream.py +++ b/plotly/graph_objs/contour/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "contour" _path_str = "contour.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -94,14 +89,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -116,26 +108,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/contour/_textfont.py b/plotly/graph_objs/contour/_textfont.py index 96dabd6ae9..9f6be125da 100644 --- a/plotly/graph_objs/contour/_textfont.py +++ b/plotly/graph_objs/contour/_textfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "contour" _path_str = "contour.textfont" _valid_props = { @@ -20,8 +21,6 @@ class Textfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -339,18 +271,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -378,14 +303,11 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -400,54 +322,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/contour/colorbar/__init__.py b/plotly/graph_objs/contour/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/contour/colorbar/__init__.py +++ b/plotly/graph_objs/contour/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/contour/colorbar/_tickfont.py b/plotly/graph_objs/contour/colorbar/_tickfont.py index b1bdca8419..9f48bd0f75 100644 --- a/plotly/graph_objs/contour/colorbar/_tickfont.py +++ b/plotly/graph_objs/contour/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "contour.colorbar" _path_str = "contour.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/contour/colorbar/_tickformatstop.py b/plotly/graph_objs/contour/colorbar/_tickformatstop.py index 6fc65bf498..2881ae4a84 100644 --- a/plotly/graph_objs/contour/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/contour/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "contour.colorbar" _path_str = "contour.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/contour/colorbar/_title.py b/plotly/graph_objs/contour/colorbar/_title.py index 6e1d84d778..b98fa28214 100644 --- a/plotly/graph_objs/contour/colorbar/_title.py +++ b/plotly/graph_objs/contour/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "contour.colorbar" _path_str = "contour.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/contour/colorbar/title/__init__.py b/plotly/graph_objs/contour/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/contour/colorbar/title/__init__.py +++ b/plotly/graph_objs/contour/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/contour/colorbar/title/_font.py b/plotly/graph_objs/contour/colorbar/title/_font.py index 88ab8d6366..0dd77b80e5 100644 --- a/plotly/graph_objs/contour/colorbar/title/_font.py +++ b/plotly/graph_objs/contour/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "contour.colorbar.title" _path_str = "contour.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/contour/contours/__init__.py b/plotly/graph_objs/contour/contours/__init__.py index f1ee5b7524..ca8d81e748 100644 --- a/plotly/graph_objs/contour/contours/__init__.py +++ b/plotly/graph_objs/contour/contours/__init__.py @@ -1,11 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import(__name__, [], ["._labelfont.Labelfont"]) diff --git a/plotly/graph_objs/contour/contours/_labelfont.py b/plotly/graph_objs/contour/contours/_labelfont.py index 1e3a2c32d3..6342093383 100644 --- a/plotly/graph_objs/contour/contours/_labelfont.py +++ b/plotly/graph_objs/contour/contours/_labelfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Labelfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "contour.contours" _path_str = "contour.contours.labelfont" _valid_props = { @@ -20,8 +21,6 @@ class Labelfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -340,18 +272,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -379,14 +304,11 @@ def __init__( ------- Labelfont """ - super(Labelfont, self).__init__("labelfont") - + super().__init__("labelfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -401,54 +323,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/contour/hoverlabel/__init__.py b/plotly/graph_objs/contour/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/contour/hoverlabel/__init__.py +++ b/plotly/graph_objs/contour/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/contour/hoverlabel/_font.py b/plotly/graph_objs/contour/hoverlabel/_font.py index 0eea706a79..59bb4af4ab 100644 --- a/plotly/graph_objs/contour/hoverlabel/_font.py +++ b/plotly/graph_objs/contour/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "contour.hoverlabel" _path_str = "contour.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/contour/legendgrouptitle/__init__.py b/plotly/graph_objs/contour/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/contour/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/contour/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/contour/legendgrouptitle/_font.py b/plotly/graph_objs/contour/legendgrouptitle/_font.py index 936dcca095..577248fb4a 100644 --- a/plotly/graph_objs/contour/legendgrouptitle/_font.py +++ b/plotly/graph_objs/contour/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "contour.legendgrouptitle" _path_str = "contour.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/contourcarpet/__init__.py b/plotly/graph_objs/contourcarpet/__init__.py index 30f6437a53..8fe23c2e45 100644 --- a/plotly/graph_objs/contourcarpet/__init__.py +++ b/plotly/graph_objs/contourcarpet/__init__.py @@ -1,26 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._colorbar import ColorBar - from ._contours import Contours - from ._legendgrouptitle import Legendgrouptitle - from ._line import Line - from ._stream import Stream - from . import colorbar - from . import contours - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".colorbar", ".contours", ".legendgrouptitle"], + [ + "._colorbar.ColorBar", + "._contours.Contours", + "._legendgrouptitle.Legendgrouptitle", + "._line.Line", + "._stream.Stream", + ], +) diff --git a/plotly/graph_objs/contourcarpet/_colorbar.py b/plotly/graph_objs/contourcarpet/_colorbar.py index 9a7d615e5f..f66f9e0729 100644 --- a/plotly/graph_objs/contourcarpet/_colorbar.py +++ b/plotly/graph_objs/contourcarpet/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "contourcarpet" _path_str = "contourcarpet.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -913,8 +638,6 @@ 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 @@ -925,8 +648,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -949,8 +670,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -974,8 +693,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1000,8 +717,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1020,8 +735,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1047,8 +760,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1068,8 +779,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1091,8 +800,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1112,8 +819,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1134,8 +839,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1154,8 +857,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1175,8 +876,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1195,8 +894,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1215,8 +912,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1226,18 +921,6 @@ 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 @@ -1248,8 +931,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1274,8 +955,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1298,8 +977,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1318,8 +995,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1341,8 +1016,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1367,8 +1040,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1391,8 +1062,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1411,8 +1080,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1434,8 +1101,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1985,14 +1650,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2007,214 +1669,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/contourcarpet/_contours.py b/plotly/graph_objs/contourcarpet/_contours.py index 1a42279c36..8a62c79c04 100644 --- a/plotly/graph_objs/contourcarpet/_contours.py +++ b/plotly/graph_objs/contourcarpet/_contours.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Contours(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "contourcarpet" _path_str = "contourcarpet.contours" _valid_props = { @@ -22,8 +23,6 @@ class Contours(_BaseTraceHierarchyType): "value", } - # coloring - # -------- @property def coloring(self): """ @@ -46,8 +45,6 @@ def coloring(self): def coloring(self, val): self["coloring"] = val - # end - # --- @property def end(self): """ @@ -67,8 +64,6 @@ def end(self): def end(self, val): self["end"] = val - # labelfont - # --------- @property def labelfont(self): """ @@ -82,52 +77,6 @@ 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 @@ -138,8 +87,6 @@ def labelfont(self): def labelfont(self, val): self["labelfont"] = val - # labelformat - # ----------- @property def labelformat(self): """ @@ -162,8 +109,6 @@ def labelformat(self): def labelformat(self, val): self["labelformat"] = val - # operation - # --------- @property def operation(self): """ @@ -191,8 +136,6 @@ def operation(self): def operation(self, val): self["operation"] = val - # showlabels - # ---------- @property def showlabels(self): """ @@ -212,8 +155,6 @@ def showlabels(self): def showlabels(self, val): self["showlabels"] = val - # showlines - # --------- @property def showlines(self): """ @@ -233,8 +174,6 @@ def showlines(self): def showlines(self, val): self["showlines"] = val - # size - # ---- @property def size(self): """ @@ -253,8 +192,6 @@ def size(self): def size(self, val): self["size"] = val - # start - # ----- @property def start(self): """ @@ -274,8 +211,6 @@ def start(self): def start(self, val): self["start"] = val - # type - # ---- @property def type(self): """ @@ -298,8 +233,6 @@ def type(self): def type(self, val): self["type"] = val - # value - # ----- @property def value(self): """ @@ -323,8 +256,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +399,11 @@ def __init__( ------- Contours """ - super(Contours, self).__init__("contours") - + super().__init__("contours") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,62 +418,19 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("coloring", arg, coloring) + self._set_property("end", arg, end) + self._set_property("labelfont", arg, labelfont) + self._set_property("labelformat", arg, labelformat) + self._set_property("operation", arg, operation) + self._set_property("showlabels", arg, showlabels) + self._set_property("showlines", arg, showlines) + self._set_property("size", arg, size) + self._set_property("start", arg, start) + self._set_property("type", arg, type) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/contourcarpet/_legendgrouptitle.py b/plotly/graph_objs/contourcarpet/_legendgrouptitle.py index d2762d9296..0b0182c378 100644 --- a/plotly/graph_objs/contourcarpet/_legendgrouptitle.py +++ b/plotly/graph_objs/contourcarpet/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "contourcarpet" _path_str = "contourcarpet.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/contourcarpet/_line.py b/plotly/graph_objs/contourcarpet/_line.py index 3fb5eced23..5d8dfaabb6 100644 --- a/plotly/graph_objs/contourcarpet/_line.py +++ b/plotly/graph_objs/contourcarpet/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "contourcarpet" _path_str = "contourcarpet.line" _valid_props = {"color", "dash", "smoothing", "width"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # dash - # ---- @property def dash(self): """ @@ -96,8 +58,6 @@ def dash(self): def dash(self, val): self["dash"] = val - # smoothing - # --------- @property def smoothing(self): """ @@ -117,8 +77,6 @@ def smoothing(self): def smoothing(self, val): self["smoothing"] = val - # width - # ----- @property def width(self): """ @@ -139,8 +97,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -193,14 +149,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -215,34 +168,12 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("dash", arg, dash) + self._set_property("smoothing", arg, smoothing) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/contourcarpet/_stream.py b/plotly/graph_objs/contourcarpet/_stream.py index a2e5b4b748..e70573422f 100644 --- a/plotly/graph_objs/contourcarpet/_stream.py +++ b/plotly/graph_objs/contourcarpet/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "contourcarpet" _path_str = "contourcarpet.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -94,14 +89,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -116,26 +108,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/contourcarpet/colorbar/__init__.py b/plotly/graph_objs/contourcarpet/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/contourcarpet/colorbar/__init__.py +++ b/plotly/graph_objs/contourcarpet/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/contourcarpet/colorbar/_tickfont.py b/plotly/graph_objs/contourcarpet/colorbar/_tickfont.py index f2b70b48f4..541be1accb 100644 --- a/plotly/graph_objs/contourcarpet/colorbar/_tickfont.py +++ b/plotly/graph_objs/contourcarpet/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "contourcarpet.colorbar" _path_str = "contourcarpet.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/contourcarpet/colorbar/_tickformatstop.py b/plotly/graph_objs/contourcarpet/colorbar/_tickformatstop.py index 6ebdca1e99..79742e915f 100644 --- a/plotly/graph_objs/contourcarpet/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/contourcarpet/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "contourcarpet.colorbar" _path_str = "contourcarpet.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/contourcarpet/colorbar/_title.py b/plotly/graph_objs/contourcarpet/colorbar/_title.py index 6bcccdb484..7cfc3fcd0a 100644 --- a/plotly/graph_objs/contourcarpet/colorbar/_title.py +++ b/plotly/graph_objs/contourcarpet/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "contourcarpet.colorbar" _path_str = "contourcarpet.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/contourcarpet/colorbar/title/__init__.py b/plotly/graph_objs/contourcarpet/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/contourcarpet/colorbar/title/__init__.py +++ b/plotly/graph_objs/contourcarpet/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/contourcarpet/colorbar/title/_font.py b/plotly/graph_objs/contourcarpet/colorbar/title/_font.py index 088c55b62b..8e80bfdbaf 100644 --- a/plotly/graph_objs/contourcarpet/colorbar/title/_font.py +++ b/plotly/graph_objs/contourcarpet/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "contourcarpet.colorbar.title" _path_str = "contourcarpet.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/contourcarpet/contours/__init__.py b/plotly/graph_objs/contourcarpet/contours/__init__.py index f1ee5b7524..ca8d81e748 100644 --- a/plotly/graph_objs/contourcarpet/contours/__init__.py +++ b/plotly/graph_objs/contourcarpet/contours/__init__.py @@ -1,11 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import(__name__, [], ["._labelfont.Labelfont"]) diff --git a/plotly/graph_objs/contourcarpet/contours/_labelfont.py b/plotly/graph_objs/contourcarpet/contours/_labelfont.py index b00c790bea..730a04b878 100644 --- a/plotly/graph_objs/contourcarpet/contours/_labelfont.py +++ b/plotly/graph_objs/contourcarpet/contours/_labelfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Labelfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "contourcarpet.contours" _path_str = "contourcarpet.contours.labelfont" _valid_props = { @@ -20,8 +21,6 @@ class Labelfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -340,18 +272,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -379,14 +304,11 @@ def __init__( ------- Labelfont """ - super(Labelfont, self).__init__("labelfont") - + super().__init__("labelfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -401,54 +323,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/contourcarpet/legendgrouptitle/__init__.py b/plotly/graph_objs/contourcarpet/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/contourcarpet/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/contourcarpet/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/contourcarpet/legendgrouptitle/_font.py b/plotly/graph_objs/contourcarpet/legendgrouptitle/_font.py index 0a27236553..a45a8a1f01 100644 --- a/plotly/graph_objs/contourcarpet/legendgrouptitle/_font.py +++ b/plotly/graph_objs/contourcarpet/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "contourcarpet.legendgrouptitle" _path_str = "contourcarpet.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/densitymap/__init__.py b/plotly/graph_objs/densitymap/__init__.py index 1735c919df..90ecc6d2d0 100644 --- a/plotly/graph_objs/densitymap/__init__.py +++ b/plotly/graph_objs/densitymap/__init__.py @@ -1,24 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._colorbar import ColorBar - from ._hoverlabel import Hoverlabel - from ._legendgrouptitle import Legendgrouptitle - from ._stream import Stream - from . import colorbar - from . import hoverlabel - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".colorbar", ".hoverlabel", ".legendgrouptitle"], + [ + "._colorbar.ColorBar", + "._hoverlabel.Hoverlabel", + "._legendgrouptitle.Legendgrouptitle", + "._stream.Stream", + ], +) diff --git a/plotly/graph_objs/densitymap/_colorbar.py b/plotly/graph_objs/densitymap/_colorbar.py index 5ebb30f470..9ac17542b7 100644 --- a/plotly/graph_objs/densitymap/_colorbar.py +++ b/plotly/graph_objs/densitymap/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "densitymap" _path_str = "densitymap.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -912,8 +637,6 @@ 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 @@ -924,8 +647,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -948,8 +669,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -973,8 +692,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -999,8 +716,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1019,8 +734,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1046,8 +759,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1067,8 +778,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1090,8 +799,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1111,8 +818,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1133,8 +838,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1153,8 +856,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1174,8 +875,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1194,8 +893,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1214,8 +911,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1225,18 +920,6 @@ 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 @@ -1247,8 +930,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1273,8 +954,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1297,8 +976,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1317,8 +994,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1340,8 +1015,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1366,8 +1039,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1390,8 +1061,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1410,8 +1079,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1433,8 +1100,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1984,14 +1649,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2006,214 +1668,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/densitymap/_hoverlabel.py b/plotly/graph_objs/densitymap/_hoverlabel.py index afefd7894b..8b5bb51aa4 100644 --- a/plotly/graph_objs/densitymap/_hoverlabel.py +++ b/plotly/graph_objs/densitymap/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "densitymap" _path_str = "densitymap.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/densitymap/_legendgrouptitle.py b/plotly/graph_objs/densitymap/_legendgrouptitle.py index c5e3e59928..088c7c1760 100644 --- a/plotly/graph_objs/densitymap/_legendgrouptitle.py +++ b/plotly/graph_objs/densitymap/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "densitymap" _path_str = "densitymap.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/densitymap/_stream.py b/plotly/graph_objs/densitymap/_stream.py index 07ae6f1546..8c552898e1 100644 --- a/plotly/graph_objs/densitymap/_stream.py +++ b/plotly/graph_objs/densitymap/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "densitymap" _path_str = "densitymap.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -94,14 +89,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -116,26 +108,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/densitymap/colorbar/__init__.py b/plotly/graph_objs/densitymap/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/densitymap/colorbar/__init__.py +++ b/plotly/graph_objs/densitymap/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/densitymap/colorbar/_tickfont.py b/plotly/graph_objs/densitymap/colorbar/_tickfont.py index a015d64eea..2177f1a8d2 100644 --- a/plotly/graph_objs/densitymap/colorbar/_tickfont.py +++ b/plotly/graph_objs/densitymap/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "densitymap.colorbar" _path_str = "densitymap.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/densitymap/colorbar/_tickformatstop.py b/plotly/graph_objs/densitymap/colorbar/_tickformatstop.py index c8dffcdf78..94c09d099b 100644 --- a/plotly/graph_objs/densitymap/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/densitymap/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "densitymap.colorbar" _path_str = "densitymap.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/densitymap/colorbar/_title.py b/plotly/graph_objs/densitymap/colorbar/_title.py index 07e58bbd21..8d91992112 100644 --- a/plotly/graph_objs/densitymap/colorbar/_title.py +++ b/plotly/graph_objs/densitymap/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "densitymap.colorbar" _path_str = "densitymap.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/densitymap/colorbar/title/__init__.py b/plotly/graph_objs/densitymap/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/densitymap/colorbar/title/__init__.py +++ b/plotly/graph_objs/densitymap/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/densitymap/colorbar/title/_font.py b/plotly/graph_objs/densitymap/colorbar/title/_font.py index 8d5633e92b..25cddae36d 100644 --- a/plotly/graph_objs/densitymap/colorbar/title/_font.py +++ b/plotly/graph_objs/densitymap/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "densitymap.colorbar.title" _path_str = "densitymap.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/densitymap/hoverlabel/__init__.py b/plotly/graph_objs/densitymap/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/densitymap/hoverlabel/__init__.py +++ b/plotly/graph_objs/densitymap/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/densitymap/hoverlabel/_font.py b/plotly/graph_objs/densitymap/hoverlabel/_font.py index 689a1d3fc7..8a472eca20 100644 --- a/plotly/graph_objs/densitymap/hoverlabel/_font.py +++ b/plotly/graph_objs/densitymap/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "densitymap.hoverlabel" _path_str = "densitymap.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/densitymap/legendgrouptitle/__init__.py b/plotly/graph_objs/densitymap/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/densitymap/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/densitymap/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/densitymap/legendgrouptitle/_font.py b/plotly/graph_objs/densitymap/legendgrouptitle/_font.py index d89764fba7..d1f90139c2 100644 --- a/plotly/graph_objs/densitymap/legendgrouptitle/_font.py +++ b/plotly/graph_objs/densitymap/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "densitymap.legendgrouptitle" _path_str = "densitymap.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/densitymapbox/__init__.py b/plotly/graph_objs/densitymapbox/__init__.py index 1735c919df..90ecc6d2d0 100644 --- a/plotly/graph_objs/densitymapbox/__init__.py +++ b/plotly/graph_objs/densitymapbox/__init__.py @@ -1,24 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._colorbar import ColorBar - from ._hoverlabel import Hoverlabel - from ._legendgrouptitle import Legendgrouptitle - from ._stream import Stream - from . import colorbar - from . import hoverlabel - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".colorbar", ".hoverlabel", ".legendgrouptitle"], + [ + "._colorbar.ColorBar", + "._hoverlabel.Hoverlabel", + "._legendgrouptitle.Legendgrouptitle", + "._stream.Stream", + ], +) diff --git a/plotly/graph_objs/densitymapbox/_colorbar.py b/plotly/graph_objs/densitymapbox/_colorbar.py index ea1484fe32..6e9befa57f 100644 --- a/plotly/graph_objs/densitymapbox/_colorbar.py +++ b/plotly/graph_objs/densitymapbox/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "densitymapbox" _path_str = "densitymapbox.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -913,8 +638,6 @@ 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 @@ -925,8 +648,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -949,8 +670,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -974,8 +693,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1000,8 +717,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1020,8 +735,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1047,8 +760,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1068,8 +779,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1091,8 +800,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1112,8 +819,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1134,8 +839,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1154,8 +857,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1175,8 +876,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1195,8 +894,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1215,8 +912,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1226,18 +921,6 @@ 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 @@ -1248,8 +931,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1274,8 +955,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1298,8 +977,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1318,8 +995,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1341,8 +1016,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1367,8 +1040,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1391,8 +1062,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1411,8 +1080,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1434,8 +1101,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1985,14 +1650,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2007,214 +1669,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/densitymapbox/_hoverlabel.py b/plotly/graph_objs/densitymapbox/_hoverlabel.py index 58d689d30a..610e714926 100644 --- a/plotly/graph_objs/densitymapbox/_hoverlabel.py +++ b/plotly/graph_objs/densitymapbox/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "densitymapbox" _path_str = "densitymapbox.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/densitymapbox/_legendgrouptitle.py b/plotly/graph_objs/densitymapbox/_legendgrouptitle.py index 73db098292..c474355b76 100644 --- a/plotly/graph_objs/densitymapbox/_legendgrouptitle.py +++ b/plotly/graph_objs/densitymapbox/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "densitymapbox" _path_str = "densitymapbox.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/densitymapbox/_stream.py b/plotly/graph_objs/densitymapbox/_stream.py index de8233ade4..cf7ba5e5f7 100644 --- a/plotly/graph_objs/densitymapbox/_stream.py +++ b/plotly/graph_objs/densitymapbox/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "densitymapbox" _path_str = "densitymapbox.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -94,14 +89,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -116,26 +108,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/densitymapbox/colorbar/__init__.py b/plotly/graph_objs/densitymapbox/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/densitymapbox/colorbar/__init__.py +++ b/plotly/graph_objs/densitymapbox/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/densitymapbox/colorbar/_tickfont.py b/plotly/graph_objs/densitymapbox/colorbar/_tickfont.py index ea94f9a537..74715514d1 100644 --- a/plotly/graph_objs/densitymapbox/colorbar/_tickfont.py +++ b/plotly/graph_objs/densitymapbox/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "densitymapbox.colorbar" _path_str = "densitymapbox.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/densitymapbox/colorbar/_tickformatstop.py b/plotly/graph_objs/densitymapbox/colorbar/_tickformatstop.py index ac85a0876e..23fa41065f 100644 --- a/plotly/graph_objs/densitymapbox/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/densitymapbox/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "densitymapbox.colorbar" _path_str = "densitymapbox.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/densitymapbox/colorbar/_title.py b/plotly/graph_objs/densitymapbox/colorbar/_title.py index 0e0f9e2bfd..e0176aded7 100644 --- a/plotly/graph_objs/densitymapbox/colorbar/_title.py +++ b/plotly/graph_objs/densitymapbox/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "densitymapbox.colorbar" _path_str = "densitymapbox.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/densitymapbox/colorbar/title/__init__.py b/plotly/graph_objs/densitymapbox/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/densitymapbox/colorbar/title/__init__.py +++ b/plotly/graph_objs/densitymapbox/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/densitymapbox/colorbar/title/_font.py b/plotly/graph_objs/densitymapbox/colorbar/title/_font.py index b2df8f5e18..c5f03a53d6 100644 --- a/plotly/graph_objs/densitymapbox/colorbar/title/_font.py +++ b/plotly/graph_objs/densitymapbox/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "densitymapbox.colorbar.title" _path_str = "densitymapbox.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/densitymapbox/hoverlabel/__init__.py b/plotly/graph_objs/densitymapbox/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/densitymapbox/hoverlabel/__init__.py +++ b/plotly/graph_objs/densitymapbox/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/densitymapbox/hoverlabel/_font.py b/plotly/graph_objs/densitymapbox/hoverlabel/_font.py index 911b301cd2..055a4f7f16 100644 --- a/plotly/graph_objs/densitymapbox/hoverlabel/_font.py +++ b/plotly/graph_objs/densitymapbox/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "densitymapbox.hoverlabel" _path_str = "densitymapbox.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/densitymapbox/legendgrouptitle/__init__.py b/plotly/graph_objs/densitymapbox/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/densitymapbox/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/densitymapbox/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/densitymapbox/legendgrouptitle/_font.py b/plotly/graph_objs/densitymapbox/legendgrouptitle/_font.py index 56a65819eb..00ce1aae91 100644 --- a/plotly/graph_objs/densitymapbox/legendgrouptitle/_font.py +++ b/plotly/graph_objs/densitymapbox/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "densitymapbox.legendgrouptitle" _path_str = "densitymapbox.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/funnel/__init__.py b/plotly/graph_objs/funnel/__init__.py index 9123f70c41..e0dcdc7a11 100644 --- a/plotly/graph_objs/funnel/__init__.py +++ b/plotly/graph_objs/funnel/__init__.py @@ -1,33 +1,17 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._connector import Connector - from ._hoverlabel import Hoverlabel - from ._insidetextfont import Insidetextfont - from ._legendgrouptitle import Legendgrouptitle - from ._marker import Marker - from ._outsidetextfont import Outsidetextfont - from ._stream import Stream - from ._textfont import Textfont - from . import connector - from . import hoverlabel - from . import legendgrouptitle - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/funnel/_connector.py b/plotly/graph_objs/funnel/_connector.py index e50299bb7b..ed07fd0719 100644 --- a/plotly/graph_objs/funnel/_connector.py +++ b/plotly/graph_objs/funnel/_connector.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Connector(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "funnel" _path_str = "funnel.connector" _valid_props = {"fillcolor", "line", "visible"} - # fillcolor - # --------- @property def fillcolor(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def fillcolor(self): def fillcolor(self, val): self["fillcolor"] = val - # line - # ---- @property def line(self): """ @@ -80,18 +42,6 @@ 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 @@ -102,8 +52,6 @@ def line(self): def line(self, val): self["line"] = val - # visible - # ------- @property def visible(self): """ @@ -122,8 +70,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -158,14 +104,11 @@ def __init__(self, arg=None, fillcolor=None, line=None, visible=None, **kwargs): ------- Connector """ - super(Connector, self).__init__("connector") - + super().__init__("connector") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -180,30 +123,11 @@ def __init__(self, arg=None, fillcolor=None, line=None, visible=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("fillcolor", arg, fillcolor) + self._set_property("line", arg, line) + self._set_property("visible", arg, visible) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/funnel/_hoverlabel.py b/plotly/graph_objs/funnel/_hoverlabel.py index 4b8cd699fd..345c8b02a7 100644 --- a/plotly/graph_objs/funnel/_hoverlabel.py +++ b/plotly/graph_objs/funnel/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "funnel" _path_str = "funnel.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/funnel/_insidetextfont.py b/plotly/graph_objs/funnel/_insidetextfont.py index 15d1bd879c..181e01cc9d 100644 --- a/plotly/graph_objs/funnel/_insidetextfont.py +++ b/plotly/graph_objs/funnel/_insidetextfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Insidetextfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "funnel" _path_str = "funnel.insidetextfont" _valid_props = { @@ -29,8 +30,6 @@ class Insidetextfont(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Insidetextfont """ - super(Insidetextfont, self).__init__("insidetextfont") - + super().__init__("insidetextfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/funnel/_legendgrouptitle.py b/plotly/graph_objs/funnel/_legendgrouptitle.py index 832af37c03..5e38ba5699 100644 --- a/plotly/graph_objs/funnel/_legendgrouptitle.py +++ b/plotly/graph_objs/funnel/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "funnel" _path_str = "funnel.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/funnel/_marker.py b/plotly/graph_objs/funnel/_marker.py index ceb50cabef..598cd19bd6 100644 --- a/plotly/graph_objs/funnel/_marker.py +++ b/plotly/graph_objs/funnel/_marker.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "funnel" _path_str = "funnel.marker" _valid_props = { @@ -26,8 +27,6 @@ class Marker(_BaseTraceHierarchyType): "showscale", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -52,8 +51,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -77,8 +74,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -100,8 +95,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -124,8 +117,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -147,8 +138,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # color - # ----- @property def color(self): """ @@ -162,42 +151,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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to funnel.marker.colorscale - A list or array of any of the above @@ -212,8 +166,6 @@ def color(self): def color(self, val): self["color"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -239,8 +191,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -250,273 +200,6 @@ 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 @@ -527,8 +210,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -581,8 +262,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -601,8 +280,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # line - # ---- @property def line(self): """ @@ -612,98 +289,6 @@ 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 @@ -714,8 +299,6 @@ def line(self): def line(self, val): self["line"] = val - # opacity - # ------- @property def opacity(self): """ @@ -735,8 +318,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # opacitysrc - # ---------- @property def opacitysrc(self): """ @@ -755,8 +336,6 @@ def opacitysrc(self): def opacitysrc(self, val): self["opacitysrc"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -778,8 +357,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # showscale - # --------- @property def showscale(self): """ @@ -800,8 +377,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1008,14 +583,11 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1030,78 +602,23 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("color", arg, color) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("line", arg, line) + self._set_property("opacity", arg, opacity) + self._set_property("opacitysrc", arg, opacitysrc) + self._set_property("reversescale", arg, reversescale) + self._set_property("showscale", arg, showscale) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/funnel/_outsidetextfont.py b/plotly/graph_objs/funnel/_outsidetextfont.py index cdd87277e5..4302f39947 100644 --- a/plotly/graph_objs/funnel/_outsidetextfont.py +++ b/plotly/graph_objs/funnel/_outsidetextfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Outsidetextfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "funnel" _path_str = "funnel.outsidetextfont" _valid_props = { @@ -29,8 +30,6 @@ class Outsidetextfont(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Outsidetextfont """ - super(Outsidetextfont, self).__init__("outsidetextfont") - + super().__init__("outsidetextfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/funnel/_stream.py b/plotly/graph_objs/funnel/_stream.py index 9cc6b82f1c..200a88d6c0 100644 --- a/plotly/graph_objs/funnel/_stream.py +++ b/plotly/graph_objs/funnel/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "funnel" _path_str = "funnel.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -93,14 +88,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -115,26 +107,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/funnel/_textfont.py b/plotly/graph_objs/funnel/_textfont.py index 819d8a9a27..8283117fe9 100644 --- a/plotly/graph_objs/funnel/_textfont.py +++ b/plotly/graph_objs/funnel/_textfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "funnel" _path_str = "funnel.textfont" _valid_props = { @@ -29,8 +30,6 @@ class Textfont(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/funnel/connector/__init__.py b/plotly/graph_objs/funnel/connector/__init__.py index 8722c15a2b..579ff002ce 100644 --- a/plotly/graph_objs/funnel/connector/__init__.py +++ b/plotly/graph_objs/funnel/connector/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/funnel/connector/_line.py b/plotly/graph_objs/funnel/connector/_line.py index 3439f83ece..74d3ec6f3f 100644 --- a/plotly/graph_objs/funnel/connector/_line.py +++ b/plotly/graph_objs/funnel/connector/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "funnel.connector" _path_str = "funnel.connector.line" _valid_props = {"color", "dash", "width"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # dash - # ---- @property def dash(self): """ @@ -95,8 +57,6 @@ def dash(self): def dash(self, val): self["dash"] = val - # width - # ----- @property def width(self): """ @@ -115,8 +75,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -155,14 +113,11 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -177,30 +132,11 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("dash", arg, dash) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/funnel/hoverlabel/__init__.py b/plotly/graph_objs/funnel/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/funnel/hoverlabel/__init__.py +++ b/plotly/graph_objs/funnel/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/funnel/hoverlabel/_font.py b/plotly/graph_objs/funnel/hoverlabel/_font.py index 2a28014f01..594a074d51 100644 --- a/plotly/graph_objs/funnel/hoverlabel/_font.py +++ b/plotly/graph_objs/funnel/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "funnel.hoverlabel" _path_str = "funnel.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/funnel/legendgrouptitle/__init__.py b/plotly/graph_objs/funnel/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/funnel/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/funnel/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/funnel/legendgrouptitle/_font.py b/plotly/graph_objs/funnel/legendgrouptitle/_font.py index dd8ff5b48a..cabd5f6de1 100644 --- a/plotly/graph_objs/funnel/legendgrouptitle/_font.py +++ b/plotly/graph_objs/funnel/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "funnel.legendgrouptitle" _path_str = "funnel.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/funnel/marker/__init__.py b/plotly/graph_objs/funnel/marker/__init__.py index 8481520e3c..ff536ec8b2 100644 --- a/plotly/graph_objs/funnel/marker/__init__.py +++ b/plotly/graph_objs/funnel/marker/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [".colorbar"], ["._colorbar.ColorBar", "._line.Line"] +) diff --git a/plotly/graph_objs/funnel/marker/_colorbar.py b/plotly/graph_objs/funnel/marker/_colorbar.py index 4d63541914..0b339d6bf1 100644 --- a/plotly/graph_objs/funnel/marker/_colorbar.py +++ b/plotly/graph_objs/funnel/marker/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "funnel.marker" _path_str = "funnel.marker.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -913,8 +638,6 @@ 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 @@ -925,8 +648,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -949,8 +670,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -974,8 +693,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1000,8 +717,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1020,8 +735,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1047,8 +760,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1068,8 +779,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1091,8 +800,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1112,8 +819,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1134,8 +839,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1154,8 +857,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1175,8 +876,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1195,8 +894,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1215,8 +912,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1226,18 +921,6 @@ 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 @@ -1248,8 +931,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1274,8 +955,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1298,8 +977,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1318,8 +995,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1341,8 +1016,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1367,8 +1040,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1391,8 +1062,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1411,8 +1080,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1434,8 +1101,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1985,14 +1650,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2007,214 +1669,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/funnel/marker/_line.py b/plotly/graph_objs/funnel/marker/_line.py index cb030f324a..ac49f33108 100644 --- a/plotly/graph_objs/funnel/marker/_line.py +++ b/plotly/graph_objs/funnel/marker/_line.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "funnel.marker" _path_str = "funnel.marker.line" _valid_props = { @@ -23,8 +24,6 @@ class Line(_BaseTraceHierarchyType): "widthsrc", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -49,8 +48,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -74,8 +71,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -97,8 +92,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -122,8 +115,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -145,8 +136,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # color - # ----- @property def color(self): """ @@ -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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to funnel.marker.line.colorscale - A list or array of any of the above @@ -210,8 +164,6 @@ def color(self): def color(self, val): self["color"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -237,8 +189,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -292,8 +242,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -312,8 +260,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -336,8 +282,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # width - # ----- @property def width(self): """ @@ -357,8 +301,6 @@ def width(self): def width(self, val): self["width"] = val - # widthsrc - # -------- @property def widthsrc(self): """ @@ -377,8 +319,6 @@ def widthsrc(self): def widthsrc(self, val): self["widthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -571,14 +511,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -593,66 +530,20 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("color", arg, color) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("reversescale", arg, reversescale) + self._set_property("width", arg, width) + self._set_property("widthsrc", arg, widthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/funnel/marker/colorbar/__init__.py b/plotly/graph_objs/funnel/marker/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/funnel/marker/colorbar/__init__.py +++ b/plotly/graph_objs/funnel/marker/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/funnel/marker/colorbar/_tickfont.py b/plotly/graph_objs/funnel/marker/colorbar/_tickfont.py index fe9990088c..38c76adfe2 100644 --- a/plotly/graph_objs/funnel/marker/colorbar/_tickfont.py +++ b/plotly/graph_objs/funnel/marker/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "funnel.marker.colorbar" _path_str = "funnel.marker.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/funnel/marker/colorbar/_tickformatstop.py b/plotly/graph_objs/funnel/marker/colorbar/_tickformatstop.py index 152426ad61..c4d83d6e0c 100644 --- a/plotly/graph_objs/funnel/marker/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/funnel/marker/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "funnel.marker.colorbar" _path_str = "funnel.marker.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/funnel/marker/colorbar/_title.py b/plotly/graph_objs/funnel/marker/colorbar/_title.py index 9e42b31823..352a9552ac 100644 --- a/plotly/graph_objs/funnel/marker/colorbar/_title.py +++ b/plotly/graph_objs/funnel/marker/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "funnel.marker.colorbar" _path_str = "funnel.marker.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/funnel/marker/colorbar/title/__init__.py b/plotly/graph_objs/funnel/marker/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/funnel/marker/colorbar/title/__init__.py +++ b/plotly/graph_objs/funnel/marker/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/funnel/marker/colorbar/title/_font.py b/plotly/graph_objs/funnel/marker/colorbar/title/_font.py index c4ec5defb1..ae84aa05c4 100644 --- a/plotly/graph_objs/funnel/marker/colorbar/title/_font.py +++ b/plotly/graph_objs/funnel/marker/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "funnel.marker.colorbar.title" _path_str = "funnel.marker.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/funnelarea/__init__.py b/plotly/graph_objs/funnelarea/__init__.py index 735b2c9691..2cf7d53da7 100644 --- a/plotly/graph_objs/funnelarea/__init__.py +++ b/plotly/graph_objs/funnelarea/__init__.py @@ -1,33 +1,17 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._domain import Domain - from ._hoverlabel import Hoverlabel - from ._insidetextfont import Insidetextfont - from ._legendgrouptitle import Legendgrouptitle - from ._marker import Marker - from ._stream import Stream - from ._textfont import Textfont - from ._title import Title - from . import hoverlabel - from . import legendgrouptitle - from . import marker - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/funnelarea/_domain.py b/plotly/graph_objs/funnelarea/_domain.py index 8768025974..51fb550647 100644 --- a/plotly/graph_objs/funnelarea/_domain.py +++ b/plotly/graph_objs/funnelarea/_domain.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Domain(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "funnelarea" _path_str = "funnelarea.domain" _valid_props = {"column", "row", "x", "y"} - # column - # ------ @property def column(self): """ @@ -32,8 +31,6 @@ def column(self): def column(self, val): self["column"] = val - # row - # --- @property def row(self): """ @@ -54,8 +51,6 @@ def row(self): def row(self, val): self["row"] = val - # x - # - @property def x(self): """ @@ -80,8 +75,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -106,8 +99,6 @@ def y(self): def y(self, val): self["y"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -152,14 +143,11 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") - + super().__init__("domain") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -174,34 +162,12 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("column", arg, column) + self._set_property("row", arg, row) + self._set_property("x", arg, x) + self._set_property("y", arg, y) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/funnelarea/_hoverlabel.py b/plotly/graph_objs/funnelarea/_hoverlabel.py index 68437d3f5b..22c916d70d 100644 --- a/plotly/graph_objs/funnelarea/_hoverlabel.py +++ b/plotly/graph_objs/funnelarea/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "funnelarea" _path_str = "funnelarea.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/funnelarea/_insidetextfont.py b/plotly/graph_objs/funnelarea/_insidetextfont.py index 1c8e79cf57..82c97ea0a8 100644 --- a/plotly/graph_objs/funnelarea/_insidetextfont.py +++ b/plotly/graph_objs/funnelarea/_insidetextfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Insidetextfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "funnelarea" _path_str = "funnelarea.insidetextfont" _valid_props = { @@ -29,8 +30,6 @@ class Insidetextfont(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Insidetextfont """ - super(Insidetextfont, self).__init__("insidetextfont") - + super().__init__("insidetextfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/funnelarea/_legendgrouptitle.py b/plotly/graph_objs/funnelarea/_legendgrouptitle.py index 4e4a440462..7e3a106eac 100644 --- a/plotly/graph_objs/funnelarea/_legendgrouptitle.py +++ b/plotly/graph_objs/funnelarea/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "funnelarea" _path_str = "funnelarea.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/funnelarea/_marker.py b/plotly/graph_objs/funnelarea/_marker.py index bcd9f7c595..2ed4e1afc3 100644 --- a/plotly/graph_objs/funnelarea/_marker.py +++ b/plotly/graph_objs/funnelarea/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "funnelarea" _path_str = "funnelarea.marker" _valid_props = {"colors", "colorssrc", "line", "pattern"} - # colors - # ------ @property def colors(self): """ @@ -31,8 +30,6 @@ def colors(self): def colors(self, val): self["colors"] = val - # colorssrc - # --------- @property def colorssrc(self): """ @@ -51,8 +48,6 @@ def colorssrc(self): def colorssrc(self, val): self["colorssrc"] = val - # line - # ---- @property def line(self): """ @@ -62,21 +57,6 @@ 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 @@ -87,8 +67,6 @@ def line(self): def line(self, val): self["line"] = val - # pattern - # ------- @property def pattern(self): """ @@ -100,57 +78,6 @@ 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 @@ -161,8 +88,6 @@ def pattern(self): def pattern(self, val): self["pattern"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -209,14 +134,11 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -231,34 +153,12 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("colors", arg, colors) + self._set_property("colorssrc", arg, colorssrc) + self._set_property("line", arg, line) + self._set_property("pattern", arg, pattern) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/funnelarea/_stream.py b/plotly/graph_objs/funnelarea/_stream.py index 2d4b1cbced..ac97c47b4f 100644 --- a/plotly/graph_objs/funnelarea/_stream.py +++ b/plotly/graph_objs/funnelarea/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "funnelarea" _path_str = "funnelarea.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -94,14 +89,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -116,26 +108,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/funnelarea/_textfont.py b/plotly/graph_objs/funnelarea/_textfont.py index 3ba02007f0..f368521438 100644 --- a/plotly/graph_objs/funnelarea/_textfont.py +++ b/plotly/graph_objs/funnelarea/_textfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "funnelarea" _path_str = "funnelarea.textfont" _valid_props = { @@ -29,8 +30,6 @@ class Textfont(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/funnelarea/_title.py b/plotly/graph_objs/funnelarea/_title.py index 18a6f7781e..e6f0a52aaa 100644 --- a/plotly/graph_objs/funnelarea/_title.py +++ b/plotly/graph_objs/funnelarea/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "funnelarea" _path_str = "funnelarea.title" _valid_props = {"font", "position", "text"} - # font - # ---- @property def font(self): """ @@ -23,79 +22,6 @@ 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 @@ -106,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # position - # -------- @property def position(self): """ @@ -127,8 +51,6 @@ def position(self): def position(self, val): self["position"] = val - # text - # ---- @property def text(self): """ @@ -149,8 +71,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -185,14 +105,11 @@ def __init__(self, arg=None, font=None, position=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -207,30 +124,11 @@ def __init__(self, arg=None, font=None, position=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("position", arg, position) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/funnelarea/hoverlabel/__init__.py b/plotly/graph_objs/funnelarea/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/funnelarea/hoverlabel/__init__.py +++ b/plotly/graph_objs/funnelarea/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/funnelarea/hoverlabel/_font.py b/plotly/graph_objs/funnelarea/hoverlabel/_font.py index 32d628d3c0..6356b0c745 100644 --- a/plotly/graph_objs/funnelarea/hoverlabel/_font.py +++ b/plotly/graph_objs/funnelarea/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "funnelarea.hoverlabel" _path_str = "funnelarea.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/funnelarea/legendgrouptitle/__init__.py b/plotly/graph_objs/funnelarea/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/funnelarea/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/funnelarea/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/funnelarea/legendgrouptitle/_font.py b/plotly/graph_objs/funnelarea/legendgrouptitle/_font.py index 63d3af7147..6d58400bcf 100644 --- a/plotly/graph_objs/funnelarea/legendgrouptitle/_font.py +++ b/plotly/graph_objs/funnelarea/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "funnelarea.legendgrouptitle" _path_str = "funnelarea.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/funnelarea/marker/__init__.py b/plotly/graph_objs/funnelarea/marker/__init__.py index 9f8ac2640c..4e5d01c99b 100644 --- a/plotly/graph_objs/funnelarea/marker/__init__.py +++ b/plotly/graph_objs/funnelarea/marker/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._line.Line", "._pattern.Pattern"] +) diff --git a/plotly/graph_objs/funnelarea/marker/_line.py b/plotly/graph_objs/funnelarea/marker/_line.py index d7768d59e2..392396b6fa 100644 --- a/plotly/graph_objs/funnelarea/marker/_line.py +++ b/plotly/graph_objs/funnelarea/marker/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "funnelarea.marker" _path_str = "funnelarea.marker.line" _valid_props = {"color", "colorsrc", "width", "widthsrc"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -71,8 +35,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -91,8 +53,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # width - # ----- @property def width(self): """ @@ -112,8 +72,6 @@ def width(self): def width(self, val): self["width"] = val - # widthsrc - # -------- @property def widthsrc(self): """ @@ -132,8 +90,6 @@ def widthsrc(self): def widthsrc(self, val): self["widthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -180,14 +136,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -202,34 +155,12 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("width", arg, width) + self._set_property("widthsrc", arg, widthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/funnelarea/marker/_pattern.py b/plotly/graph_objs/funnelarea/marker/_pattern.py index fc694d431a..56d68a6f17 100644 --- a/plotly/graph_objs/funnelarea/marker/_pattern.py +++ b/plotly/graph_objs/funnelarea/marker/_pattern.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Pattern(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "funnelarea.marker" _path_str = "funnelarea.marker.pattern" _valid_props = { @@ -23,8 +24,6 @@ class Pattern(_BaseTraceHierarchyType): "soliditysrc", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -38,42 +37,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -86,8 +50,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -106,8 +68,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # fgcolor - # ------- @property def fgcolor(self): """ @@ -121,42 +81,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -169,8 +94,6 @@ def fgcolor(self): def fgcolor(self, val): self["fgcolor"] = val - # fgcolorsrc - # ---------- @property def fgcolorsrc(self): """ @@ -189,8 +112,6 @@ def fgcolorsrc(self): def fgcolorsrc(self, val): self["fgcolorsrc"] = val - # fgopacity - # --------- @property def fgopacity(self): """ @@ -210,8 +131,6 @@ def fgopacity(self): def fgopacity(self, val): self["fgopacity"] = val - # fillmode - # -------- @property def fillmode(self): """ @@ -232,8 +151,6 @@ def fillmode(self): def fillmode(self, val): self["fillmode"] = val - # shape - # ----- @property def shape(self): """ @@ -255,8 +172,6 @@ def shape(self): def shape(self, val): self["shape"] = val - # shapesrc - # -------- @property def shapesrc(self): """ @@ -275,8 +190,6 @@ def shapesrc(self): def shapesrc(self, val): self["shapesrc"] = val - # size - # ---- @property def size(self): """ @@ -297,8 +210,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -317,8 +228,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # solidity - # -------- @property def solidity(self): """ @@ -341,8 +250,6 @@ def solidity(self): def solidity(self, val): self["solidity"] = val - # soliditysrc - # ----------- @property def soliditysrc(self): """ @@ -361,8 +268,6 @@ def soliditysrc(self): def soliditysrc(self, val): self["soliditysrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -493,14 +398,11 @@ def __init__( ------- Pattern """ - super(Pattern, self).__init__("pattern") - + super().__init__("pattern") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -515,66 +417,20 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("fgcolor", arg, fgcolor) + self._set_property("fgcolorsrc", arg, fgcolorsrc) + self._set_property("fgopacity", arg, fgopacity) + self._set_property("fillmode", arg, fillmode) + self._set_property("shape", arg, shape) + self._set_property("shapesrc", arg, shapesrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("solidity", arg, solidity) + self._set_property("soliditysrc", arg, soliditysrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/funnelarea/title/__init__.py b/plotly/graph_objs/funnelarea/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/funnelarea/title/__init__.py +++ b/plotly/graph_objs/funnelarea/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/funnelarea/title/_font.py b/plotly/graph_objs/funnelarea/title/_font.py index 46206667e0..d163adc8c7 100644 --- a/plotly/graph_objs/funnelarea/title/_font.py +++ b/plotly/graph_objs/funnelarea/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "funnelarea.title" _path_str = "funnelarea.title.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/heatmap/__init__.py b/plotly/graph_objs/heatmap/__init__.py index d11fcc4952..6049317791 100644 --- a/plotly/graph_objs/heatmap/__init__.py +++ b/plotly/graph_objs/heatmap/__init__.py @@ -1,26 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._colorbar import ColorBar - from ._hoverlabel import Hoverlabel - from ._legendgrouptitle import Legendgrouptitle - from ._stream import Stream - from ._textfont import Textfont - from . import colorbar - from . import hoverlabel - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".colorbar", ".hoverlabel", ".legendgrouptitle"], + [ + "._colorbar.ColorBar", + "._hoverlabel.Hoverlabel", + "._legendgrouptitle.Legendgrouptitle", + "._stream.Stream", + "._textfont.Textfont", + ], +) diff --git a/plotly/graph_objs/heatmap/_colorbar.py b/plotly/graph_objs/heatmap/_colorbar.py index 65f4b6ccf6..6da027a31c 100644 --- a/plotly/graph_objs/heatmap/_colorbar.py +++ b/plotly/graph_objs/heatmap/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "heatmap" _path_str = "heatmap.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -913,8 +638,6 @@ 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 @@ -925,8 +648,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -949,8 +670,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -974,8 +693,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1000,8 +717,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1020,8 +735,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1047,8 +760,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1068,8 +779,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1091,8 +800,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1112,8 +819,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1134,8 +839,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1154,8 +857,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1175,8 +876,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1195,8 +894,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1215,8 +912,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1226,18 +921,6 @@ 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 @@ -1248,8 +931,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1274,8 +955,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1298,8 +977,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1318,8 +995,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1341,8 +1016,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1367,8 +1040,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1391,8 +1062,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1411,8 +1080,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1434,8 +1101,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1985,14 +1650,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2007,214 +1669,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/heatmap/_hoverlabel.py b/plotly/graph_objs/heatmap/_hoverlabel.py index 736d3e4baf..bb6a313a67 100644 --- a/plotly/graph_objs/heatmap/_hoverlabel.py +++ b/plotly/graph_objs/heatmap/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "heatmap" _path_str = "heatmap.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/heatmap/_legendgrouptitle.py b/plotly/graph_objs/heatmap/_legendgrouptitle.py index 36b4fc7f80..44174c63c8 100644 --- a/plotly/graph_objs/heatmap/_legendgrouptitle.py +++ b/plotly/graph_objs/heatmap/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "heatmap" _path_str = "heatmap.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/heatmap/_stream.py b/plotly/graph_objs/heatmap/_stream.py index 9873a8efbd..ee5711fce7 100644 --- a/plotly/graph_objs/heatmap/_stream.py +++ b/plotly/graph_objs/heatmap/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "heatmap" _path_str = "heatmap.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -94,14 +89,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -116,26 +108,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/heatmap/_textfont.py b/plotly/graph_objs/heatmap/_textfont.py index 552355ffff..dba110bd36 100644 --- a/plotly/graph_objs/heatmap/_textfont.py +++ b/plotly/graph_objs/heatmap/_textfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "heatmap" _path_str = "heatmap.textfont" _valid_props = { @@ -20,8 +21,6 @@ class Textfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/heatmap/colorbar/__init__.py b/plotly/graph_objs/heatmap/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/heatmap/colorbar/__init__.py +++ b/plotly/graph_objs/heatmap/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/heatmap/colorbar/_tickfont.py b/plotly/graph_objs/heatmap/colorbar/_tickfont.py index 41542ed437..d70f013582 100644 --- a/plotly/graph_objs/heatmap/colorbar/_tickfont.py +++ b/plotly/graph_objs/heatmap/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "heatmap.colorbar" _path_str = "heatmap.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/heatmap/colorbar/_tickformatstop.py b/plotly/graph_objs/heatmap/colorbar/_tickformatstop.py index 33191724a4..c411a9d482 100644 --- a/plotly/graph_objs/heatmap/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/heatmap/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "heatmap.colorbar" _path_str = "heatmap.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/heatmap/colorbar/_title.py b/plotly/graph_objs/heatmap/colorbar/_title.py index 02cdcf6431..da046604ef 100644 --- a/plotly/graph_objs/heatmap/colorbar/_title.py +++ b/plotly/graph_objs/heatmap/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "heatmap.colorbar" _path_str = "heatmap.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/heatmap/colorbar/title/__init__.py b/plotly/graph_objs/heatmap/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/heatmap/colorbar/title/__init__.py +++ b/plotly/graph_objs/heatmap/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/heatmap/colorbar/title/_font.py b/plotly/graph_objs/heatmap/colorbar/title/_font.py index 81a2c54ac2..1f32cffddf 100644 --- a/plotly/graph_objs/heatmap/colorbar/title/_font.py +++ b/plotly/graph_objs/heatmap/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "heatmap.colorbar.title" _path_str = "heatmap.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/heatmap/hoverlabel/__init__.py b/plotly/graph_objs/heatmap/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/heatmap/hoverlabel/__init__.py +++ b/plotly/graph_objs/heatmap/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/heatmap/hoverlabel/_font.py b/plotly/graph_objs/heatmap/hoverlabel/_font.py index deaf08155d..a3ea942b57 100644 --- a/plotly/graph_objs/heatmap/hoverlabel/_font.py +++ b/plotly/graph_objs/heatmap/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "heatmap.hoverlabel" _path_str = "heatmap.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/heatmap/legendgrouptitle/__init__.py b/plotly/graph_objs/heatmap/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/heatmap/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/heatmap/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/heatmap/legendgrouptitle/_font.py b/plotly/graph_objs/heatmap/legendgrouptitle/_font.py index f426b334be..81d2d30e9a 100644 --- a/plotly/graph_objs/heatmap/legendgrouptitle/_font.py +++ b/plotly/graph_objs/heatmap/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "heatmap.legendgrouptitle" _path_str = "heatmap.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram/__init__.py b/plotly/graph_objs/histogram/__init__.py index 3817ff41de..54f32ea233 100644 --- a/plotly/graph_objs/histogram/__init__.py +++ b/plotly/graph_objs/histogram/__init__.py @@ -1,46 +1,23 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._cumulative import Cumulative - from ._error_x import ErrorX - from ._error_y import ErrorY - from ._hoverlabel import Hoverlabel - from ._insidetextfont import Insidetextfont - from ._legendgrouptitle import Legendgrouptitle - from ._marker import Marker - from ._outsidetextfont import Outsidetextfont - from ._selected import Selected - from ._stream import Stream - from ._textfont import Textfont - from ._unselected import Unselected - from ._xbins import XBins - from ._ybins import YBins - from . import hoverlabel - from . import legendgrouptitle - from . import marker - from . import selected - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/histogram/_cumulative.py b/plotly/graph_objs/histogram/_cumulative.py index a0f4f94d07..62fc155f82 100644 --- a/plotly/graph_objs/histogram/_cumulative.py +++ b/plotly/graph_objs/histogram/_cumulative.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Cumulative(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram" _path_str = "histogram.cumulative" _valid_props = {"currentbin", "direction", "enabled"} - # currentbin - # ---------- @property def currentbin(self): """ @@ -36,8 +35,6 @@ def currentbin(self): def currentbin(self, val): self["currentbin"] = val - # direction - # --------- @property def direction(self): """ @@ -60,8 +57,6 @@ def direction(self): def direction(self, val): self["direction"] = val - # enabled - # ------- @property def enabled(self): """ @@ -86,8 +81,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -154,14 +147,11 @@ def __init__( ------- Cumulative """ - super(Cumulative, self).__init__("cumulative") - + super().__init__("cumulative") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -176,30 +166,11 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("currentbin", arg, currentbin) + self._set_property("direction", arg, direction) + self._set_property("enabled", arg, enabled) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram/_error_x.py b/plotly/graph_objs/histogram/_error_x.py index 0a3abfec72..b563824788 100644 --- a/plotly/graph_objs/histogram/_error_x.py +++ b/plotly/graph_objs/histogram/_error_x.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ErrorX(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram" _path_str = "histogram.error_x" _valid_props = { @@ -26,8 +27,6 @@ class ErrorX(_BaseTraceHierarchyType): "width", } - # array - # ----- @property def array(self): """ @@ -47,8 +46,6 @@ def array(self): def array(self, val): self["array"] = val - # arrayminus - # ---------- @property def arrayminus(self): """ @@ -69,8 +66,6 @@ def arrayminus(self): def arrayminus(self, val): self["arrayminus"] = val - # arrayminussrc - # ------------- @property def arrayminussrc(self): """ @@ -90,8 +85,6 @@ def arrayminussrc(self): def arrayminussrc(self, val): self["arrayminussrc"] = val - # arraysrc - # -------- @property def arraysrc(self): """ @@ -110,8 +103,6 @@ def arraysrc(self): def arraysrc(self, val): self["arraysrc"] = val - # color - # ----- @property def color(self): """ @@ -122,42 +113,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -169,8 +125,6 @@ def color(self): def color(self, val): self["color"] = val - # copy_ystyle - # ----------- @property def copy_ystyle(self): """ @@ -187,8 +141,6 @@ def copy_ystyle(self): def copy_ystyle(self, val): self["copy_ystyle"] = val - # symmetric - # --------- @property def symmetric(self): """ @@ -209,8 +161,6 @@ def symmetric(self): def symmetric(self, val): self["symmetric"] = val - # thickness - # --------- @property def thickness(self): """ @@ -229,8 +179,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # traceref - # -------- @property def traceref(self): """ @@ -248,8 +196,6 @@ def traceref(self): def traceref(self, val): self["traceref"] = val - # tracerefminus - # ------------- @property def tracerefminus(self): """ @@ -267,13 +213,11 @@ def tracerefminus(self): def tracerefminus(self, val): self["tracerefminus"] = val - # type - # ---- @property def type(self): """ Determines the rule used to generate the error bars. If - *constant`, the bar lengths are of a constant value. Set this + "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 @@ -294,8 +238,6 @@ def type(self): def type(self, val): self["type"] = val - # value - # ----- @property def value(self): """ @@ -316,8 +258,6 @@ def value(self): def value(self, val): self["value"] = val - # valueminus - # ---------- @property def valueminus(self): """ @@ -339,8 +279,6 @@ def valueminus(self): def valueminus(self, val): self["valueminus"] = val - # visible - # ------- @property def visible(self): """ @@ -359,8 +297,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # width - # ----- @property def width(self): """ @@ -380,8 +316,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -416,7 +350,7 @@ def _prop_descriptions(self): type Determines the rule used to generate the error bars. If - *constant`, the bar lengths are of a constant value. + "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 @@ -502,7 +436,7 @@ def __init__( type Determines the rule used to generate the error bars. If - *constant`, the bar lengths are of a constant value. + "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 @@ -531,14 +465,11 @@ def __init__( ------- ErrorX """ - super(ErrorX, self).__init__("error_x") - + super().__init__("error_x") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -553,78 +484,23 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("array", arg, array) + self._set_property("arrayminus", arg, arrayminus) + self._set_property("arrayminussrc", arg, arrayminussrc) + self._set_property("arraysrc", arg, arraysrc) + self._set_property("color", arg, color) + self._set_property("copy_ystyle", arg, copy_ystyle) + self._set_property("symmetric", arg, symmetric) + self._set_property("thickness", arg, thickness) + self._set_property("traceref", arg, traceref) + self._set_property("tracerefminus", arg, tracerefminus) + self._set_property("type", arg, type) + self._set_property("value", arg, value) + self._set_property("valueminus", arg, valueminus) + self._set_property("visible", arg, visible) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram/_error_y.py b/plotly/graph_objs/histogram/_error_y.py index 3f8d67a828..0e7f61938a 100644 --- a/plotly/graph_objs/histogram/_error_y.py +++ b/plotly/graph_objs/histogram/_error_y.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ErrorY(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram" _path_str = "histogram.error_y" _valid_props = { @@ -25,8 +26,6 @@ class ErrorY(_BaseTraceHierarchyType): "width", } - # array - # ----- @property def array(self): """ @@ -46,8 +45,6 @@ def array(self): def array(self, val): self["array"] = val - # arrayminus - # ---------- @property def arrayminus(self): """ @@ -68,8 +65,6 @@ def arrayminus(self): def arrayminus(self, val): self["arrayminus"] = val - # arrayminussrc - # ------------- @property def arrayminussrc(self): """ @@ -89,8 +84,6 @@ def arrayminussrc(self): def arrayminussrc(self, val): self["arrayminussrc"] = val - # arraysrc - # -------- @property def arraysrc(self): """ @@ -109,8 +102,6 @@ def arraysrc(self): def arraysrc(self, val): self["arraysrc"] = val - # color - # ----- @property def color(self): """ @@ -121,42 +112,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -168,8 +124,6 @@ def color(self): def color(self, val): self["color"] = val - # symmetric - # --------- @property def symmetric(self): """ @@ -190,8 +144,6 @@ def symmetric(self): def symmetric(self, val): self["symmetric"] = val - # thickness - # --------- @property def thickness(self): """ @@ -210,8 +162,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # traceref - # -------- @property def traceref(self): """ @@ -229,8 +179,6 @@ def traceref(self): def traceref(self, val): self["traceref"] = val - # tracerefminus - # ------------- @property def tracerefminus(self): """ @@ -248,13 +196,11 @@ def tracerefminus(self): def tracerefminus(self, val): self["tracerefminus"] = val - # type - # ---- @property def type(self): """ Determines the rule used to generate the error bars. If - *constant`, the bar lengths are of a constant value. Set this + "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 @@ -275,8 +221,6 @@ def type(self): def type(self, val): self["type"] = val - # value - # ----- @property def value(self): """ @@ -297,8 +241,6 @@ def value(self): def value(self, val): self["value"] = val - # valueminus - # ---------- @property def valueminus(self): """ @@ -320,8 +262,6 @@ def valueminus(self): def valueminus(self, val): self["valueminus"] = val - # visible - # ------- @property def visible(self): """ @@ -340,8 +280,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # width - # ----- @property def width(self): """ @@ -361,8 +299,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -395,7 +331,7 @@ def _prop_descriptions(self): type Determines the rule used to generate the error bars. If - *constant`, the bar lengths are of a constant value. + "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 @@ -478,7 +414,7 @@ def __init__( type Determines the rule used to generate the error bars. If - *constant`, the bar lengths are of a constant value. + "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 @@ -507,14 +443,11 @@ def __init__( ------- ErrorY """ - super(ErrorY, self).__init__("error_y") - + super().__init__("error_y") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -529,74 +462,22 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("array", arg, array) + self._set_property("arrayminus", arg, arrayminus) + self._set_property("arrayminussrc", arg, arrayminussrc) + self._set_property("arraysrc", arg, arraysrc) + self._set_property("color", arg, color) + self._set_property("symmetric", arg, symmetric) + self._set_property("thickness", arg, thickness) + self._set_property("traceref", arg, traceref) + self._set_property("tracerefminus", arg, tracerefminus) + self._set_property("type", arg, type) + self._set_property("value", arg, value) + self._set_property("valueminus", arg, valueminus) + self._set_property("visible", arg, visible) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram/_hoverlabel.py b/plotly/graph_objs/histogram/_hoverlabel.py index 89296ba702..bb3d1ff940 100644 --- a/plotly/graph_objs/histogram/_hoverlabel.py +++ b/plotly/graph_objs/histogram/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram" _path_str = "histogram.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram/_insidetextfont.py b/plotly/graph_objs/histogram/_insidetextfont.py index e62907cb35..280ad6e9ce 100644 --- a/plotly/graph_objs/histogram/_insidetextfont.py +++ b/plotly/graph_objs/histogram/_insidetextfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Insidetextfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram" _path_str = "histogram.insidetextfont" _valid_props = { @@ -20,8 +21,6 @@ class Insidetextfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Insidetextfont """ - super(Insidetextfont, self).__init__("insidetextfont") - + super().__init__("insidetextfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram/_legendgrouptitle.py b/plotly/graph_objs/histogram/_legendgrouptitle.py index 97d65c720d..c2a443eb7b 100644 --- a/plotly/graph_objs/histogram/_legendgrouptitle.py +++ b/plotly/graph_objs/histogram/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram" _path_str = "histogram.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram/_marker.py b/plotly/graph_objs/histogram/_marker.py index d215a26dff..7b5a925795 100644 --- a/plotly/graph_objs/histogram/_marker.py +++ b/plotly/graph_objs/histogram/_marker.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram" _path_str = "histogram.marker" _valid_props = { @@ -28,8 +29,6 @@ class Marker(_BaseTraceHierarchyType): "showscale", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -54,8 +53,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -79,8 +76,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -102,8 +97,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -126,8 +119,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -149,8 +140,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # color - # ----- @property def color(self): """ @@ -164,42 +153,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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to histogram.marker.colorscale - A list or array of any of the above @@ -214,8 +168,6 @@ def color(self): def color(self, val): self["color"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -241,8 +193,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -252,273 +202,6 @@ 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 @@ -529,8 +212,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -583,8 +264,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -603,8 +282,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # cornerradius - # ------------ @property def cornerradius(self): """ @@ -626,8 +303,6 @@ def cornerradius(self): def cornerradius(self, val): self["cornerradius"] = val - # line - # ---- @property def line(self): """ @@ -637,98 +312,6 @@ 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 @@ -739,8 +322,6 @@ def line(self): def line(self, val): self["line"] = val - # opacity - # ------- @property def opacity(self): """ @@ -760,8 +341,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # opacitysrc - # ---------- @property def opacitysrc(self): """ @@ -780,8 +359,6 @@ def opacitysrc(self): def opacitysrc(self, val): self["opacitysrc"] = val - # pattern - # ------- @property def pattern(self): """ @@ -793,57 +370,6 @@ 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 @@ -854,8 +380,6 @@ def pattern(self): def pattern(self, val): self["pattern"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -877,8 +401,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # showscale - # --------- @property def showscale(self): """ @@ -899,8 +421,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1126,14 +646,11 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1148,86 +665,25 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("color", arg, color) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("cornerradius", arg, cornerradius) + self._set_property("line", arg, line) + self._set_property("opacity", arg, opacity) + self._set_property("opacitysrc", arg, opacitysrc) + self._set_property("pattern", arg, pattern) + self._set_property("reversescale", arg, reversescale) + self._set_property("showscale", arg, showscale) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram/_outsidetextfont.py b/plotly/graph_objs/histogram/_outsidetextfont.py index 2e9ff3e407..0b6d47f90d 100644 --- a/plotly/graph_objs/histogram/_outsidetextfont.py +++ b/plotly/graph_objs/histogram/_outsidetextfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Outsidetextfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram" _path_str = "histogram.outsidetextfont" _valid_props = { @@ -20,8 +21,6 @@ class Outsidetextfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Outsidetextfont """ - super(Outsidetextfont, self).__init__("outsidetextfont") - + super().__init__("outsidetextfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram/_selected.py b/plotly/graph_objs/histogram/_selected.py index 22a7e2d3c7..6bbd91bb3d 100644 --- a/plotly/graph_objs/histogram/_selected.py +++ b/plotly/graph_objs/histogram/_selected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Selected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram" _path_str = "histogram.selected" _valid_props = {"marker", "textfont"} - # marker - # ------ @property def marker(self): """ @@ -21,13 +20,6 @@ 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 @@ -38,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # textfont - # -------- @property def textfont(self): """ @@ -49,11 +39,6 @@ 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 @@ -64,8 +49,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -98,14 +81,11 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") - + super().__init__("selected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -120,26 +100,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) + self._set_property("textfont", arg, textfont) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram/_stream.py b/plotly/graph_objs/histogram/_stream.py index 8fbbfc36c8..3231b450bc 100644 --- a/plotly/graph_objs/histogram/_stream.py +++ b/plotly/graph_objs/histogram/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram" _path_str = "histogram.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -94,14 +89,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -116,26 +108,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram/_textfont.py b/plotly/graph_objs/histogram/_textfont.py index e8a97b2f5a..36ff9588cd 100644 --- a/plotly/graph_objs/histogram/_textfont.py +++ b/plotly/graph_objs/histogram/_textfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram" _path_str = "histogram.textfont" _valid_props = { @@ -20,8 +21,6 @@ class Textfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram/_unselected.py b/plotly/graph_objs/histogram/_unselected.py index 833fb1aaa8..928c14e1d3 100644 --- a/plotly/graph_objs/histogram/_unselected.py +++ b/plotly/graph_objs/histogram/_unselected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Unselected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram" _path_str = "histogram.unselected" _valid_props = {"marker", "textfont"} - # marker - # ------ @property def marker(self): """ @@ -21,15 +20,6 @@ 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 @@ -40,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # textfont - # -------- @property def textfont(self): """ @@ -51,12 +39,6 @@ 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 @@ -67,8 +49,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -101,14 +81,11 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") - + super().__init__("unselected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -123,26 +100,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) + self._set_property("textfont", arg, textfont) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram/_xbins.py b/plotly/graph_objs/histogram/_xbins.py index 472c012587..387a8d1420 100644 --- a/plotly/graph_objs/histogram/_xbins.py +++ b/plotly/graph_objs/histogram/_xbins.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class XBins(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram" _path_str = "histogram.xbins" _valid_props = {"end", "size", "start"} - # end - # --- @property def end(self): """ @@ -34,8 +33,6 @@ def end(self): def end(self, val): self["end"] = val - # size - # ---- @property def size(self): """ @@ -64,8 +61,6 @@ def size(self): def size(self, val): self["size"] = val - # start - # ----- @property def start(self): """ @@ -95,8 +90,6 @@ def start(self): def start(self, val): self["start"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -191,14 +184,11 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): ------- XBins """ - super(XBins, self).__init__("xbins") - + super().__init__("xbins") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -213,30 +203,11 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("end", arg, end) + self._set_property("size", arg, size) + self._set_property("start", arg, start) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram/_ybins.py b/plotly/graph_objs/histogram/_ybins.py index f5a44a21db..dd9a06af3e 100644 --- a/plotly/graph_objs/histogram/_ybins.py +++ b/plotly/graph_objs/histogram/_ybins.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class YBins(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram" _path_str = "histogram.ybins" _valid_props = {"end", "size", "start"} - # end - # --- @property def end(self): """ @@ -34,8 +33,6 @@ def end(self): def end(self, val): self["end"] = val - # size - # ---- @property def size(self): """ @@ -64,8 +61,6 @@ def size(self): def size(self, val): self["size"] = val - # start - # ----- @property def start(self): """ @@ -95,8 +90,6 @@ def start(self): def start(self, val): self["start"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -191,14 +184,11 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): ------- YBins """ - super(YBins, self).__init__("ybins") - + super().__init__("ybins") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -213,30 +203,11 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("end", arg, end) + self._set_property("size", arg, size) + self._set_property("start", arg, start) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram/hoverlabel/__init__.py b/plotly/graph_objs/histogram/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/histogram/hoverlabel/__init__.py +++ b/plotly/graph_objs/histogram/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/histogram/hoverlabel/_font.py b/plotly/graph_objs/histogram/hoverlabel/_font.py index 098db6c9dc..f30201e231 100644 --- a/plotly/graph_objs/histogram/hoverlabel/_font.py +++ b/plotly/graph_objs/histogram/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram.hoverlabel" _path_str = "histogram.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram/legendgrouptitle/__init__.py b/plotly/graph_objs/histogram/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/histogram/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/histogram/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/histogram/legendgrouptitle/_font.py b/plotly/graph_objs/histogram/legendgrouptitle/_font.py index 734c1a794a..214354be87 100644 --- a/plotly/graph_objs/histogram/legendgrouptitle/_font.py +++ b/plotly/graph_objs/histogram/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram.legendgrouptitle" _path_str = "histogram.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram/marker/__init__.py b/plotly/graph_objs/histogram/marker/__init__.py index ce0279c544..700941a53e 100644 --- a/plotly/graph_objs/histogram/marker/__init__.py +++ b/plotly/graph_objs/histogram/marker/__init__.py @@ -1,16 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._colorbar import ColorBar - from ._line import Line - from ._pattern import Pattern - from . import colorbar -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".colorbar"], - ["._colorbar.ColorBar", "._line.Line", "._pattern.Pattern"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [".colorbar"], ["._colorbar.ColorBar", "._line.Line", "._pattern.Pattern"] +) diff --git a/plotly/graph_objs/histogram/marker/_colorbar.py b/plotly/graph_objs/histogram/marker/_colorbar.py index e7402db0a9..5cd038ca85 100644 --- a/plotly/graph_objs/histogram/marker/_colorbar.py +++ b/plotly/graph_objs/histogram/marker/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram.marker" _path_str = "histogram.marker.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -913,8 +638,6 @@ 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 @@ -925,8 +648,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -949,8 +670,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -974,8 +693,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1000,8 +717,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1020,8 +735,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1047,8 +760,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1068,8 +779,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1091,8 +800,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1112,8 +819,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1134,8 +839,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1154,8 +857,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1175,8 +876,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1195,8 +894,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1215,8 +912,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1226,18 +921,6 @@ 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 @@ -1248,8 +931,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1274,8 +955,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1298,8 +977,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1318,8 +995,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1341,8 +1016,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1367,8 +1040,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1391,8 +1062,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1411,8 +1080,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1434,8 +1101,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1985,14 +1650,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2007,214 +1669,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram/marker/_line.py b/plotly/graph_objs/histogram/marker/_line.py index cf6c096ec3..3d4cbedb04 100644 --- a/plotly/graph_objs/histogram/marker/_line.py +++ b/plotly/graph_objs/histogram/marker/_line.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram.marker" _path_str = "histogram.marker.line" _valid_props = { @@ -23,8 +24,6 @@ class Line(_BaseTraceHierarchyType): "widthsrc", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -49,8 +48,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -74,8 +71,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -97,8 +92,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -122,8 +115,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -145,8 +136,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # color - # ----- @property def color(self): """ @@ -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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to histogram.marker.line.colorscale - A list or array of any of the above @@ -210,8 +164,6 @@ def color(self): def color(self, val): self["color"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -237,8 +189,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -292,8 +242,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -312,8 +260,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -336,8 +282,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # width - # ----- @property def width(self): """ @@ -357,8 +301,6 @@ def width(self): def width(self, val): self["width"] = val - # widthsrc - # -------- @property def widthsrc(self): """ @@ -377,8 +319,6 @@ def widthsrc(self): def widthsrc(self, val): self["widthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -571,14 +511,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -593,66 +530,20 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("color", arg, color) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("reversescale", arg, reversescale) + self._set_property("width", arg, width) + self._set_property("widthsrc", arg, widthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram/marker/_pattern.py b/plotly/graph_objs/histogram/marker/_pattern.py index 240c87677d..7682690dc3 100644 --- a/plotly/graph_objs/histogram/marker/_pattern.py +++ b/plotly/graph_objs/histogram/marker/_pattern.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Pattern(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram.marker" _path_str = "histogram.marker.pattern" _valid_props = { @@ -23,8 +24,6 @@ class Pattern(_BaseTraceHierarchyType): "soliditysrc", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -38,42 +37,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -86,8 +50,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -106,8 +68,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # fgcolor - # ------- @property def fgcolor(self): """ @@ -121,42 +81,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -169,8 +94,6 @@ def fgcolor(self): def fgcolor(self, val): self["fgcolor"] = val - # fgcolorsrc - # ---------- @property def fgcolorsrc(self): """ @@ -189,8 +112,6 @@ def fgcolorsrc(self): def fgcolorsrc(self, val): self["fgcolorsrc"] = val - # fgopacity - # --------- @property def fgopacity(self): """ @@ -210,8 +131,6 @@ def fgopacity(self): def fgopacity(self, val): self["fgopacity"] = val - # fillmode - # -------- @property def fillmode(self): """ @@ -232,8 +151,6 @@ def fillmode(self): def fillmode(self, val): self["fillmode"] = val - # shape - # ----- @property def shape(self): """ @@ -255,8 +172,6 @@ def shape(self): def shape(self, val): self["shape"] = val - # shapesrc - # -------- @property def shapesrc(self): """ @@ -275,8 +190,6 @@ def shapesrc(self): def shapesrc(self, val): self["shapesrc"] = val - # size - # ---- @property def size(self): """ @@ -297,8 +210,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -317,8 +228,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # solidity - # -------- @property def solidity(self): """ @@ -341,8 +250,6 @@ def solidity(self): def solidity(self, val): self["solidity"] = val - # soliditysrc - # ----------- @property def soliditysrc(self): """ @@ -361,8 +268,6 @@ def soliditysrc(self): def soliditysrc(self, val): self["soliditysrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -493,14 +398,11 @@ def __init__( ------- Pattern """ - super(Pattern, self).__init__("pattern") - + super().__init__("pattern") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -515,66 +417,20 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("fgcolor", arg, fgcolor) + self._set_property("fgcolorsrc", arg, fgcolorsrc) + self._set_property("fgopacity", arg, fgopacity) + self._set_property("fillmode", arg, fillmode) + self._set_property("shape", arg, shape) + self._set_property("shapesrc", arg, shapesrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("solidity", arg, solidity) + self._set_property("soliditysrc", arg, soliditysrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram/marker/colorbar/__init__.py b/plotly/graph_objs/histogram/marker/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/histogram/marker/colorbar/__init__.py +++ b/plotly/graph_objs/histogram/marker/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/histogram/marker/colorbar/_tickfont.py b/plotly/graph_objs/histogram/marker/colorbar/_tickfont.py index 645c1e21bf..2eacb07f78 100644 --- a/plotly/graph_objs/histogram/marker/colorbar/_tickfont.py +++ b/plotly/graph_objs/histogram/marker/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram.marker.colorbar" _path_str = "histogram.marker.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram/marker/colorbar/_tickformatstop.py b/plotly/graph_objs/histogram/marker/colorbar/_tickformatstop.py index 68061da88f..9960c2a6a3 100644 --- a/plotly/graph_objs/histogram/marker/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/histogram/marker/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram.marker.colorbar" _path_str = "histogram.marker.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram/marker/colorbar/_title.py b/plotly/graph_objs/histogram/marker/colorbar/_title.py index 6a563fa927..4cc0782ca4 100644 --- a/plotly/graph_objs/histogram/marker/colorbar/_title.py +++ b/plotly/graph_objs/histogram/marker/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram.marker.colorbar" _path_str = "histogram.marker.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram/marker/colorbar/title/__init__.py b/plotly/graph_objs/histogram/marker/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/histogram/marker/colorbar/title/__init__.py +++ b/plotly/graph_objs/histogram/marker/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/histogram/marker/colorbar/title/_font.py b/plotly/graph_objs/histogram/marker/colorbar/title/_font.py index 3cee6565b9..28b036ea3c 100644 --- a/plotly/graph_objs/histogram/marker/colorbar/title/_font.py +++ b/plotly/graph_objs/histogram/marker/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram.marker.colorbar.title" _path_str = "histogram.marker.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram/selected/__init__.py b/plotly/graph_objs/histogram/selected/__init__.py index ae964f0b65..473168fdb5 100644 --- a/plotly/graph_objs/histogram/selected/__init__.py +++ b/plotly/graph_objs/histogram/selected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.Marker", "._textfont.Textfont"] +) diff --git a/plotly/graph_objs/histogram/selected/_marker.py b/plotly/graph_objs/histogram/selected/_marker.py index 5f9d22286b..3a35810247 100644 --- a/plotly/graph_objs/histogram/selected/_marker.py +++ b/plotly/graph_objs/histogram/selected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram.selected" _path_str = "histogram.selected.marker" _valid_props = {"color", "opacity"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # opacity - # ------- @property def opacity(self): """ @@ -89,8 +51,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -119,14 +79,11 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -141,26 +98,10 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("opacity", arg, opacity) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram/selected/_textfont.py b/plotly/graph_objs/histogram/selected/_textfont.py index 90cc38844d..894084ded3 100644 --- a/plotly/graph_objs/histogram/selected/_textfont.py +++ b/plotly/graph_objs/histogram/selected/_textfont.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram.selected" _path_str = "histogram.selected.textfont" _valid_props = {"color"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -95,14 +57,11 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -117,22 +76,9 @@ def __init__(self, arg=None, color=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram/unselected/__init__.py b/plotly/graph_objs/histogram/unselected/__init__.py index ae964f0b65..473168fdb5 100644 --- a/plotly/graph_objs/histogram/unselected/__init__.py +++ b/plotly/graph_objs/histogram/unselected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.Marker", "._textfont.Textfont"] +) diff --git a/plotly/graph_objs/histogram/unselected/_marker.py b/plotly/graph_objs/histogram/unselected/_marker.py index 9db19dffb2..eba6958cfc 100644 --- a/plotly/graph_objs/histogram/unselected/_marker.py +++ b/plotly/graph_objs/histogram/unselected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram.unselected" _path_str = "histogram.unselected.marker" _valid_props = {"color", "opacity"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # opacity - # ------- @property def opacity(self): """ @@ -91,8 +53,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -125,14 +85,11 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -147,26 +104,10 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("opacity", arg, opacity) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram/unselected/_textfont.py b/plotly/graph_objs/histogram/unselected/_textfont.py index 746af4b38c..2c84d5c53c 100644 --- a/plotly/graph_objs/histogram/unselected/_textfont.py +++ b/plotly/graph_objs/histogram/unselected/_textfont.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram.unselected" _path_str = "histogram.unselected.textfont" _valid_props = {"color"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -98,14 +60,11 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -120,22 +79,9 @@ def __init__(self, arg=None, color=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram2d/__init__.py b/plotly/graph_objs/histogram2d/__init__.py index 158cf59c39..0c0f648831 100644 --- a/plotly/graph_objs/histogram2d/__init__.py +++ b/plotly/graph_objs/histogram2d/__init__.py @@ -1,32 +1,17 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._colorbar import ColorBar - from ._hoverlabel import Hoverlabel - from ._legendgrouptitle import Legendgrouptitle - from ._marker import Marker - from ._stream import Stream - from ._textfont import Textfont - from ._xbins import XBins - from ._ybins import YBins - from . import colorbar - from . import hoverlabel - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/histogram2d/_colorbar.py b/plotly/graph_objs/histogram2d/_colorbar.py index ab3d968697..ca25240d6e 100644 --- a/plotly/graph_objs/histogram2d/_colorbar.py +++ b/plotly/graph_objs/histogram2d/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram2d" _path_str = "histogram2d.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -913,8 +638,6 @@ 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 @@ -925,8 +648,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -949,8 +670,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -974,8 +693,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1000,8 +717,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1020,8 +735,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1047,8 +760,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1068,8 +779,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1091,8 +800,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1112,8 +819,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1134,8 +839,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1154,8 +857,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1175,8 +876,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1195,8 +894,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1215,8 +912,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1226,18 +921,6 @@ 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 @@ -1248,8 +931,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1274,8 +955,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1298,8 +977,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1318,8 +995,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1341,8 +1016,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1367,8 +1040,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1391,8 +1062,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1411,8 +1080,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1434,8 +1101,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1985,14 +1650,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2007,214 +1669,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram2d/_hoverlabel.py b/plotly/graph_objs/histogram2d/_hoverlabel.py index 715c1cc3db..6412f1dafb 100644 --- a/plotly/graph_objs/histogram2d/_hoverlabel.py +++ b/plotly/graph_objs/histogram2d/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram2d" _path_str = "histogram2d.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram2d/_legendgrouptitle.py b/plotly/graph_objs/histogram2d/_legendgrouptitle.py index 979b092a17..8d54b8dcc7 100644 --- a/plotly/graph_objs/histogram2d/_legendgrouptitle.py +++ b/plotly/graph_objs/histogram2d/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram2d" _path_str = "histogram2d.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram2d/_marker.py b/plotly/graph_objs/histogram2d/_marker.py index 54184ac1ec..a6d0c401a0 100644 --- a/plotly/graph_objs/histogram2d/_marker.py +++ b/plotly/graph_objs/histogram2d/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram2d" _path_str = "histogram2d.marker" _valid_props = {"color", "colorsrc"} - # color - # ----- @property def color(self): """ @@ -30,8 +29,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -50,8 +47,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -82,14 +77,11 @@ def __init__(self, arg=None, color=None, colorsrc=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -104,26 +96,10 @@ def __init__(self, arg=None, color=None, colorsrc=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram2d/_stream.py b/plotly/graph_objs/histogram2d/_stream.py index 6f36c5ab36..970b8c238f 100644 --- a/plotly/graph_objs/histogram2d/_stream.py +++ b/plotly/graph_objs/histogram2d/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram2d" _path_str = "histogram2d.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -94,14 +89,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -116,26 +108,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram2d/_textfont.py b/plotly/graph_objs/histogram2d/_textfont.py index ca9fc73e12..61a55ea0a5 100644 --- a/plotly/graph_objs/histogram2d/_textfont.py +++ b/plotly/graph_objs/histogram2d/_textfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram2d" _path_str = "histogram2d.textfont" _valid_props = { @@ -20,8 +21,6 @@ class Textfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram2d/_xbins.py b/plotly/graph_objs/histogram2d/_xbins.py index 0f81cdb039..8022c4dfd8 100644 --- a/plotly/graph_objs/histogram2d/_xbins.py +++ b/plotly/graph_objs/histogram2d/_xbins.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class XBins(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram2d" _path_str = "histogram2d.xbins" _valid_props = {"end", "size", "start"} - # end - # --- @property def end(self): """ @@ -34,8 +33,6 @@ def end(self): def end(self, val): self["end"] = val - # size - # ---- @property def size(self): """ @@ -60,8 +57,6 @@ def size(self): def size(self, val): self["size"] = val - # start - # ----- @property def start(self): """ @@ -88,8 +83,6 @@ def start(self): def start(self, val): self["start"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -168,14 +161,11 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): ------- XBins """ - super(XBins, self).__init__("xbins") - + super().__init__("xbins") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -190,30 +180,11 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("end", arg, end) + self._set_property("size", arg, size) + self._set_property("start", arg, start) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram2d/_ybins.py b/plotly/graph_objs/histogram2d/_ybins.py index 1332dd8f48..a6f02dca88 100644 --- a/plotly/graph_objs/histogram2d/_ybins.py +++ b/plotly/graph_objs/histogram2d/_ybins.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class YBins(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram2d" _path_str = "histogram2d.ybins" _valid_props = {"end", "size", "start"} - # end - # --- @property def end(self): """ @@ -34,8 +33,6 @@ def end(self): def end(self, val): self["end"] = val - # size - # ---- @property def size(self): """ @@ -60,8 +57,6 @@ def size(self): def size(self, val): self["size"] = val - # start - # ----- @property def start(self): """ @@ -88,8 +83,6 @@ def start(self): def start(self, val): self["start"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -168,14 +161,11 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): ------- YBins """ - super(YBins, self).__init__("ybins") - + super().__init__("ybins") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -190,30 +180,11 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("end", arg, end) + self._set_property("size", arg, size) + self._set_property("start", arg, start) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram2d/colorbar/__init__.py b/plotly/graph_objs/histogram2d/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/histogram2d/colorbar/__init__.py +++ b/plotly/graph_objs/histogram2d/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/histogram2d/colorbar/_tickfont.py b/plotly/graph_objs/histogram2d/colorbar/_tickfont.py index 53a01f84f1..01cca1e48c 100644 --- a/plotly/graph_objs/histogram2d/colorbar/_tickfont.py +++ b/plotly/graph_objs/histogram2d/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram2d.colorbar" _path_str = "histogram2d.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram2d/colorbar/_tickformatstop.py b/plotly/graph_objs/histogram2d/colorbar/_tickformatstop.py index 026a050d68..0359118953 100644 --- a/plotly/graph_objs/histogram2d/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/histogram2d/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram2d.colorbar" _path_str = "histogram2d.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram2d/colorbar/_title.py b/plotly/graph_objs/histogram2d/colorbar/_title.py index fa7662a0ee..1fe10f6907 100644 --- a/plotly/graph_objs/histogram2d/colorbar/_title.py +++ b/plotly/graph_objs/histogram2d/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram2d.colorbar" _path_str = "histogram2d.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram2d/colorbar/title/__init__.py b/plotly/graph_objs/histogram2d/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/histogram2d/colorbar/title/__init__.py +++ b/plotly/graph_objs/histogram2d/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/histogram2d/colorbar/title/_font.py b/plotly/graph_objs/histogram2d/colorbar/title/_font.py index f1d194ff41..7a58d7c078 100644 --- a/plotly/graph_objs/histogram2d/colorbar/title/_font.py +++ b/plotly/graph_objs/histogram2d/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram2d.colorbar.title" _path_str = "histogram2d.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram2d/hoverlabel/__init__.py b/plotly/graph_objs/histogram2d/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/histogram2d/hoverlabel/__init__.py +++ b/plotly/graph_objs/histogram2d/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/histogram2d/hoverlabel/_font.py b/plotly/graph_objs/histogram2d/hoverlabel/_font.py index 91b139efb2..150eec33bb 100644 --- a/plotly/graph_objs/histogram2d/hoverlabel/_font.py +++ b/plotly/graph_objs/histogram2d/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram2d.hoverlabel" _path_str = "histogram2d.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram2d/legendgrouptitle/__init__.py b/plotly/graph_objs/histogram2d/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/histogram2d/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/histogram2d/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/histogram2d/legendgrouptitle/_font.py b/plotly/graph_objs/histogram2d/legendgrouptitle/_font.py index 37188e5d4e..8a6d9df215 100644 --- a/plotly/graph_objs/histogram2d/legendgrouptitle/_font.py +++ b/plotly/graph_objs/histogram2d/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram2d.legendgrouptitle" _path_str = "histogram2d.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram2dcontour/__init__.py b/plotly/graph_objs/histogram2dcontour/__init__.py index 91d3b3e29c..2d04faeed7 100644 --- a/plotly/graph_objs/histogram2dcontour/__init__.py +++ b/plotly/graph_objs/histogram2dcontour/__init__.py @@ -1,37 +1,19 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._colorbar import ColorBar - from ._contours import Contours - from ._hoverlabel import Hoverlabel - from ._legendgrouptitle import Legendgrouptitle - from ._line import Line - from ._marker import Marker - from ._stream import Stream - from ._textfont import Textfont - from ._xbins import XBins - from ._ybins import YBins - from . import colorbar - from . import contours - from . import hoverlabel - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/histogram2dcontour/_colorbar.py b/plotly/graph_objs/histogram2dcontour/_colorbar.py index dafdc0e28b..edea249057 100644 --- a/plotly/graph_objs/histogram2dcontour/_colorbar.py +++ b/plotly/graph_objs/histogram2dcontour/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram2dcontour" _path_str = "histogram2dcontour.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -913,8 +638,6 @@ 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 @@ -925,8 +648,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -949,8 +670,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -974,8 +693,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1000,8 +717,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1020,8 +735,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1047,8 +760,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1068,8 +779,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1091,8 +800,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1112,8 +819,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1134,8 +839,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1154,8 +857,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1175,8 +876,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1195,8 +894,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1215,8 +912,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1226,18 +921,6 @@ 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 @@ -1248,8 +931,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1274,8 +955,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1298,8 +977,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1318,8 +995,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1341,8 +1016,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1367,8 +1040,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1391,8 +1062,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1411,8 +1080,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1434,8 +1101,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1985,14 +1650,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2007,214 +1669,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram2dcontour/_contours.py b/plotly/graph_objs/histogram2dcontour/_contours.py index 3bde7c8a43..6c7f0d94c2 100644 --- a/plotly/graph_objs/histogram2dcontour/_contours.py +++ b/plotly/graph_objs/histogram2dcontour/_contours.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Contours(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram2dcontour" _path_str = "histogram2dcontour.contours" _valid_props = { @@ -22,8 +23,6 @@ class Contours(_BaseTraceHierarchyType): "value", } - # coloring - # -------- @property def coloring(self): """ @@ -47,8 +46,6 @@ def coloring(self): def coloring(self, val): self["coloring"] = val - # end - # --- @property def end(self): """ @@ -68,8 +65,6 @@ def end(self): def end(self, val): self["end"] = val - # labelfont - # --------- @property def labelfont(self): """ @@ -83,52 +78,6 @@ 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 @@ -139,8 +88,6 @@ def labelfont(self): def labelfont(self, val): self["labelfont"] = val - # labelformat - # ----------- @property def labelformat(self): """ @@ -163,8 +110,6 @@ def labelformat(self): def labelformat(self, val): self["labelformat"] = val - # operation - # --------- @property def operation(self): """ @@ -192,8 +137,6 @@ def operation(self): def operation(self, val): self["operation"] = val - # showlabels - # ---------- @property def showlabels(self): """ @@ -213,8 +156,6 @@ def showlabels(self): def showlabels(self, val): self["showlabels"] = val - # showlines - # --------- @property def showlines(self): """ @@ -234,8 +175,6 @@ def showlines(self): def showlines(self, val): self["showlines"] = val - # size - # ---- @property def size(self): """ @@ -254,8 +193,6 @@ def size(self): def size(self, val): self["size"] = val - # start - # ----- @property def start(self): """ @@ -275,8 +212,6 @@ def start(self): def start(self, val): self["start"] = val - # type - # ---- @property def type(self): """ @@ -299,8 +234,6 @@ def type(self): def type(self, val): self["type"] = val - # value - # ----- @property def value(self): """ @@ -324,8 +257,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -471,14 +402,11 @@ def __init__( ------- Contours """ - super(Contours, self).__init__("contours") - + super().__init__("contours") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -493,62 +421,19 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("coloring", arg, coloring) + self._set_property("end", arg, end) + self._set_property("labelfont", arg, labelfont) + self._set_property("labelformat", arg, labelformat) + self._set_property("operation", arg, operation) + self._set_property("showlabels", arg, showlabels) + self._set_property("showlines", arg, showlines) + self._set_property("size", arg, size) + self._set_property("start", arg, start) + self._set_property("type", arg, type) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram2dcontour/_hoverlabel.py b/plotly/graph_objs/histogram2dcontour/_hoverlabel.py index ff167f7ff3..e9aeaeb3d9 100644 --- a/plotly/graph_objs/histogram2dcontour/_hoverlabel.py +++ b/plotly/graph_objs/histogram2dcontour/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram2dcontour" _path_str = "histogram2dcontour.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram2dcontour/_legendgrouptitle.py b/plotly/graph_objs/histogram2dcontour/_legendgrouptitle.py index 2223befe89..1d4720bb64 100644 --- a/plotly/graph_objs/histogram2dcontour/_legendgrouptitle.py +++ b/plotly/graph_objs/histogram2dcontour/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram2dcontour" _path_str = "histogram2dcontour.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram2dcontour/_line.py b/plotly/graph_objs/histogram2dcontour/_line.py index 5f94b32130..bda57c1e4d 100644 --- a/plotly/graph_objs/histogram2dcontour/_line.py +++ b/plotly/graph_objs/histogram2dcontour/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram2dcontour" _path_str = "histogram2dcontour.line" _valid_props = {"color", "dash", "smoothing", "width"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # dash - # ---- @property def dash(self): """ @@ -96,8 +58,6 @@ def dash(self): def dash(self, val): self["dash"] = val - # smoothing - # --------- @property def smoothing(self): """ @@ -117,8 +77,6 @@ def smoothing(self): def smoothing(self, val): self["smoothing"] = val - # width - # ----- @property def width(self): """ @@ -137,8 +95,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -187,14 +143,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -209,34 +162,12 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("dash", arg, dash) + self._set_property("smoothing", arg, smoothing) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram2dcontour/_marker.py b/plotly/graph_objs/histogram2dcontour/_marker.py index bb0de7e438..f3d11bcca6 100644 --- a/plotly/graph_objs/histogram2dcontour/_marker.py +++ b/plotly/graph_objs/histogram2dcontour/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram2dcontour" _path_str = "histogram2dcontour.marker" _valid_props = {"color", "colorsrc"} - # color - # ----- @property def color(self): """ @@ -30,8 +29,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -50,8 +47,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -82,14 +77,11 @@ def __init__(self, arg=None, color=None, colorsrc=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -104,26 +96,10 @@ def __init__(self, arg=None, color=None, colorsrc=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram2dcontour/_stream.py b/plotly/graph_objs/histogram2dcontour/_stream.py index aa5f6ad009..31287da504 100644 --- a/plotly/graph_objs/histogram2dcontour/_stream.py +++ b/plotly/graph_objs/histogram2dcontour/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram2dcontour" _path_str = "histogram2dcontour.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -94,14 +89,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -116,26 +108,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram2dcontour/_textfont.py b/plotly/graph_objs/histogram2dcontour/_textfont.py index 7be04af0de..ea163a2df3 100644 --- a/plotly/graph_objs/histogram2dcontour/_textfont.py +++ b/plotly/graph_objs/histogram2dcontour/_textfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram2dcontour" _path_str = "histogram2dcontour.textfont" _valid_props = { @@ -20,8 +21,6 @@ class Textfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -339,18 +271,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -378,14 +303,11 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -400,54 +322,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram2dcontour/_xbins.py b/plotly/graph_objs/histogram2dcontour/_xbins.py index 18519299c9..45a192f63c 100644 --- a/plotly/graph_objs/histogram2dcontour/_xbins.py +++ b/plotly/graph_objs/histogram2dcontour/_xbins.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class XBins(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram2dcontour" _path_str = "histogram2dcontour.xbins" _valid_props = {"end", "size", "start"} - # end - # --- @property def end(self): """ @@ -34,8 +33,6 @@ def end(self): def end(self, val): self["end"] = val - # size - # ---- @property def size(self): """ @@ -60,8 +57,6 @@ def size(self): def size(self, val): self["size"] = val - # start - # ----- @property def start(self): """ @@ -88,8 +83,6 @@ def start(self): def start(self, val): self["start"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -168,14 +161,11 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): ------- XBins """ - super(XBins, self).__init__("xbins") - + super().__init__("xbins") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -190,30 +180,11 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("end", arg, end) + self._set_property("size", arg, size) + self._set_property("start", arg, start) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram2dcontour/_ybins.py b/plotly/graph_objs/histogram2dcontour/_ybins.py index f34bcf2949..c8f003e1d8 100644 --- a/plotly/graph_objs/histogram2dcontour/_ybins.py +++ b/plotly/graph_objs/histogram2dcontour/_ybins.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class YBins(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram2dcontour" _path_str = "histogram2dcontour.ybins" _valid_props = {"end", "size", "start"} - # end - # --- @property def end(self): """ @@ -34,8 +33,6 @@ def end(self): def end(self, val): self["end"] = val - # size - # ---- @property def size(self): """ @@ -60,8 +57,6 @@ def size(self): def size(self, val): self["size"] = val - # start - # ----- @property def start(self): """ @@ -88,8 +83,6 @@ def start(self): def start(self, val): self["start"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -168,14 +161,11 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): ------- YBins """ - super(YBins, self).__init__("ybins") - + super().__init__("ybins") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -190,30 +180,11 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("end", arg, end) + self._set_property("size", arg, size) + self._set_property("start", arg, start) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram2dcontour/colorbar/__init__.py b/plotly/graph_objs/histogram2dcontour/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/histogram2dcontour/colorbar/__init__.py +++ b/plotly/graph_objs/histogram2dcontour/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/histogram2dcontour/colorbar/_tickfont.py b/plotly/graph_objs/histogram2dcontour/colorbar/_tickfont.py index 0e9fb3405d..eb96a8103b 100644 --- a/plotly/graph_objs/histogram2dcontour/colorbar/_tickfont.py +++ b/plotly/graph_objs/histogram2dcontour/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram2dcontour.colorbar" _path_str = "histogram2dcontour.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram2dcontour/colorbar/_tickformatstop.py b/plotly/graph_objs/histogram2dcontour/colorbar/_tickformatstop.py index 1699fa77ad..8b49cb32a8 100644 --- a/plotly/graph_objs/histogram2dcontour/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/histogram2dcontour/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram2dcontour.colorbar" _path_str = "histogram2dcontour.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram2dcontour/colorbar/_title.py b/plotly/graph_objs/histogram2dcontour/colorbar/_title.py index 752885dec3..6a6a2c9226 100644 --- a/plotly/graph_objs/histogram2dcontour/colorbar/_title.py +++ b/plotly/graph_objs/histogram2dcontour/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram2dcontour.colorbar" _path_str = "histogram2dcontour.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram2dcontour/colorbar/title/__init__.py b/plotly/graph_objs/histogram2dcontour/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/histogram2dcontour/colorbar/title/__init__.py +++ b/plotly/graph_objs/histogram2dcontour/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/histogram2dcontour/colorbar/title/_font.py b/plotly/graph_objs/histogram2dcontour/colorbar/title/_font.py index 50c3d16cae..c60f261f3e 100644 --- a/plotly/graph_objs/histogram2dcontour/colorbar/title/_font.py +++ b/plotly/graph_objs/histogram2dcontour/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram2dcontour.colorbar.title" _path_str = "histogram2dcontour.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram2dcontour/contours/__init__.py b/plotly/graph_objs/histogram2dcontour/contours/__init__.py index f1ee5b7524..ca8d81e748 100644 --- a/plotly/graph_objs/histogram2dcontour/contours/__init__.py +++ b/plotly/graph_objs/histogram2dcontour/contours/__init__.py @@ -1,11 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import(__name__, [], ["._labelfont.Labelfont"]) diff --git a/plotly/graph_objs/histogram2dcontour/contours/_labelfont.py b/plotly/graph_objs/histogram2dcontour/contours/_labelfont.py index 52126661af..dd2620bea0 100644 --- a/plotly/graph_objs/histogram2dcontour/contours/_labelfont.py +++ b/plotly/graph_objs/histogram2dcontour/contours/_labelfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Labelfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram2dcontour.contours" _path_str = "histogram2dcontour.contours.labelfont" _valid_props = { @@ -20,8 +21,6 @@ class Labelfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -340,18 +272,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -379,14 +304,11 @@ def __init__( ------- Labelfont """ - super(Labelfont, self).__init__("labelfont") - + super().__init__("labelfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -401,54 +323,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram2dcontour/hoverlabel/__init__.py b/plotly/graph_objs/histogram2dcontour/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/histogram2dcontour/hoverlabel/__init__.py +++ b/plotly/graph_objs/histogram2dcontour/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/histogram2dcontour/hoverlabel/_font.py b/plotly/graph_objs/histogram2dcontour/hoverlabel/_font.py index 405e7222a0..c2b7fc9619 100644 --- a/plotly/graph_objs/histogram2dcontour/hoverlabel/_font.py +++ b/plotly/graph_objs/histogram2dcontour/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram2dcontour.hoverlabel" _path_str = "histogram2dcontour.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/histogram2dcontour/legendgrouptitle/__init__.py b/plotly/graph_objs/histogram2dcontour/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/histogram2dcontour/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/histogram2dcontour/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/histogram2dcontour/legendgrouptitle/_font.py b/plotly/graph_objs/histogram2dcontour/legendgrouptitle/_font.py index 3252767329..b0c9d71e64 100644 --- a/plotly/graph_objs/histogram2dcontour/legendgrouptitle/_font.py +++ b/plotly/graph_objs/histogram2dcontour/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "histogram2dcontour.legendgrouptitle" _path_str = "histogram2dcontour.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/icicle/__init__.py b/plotly/graph_objs/icicle/__init__.py index 3fba9b90da..714467ed34 100644 --- a/plotly/graph_objs/icicle/__init__.py +++ b/plotly/graph_objs/icicle/__init__.py @@ -1,41 +1,21 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._domain import Domain - from ._hoverlabel import Hoverlabel - from ._insidetextfont import Insidetextfont - from ._leaf import Leaf - from ._legendgrouptitle import Legendgrouptitle - from ._marker import Marker - from ._outsidetextfont import Outsidetextfont - from ._pathbar import Pathbar - from ._root import Root - from ._stream import Stream - from ._textfont import Textfont - from ._tiling import Tiling - from . import hoverlabel - from . import legendgrouptitle - from . import marker - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/icicle/_domain.py b/plotly/graph_objs/icicle/_domain.py index 756a061f1a..fa2758792e 100644 --- a/plotly/graph_objs/icicle/_domain.py +++ b/plotly/graph_objs/icicle/_domain.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Domain(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "icicle" _path_str = "icicle.domain" _valid_props = {"column", "row", "x", "y"} - # column - # ------ @property def column(self): """ @@ -32,8 +31,6 @@ def column(self): def column(self, val): self["column"] = val - # row - # --- @property def row(self): """ @@ -54,8 +51,6 @@ def row(self): def row(self, val): self["row"] = val - # x - # - @property def x(self): """ @@ -80,8 +75,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -106,8 +99,6 @@ def y(self): def y(self, val): self["y"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -151,14 +142,11 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") - + super().__init__("domain") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -173,34 +161,12 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("column", arg, column) + self._set_property("row", arg, row) + self._set_property("x", arg, x) + self._set_property("y", arg, y) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/icicle/_hoverlabel.py b/plotly/graph_objs/icicle/_hoverlabel.py index 6e4ba23e95..fdc9e22c32 100644 --- a/plotly/graph_objs/icicle/_hoverlabel.py +++ b/plotly/graph_objs/icicle/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "icicle" _path_str = "icicle.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/icicle/_insidetextfont.py b/plotly/graph_objs/icicle/_insidetextfont.py index 60f0e664fe..38ee58c10c 100644 --- a/plotly/graph_objs/icicle/_insidetextfont.py +++ b/plotly/graph_objs/icicle/_insidetextfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Insidetextfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "icicle" _path_str = "icicle.insidetextfont" _valid_props = { @@ -29,8 +30,6 @@ class Insidetextfont(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Insidetextfont """ - super(Insidetextfont, self).__init__("insidetextfont") - + super().__init__("insidetextfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/icicle/_leaf.py b/plotly/graph_objs/icicle/_leaf.py index 9ba8f9a043..3959651719 100644 --- a/plotly/graph_objs/icicle/_leaf.py +++ b/plotly/graph_objs/icicle/_leaf.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Leaf(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "icicle" _path_str = "icicle.leaf" _valid_props = {"opacity"} - # opacity - # ------- @property def opacity(self): """ @@ -31,8 +30,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -58,14 +55,11 @@ def __init__(self, arg=None, opacity=None, **kwargs): ------- Leaf """ - super(Leaf, self).__init__("leaf") - + super().__init__("leaf") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -80,22 +74,9 @@ def __init__(self, arg=None, opacity=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("opacity", arg, opacity) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/icicle/_legendgrouptitle.py b/plotly/graph_objs/icicle/_legendgrouptitle.py index bf46d58bb5..b464eddefe 100644 --- a/plotly/graph_objs/icicle/_legendgrouptitle.py +++ b/plotly/graph_objs/icicle/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "icicle" _path_str = "icicle.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/icicle/_marker.py b/plotly/graph_objs/icicle/_marker.py index 4528bbdd1f..fc6970d4c1 100644 --- a/plotly/graph_objs/icicle/_marker.py +++ b/plotly/graph_objs/icicle/_marker.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "icicle" _path_str = "icicle.marker" _valid_props = { @@ -25,8 +26,6 @@ class Marker(_BaseTraceHierarchyType): "showscale", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -51,8 +50,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -75,8 +72,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -97,8 +92,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -121,8 +114,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -143,8 +134,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -170,8 +159,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -181,273 +168,6 @@ 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 @@ -458,8 +178,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colors - # ------ @property def colors(self): """ @@ -479,8 +197,6 @@ def colors(self): def colors(self, val): self["colors"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -533,8 +249,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorssrc - # --------- @property def colorssrc(self): """ @@ -553,8 +267,6 @@ def colorssrc(self): def colorssrc(self, val): self["colorssrc"] = val - # line - # ---- @property def line(self): """ @@ -564,21 +276,6 @@ 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 @@ -589,8 +286,6 @@ def line(self): def line(self, val): self["line"] = val - # pattern - # ------- @property def pattern(self): """ @@ -602,57 +297,6 @@ 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 @@ -663,8 +307,6 @@ def pattern(self): def pattern(self, val): self["pattern"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -686,8 +328,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # showscale - # --------- @property def showscale(self): """ @@ -708,8 +348,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -903,14 +541,11 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -925,74 +560,22 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colors", arg, colors) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorssrc", arg, colorssrc) + self._set_property("line", arg, line) + self._set_property("pattern", arg, pattern) + self._set_property("reversescale", arg, reversescale) + self._set_property("showscale", arg, showscale) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/icicle/_outsidetextfont.py b/plotly/graph_objs/icicle/_outsidetextfont.py index e6b2e9096c..67d66bcd68 100644 --- a/plotly/graph_objs/icicle/_outsidetextfont.py +++ b/plotly/graph_objs/icicle/_outsidetextfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Outsidetextfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "icicle" _path_str = "icicle.outsidetextfont" _valid_props = { @@ -29,8 +30,6 @@ class Outsidetextfont(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -580,18 +494,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -643,14 +550,11 @@ def __init__( ------- Outsidetextfont """ - super(Outsidetextfont, self).__init__("outsidetextfont") - + super().__init__("outsidetextfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -665,90 +569,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/icicle/_pathbar.py b/plotly/graph_objs/icicle/_pathbar.py index ce07a887ef..2e875aad60 100644 --- a/plotly/graph_objs/icicle/_pathbar.py +++ b/plotly/graph_objs/icicle/_pathbar.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Pathbar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "icicle" _path_str = "icicle.pathbar" _valid_props = {"edgeshape", "side", "textfont", "thickness", "visible"} - # edgeshape - # --------- @property def edgeshape(self): """ @@ -32,8 +31,6 @@ def edgeshape(self): def edgeshape(self, val): self["edgeshape"] = val - # side - # ---- @property def side(self): """ @@ -54,8 +51,6 @@ def side(self): def side(self, val): self["side"] = val - # textfont - # -------- @property def textfont(self): """ @@ -67,79 +62,6 @@ 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 @@ -150,8 +72,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # thickness - # --------- @property def thickness(self): """ @@ -172,8 +92,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # visible - # ------- @property def visible(self): """ @@ -193,8 +111,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -254,14 +170,11 @@ def __init__( ------- Pathbar """ - super(Pathbar, self).__init__("pathbar") - + super().__init__("pathbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -276,38 +189,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("edgeshape", arg, edgeshape) + self._set_property("side", arg, side) + self._set_property("textfont", arg, textfont) + self._set_property("thickness", arg, thickness) + self._set_property("visible", arg, visible) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/icicle/_root.py b/plotly/graph_objs/icicle/_root.py index 4077928046..e461b4da4c 100644 --- a/plotly/graph_objs/icicle/_root.py +++ b/plotly/graph_objs/icicle/_root.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Root(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "icicle" _path_str = "icicle.root" _valid_props = {"color"} - # color - # ----- @property def color(self): """ @@ -24,42 +23,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -71,8 +35,6 @@ def color(self): def color(self, val): self["color"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -100,14 +62,11 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Root """ - super(Root, self).__init__("root") - + super().__init__("root") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -122,22 +81,9 @@ def __init__(self, arg=None, color=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/icicle/_stream.py b/plotly/graph_objs/icicle/_stream.py index 9efe2d5e3b..1009e6061a 100644 --- a/plotly/graph_objs/icicle/_stream.py +++ b/plotly/graph_objs/icicle/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "icicle" _path_str = "icicle.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -93,14 +88,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -115,26 +107,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/icicle/_textfont.py b/plotly/graph_objs/icicle/_textfont.py index 98bcd51c13..ffbf8fd2d5 100644 --- a/plotly/graph_objs/icicle/_textfont.py +++ b/plotly/graph_objs/icicle/_textfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "icicle" _path_str = "icicle.textfont" _valid_props = { @@ -29,8 +30,6 @@ class Textfont(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/icicle/_tiling.py b/plotly/graph_objs/icicle/_tiling.py index 59a3f88164..3f13b30c13 100644 --- a/plotly/graph_objs/icicle/_tiling.py +++ b/plotly/graph_objs/icicle/_tiling.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tiling(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "icicle" _path_str = "icicle.tiling" _valid_props = {"flip", "orientation", "pad"} - # flip - # ---- @property def flip(self): """ @@ -33,8 +32,6 @@ def flip(self): def flip(self, val): self["flip"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -61,8 +58,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # pad - # --- @property def pad(self): """ @@ -81,8 +76,6 @@ def pad(self): def pad(self, val): self["pad"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -134,14 +127,11 @@ def __init__(self, arg=None, flip=None, orientation=None, pad=None, **kwargs): ------- Tiling """ - super(Tiling, self).__init__("tiling") - + super().__init__("tiling") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -156,30 +146,11 @@ def __init__(self, arg=None, flip=None, orientation=None, pad=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("flip", arg, flip) + self._set_property("orientation", arg, orientation) + self._set_property("pad", arg, pad) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/icicle/hoverlabel/__init__.py b/plotly/graph_objs/icicle/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/icicle/hoverlabel/__init__.py +++ b/plotly/graph_objs/icicle/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/icicle/hoverlabel/_font.py b/plotly/graph_objs/icicle/hoverlabel/_font.py index 1a84101217..2eace8e002 100644 --- a/plotly/graph_objs/icicle/hoverlabel/_font.py +++ b/plotly/graph_objs/icicle/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "icicle.hoverlabel" _path_str = "icicle.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/icicle/legendgrouptitle/__init__.py b/plotly/graph_objs/icicle/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/icicle/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/icicle/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/icicle/legendgrouptitle/_font.py b/plotly/graph_objs/icicle/legendgrouptitle/_font.py index 7c43ff99fa..32184b5040 100644 --- a/plotly/graph_objs/icicle/legendgrouptitle/_font.py +++ b/plotly/graph_objs/icicle/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "icicle.legendgrouptitle" _path_str = "icicle.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/icicle/marker/__init__.py b/plotly/graph_objs/icicle/marker/__init__.py index ce0279c544..700941a53e 100644 --- a/plotly/graph_objs/icicle/marker/__init__.py +++ b/plotly/graph_objs/icicle/marker/__init__.py @@ -1,16 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._colorbar import ColorBar - from ._line import Line - from ._pattern import Pattern - from . import colorbar -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".colorbar"], - ["._colorbar.ColorBar", "._line.Line", "._pattern.Pattern"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [".colorbar"], ["._colorbar.ColorBar", "._line.Line", "._pattern.Pattern"] +) diff --git a/plotly/graph_objs/icicle/marker/_colorbar.py b/plotly/graph_objs/icicle/marker/_colorbar.py index 5eea701169..a6819f8881 100644 --- a/plotly/graph_objs/icicle/marker/_colorbar.py +++ b/plotly/graph_objs/icicle/marker/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "icicle.marker" _path_str = "icicle.marker.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -913,8 +638,6 @@ 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 @@ -925,8 +648,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -949,8 +670,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -974,8 +693,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1000,8 +717,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1020,8 +735,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1047,8 +760,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1068,8 +779,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1091,8 +800,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1112,8 +819,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1134,8 +839,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1154,8 +857,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1175,8 +876,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1195,8 +894,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1215,8 +912,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1226,18 +921,6 @@ 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 @@ -1248,8 +931,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1274,8 +955,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1298,8 +977,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1318,8 +995,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1341,8 +1016,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1367,8 +1040,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1391,8 +1062,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1411,8 +1080,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1434,8 +1101,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1985,14 +1650,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2007,214 +1669,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/icicle/marker/_line.py b/plotly/graph_objs/icicle/marker/_line.py index ddf2495d2d..347ff795c3 100644 --- a/plotly/graph_objs/icicle/marker/_line.py +++ b/plotly/graph_objs/icicle/marker/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "icicle.marker" _path_str = "icicle.marker.line" _valid_props = {"color", "colorsrc", "width", "widthsrc"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -71,8 +35,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -91,8 +53,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # width - # ----- @property def width(self): """ @@ -112,8 +72,6 @@ def width(self): def width(self, val): self["width"] = val - # widthsrc - # -------- @property def widthsrc(self): """ @@ -132,8 +90,6 @@ def widthsrc(self): def widthsrc(self, val): self["widthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -180,14 +136,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -202,34 +155,12 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("width", arg, width) + self._set_property("widthsrc", arg, widthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/icicle/marker/_pattern.py b/plotly/graph_objs/icicle/marker/_pattern.py index c98945bff6..8c3983e6a8 100644 --- a/plotly/graph_objs/icicle/marker/_pattern.py +++ b/plotly/graph_objs/icicle/marker/_pattern.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Pattern(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "icicle.marker" _path_str = "icicle.marker.pattern" _valid_props = { @@ -23,8 +24,6 @@ class Pattern(_BaseTraceHierarchyType): "soliditysrc", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -38,42 +37,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -86,8 +50,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -106,8 +68,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # fgcolor - # ------- @property def fgcolor(self): """ @@ -121,42 +81,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -169,8 +94,6 @@ def fgcolor(self): def fgcolor(self, val): self["fgcolor"] = val - # fgcolorsrc - # ---------- @property def fgcolorsrc(self): """ @@ -189,8 +112,6 @@ def fgcolorsrc(self): def fgcolorsrc(self, val): self["fgcolorsrc"] = val - # fgopacity - # --------- @property def fgopacity(self): """ @@ -210,8 +131,6 @@ def fgopacity(self): def fgopacity(self, val): self["fgopacity"] = val - # fillmode - # -------- @property def fillmode(self): """ @@ -232,8 +151,6 @@ def fillmode(self): def fillmode(self, val): self["fillmode"] = val - # shape - # ----- @property def shape(self): """ @@ -255,8 +172,6 @@ def shape(self): def shape(self, val): self["shape"] = val - # shapesrc - # -------- @property def shapesrc(self): """ @@ -275,8 +190,6 @@ def shapesrc(self): def shapesrc(self, val): self["shapesrc"] = val - # size - # ---- @property def size(self): """ @@ -297,8 +210,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -317,8 +228,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # solidity - # -------- @property def solidity(self): """ @@ -341,8 +250,6 @@ def solidity(self): def solidity(self, val): self["solidity"] = val - # soliditysrc - # ----------- @property def soliditysrc(self): """ @@ -361,8 +268,6 @@ def soliditysrc(self): def soliditysrc(self, val): self["soliditysrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -493,14 +398,11 @@ def __init__( ------- Pattern """ - super(Pattern, self).__init__("pattern") - + super().__init__("pattern") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -515,66 +417,20 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("fgcolor", arg, fgcolor) + self._set_property("fgcolorsrc", arg, fgcolorsrc) + self._set_property("fgopacity", arg, fgopacity) + self._set_property("fillmode", arg, fillmode) + self._set_property("shape", arg, shape) + self._set_property("shapesrc", arg, shapesrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("solidity", arg, solidity) + self._set_property("soliditysrc", arg, soliditysrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/icicle/marker/colorbar/__init__.py b/plotly/graph_objs/icicle/marker/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/icicle/marker/colorbar/__init__.py +++ b/plotly/graph_objs/icicle/marker/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/icicle/marker/colorbar/_tickfont.py b/plotly/graph_objs/icicle/marker/colorbar/_tickfont.py index 05ab514abe..538a8fcb8f 100644 --- a/plotly/graph_objs/icicle/marker/colorbar/_tickfont.py +++ b/plotly/graph_objs/icicle/marker/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "icicle.marker.colorbar" _path_str = "icicle.marker.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/icicle/marker/colorbar/_tickformatstop.py b/plotly/graph_objs/icicle/marker/colorbar/_tickformatstop.py index 4eb45e7023..efd61597ed 100644 --- a/plotly/graph_objs/icicle/marker/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/icicle/marker/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "icicle.marker.colorbar" _path_str = "icicle.marker.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/icicle/marker/colorbar/_title.py b/plotly/graph_objs/icicle/marker/colorbar/_title.py index eb1a9c1402..669070410b 100644 --- a/plotly/graph_objs/icicle/marker/colorbar/_title.py +++ b/plotly/graph_objs/icicle/marker/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "icicle.marker.colorbar" _path_str = "icicle.marker.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/icicle/marker/colorbar/title/__init__.py b/plotly/graph_objs/icicle/marker/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/icicle/marker/colorbar/title/__init__.py +++ b/plotly/graph_objs/icicle/marker/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/icicle/marker/colorbar/title/_font.py b/plotly/graph_objs/icicle/marker/colorbar/title/_font.py index a942b5896e..05cd7ced87 100644 --- a/plotly/graph_objs/icicle/marker/colorbar/title/_font.py +++ b/plotly/graph_objs/icicle/marker/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "icicle.marker.colorbar.title" _path_str = "icicle.marker.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/icicle/pathbar/__init__.py b/plotly/graph_objs/icicle/pathbar/__init__.py index 1640397aa7..2afd605560 100644 --- a/plotly/graph_objs/icicle/pathbar/__init__.py +++ b/plotly/graph_objs/icicle/pathbar/__init__.py @@ -1,11 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import(__name__, [], ["._textfont.Textfont"]) diff --git a/plotly/graph_objs/icicle/pathbar/_textfont.py b/plotly/graph_objs/icicle/pathbar/_textfont.py index 2f4001cc85..1b844f161d 100644 --- a/plotly/graph_objs/icicle/pathbar/_textfont.py +++ b/plotly/graph_objs/icicle/pathbar/_textfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "icicle.pathbar" _path_str = "icicle.pathbar.textfont" _valid_props = { @@ -29,8 +30,6 @@ class Textfont(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/image/__init__.py b/plotly/graph_objs/image/__init__.py index 7e9c849e6e..cc978496d3 100644 --- a/plotly/graph_objs/image/__init__.py +++ b/plotly/graph_objs/image/__init__.py @@ -1,21 +1,12 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._hoverlabel import Hoverlabel - from ._legendgrouptitle import Legendgrouptitle - from ._stream import Stream - from . import hoverlabel - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".hoverlabel", ".legendgrouptitle"], + [ + "._hoverlabel.Hoverlabel", + "._legendgrouptitle.Legendgrouptitle", + "._stream.Stream", + ], +) diff --git a/plotly/graph_objs/image/_hoverlabel.py b/plotly/graph_objs/image/_hoverlabel.py index d478acc3c2..ff47c62ab6 100644 --- a/plotly/graph_objs/image/_hoverlabel.py +++ b/plotly/graph_objs/image/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "image" _path_str = "image.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/image/_legendgrouptitle.py b/plotly/graph_objs/image/_legendgrouptitle.py index 42cc69f2e3..a2d8c7ebbc 100644 --- a/plotly/graph_objs/image/_legendgrouptitle.py +++ b/plotly/graph_objs/image/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "image" _path_str = "image.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/image/_stream.py b/plotly/graph_objs/image/_stream.py index 45ae5f21c9..30f4b3c453 100644 --- a/plotly/graph_objs/image/_stream.py +++ b/plotly/graph_objs/image/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "image" _path_str = "image.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -93,14 +88,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -115,26 +107,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/image/hoverlabel/__init__.py b/plotly/graph_objs/image/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/image/hoverlabel/__init__.py +++ b/plotly/graph_objs/image/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/image/hoverlabel/_font.py b/plotly/graph_objs/image/hoverlabel/_font.py index e50d253393..0583d1dba1 100644 --- a/plotly/graph_objs/image/hoverlabel/_font.py +++ b/plotly/graph_objs/image/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "image.hoverlabel" _path_str = "image.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/image/legendgrouptitle/__init__.py b/plotly/graph_objs/image/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/image/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/image/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/image/legendgrouptitle/_font.py b/plotly/graph_objs/image/legendgrouptitle/_font.py index cedd56ff73..5a5a1b7352 100644 --- a/plotly/graph_objs/image/legendgrouptitle/_font.py +++ b/plotly/graph_objs/image/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "image.legendgrouptitle" _path_str = "image.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/indicator/__init__.py b/plotly/graph_objs/indicator/__init__.py index a2ca09418f..2326db9555 100644 --- a/plotly/graph_objs/indicator/__init__.py +++ b/plotly/graph_objs/indicator/__init__.py @@ -1,32 +1,16 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._delta import Delta - from ._domain import Domain - from ._gauge import Gauge - from ._legendgrouptitle import Legendgrouptitle - from ._number import Number - from ._stream import Stream - from ._title import Title - from . import delta - from . import gauge - from . import legendgrouptitle - from . import number - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/indicator/_delta.py b/plotly/graph_objs/indicator/_delta.py index ea1172bd31..6ee30309bf 100644 --- a/plotly/graph_objs/indicator/_delta.py +++ b/plotly/graph_objs/indicator/_delta.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Delta(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "indicator" _path_str = "indicator.delta" _valid_props = { @@ -20,8 +21,6 @@ class Delta(_BaseTraceHierarchyType): "valueformat", } - # decreasing - # ---------- @property def decreasing(self): """ @@ -31,13 +30,6 @@ 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 @@ -48,8 +40,6 @@ def decreasing(self): def decreasing(self, val): self["decreasing"] = val - # font - # ---- @property def font(self): """ @@ -61,52 +51,6 @@ 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 @@ -117,8 +61,6 @@ def font(self): def font(self, val): self["font"] = val - # increasing - # ---------- @property def increasing(self): """ @@ -128,13 +70,6 @@ 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 @@ -145,8 +80,6 @@ def increasing(self): def increasing(self, val): self["increasing"] = val - # position - # -------- @property def position(self): """ @@ -166,8 +99,6 @@ def position(self): def position(self, val): self["position"] = val - # prefix - # ------ @property def prefix(self): """ @@ -187,8 +118,6 @@ def prefix(self): def prefix(self, val): self["prefix"] = val - # reference - # --------- @property def reference(self): """ @@ -208,8 +137,6 @@ def reference(self): def reference(self, val): self["reference"] = val - # relative - # -------- @property def relative(self): """ @@ -228,8 +155,6 @@ def relative(self): def relative(self, val): self["relative"] = val - # suffix - # ------ @property def suffix(self): """ @@ -249,8 +174,6 @@ def suffix(self): def suffix(self, val): self["suffix"] = val - # valueformat - # ----------- @property def valueformat(self): """ @@ -273,8 +196,6 @@ def valueformat(self): def valueformat(self, val): self["valueformat"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -356,14 +277,11 @@ def __init__( ------- Delta """ - super(Delta, self).__init__("delta") - + super().__init__("delta") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -378,54 +296,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("decreasing", arg, decreasing) + self._set_property("font", arg, font) + self._set_property("increasing", arg, increasing) + self._set_property("position", arg, position) + self._set_property("prefix", arg, prefix) + self._set_property("reference", arg, reference) + self._set_property("relative", arg, relative) + self._set_property("suffix", arg, suffix) + self._set_property("valueformat", arg, valueformat) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/indicator/_domain.py b/plotly/graph_objs/indicator/_domain.py index 1005dea1b0..d67fef998c 100644 --- a/plotly/graph_objs/indicator/_domain.py +++ b/plotly/graph_objs/indicator/_domain.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Domain(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "indicator" _path_str = "indicator.domain" _valid_props = {"column", "row", "x", "y"} - # column - # ------ @property def column(self): """ @@ -32,8 +31,6 @@ def column(self): def column(self, val): self["column"] = val - # row - # --- @property def row(self): """ @@ -54,8 +51,6 @@ def row(self): def row(self, val): self["row"] = val - # x - # - @property def x(self): """ @@ -80,8 +75,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -106,8 +99,6 @@ def y(self): def y(self, val): self["y"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -152,14 +143,11 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") - + super().__init__("domain") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -174,34 +162,12 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("column", arg, column) + self._set_property("row", arg, row) + self._set_property("x", arg, x) + self._set_property("y", arg, y) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/indicator/_gauge.py b/plotly/graph_objs/indicator/_gauge.py index 0a4ce3b85b..8d770b7a4a 100644 --- a/plotly/graph_objs/indicator/_gauge.py +++ b/plotly/graph_objs/indicator/_gauge.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Gauge(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "indicator" _path_str = "indicator.gauge" _valid_props = { @@ -20,8 +21,6 @@ class Gauge(_BaseTraceHierarchyType): "threshold", } - # axis - # ---- @property def axis(self): """ @@ -31,186 +30,6 @@ 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 @@ -221,8 +40,6 @@ def axis(self): def axis(self, val): self["axis"] = val - # bar - # --- @property def bar(self): """ @@ -234,18 +51,6 @@ 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 @@ -256,8 +61,6 @@ def bar(self): def bar(self, val): self["bar"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -268,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -315,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -327,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -374,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -394,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # shape - # ----- @property def shape(self): """ @@ -415,8 +142,6 @@ def shape(self): def shape(self, val): self["shape"] = val - # steps - # ----- @property def steps(self): """ @@ -426,41 +151,6 @@ 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] @@ -471,8 +161,6 @@ def steps(self): def steps(self, val): self["steps"] = val - # stepdefaults - # ------------ @property def stepdefaults(self): """ @@ -487,8 +175,6 @@ 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 @@ -499,8 +185,6 @@ def stepdefaults(self): def stepdefaults(self, val): self["stepdefaults"] = val - # threshold - # --------- @property def threshold(self): """ @@ -510,18 +194,6 @@ 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 @@ -532,8 +204,6 @@ def threshold(self): def threshold(self, val): self["threshold"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -621,14 +291,11 @@ def __init__( ------- Gauge """ - super(Gauge, self).__init__("gauge") - + super().__init__("gauge") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -643,54 +310,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("axis", arg, axis) + self._set_property("bar", arg, bar) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("shape", arg, shape) + self._set_property("steps", arg, steps) + self._set_property("stepdefaults", arg, stepdefaults) + self._set_property("threshold", arg, threshold) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/indicator/_legendgrouptitle.py b/plotly/graph_objs/indicator/_legendgrouptitle.py index d577919e71..a6462f5786 100644 --- a/plotly/graph_objs/indicator/_legendgrouptitle.py +++ b/plotly/graph_objs/indicator/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "indicator" _path_str = "indicator.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/indicator/_number.py b/plotly/graph_objs/indicator/_number.py index bd09a52f1c..74bc79d5bf 100644 --- a/plotly/graph_objs/indicator/_number.py +++ b/plotly/graph_objs/indicator/_number.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Number(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "indicator" _path_str = "indicator.number" _valid_props = {"font", "prefix", "suffix", "valueformat"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # prefix - # ------ @property def prefix(self): """ @@ -100,8 +51,6 @@ def prefix(self): def prefix(self, val): self["prefix"] = val - # suffix - # ------ @property def suffix(self): """ @@ -121,8 +70,6 @@ def suffix(self): def suffix(self, val): self["suffix"] = val - # valueformat - # ----------- @property def valueformat(self): """ @@ -145,8 +92,6 @@ def valueformat(self): def valueformat(self, val): self["valueformat"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -191,14 +136,11 @@ def __init__( ------- Number """ - super(Number, self).__init__("number") - + super().__init__("number") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -213,34 +155,12 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("prefix", arg, prefix) + self._set_property("suffix", arg, suffix) + self._set_property("valueformat", arg, valueformat) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/indicator/_stream.py b/plotly/graph_objs/indicator/_stream.py index 1d962228b6..2d909c626f 100644 --- a/plotly/graph_objs/indicator/_stream.py +++ b/plotly/graph_objs/indicator/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "indicator" _path_str = "indicator.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -94,14 +89,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -116,26 +108,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/indicator/_title.py b/plotly/graph_objs/indicator/_title.py index 6f0b54ed75..2f37f2fb93 100644 --- a/plotly/graph_objs/indicator/_title.py +++ b/plotly/graph_objs/indicator/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "indicator" _path_str = "indicator.title" _valid_props = {"align", "font", "text"} - # align - # ----- @property def align(self): """ @@ -33,8 +32,6 @@ def align(self): def align(self, val): self["align"] = val - # font - # ---- @property def font(self): """ @@ -46,52 +43,6 @@ 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 @@ -102,8 +53,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -161,14 +108,11 @@ def __init__(self, arg=None, align=None, font=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -183,30 +127,11 @@ def __init__(self, arg=None, align=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/indicator/delta/__init__.py b/plotly/graph_objs/indicator/delta/__init__.py index bb0867bc52..428713734d 100644 --- a/plotly/graph_objs/indicator/delta/__init__.py +++ b/plotly/graph_objs/indicator/delta/__init__.py @@ -1,15 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._decreasing.Decreasing", "._font.Font", "._increasing.Increasing"] +) diff --git a/plotly/graph_objs/indicator/delta/_decreasing.py b/plotly/graph_objs/indicator/delta/_decreasing.py index 0cef41f0be..3bc604b849 100644 --- a/plotly/graph_objs/indicator/delta/_decreasing.py +++ b/plotly/graph_objs/indicator/delta/_decreasing.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Decreasing(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "indicator.delta" _path_str = "indicator.delta.decreasing" _valid_props = {"color", "symbol"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # symbol - # ------ @property def symbol(self): """ @@ -90,8 +52,6 @@ def symbol(self): def symbol(self, val): self["symbol"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -120,14 +80,11 @@ def __init__(self, arg=None, color=None, symbol=None, **kwargs): ------- Decreasing """ - super(Decreasing, self).__init__("decreasing") - + super().__init__("decreasing") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -142,26 +99,10 @@ def __init__(self, arg=None, color=None, symbol=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("symbol", arg, symbol) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/indicator/delta/_font.py b/plotly/graph_objs/indicator/delta/_font.py index 41f9eababf..325d61e25a 100644 --- a/plotly/graph_objs/indicator/delta/_font.py +++ b/plotly/graph_objs/indicator/delta/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "indicator.delta" _path_str = "indicator.delta.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/indicator/delta/_increasing.py b/plotly/graph_objs/indicator/delta/_increasing.py index 842122770c..c22854c92a 100644 --- a/plotly/graph_objs/indicator/delta/_increasing.py +++ b/plotly/graph_objs/indicator/delta/_increasing.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Increasing(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "indicator.delta" _path_str = "indicator.delta.increasing" _valid_props = {"color", "symbol"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # symbol - # ------ @property def symbol(self): """ @@ -90,8 +52,6 @@ def symbol(self): def symbol(self, val): self["symbol"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -120,14 +80,11 @@ def __init__(self, arg=None, color=None, symbol=None, **kwargs): ------- Increasing """ - super(Increasing, self).__init__("increasing") - + super().__init__("increasing") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -142,26 +99,10 @@ def __init__(self, arg=None, color=None, symbol=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("symbol", arg, symbol) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/indicator/gauge/__init__.py b/plotly/graph_objs/indicator/gauge/__init__.py index e7ae622591..45f438083f 100644 --- a/plotly/graph_objs/indicator/gauge/__init__.py +++ b/plotly/graph_objs/indicator/gauge/__init__.py @@ -1,20 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._axis import Axis - from ._bar import Bar - from ._step import Step - from ._threshold import Threshold - from . import axis - from . import bar - from . import step - 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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".axis", ".bar", ".step", ".threshold"], + ["._axis.Axis", "._bar.Bar", "._step.Step", "._threshold.Threshold"], +) diff --git a/plotly/graph_objs/indicator/gauge/_axis.py b/plotly/graph_objs/indicator/gauge/_axis.py index f35563e787..bede538704 100644 --- a/plotly/graph_objs/indicator/gauge/_axis.py +++ b/plotly/graph_objs/indicator/gauge/_axis.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Axis(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "indicator.gauge" _path_str = "indicator.gauge.axis" _valid_props = { @@ -41,8 +42,6 @@ class Axis(_BaseTraceHierarchyType): "visible", } - # dtick - # ----- @property def dtick(self): """ @@ -79,8 +78,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -104,8 +101,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -131,8 +126,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -152,8 +145,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -176,8 +167,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # range - # ----- @property def range(self): """ @@ -201,8 +190,6 @@ def range(self): def range(self, val): self["range"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -221,8 +208,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -245,8 +230,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -265,8 +248,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -289,8 +270,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -310,8 +289,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -337,8 +314,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -361,8 +336,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -373,42 +346,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -420,8 +358,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -433,52 +369,6 @@ 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 @@ -489,8 +379,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -519,8 +407,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -530,42 +416,6 @@ 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] @@ -576,8 +426,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -592,8 +440,6 @@ 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 @@ -604,8 +450,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -630,8 +474,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -650,8 +492,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -677,8 +517,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -698,8 +536,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -721,8 +557,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -742,8 +576,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -764,8 +596,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -784,8 +614,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -805,8 +633,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -825,8 +651,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -845,8 +669,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # visible - # ------- @property def visible(self): """ @@ -867,8 +689,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1235,14 +1055,11 @@ def __init__( ------- Axis """ - super(Axis, self).__init__("axis") - + super().__init__("axis") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1257,138 +1074,38 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("range", arg, range) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("visible", arg, visible) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/indicator/gauge/_bar.py b/plotly/graph_objs/indicator/gauge/_bar.py index 41160d59fa..547745c333 100644 --- a/plotly/graph_objs/indicator/gauge/_bar.py +++ b/plotly/graph_objs/indicator/gauge/_bar.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Bar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "indicator.gauge" _path_str = "indicator.gauge.bar" _valid_props = {"color", "line", "thickness"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # line - # ---- @property def line(self): """ @@ -80,15 +42,6 @@ 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 @@ -99,8 +52,6 @@ def line(self): def line(self, val): self["line"] = val - # thickness - # --------- @property def thickness(self): """ @@ -120,8 +71,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -160,14 +109,11 @@ def __init__(self, arg=None, color=None, line=None, thickness=None, **kwargs): ------- Bar """ - super(Bar, self).__init__("bar") - + super().__init__("bar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -182,30 +128,11 @@ def __init__(self, arg=None, color=None, line=None, thickness=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("line", arg, line) + self._set_property("thickness", arg, thickness) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/indicator/gauge/_step.py b/plotly/graph_objs/indicator/gauge/_step.py index 6e69805fab..66d0ba1e60 100644 --- a/plotly/graph_objs/indicator/gauge/_step.py +++ b/plotly/graph_objs/indicator/gauge/_step.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Step(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "indicator.gauge" _path_str = "indicator.gauge.step" _valid_props = {"color", "line", "name", "range", "templateitemname", "thickness"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # line - # ---- @property def line(self): """ @@ -80,15 +42,6 @@ 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 @@ -99,8 +52,6 @@ def line(self): def line(self, val): self["line"] = val - # name - # ---- @property def name(self): """ @@ -126,8 +77,6 @@ def name(self): def name(self, val): self["name"] = val - # range - # ----- @property def range(self): """ @@ -151,8 +100,6 @@ def range(self): def range(self, val): self["range"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -179,8 +126,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # thickness - # --------- @property def thickness(self): """ @@ -200,8 +145,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -290,14 +233,11 @@ def __init__( ------- Step """ - super(Step, self).__init__("steps") - + super().__init__("steps") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -312,42 +252,14 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("line", arg, line) + self._set_property("name", arg, name) + self._set_property("range", arg, range) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("thickness", arg, thickness) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/indicator/gauge/_threshold.py b/plotly/graph_objs/indicator/gauge/_threshold.py index 288a7fadfe..2cdfb844b0 100644 --- a/plotly/graph_objs/indicator/gauge/_threshold.py +++ b/plotly/graph_objs/indicator/gauge/_threshold.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Threshold(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "indicator.gauge" _path_str = "indicator.gauge.threshold" _valid_props = {"line", "thickness", "value"} - # line - # ---- @property def line(self): """ @@ -21,13 +20,6 @@ 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 @@ -38,8 +30,6 @@ def line(self): def line(self, val): self["line"] = val - # thickness - # --------- @property def thickness(self): """ @@ -59,8 +49,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # value - # ----- @property def value(self): """ @@ -79,8 +67,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -117,14 +103,11 @@ def __init__(self, arg=None, line=None, thickness=None, value=None, **kwargs): ------- Threshold """ - super(Threshold, self).__init__("threshold") - + super().__init__("threshold") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -139,30 +122,11 @@ def __init__(self, arg=None, line=None, thickness=None, value=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("line", arg, line) + self._set_property("thickness", arg, thickness) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/indicator/gauge/axis/__init__.py b/plotly/graph_objs/indicator/gauge/axis/__init__.py index ae53e8859f..a1ed04a04e 100644 --- a/plotly/graph_objs/indicator/gauge/axis/__init__.py +++ b/plotly/graph_objs/indicator/gauge/axis/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop"] +) diff --git a/plotly/graph_objs/indicator/gauge/axis/_tickfont.py b/plotly/graph_objs/indicator/gauge/axis/_tickfont.py index fcb620a75e..bad45804ea 100644 --- a/plotly/graph_objs/indicator/gauge/axis/_tickfont.py +++ b/plotly/graph_objs/indicator/gauge/axis/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "indicator.gauge.axis" _path_str = "indicator.gauge.axis.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/indicator/gauge/axis/_tickformatstop.py b/plotly/graph_objs/indicator/gauge/axis/_tickformatstop.py index b6f48d2a69..bc63df86ff 100644 --- a/plotly/graph_objs/indicator/gauge/axis/_tickformatstop.py +++ b/plotly/graph_objs/indicator/gauge/axis/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "indicator.gauge.axis" _path_str = "indicator.gauge.axis.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/indicator/gauge/bar/__init__.py b/plotly/graph_objs/indicator/gauge/bar/__init__.py index 8722c15a2b..579ff002ce 100644 --- a/plotly/graph_objs/indicator/gauge/bar/__init__.py +++ b/plotly/graph_objs/indicator/gauge/bar/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/indicator/gauge/bar/_line.py b/plotly/graph_objs/indicator/gauge/bar/_line.py index 7e9b0f3d76..05f5be4aab 100644 --- a/plotly/graph_objs/indicator/gauge/bar/_line.py +++ b/plotly/graph_objs/indicator/gauge/bar/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "indicator.gauge.bar" _path_str = "indicator.gauge.bar.line" _valid_props = {"color", "width"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # width - # ----- @property def width(self): """ @@ -89,8 +51,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -121,14 +81,11 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -143,26 +100,10 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/indicator/gauge/step/__init__.py b/plotly/graph_objs/indicator/gauge/step/__init__.py index 8722c15a2b..579ff002ce 100644 --- a/plotly/graph_objs/indicator/gauge/step/__init__.py +++ b/plotly/graph_objs/indicator/gauge/step/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/indicator/gauge/step/_line.py b/plotly/graph_objs/indicator/gauge/step/_line.py index ef6682be3b..484fdafc14 100644 --- a/plotly/graph_objs/indicator/gauge/step/_line.py +++ b/plotly/graph_objs/indicator/gauge/step/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "indicator.gauge.step" _path_str = "indicator.gauge.step.line" _valid_props = {"color", "width"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # width - # ----- @property def width(self): """ @@ -89,8 +51,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -121,14 +81,11 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -143,26 +100,10 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/indicator/gauge/threshold/__init__.py b/plotly/graph_objs/indicator/gauge/threshold/__init__.py index 8722c15a2b..579ff002ce 100644 --- a/plotly/graph_objs/indicator/gauge/threshold/__init__.py +++ b/plotly/graph_objs/indicator/gauge/threshold/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/indicator/gauge/threshold/_line.py b/plotly/graph_objs/indicator/gauge/threshold/_line.py index 6a437a88d5..24a4dc43a8 100644 --- a/plotly/graph_objs/indicator/gauge/threshold/_line.py +++ b/plotly/graph_objs/indicator/gauge/threshold/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "indicator.gauge.threshold" _path_str = "indicator.gauge.threshold.line" _valid_props = {"color", "width"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # width - # ----- @property def width(self): """ @@ -89,8 +51,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -119,14 +79,11 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -141,26 +98,10 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/indicator/legendgrouptitle/__init__.py b/plotly/graph_objs/indicator/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/indicator/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/indicator/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/indicator/legendgrouptitle/_font.py b/plotly/graph_objs/indicator/legendgrouptitle/_font.py index 63989ccdd7..09d9b8629d 100644 --- a/plotly/graph_objs/indicator/legendgrouptitle/_font.py +++ b/plotly/graph_objs/indicator/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "indicator.legendgrouptitle" _path_str = "indicator.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/indicator/number/__init__.py b/plotly/graph_objs/indicator/number/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/indicator/number/__init__.py +++ b/plotly/graph_objs/indicator/number/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/indicator/number/_font.py b/plotly/graph_objs/indicator/number/_font.py index abe1446861..9b32417c8a 100644 --- a/plotly/graph_objs/indicator/number/_font.py +++ b/plotly/graph_objs/indicator/number/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "indicator.number" _path_str = "indicator.number.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/indicator/title/__init__.py b/plotly/graph_objs/indicator/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/indicator/title/__init__.py +++ b/plotly/graph_objs/indicator/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/indicator/title/_font.py b/plotly/graph_objs/indicator/title/_font.py index d5ddfe375c..d1fea6e0c7 100644 --- a/plotly/graph_objs/indicator/title/_font.py +++ b/plotly/graph_objs/indicator/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "indicator.title" _path_str = "indicator.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/isosurface/__init__.py b/plotly/graph_objs/isosurface/__init__.py index 505fd03f99..0b8a4b7653 100644 --- a/plotly/graph_objs/isosurface/__init__.py +++ b/plotly/graph_objs/isosurface/__init__.py @@ -1,40 +1,20 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._caps import Caps - from ._colorbar import ColorBar - from ._contour import Contour - from ._hoverlabel import Hoverlabel - from ._legendgrouptitle import Legendgrouptitle - from ._lighting import Lighting - from ._lightposition import Lightposition - from ._slices import Slices - from ._spaceframe import Spaceframe - from ._stream import Stream - from ._surface import Surface - from . import caps - from . import colorbar - from . import hoverlabel - from . import legendgrouptitle - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/isosurface/_caps.py b/plotly/graph_objs/isosurface/_caps.py index f6dcf8ef17..abb1a708bd 100644 --- a/plotly/graph_objs/isosurface/_caps.py +++ b/plotly/graph_objs/isosurface/_caps.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Caps(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "isosurface" _path_str = "isosurface.caps" _valid_props = {"x", "y", "z"} - # x - # - @property def x(self): """ @@ -21,22 +20,6 @@ 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 @@ -47,8 +30,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -58,22 +39,6 @@ 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 @@ -84,8 +49,6 @@ def y(self): def y(self, val): self["y"] = val - # z - # - @property def z(self): """ @@ -95,22 +58,6 @@ 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 @@ -121,8 +68,6 @@ def z(self): def z(self, val): self["z"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -161,14 +106,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Caps """ - super(Caps, self).__init__("caps") - + super().__init__("caps") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -183,30 +125,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("x", arg, x) + self._set_property("y", arg, y) + self._set_property("z", arg, z) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/isosurface/_colorbar.py b/plotly/graph_objs/isosurface/_colorbar.py index 3f9bbf779d..1b3aee2395 100644 --- a/plotly/graph_objs/isosurface/_colorbar.py +++ b/plotly/graph_objs/isosurface/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "isosurface" _path_str = "isosurface.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -912,8 +637,6 @@ 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 @@ -924,8 +647,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -948,8 +669,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -973,8 +692,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -999,8 +716,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1019,8 +734,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1046,8 +759,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1067,8 +778,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1090,8 +799,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1111,8 +818,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1133,8 +838,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1153,8 +856,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1174,8 +875,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1194,8 +893,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1214,8 +911,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1225,18 +920,6 @@ 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 @@ -1247,8 +930,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1273,8 +954,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1297,8 +976,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1317,8 +994,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1340,8 +1015,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1366,8 +1039,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1390,8 +1061,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1410,8 +1079,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1433,8 +1100,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1984,14 +1649,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2006,214 +1668,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/isosurface/_contour.py b/plotly/graph_objs/isosurface/_contour.py index 2ad2e6a31b..bf48a82504 100644 --- a/plotly/graph_objs/isosurface/_contour.py +++ b/plotly/graph_objs/isosurface/_contour.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Contour(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "isosurface" _path_str = "isosurface.contour" _valid_props = {"color", "show", "width"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # show - # ---- @property def show(self): """ @@ -89,8 +51,6 @@ def show(self): def show(self, val): self["show"] = val - # width - # ----- @property def width(self): """ @@ -109,8 +69,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -143,14 +101,11 @@ def __init__(self, arg=None, color=None, show=None, width=None, **kwargs): ------- Contour """ - super(Contour, self).__init__("contour") - + super().__init__("contour") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -165,30 +120,11 @@ def __init__(self, arg=None, color=None, show=None, width=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("show", arg, show) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/isosurface/_hoverlabel.py b/plotly/graph_objs/isosurface/_hoverlabel.py index 6e69404371..0f6e12235e 100644 --- a/plotly/graph_objs/isosurface/_hoverlabel.py +++ b/plotly/graph_objs/isosurface/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "isosurface" _path_str = "isosurface.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/isosurface/_legendgrouptitle.py b/plotly/graph_objs/isosurface/_legendgrouptitle.py index fa29490fb7..66eae59574 100644 --- a/plotly/graph_objs/isosurface/_legendgrouptitle.py +++ b/plotly/graph_objs/isosurface/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "isosurface" _path_str = "isosurface.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/isosurface/_lighting.py b/plotly/graph_objs/isosurface/_lighting.py index 33d5f3cdaa..1f4c6d03a0 100644 --- a/plotly/graph_objs/isosurface/_lighting.py +++ b/plotly/graph_objs/isosurface/_lighting.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Lighting(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "isosurface" _path_str = "isosurface.lighting" _valid_props = { @@ -18,8 +19,6 @@ class Lighting(_BaseTraceHierarchyType): "vertexnormalsepsilon", } - # ambient - # ------- @property def ambient(self): """ @@ -39,8 +38,6 @@ def ambient(self): def ambient(self, val): self["ambient"] = val - # diffuse - # ------- @property def diffuse(self): """ @@ -60,8 +57,6 @@ def diffuse(self): def diffuse(self, val): self["diffuse"] = val - # facenormalsepsilon - # ------------------ @property def facenormalsepsilon(self): """ @@ -81,8 +76,6 @@ def facenormalsepsilon(self): def facenormalsepsilon(self, val): self["facenormalsepsilon"] = val - # fresnel - # ------- @property def fresnel(self): """ @@ -103,8 +96,6 @@ def fresnel(self): def fresnel(self, val): self["fresnel"] = val - # roughness - # --------- @property def roughness(self): """ @@ -124,8 +115,6 @@ def roughness(self): def roughness(self, val): self["roughness"] = val - # specular - # -------- @property def specular(self): """ @@ -145,8 +134,6 @@ def specular(self): def specular(self, val): self["specular"] = val - # vertexnormalsepsilon - # -------------------- @property def vertexnormalsepsilon(self): """ @@ -166,8 +153,6 @@ def vertexnormalsepsilon(self): def vertexnormalsepsilon(self, val): self["vertexnormalsepsilon"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -245,14 +230,11 @@ def __init__( ------- Lighting """ - super(Lighting, self).__init__("lighting") - + super().__init__("lighting") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -267,46 +249,15 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("ambient", arg, ambient) + self._set_property("diffuse", arg, diffuse) + self._set_property("facenormalsepsilon", arg, facenormalsepsilon) + self._set_property("fresnel", arg, fresnel) + self._set_property("roughness", arg, roughness) + self._set_property("specular", arg, specular) + self._set_property("vertexnormalsepsilon", arg, vertexnormalsepsilon) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/isosurface/_lightposition.py b/plotly/graph_objs/isosurface/_lightposition.py index c7ceea779b..fe2e6b446d 100644 --- a/plotly/graph_objs/isosurface/_lightposition.py +++ b/plotly/graph_objs/isosurface/_lightposition.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Lightposition(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "isosurface" _path_str = "isosurface.lightposition" _valid_props = {"x", "y", "z"} - # x - # - @property def x(self): """ @@ -30,8 +29,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -50,8 +47,6 @@ def y(self): def y(self, val): self["y"] = val - # z - # - @property def z(self): """ @@ -70,8 +65,6 @@ def z(self): def z(self, val): self["z"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -110,14 +103,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Lightposition """ - super(Lightposition, self).__init__("lightposition") - + super().__init__("lightposition") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -132,30 +122,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("x", arg, x) + self._set_property("y", arg, y) + self._set_property("z", arg, z) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/isosurface/_slices.py b/plotly/graph_objs/isosurface/_slices.py index 73e504aaa8..69aa92fa95 100644 --- a/plotly/graph_objs/isosurface/_slices.py +++ b/plotly/graph_objs/isosurface/_slices.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Slices(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "isosurface" _path_str = "isosurface.slices" _valid_props = {"x", "y", "z"} - # x - # - @property def x(self): """ @@ -21,27 +20,6 @@ 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 @@ -52,8 +30,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -63,27 +39,6 @@ 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 @@ -94,8 +49,6 @@ def y(self): def y(self, val): self["y"] = val - # z - # - @property def z(self): """ @@ -105,27 +58,6 @@ 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 @@ -136,8 +68,6 @@ def z(self): def z(self, val): self["z"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -176,14 +106,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Slices """ - super(Slices, self).__init__("slices") - + super().__init__("slices") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -198,30 +125,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("x", arg, x) + self._set_property("y", arg, y) + self._set_property("z", arg, z) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/isosurface/_spaceframe.py b/plotly/graph_objs/isosurface/_spaceframe.py index 867a10eba0..53493eca76 100644 --- a/plotly/graph_objs/isosurface/_spaceframe.py +++ b/plotly/graph_objs/isosurface/_spaceframe.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Spaceframe(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "isosurface" _path_str = "isosurface.spaceframe" _valid_props = {"fill", "show"} - # fill - # ---- @property def fill(self): """ @@ -34,8 +33,6 @@ def fill(self): def fill(self, val): self["fill"] = val - # show - # ---- @property def show(self): """ @@ -56,8 +53,6 @@ def show(self): def show(self, val): self["show"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -102,14 +97,11 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): ------- Spaceframe """ - super(Spaceframe, self).__init__("spaceframe") - + super().__init__("spaceframe") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -124,26 +116,10 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("fill", arg, fill) + self._set_property("show", arg, show) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/isosurface/_stream.py b/plotly/graph_objs/isosurface/_stream.py index 02fac3ff9d..2a3083f247 100644 --- a/plotly/graph_objs/isosurface/_stream.py +++ b/plotly/graph_objs/isosurface/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "isosurface" _path_str = "isosurface.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -94,14 +89,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -116,26 +108,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/isosurface/_surface.py b/plotly/graph_objs/isosurface/_surface.py index 7f8de2c6fa..d9bbdf184d 100644 --- a/plotly/graph_objs/isosurface/_surface.py +++ b/plotly/graph_objs/isosurface/_surface.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Surface(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "isosurface" _path_str = "isosurface.surface" _valid_props = {"count", "fill", "pattern", "show"} - # count - # ----- @property def count(self): """ @@ -33,8 +32,6 @@ def count(self): def count(self, val): self["count"] = val - # fill - # ---- @property def fill(self): """ @@ -56,8 +53,6 @@ def fill(self): def fill(self, val): self["fill"] = val - # pattern - # ------- @property def pattern(self): """ @@ -85,8 +80,6 @@ def pattern(self): def pattern(self, val): self["pattern"] = val - # show - # ---- @property def show(self): """ @@ -105,8 +98,6 @@ def show(self): def show(self, val): self["show"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -175,14 +166,11 @@ def __init__( ------- Surface """ - super(Surface, self).__init__("surface") - + super().__init__("surface") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -197,34 +185,12 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("count", arg, count) + self._set_property("fill", arg, fill) + self._set_property("pattern", arg, pattern) + self._set_property("show", arg, show) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/isosurface/caps/__init__.py b/plotly/graph_objs/isosurface/caps/__init__.py index b7c5709451..649c038369 100644 --- a/plotly/graph_objs/isosurface/caps/__init__.py +++ b/plotly/graph_objs/isosurface/caps/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._x.X", "._y.Y", "._z.Z"] +) diff --git a/plotly/graph_objs/isosurface/caps/_x.py b/plotly/graph_objs/isosurface/caps/_x.py index f1d966f380..e48e5be9ee 100644 --- a/plotly/graph_objs/isosurface/caps/_x.py +++ b/plotly/graph_objs/isosurface/caps/_x.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class X(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "isosurface.caps" _path_str = "isosurface.caps.x" _valid_props = {"fill", "show"} - # fill - # ---- @property def fill(self): """ @@ -33,8 +32,6 @@ def fill(self): def fill(self, val): self["fill"] = val - # show - # ---- @property def show(self): """ @@ -56,8 +53,6 @@ def show(self): def show(self, val): self["show"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -102,14 +97,11 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): ------- X """ - super(X, self).__init__("x") - + super().__init__("x") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -124,26 +116,10 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("fill", arg, fill) + self._set_property("show", arg, show) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/isosurface/caps/_y.py b/plotly/graph_objs/isosurface/caps/_y.py index 8e4826bbb5..d6283acedc 100644 --- a/plotly/graph_objs/isosurface/caps/_y.py +++ b/plotly/graph_objs/isosurface/caps/_y.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Y(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "isosurface.caps" _path_str = "isosurface.caps.y" _valid_props = {"fill", "show"} - # fill - # ---- @property def fill(self): """ @@ -33,8 +32,6 @@ def fill(self): def fill(self, val): self["fill"] = val - # show - # ---- @property def show(self): """ @@ -56,8 +53,6 @@ def show(self): def show(self, val): self["show"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -102,14 +97,11 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): ------- Y """ - super(Y, self).__init__("y") - + super().__init__("y") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -124,26 +116,10 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("fill", arg, fill) + self._set_property("show", arg, show) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/isosurface/caps/_z.py b/plotly/graph_objs/isosurface/caps/_z.py index 832186f522..d5facb0d24 100644 --- a/plotly/graph_objs/isosurface/caps/_z.py +++ b/plotly/graph_objs/isosurface/caps/_z.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Z(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "isosurface.caps" _path_str = "isosurface.caps.z" _valid_props = {"fill", "show"} - # fill - # ---- @property def fill(self): """ @@ -33,8 +32,6 @@ def fill(self): def fill(self, val): self["fill"] = val - # show - # ---- @property def show(self): """ @@ -56,8 +53,6 @@ def show(self): def show(self, val): self["show"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -102,14 +97,11 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): ------- Z """ - super(Z, self).__init__("z") - + super().__init__("z") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -124,26 +116,10 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("fill", arg, fill) + self._set_property("show", arg, show) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/isosurface/colorbar/__init__.py b/plotly/graph_objs/isosurface/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/isosurface/colorbar/__init__.py +++ b/plotly/graph_objs/isosurface/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/isosurface/colorbar/_tickfont.py b/plotly/graph_objs/isosurface/colorbar/_tickfont.py index 1caa4e05f7..ae008e2787 100644 --- a/plotly/graph_objs/isosurface/colorbar/_tickfont.py +++ b/plotly/graph_objs/isosurface/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "isosurface.colorbar" _path_str = "isosurface.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/isosurface/colorbar/_tickformatstop.py b/plotly/graph_objs/isosurface/colorbar/_tickformatstop.py index 12c9c0d1a1..c4efd13f0c 100644 --- a/plotly/graph_objs/isosurface/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/isosurface/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "isosurface.colorbar" _path_str = "isosurface.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/isosurface/colorbar/_title.py b/plotly/graph_objs/isosurface/colorbar/_title.py index d7985da294..31b63f7361 100644 --- a/plotly/graph_objs/isosurface/colorbar/_title.py +++ b/plotly/graph_objs/isosurface/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "isosurface.colorbar" _path_str = "isosurface.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/isosurface/colorbar/title/__init__.py b/plotly/graph_objs/isosurface/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/isosurface/colorbar/title/__init__.py +++ b/plotly/graph_objs/isosurface/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/isosurface/colorbar/title/_font.py b/plotly/graph_objs/isosurface/colorbar/title/_font.py index 17b1b32fdd..f261151e7a 100644 --- a/plotly/graph_objs/isosurface/colorbar/title/_font.py +++ b/plotly/graph_objs/isosurface/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "isosurface.colorbar.title" _path_str = "isosurface.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/isosurface/hoverlabel/__init__.py b/plotly/graph_objs/isosurface/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/isosurface/hoverlabel/__init__.py +++ b/plotly/graph_objs/isosurface/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/isosurface/hoverlabel/_font.py b/plotly/graph_objs/isosurface/hoverlabel/_font.py index b1fe9aacd3..af5f004a77 100644 --- a/plotly/graph_objs/isosurface/hoverlabel/_font.py +++ b/plotly/graph_objs/isosurface/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "isosurface.hoverlabel" _path_str = "isosurface.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/isosurface/legendgrouptitle/__init__.py b/plotly/graph_objs/isosurface/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/isosurface/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/isosurface/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/isosurface/legendgrouptitle/_font.py b/plotly/graph_objs/isosurface/legendgrouptitle/_font.py index b84607e962..bc1c63cf3c 100644 --- a/plotly/graph_objs/isosurface/legendgrouptitle/_font.py +++ b/plotly/graph_objs/isosurface/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "isosurface.legendgrouptitle" _path_str = "isosurface.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/isosurface/slices/__init__.py b/plotly/graph_objs/isosurface/slices/__init__.py index b7c5709451..649c038369 100644 --- a/plotly/graph_objs/isosurface/slices/__init__.py +++ b/plotly/graph_objs/isosurface/slices/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._x.X", "._y.Y", "._z.Z"] +) diff --git a/plotly/graph_objs/isosurface/slices/_x.py b/plotly/graph_objs/isosurface/slices/_x.py index b7efd330fd..06ca724146 100644 --- a/plotly/graph_objs/isosurface/slices/_x.py +++ b/plotly/graph_objs/isosurface/slices/_x.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class X(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "isosurface.slices" _path_str = "isosurface.slices.x" _valid_props = {"fill", "locations", "locationssrc", "show"} - # fill - # ---- @property def fill(self): """ @@ -33,8 +32,6 @@ def fill(self): def fill(self, val): self["fill"] = val - # locations - # --------- @property def locations(self): """ @@ -55,8 +52,6 @@ def locations(self): def locations(self, val): self["locations"] = val - # locationssrc - # ------------ @property def locationssrc(self): """ @@ -76,8 +71,6 @@ def locationssrc(self): def locationssrc(self, val): self["locationssrc"] = val - # show - # ---- @property def show(self): """ @@ -97,8 +90,6 @@ def show(self): def show(self, val): self["show"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -159,14 +150,11 @@ def __init__( ------- X """ - super(X, self).__init__("x") - + super().__init__("x") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -181,34 +169,12 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("fill", arg, fill) + self._set_property("locations", arg, locations) + self._set_property("locationssrc", arg, locationssrc) + self._set_property("show", arg, show) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/isosurface/slices/_y.py b/plotly/graph_objs/isosurface/slices/_y.py index eb45261166..25c9685d5f 100644 --- a/plotly/graph_objs/isosurface/slices/_y.py +++ b/plotly/graph_objs/isosurface/slices/_y.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Y(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "isosurface.slices" _path_str = "isosurface.slices.y" _valid_props = {"fill", "locations", "locationssrc", "show"} - # fill - # ---- @property def fill(self): """ @@ -33,8 +32,6 @@ def fill(self): def fill(self, val): self["fill"] = val - # locations - # --------- @property def locations(self): """ @@ -55,8 +52,6 @@ def locations(self): def locations(self, val): self["locations"] = val - # locationssrc - # ------------ @property def locationssrc(self): """ @@ -76,8 +71,6 @@ def locationssrc(self): def locationssrc(self, val): self["locationssrc"] = val - # show - # ---- @property def show(self): """ @@ -97,8 +90,6 @@ def show(self): def show(self, val): self["show"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -159,14 +150,11 @@ def __init__( ------- Y """ - super(Y, self).__init__("y") - + super().__init__("y") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -181,34 +169,12 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("fill", arg, fill) + self._set_property("locations", arg, locations) + self._set_property("locationssrc", arg, locationssrc) + self._set_property("show", arg, show) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/isosurface/slices/_z.py b/plotly/graph_objs/isosurface/slices/_z.py index b0716f8a9e..c364c19fe3 100644 --- a/plotly/graph_objs/isosurface/slices/_z.py +++ b/plotly/graph_objs/isosurface/slices/_z.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Z(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "isosurface.slices" _path_str = "isosurface.slices.z" _valid_props = {"fill", "locations", "locationssrc", "show"} - # fill - # ---- @property def fill(self): """ @@ -33,8 +32,6 @@ def fill(self): def fill(self, val): self["fill"] = val - # locations - # --------- @property def locations(self): """ @@ -55,8 +52,6 @@ def locations(self): def locations(self, val): self["locations"] = val - # locationssrc - # ------------ @property def locationssrc(self): """ @@ -76,8 +71,6 @@ def locationssrc(self): def locationssrc(self, val): self["locationssrc"] = val - # show - # ---- @property def show(self): """ @@ -97,8 +90,6 @@ def show(self): def show(self, val): self["show"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -159,14 +150,11 @@ def __init__( ------- Z """ - super(Z, self).__init__("z") - + super().__init__("z") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -181,34 +169,12 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("fill", arg, fill) + self._set_property("locations", arg, locations) + self._set_property("locationssrc", arg, locationssrc) + self._set_property("show", arg, show) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/__init__.py b/plotly/graph_objs/layout/__init__.py index 49f512f8e1..7c2e2a0105 100644 --- a/plotly/graph_objs/layout/__init__.py +++ b/plotly/graph_objs/layout/__init__.py @@ -1,120 +1,63 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._activeselection import Activeselection - from ._activeshape import Activeshape - from ._annotation import Annotation - from ._coloraxis import Coloraxis - from ._colorscale import Colorscale - from ._font import Font - from ._geo import Geo - from ._grid import Grid - from ._hoverlabel import Hoverlabel - from ._image import Image - from ._legend import Legend - from ._map import Map - from ._mapbox import Mapbox - from ._margin import Margin - from ._modebar import Modebar - from ._newselection import Newselection - from ._newshape import Newshape - from ._polar import Polar - from ._scene import Scene - from ._selection import Selection - from ._shape import Shape - from ._slider import Slider - from ._smith import Smith - from ._template import Template - from ._ternary import Ternary - from ._title import Title - from ._transition import Transition - from ._uniformtext import Uniformtext - from ._updatemenu import Updatemenu - from ._xaxis import XAxis - from ._yaxis import YAxis - from . import annotation - from . import coloraxis - from . import geo - from . import grid - from . import hoverlabel - from . import legend - from . import map - from . import mapbox - from . import newselection - from . import newshape - from . import polar - from . import scene - from . import selection - from . import shape - from . import slider - from . import smith - from . import template - from . import ternary - from . import title - from . import updatemenu - from . import xaxis - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/layout/_activeselection.py b/plotly/graph_objs/layout/_activeselection.py index 97b804c061..f6d81c281d 100644 --- a/plotly/graph_objs/layout/_activeselection.py +++ b/plotly/graph_objs/layout/_activeselection.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Activeselection(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout" _path_str = "layout.activeselection" _valid_props = {"fillcolor", "opacity"} - # fillcolor - # --------- @property def fillcolor(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def fillcolor(self): def fillcolor(self, val): self["fillcolor"] = val - # opacity - # ------- @property def opacity(self): """ @@ -89,8 +51,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -119,14 +79,11 @@ def __init__(self, arg=None, fillcolor=None, opacity=None, **kwargs): ------- Activeselection """ - super(Activeselection, self).__init__("activeselection") - + super().__init__("activeselection") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -141,26 +98,10 @@ def __init__(self, arg=None, fillcolor=None, opacity=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("fillcolor", arg, fillcolor) + self._set_property("opacity", arg, opacity) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/_activeshape.py b/plotly/graph_objs/layout/_activeshape.py index de5f6c8c5f..a757083aa3 100644 --- a/plotly/graph_objs/layout/_activeshape.py +++ b/plotly/graph_objs/layout/_activeshape.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Activeshape(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout" _path_str = "layout.activeshape" _valid_props = {"fillcolor", "opacity"} - # fillcolor - # --------- @property def fillcolor(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def fillcolor(self): def fillcolor(self, val): self["fillcolor"] = val - # opacity - # ------- @property def opacity(self): """ @@ -89,8 +51,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -119,14 +79,11 @@ def __init__(self, arg=None, fillcolor=None, opacity=None, **kwargs): ------- Activeshape """ - super(Activeshape, self).__init__("activeshape") - + super().__init__("activeshape") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -141,26 +98,10 @@ def __init__(self, arg=None, fillcolor=None, opacity=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("fillcolor", arg, fillcolor) + self._set_property("opacity", arg, opacity) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/_annotation.py b/plotly/graph_objs/layout/_annotation.py index dc021742cc..ce80742dc0 100644 --- a/plotly/graph_objs/layout/_annotation.py +++ b/plotly/graph_objs/layout/_annotation.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Annotation(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout" _path_str = "layout.annotation" _valid_props = { @@ -54,8 +55,6 @@ class Annotation(_BaseLayoutHierarchyType): "yshift", } - # align - # ----- @property def align(self): """ @@ -78,8 +77,6 @@ def align(self): def align(self, val): self["align"] = val - # arrowcolor - # ---------- @property def arrowcolor(self): """ @@ -90,42 +87,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -137,8 +99,6 @@ def arrowcolor(self): def arrowcolor(self, val): self["arrowcolor"] = val - # arrowhead - # --------- @property def arrowhead(self): """ @@ -158,8 +118,6 @@ def arrowhead(self): def arrowhead(self, val): self["arrowhead"] = val - # arrowside - # --------- @property def arrowside(self): """ @@ -181,8 +139,6 @@ def arrowside(self): def arrowside(self, val): self["arrowside"] = val - # arrowsize - # --------- @property def arrowsize(self): """ @@ -203,8 +159,6 @@ def arrowsize(self): def arrowsize(self, val): self["arrowsize"] = val - # arrowwidth - # ---------- @property def arrowwidth(self): """ @@ -223,8 +177,6 @@ def arrowwidth(self): def arrowwidth(self, val): self["arrowwidth"] = val - # ax - # -- @property def ax(self): """ @@ -247,8 +199,6 @@ def ax(self): def ax(self, val): self["ax"] = val - # axref - # ----- @property def axref(self): """ @@ -289,8 +239,6 @@ def axref(self): def axref(self, val): self["axref"] = val - # ay - # -- @property def ay(self): """ @@ -313,8 +261,6 @@ def ay(self): def ay(self, val): self["ay"] = val - # ayref - # ----- @property def ayref(self): """ @@ -355,8 +301,6 @@ def ayref(self): def ayref(self, val): self["ayref"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -367,42 +311,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -414,8 +323,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -426,42 +333,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -473,8 +345,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderpad - # --------- @property def borderpad(self): """ @@ -494,8 +364,6 @@ def borderpad(self): def borderpad(self, val): self["borderpad"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -515,8 +383,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # captureevents - # ------------- @property def captureevents(self): """ @@ -540,8 +406,6 @@ def captureevents(self): def captureevents(self, val): self["captureevents"] = val - # clicktoshow - # ----------- @property def clicktoshow(self): """ @@ -572,8 +436,6 @@ def clicktoshow(self): def clicktoshow(self, val): self["clicktoshow"] = val - # font - # ---- @property def font(self): """ @@ -585,52 +447,6 @@ 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 @@ -641,8 +457,6 @@ def font(self): def font(self, val): self["font"] = val - # height - # ------ @property def height(self): """ @@ -662,8 +476,6 @@ def height(self): def height(self, val): self["height"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -673,21 +485,6 @@ 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 @@ -698,8 +495,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -720,8 +515,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # name - # ---- @property def name(self): """ @@ -747,8 +540,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -767,8 +558,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # showarrow - # --------- @property def showarrow(self): """ @@ -789,8 +578,6 @@ def showarrow(self): def showarrow(self, val): self["showarrow"] = val - # standoff - # -------- @property def standoff(self): """ @@ -813,8 +600,6 @@ def standoff(self): def standoff(self, val): self["standoff"] = val - # startarrowhead - # -------------- @property def startarrowhead(self): """ @@ -834,8 +619,6 @@ def startarrowhead(self): def startarrowhead(self, val): self["startarrowhead"] = val - # startarrowsize - # -------------- @property def startarrowsize(self): """ @@ -856,8 +639,6 @@ def startarrowsize(self): def startarrowsize(self, val): self["startarrowsize"] = val - # startstandoff - # ------------- @property def startstandoff(self): """ @@ -880,8 +661,6 @@ def startstandoff(self): def startstandoff(self, val): self["startstandoff"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -908,8 +687,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # text - # ---- @property def text(self): """ @@ -932,8 +709,6 @@ def text(self): def text(self, val): self["text"] = val - # textangle - # --------- @property def textangle(self): """ @@ -955,8 +730,6 @@ def textangle(self): def textangle(self, val): self["textangle"] = val - # valign - # ------ @property def valign(self): """ @@ -978,8 +751,6 @@ def valign(self): def valign(self, val): self["valign"] = val - # visible - # ------- @property def visible(self): """ @@ -998,8 +769,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # width - # ----- @property def width(self): """ @@ -1020,8 +789,6 @@ def width(self): def width(self, val): self["width"] = val - # x - # - @property def x(self): """ @@ -1045,8 +812,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1074,8 +839,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xclick - # ------ @property def xclick(self): """ @@ -1094,8 +857,6 @@ def xclick(self): def xclick(self, val): self["xclick"] = val - # xref - # ---- @property def xref(self): """ @@ -1127,8 +888,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # xshift - # ------ @property def xshift(self): """ @@ -1148,8 +907,6 @@ def xshift(self): def xshift(self, val): self["xshift"] = val - # y - # - @property def y(self): """ @@ -1173,8 +930,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1202,8 +957,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # yclick - # ------ @property def yclick(self): """ @@ -1222,8 +975,6 @@ def yclick(self): def yclick(self, val): self["yclick"] = val - # yref - # ---- @property def yref(self): """ @@ -1255,8 +1006,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # yshift - # ------ @property def yshift(self): """ @@ -1276,8 +1025,6 @@ def yshift(self): def yshift(self, val): self["yshift"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1901,14 +1648,11 @@ def __init__( ------- Annotation """ - super(Annotation, self).__init__("annotations") - + super().__init__("annotations") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1923,190 +1667,51 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("arrowcolor", arg, arrowcolor) + self._set_property("arrowhead", arg, arrowhead) + self._set_property("arrowside", arg, arrowside) + self._set_property("arrowsize", arg, arrowsize) + self._set_property("arrowwidth", arg, arrowwidth) + self._set_property("ax", arg, ax) + self._set_property("axref", arg, axref) + self._set_property("ay", arg, ay) + self._set_property("ayref", arg, ayref) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderpad", arg, borderpad) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("captureevents", arg, captureevents) + self._set_property("clicktoshow", arg, clicktoshow) + self._set_property("font", arg, font) + self._set_property("height", arg, height) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertext", arg, hovertext) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("showarrow", arg, showarrow) + self._set_property("standoff", arg, standoff) + self._set_property("startarrowhead", arg, startarrowhead) + self._set_property("startarrowsize", arg, startarrowsize) + self._set_property("startstandoff", arg, startstandoff) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("text", arg, text) + self._set_property("textangle", arg, textangle) + self._set_property("valign", arg, valign) + self._set_property("visible", arg, visible) + self._set_property("width", arg, width) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xclick", arg, xclick) + self._set_property("xref", arg, xref) + self._set_property("xshift", arg, xshift) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("yclick", arg, yclick) + self._set_property("yref", arg, yref) + self._set_property("yshift", arg, yshift) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/_coloraxis.py b/plotly/graph_objs/layout/_coloraxis.py index f2f5243b03..443b9c92e9 100644 --- a/plotly/graph_objs/layout/_coloraxis.py +++ b/plotly/graph_objs/layout/_coloraxis.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Coloraxis(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout" _path_str = "layout.coloraxis" _valid_props = { @@ -20,8 +21,6 @@ class Coloraxis(_BaseLayoutHierarchyType): "showscale", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -45,8 +44,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -68,8 +65,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -90,8 +85,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -113,8 +106,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -135,8 +126,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -146,273 +135,6 @@ 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 @@ -423,8 +145,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -476,8 +196,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -498,8 +216,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # showscale - # --------- @property def showscale(self): """ @@ -519,8 +235,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -650,14 +364,11 @@ def __init__( ------- Coloraxis """ - super(Coloraxis, self).__init__("coloraxis") - + super().__init__("coloraxis") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -672,54 +383,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("reversescale", arg, reversescale) + self._set_property("showscale", arg, showscale) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/_colorscale.py b/plotly/graph_objs/layout/_colorscale.py index d63cafaf8b..8116904345 100644 --- a/plotly/graph_objs/layout/_colorscale.py +++ b/plotly/graph_objs/layout/_colorscale.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Colorscale(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout" _path_str = "layout.colorscale" _valid_props = {"diverging", "sequential", "sequentialminus"} - # diverging - # --------- @property def diverging(self): """ @@ -55,8 +54,6 @@ def diverging(self): def diverging(self, val): self["diverging"] = val - # sequential - # ---------- @property def sequential(self): """ @@ -101,8 +98,6 @@ def sequential(self): def sequential(self, val): self["sequential"] = val - # sequentialminus - # --------------- @property def sequentialminus(self): """ @@ -147,8 +142,6 @@ def sequentialminus(self): def sequentialminus(self, val): self["sequentialminus"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -195,14 +188,11 @@ def __init__( ------- Colorscale """ - super(Colorscale, self).__init__("colorscale") - + super().__init__("colorscale") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -217,30 +207,11 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("diverging", arg, diverging) + self._set_property("sequential", arg, sequential) + self._set_property("sequentialminus", arg, sequentialminus) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/_font.py b/plotly/graph_objs/layout/_font.py index 2f24c33b38..5c1b45d2ff 100644 --- a/plotly/graph_objs/layout/_font.py +++ b/plotly/graph_objs/layout/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Font(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout" _path_str = "layout.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/_geo.py b/plotly/graph_objs/layout/_geo.py index 9274b134d0..e978adf199 100644 --- a/plotly/graph_objs/layout/_geo.py +++ b/plotly/graph_objs/layout/_geo.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Geo(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout" _path_str = "layout.geo" _valid_props = { @@ -43,8 +44,6 @@ class Geo(_BaseLayoutHierarchyType): "visible", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -55,42 +54,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -102,8 +66,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # center - # ------ @property def center(self): """ @@ -113,20 +75,6 @@ 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 @@ -137,8 +85,6 @@ def center(self): def center(self, val): self["center"] = val - # coastlinecolor - # -------------- @property def coastlinecolor(self): """ @@ -149,42 +95,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -196,8 +107,6 @@ def coastlinecolor(self): def coastlinecolor(self, val): self["coastlinecolor"] = val - # coastlinewidth - # -------------- @property def coastlinewidth(self): """ @@ -216,8 +125,6 @@ def coastlinewidth(self): def coastlinewidth(self, val): self["coastlinewidth"] = val - # countrycolor - # ------------ @property def countrycolor(self): """ @@ -228,42 +135,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -275,8 +147,6 @@ def countrycolor(self): def countrycolor(self, val): self["countrycolor"] = val - # countrywidth - # ------------ @property def countrywidth(self): """ @@ -295,8 +165,6 @@ def countrywidth(self): def countrywidth(self, val): self["countrywidth"] = val - # domain - # ------ @property def domain(self): """ @@ -306,35 +174,6 @@ 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 @@ -345,8 +184,6 @@ def domain(self): def domain(self, val): self["domain"] = val - # fitbounds - # --------- @property def fitbounds(self): """ @@ -378,8 +215,6 @@ def fitbounds(self): def fitbounds(self, val): self["fitbounds"] = val - # framecolor - # ---------- @property def framecolor(self): """ @@ -390,42 +225,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -437,8 +237,6 @@ def framecolor(self): def framecolor(self, val): self["framecolor"] = val - # framewidth - # ---------- @property def framewidth(self): """ @@ -457,8 +255,6 @@ def framewidth(self): def framewidth(self, val): self["framewidth"] = val - # lakecolor - # --------- @property def lakecolor(self): """ @@ -469,42 +265,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -516,8 +277,6 @@ def lakecolor(self): def lakecolor(self, val): self["lakecolor"] = val - # landcolor - # --------- @property def landcolor(self): """ @@ -528,42 +287,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -575,8 +299,6 @@ def landcolor(self): def landcolor(self, val): self["landcolor"] = val - # lataxis - # ------- @property def lataxis(self): """ @@ -586,30 +308,6 @@ 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 @@ -620,8 +318,6 @@ def lataxis(self): def lataxis(self, val): self["lataxis"] = val - # lonaxis - # ------- @property def lonaxis(self): """ @@ -631,30 +327,6 @@ 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 @@ -665,8 +337,6 @@ def lonaxis(self): def lonaxis(self, val): self["lonaxis"] = val - # oceancolor - # ---------- @property def oceancolor(self): """ @@ -677,42 +347,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -724,8 +359,6 @@ def oceancolor(self): def oceancolor(self, val): self["oceancolor"] = val - # projection - # ---------- @property def projection(self): """ @@ -735,31 +368,6 @@ 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 @@ -770,8 +378,6 @@ def projection(self): def projection(self, val): self["projection"] = val - # resolution - # ---------- @property def resolution(self): """ @@ -793,8 +399,6 @@ def resolution(self): def resolution(self, val): self["resolution"] = val - # rivercolor - # ---------- @property def rivercolor(self): """ @@ -805,42 +409,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -852,8 +421,6 @@ def rivercolor(self): def rivercolor(self, val): self["rivercolor"] = val - # riverwidth - # ---------- @property def riverwidth(self): """ @@ -872,8 +439,6 @@ def riverwidth(self): def riverwidth(self, val): self["riverwidth"] = val - # scope - # ----- @property def scope(self): """ @@ -894,8 +459,6 @@ def scope(self): def scope(self, val): self["scope"] = val - # showcoastlines - # -------------- @property def showcoastlines(self): """ @@ -914,8 +477,6 @@ def showcoastlines(self): def showcoastlines(self, val): self["showcoastlines"] = val - # showcountries - # ------------- @property def showcountries(self): """ @@ -934,8 +495,6 @@ def showcountries(self): def showcountries(self, val): self["showcountries"] = val - # showframe - # --------- @property def showframe(self): """ @@ -954,8 +513,6 @@ def showframe(self): def showframe(self, val): self["showframe"] = val - # showlakes - # --------- @property def showlakes(self): """ @@ -974,8 +531,6 @@ def showlakes(self): def showlakes(self, val): self["showlakes"] = val - # showland - # -------- @property def showland(self): """ @@ -994,8 +549,6 @@ def showland(self): def showland(self, val): self["showland"] = val - # showocean - # --------- @property def showocean(self): """ @@ -1014,8 +567,6 @@ def showocean(self): def showocean(self, val): self["showocean"] = val - # showrivers - # ---------- @property def showrivers(self): """ @@ -1034,8 +585,6 @@ def showrivers(self): def showrivers(self, val): self["showrivers"] = val - # showsubunits - # ------------ @property def showsubunits(self): """ @@ -1055,8 +604,6 @@ def showsubunits(self): def showsubunits(self, val): self["showsubunits"] = val - # subunitcolor - # ------------ @property def subunitcolor(self): """ @@ -1067,42 +614,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -1114,8 +626,6 @@ def subunitcolor(self): def subunitcolor(self, val): self["subunitcolor"] = val - # subunitwidth - # ------------ @property def subunitwidth(self): """ @@ -1134,8 +644,6 @@ def subunitwidth(self): def subunitwidth(self, val): self["subunitwidth"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1154,8 +662,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # visible - # ------- @property def visible(self): """ @@ -1174,8 +680,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1409,14 +913,11 @@ def __init__( ------- Geo """ - super(Geo, self).__init__("geo") - + super().__init__("geo") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1431,146 +932,40 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("center", arg, center) + self._set_property("coastlinecolor", arg, coastlinecolor) + self._set_property("coastlinewidth", arg, coastlinewidth) + self._set_property("countrycolor", arg, countrycolor) + self._set_property("countrywidth", arg, countrywidth) + self._set_property("domain", arg, domain) + self._set_property("fitbounds", arg, fitbounds) + self._set_property("framecolor", arg, framecolor) + self._set_property("framewidth", arg, framewidth) + self._set_property("lakecolor", arg, lakecolor) + self._set_property("landcolor", arg, landcolor) + self._set_property("lataxis", arg, lataxis) + self._set_property("lonaxis", arg, lonaxis) + self._set_property("oceancolor", arg, oceancolor) + self._set_property("projection", arg, projection) + self._set_property("resolution", arg, resolution) + self._set_property("rivercolor", arg, rivercolor) + self._set_property("riverwidth", arg, riverwidth) + self._set_property("scope", arg, scope) + self._set_property("showcoastlines", arg, showcoastlines) + self._set_property("showcountries", arg, showcountries) + self._set_property("showframe", arg, showframe) + self._set_property("showlakes", arg, showlakes) + self._set_property("showland", arg, showland) + self._set_property("showocean", arg, showocean) + self._set_property("showrivers", arg, showrivers) + self._set_property("showsubunits", arg, showsubunits) + self._set_property("subunitcolor", arg, subunitcolor) + self._set_property("subunitwidth", arg, subunitwidth) + self._set_property("uirevision", arg, uirevision) + self._set_property("visible", arg, visible) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/_grid.py b/plotly/graph_objs/layout/_grid.py index cd8ee19f6f..79d5bd838c 100644 --- a/plotly/graph_objs/layout/_grid.py +++ b/plotly/graph_objs/layout/_grid.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Grid(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout" _path_str = "layout.grid" _valid_props = { @@ -23,8 +24,6 @@ class Grid(_BaseLayoutHierarchyType): "yside", } - # columns - # ------- @property def columns(self): """ @@ -49,8 +48,6 @@ def columns(self): def columns(self, val): self["columns"] = val - # domain - # ------ @property def domain(self): """ @@ -60,19 +57,6 @@ 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 @@ -83,8 +67,6 @@ def domain(self): def domain(self, val): self["domain"] = val - # pattern - # ------- @property def pattern(self): """ @@ -109,8 +91,6 @@ def pattern(self): def pattern(self, val): self["pattern"] = val - # roworder - # -------- @property def roworder(self): """ @@ -131,8 +111,6 @@ def roworder(self): def roworder(self, val): self["roworder"] = val - # rows - # ---- @property def rows(self): """ @@ -155,8 +133,6 @@ def rows(self): def rows(self, val): self["rows"] = val - # subplots - # -------- @property def subplots(self): """ @@ -186,8 +162,6 @@ def subplots(self): def subplots(self, val): self["subplots"] = val - # xaxes - # ----- @property def xaxes(self): """ @@ -216,8 +190,6 @@ def xaxes(self): def xaxes(self, val): self["xaxes"] = val - # xgap - # ---- @property def xgap(self): """ @@ -238,8 +210,6 @@ def xgap(self): def xgap(self, val): self["xgap"] = val - # xside - # ----- @property def xside(self): """ @@ -261,8 +231,6 @@ def xside(self): def xside(self, val): self["xside"] = val - # yaxes - # ----- @property def yaxes(self): """ @@ -291,8 +259,6 @@ def yaxes(self): def yaxes(self, val): self["yaxes"] = val - # ygap - # ---- @property def ygap(self): """ @@ -313,8 +279,6 @@ def ygap(self): def ygap(self, val): self["ygap"] = val - # yside - # ----- @property def yside(self): """ @@ -337,8 +301,6 @@ def yside(self): def yside(self, val): self["yside"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -514,14 +476,11 @@ def __init__( ------- Grid """ - super(Grid, self).__init__("grid") - + super().__init__("grid") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -536,66 +495,20 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("columns", arg, columns) + self._set_property("domain", arg, domain) + self._set_property("pattern", arg, pattern) + self._set_property("roworder", arg, roworder) + self._set_property("rows", arg, rows) + self._set_property("subplots", arg, subplots) + self._set_property("xaxes", arg, xaxes) + self._set_property("xgap", arg, xgap) + self._set_property("xside", arg, xside) + self._set_property("yaxes", arg, yaxes) + self._set_property("ygap", arg, ygap) + self._set_property("yside", arg, yside) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/_hoverlabel.py b/plotly/graph_objs/layout/_hoverlabel.py index 71b5ecdbdd..5e4e8da03b 100644 --- a/plotly/graph_objs/layout/_hoverlabel.py +++ b/plotly/graph_objs/layout/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Hoverlabel(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout" _path_str = "layout.hoverlabel" _valid_props = { @@ -17,8 +18,6 @@ class Hoverlabel(_BaseLayoutHierarchyType): "namelength", } - # align - # ----- @property def align(self): """ @@ -40,8 +39,6 @@ def align(self): def align(self, val): self["align"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -52,42 +49,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -99,8 +61,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -111,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -158,8 +83,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # font - # ---- @property def font(self): """ @@ -172,52 +95,6 @@ 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 @@ -228,8 +105,6 @@ def font(self): def font(self, val): self["font"] = val - # grouptitlefont - # -------------- @property def grouptitlefont(self): """ @@ -242,52 +117,6 @@ 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 @@ -298,8 +127,6 @@ def grouptitlefont(self): def grouptitlefont(self, val): self["grouptitlefont"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -324,8 +151,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -400,14 +225,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -422,42 +244,14 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("font", arg, font) + self._set_property("grouptitlefont", arg, grouptitlefont) + self._set_property("namelength", arg, namelength) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/_image.py b/plotly/graph_objs/layout/_image.py index af2a8257bd..00b7634f26 100644 --- a/plotly/graph_objs/layout/_image.py +++ b/plotly/graph_objs/layout/_image.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Image(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout" _path_str = "layout.image" _valid_props = { @@ -26,8 +27,6 @@ class Image(_BaseLayoutHierarchyType): "yref", } - # layer - # ----- @property def layer(self): """ @@ -49,8 +48,6 @@ def layer(self): def layer(self, val): self["layer"] = val - # name - # ---- @property def name(self): """ @@ -76,8 +73,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -96,8 +91,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # sizex - # ----- @property def sizex(self): """ @@ -120,8 +113,6 @@ def sizex(self): def sizex(self, val): self["sizex"] = val - # sizey - # ----- @property def sizey(self): """ @@ -144,8 +135,6 @@ def sizey(self): def sizey(self, val): self["sizey"] = val - # sizing - # ------ @property def sizing(self): """ @@ -165,8 +154,6 @@ def sizing(self): def sizing(self, val): self["sizing"] = val - # source - # ------ @property def source(self): """ @@ -193,8 +180,6 @@ def source(self): def source(self, val): self["source"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -221,8 +206,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # visible - # ------- @property def visible(self): """ @@ -241,8 +224,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # x - # - @property def x(self): """ @@ -262,8 +243,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -283,8 +262,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xref - # ---- @property def xref(self): """ @@ -316,8 +293,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -337,8 +312,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -358,8 +331,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # yref - # ---- @property def yref(self): """ @@ -391,8 +362,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -601,14 +570,11 @@ def __init__( ------- Image """ - super(Image, self).__init__("images") - + super().__init__("images") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -623,78 +589,23 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("layer", arg, layer) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("sizex", arg, sizex) + self._set_property("sizey", arg, sizey) + self._set_property("sizing", arg, sizing) + self._set_property("source", arg, source) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("visible", arg, visible) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/_legend.py b/plotly/graph_objs/layout/_legend.py index a585508509..97daca8c6c 100644 --- a/plotly/graph_objs/layout/_legend.py +++ b/plotly/graph_objs/layout/_legend.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Legend(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout" _path_str = "layout.legend" _valid_props = { @@ -37,8 +38,6 @@ class Legend(_BaseLayoutHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -50,42 +49,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -97,8 +61,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -109,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -156,8 +83,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -176,8 +101,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # entrywidth - # ---------- @property def entrywidth(self): """ @@ -198,8 +121,6 @@ def entrywidth(self): def entrywidth(self, val): self["entrywidth"] = val - # entrywidthmode - # -------------- @property def entrywidthmode(self): """ @@ -219,8 +140,6 @@ def entrywidthmode(self): def entrywidthmode(self, val): self["entrywidthmode"] = val - # font - # ---- @property def font(self): """ @@ -232,52 +151,6 @@ 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 @@ -288,8 +161,6 @@ def font(self): def font(self, val): self["font"] = val - # groupclick - # ---------- @property def groupclick(self): """ @@ -313,8 +184,6 @@ def groupclick(self): def groupclick(self, val): self["groupclick"] = val - # grouptitlefont - # -------------- @property def grouptitlefont(self): """ @@ -327,52 +196,6 @@ 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 @@ -383,8 +206,6 @@ def grouptitlefont(self): def grouptitlefont(self, val): self["grouptitlefont"] = val - # indentation - # ----------- @property def indentation(self): """ @@ -403,8 +224,6 @@ def indentation(self): def indentation(self, val): self["indentation"] = val - # itemclick - # --------- @property def itemclick(self): """ @@ -427,8 +246,6 @@ def itemclick(self): def itemclick(self, val): self["itemclick"] = val - # itemdoubleclick - # --------------- @property def itemdoubleclick(self): """ @@ -452,8 +269,6 @@ def itemdoubleclick(self): def itemdoubleclick(self, val): self["itemdoubleclick"] = val - # itemsizing - # ---------- @property def itemsizing(self): """ @@ -475,8 +290,6 @@ def itemsizing(self): def itemsizing(self, val): self["itemsizing"] = val - # itemwidth - # --------- @property def itemwidth(self): """ @@ -496,8 +309,6 @@ def itemwidth(self): def itemwidth(self, val): self["itemwidth"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -517,8 +328,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # title - # ----- @property def title(self): """ @@ -528,23 +337,6 @@ 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 @@ -555,8 +347,6 @@ def title(self): def title(self, val): self["title"] = val - # tracegroupgap - # ------------- @property def tracegroupgap(self): """ @@ -576,8 +366,6 @@ def tracegroupgap(self): def tracegroupgap(self, val): self["tracegroupgap"] = val - # traceorder - # ---------- @property def traceorder(self): """ @@ -605,8 +393,6 @@ def traceorder(self): def traceorder(self, val): self["traceorder"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -625,8 +411,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # valign - # ------ @property def valign(self): """ @@ -647,8 +431,6 @@ def valign(self): def valign(self, val): self["valign"] = val - # visible - # ------- @property def visible(self): """ @@ -667,8 +449,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # x - # - @property def x(self): """ @@ -693,8 +473,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -719,8 +497,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xref - # ---- @property def xref(self): """ @@ -742,8 +518,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -769,8 +543,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -795,8 +567,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # yref - # ---- @property def yref(self): """ @@ -818,8 +588,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1099,14 +867,11 @@ def __init__( ------- Legend """ - super(Legend, self).__init__("legend") - + super().__init__("legend") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1121,122 +886,34 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("entrywidth", arg, entrywidth) + self._set_property("entrywidthmode", arg, entrywidthmode) + self._set_property("font", arg, font) + self._set_property("groupclick", arg, groupclick) + self._set_property("grouptitlefont", arg, grouptitlefont) + self._set_property("indentation", arg, indentation) + self._set_property("itemclick", arg, itemclick) + self._set_property("itemdoubleclick", arg, itemdoubleclick) + self._set_property("itemsizing", arg, itemsizing) + self._set_property("itemwidth", arg, itemwidth) + self._set_property("orientation", arg, orientation) + self._set_property("title", arg, title) + self._set_property("tracegroupgap", arg, tracegroupgap) + self._set_property("traceorder", arg, traceorder) + self._set_property("uirevision", arg, uirevision) + self._set_property("valign", arg, valign) + self._set_property("visible", arg, visible) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/_map.py b/plotly/graph_objs/layout/_map.py index c6baeb8120..e7860c6b54 100644 --- a/plotly/graph_objs/layout/_map.py +++ b/plotly/graph_objs/layout/_map.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Map(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout" _path_str = "layout.map" _valid_props = { @@ -21,8 +22,6 @@ class Map(_BaseLayoutHierarchyType): "zoom", } - # bearing - # ------- @property def bearing(self): """ @@ -42,8 +41,6 @@ def bearing(self): def bearing(self, val): self["bearing"] = val - # bounds - # ------ @property def bounds(self): """ @@ -53,25 +50,6 @@ 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 @@ -82,8 +60,6 @@ def bounds(self): def bounds(self, val): self["bounds"] = val - # center - # ------ @property def center(self): """ @@ -93,15 +69,6 @@ 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 @@ -112,8 +79,6 @@ def center(self): def center(self, val): self["center"] = val - # domain - # ------ @property def domain(self): """ @@ -123,21 +88,6 @@ 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 @@ -148,8 +98,6 @@ def domain(self): def domain(self, val): self["domain"] = val - # layers - # ------ @property def layers(self): """ @@ -159,120 +107,6 @@ 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] @@ -283,8 +117,6 @@ def layers(self): def layers(self, val): self["layers"] = val - # layerdefaults - # ------------- @property def layerdefaults(self): """ @@ -298,8 +130,6 @@ 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 @@ -310,8 +140,6 @@ def layerdefaults(self): def layerdefaults(self, val): self["layerdefaults"] = val - # pitch - # ----- @property def pitch(self): """ @@ -331,8 +159,6 @@ def pitch(self): def pitch(self, val): self["pitch"] = val - # style - # ----- @property def style(self): """ @@ -365,8 +191,6 @@ def style(self): def style(self, val): self["style"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -386,8 +210,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # zoom - # ---- @property def zoom(self): """ @@ -406,8 +228,6 @@ def zoom(self): def zoom(self, val): self["zoom"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -539,14 +359,11 @@ def __init__( ------- Map """ - super(Map, self).__init__("map") - + super().__init__("map") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -561,58 +378,18 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bearing", arg, bearing) + self._set_property("bounds", arg, bounds) + self._set_property("center", arg, center) + self._set_property("domain", arg, domain) + self._set_property("layers", arg, layers) + self._set_property("layerdefaults", arg, layerdefaults) + self._set_property("pitch", arg, pitch) + self._set_property("style", arg, style) + self._set_property("uirevision", arg, uirevision) + self._set_property("zoom", arg, zoom) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/_mapbox.py b/plotly/graph_objs/layout/_mapbox.py index 514895bd06..81e4e85761 100644 --- a/plotly/graph_objs/layout/_mapbox.py +++ b/plotly/graph_objs/layout/_mapbox.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Mapbox(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout" _path_str = "layout.mapbox" _valid_props = { @@ -22,8 +23,6 @@ class Mapbox(_BaseLayoutHierarchyType): "zoom", } - # accesstoken - # ----------- @property def accesstoken(self): """ @@ -47,8 +46,6 @@ def accesstoken(self): def accesstoken(self, val): self["accesstoken"] = val - # bearing - # ------- @property def bearing(self): """ @@ -68,8 +65,6 @@ def bearing(self): def bearing(self, val): self["bearing"] = val - # bounds - # ------ @property def bounds(self): """ @@ -79,25 +74,6 @@ 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 @@ -108,8 +84,6 @@ def bounds(self): def bounds(self, val): self["bounds"] = val - # center - # ------ @property def center(self): """ @@ -119,15 +93,6 @@ 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 @@ -138,8 +103,6 @@ def center(self): def center(self, val): self["center"] = val - # domain - # ------ @property def domain(self): """ @@ -149,22 +112,6 @@ 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 @@ -175,8 +122,6 @@ def domain(self): def domain(self, val): self["domain"] = val - # layers - # ------ @property def layers(self): """ @@ -186,120 +131,6 @@ 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] @@ -310,8 +141,6 @@ def layers(self): def layers(self, val): self["layers"] = val - # layerdefaults - # ------------- @property def layerdefaults(self): """ @@ -325,8 +154,6 @@ 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 @@ -337,8 +164,6 @@ def layerdefaults(self): def layerdefaults(self, val): self["layerdefaults"] = val - # pitch - # ----- @property def pitch(self): """ @@ -358,8 +183,6 @@ def pitch(self): def pitch(self, val): self["pitch"] = val - # style - # ----- @property def style(self): """ @@ -396,8 +219,6 @@ def style(self): def style(self, val): self["style"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -417,8 +238,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # zoom - # ---- @property def zoom(self): """ @@ -437,8 +256,6 @@ def zoom(self): def zoom(self, val): self["zoom"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -601,14 +418,11 @@ def __init__( ------- Mapbox """ - super(Mapbox, self).__init__("mapbox") - + super().__init__("mapbox") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -623,62 +437,19 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("accesstoken", arg, accesstoken) + self._set_property("bearing", arg, bearing) + self._set_property("bounds", arg, bounds) + self._set_property("center", arg, center) + self._set_property("domain", arg, domain) + self._set_property("layers", arg, layers) + self._set_property("layerdefaults", arg, layerdefaults) + self._set_property("pitch", arg, pitch) + self._set_property("style", arg, style) + self._set_property("uirevision", arg, uirevision) + self._set_property("zoom", arg, zoom) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/_margin.py b/plotly/graph_objs/layout/_margin.py index dc8384d02f..c82b0fd520 100644 --- a/plotly/graph_objs/layout/_margin.py +++ b/plotly/graph_objs/layout/_margin.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Margin(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout" _path_str = "layout.margin" _valid_props = {"autoexpand", "b", "l", "pad", "r", "t"} - # autoexpand - # ---------- @property def autoexpand(self): """ @@ -32,8 +31,6 @@ def autoexpand(self): def autoexpand(self, val): self["autoexpand"] = val - # b - # - @property def b(self): """ @@ -52,8 +49,6 @@ def b(self): def b(self, val): self["b"] = val - # l - # - @property def l(self): """ @@ -72,8 +67,6 @@ def l(self): def l(self, val): self["l"] = val - # pad - # --- @property def pad(self): """ @@ -93,8 +86,6 @@ def pad(self): def pad(self, val): self["pad"] = val - # r - # - @property def r(self): """ @@ -113,8 +104,6 @@ def r(self): def r(self, val): self["r"] = val - # t - # - @property def t(self): """ @@ -133,8 +122,6 @@ def t(self): def t(self, val): self["t"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -196,14 +183,11 @@ def __init__( ------- Margin """ - super(Margin, self).__init__("margin") - + super().__init__("margin") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -218,42 +202,14 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("autoexpand", arg, autoexpand) + self._set_property("b", arg, b) + self._set_property("l", arg, l) + self._set_property("pad", arg, pad) + self._set_property("r", arg, r) + self._set_property("t", arg, t) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/_modebar.py b/plotly/graph_objs/layout/_modebar.py index 086af979cc..53e8580b05 100644 --- a/plotly/graph_objs/layout/_modebar.py +++ b/plotly/graph_objs/layout/_modebar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Modebar(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout" _path_str = "layout.modebar" _valid_props = { @@ -20,8 +21,6 @@ class Modebar(_BaseLayoutHierarchyType): "uirevision", } - # activecolor - # ----------- @property def activecolor(self): """ @@ -33,42 +32,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -80,8 +44,6 @@ def activecolor(self): def activecolor(self, val): self["activecolor"] = val - # add - # --- @property def add(self): """ @@ -108,8 +70,6 @@ def add(self): def add(self, val): self["add"] = val - # addsrc - # ------ @property def addsrc(self): """ @@ -128,8 +88,6 @@ def addsrc(self): def addsrc(self, val): self["addsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -140,42 +98,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -187,8 +110,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # color - # ----- @property def color(self): """ @@ -199,42 +120,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -246,8 +132,6 @@ def color(self): def color(self, val): self["color"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -267,8 +151,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # remove - # ------ @property def remove(self): """ @@ -304,8 +186,6 @@ def remove(self): def remove(self, val): self["remove"] = val - # removesrc - # --------- @property def removesrc(self): """ @@ -324,8 +204,6 @@ def removesrc(self): def removesrc(self, val): self["removesrc"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -346,8 +224,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -479,14 +355,11 @@ def __init__( ------- Modebar """ - super(Modebar, self).__init__("modebar") - + super().__init__("modebar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -501,54 +374,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("activecolor", arg, activecolor) + self._set_property("add", arg, add) + self._set_property("addsrc", arg, addsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("color", arg, color) + self._set_property("orientation", arg, orientation) + self._set_property("remove", arg, remove) + self._set_property("removesrc", arg, removesrc) + self._set_property("uirevision", arg, uirevision) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/_newselection.py b/plotly/graph_objs/layout/_newselection.py index 7b6493418f..c60e111e7e 100644 --- a/plotly/graph_objs/layout/_newselection.py +++ b/plotly/graph_objs/layout/_newselection.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Newselection(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout" _path_str = "layout.newselection" _valid_props = {"line", "mode"} - # line - # ---- @property def line(self): """ @@ -21,20 +20,6 @@ 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 @@ -45,8 +30,6 @@ def line(self): def line(self, val): self["line"] = val - # mode - # ---- @property def mode(self): """ @@ -70,8 +53,6 @@ def mode(self): def mode(self, val): self["mode"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -112,14 +93,11 @@ def __init__(self, arg=None, line=None, mode=None, **kwargs): ------- Newselection """ - super(Newselection, self).__init__("newselection") - + super().__init__("newselection") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -134,26 +112,10 @@ def __init__(self, arg=None, line=None, mode=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("line", arg, line) + self._set_property("mode", arg, mode) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/_newshape.py b/plotly/graph_objs/layout/_newshape.py index ff282484fd..8d3cf75582 100644 --- a/plotly/graph_objs/layout/_newshape.py +++ b/plotly/graph_objs/layout/_newshape.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Newshape(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout" _path_str = "layout.newshape" _valid_props = { @@ -26,8 +27,6 @@ class Newshape(_BaseLayoutHierarchyType): "visible", } - # drawdirection - # ------------- @property def drawdirection(self): """ @@ -52,8 +51,6 @@ def drawdirection(self): def drawdirection(self, val): self["drawdirection"] = val - # fillcolor - # --------- @property def fillcolor(self): """ @@ -67,42 +64,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -114,8 +76,6 @@ def fillcolor(self): def fillcolor(self, val): self["fillcolor"] = val - # fillrule - # -------- @property def fillrule(self): """ @@ -137,8 +97,6 @@ def fillrule(self): def fillrule(self, val): self["fillrule"] = val - # label - # ----- @property def label(self): """ @@ -148,76 +106,6 @@ 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 @@ -228,8 +116,6 @@ def label(self): def label(self, val): self["label"] = val - # layer - # ----- @property def layer(self): """ @@ -251,8 +137,6 @@ def layer(self): def layer(self, val): self["layer"] = val - # legend - # ------ @property def legend(self): """ @@ -276,8 +160,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -299,8 +181,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -310,13 +190,6 @@ 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 @@ -327,8 +200,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -352,8 +223,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -372,8 +241,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # line - # ---- @property def line(self): """ @@ -383,20 +250,6 @@ 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 @@ -407,8 +260,6 @@ def line(self): def line(self, val): self["line"] = val - # name - # ---- @property def name(self): """ @@ -428,8 +279,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -448,8 +297,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -468,8 +315,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # visible - # ------- @property def visible(self): """ @@ -491,8 +336,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -662,14 +505,11 @@ def __init__( ------- Newshape """ - super(Newshape, self).__init__("newshape") - + super().__init__("newshape") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -684,78 +524,23 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("drawdirection", arg, drawdirection) + self._set_property("fillcolor", arg, fillcolor) + self._set_property("fillrule", arg, fillrule) + self._set_property("label", arg, label) + self._set_property("layer", arg, layer) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("line", arg, line) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("showlegend", arg, showlegend) + self._set_property("visible", arg, visible) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/_polar.py b/plotly/graph_objs/layout/_polar.py index fbf0a20b7f..043f9ce2c7 100644 --- a/plotly/graph_objs/layout/_polar.py +++ b/plotly/graph_objs/layout/_polar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Polar(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout" _path_str = "layout.polar" _valid_props = { @@ -21,8 +22,6 @@ class Polar(_BaseLayoutHierarchyType): "uirevision", } - # angularaxis - # ----------- @property def angularaxis(self): """ @@ -32,297 +31,6 @@ 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 @@ -333,8 +41,6 @@ def angularaxis(self): def angularaxis(self, val): self["angularaxis"] = val - # bargap - # ------ @property def bargap(self): """ @@ -355,8 +61,6 @@ def bargap(self): def bargap(self, val): self["bargap"] = val - # barmode - # ------- @property def barmode(self): """ @@ -380,8 +84,6 @@ def barmode(self): def barmode(self, val): self["barmode"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -392,42 +94,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -439,8 +106,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # domain - # ------ @property def domain(self): """ @@ -450,22 +115,6 @@ 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 @@ -476,8 +125,6 @@ def domain(self): def domain(self, val): self["domain"] = val - # gridshape - # --------- @property def gridshape(self): """ @@ -502,8 +149,6 @@ def gridshape(self): def gridshape(self, val): self["gridshape"] = val - # hole - # ---- @property def hole(self): """ @@ -523,8 +168,6 @@ def hole(self): def hole(self, val): self["hole"] = val - # radialaxis - # ---------- @property def radialaxis(self): """ @@ -534,345 +177,6 @@ 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 @@ -883,8 +187,6 @@ def radialaxis(self): def radialaxis(self, val): self["radialaxis"] = val - # sector - # ------ @property def sector(self): """ @@ -911,8 +213,6 @@ def sector(self): def sector(self, val): self["sector"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -932,8 +232,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1051,14 +349,11 @@ def __init__( ------- Polar """ - super(Polar, self).__init__("polar") - + super().__init__("polar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1073,58 +368,18 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("angularaxis", arg, angularaxis) + self._set_property("bargap", arg, bargap) + self._set_property("barmode", arg, barmode) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("domain", arg, domain) + self._set_property("gridshape", arg, gridshape) + self._set_property("hole", arg, hole) + self._set_property("radialaxis", arg, radialaxis) + self._set_property("sector", arg, sector) + self._set_property("uirevision", arg, uirevision) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/_scene.py b/plotly/graph_objs/layout/_scene.py index 5e50a9c14c..6d5fc00ccc 100644 --- a/plotly/graph_objs/layout/_scene.py +++ b/plotly/graph_objs/layout/_scene.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Scene(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout" _path_str = "layout.scene" _valid_props = { @@ -24,8 +25,6 @@ class Scene(_BaseLayoutHierarchyType): "zaxis", } - # annotations - # ----------- @property def annotations(self): """ @@ -35,185 +34,6 @@ 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] @@ -224,8 +44,6 @@ def annotations(self): def annotations(self, val): self["annotations"] = val - # annotationdefaults - # ------------------ @property def annotationdefaults(self): """ @@ -240,8 +58,6 @@ 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 @@ -252,8 +68,6 @@ def annotationdefaults(self): def annotationdefaults(self, val): self["annotationdefaults"] = val - # aspectmode - # ---------- @property def aspectmode(self): """ @@ -280,8 +94,6 @@ def aspectmode(self): def aspectmode(self, val): self["aspectmode"] = val - # aspectratio - # ----------- @property def aspectratio(self): """ @@ -293,14 +105,6 @@ 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 @@ -311,8 +115,6 @@ def aspectratio(self): def aspectratio(self, val): self["aspectratio"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -321,42 +123,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -368,8 +135,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # camera - # ------ @property def camera(self): """ @@ -379,29 +144,6 @@ 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 @@ -412,8 +154,6 @@ def camera(self): def camera(self, val): self["camera"] = val - # domain - # ------ @property def domain(self): """ @@ -423,22 +163,6 @@ 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 @@ -449,8 +173,6 @@ def domain(self): def domain(self, val): self["domain"] = val - # dragmode - # -------- @property def dragmode(self): """ @@ -470,8 +192,6 @@ def dragmode(self): def dragmode(self, val): self["dragmode"] = val - # hovermode - # --------- @property def hovermode(self): """ @@ -491,8 +211,6 @@ def hovermode(self): def hovermode(self, val): self["hovermode"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -511,8 +229,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # xaxis - # ----- @property def xaxis(self): """ @@ -522,336 +238,6 @@ 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 @@ -862,8 +248,6 @@ def xaxis(self): def xaxis(self, val): self["xaxis"] = val - # yaxis - # ----- @property def yaxis(self): """ @@ -873,336 +257,6 @@ 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 @@ -1213,8 +267,6 @@ def yaxis(self): def yaxis(self, val): self["yaxis"] = val - # zaxis - # ----- @property def zaxis(self): """ @@ -1224,336 +276,6 @@ 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 @@ -1564,8 +286,6 @@ def zaxis(self): def zaxis(self, val): self["zaxis"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1698,14 +418,11 @@ def __init__( ------- Scene """ - super(Scene, self).__init__("scene") - + super().__init__("scene") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1720,70 +437,21 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("annotations", arg, annotations) + self._set_property("annotationdefaults", arg, annotationdefaults) + self._set_property("aspectmode", arg, aspectmode) + self._set_property("aspectratio", arg, aspectratio) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("camera", arg, camera) + self._set_property("domain", arg, domain) + self._set_property("dragmode", arg, dragmode) + self._set_property("hovermode", arg, hovermode) + self._set_property("uirevision", arg, uirevision) + self._set_property("xaxis", arg, xaxis) + self._set_property("yaxis", arg, yaxis) + self._set_property("zaxis", arg, zaxis) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/_selection.py b/plotly/graph_objs/layout/_selection.py index f4b15935f3..d01ea200d7 100644 --- a/plotly/graph_objs/layout/_selection.py +++ b/plotly/graph_objs/layout/_selection.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Selection(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout" _path_str = "layout.selection" _valid_props = { @@ -23,8 +24,6 @@ class Selection(_BaseLayoutHierarchyType): "yref", } - # line - # ---- @property def line(self): """ @@ -34,18 +33,6 @@ 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 @@ -56,8 +43,6 @@ def line(self): def line(self, val): self["line"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +68,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -103,8 +86,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # path - # ---- @property def path(self): """ @@ -125,8 +106,6 @@ def path(self): def path(self, val): self["path"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -153,8 +132,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # type - # ---- @property def type(self): """ @@ -177,8 +154,6 @@ def type(self): def type(self, val): self["type"] = val - # x0 - # -- @property def x0(self): """ @@ -196,8 +171,6 @@ def x0(self): def x0(self, val): self["x0"] = val - # x1 - # -- @property def x1(self): """ @@ -215,8 +188,6 @@ def x1(self): def x1(self, val): self["x1"] = val - # xref - # ---- @property def xref(self): """ @@ -248,8 +219,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y0 - # -- @property def y0(self): """ @@ -267,8 +236,6 @@ def y0(self): def y0(self, val): self["y0"] = val - # y1 - # -- @property def y1(self): """ @@ -286,8 +253,6 @@ def y1(self): def y1(self, val): self["y1"] = val - # yref - # ---- @property def yref(self): """ @@ -319,8 +284,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -495,14 +458,11 @@ def __init__( ------- Selection """ - super(Selection, self).__init__("selections") - + super().__init__("selections") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -517,66 +477,20 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("line", arg, line) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("path", arg, path) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("type", arg, type) + self._set_property("x0", arg, x0) + self._set_property("x1", arg, x1) + self._set_property("xref", arg, xref) + self._set_property("y0", arg, y0) + self._set_property("y1", arg, y1) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/_shape.py b/plotly/graph_objs/layout/_shape.py index 3ca398a320..b95ee53639 100644 --- a/plotly/graph_objs/layout/_shape.py +++ b/plotly/graph_objs/layout/_shape.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Shape(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout" _path_str = "layout.shape" _valid_props = { @@ -43,8 +44,6 @@ class Shape(_BaseLayoutHierarchyType): "ysizemode", } - # editable - # -------- @property def editable(self): """ @@ -65,8 +64,6 @@ def editable(self): def editable(self, val): self["editable"] = val - # fillcolor - # --------- @property def fillcolor(self): """ @@ -78,42 +75,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -125,8 +87,6 @@ def fillcolor(self): def fillcolor(self, val): self["fillcolor"] = val - # fillrule - # -------- @property def fillrule(self): """ @@ -149,8 +109,6 @@ def fillrule(self): def fillrule(self, val): self["fillrule"] = val - # label - # ----- @property def label(self): """ @@ -160,75 +118,6 @@ 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 @@ -239,8 +128,6 @@ def label(self): def label(self, val): self["label"] = val - # layer - # ----- @property def layer(self): """ @@ -262,8 +149,6 @@ def layer(self): def layer(self, val): self["layer"] = val - # legend - # ------ @property def legend(self): """ @@ -287,8 +172,6 @@ def legend(self): def legend(self, val): self["legend"] = val - # legendgroup - # ----------- @property def legendgroup(self): """ @@ -310,8 +193,6 @@ def legendgroup(self): def legendgroup(self, val): self["legendgroup"] = val - # legendgrouptitle - # ---------------- @property def legendgrouptitle(self): """ @@ -321,13 +202,6 @@ 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 @@ -338,8 +212,6 @@ def legendgrouptitle(self): def legendgrouptitle(self, val): self["legendgrouptitle"] = val - # legendrank - # ---------- @property def legendrank(self): """ @@ -365,8 +237,6 @@ def legendrank(self): def legendrank(self, val): self["legendrank"] = val - # legendwidth - # ----------- @property def legendwidth(self): """ @@ -386,8 +256,6 @@ def legendwidth(self): def legendwidth(self, val): self["legendwidth"] = val - # line - # ---- @property def line(self): """ @@ -397,18 +265,6 @@ 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 @@ -419,8 +275,6 @@ def line(self): def line(self, val): self["line"] = val - # name - # ---- @property def name(self): """ @@ -446,8 +300,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -466,8 +318,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # path - # ---- @property def path(self): """ @@ -505,8 +355,6 @@ def path(self): def path(self, val): self["path"] = val - # showlegend - # ---------- @property def showlegend(self): """ @@ -525,8 +373,6 @@ def showlegend(self): def showlegend(self, val): self["showlegend"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -553,8 +399,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # type - # ---- @property def type(self): """ @@ -582,8 +426,6 @@ def type(self): def type(self, val): self["type"] = val - # visible - # ------- @property def visible(self): """ @@ -605,8 +447,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # x0 - # -- @property def x0(self): """ @@ -625,8 +465,6 @@ def x0(self): def x0(self, val): self["x0"] = val - # x0shift - # ------- @property def x0shift(self): """ @@ -648,8 +486,6 @@ def x0shift(self): def x0shift(self, val): self["x0shift"] = val - # x1 - # -- @property def x1(self): """ @@ -668,8 +504,6 @@ def x1(self): def x1(self, val): self["x1"] = val - # x1shift - # ------- @property def x1shift(self): """ @@ -691,8 +525,6 @@ def x1shift(self): def x1shift(self, val): self["x1shift"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -714,8 +546,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xref - # ---- @property def xref(self): """ @@ -747,8 +577,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # xsizemode - # --------- @property def xsizemode(self): """ @@ -775,8 +603,6 @@ def xsizemode(self): def xsizemode(self, val): self["xsizemode"] = val - # y0 - # -- @property def y0(self): """ @@ -795,8 +621,6 @@ def y0(self): def y0(self, val): self["y0"] = val - # y0shift - # ------- @property def y0shift(self): """ @@ -818,8 +642,6 @@ def y0shift(self): def y0shift(self, val): self["y0shift"] = val - # y1 - # -- @property def y1(self): """ @@ -838,8 +660,6 @@ def y1(self): def y1(self, val): self["y1"] = val - # y1shift - # ------- @property def y1shift(self): """ @@ -861,8 +681,6 @@ def y1shift(self): def y1shift(self, val): self["y1shift"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -884,8 +702,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # yref - # ---- @property def yref(self): """ @@ -917,8 +733,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # ysizemode - # --------- @property def ysizemode(self): """ @@ -945,8 +759,6 @@ def ysizemode(self): def ysizemode(self, val): self["ysizemode"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1420,14 +1232,11 @@ def __init__( ------- Shape """ - super(Shape, self).__init__("shapes") - + super().__init__("shapes") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1442,146 +1251,40 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("editable", arg, editable) + self._set_property("fillcolor", arg, fillcolor) + self._set_property("fillrule", arg, fillrule) + self._set_property("label", arg, label) + self._set_property("layer", arg, layer) + self._set_property("legend", arg, legend) + self._set_property("legendgroup", arg, legendgroup) + self._set_property("legendgrouptitle", arg, legendgrouptitle) + self._set_property("legendrank", arg, legendrank) + self._set_property("legendwidth", arg, legendwidth) + self._set_property("line", arg, line) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("path", arg, path) + self._set_property("showlegend", arg, showlegend) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("type", arg, type) + self._set_property("visible", arg, visible) + self._set_property("x0", arg, x0) + self._set_property("x0shift", arg, x0shift) + self._set_property("x1", arg, x1) + self._set_property("x1shift", arg, x1shift) + self._set_property("xanchor", arg, xanchor) + self._set_property("xref", arg, xref) + self._set_property("xsizemode", arg, xsizemode) + self._set_property("y0", arg, y0) + self._set_property("y0shift", arg, y0shift) + self._set_property("y1", arg, y1) + self._set_property("y1shift", arg, y1shift) + self._set_property("yanchor", arg, yanchor) + self._set_property("yref", arg, yref) + self._set_property("ysizemode", arg, ysizemode) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/_slider.py b/plotly/graph_objs/layout/_slider.py index b341f45efc..69546f3561 100644 --- a/plotly/graph_objs/layout/_slider.py +++ b/plotly/graph_objs/layout/_slider.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Slider(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout" _path_str = "layout.slider" _valid_props = { @@ -35,8 +36,6 @@ class Slider(_BaseLayoutHierarchyType): "yanchor", } - # active - # ------ @property def active(self): """ @@ -56,8 +55,6 @@ def active(self): def active(self, val): self["active"] = val - # activebgcolor - # ------------- @property def activebgcolor(self): """ @@ -68,42 +65,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -115,8 +77,6 @@ def activebgcolor(self): def activebgcolor(self, val): self["activebgcolor"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -127,42 +87,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -174,8 +99,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -186,42 +109,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -233,8 +121,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -253,8 +139,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # currentvalue - # ------------ @property def currentvalue(self): """ @@ -264,26 +148,6 @@ 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 @@ -294,8 +158,6 @@ def currentvalue(self): def currentvalue(self, val): self["currentvalue"] = val - # font - # ---- @property def font(self): """ @@ -307,52 +169,6 @@ 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 @@ -363,8 +179,6 @@ def font(self): def font(self, val): self["font"] = val - # len - # --- @property def len(self): """ @@ -385,8 +199,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -407,8 +219,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minorticklen - # ------------ @property def minorticklen(self): """ @@ -427,8 +237,6 @@ def minorticklen(self): def minorticklen(self, val): self["minorticklen"] = val - # name - # ---- @property def name(self): """ @@ -454,8 +262,6 @@ def name(self): def name(self, val): self["name"] = val - # pad - # --- @property def pad(self): """ @@ -467,21 +273,6 @@ 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 @@ -492,8 +283,6 @@ def pad(self): def pad(self, val): self["pad"] = val - # steps - # ----- @property def steps(self): """ @@ -503,60 +292,6 @@ 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] @@ -567,8 +302,6 @@ def steps(self): def steps(self, val): self["steps"] = val - # stepdefaults - # ------------ @property def stepdefaults(self): """ @@ -582,8 +315,6 @@ 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 @@ -594,8 +325,6 @@ def stepdefaults(self): def stepdefaults(self, val): self["stepdefaults"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -622,8 +351,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -634,42 +361,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -681,8 +373,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -701,8 +391,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -721,8 +409,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # transition - # ---------- @property def transition(self): """ @@ -732,14 +418,6 @@ 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 @@ -750,8 +428,6 @@ def transition(self): def transition(self, val): self["transition"] = val - # visible - # ------- @property def visible(self): """ @@ -770,8 +446,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # x - # - @property def x(self): """ @@ -790,8 +464,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -813,8 +485,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # y - # - @property def y(self): """ @@ -833,8 +503,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -856,8 +524,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1073,14 +739,11 @@ def __init__( ------- Slider """ - super(Slider, self).__init__("sliders") - + super().__init__("sliders") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1095,114 +758,32 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("active", arg, active) + self._set_property("activebgcolor", arg, activebgcolor) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("currentvalue", arg, currentvalue) + self._set_property("font", arg, font) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minorticklen", arg, minorticklen) + self._set_property("name", arg, name) + self._set_property("pad", arg, pad) + self._set_property("steps", arg, steps) + self._set_property("stepdefaults", arg, stepdefaults) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("transition", arg, transition) + self._set_property("visible", arg, visible) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/_smith.py b/plotly/graph_objs/layout/_smith.py index cca15510a8..ad97b2b5c7 100644 --- a/plotly/graph_objs/layout/_smith.py +++ b/plotly/graph_objs/layout/_smith.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Smith(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout" _path_str = "layout.smith" _valid_props = {"bgcolor", "domain", "imaginaryaxis", "realaxis"} - # bgcolor - # ------- @property def bgcolor(self): """ @@ -22,42 +21,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # domain - # ------ @property def domain(self): """ @@ -80,22 +42,6 @@ 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 @@ -106,8 +52,6 @@ def domain(self): def domain(self, val): self["domain"] = val - # imaginaryaxis - # ------------- @property def imaginaryaxis(self): """ @@ -117,125 +61,6 @@ 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 @@ -246,8 +71,6 @@ def imaginaryaxis(self): def imaginaryaxis(self, val): self["imaginaryaxis"] = val - # realaxis - # -------- @property def realaxis(self): """ @@ -257,131 +80,6 @@ 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 @@ -392,8 +90,6 @@ def realaxis(self): def realaxis(self, val): self["realaxis"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -443,14 +139,11 @@ def __init__( ------- Smith """ - super(Smith, self).__init__("smith") - + super().__init__("smith") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -465,34 +158,12 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("domain", arg, domain) + self._set_property("imaginaryaxis", arg, imaginaryaxis) + self._set_property("realaxis", arg, realaxis) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/_template.py b/plotly/graph_objs/layout/_template.py index 1f90ba94cb..c06e559569 100644 --- a/plotly/graph_objs/layout/_template.py +++ b/plotly/graph_objs/layout/_template.py @@ -1,3 +1,6 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy import warnings @@ -5,14 +8,10 @@ class Template(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout" _path_str = "layout.template" _valid_props = {"data", "layout"} - # data - # ---- @property def data(self): """ @@ -22,190 +21,6 @@ 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 @@ -216,8 +31,6 @@ def data(self): def data(self, val): self["data"] = val - # layout - # ------ @property def layout(self): """ @@ -227,8 +40,6 @@ 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 @@ -239,8 +50,6 @@ def layout(self): def layout(self, val): self["layout"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -293,14 +102,11 @@ def __init__(self, arg=None, data=None, layout=None, **kwargs): ------- Template """ - super(Template, self).__init__("template") - + super().__init__("template") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -315,32 +121,16 @@ def __init__(self, arg=None, data=None, layout=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = arg.pop("data", None) - _v = data if data is not None else _v - if _v is not None: - # Template.data contains a 'scattermapbox' key, which causes a - # go.Scattermapbox trace object to be created during validation. - # In order to prevent false deprecation warnings from surfacing, - # we suppress deprecation warnings for this line only. - with warnings.catch_warnings(): - warnings.filterwarnings("ignore", category=DeprecationWarning) - 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 - - # Process unknown kwargs - # ---------------------- + # Template.data contains a 'scattermapbox' key, which causes a + # go.Scattermapbox trace object to be created during validation. + # In order to prevent false deprecation warnings from surfacing, + # we suppress deprecation warnings for this line only. + with warnings.catch_warnings(): + warnings.filterwarnings("ignore", category=DeprecationWarning) + self._set_property("data", arg, data) + self._set_property("layout", arg, layout) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/_ternary.py b/plotly/graph_objs/layout/_ternary.py index 081987aefa..c99800f394 100644 --- a/plotly/graph_objs/layout/_ternary.py +++ b/plotly/graph_objs/layout/_ternary.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Ternary(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout" _path_str = "layout.ternary" _valid_props = {"aaxis", "baxis", "bgcolor", "caxis", "domain", "sum", "uirevision"} - # aaxis - # ----- @property def aaxis(self): """ @@ -21,241 +20,6 @@ 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 @@ -266,8 +30,6 @@ def aaxis(self): def aaxis(self, val): self["aaxis"] = val - # baxis - # ----- @property def baxis(self): """ @@ -277,241 +39,6 @@ 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 @@ -522,8 +49,6 @@ def baxis(self): def baxis(self, val): self["baxis"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -534,42 +59,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -581,8 +71,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # caxis - # ----- @property def caxis(self): """ @@ -592,241 +80,6 @@ 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 @@ -837,8 +90,6 @@ def caxis(self): def caxis(self, val): self["caxis"] = val - # domain - # ------ @property def domain(self): """ @@ -848,22 +99,6 @@ 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 @@ -874,8 +109,6 @@ def domain(self): def domain(self, val): self["domain"] = val - # sum - # --- @property def sum(self): """ @@ -895,8 +128,6 @@ def sum(self): def sum(self, val): self["sum"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -916,8 +147,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -991,14 +220,11 @@ def __init__( ------- Ternary """ - super(Ternary, self).__init__("ternary") - + super().__init__("ternary") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1013,46 +239,15 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("aaxis", arg, aaxis) + self._set_property("baxis", arg, baxis) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("caxis", arg, caxis) + self._set_property("domain", arg, domain) + self._set_property("sum", arg, sum) + self._set_property("uirevision", arg, uirevision) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/_title.py b/plotly/graph_objs/layout/_title.py index f1500f4c49..ce4cf1c3cb 100644 --- a/plotly/graph_objs/layout/_title.py +++ b/plotly/graph_objs/layout/_title.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Title(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout" _path_str = "layout.title" _valid_props = { @@ -22,8 +23,6 @@ class Title(_BaseLayoutHierarchyType): "yref", } - # automargin - # ---------- @property def automargin(self): """ @@ -52,8 +51,6 @@ def automargin(self): def automargin(self, val): self["automargin"] = val - # font - # ---- @property def font(self): """ @@ -65,52 +62,6 @@ 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 @@ -121,8 +72,6 @@ def font(self): def font(self, val): self["font"] = val - # pad - # --- @property def pad(self): """ @@ -139,21 +88,6 @@ 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 @@ -164,8 +98,6 @@ def pad(self): def pad(self, val): self["pad"] = val - # subtitle - # -------- @property def subtitle(self): """ @@ -175,13 +107,6 @@ 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 @@ -192,8 +117,6 @@ def subtitle(self): def subtitle(self, val): self["subtitle"] = val - # text - # ---- @property def text(self): """ @@ -213,8 +136,6 @@ def text(self): def text(self, val): self["text"] = val - # x - # - @property def x(self): """ @@ -234,8 +155,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -260,8 +179,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xref - # ---- @property def xref(self): """ @@ -283,8 +200,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -306,8 +221,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -332,8 +245,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # yref - # ---- @property def yref(self): """ @@ -355,8 +266,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -507,14 +416,11 @@ def __init__( ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -529,62 +435,19 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("automargin", arg, automargin) + self._set_property("font", arg, font) + self._set_property("pad", arg, pad) + self._set_property("subtitle", arg, subtitle) + self._set_property("text", arg, text) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/_transition.py b/plotly/graph_objs/layout/_transition.py index 63b3c71b3c..f66a7a5c81 100644 --- a/plotly/graph_objs/layout/_transition.py +++ b/plotly/graph_objs/layout/_transition.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Transition(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout" _path_str = "layout.transition" _valid_props = {"duration", "easing", "ordering"} - # duration - # -------- @property def duration(self): """ @@ -31,8 +30,6 @@ def duration(self): def duration(self, val): self["duration"] = val - # easing - # ------ @property def easing(self): """ @@ -60,8 +57,6 @@ def easing(self): def easing(self, val): self["easing"] = val - # ordering - # -------- @property def ordering(self): """ @@ -83,8 +78,6 @@ def ordering(self): def ordering(self, val): self["ordering"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -125,14 +118,11 @@ def __init__(self, arg=None, duration=None, easing=None, ordering=None, **kwargs ------- Transition """ - super(Transition, self).__init__("transition") - + super().__init__("transition") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -147,30 +137,11 @@ def __init__(self, arg=None, duration=None, easing=None, ordering=None, **kwargs 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("duration", arg, duration) + self._set_property("easing", arg, easing) + self._set_property("ordering", arg, ordering) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/_uniformtext.py b/plotly/graph_objs/layout/_uniformtext.py index 1292524e0f..4b42830a16 100644 --- a/plotly/graph_objs/layout/_uniformtext.py +++ b/plotly/graph_objs/layout/_uniformtext.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Uniformtext(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout" _path_str = "layout.uniformtext" _valid_props = {"minsize", "mode"} - # minsize - # ------- @property def minsize(self): """ @@ -30,8 +29,6 @@ def minsize(self): def minsize(self, val): self["minsize"] = val - # mode - # ---- @property def mode(self): """ @@ -58,8 +55,6 @@ def mode(self): def mode(self, val): self["mode"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -104,14 +99,11 @@ def __init__(self, arg=None, minsize=None, mode=None, **kwargs): ------- Uniformtext """ - super(Uniformtext, self).__init__("uniformtext") - + super().__init__("uniformtext") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -126,26 +118,10 @@ def __init__(self, arg=None, minsize=None, mode=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("minsize", arg, minsize) + self._set_property("mode", arg, mode) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/_updatemenu.py b/plotly/graph_objs/layout/_updatemenu.py index b12c165844..4e86237830 100644 --- a/plotly/graph_objs/layout/_updatemenu.py +++ b/plotly/graph_objs/layout/_updatemenu.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Updatemenu(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout" _path_str = "layout.updatemenu" _valid_props = { @@ -29,8 +30,6 @@ class Updatemenu(_BaseLayoutHierarchyType): "yanchor", } - # active - # ------ @property def active(self): """ @@ -51,8 +50,6 @@ def active(self): def active(self, val): self["active"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -63,42 +60,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -110,8 +72,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -122,42 +82,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -169,8 +94,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -189,8 +112,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # buttons - # ------- @property def buttons(self): """ @@ -200,62 +121,6 @@ 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] @@ -266,8 +131,6 @@ def buttons(self): def buttons(self, val): self["buttons"] = val - # buttondefaults - # -------------- @property def buttondefaults(self): """ @@ -282,8 +145,6 @@ 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 @@ -294,8 +155,6 @@ def buttondefaults(self): def buttondefaults(self, val): self["buttondefaults"] = val - # direction - # --------- @property def direction(self): """ @@ -318,8 +177,6 @@ def direction(self): def direction(self, val): self["direction"] = val - # font - # ---- @property def font(self): """ @@ -331,52 +188,6 @@ 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 @@ -387,8 +198,6 @@ def font(self): def font(self, val): self["font"] = val - # name - # ---- @property def name(self): """ @@ -414,8 +223,6 @@ def name(self): def name(self, val): self["name"] = val - # pad - # --- @property def pad(self): """ @@ -427,21 +234,6 @@ 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 @@ -452,8 +244,6 @@ def pad(self): def pad(self, val): self["pad"] = val - # showactive - # ---------- @property def showactive(self): """ @@ -472,8 +262,6 @@ def showactive(self): def showactive(self, val): self["showactive"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -500,8 +288,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # type - # ---- @property def type(self): """ @@ -523,8 +309,6 @@ def type(self): def type(self, val): self["type"] = val - # visible - # ------- @property def visible(self): """ @@ -543,8 +327,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # x - # - @property def x(self): """ @@ -564,8 +346,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -587,8 +367,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # y - # - @property def y(self): """ @@ -608,8 +386,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -631,8 +407,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -817,14 +591,11 @@ def __init__( ------- Updatemenu """ - super(Updatemenu, self).__init__("updatemenus") - + super().__init__("updatemenus") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -839,90 +610,26 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("active", arg, active) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("buttons", arg, buttons) + self._set_property("buttondefaults", arg, buttondefaults) + self._set_property("direction", arg, direction) + self._set_property("font", arg, font) + self._set_property("name", arg, name) + self._set_property("pad", arg, pad) + self._set_property("showactive", arg, showactive) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("type", arg, type) + self._set_property("visible", arg, visible) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/_xaxis.py b/plotly/graph_objs/layout/_xaxis.py index 65d73f38e0..cff33a75b0 100644 --- a/plotly/graph_objs/layout/_xaxis.py +++ b/plotly/graph_objs/layout/_xaxis.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class XAxis(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout" _path_str = "layout.xaxis" _valid_props = { @@ -104,8 +105,6 @@ class XAxis(_BaseLayoutHierarchyType): "zerolinewidth", } - # anchor - # ------ @property def anchor(self): """ @@ -130,8 +129,6 @@ def anchor(self): def anchor(self, val): self["anchor"] = val - # automargin - # ---------- @property def automargin(self): """ @@ -154,8 +151,6 @@ def automargin(self): def automargin(self, val): self["automargin"] = val - # autorange - # --------- @property def autorange(self): """ @@ -185,8 +180,6 @@ def autorange(self): def autorange(self, val): self["autorange"] = val - # autorangeoptions - # ---------------- @property def autorangeoptions(self): """ @@ -196,26 +189,6 @@ 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 @@ -226,8 +199,6 @@ def autorangeoptions(self): def autorangeoptions(self, val): self["autorangeoptions"] = val - # autotickangles - # -------------- @property def autotickangles(self): """ @@ -252,8 +223,6 @@ def autotickangles(self): def autotickangles(self, val): self["autotickangles"] = val - # autotypenumbers - # --------------- @property def autotypenumbers(self): """ @@ -276,8 +245,6 @@ def autotypenumbers(self): def autotypenumbers(self, val): self["autotypenumbers"] = val - # calendar - # -------- @property def calendar(self): """ @@ -303,8 +270,6 @@ def calendar(self): def calendar(self, val): self["calendar"] = val - # categoryarray - # ------------- @property def categoryarray(self): """ @@ -325,8 +290,6 @@ def categoryarray(self): def categoryarray(self, val): self["categoryarray"] = val - # categoryarraysrc - # ---------------- @property def categoryarraysrc(self): """ @@ -346,8 +309,6 @@ def categoryarraysrc(self): def categoryarraysrc(self, val): self["categoryarraysrc"] = val - # categoryorder - # ------------- @property def categoryorder(self): """ @@ -387,8 +348,6 @@ def categoryorder(self): def categoryorder(self, val): self["categoryorder"] = val - # color - # ----- @property def color(self): """ @@ -402,42 +361,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -449,8 +373,6 @@ def color(self): def color(self, val): self["color"] = val - # constrain - # --------- @property def constrain(self): """ @@ -474,8 +396,6 @@ def constrain(self): def constrain(self, val): self["constrain"] = val - # constraintoward - # --------------- @property def constraintoward(self): """ @@ -500,8 +420,6 @@ def constraintoward(self): def constraintoward(self, val): self["constraintoward"] = val - # dividercolor - # ------------ @property def dividercolor(self): """ @@ -513,42 +431,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -560,8 +443,6 @@ def dividercolor(self): def dividercolor(self, val): self["dividercolor"] = val - # dividerwidth - # ------------ @property def dividerwidth(self): """ @@ -581,8 +462,6 @@ def dividerwidth(self): def dividerwidth(self, val): self["dividerwidth"] = val - # domain - # ------ @property def domain(self): """ @@ -606,8 +485,6 @@ def domain(self): def domain(self, val): self["domain"] = val - # dtick - # ----- @property def dtick(self): """ @@ -644,8 +521,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -669,8 +544,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # fixedrange - # ---------- @property def fixedrange(self): """ @@ -690,8 +563,6 @@ def fixedrange(self): def fixedrange(self, val): self["fixedrange"] = val - # gridcolor - # --------- @property def gridcolor(self): """ @@ -702,42 +573,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -749,8 +585,6 @@ def gridcolor(self): def gridcolor(self, val): self["gridcolor"] = val - # griddash - # -------- @property def griddash(self): """ @@ -775,8 +609,6 @@ def griddash(self): def griddash(self, val): self["griddash"] = val - # gridwidth - # --------- @property def gridwidth(self): """ @@ -795,8 +627,6 @@ def gridwidth(self): def gridwidth(self, val): self["gridwidth"] = val - # hoverformat - # ----------- @property def hoverformat(self): """ @@ -825,8 +655,6 @@ def hoverformat(self): def hoverformat(self, val): self["hoverformat"] = val - # insiderange - # ----------- @property def insiderange(self): """ @@ -851,8 +679,6 @@ def insiderange(self): def insiderange(self, val): self["insiderange"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -878,8 +704,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # layer - # ----- @property def layer(self): """ @@ -904,8 +728,6 @@ def layer(self): def layer(self, val): self["layer"] = val - # linecolor - # --------- @property def linecolor(self): """ @@ -916,42 +738,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -963,8 +750,6 @@ def linecolor(self): def linecolor(self, val): self["linecolor"] = val - # linewidth - # --------- @property def linewidth(self): """ @@ -983,8 +768,6 @@ def linewidth(self): def linewidth(self, val): self["linewidth"] = val - # matches - # ------- @property def matches(self): """ @@ -1011,8 +794,6 @@ def matches(self): def matches(self, val): self["matches"] = val - # maxallowed - # ---------- @property def maxallowed(self): """ @@ -1030,8 +811,6 @@ def maxallowed(self): def maxallowed(self, val): self["maxallowed"] = val - # minallowed - # ---------- @property def minallowed(self): """ @@ -1049,8 +828,6 @@ def minallowed(self): def minallowed(self, val): self["minallowed"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -1070,8 +847,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # minor - # ----- @property def minor(self): """ @@ -1081,97 +856,6 @@ 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 @@ -1182,8 +866,6 @@ def minor(self): def minor(self, val): self["minor"] = val - # mirror - # ------ @property def mirror(self): """ @@ -1208,8 +890,6 @@ def mirror(self): def mirror(self, val): self["mirror"] = val - # nticks - # ------ @property def nticks(self): """ @@ -1232,8 +912,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # overlaying - # ---------- @property def overlaying(self): """ @@ -1260,8 +938,6 @@ def overlaying(self): def overlaying(self, val): self["overlaying"] = val - # position - # -------- @property def position(self): """ @@ -1282,8 +958,6 @@ def position(self): def position(self, val): self["position"] = val - # range - # ----- @property def range(self): """ @@ -1314,8 +988,6 @@ def range(self): def range(self, val): self["range"] = val - # rangebreaks - # ----------- @property def rangebreaks(self): """ @@ -1325,60 +997,6 @@ 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] @@ -1389,8 +1007,6 @@ def rangebreaks(self): def rangebreaks(self, val): self["rangebreaks"] = val - # rangebreakdefaults - # ------------------ @property def rangebreakdefaults(self): """ @@ -1405,8 +1021,6 @@ 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 @@ -1417,13 +1031,11 @@ def rangebreakdefaults(self): def rangebreakdefaults(self, val): self["rangebreakdefaults"] = val - # rangemode - # --------- @property def rangemode(self): """ If "normal", the range is computed in relation to the extrema - of the input data. If *tozero*`, the range extends to 0, + 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. @@ -1442,8 +1054,6 @@ def rangemode(self): def rangemode(self, val): self["rangemode"] = val - # rangeselector - # ------------- @property def rangeselector(self): """ @@ -1453,54 +1063,6 @@ 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 @@ -1511,8 +1073,6 @@ def rangeselector(self): def rangeselector(self, val): self["rangeselector"] = val - # rangeslider - # ----------- @property def rangeslider(self): """ @@ -1522,43 +1082,6 @@ 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 @@ -1569,8 +1092,6 @@ def rangeslider(self): def rangeslider(self, val): self["rangeslider"] = val - # scaleanchor - # ----------- @property def scaleanchor(self): """ @@ -1614,8 +1135,6 @@ def scaleanchor(self): def scaleanchor(self, val): self["scaleanchor"] = val - # scaleratio - # ---------- @property def scaleratio(self): """ @@ -1639,8 +1158,6 @@ def scaleratio(self): def scaleratio(self, val): self["scaleratio"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -1659,8 +1176,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showdividers - # ------------ @property def showdividers(self): """ @@ -1681,8 +1196,6 @@ def showdividers(self): def showdividers(self, val): self["showdividers"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -1705,8 +1218,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showgrid - # -------- @property def showgrid(self): """ @@ -1726,8 +1237,6 @@ def showgrid(self): def showgrid(self, val): self["showgrid"] = val - # showline - # -------- @property def showline(self): """ @@ -1746,8 +1255,6 @@ def showline(self): def showline(self, val): self["showline"] = val - # showspikes - # ---------- @property def showspikes(self): """ @@ -1768,8 +1275,6 @@ def showspikes(self): def showspikes(self, val): self["showspikes"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -1788,8 +1293,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -1812,8 +1315,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -1833,8 +1334,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # side - # ---- @property def side(self): """ @@ -1855,8 +1354,6 @@ def side(self): def side(self, val): self["side"] = val - # spikecolor - # ---------- @property def spikecolor(self): """ @@ -1867,42 +1364,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -1914,8 +1376,6 @@ def spikecolor(self): def spikecolor(self, val): self["spikecolor"] = val - # spikedash - # --------- @property def spikedash(self): """ @@ -1940,8 +1400,6 @@ def spikedash(self): def spikedash(self, val): self["spikedash"] = val - # spikemode - # --------- @property def spikemode(self): """ @@ -1966,8 +1424,6 @@ def spikemode(self): def spikemode(self, val): self["spikemode"] = val - # spikesnap - # --------- @property def spikesnap(self): """ @@ -1988,8 +1444,6 @@ def spikesnap(self): def spikesnap(self, val): self["spikesnap"] = val - # spikethickness - # -------------- @property def spikethickness(self): """ @@ -2008,8 +1462,6 @@ def spikethickness(self): def spikethickness(self, val): self["spikethickness"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -2035,8 +1487,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -2059,8 +1509,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -2071,42 +1519,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -2118,8 +1531,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -2131,52 +1542,6 @@ 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 @@ -2187,8 +1552,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -2217,8 +1580,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -2228,42 +1589,6 @@ 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] @@ -2274,8 +1599,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -2290,8 +1613,6 @@ 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 @@ -2302,8 +1623,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabelindex - # -------------- @property def ticklabelindex(self): """ @@ -2330,8 +1649,6 @@ def ticklabelindex(self): def ticklabelindex(self, val): self["ticklabelindex"] = val - # ticklabelindexsrc - # ----------------- @property def ticklabelindexsrc(self): """ @@ -2351,8 +1668,6 @@ def ticklabelindexsrc(self): def ticklabelindexsrc(self, val): self["ticklabelindexsrc"] = val - # ticklabelmode - # ------------- @property def ticklabelmode(self): """ @@ -2375,8 +1690,6 @@ def ticklabelmode(self): def ticklabelmode(self, val): self["ticklabelmode"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -2400,8 +1713,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -2430,8 +1741,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelshift - # -------------- @property def ticklabelshift(self): """ @@ -2452,8 +1761,6 @@ def ticklabelshift(self): def ticklabelshift(self, val): self["ticklabelshift"] = val - # ticklabelstandoff - # ----------------- @property def ticklabelstandoff(self): """ @@ -2480,8 +1787,6 @@ def ticklabelstandoff(self): def ticklabelstandoff(self, val): self["ticklabelstandoff"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -2506,8 +1811,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -2526,8 +1829,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -2555,8 +1856,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -2576,8 +1875,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -2599,8 +1896,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # tickson - # ------- @property def tickson(self): """ @@ -2624,8 +1919,6 @@ def tickson(self): def tickson(self, val): self["tickson"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -2645,8 +1938,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -2667,8 +1958,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -2687,8 +1976,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -2708,8 +1995,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -2728,8 +2013,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -2748,8 +2031,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -2759,25 +2040,6 @@ 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 @@ -2788,8 +2050,6 @@ def title(self): def title(self, val): self["title"] = val - # type - # ---- @property def type(self): """ @@ -2812,8 +2072,6 @@ def type(self): def type(self, val): self["type"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -2833,8 +2091,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # visible - # ------- @property def visible(self): """ @@ -2855,8 +2111,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # zeroline - # -------- @property def zeroline(self): """ @@ -2877,8 +2131,6 @@ def zeroline(self): def zeroline(self, val): self["zeroline"] = val - # zerolinecolor - # ------------- @property def zerolinecolor(self): """ @@ -2889,42 +2141,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -2936,8 +2153,6 @@ def zerolinecolor(self): def zerolinecolor(self, val): self["zerolinecolor"] = val - # zerolinewidth - # ------------- @property def zerolinewidth(self): """ @@ -2956,8 +2171,6 @@ def zerolinewidth(self): def zerolinewidth(self, val): self["zerolinewidth"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -3202,7 +2415,7 @@ def _prop_descriptions(self): layout.xaxis.rangebreaks rangemode If "normal", the range is computed in relation to the - extrema of the input data. If *tozero*`, the range + 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. @@ -3816,7 +3029,7 @@ def __init__( layout.xaxis.rangebreaks rangemode If "normal", the range is computed in relation to the - extrema of the input data. If *tozero*`, the range + 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. @@ -4086,14 +3299,11 @@ def __init__( ------- XAxis """ - super(XAxis, self).__init__("xaxis") - + super().__init__("xaxis") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -4108,390 +3318,101 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("anchor", arg, anchor) + self._set_property("automargin", arg, automargin) + self._set_property("autorange", arg, autorange) + self._set_property("autorangeoptions", arg, autorangeoptions) + self._set_property("autotickangles", arg, autotickangles) + self._set_property("autotypenumbers", arg, autotypenumbers) + self._set_property("calendar", arg, calendar) + self._set_property("categoryarray", arg, categoryarray) + self._set_property("categoryarraysrc", arg, categoryarraysrc) + self._set_property("categoryorder", arg, categoryorder) + self._set_property("color", arg, color) + self._set_property("constrain", arg, constrain) + self._set_property("constraintoward", arg, constraintoward) + self._set_property("dividercolor", arg, dividercolor) + self._set_property("dividerwidth", arg, dividerwidth) + self._set_property("domain", arg, domain) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("fixedrange", arg, fixedrange) + self._set_property("gridcolor", arg, gridcolor) + self._set_property("griddash", arg, griddash) + self._set_property("gridwidth", arg, gridwidth) + self._set_property("hoverformat", arg, hoverformat) + self._set_property("insiderange", arg, insiderange) + self._set_property("labelalias", arg, labelalias) + self._set_property("layer", arg, layer) + self._set_property("linecolor", arg, linecolor) + self._set_property("linewidth", arg, linewidth) + self._set_property("matches", arg, matches) + self._set_property("maxallowed", arg, maxallowed) + self._set_property("minallowed", arg, minallowed) + self._set_property("minexponent", arg, minexponent) + self._set_property("minor", arg, minor) + self._set_property("mirror", arg, mirror) + self._set_property("nticks", arg, nticks) + self._set_property("overlaying", arg, overlaying) + self._set_property("position", arg, position) + self._set_property("range", arg, range) + self._set_property("rangebreaks", arg, rangebreaks) + self._set_property("rangebreakdefaults", arg, rangebreakdefaults) + self._set_property("rangemode", arg, rangemode) + self._set_property("rangeselector", arg, rangeselector) + self._set_property("rangeslider", arg, rangeslider) + self._set_property("scaleanchor", arg, scaleanchor) + self._set_property("scaleratio", arg, scaleratio) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showdividers", arg, showdividers) + self._set_property("showexponent", arg, showexponent) + self._set_property("showgrid", arg, showgrid) + self._set_property("showline", arg, showline) + self._set_property("showspikes", arg, showspikes) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("side", arg, side) + self._set_property("spikecolor", arg, spikecolor) + self._set_property("spikedash", arg, spikedash) + self._set_property("spikemode", arg, spikemode) + self._set_property("spikesnap", arg, spikesnap) + self._set_property("spikethickness", arg, spikethickness) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabelindex", arg, ticklabelindex) + self._set_property("ticklabelindexsrc", arg, ticklabelindexsrc) + self._set_property("ticklabelmode", arg, ticklabelmode) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelshift", arg, ticklabelshift) + self._set_property("ticklabelstandoff", arg, ticklabelstandoff) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("tickson", arg, tickson) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("type", arg, type) + self._set_property("uirevision", arg, uirevision) + self._set_property("visible", arg, visible) + self._set_property("zeroline", arg, zeroline) + self._set_property("zerolinecolor", arg, zerolinecolor) + self._set_property("zerolinewidth", arg, zerolinewidth) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/_yaxis.py b/plotly/graph_objs/layout/_yaxis.py index c3deb7fbe0..50c195a6c3 100644 --- a/plotly/graph_objs/layout/_yaxis.py +++ b/plotly/graph_objs/layout/_yaxis.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class YAxis(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout" _path_str = "layout.yaxis" _valid_props = { @@ -104,8 +105,6 @@ class YAxis(_BaseLayoutHierarchyType): "zerolinewidth", } - # anchor - # ------ @property def anchor(self): """ @@ -130,8 +129,6 @@ def anchor(self): def anchor(self, val): self["anchor"] = val - # automargin - # ---------- @property def automargin(self): """ @@ -154,8 +151,6 @@ def automargin(self): def automargin(self, val): self["automargin"] = val - # autorange - # --------- @property def autorange(self): """ @@ -185,8 +180,6 @@ def autorange(self): def autorange(self, val): self["autorange"] = val - # autorangeoptions - # ---------------- @property def autorangeoptions(self): """ @@ -196,26 +189,6 @@ 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 @@ -226,8 +199,6 @@ def autorangeoptions(self): def autorangeoptions(self, val): self["autorangeoptions"] = val - # autoshift - # --------- @property def autoshift(self): """ @@ -250,8 +221,6 @@ def autoshift(self): def autoshift(self, val): self["autoshift"] = val - # autotickangles - # -------------- @property def autotickangles(self): """ @@ -276,8 +245,6 @@ def autotickangles(self): def autotickangles(self, val): self["autotickangles"] = val - # autotypenumbers - # --------------- @property def autotypenumbers(self): """ @@ -300,8 +267,6 @@ def autotypenumbers(self): def autotypenumbers(self, val): self["autotypenumbers"] = val - # calendar - # -------- @property def calendar(self): """ @@ -327,8 +292,6 @@ def calendar(self): def calendar(self, val): self["calendar"] = val - # categoryarray - # ------------- @property def categoryarray(self): """ @@ -349,8 +312,6 @@ def categoryarray(self): def categoryarray(self, val): self["categoryarray"] = val - # categoryarraysrc - # ---------------- @property def categoryarraysrc(self): """ @@ -370,8 +331,6 @@ def categoryarraysrc(self): def categoryarraysrc(self, val): self["categoryarraysrc"] = val - # categoryorder - # ------------- @property def categoryorder(self): """ @@ -411,8 +370,6 @@ def categoryorder(self): def categoryorder(self, val): self["categoryorder"] = val - # color - # ----- @property def color(self): """ @@ -426,42 +383,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -473,8 +395,6 @@ def color(self): def color(self, val): self["color"] = val - # constrain - # --------- @property def constrain(self): """ @@ -498,8 +418,6 @@ def constrain(self): def constrain(self, val): self["constrain"] = val - # constraintoward - # --------------- @property def constraintoward(self): """ @@ -524,8 +442,6 @@ def constraintoward(self): def constraintoward(self, val): self["constraintoward"] = val - # dividercolor - # ------------ @property def dividercolor(self): """ @@ -537,42 +453,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -584,8 +465,6 @@ def dividercolor(self): def dividercolor(self, val): self["dividercolor"] = val - # dividerwidth - # ------------ @property def dividerwidth(self): """ @@ -605,8 +484,6 @@ def dividerwidth(self): def dividerwidth(self, val): self["dividerwidth"] = val - # domain - # ------ @property def domain(self): """ @@ -630,8 +507,6 @@ def domain(self): def domain(self, val): self["domain"] = val - # dtick - # ----- @property def dtick(self): """ @@ -668,8 +543,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -693,8 +566,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # fixedrange - # ---------- @property def fixedrange(self): """ @@ -714,8 +585,6 @@ def fixedrange(self): def fixedrange(self, val): self["fixedrange"] = val - # gridcolor - # --------- @property def gridcolor(self): """ @@ -726,42 +595,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -773,8 +607,6 @@ def gridcolor(self): def gridcolor(self, val): self["gridcolor"] = val - # griddash - # -------- @property def griddash(self): """ @@ -799,8 +631,6 @@ def griddash(self): def griddash(self, val): self["griddash"] = val - # gridwidth - # --------- @property def gridwidth(self): """ @@ -819,8 +649,6 @@ def gridwidth(self): def gridwidth(self, val): self["gridwidth"] = val - # hoverformat - # ----------- @property def hoverformat(self): """ @@ -849,8 +677,6 @@ def hoverformat(self): def hoverformat(self, val): self["hoverformat"] = val - # insiderange - # ----------- @property def insiderange(self): """ @@ -875,8 +701,6 @@ def insiderange(self): def insiderange(self, val): self["insiderange"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -902,8 +726,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # layer - # ----- @property def layer(self): """ @@ -928,8 +750,6 @@ def layer(self): def layer(self, val): self["layer"] = val - # linecolor - # --------- @property def linecolor(self): """ @@ -940,42 +760,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -987,8 +772,6 @@ def linecolor(self): def linecolor(self, val): self["linecolor"] = val - # linewidth - # --------- @property def linewidth(self): """ @@ -1007,8 +790,6 @@ def linewidth(self): def linewidth(self, val): self["linewidth"] = val - # matches - # ------- @property def matches(self): """ @@ -1035,8 +816,6 @@ def matches(self): def matches(self, val): self["matches"] = val - # maxallowed - # ---------- @property def maxallowed(self): """ @@ -1054,8 +833,6 @@ def maxallowed(self): def maxallowed(self, val): self["maxallowed"] = val - # minallowed - # ---------- @property def minallowed(self): """ @@ -1073,8 +850,6 @@ def minallowed(self): def minallowed(self, val): self["minallowed"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -1094,8 +869,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # minor - # ----- @property def minor(self): """ @@ -1105,97 +878,6 @@ 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 @@ -1206,8 +888,6 @@ def minor(self): def minor(self, val): self["minor"] = val - # mirror - # ------ @property def mirror(self): """ @@ -1232,8 +912,6 @@ def mirror(self): def mirror(self, val): self["mirror"] = val - # nticks - # ------ @property def nticks(self): """ @@ -1256,8 +934,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # overlaying - # ---------- @property def overlaying(self): """ @@ -1284,8 +960,6 @@ def overlaying(self): def overlaying(self, val): self["overlaying"] = val - # position - # -------- @property def position(self): """ @@ -1306,8 +980,6 @@ def position(self): def position(self, val): self["position"] = val - # range - # ----- @property def range(self): """ @@ -1338,8 +1010,6 @@ def range(self): def range(self, val): self["range"] = val - # rangebreaks - # ----------- @property def rangebreaks(self): """ @@ -1349,60 +1019,6 @@ 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] @@ -1413,8 +1029,6 @@ def rangebreaks(self): def rangebreaks(self, val): self["rangebreaks"] = val - # rangebreakdefaults - # ------------------ @property def rangebreakdefaults(self): """ @@ -1429,8 +1043,6 @@ 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 @@ -1441,13 +1053,11 @@ def rangebreakdefaults(self): def rangebreakdefaults(self, val): self["rangebreakdefaults"] = val - # rangemode - # --------- @property def rangemode(self): """ If "normal", the range is computed in relation to the extrema - of the input data. If *tozero*`, the range extends to 0, + 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. @@ -1466,8 +1076,6 @@ def rangemode(self): def rangemode(self, val): self["rangemode"] = val - # scaleanchor - # ----------- @property def scaleanchor(self): """ @@ -1511,8 +1119,6 @@ def scaleanchor(self): def scaleanchor(self, val): self["scaleanchor"] = val - # scaleratio - # ---------- @property def scaleratio(self): """ @@ -1536,8 +1142,6 @@ def scaleratio(self): def scaleratio(self, val): self["scaleratio"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -1556,8 +1160,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # shift - # ----- @property def shift(self): """ @@ -1582,8 +1184,6 @@ def shift(self): def shift(self, val): self["shift"] = val - # showdividers - # ------------ @property def showdividers(self): """ @@ -1604,8 +1204,6 @@ def showdividers(self): def showdividers(self, val): self["showdividers"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -1628,8 +1226,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showgrid - # -------- @property def showgrid(self): """ @@ -1649,8 +1245,6 @@ def showgrid(self): def showgrid(self, val): self["showgrid"] = val - # showline - # -------- @property def showline(self): """ @@ -1669,8 +1263,6 @@ def showline(self): def showline(self, val): self["showline"] = val - # showspikes - # ---------- @property def showspikes(self): """ @@ -1691,8 +1283,6 @@ def showspikes(self): def showspikes(self, val): self["showspikes"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -1711,8 +1301,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -1735,8 +1323,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -1756,8 +1342,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # side - # ---- @property def side(self): """ @@ -1778,8 +1362,6 @@ def side(self): def side(self, val): self["side"] = val - # spikecolor - # ---------- @property def spikecolor(self): """ @@ -1790,42 +1372,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -1837,8 +1384,6 @@ def spikecolor(self): def spikecolor(self, val): self["spikecolor"] = val - # spikedash - # --------- @property def spikedash(self): """ @@ -1863,8 +1408,6 @@ def spikedash(self): def spikedash(self, val): self["spikedash"] = val - # spikemode - # --------- @property def spikemode(self): """ @@ -1889,8 +1432,6 @@ def spikemode(self): def spikemode(self, val): self["spikemode"] = val - # spikesnap - # --------- @property def spikesnap(self): """ @@ -1911,8 +1452,6 @@ def spikesnap(self): def spikesnap(self, val): self["spikesnap"] = val - # spikethickness - # -------------- @property def spikethickness(self): """ @@ -1931,8 +1470,6 @@ def spikethickness(self): def spikethickness(self, val): self["spikethickness"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -1958,8 +1495,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -1982,8 +1517,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -1994,42 +1527,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -2041,8 +1539,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -2054,52 +1550,6 @@ 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 @@ -2110,8 +1560,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -2140,8 +1588,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -2151,42 +1597,6 @@ 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] @@ -2197,8 +1607,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -2213,8 +1621,6 @@ 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 @@ -2225,8 +1631,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabelindex - # -------------- @property def ticklabelindex(self): """ @@ -2253,8 +1657,6 @@ def ticklabelindex(self): def ticklabelindex(self, val): self["ticklabelindex"] = val - # ticklabelindexsrc - # ----------------- @property def ticklabelindexsrc(self): """ @@ -2274,8 +1676,6 @@ def ticklabelindexsrc(self): def ticklabelindexsrc(self, val): self["ticklabelindexsrc"] = val - # ticklabelmode - # ------------- @property def ticklabelmode(self): """ @@ -2298,8 +1698,6 @@ def ticklabelmode(self): def ticklabelmode(self, val): self["ticklabelmode"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -2323,8 +1721,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -2353,8 +1749,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelshift - # -------------- @property def ticklabelshift(self): """ @@ -2375,8 +1769,6 @@ def ticklabelshift(self): def ticklabelshift(self, val): self["ticklabelshift"] = val - # ticklabelstandoff - # ----------------- @property def ticklabelstandoff(self): """ @@ -2403,8 +1795,6 @@ def ticklabelstandoff(self): def ticklabelstandoff(self, val): self["ticklabelstandoff"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -2429,8 +1819,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -2449,8 +1837,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -2478,8 +1864,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -2499,8 +1883,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -2522,8 +1904,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # tickson - # ------- @property def tickson(self): """ @@ -2547,8 +1927,6 @@ def tickson(self): def tickson(self, val): self["tickson"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -2568,8 +1946,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -2590,8 +1966,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -2610,8 +1984,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -2631,8 +2003,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -2651,8 +2021,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -2671,8 +2039,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -2682,25 +2048,6 @@ 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 @@ -2711,8 +2058,6 @@ def title(self): def title(self, val): self["title"] = val - # type - # ---- @property def type(self): """ @@ -2735,8 +2080,6 @@ def type(self): def type(self, val): self["type"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -2756,8 +2099,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # visible - # ------- @property def visible(self): """ @@ -2778,8 +2119,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # zeroline - # -------- @property def zeroline(self): """ @@ -2800,8 +2139,6 @@ def zeroline(self): def zeroline(self, val): self["zeroline"] = val - # zerolinecolor - # ------------- @property def zerolinecolor(self): """ @@ -2812,42 +2149,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -2859,8 +2161,6 @@ def zerolinecolor(self): def zerolinecolor(self, val): self["zerolinecolor"] = val - # zerolinewidth - # ------------- @property def zerolinewidth(self): """ @@ -2879,8 +2179,6 @@ def zerolinewidth(self): def zerolinewidth(self, val): self["zerolinewidth"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -3132,7 +2430,7 @@ def _prop_descriptions(self): layout.yaxis.rangebreaks rangemode If "normal", the range is computed in relation to the - extrema of the input data. If *tozero*`, the range + 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. @@ -3756,7 +3054,7 @@ def __init__( layout.yaxis.rangebreaks rangemode If "normal", the range is computed in relation to the - extrema of the input data. If *tozero*`, the range + 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. @@ -4029,14 +3327,11 @@ def __init__( ------- YAxis """ - super(YAxis, self).__init__("yaxis") - + super().__init__("yaxis") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -4051,390 +3346,101 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("anchor", arg, anchor) + self._set_property("automargin", arg, automargin) + self._set_property("autorange", arg, autorange) + self._set_property("autorangeoptions", arg, autorangeoptions) + self._set_property("autoshift", arg, autoshift) + self._set_property("autotickangles", arg, autotickangles) + self._set_property("autotypenumbers", arg, autotypenumbers) + self._set_property("calendar", arg, calendar) + self._set_property("categoryarray", arg, categoryarray) + self._set_property("categoryarraysrc", arg, categoryarraysrc) + self._set_property("categoryorder", arg, categoryorder) + self._set_property("color", arg, color) + self._set_property("constrain", arg, constrain) + self._set_property("constraintoward", arg, constraintoward) + self._set_property("dividercolor", arg, dividercolor) + self._set_property("dividerwidth", arg, dividerwidth) + self._set_property("domain", arg, domain) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("fixedrange", arg, fixedrange) + self._set_property("gridcolor", arg, gridcolor) + self._set_property("griddash", arg, griddash) + self._set_property("gridwidth", arg, gridwidth) + self._set_property("hoverformat", arg, hoverformat) + self._set_property("insiderange", arg, insiderange) + self._set_property("labelalias", arg, labelalias) + self._set_property("layer", arg, layer) + self._set_property("linecolor", arg, linecolor) + self._set_property("linewidth", arg, linewidth) + self._set_property("matches", arg, matches) + self._set_property("maxallowed", arg, maxallowed) + self._set_property("minallowed", arg, minallowed) + self._set_property("minexponent", arg, minexponent) + self._set_property("minor", arg, minor) + self._set_property("mirror", arg, mirror) + self._set_property("nticks", arg, nticks) + self._set_property("overlaying", arg, overlaying) + self._set_property("position", arg, position) + self._set_property("range", arg, range) + self._set_property("rangebreaks", arg, rangebreaks) + self._set_property("rangebreakdefaults", arg, rangebreakdefaults) + self._set_property("rangemode", arg, rangemode) + self._set_property("scaleanchor", arg, scaleanchor) + self._set_property("scaleratio", arg, scaleratio) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("shift", arg, shift) + self._set_property("showdividers", arg, showdividers) + self._set_property("showexponent", arg, showexponent) + self._set_property("showgrid", arg, showgrid) + self._set_property("showline", arg, showline) + self._set_property("showspikes", arg, showspikes) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("side", arg, side) + self._set_property("spikecolor", arg, spikecolor) + self._set_property("spikedash", arg, spikedash) + self._set_property("spikemode", arg, spikemode) + self._set_property("spikesnap", arg, spikesnap) + self._set_property("spikethickness", arg, spikethickness) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabelindex", arg, ticklabelindex) + self._set_property("ticklabelindexsrc", arg, ticklabelindexsrc) + self._set_property("ticklabelmode", arg, ticklabelmode) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelshift", arg, ticklabelshift) + self._set_property("ticklabelstandoff", arg, ticklabelstandoff) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("tickson", arg, tickson) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("type", arg, type) + self._set_property("uirevision", arg, uirevision) + self._set_property("visible", arg, visible) + self._set_property("zeroline", arg, zeroline) + self._set_property("zerolinecolor", arg, zerolinecolor) + self._set_property("zerolinewidth", arg, zerolinewidth) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/annotation/__init__.py b/plotly/graph_objs/layout/annotation/__init__.py index 89cac20f5a..a9cb1938bc 100644 --- a/plotly/graph_objs/layout/annotation/__init__.py +++ b/plotly/graph_objs/layout/annotation/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [".hoverlabel"], ["._font.Font", "._hoverlabel.Hoverlabel"] +) diff --git a/plotly/graph_objs/layout/annotation/_font.py b/plotly/graph_objs/layout/annotation/_font.py index bc21715b61..651a38ca80 100644 --- a/plotly/graph_objs/layout/annotation/_font.py +++ b/plotly/graph_objs/layout/annotation/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Font(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.annotation" _path_str = "layout.annotation.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/annotation/_hoverlabel.py b/plotly/graph_objs/layout/annotation/_hoverlabel.py index bdc4599445..052860cc6f 100644 --- a/plotly/graph_objs/layout/annotation/_hoverlabel.py +++ b/plotly/graph_objs/layout/annotation/_hoverlabel.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Hoverlabel(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.annotation" _path_str = "layout.annotation.hoverlabel" _valid_props = {"bgcolor", "bordercolor", "font"} - # bgcolor - # ------- @property def bgcolor(self): """ @@ -24,42 +23,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -71,8 +35,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -85,42 +47,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -132,8 +59,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # font - # ---- @property def font(self): """ @@ -146,52 +71,6 @@ 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 @@ -202,8 +81,6 @@ def font(self): def font(self, val): self["font"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -248,14 +125,11 @@ def __init__(self, arg=None, bgcolor=None, bordercolor=None, font=None, **kwargs ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -270,30 +144,11 @@ def __init__(self, arg=None, bgcolor=None, bordercolor=None, font=None, **kwargs 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("font", arg, font) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/annotation/hoverlabel/__init__.py b/plotly/graph_objs/layout/annotation/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/layout/annotation/hoverlabel/__init__.py +++ b/plotly/graph_objs/layout/annotation/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/layout/annotation/hoverlabel/_font.py b/plotly/graph_objs/layout/annotation/hoverlabel/_font.py index 81a13e5b65..4b89faac69 100644 --- a/plotly/graph_objs/layout/annotation/hoverlabel/_font.py +++ b/plotly/graph_objs/layout/annotation/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Font(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.annotation.hoverlabel" _path_str = "layout.annotation.hoverlabel.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -339,18 +271,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -378,14 +303,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -400,54 +322,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/coloraxis/__init__.py b/plotly/graph_objs/layout/coloraxis/__init__.py index 27dfc9e52f..5e1805d8fa 100644 --- a/plotly/graph_objs/layout/coloraxis/__init__.py +++ b/plotly/graph_objs/layout/coloraxis/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [".colorbar"], ["._colorbar.ColorBar"] +) diff --git a/plotly/graph_objs/layout/coloraxis/_colorbar.py b/plotly/graph_objs/layout/coloraxis/_colorbar.py index 3cb03c6cbc..5b6adc752b 100644 --- a/plotly/graph_objs/layout/coloraxis/_colorbar.py +++ b/plotly/graph_objs/layout/coloraxis/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class ColorBar(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.coloraxis" _path_str = "layout.coloraxis.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseLayoutHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -913,8 +638,6 @@ 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 @@ -925,8 +648,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -949,8 +670,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -974,8 +693,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1000,8 +717,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1020,8 +735,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1047,8 +760,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1068,8 +779,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1091,8 +800,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1112,8 +819,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1134,8 +839,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1154,8 +857,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1175,8 +876,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1195,8 +894,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1215,8 +912,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1226,18 +921,6 @@ 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 @@ -1248,8 +931,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1274,8 +955,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1298,8 +977,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1318,8 +995,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1341,8 +1016,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1367,8 +1040,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1391,8 +1062,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1411,8 +1080,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1434,8 +1101,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1985,14 +1650,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2007,214 +1669,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/coloraxis/colorbar/__init__.py b/plotly/graph_objs/layout/coloraxis/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/layout/coloraxis/colorbar/__init__.py +++ b/plotly/graph_objs/layout/coloraxis/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/layout/coloraxis/colorbar/_tickfont.py b/plotly/graph_objs/layout/coloraxis/colorbar/_tickfont.py index b202645444..53c81dc8b0 100644 --- a/plotly/graph_objs/layout/coloraxis/colorbar/_tickfont.py +++ b/plotly/graph_objs/layout/coloraxis/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Tickfont(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.coloraxis.colorbar" _path_str = "layout.coloraxis.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/coloraxis/colorbar/_tickformatstop.py b/plotly/graph_objs/layout/coloraxis/colorbar/_tickformatstop.py index f1ba365185..e9e9f78a54 100644 --- a/plotly/graph_objs/layout/coloraxis/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/layout/coloraxis/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Tickformatstop(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.coloraxis.colorbar" _path_str = "layout.coloraxis.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/coloraxis/colorbar/_title.py b/plotly/graph_objs/layout/coloraxis/colorbar/_title.py index 382d3ff94f..eab7c4a99d 100644 --- a/plotly/graph_objs/layout/coloraxis/colorbar/_title.py +++ b/plotly/graph_objs/layout/coloraxis/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Title(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.coloraxis.colorbar" _path_str = "layout.coloraxis.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/coloraxis/colorbar/title/__init__.py b/plotly/graph_objs/layout/coloraxis/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/layout/coloraxis/colorbar/title/__init__.py +++ b/plotly/graph_objs/layout/coloraxis/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/layout/coloraxis/colorbar/title/_font.py b/plotly/graph_objs/layout/coloraxis/colorbar/title/_font.py index 8d4948e3a3..e41fb7e25e 100644 --- a/plotly/graph_objs/layout/coloraxis/colorbar/title/_font.py +++ b/plotly/graph_objs/layout/coloraxis/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Font(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.coloraxis.colorbar.title" _path_str = "layout.coloraxis.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/geo/__init__.py b/plotly/graph_objs/layout/geo/__init__.py index 3daa84b218..dcabe9a058 100644 --- a/plotly/graph_objs/layout/geo/__init__.py +++ b/plotly/graph_objs/layout/geo/__init__.py @@ -1,24 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._center import Center - from ._domain import Domain - from ._lataxis import Lataxis - from ._lonaxis import Lonaxis - from ._projection import Projection - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".projection"], + [ + "._center.Center", + "._domain.Domain", + "._lataxis.Lataxis", + "._lonaxis.Lonaxis", + "._projection.Projection", + ], +) diff --git a/plotly/graph_objs/layout/geo/_center.py b/plotly/graph_objs/layout/geo/_center.py index fee53e5dac..555788d454 100644 --- a/plotly/graph_objs/layout/geo/_center.py +++ b/plotly/graph_objs/layout/geo/_center.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Center(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.geo" _path_str = "layout.geo.center" _valid_props = {"lat", "lon"} - # lat - # --- @property def lat(self): """ @@ -32,8 +31,6 @@ def lat(self): def lat(self, val): self["lat"] = val - # lon - # --- @property def lon(self): """ @@ -55,8 +52,6 @@ def lon(self): def lon(self, val): self["lon"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -95,14 +90,11 @@ def __init__(self, arg=None, lat=None, lon=None, **kwargs): ------- Center """ - super(Center, self).__init__("center") - + super().__init__("center") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -117,26 +109,10 @@ def __init__(self, arg=None, lat=None, lon=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("lat", arg, lat) + self._set_property("lon", arg, lon) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/geo/_domain.py b/plotly/graph_objs/layout/geo/_domain.py index f7e7ce3837..18cb943a0f 100644 --- a/plotly/graph_objs/layout/geo/_domain.py +++ b/plotly/graph_objs/layout/geo/_domain.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Domain(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.geo" _path_str = "layout.geo.domain" _valid_props = {"column", "row", "x", "y"} - # column - # ------ @property def column(self): """ @@ -35,8 +34,6 @@ def column(self): def column(self, val): self["column"] = val - # row - # --- @property def row(self): """ @@ -60,8 +57,6 @@ def row(self): def row(self, val): self["row"] = val - # x - # - @property def x(self): """ @@ -88,8 +83,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -116,8 +109,6 @@ def y(self): def y(self, val): self["y"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -186,14 +177,11 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") - + super().__init__("domain") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -208,34 +196,12 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("column", arg, column) + self._set_property("row", arg, row) + self._set_property("x", arg, x) + self._set_property("y", arg, y) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/geo/_lataxis.py b/plotly/graph_objs/layout/geo/_lataxis.py index be44d0c62f..dcbf8f1e66 100644 --- a/plotly/graph_objs/layout/geo/_lataxis.py +++ b/plotly/graph_objs/layout/geo/_lataxis.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Lataxis(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.geo" _path_str = "layout.geo.lataxis" _valid_props = { @@ -18,8 +19,6 @@ class Lataxis(_BaseLayoutHierarchyType): "tick0", } - # dtick - # ----- @property def dtick(self): """ @@ -38,8 +37,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # gridcolor - # --------- @property def gridcolor(self): """ @@ -50,42 +47,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -97,8 +59,6 @@ def gridcolor(self): def gridcolor(self, val): self["gridcolor"] = val - # griddash - # -------- @property def griddash(self): """ @@ -123,8 +83,6 @@ def griddash(self): def griddash(self, val): self["griddash"] = val - # gridwidth - # --------- @property def gridwidth(self): """ @@ -143,8 +101,6 @@ def gridwidth(self): def gridwidth(self, val): self["gridwidth"] = val - # range - # ----- @property def range(self): """ @@ -169,8 +125,6 @@ def range(self): def range(self, val): self["range"] = val - # showgrid - # -------- @property def showgrid(self): """ @@ -189,8 +143,6 @@ def showgrid(self): def showgrid(self, val): self["showgrid"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -209,8 +161,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -278,14 +228,11 @@ def __init__( ------- Lataxis """ - super(Lataxis, self).__init__("lataxis") - + super().__init__("lataxis") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -300,46 +247,15 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtick", arg, dtick) + self._set_property("gridcolor", arg, gridcolor) + self._set_property("griddash", arg, griddash) + self._set_property("gridwidth", arg, gridwidth) + self._set_property("range", arg, range) + self._set_property("showgrid", arg, showgrid) + self._set_property("tick0", arg, tick0) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/geo/_lonaxis.py b/plotly/graph_objs/layout/geo/_lonaxis.py index 5d36dd6fbc..c799277850 100644 --- a/plotly/graph_objs/layout/geo/_lonaxis.py +++ b/plotly/graph_objs/layout/geo/_lonaxis.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Lonaxis(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.geo" _path_str = "layout.geo.lonaxis" _valid_props = { @@ -18,8 +19,6 @@ class Lonaxis(_BaseLayoutHierarchyType): "tick0", } - # dtick - # ----- @property def dtick(self): """ @@ -38,8 +37,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # gridcolor - # --------- @property def gridcolor(self): """ @@ -50,42 +47,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -97,8 +59,6 @@ def gridcolor(self): def gridcolor(self, val): self["gridcolor"] = val - # griddash - # -------- @property def griddash(self): """ @@ -123,8 +83,6 @@ def griddash(self): def griddash(self, val): self["griddash"] = val - # gridwidth - # --------- @property def gridwidth(self): """ @@ -143,8 +101,6 @@ def gridwidth(self): def gridwidth(self, val): self["gridwidth"] = val - # range - # ----- @property def range(self): """ @@ -169,8 +125,6 @@ def range(self): def range(self, val): self["range"] = val - # showgrid - # -------- @property def showgrid(self): """ @@ -189,8 +143,6 @@ def showgrid(self): def showgrid(self, val): self["showgrid"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -209,8 +161,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -278,14 +228,11 @@ def __init__( ------- Lonaxis """ - super(Lonaxis, self).__init__("lonaxis") - + super().__init__("lonaxis") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -300,46 +247,15 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtick", arg, dtick) + self._set_property("gridcolor", arg, gridcolor) + self._set_property("griddash", arg, griddash) + self._set_property("gridwidth", arg, gridwidth) + self._set_property("range", arg, range) + self._set_property("showgrid", arg, showgrid) + self._set_property("tick0", arg, tick0) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/geo/_projection.py b/plotly/graph_objs/layout/geo/_projection.py index 86710bdf21..bd56424ca9 100644 --- a/plotly/graph_objs/layout/geo/_projection.py +++ b/plotly/graph_objs/layout/geo/_projection.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Projection(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.geo" _path_str = "layout.geo.projection" _valid_props = {"distance", "parallels", "rotation", "scale", "tilt", "type"} - # distance - # -------- @property def distance(self): """ @@ -32,8 +31,6 @@ def distance(self): def distance(self, val): self["distance"] = val - # parallels - # --------- @property def parallels(self): """ @@ -58,8 +55,6 @@ def parallels(self): def parallels(self, val): self["parallels"] = val - # rotation - # -------- @property def rotation(self): """ @@ -69,19 +64,6 @@ 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 @@ -92,8 +74,6 @@ def rotation(self): def rotation(self, val): self["rotation"] = val - # scale - # ----- @property def scale(self): """ @@ -113,8 +93,6 @@ def scale(self): def scale(self, val): self["scale"] = val - # tilt - # ---- @property def tilt(self): """ @@ -134,8 +112,6 @@ def tilt(self): def tilt(self, val): self["tilt"] = val - # type - # ---- @property def type(self): """ @@ -178,8 +154,6 @@ def type(self): def type(self, val): self["type"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -248,14 +222,11 @@ def __init__( ------- Projection """ - super(Projection, self).__init__("projection") - + super().__init__("projection") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -270,42 +241,14 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("distance", arg, distance) + self._set_property("parallels", arg, parallels) + self._set_property("rotation", arg, rotation) + self._set_property("scale", arg, scale) + self._set_property("tilt", arg, tilt) + self._set_property("type", arg, type) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/geo/projection/__init__.py b/plotly/graph_objs/layout/geo/projection/__init__.py index 79df932669..0c79216e29 100644 --- a/plotly/graph_objs/layout/geo/projection/__init__.py +++ b/plotly/graph_objs/layout/geo/projection/__init__.py @@ -1,11 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import(__name__, [], ["._rotation.Rotation"]) diff --git a/plotly/graph_objs/layout/geo/projection/_rotation.py b/plotly/graph_objs/layout/geo/projection/_rotation.py index cc9047b182..6961e42978 100644 --- a/plotly/graph_objs/layout/geo/projection/_rotation.py +++ b/plotly/graph_objs/layout/geo/projection/_rotation.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Rotation(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.geo.projection" _path_str = "layout.geo.projection.rotation" _valid_props = {"lat", "lon", "roll"} - # lat - # --- @property def lat(self): """ @@ -30,8 +29,6 @@ def lat(self): def lat(self, val): self["lat"] = val - # lon - # --- @property def lon(self): """ @@ -51,8 +48,6 @@ def lon(self): def lon(self, val): self["lon"] = val - # roll - # ---- @property def roll(self): """ @@ -72,8 +67,6 @@ def roll(self): def roll(self, val): self["roll"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -110,14 +103,11 @@ def __init__(self, arg=None, lat=None, lon=None, roll=None, **kwargs): ------- Rotation """ - super(Rotation, self).__init__("rotation") - + super().__init__("rotation") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -132,30 +122,11 @@ def __init__(self, arg=None, lat=None, lon=None, roll=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("lat", arg, lat) + self._set_property("lon", arg, lon) + self._set_property("roll", arg, roll) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/grid/__init__.py b/plotly/graph_objs/layout/grid/__init__.py index 36092994b8..b88f1daf60 100644 --- a/plotly/graph_objs/layout/grid/__init__.py +++ b/plotly/graph_objs/layout/grid/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/layout/grid/_domain.py b/plotly/graph_objs/layout/grid/_domain.py index 683194b4d3..b9afa3311e 100644 --- a/plotly/graph_objs/layout/grid/_domain.py +++ b/plotly/graph_objs/layout/grid/_domain.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Domain(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.grid" _path_str = "layout.grid.domain" _valid_props = {"x", "y"} - # x - # - @property def x(self): """ @@ -37,8 +36,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -64,8 +61,6 @@ def y(self): def y(self, val): self["y"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -102,14 +97,11 @@ def __init__(self, arg=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") - + super().__init__("domain") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -124,26 +116,10 @@ def __init__(self, arg=None, x=None, y=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("x", arg, x) + self._set_property("y", arg, y) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/hoverlabel/__init__.py b/plotly/graph_objs/layout/hoverlabel/__init__.py index c6f9226f99..38bd14ede8 100644 --- a/plotly/graph_objs/layout/hoverlabel/__init__.py +++ b/plotly/graph_objs/layout/hoverlabel/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._font.Font", "._grouptitlefont.Grouptitlefont"] +) diff --git a/plotly/graph_objs/layout/hoverlabel/_font.py b/plotly/graph_objs/layout/hoverlabel/_font.py index eb67ffe6f7..74b6f929ba 100644 --- a/plotly/graph_objs/layout/hoverlabel/_font.py +++ b/plotly/graph_objs/layout/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Font(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.hoverlabel" _path_str = "layout.hoverlabel.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -339,18 +271,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -378,14 +303,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -400,54 +322,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/hoverlabel/_grouptitlefont.py b/plotly/graph_objs/layout/hoverlabel/_grouptitlefont.py index 648b74eeb5..960f3c15cd 100644 --- a/plotly/graph_objs/layout/hoverlabel/_grouptitlefont.py +++ b/plotly/graph_objs/layout/hoverlabel/_grouptitlefont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Grouptitlefont(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.hoverlabel" _path_str = "layout.hoverlabel.grouptitlefont" _valid_props = { @@ -20,8 +21,6 @@ class Grouptitlefont(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -339,18 +271,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -378,14 +303,11 @@ def __init__( ------- Grouptitlefont """ - super(Grouptitlefont, self).__init__("grouptitlefont") - + super().__init__("grouptitlefont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -400,54 +322,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/legend/__init__.py b/plotly/graph_objs/layout/legend/__init__.py index 451048fb0f..3193563212 100644 --- a/plotly/graph_objs/layout/legend/__init__.py +++ b/plotly/graph_objs/layout/legend/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._font import Font - from ._grouptitlefont import Grouptitlefont - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._font.Font", "._grouptitlefont.Grouptitlefont", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._font.Font", "._grouptitlefont.Grouptitlefont", "._title.Title"], +) diff --git a/plotly/graph_objs/layout/legend/_font.py b/plotly/graph_objs/layout/legend/_font.py index ce4f319cee..f0f62c9321 100644 --- a/plotly/graph_objs/layout/legend/_font.py +++ b/plotly/graph_objs/layout/legend/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Font(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.legend" _path_str = "layout.legend.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/legend/_grouptitlefont.py b/plotly/graph_objs/layout/legend/_grouptitlefont.py index 45a5cdf15a..5a60a45ebd 100644 --- a/plotly/graph_objs/layout/legend/_grouptitlefont.py +++ b/plotly/graph_objs/layout/legend/_grouptitlefont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Grouptitlefont(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.legend" _path_str = "layout.legend.grouptitlefont" _valid_props = { @@ -20,8 +21,6 @@ class Grouptitlefont(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -339,18 +271,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -378,14 +303,11 @@ def __init__( ------- Grouptitlefont """ - super(Grouptitlefont, self).__init__("grouptitlefont") - + super().__init__("grouptitlefont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -400,54 +322,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/legend/_title.py b/plotly/graph_objs/layout/legend/_title.py index 5103c0a7e5..68119a2367 100644 --- a/plotly/graph_objs/layout/legend/_title.py +++ b/plotly/graph_objs/layout/legend/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Title(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.legend" _path_str = "layout.legend.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -24,52 +23,6 @@ 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 @@ -80,8 +33,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -105,8 +56,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -126,8 +75,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -172,14 +119,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -194,30 +138,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/legend/title/__init__.py b/plotly/graph_objs/layout/legend/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/layout/legend/title/__init__.py +++ b/plotly/graph_objs/layout/legend/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/layout/legend/title/_font.py b/plotly/graph_objs/layout/legend/title/_font.py index dffba334e1..cadfbdea6e 100644 --- a/plotly/graph_objs/layout/legend/title/_font.py +++ b/plotly/graph_objs/layout/legend/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Font(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.legend.title" _path_str = "layout.legend.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -339,18 +271,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -378,14 +303,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -400,54 +322,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/map/__init__.py b/plotly/graph_objs/layout/map/__init__.py index be0b2eed71..9dfa47aa1d 100644 --- a/plotly/graph_objs/layout/map/__init__.py +++ b/plotly/graph_objs/layout/map/__init__.py @@ -1,17 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._bounds import Bounds - from ._center import Center - from ._domain import Domain - from ._layer import Layer - 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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".layer"], + ["._bounds.Bounds", "._center.Center", "._domain.Domain", "._layer.Layer"], +) diff --git a/plotly/graph_objs/layout/map/_bounds.py b/plotly/graph_objs/layout/map/_bounds.py index 9b47548b2d..512b32e3ab 100644 --- a/plotly/graph_objs/layout/map/_bounds.py +++ b/plotly/graph_objs/layout/map/_bounds.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Bounds(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.map" _path_str = "layout.map.bounds" _valid_props = {"east", "north", "south", "west"} - # east - # ---- @property def east(self): """ @@ -31,8 +30,6 @@ def east(self): def east(self, val): self["east"] = val - # north - # ----- @property def north(self): """ @@ -52,8 +49,6 @@ def north(self): def north(self, val): self["north"] = val - # south - # ----- @property def south(self): """ @@ -73,8 +68,6 @@ def south(self): def south(self, val): self["south"] = val - # west - # ---- @property def west(self): """ @@ -94,8 +87,6 @@ def west(self): def west(self, val): self["west"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -142,14 +133,11 @@ def __init__( ------- Bounds """ - super(Bounds, self).__init__("bounds") - + super().__init__("bounds") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -164,34 +152,12 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("east", arg, east) + self._set_property("north", arg, north) + self._set_property("south", arg, south) + self._set_property("west", arg, west) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/map/_center.py b/plotly/graph_objs/layout/map/_center.py index 5781184b1a..0b741df3e0 100644 --- a/plotly/graph_objs/layout/map/_center.py +++ b/plotly/graph_objs/layout/map/_center.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Center(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.map" _path_str = "layout.map.center" _valid_props = {"lat", "lon"} - # lat - # --- @property def lat(self): """ @@ -30,8 +29,6 @@ def lat(self): def lat(self, val): self["lat"] = val - # lon - # --- @property def lon(self): """ @@ -50,8 +47,6 @@ def lon(self): def lon(self, val): self["lon"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -84,14 +79,11 @@ def __init__(self, arg=None, lat=None, lon=None, **kwargs): ------- Center """ - super(Center, self).__init__("center") - + super().__init__("center") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -106,26 +98,10 @@ def __init__(self, arg=None, lat=None, lon=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("lat", arg, lat) + self._set_property("lon", arg, lon) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/map/_domain.py b/plotly/graph_objs/layout/map/_domain.py index 6215eed6c1..b4d23da8bc 100644 --- a/plotly/graph_objs/layout/map/_domain.py +++ b/plotly/graph_objs/layout/map/_domain.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Domain(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.map" _path_str = "layout.map.domain" _valid_props = {"column", "row", "x", "y"} - # column - # ------ @property def column(self): """ @@ -32,8 +31,6 @@ def column(self): def column(self, val): self["column"] = val - # row - # --- @property def row(self): """ @@ -54,8 +51,6 @@ def row(self): def row(self, val): self["row"] = val - # x - # - @property def x(self): """ @@ -80,8 +75,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -106,8 +99,6 @@ def y(self): def y(self, val): self["y"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -152,14 +143,11 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") - + super().__init__("domain") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -174,34 +162,12 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("column", arg, column) + self._set_property("row", arg, row) + self._set_property("x", arg, x) + self._set_property("y", arg, y) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/map/_layer.py b/plotly/graph_objs/layout/map/_layer.py index 96a054caa9..01aa9671d0 100644 --- a/plotly/graph_objs/layout/map/_layer.py +++ b/plotly/graph_objs/layout/map/_layer.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Layer(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.map" _path_str = "layout.map.layer" _valid_props = { @@ -29,8 +30,6 @@ class Layer(_BaseLayoutHierarchyType): "visible", } - # below - # ----- @property def below(self): """ @@ -52,8 +51,6 @@ def below(self): def below(self, val): self["below"] = val - # circle - # ------ @property def circle(self): """ @@ -63,13 +60,6 @@ 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 @@ -80,8 +70,6 @@ def circle(self): def circle(self, val): self["circle"] = val - # color - # ----- @property def color(self): """ @@ -98,42 +86,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -145,8 +98,6 @@ def color(self): def color(self, val): self["color"] = val - # coordinates - # ----------- @property def coordinates(self): """ @@ -167,8 +118,6 @@ def coordinates(self): def coordinates(self, val): self["coordinates"] = val - # fill - # ---- @property def fill(self): """ @@ -178,13 +127,6 @@ 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 @@ -195,8 +137,6 @@ def fill(self): def fill(self, val): self["fill"] = val - # line - # ---- @property def line(self): """ @@ -206,20 +146,6 @@ 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 @@ -230,8 +156,6 @@ def line(self): def line(self, val): self["line"] = val - # maxzoom - # ------- @property def maxzoom(self): """ @@ -251,8 +175,6 @@ def maxzoom(self): def maxzoom(self, val): self["maxzoom"] = val - # minzoom - # ------- @property def minzoom(self): """ @@ -272,8 +194,6 @@ def minzoom(self): def minzoom(self, val): self["minzoom"] = val - # name - # ---- @property def name(self): """ @@ -299,8 +219,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -325,8 +243,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # source - # ------ @property def source(self): """ @@ -349,8 +265,6 @@ def source(self): def source(self, val): self["source"] = val - # sourceattribution - # ----------------- @property def sourceattribution(self): """ @@ -370,8 +284,6 @@ def sourceattribution(self): def sourceattribution(self, val): self["sourceattribution"] = val - # sourcelayer - # ----------- @property def sourcelayer(self): """ @@ -393,8 +305,6 @@ def sourcelayer(self): def sourcelayer(self, val): self["sourcelayer"] = val - # sourcetype - # ---------- @property def sourcetype(self): """ @@ -415,8 +325,6 @@ def sourcetype(self): def sourcetype(self, val): self["sourcetype"] = val - # symbol - # ------ @property def symbol(self): """ @@ -426,37 +334,6 @@ 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 @@ -467,8 +344,6 @@ def symbol(self): def symbol(self, val): self["symbol"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -495,8 +370,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # type - # ---- @property def type(self): """ @@ -523,8 +396,6 @@ def type(self): def type(self, val): self["type"] = val - # visible - # ------- @property def visible(self): """ @@ -543,8 +414,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -781,14 +650,11 @@ def __init__( ------- Layer """ - super(Layer, self).__init__("layers") - + super().__init__("layers") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -803,90 +669,26 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("below", arg, below) + self._set_property("circle", arg, circle) + self._set_property("color", arg, color) + self._set_property("coordinates", arg, coordinates) + self._set_property("fill", arg, fill) + self._set_property("line", arg, line) + self._set_property("maxzoom", arg, maxzoom) + self._set_property("minzoom", arg, minzoom) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("source", arg, source) + self._set_property("sourceattribution", arg, sourceattribution) + self._set_property("sourcelayer", arg, sourcelayer) + self._set_property("sourcetype", arg, sourcetype) + self._set_property("symbol", arg, symbol) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("type", arg, type) + self._set_property("visible", arg, visible) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/map/layer/__init__.py b/plotly/graph_objs/layout/map/layer/__init__.py index 1d0bf3340b..9a15ea37d2 100644 --- a/plotly/graph_objs/layout/map/layer/__init__.py +++ b/plotly/graph_objs/layout/map/layer/__init__.py @@ -1,17 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._circle import Circle - from ._fill import Fill - from ._line import Line - from ._symbol import Symbol - 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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".symbol"], + ["._circle.Circle", "._fill.Fill", "._line.Line", "._symbol.Symbol"], +) diff --git a/plotly/graph_objs/layout/map/layer/_circle.py b/plotly/graph_objs/layout/map/layer/_circle.py index e72518e582..839b29e4ab 100644 --- a/plotly/graph_objs/layout/map/layer/_circle.py +++ b/plotly/graph_objs/layout/map/layer/_circle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Circle(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.map.layer" _path_str = "layout.map.layer.circle" _valid_props = {"radius"} - # radius - # ------ @property def radius(self): """ @@ -31,8 +30,6 @@ def radius(self): def radius(self, val): self["radius"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -59,14 +56,11 @@ def __init__(self, arg=None, radius=None, **kwargs): ------- Circle """ - super(Circle, self).__init__("circle") - + super().__init__("circle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -81,22 +75,9 @@ def __init__(self, arg=None, radius=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("radius", arg, radius) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/map/layer/_fill.py b/plotly/graph_objs/layout/map/layer/_fill.py index 722461a344..71ed17fd56 100644 --- a/plotly/graph_objs/layout/map/layer/_fill.py +++ b/plotly/graph_objs/layout/map/layer/_fill.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Fill(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.map.layer" _path_str = "layout.map.layer.fill" _valid_props = {"outlinecolor"} - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -23,42 +22,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -100,14 +62,11 @@ def __init__(self, arg=None, outlinecolor=None, **kwargs): ------- Fill """ - super(Fill, self).__init__("fill") - + super().__init__("fill") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -122,22 +81,9 @@ def __init__(self, arg=None, outlinecolor=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("outlinecolor", arg, outlinecolor) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/map/layer/_line.py b/plotly/graph_objs/layout/map/layer/_line.py index 28ca30e2ce..8ed89ed0a7 100644 --- a/plotly/graph_objs/layout/map/layer/_line.py +++ b/plotly/graph_objs/layout/map/layer/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Line(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.map.layer" _path_str = "layout.map.layer.line" _valid_props = {"dash", "dashsrc", "width"} - # dash - # ---- @property def dash(self): """ @@ -31,8 +30,6 @@ def dash(self): def dash(self, val): self["dash"] = val - # dashsrc - # ------- @property def dashsrc(self): """ @@ -51,8 +48,6 @@ def dashsrc(self): def dashsrc(self, val): self["dashsrc"] = val - # width - # ----- @property def width(self): """ @@ -72,8 +67,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -114,14 +107,11 @@ def __init__(self, arg=None, dash=None, dashsrc=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -136,30 +126,11 @@ def __init__(self, arg=None, dash=None, dashsrc=None, width=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dash", arg, dash) + self._set_property("dashsrc", arg, dashsrc) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/map/layer/_symbol.py b/plotly/graph_objs/layout/map/layer/_symbol.py index 5c94cd7990..0f8e885355 100644 --- a/plotly/graph_objs/layout/map/layer/_symbol.py +++ b/plotly/graph_objs/layout/map/layer/_symbol.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Symbol(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.map.layer" _path_str = "layout.map.layer.symbol" _valid_props = {"icon", "iconsize", "placement", "text", "textfont", "textposition"} - # icon - # ---- @property def icon(self): """ @@ -32,8 +31,6 @@ def icon(self): def icon(self, val): self["icon"] = val - # iconsize - # -------- @property def iconsize(self): """ @@ -53,8 +50,6 @@ def iconsize(self): def iconsize(self, val): self["iconsize"] = val - # placement - # --------- @property def placement(self): """ @@ -79,8 +74,6 @@ def placement(self): def placement(self, val): self["placement"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +93,6 @@ def text(self): def text(self, val): self["text"] = val - # textfont - # -------- @property def textfont(self): """ @@ -115,35 +106,6 @@ 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 @@ -154,8 +116,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # textposition - # ------------ @property def textposition(self): """ @@ -178,8 +138,6 @@ def textposition(self): def textposition(self, val): self["textposition"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -256,14 +214,11 @@ def __init__( ------- Symbol """ - super(Symbol, self).__init__("symbol") - + super().__init__("symbol") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -278,42 +233,14 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("icon", arg, icon) + self._set_property("iconsize", arg, iconsize) + self._set_property("placement", arg, placement) + self._set_property("text", arg, text) + self._set_property("textfont", arg, textfont) + self._set_property("textposition", arg, textposition) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/map/layer/symbol/__init__.py b/plotly/graph_objs/layout/map/layer/symbol/__init__.py index 1640397aa7..2afd605560 100644 --- a/plotly/graph_objs/layout/map/layer/symbol/__init__.py +++ b/plotly/graph_objs/layout/map/layer/symbol/__init__.py @@ -1,11 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import(__name__, [], ["._textfont.Textfont"]) diff --git a/plotly/graph_objs/layout/map/layer/symbol/_textfont.py b/plotly/graph_objs/layout/map/layer/symbol/_textfont.py index 9f7b12ff27..bd95dbe7f3 100644 --- a/plotly/graph_objs/layout/map/layer/symbol/_textfont.py +++ b/plotly/graph_objs/layout/map/layer/symbol/_textfont.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Textfont(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.map.layer.symbol" _path_str = "layout.map.layer.symbol.textfont" _valid_props = {"color", "family", "size", "style", "weight"} - # color - # ----- @property def color(self): """ @@ -20,42 +19,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -67,23 +31,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -98,8 +53,6 @@ def family(self): def family(self, val): self["family"] = val - # size - # ---- @property def size(self): """ @@ -116,8 +69,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -138,8 +89,6 @@ def style(self): def style(self, val): self["style"] = val - # weight - # ------ @property def weight(self): """ @@ -160,8 +109,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -169,18 +116,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. size style @@ -217,18 +157,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. size style @@ -241,14 +174,11 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -263,38 +193,13 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/mapbox/__init__.py b/plotly/graph_objs/layout/mapbox/__init__.py index be0b2eed71..9dfa47aa1d 100644 --- a/plotly/graph_objs/layout/mapbox/__init__.py +++ b/plotly/graph_objs/layout/mapbox/__init__.py @@ -1,17 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._bounds import Bounds - from ._center import Center - from ._domain import Domain - from ._layer import Layer - 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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".layer"], + ["._bounds.Bounds", "._center.Center", "._domain.Domain", "._layer.Layer"], +) diff --git a/plotly/graph_objs/layout/mapbox/_bounds.py b/plotly/graph_objs/layout/mapbox/_bounds.py index b4c7d6b76f..92330d8fb8 100644 --- a/plotly/graph_objs/layout/mapbox/_bounds.py +++ b/plotly/graph_objs/layout/mapbox/_bounds.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Bounds(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.mapbox" _path_str = "layout.mapbox.bounds" _valid_props = {"east", "north", "south", "west"} - # east - # ---- @property def east(self): """ @@ -31,8 +30,6 @@ def east(self): def east(self, val): self["east"] = val - # north - # ----- @property def north(self): """ @@ -52,8 +49,6 @@ def north(self): def north(self, val): self["north"] = val - # south - # ----- @property def south(self): """ @@ -73,8 +68,6 @@ def south(self): def south(self, val): self["south"] = val - # west - # ---- @property def west(self): """ @@ -94,8 +87,6 @@ def west(self): def west(self, val): self["west"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -142,14 +133,11 @@ def __init__( ------- Bounds """ - super(Bounds, self).__init__("bounds") - + super().__init__("bounds") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -164,34 +152,12 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("east", arg, east) + self._set_property("north", arg, north) + self._set_property("south", arg, south) + self._set_property("west", arg, west) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/mapbox/_center.py b/plotly/graph_objs/layout/mapbox/_center.py index 4bc1c2b0ee..f740e4194c 100644 --- a/plotly/graph_objs/layout/mapbox/_center.py +++ b/plotly/graph_objs/layout/mapbox/_center.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Center(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.mapbox" _path_str = "layout.mapbox.center" _valid_props = {"lat", "lon"} - # lat - # --- @property def lat(self): """ @@ -30,8 +29,6 @@ def lat(self): def lat(self, val): self["lat"] = val - # lon - # --- @property def lon(self): """ @@ -50,8 +47,6 @@ def lon(self): def lon(self, val): self["lon"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -84,14 +79,11 @@ def __init__(self, arg=None, lat=None, lon=None, **kwargs): ------- Center """ - super(Center, self).__init__("center") - + super().__init__("center") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -106,26 +98,10 @@ def __init__(self, arg=None, lat=None, lon=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("lat", arg, lat) + self._set_property("lon", arg, lon) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/mapbox/_domain.py b/plotly/graph_objs/layout/mapbox/_domain.py index b260365c6c..be2db84f0a 100644 --- a/plotly/graph_objs/layout/mapbox/_domain.py +++ b/plotly/graph_objs/layout/mapbox/_domain.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Domain(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.mapbox" _path_str = "layout.mapbox.domain" _valid_props = {"column", "row", "x", "y"} - # column - # ------ @property def column(self): """ @@ -32,8 +31,6 @@ def column(self): def column(self, val): self["column"] = val - # row - # --- @property def row(self): """ @@ -54,8 +51,6 @@ def row(self): def row(self, val): self["row"] = val - # x - # - @property def x(self): """ @@ -80,8 +75,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -106,8 +99,6 @@ def y(self): def y(self, val): self["y"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -152,14 +143,11 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") - + super().__init__("domain") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -174,34 +162,12 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("column", arg, column) + self._set_property("row", arg, row) + self._set_property("x", arg, x) + self._set_property("y", arg, y) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/mapbox/_layer.py b/plotly/graph_objs/layout/mapbox/_layer.py index 8f66c76a29..e3d516fe18 100644 --- a/plotly/graph_objs/layout/mapbox/_layer.py +++ b/plotly/graph_objs/layout/mapbox/_layer.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Layer(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.mapbox" _path_str = "layout.mapbox.layer" _valid_props = { @@ -29,8 +30,6 @@ class Layer(_BaseLayoutHierarchyType): "visible", } - # below - # ----- @property def below(self): """ @@ -52,8 +51,6 @@ def below(self): def below(self, val): self["below"] = val - # circle - # ------ @property def circle(self): """ @@ -63,13 +60,6 @@ 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 @@ -80,8 +70,6 @@ def circle(self): def circle(self, val): self["circle"] = val - # color - # ----- @property def color(self): """ @@ -98,42 +86,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -145,8 +98,6 @@ def color(self): def color(self, val): self["color"] = val - # coordinates - # ----------- @property def coordinates(self): """ @@ -167,8 +118,6 @@ def coordinates(self): def coordinates(self, val): self["coordinates"] = val - # fill - # ---- @property def fill(self): """ @@ -178,13 +127,6 @@ 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 @@ -195,8 +137,6 @@ def fill(self): def fill(self, val): self["fill"] = val - # line - # ---- @property def line(self): """ @@ -206,20 +146,6 @@ 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 @@ -230,8 +156,6 @@ def line(self): def line(self, val): self["line"] = val - # maxzoom - # ------- @property def maxzoom(self): """ @@ -252,8 +176,6 @@ def maxzoom(self): def maxzoom(self, val): self["maxzoom"] = val - # minzoom - # ------- @property def minzoom(self): """ @@ -273,8 +195,6 @@ def minzoom(self): def minzoom(self, val): self["minzoom"] = val - # name - # ---- @property def name(self): """ @@ -300,8 +220,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -327,8 +245,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # source - # ------ @property def source(self): """ @@ -351,8 +267,6 @@ def source(self): def source(self, val): self["source"] = val - # sourceattribution - # ----------------- @property def sourceattribution(self): """ @@ -372,8 +286,6 @@ def sourceattribution(self): def sourceattribution(self, val): self["sourceattribution"] = val - # sourcelayer - # ----------- @property def sourcelayer(self): """ @@ -395,8 +307,6 @@ def sourcelayer(self): def sourcelayer(self, val): self["sourcelayer"] = val - # sourcetype - # ---------- @property def sourcetype(self): """ @@ -417,8 +327,6 @@ def sourcetype(self): def sourcetype(self, val): self["sourcetype"] = val - # symbol - # ------ @property def symbol(self): """ @@ -428,37 +336,6 @@ 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 @@ -469,8 +346,6 @@ def symbol(self): def symbol(self, val): self["symbol"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -497,8 +372,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # type - # ---- @property def type(self): """ @@ -525,8 +398,6 @@ def type(self): def type(self, val): self["type"] = val - # visible - # ------- @property def visible(self): """ @@ -545,8 +416,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -785,14 +654,11 @@ def __init__( ------- Layer """ - super(Layer, self).__init__("layers") - + super().__init__("layers") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -807,90 +673,26 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("below", arg, below) + self._set_property("circle", arg, circle) + self._set_property("color", arg, color) + self._set_property("coordinates", arg, coordinates) + self._set_property("fill", arg, fill) + self._set_property("line", arg, line) + self._set_property("maxzoom", arg, maxzoom) + self._set_property("minzoom", arg, minzoom) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("source", arg, source) + self._set_property("sourceattribution", arg, sourceattribution) + self._set_property("sourcelayer", arg, sourcelayer) + self._set_property("sourcetype", arg, sourcetype) + self._set_property("symbol", arg, symbol) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("type", arg, type) + self._set_property("visible", arg, visible) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/mapbox/layer/__init__.py b/plotly/graph_objs/layout/mapbox/layer/__init__.py index 1d0bf3340b..9a15ea37d2 100644 --- a/plotly/graph_objs/layout/mapbox/layer/__init__.py +++ b/plotly/graph_objs/layout/mapbox/layer/__init__.py @@ -1,17 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._circle import Circle - from ._fill import Fill - from ._line import Line - from ._symbol import Symbol - 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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".symbol"], + ["._circle.Circle", "._fill.Fill", "._line.Line", "._symbol.Symbol"], +) diff --git a/plotly/graph_objs/layout/mapbox/layer/_circle.py b/plotly/graph_objs/layout/mapbox/layer/_circle.py index ef45838fc9..17a6f270f7 100644 --- a/plotly/graph_objs/layout/mapbox/layer/_circle.py +++ b/plotly/graph_objs/layout/mapbox/layer/_circle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Circle(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.mapbox.layer" _path_str = "layout.mapbox.layer.circle" _valid_props = {"radius"} - # radius - # ------ @property def radius(self): """ @@ -31,8 +30,6 @@ def radius(self): def radius(self, val): self["radius"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -61,14 +58,11 @@ def __init__(self, arg=None, radius=None, **kwargs): ------- Circle """ - super(Circle, self).__init__("circle") - + super().__init__("circle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -83,22 +77,9 @@ def __init__(self, arg=None, radius=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("radius", arg, radius) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/mapbox/layer/_fill.py b/plotly/graph_objs/layout/mapbox/layer/_fill.py index 6b9a02f53f..791cf20a35 100644 --- a/plotly/graph_objs/layout/mapbox/layer/_fill.py +++ b/plotly/graph_objs/layout/mapbox/layer/_fill.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Fill(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.mapbox.layer" _path_str = "layout.mapbox.layer.fill" _valid_props = {"outlinecolor"} - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -23,42 +22,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -100,14 +62,11 @@ def __init__(self, arg=None, outlinecolor=None, **kwargs): ------- Fill """ - super(Fill, self).__init__("fill") - + super().__init__("fill") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -122,22 +81,9 @@ def __init__(self, arg=None, outlinecolor=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("outlinecolor", arg, outlinecolor) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/mapbox/layer/_line.py b/plotly/graph_objs/layout/mapbox/layer/_line.py index 6831a11c6f..27db066a8e 100644 --- a/plotly/graph_objs/layout/mapbox/layer/_line.py +++ b/plotly/graph_objs/layout/mapbox/layer/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Line(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.mapbox.layer" _path_str = "layout.mapbox.layer.line" _valid_props = {"dash", "dashsrc", "width"} - # dash - # ---- @property def dash(self): """ @@ -31,8 +30,6 @@ def dash(self): def dash(self, val): self["dash"] = val - # dashsrc - # ------- @property def dashsrc(self): """ @@ -51,8 +48,6 @@ def dashsrc(self): def dashsrc(self, val): self["dashsrc"] = val - # width - # ----- @property def width(self): """ @@ -72,8 +67,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -114,14 +107,11 @@ def __init__(self, arg=None, dash=None, dashsrc=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -136,30 +126,11 @@ def __init__(self, arg=None, dash=None, dashsrc=None, width=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dash", arg, dash) + self._set_property("dashsrc", arg, dashsrc) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/mapbox/layer/_symbol.py b/plotly/graph_objs/layout/mapbox/layer/_symbol.py index 5545054312..1eb28e9d37 100644 --- a/plotly/graph_objs/layout/mapbox/layer/_symbol.py +++ b/plotly/graph_objs/layout/mapbox/layer/_symbol.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Symbol(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.mapbox.layer" _path_str = "layout.mapbox.layer.symbol" _valid_props = {"icon", "iconsize", "placement", "text", "textfont", "textposition"} - # icon - # ---- @property def icon(self): """ @@ -32,8 +31,6 @@ def icon(self): def icon(self, val): self["icon"] = val - # iconsize - # -------- @property def iconsize(self): """ @@ -53,8 +50,6 @@ def iconsize(self): def iconsize(self, val): self["iconsize"] = val - # placement - # --------- @property def placement(self): """ @@ -79,8 +74,6 @@ def placement(self): def placement(self, val): self["placement"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +93,6 @@ def text(self): def text(self, val): self["text"] = val - # textfont - # -------- @property def textfont(self): """ @@ -115,35 +106,6 @@ 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 @@ -154,8 +116,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # textposition - # ------------ @property def textposition(self): """ @@ -178,8 +138,6 @@ def textposition(self): def textposition(self, val): self["textposition"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -258,14 +216,11 @@ def __init__( ------- Symbol """ - super(Symbol, self).__init__("symbol") - + super().__init__("symbol") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -280,42 +235,14 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("icon", arg, icon) + self._set_property("iconsize", arg, iconsize) + self._set_property("placement", arg, placement) + self._set_property("text", arg, text) + self._set_property("textfont", arg, textfont) + self._set_property("textposition", arg, textposition) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/mapbox/layer/symbol/__init__.py b/plotly/graph_objs/layout/mapbox/layer/symbol/__init__.py index 1640397aa7..2afd605560 100644 --- a/plotly/graph_objs/layout/mapbox/layer/symbol/__init__.py +++ b/plotly/graph_objs/layout/mapbox/layer/symbol/__init__.py @@ -1,11 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import(__name__, [], ["._textfont.Textfont"]) diff --git a/plotly/graph_objs/layout/mapbox/layer/symbol/_textfont.py b/plotly/graph_objs/layout/mapbox/layer/symbol/_textfont.py index 9902f6b822..337fe7d370 100644 --- a/plotly/graph_objs/layout/mapbox/layer/symbol/_textfont.py +++ b/plotly/graph_objs/layout/mapbox/layer/symbol/_textfont.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Textfont(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.mapbox.layer.symbol" _path_str = "layout.mapbox.layer.symbol.textfont" _valid_props = {"color", "family", "size", "style", "weight"} - # color - # ----- @property def color(self): """ @@ -20,42 +19,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -67,23 +31,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -98,8 +53,6 @@ def family(self): def family(self, val): self["family"] = val - # size - # ---- @property def size(self): """ @@ -116,8 +69,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -138,8 +89,6 @@ def style(self): def style(self, val): self["style"] = val - # weight - # ------ @property def weight(self): """ @@ -160,8 +109,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -169,18 +116,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. size style @@ -217,18 +157,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. size style @@ -241,14 +174,11 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -263,38 +193,13 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/newselection/__init__.py b/plotly/graph_objs/layout/newselection/__init__.py index 8722c15a2b..579ff002ce 100644 --- a/plotly/graph_objs/layout/newselection/__init__.py +++ b/plotly/graph_objs/layout/newselection/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/layout/newselection/_line.py b/plotly/graph_objs/layout/newselection/_line.py index b1a6065cc7..f11feb990c 100644 --- a/plotly/graph_objs/layout/newselection/_line.py +++ b/plotly/graph_objs/layout/newselection/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Line(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.newselection" _path_str = "layout.newselection.line" _valid_props = {"color", "dash", "width"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # dash - # ---- @property def dash(self): """ @@ -96,8 +58,6 @@ def dash(self): def dash(self, val): self["dash"] = val - # width - # ----- @property def width(self): """ @@ -116,8 +76,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -158,14 +116,11 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -180,30 +135,11 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("dash", arg, dash) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/newshape/__init__.py b/plotly/graph_objs/layout/newshape/__init__.py index dd5947b049..ac9079347d 100644 --- a/plotly/graph_objs/layout/newshape/__init__.py +++ b/plotly/graph_objs/layout/newshape/__init__.py @@ -1,17 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._label import Label - from ._legendgrouptitle import Legendgrouptitle - from ._line import Line - from . import label - 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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".label", ".legendgrouptitle"], + ["._label.Label", "._legendgrouptitle.Legendgrouptitle", "._line.Line"], +) diff --git a/plotly/graph_objs/layout/newshape/_label.py b/plotly/graph_objs/layout/newshape/_label.py index a4af9fcb2a..027968b842 100644 --- a/plotly/graph_objs/layout/newshape/_label.py +++ b/plotly/graph_objs/layout/newshape/_label.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Label(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.newshape" _path_str = "layout.newshape.label" _valid_props = { @@ -19,8 +20,6 @@ class Label(_BaseLayoutHierarchyType): "yanchor", } - # font - # ---- @property def font(self): """ @@ -32,52 +31,6 @@ 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 @@ -88,8 +41,6 @@ def font(self): def font(self, val): self["font"] = val - # padding - # ------- @property def padding(self): """ @@ -109,8 +60,6 @@ def padding(self): def padding(self, val): self["padding"] = val - # text - # ---- @property def text(self): """ @@ -131,8 +80,6 @@ def text(self): def text(self, val): self["text"] = val - # textangle - # --------- @property def textangle(self): """ @@ -155,8 +102,6 @@ def textangle(self): def textangle(self, val): self["textangle"] = val - # textposition - # ------------ @property def textposition(self): """ @@ -184,8 +129,6 @@ def textposition(self): def textposition(self, val): self["textposition"] = val - # texttemplate - # ------------ @property def texttemplate(self): """ @@ -224,8 +167,6 @@ def texttemplate(self): def texttemplate(self, val): self["texttemplate"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -250,8 +191,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -275,8 +214,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -429,14 +366,11 @@ def __init__( ------- Label """ - super(Label, self).__init__("label") - + super().__init__("label") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -451,50 +385,16 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("padding", arg, padding) + self._set_property("text", arg, text) + self._set_property("textangle", arg, textangle) + self._set_property("textposition", arg, textposition) + self._set_property("texttemplate", arg, texttemplate) + self._set_property("xanchor", arg, xanchor) + self._set_property("yanchor", arg, yanchor) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/newshape/_legendgrouptitle.py b/plotly/graph_objs/layout/newshape/_legendgrouptitle.py index d843bc2bae..87a5f0b6e0 100644 --- a/plotly/graph_objs/layout/newshape/_legendgrouptitle.py +++ b/plotly/graph_objs/layout/newshape/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Legendgrouptitle(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.newshape" _path_str = "layout.newshape.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/newshape/_line.py b/plotly/graph_objs/layout/newshape/_line.py index 9c51291268..b0fb879bde 100644 --- a/plotly/graph_objs/layout/newshape/_line.py +++ b/plotly/graph_objs/layout/newshape/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Line(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.newshape" _path_str = "layout.newshape.line" _valid_props = {"color", "dash", "width"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # dash - # ---- @property def dash(self): """ @@ -96,8 +58,6 @@ def dash(self): def dash(self, val): self["dash"] = val - # width - # ----- @property def width(self): """ @@ -116,8 +76,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -158,14 +116,11 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -180,30 +135,11 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("dash", arg, dash) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/newshape/label/__init__.py b/plotly/graph_objs/layout/newshape/label/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/layout/newshape/label/__init__.py +++ b/plotly/graph_objs/layout/newshape/label/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/layout/newshape/label/_font.py b/plotly/graph_objs/layout/newshape/label/_font.py index 91a86ef4cf..77b1b5e5fd 100644 --- a/plotly/graph_objs/layout/newshape/label/_font.py +++ b/plotly/graph_objs/layout/newshape/label/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Font(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.newshape.label" _path_str = "layout.newshape.label.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/newshape/legendgrouptitle/__init__.py b/plotly/graph_objs/layout/newshape/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/layout/newshape/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/layout/newshape/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/layout/newshape/legendgrouptitle/_font.py b/plotly/graph_objs/layout/newshape/legendgrouptitle/_font.py index 83acb231a7..f7ce3c3573 100644 --- a/plotly/graph_objs/layout/newshape/legendgrouptitle/_font.py +++ b/plotly/graph_objs/layout/newshape/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Font(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.newshape.legendgrouptitle" _path_str = "layout.newshape.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/polar/__init__.py b/plotly/graph_objs/layout/polar/__init__.py index d40a455510..b21eef0f2f 100644 --- a/plotly/graph_objs/layout/polar/__init__.py +++ b/plotly/graph_objs/layout/polar/__init__.py @@ -1,17 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._angularaxis import AngularAxis - from ._domain import Domain - from ._radialaxis import RadialAxis - from . import angularaxis - 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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".angularaxis", ".radialaxis"], + ["._angularaxis.AngularAxis", "._domain.Domain", "._radialaxis.RadialAxis"], +) diff --git a/plotly/graph_objs/layout/polar/_angularaxis.py b/plotly/graph_objs/layout/polar/_angularaxis.py index 25ce58b1a5..527e82cf44 100644 --- a/plotly/graph_objs/layout/polar/_angularaxis.py +++ b/plotly/graph_objs/layout/polar/_angularaxis.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class AngularAxis(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.polar" _path_str = "layout.polar.angularaxis" _valid_props = { @@ -60,8 +61,6 @@ class AngularAxis(_BaseLayoutHierarchyType): "visible", } - # autotypenumbers - # --------------- @property def autotypenumbers(self): """ @@ -84,8 +83,6 @@ def autotypenumbers(self): def autotypenumbers(self, val): self["autotypenumbers"] = val - # categoryarray - # ------------- @property def categoryarray(self): """ @@ -106,8 +103,6 @@ def categoryarray(self): def categoryarray(self, val): self["categoryarray"] = val - # categoryarraysrc - # ---------------- @property def categoryarraysrc(self): """ @@ -127,8 +122,6 @@ def categoryarraysrc(self): def categoryarraysrc(self, val): self["categoryarraysrc"] = val - # categoryorder - # ------------- @property def categoryorder(self): """ @@ -168,8 +161,6 @@ def categoryorder(self): def categoryorder(self, val): self["categoryorder"] = val - # color - # ----- @property def color(self): """ @@ -183,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -230,8 +186,6 @@ def color(self): def color(self, val): self["color"] = val - # direction - # --------- @property def direction(self): """ @@ -251,8 +205,6 @@ def direction(self): def direction(self, val): self["direction"] = val - # dtick - # ----- @property def dtick(self): """ @@ -289,8 +241,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -314,8 +264,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # gridcolor - # --------- @property def gridcolor(self): """ @@ -326,42 +274,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -373,8 +286,6 @@ def gridcolor(self): def gridcolor(self, val): self["gridcolor"] = val - # griddash - # -------- @property def griddash(self): """ @@ -399,8 +310,6 @@ def griddash(self): def griddash(self, val): self["griddash"] = val - # gridwidth - # --------- @property def gridwidth(self): """ @@ -419,8 +328,6 @@ def gridwidth(self): def gridwidth(self, val): self["gridwidth"] = val - # hoverformat - # ----------- @property def hoverformat(self): """ @@ -449,8 +356,6 @@ def hoverformat(self): def hoverformat(self, val): self["hoverformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -476,8 +381,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # layer - # ----- @property def layer(self): """ @@ -502,8 +405,6 @@ def layer(self): def layer(self, val): self["layer"] = val - # linecolor - # --------- @property def linecolor(self): """ @@ -514,42 +415,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -561,8 +427,6 @@ def linecolor(self): def linecolor(self, val): self["linecolor"] = val - # linewidth - # --------- @property def linewidth(self): """ @@ -581,8 +445,6 @@ def linewidth(self): def linewidth(self, val): self["linewidth"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -602,8 +464,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -626,8 +486,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # period - # ------ @property def period(self): """ @@ -647,8 +505,6 @@ def period(self): def period(self, val): self["period"] = val - # rotation - # -------- @property def rotation(self): """ @@ -674,8 +530,6 @@ def rotation(self): def rotation(self, val): self["rotation"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -694,8 +548,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -718,8 +570,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showgrid - # -------- @property def showgrid(self): """ @@ -739,8 +589,6 @@ def showgrid(self): def showgrid(self, val): self["showgrid"] = val - # showline - # -------- @property def showline(self): """ @@ -759,8 +607,6 @@ def showline(self): def showline(self, val): self["showline"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -779,8 +625,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -803,8 +647,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -824,8 +666,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thetaunit - # --------- @property def thetaunit(self): """ @@ -846,8 +686,6 @@ def thetaunit(self): def thetaunit(self, val): self["thetaunit"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -873,8 +711,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -897,8 +733,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -909,42 +743,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -956,8 +755,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -969,52 +766,6 @@ 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 @@ -1025,8 +776,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -1055,8 +804,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -1066,42 +813,6 @@ 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] @@ -1112,8 +823,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -1127,8 +836,6 @@ 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 @@ -1139,8 +846,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1165,8 +870,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1185,8 +888,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1212,8 +913,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1233,8 +932,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1256,8 +953,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1277,8 +972,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1299,8 +992,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1319,8 +1010,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1340,8 +1029,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1360,8 +1047,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1380,8 +1065,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # type - # ---- @property def type(self): """ @@ -1404,8 +1087,6 @@ def type(self): def type(self, val): self["type"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1424,8 +1105,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # visible - # ------- @property def visible(self): """ @@ -1446,8 +1125,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -2027,14 +1704,11 @@ def __init__( ------- AngularAxis """ - super(AngularAxis, self).__init__("angularaxis") - + super().__init__("angularaxis") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2049,214 +1723,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("autotypenumbers", arg, autotypenumbers) + self._set_property("categoryarray", arg, categoryarray) + self._set_property("categoryarraysrc", arg, categoryarraysrc) + self._set_property("categoryorder", arg, categoryorder) + self._set_property("color", arg, color) + self._set_property("direction", arg, direction) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("gridcolor", arg, gridcolor) + self._set_property("griddash", arg, griddash) + self._set_property("gridwidth", arg, gridwidth) + self._set_property("hoverformat", arg, hoverformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("layer", arg, layer) + self._set_property("linecolor", arg, linecolor) + self._set_property("linewidth", arg, linewidth) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("period", arg, period) + self._set_property("rotation", arg, rotation) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showgrid", arg, showgrid) + self._set_property("showline", arg, showline) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thetaunit", arg, thetaunit) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("type", arg, type) + self._set_property("uirevision", arg, uirevision) + self._set_property("visible", arg, visible) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/polar/_domain.py b/plotly/graph_objs/layout/polar/_domain.py index 9850010fd9..ab016a9adb 100644 --- a/plotly/graph_objs/layout/polar/_domain.py +++ b/plotly/graph_objs/layout/polar/_domain.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Domain(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.polar" _path_str = "layout.polar.domain" _valid_props = {"column", "row", "x", "y"} - # column - # ------ @property def column(self): """ @@ -32,8 +31,6 @@ def column(self): def column(self, val): self["column"] = val - # row - # --- @property def row(self): """ @@ -54,8 +51,6 @@ def row(self): def row(self, val): self["row"] = val - # x - # - @property def x(self): """ @@ -80,8 +75,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -106,8 +99,6 @@ def y(self): def y(self, val): self["y"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -152,14 +143,11 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") - + super().__init__("domain") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -174,34 +162,12 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("column", arg, column) + self._set_property("row", arg, row) + self._set_property("x", arg, x) + self._set_property("y", arg, y) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/polar/_radialaxis.py b/plotly/graph_objs/layout/polar/_radialaxis.py index 53c916777b..38b1740608 100644 --- a/plotly/graph_objs/layout/polar/_radialaxis.py +++ b/plotly/graph_objs/layout/polar/_radialaxis.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class RadialAxis(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.polar" _path_str = "layout.polar.radialaxis" _valid_props = { @@ -67,8 +68,6 @@ class RadialAxis(_BaseLayoutHierarchyType): "visible", } - # angle - # ----- @property def angle(self): """ @@ -93,8 +92,6 @@ def angle(self): def angle(self, val): self["angle"] = val - # autorange - # --------- @property def autorange(self): """ @@ -124,8 +121,6 @@ def autorange(self): def autorange(self, val): self["autorange"] = val - # autorangeoptions - # ---------------- @property def autorangeoptions(self): """ @@ -135,26 +130,6 @@ 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 @@ -165,8 +140,6 @@ def autorangeoptions(self): def autorangeoptions(self, val): self["autorangeoptions"] = val - # autotickangles - # -------------- @property def autotickangles(self): """ @@ -191,8 +164,6 @@ def autotickangles(self): def autotickangles(self, val): self["autotickangles"] = val - # autotypenumbers - # --------------- @property def autotypenumbers(self): """ @@ -215,8 +186,6 @@ def autotypenumbers(self): def autotypenumbers(self, val): self["autotypenumbers"] = val - # calendar - # -------- @property def calendar(self): """ @@ -242,8 +211,6 @@ def calendar(self): def calendar(self, val): self["calendar"] = val - # categoryarray - # ------------- @property def categoryarray(self): """ @@ -264,8 +231,6 @@ def categoryarray(self): def categoryarray(self, val): self["categoryarray"] = val - # categoryarraysrc - # ---------------- @property def categoryarraysrc(self): """ @@ -285,8 +250,6 @@ def categoryarraysrc(self): def categoryarraysrc(self, val): self["categoryarraysrc"] = val - # categoryorder - # ------------- @property def categoryorder(self): """ @@ -326,8 +289,6 @@ def categoryorder(self): def categoryorder(self, val): self["categoryorder"] = val - # color - # ----- @property def color(self): """ @@ -341,42 +302,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -388,8 +314,6 @@ def color(self): def color(self, val): self["color"] = val - # dtick - # ----- @property def dtick(self): """ @@ -426,8 +350,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -451,8 +373,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # gridcolor - # --------- @property def gridcolor(self): """ @@ -463,42 +383,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -510,8 +395,6 @@ def gridcolor(self): def gridcolor(self, val): self["gridcolor"] = val - # griddash - # -------- @property def griddash(self): """ @@ -536,8 +419,6 @@ def griddash(self): def griddash(self, val): self["griddash"] = val - # gridwidth - # --------- @property def gridwidth(self): """ @@ -556,8 +437,6 @@ def gridwidth(self): def gridwidth(self, val): self["gridwidth"] = val - # hoverformat - # ----------- @property def hoverformat(self): """ @@ -586,8 +465,6 @@ def hoverformat(self): def hoverformat(self, val): self["hoverformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -613,8 +490,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # layer - # ----- @property def layer(self): """ @@ -639,8 +514,6 @@ def layer(self): def layer(self, val): self["layer"] = val - # linecolor - # --------- @property def linecolor(self): """ @@ -651,42 +524,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -698,8 +536,6 @@ def linecolor(self): def linecolor(self, val): self["linecolor"] = val - # linewidth - # --------- @property def linewidth(self): """ @@ -718,8 +554,6 @@ def linewidth(self): def linewidth(self, val): self["linewidth"] = val - # maxallowed - # ---------- @property def maxallowed(self): """ @@ -737,8 +571,6 @@ def maxallowed(self): def maxallowed(self, val): self["maxallowed"] = val - # minallowed - # ---------- @property def minallowed(self): """ @@ -756,8 +588,6 @@ def minallowed(self): def minallowed(self, val): self["minallowed"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -777,8 +607,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -801,8 +629,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # range - # ----- @property def range(self): """ @@ -833,12 +659,10 @@ def range(self): def range(self, val): self["range"] = val - # rangemode - # --------- @property def rangemode(self): """ - If *tozero*`, the range extends to 0, regardless of the input + 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 @@ -858,8 +682,6 @@ def rangemode(self): def rangemode(self, val): self["rangemode"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -878,8 +700,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -902,8 +722,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showgrid - # -------- @property def showgrid(self): """ @@ -923,8 +741,6 @@ def showgrid(self): def showgrid(self, val): self["showgrid"] = val - # showline - # -------- @property def showline(self): """ @@ -943,8 +759,6 @@ def showline(self): def showline(self, val): self["showline"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -963,8 +777,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -987,8 +799,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -1008,8 +818,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # side - # ---- @property def side(self): """ @@ -1030,8 +838,6 @@ def side(self): def side(self, val): self["side"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -1057,8 +863,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -1081,8 +885,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -1093,42 +895,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -1140,8 +907,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -1153,52 +918,6 @@ 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 @@ -1209,8 +928,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -1239,8 +956,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -1250,42 +965,6 @@ 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] @@ -1296,8 +975,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -1311,8 +988,6 @@ 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 @@ -1323,8 +998,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1349,8 +1022,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1369,8 +1040,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1396,8 +1065,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1417,8 +1084,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1440,8 +1105,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1461,8 +1124,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1483,8 +1144,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1503,8 +1162,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1524,8 +1181,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1544,8 +1199,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1564,8 +1217,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1575,13 +1226,6 @@ 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 @@ -1592,8 +1236,6 @@ def title(self): def title(self, val): self["title"] = val - # type - # ---- @property def type(self): """ @@ -1615,8 +1257,6 @@ def type(self): def type(self, val): self["type"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1636,8 +1276,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # visible - # ------- @property def visible(self): """ @@ -1658,8 +1296,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1831,7 +1467,7 @@ def _prop_descriptions(self): appears. Leaving either or both elements `null` impacts the default `autorange`. rangemode - If *tozero*`, the range extends to 0, regardless of the + 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 @@ -2200,7 +1836,7 @@ def __init__( appears. Leaving either or both elements `null` impacts the default `autorange`. rangemode - If *tozero*`, the range extends to 0, regardless of the + 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 @@ -2334,14 +1970,11 @@ def __init__( ------- RadialAxis """ - super(RadialAxis, self).__init__("radialaxis") - + super().__init__("radialaxis") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2356,242 +1989,64 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("angle", arg, angle) + self._set_property("autorange", arg, autorange) + self._set_property("autorangeoptions", arg, autorangeoptions) + self._set_property("autotickangles", arg, autotickangles) + self._set_property("autotypenumbers", arg, autotypenumbers) + self._set_property("calendar", arg, calendar) + self._set_property("categoryarray", arg, categoryarray) + self._set_property("categoryarraysrc", arg, categoryarraysrc) + self._set_property("categoryorder", arg, categoryorder) + self._set_property("color", arg, color) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("gridcolor", arg, gridcolor) + self._set_property("griddash", arg, griddash) + self._set_property("gridwidth", arg, gridwidth) + self._set_property("hoverformat", arg, hoverformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("layer", arg, layer) + self._set_property("linecolor", arg, linecolor) + self._set_property("linewidth", arg, linewidth) + self._set_property("maxallowed", arg, maxallowed) + self._set_property("minallowed", arg, minallowed) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("range", arg, range) + self._set_property("rangemode", arg, rangemode) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showgrid", arg, showgrid) + self._set_property("showline", arg, showline) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("side", arg, side) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("type", arg, type) + self._set_property("uirevision", arg, uirevision) + self._set_property("visible", arg, visible) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/polar/angularaxis/__init__.py b/plotly/graph_objs/layout/polar/angularaxis/__init__.py index ae53e8859f..a1ed04a04e 100644 --- a/plotly/graph_objs/layout/polar/angularaxis/__init__.py +++ b/plotly/graph_objs/layout/polar/angularaxis/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop"] +) diff --git a/plotly/graph_objs/layout/polar/angularaxis/_tickfont.py b/plotly/graph_objs/layout/polar/angularaxis/_tickfont.py index 8254cd3aed..677e0ccb9e 100644 --- a/plotly/graph_objs/layout/polar/angularaxis/_tickfont.py +++ b/plotly/graph_objs/layout/polar/angularaxis/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Tickfont(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.polar.angularaxis" _path_str = "layout.polar.angularaxis.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/polar/angularaxis/_tickformatstop.py b/plotly/graph_objs/layout/polar/angularaxis/_tickformatstop.py index 5755c26e99..51ab090aac 100644 --- a/plotly/graph_objs/layout/polar/angularaxis/_tickformatstop.py +++ b/plotly/graph_objs/layout/polar/angularaxis/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Tickformatstop(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.polar.angularaxis" _path_str = "layout.polar.angularaxis.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/polar/radialaxis/__init__.py b/plotly/graph_objs/layout/polar/radialaxis/__init__.py index 7004d6695b..72774d8afa 100644 --- a/plotly/graph_objs/layout/polar/radialaxis/__init__.py +++ b/plotly/graph_objs/layout/polar/radialaxis/__init__.py @@ -1,22 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._autorangeoptions import Autorangeoptions - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + [ + "._autorangeoptions.Autorangeoptions", + "._tickfont.Tickfont", + "._tickformatstop.Tickformatstop", + "._title.Title", + ], +) diff --git a/plotly/graph_objs/layout/polar/radialaxis/_autorangeoptions.py b/plotly/graph_objs/layout/polar/radialaxis/_autorangeoptions.py index 15276a0d8b..4548bca104 100644 --- a/plotly/graph_objs/layout/polar/radialaxis/_autorangeoptions.py +++ b/plotly/graph_objs/layout/polar/radialaxis/_autorangeoptions.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Autorangeoptions(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.polar.radialaxis" _path_str = "layout.polar.radialaxis.autorangeoptions" _valid_props = { @@ -17,8 +18,6 @@ class Autorangeoptions(_BaseLayoutHierarchyType): "minallowed", } - # clipmax - # ------- @property def clipmax(self): """ @@ -37,8 +36,6 @@ def clipmax(self): def clipmax(self, val): self["clipmax"] = val - # clipmin - # ------- @property def clipmin(self): """ @@ -57,8 +54,6 @@ def clipmin(self): def clipmin(self, val): self["clipmin"] = val - # include - # ------- @property def include(self): """ @@ -76,8 +71,6 @@ def include(self): def include(self, val): self["include"] = val - # includesrc - # ---------- @property def includesrc(self): """ @@ -96,8 +89,6 @@ def includesrc(self): def includesrc(self, val): self["includesrc"] = val - # maxallowed - # ---------- @property def maxallowed(self): """ @@ -115,8 +106,6 @@ def maxallowed(self): def maxallowed(self, val): self["maxallowed"] = val - # minallowed - # ---------- @property def minallowed(self): """ @@ -134,8 +123,6 @@ def minallowed(self): def minallowed(self, val): self["minallowed"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -200,14 +187,11 @@ def __init__( ------- Autorangeoptions """ - super(Autorangeoptions, self).__init__("autorangeoptions") - + super().__init__("autorangeoptions") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -222,42 +206,14 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("clipmax", arg, clipmax) + self._set_property("clipmin", arg, clipmin) + self._set_property("include", arg, include) + self._set_property("includesrc", arg, includesrc) + self._set_property("maxallowed", arg, maxallowed) + self._set_property("minallowed", arg, minallowed) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/polar/radialaxis/_tickfont.py b/plotly/graph_objs/layout/polar/radialaxis/_tickfont.py index c5b5f6fa4e..8abdb4ba8f 100644 --- a/plotly/graph_objs/layout/polar/radialaxis/_tickfont.py +++ b/plotly/graph_objs/layout/polar/radialaxis/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Tickfont(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.polar.radialaxis" _path_str = "layout.polar.radialaxis.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/polar/radialaxis/_tickformatstop.py b/plotly/graph_objs/layout/polar/radialaxis/_tickformatstop.py index 720199cfb2..768bfa3089 100644 --- a/plotly/graph_objs/layout/polar/radialaxis/_tickformatstop.py +++ b/plotly/graph_objs/layout/polar/radialaxis/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Tickformatstop(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.polar.radialaxis" _path_str = "layout.polar.radialaxis.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/polar/radialaxis/_title.py b/plotly/graph_objs/layout/polar/radialaxis/_title.py index 07a9decdba..1d105d4514 100644 --- a/plotly/graph_objs/layout/polar/radialaxis/_title.py +++ b/plotly/graph_objs/layout/polar/radialaxis/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Title(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.polar.radialaxis" _path_str = "layout.polar.radialaxis.title" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/polar/radialaxis/title/__init__.py b/plotly/graph_objs/layout/polar/radialaxis/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/layout/polar/radialaxis/title/__init__.py +++ b/plotly/graph_objs/layout/polar/radialaxis/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/layout/polar/radialaxis/title/_font.py b/plotly/graph_objs/layout/polar/radialaxis/title/_font.py index c3a6f3d8a3..67dffb964b 100644 --- a/plotly/graph_objs/layout/polar/radialaxis/title/_font.py +++ b/plotly/graph_objs/layout/polar/radialaxis/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Font(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.polar.radialaxis.title" _path_str = "layout.polar.radialaxis.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/scene/__init__.py b/plotly/graph_objs/layout/scene/__init__.py index 3e5e2f1ee4..c6a1c5c3e2 100644 --- a/plotly/graph_objs/layout/scene/__init__.py +++ b/plotly/graph_objs/layout/scene/__init__.py @@ -1,32 +1,16 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._annotation import Annotation - from ._aspectratio import Aspectratio - from ._camera import Camera - from ._domain import Domain - from ._xaxis import XAxis - from ._yaxis import YAxis - from ._zaxis import ZAxis - from . import annotation - from . import camera - from . import xaxis - from . import yaxis - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/layout/scene/_annotation.py b/plotly/graph_objs/layout/scene/_annotation.py index be9baaf5a1..aef234a632 100644 --- a/plotly/graph_objs/layout/scene/_annotation.py +++ b/plotly/graph_objs/layout/scene/_annotation.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Annotation(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.scene" _path_str = "layout.scene.annotation" _valid_props = { @@ -48,8 +49,6 @@ class Annotation(_BaseLayoutHierarchyType): "z", } - # align - # ----- @property def align(self): """ @@ -72,8 +71,6 @@ def align(self): def align(self, val): self["align"] = val - # arrowcolor - # ---------- @property def arrowcolor(self): """ @@ -84,42 +81,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -131,8 +93,6 @@ def arrowcolor(self): def arrowcolor(self, val): self["arrowcolor"] = val - # arrowhead - # --------- @property def arrowhead(self): """ @@ -152,8 +112,6 @@ def arrowhead(self): def arrowhead(self, val): self["arrowhead"] = val - # arrowside - # --------- @property def arrowside(self): """ @@ -175,8 +133,6 @@ def arrowside(self): def arrowside(self, val): self["arrowside"] = val - # arrowsize - # --------- @property def arrowsize(self): """ @@ -197,8 +153,6 @@ def arrowsize(self): def arrowsize(self, val): self["arrowsize"] = val - # arrowwidth - # ---------- @property def arrowwidth(self): """ @@ -217,8 +171,6 @@ def arrowwidth(self): def arrowwidth(self, val): self["arrowwidth"] = val - # ax - # -- @property def ax(self): """ @@ -238,8 +190,6 @@ def ax(self): def ax(self, val): self["ax"] = val - # ay - # -- @property def ay(self): """ @@ -259,8 +209,6 @@ def ay(self): def ay(self, val): self["ay"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -271,42 +219,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -318,8 +231,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -330,42 +241,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -377,8 +253,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderpad - # --------- @property def borderpad(self): """ @@ -398,8 +272,6 @@ def borderpad(self): def borderpad(self, val): self["borderpad"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -419,8 +291,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # captureevents - # ------------- @property def captureevents(self): """ @@ -444,8 +314,6 @@ def captureevents(self): def captureevents(self, val): self["captureevents"] = val - # font - # ---- @property def font(self): """ @@ -457,52 +325,6 @@ 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 @@ -513,8 +335,6 @@ def font(self): def font(self, val): self["font"] = val - # height - # ------ @property def height(self): """ @@ -534,8 +354,6 @@ def height(self): def height(self, val): self["height"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -545,21 +363,6 @@ 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 @@ -570,8 +373,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertext - # --------- @property def hovertext(self): """ @@ -592,8 +393,6 @@ def hovertext(self): def hovertext(self, val): self["hovertext"] = val - # name - # ---- @property def name(self): """ @@ -619,8 +418,6 @@ def name(self): def name(self, val): self["name"] = val - # opacity - # ------- @property def opacity(self): """ @@ -639,8 +436,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # showarrow - # --------- @property def showarrow(self): """ @@ -661,8 +456,6 @@ def showarrow(self): def showarrow(self, val): self["showarrow"] = val - # standoff - # -------- @property def standoff(self): """ @@ -685,8 +478,6 @@ def standoff(self): def standoff(self, val): self["standoff"] = val - # startarrowhead - # -------------- @property def startarrowhead(self): """ @@ -706,8 +497,6 @@ def startarrowhead(self): def startarrowhead(self, val): self["startarrowhead"] = val - # startarrowsize - # -------------- @property def startarrowsize(self): """ @@ -728,8 +517,6 @@ def startarrowsize(self): def startarrowsize(self, val): self["startarrowsize"] = val - # startstandoff - # ------------- @property def startstandoff(self): """ @@ -752,8 +539,6 @@ def startstandoff(self): def startstandoff(self, val): self["startstandoff"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -780,8 +565,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # text - # ---- @property def text(self): """ @@ -804,8 +587,6 @@ def text(self): def text(self, val): self["text"] = val - # textangle - # --------- @property def textangle(self): """ @@ -827,8 +608,6 @@ def textangle(self): def textangle(self, val): self["textangle"] = val - # valign - # ------ @property def valign(self): """ @@ -850,8 +629,6 @@ def valign(self): def valign(self, val): self["valign"] = val - # visible - # ------- @property def visible(self): """ @@ -870,8 +647,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # width - # ----- @property def width(self): """ @@ -892,8 +667,6 @@ def width(self): def width(self, val): self["width"] = val - # x - # - @property def x(self): """ @@ -911,8 +684,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -940,8 +711,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xshift - # ------ @property def xshift(self): """ @@ -961,8 +730,6 @@ def xshift(self): def xshift(self, val): self["xshift"] = val - # y - # - @property def y(self): """ @@ -980,8 +747,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1009,8 +774,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # yshift - # ------ @property def yshift(self): """ @@ -1030,8 +793,6 @@ def yshift(self): def yshift(self, val): self["yshift"] = val - # z - # - @property def z(self): """ @@ -1049,8 +810,6 @@ def z(self): def z(self, val): self["z"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1424,14 +1183,11 @@ def __init__( ------- Annotation """ - super(Annotation, self).__init__("annotations") - + super().__init__("annotations") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1446,166 +1202,45 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("arrowcolor", arg, arrowcolor) + self._set_property("arrowhead", arg, arrowhead) + self._set_property("arrowside", arg, arrowside) + self._set_property("arrowsize", arg, arrowsize) + self._set_property("arrowwidth", arg, arrowwidth) + self._set_property("ax", arg, ax) + self._set_property("ay", arg, ay) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderpad", arg, borderpad) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("captureevents", arg, captureevents) + self._set_property("font", arg, font) + self._set_property("height", arg, height) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertext", arg, hovertext) + self._set_property("name", arg, name) + self._set_property("opacity", arg, opacity) + self._set_property("showarrow", arg, showarrow) + self._set_property("standoff", arg, standoff) + self._set_property("startarrowhead", arg, startarrowhead) + self._set_property("startarrowsize", arg, startarrowsize) + self._set_property("startstandoff", arg, startstandoff) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("text", arg, text) + self._set_property("textangle", arg, textangle) + self._set_property("valign", arg, valign) + self._set_property("visible", arg, visible) + self._set_property("width", arg, width) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xshift", arg, xshift) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("yshift", arg, yshift) + self._set_property("z", arg, z) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/scene/_aspectratio.py b/plotly/graph_objs/layout/scene/_aspectratio.py index 2425505256..81c15e7542 100644 --- a/plotly/graph_objs/layout/scene/_aspectratio.py +++ b/plotly/graph_objs/layout/scene/_aspectratio.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Aspectratio(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.scene" _path_str = "layout.scene.aspectratio" _valid_props = {"x", "y", "z"} - # x - # - @property def x(self): """ @@ -28,8 +27,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -46,8 +43,6 @@ def y(self): def y(self, val): self["y"] = val - # z - # - @property def z(self): """ @@ -64,8 +59,6 @@ def z(self): def z(self, val): self["z"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -100,14 +93,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Aspectratio """ - super(Aspectratio, self).__init__("aspectratio") - + super().__init__("aspectratio") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -122,30 +112,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("x", arg, x) + self._set_property("y", arg, y) + self._set_property("z", arg, z) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/scene/_camera.py b/plotly/graph_objs/layout/scene/_camera.py index e824e0ba54..e70bb6f0aa 100644 --- a/plotly/graph_objs/layout/scene/_camera.py +++ b/plotly/graph_objs/layout/scene/_camera.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Camera(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.scene" _path_str = "layout.scene.camera" _valid_props = {"center", "eye", "projection", "up"} - # center - # ------ @property def center(self): """ @@ -25,14 +24,6 @@ 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 @@ -43,8 +34,6 @@ def center(self): def center(self, val): self["center"] = val - # eye - # --- @property def eye(self): """ @@ -58,14 +47,6 @@ 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 @@ -76,8 +57,6 @@ def eye(self): def eye(self, val): self["eye"] = val - # projection - # ---------- @property def projection(self): """ @@ -87,13 +66,6 @@ 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 @@ -104,8 +76,6 @@ def projection(self): def projection(self, val): self["projection"] = val - # up - # -- @property def up(self): """ @@ -120,14 +90,6 @@ 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 @@ -138,8 +100,6 @@ def up(self): def up(self, val): self["up"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -196,14 +156,11 @@ def __init__( ------- Camera """ - super(Camera, self).__init__("camera") - + super().__init__("camera") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -218,34 +175,12 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("center", arg, center) + self._set_property("eye", arg, eye) + self._set_property("projection", arg, projection) + self._set_property("up", arg, up) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/scene/_domain.py b/plotly/graph_objs/layout/scene/_domain.py index 15bb284ced..88469984d8 100644 --- a/plotly/graph_objs/layout/scene/_domain.py +++ b/plotly/graph_objs/layout/scene/_domain.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Domain(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.scene" _path_str = "layout.scene.domain" _valid_props = {"column", "row", "x", "y"} - # column - # ------ @property def column(self): """ @@ -32,8 +31,6 @@ def column(self): def column(self, val): self["column"] = val - # row - # --- @property def row(self): """ @@ -54,8 +51,6 @@ def row(self): def row(self, val): self["row"] = val - # x - # - @property def x(self): """ @@ -80,8 +75,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -106,8 +99,6 @@ def y(self): def y(self, val): self["y"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -152,14 +143,11 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") - + super().__init__("domain") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -174,34 +162,12 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("column", arg, column) + self._set_property("row", arg, row) + self._set_property("x", arg, x) + self._set_property("y", arg, y) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/scene/_xaxis.py b/plotly/graph_objs/layout/scene/_xaxis.py index 8946252620..466951eed5 100644 --- a/plotly/graph_objs/layout/scene/_xaxis.py +++ b/plotly/graph_objs/layout/scene/_xaxis.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class XAxis(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.scene" _path_str = "layout.scene.xaxis" _valid_props = { @@ -71,8 +72,6 @@ class XAxis(_BaseLayoutHierarchyType): "zerolinewidth", } - # autorange - # --------- @property def autorange(self): """ @@ -102,8 +101,6 @@ def autorange(self): def autorange(self, val): self["autorange"] = val - # autorangeoptions - # ---------------- @property def autorangeoptions(self): """ @@ -113,26 +110,6 @@ 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 @@ -143,8 +120,6 @@ def autorangeoptions(self): def autorangeoptions(self, val): self["autorangeoptions"] = val - # autotypenumbers - # --------------- @property def autotypenumbers(self): """ @@ -167,8 +142,6 @@ def autotypenumbers(self): def autotypenumbers(self, val): self["autotypenumbers"] = val - # backgroundcolor - # --------------- @property def backgroundcolor(self): """ @@ -179,42 +152,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -226,8 +164,6 @@ def backgroundcolor(self): def backgroundcolor(self, val): self["backgroundcolor"] = val - # calendar - # -------- @property def calendar(self): """ @@ -253,8 +189,6 @@ def calendar(self): def calendar(self, val): self["calendar"] = val - # categoryarray - # ------------- @property def categoryarray(self): """ @@ -275,8 +209,6 @@ def categoryarray(self): def categoryarray(self, val): self["categoryarray"] = val - # categoryarraysrc - # ---------------- @property def categoryarraysrc(self): """ @@ -296,8 +228,6 @@ def categoryarraysrc(self): def categoryarraysrc(self, val): self["categoryarraysrc"] = val - # categoryorder - # ------------- @property def categoryorder(self): """ @@ -337,8 +267,6 @@ def categoryorder(self): def categoryorder(self, val): self["categoryorder"] = val - # color - # ----- @property def color(self): """ @@ -352,42 +280,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -399,8 +292,6 @@ def color(self): def color(self, val): self["color"] = val - # dtick - # ----- @property def dtick(self): """ @@ -437,8 +328,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -462,8 +351,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # gridcolor - # --------- @property def gridcolor(self): """ @@ -474,42 +361,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -521,8 +373,6 @@ def gridcolor(self): def gridcolor(self, val): self["gridcolor"] = val - # gridwidth - # --------- @property def gridwidth(self): """ @@ -541,8 +391,6 @@ def gridwidth(self): def gridwidth(self, val): self["gridwidth"] = val - # hoverformat - # ----------- @property def hoverformat(self): """ @@ -571,8 +419,6 @@ def hoverformat(self): def hoverformat(self, val): self["hoverformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -598,8 +444,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # linecolor - # --------- @property def linecolor(self): """ @@ -610,42 +454,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -657,8 +466,6 @@ def linecolor(self): def linecolor(self, val): self["linecolor"] = val - # linewidth - # --------- @property def linewidth(self): """ @@ -677,8 +484,6 @@ def linewidth(self): def linewidth(self, val): self["linewidth"] = val - # maxallowed - # ---------- @property def maxallowed(self): """ @@ -696,8 +501,6 @@ def maxallowed(self): def maxallowed(self, val): self["maxallowed"] = val - # minallowed - # ---------- @property def minallowed(self): """ @@ -715,8 +518,6 @@ def minallowed(self): def minallowed(self, val): self["minallowed"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -736,8 +537,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # mirror - # ------ @property def mirror(self): """ @@ -762,8 +561,6 @@ def mirror(self): def mirror(self, val): self["mirror"] = val - # nticks - # ------ @property def nticks(self): """ @@ -786,8 +583,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # range - # ----- @property def range(self): """ @@ -818,13 +613,11 @@ def range(self): def range(self, val): self["range"] = val - # rangemode - # --------- @property def rangemode(self): """ If "normal", the range is computed in relation to the extrema - of the input data. If *tozero*`, the range extends to 0, + 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. @@ -843,8 +636,6 @@ def rangemode(self): def rangemode(self, val): self["rangemode"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -863,8 +654,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showaxeslabels - # -------------- @property def showaxeslabels(self): """ @@ -883,8 +672,6 @@ def showaxeslabels(self): def showaxeslabels(self, val): self["showaxeslabels"] = val - # showbackground - # -------------- @property def showbackground(self): """ @@ -903,8 +690,6 @@ def showbackground(self): def showbackground(self, val): self["showbackground"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -927,8 +712,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showgrid - # -------- @property def showgrid(self): """ @@ -948,8 +731,6 @@ def showgrid(self): def showgrid(self, val): self["showgrid"] = val - # showline - # -------- @property def showline(self): """ @@ -968,8 +749,6 @@ def showline(self): def showline(self, val): self["showline"] = val - # showspikes - # ---------- @property def showspikes(self): """ @@ -989,8 +768,6 @@ def showspikes(self): def showspikes(self, val): self["showspikes"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -1009,8 +786,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -1033,8 +808,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -1054,8 +827,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # spikecolor - # ---------- @property def spikecolor(self): """ @@ -1066,42 +837,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -1113,8 +849,6 @@ def spikecolor(self): def spikecolor(self, val): self["spikecolor"] = val - # spikesides - # ---------- @property def spikesides(self): """ @@ -1134,8 +868,6 @@ def spikesides(self): def spikesides(self, val): self["spikesides"] = val - # spikethickness - # -------------- @property def spikethickness(self): """ @@ -1154,8 +886,6 @@ def spikethickness(self): def spikethickness(self, val): self["spikethickness"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -1181,8 +911,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -1205,8 +933,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -1217,42 +943,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -1264,8 +955,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -1277,52 +966,6 @@ 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 @@ -1333,8 +976,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -1363,8 +1004,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -1374,42 +1013,6 @@ 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] @@ -1420,8 +1023,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -1436,8 +1037,6 @@ 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 @@ -1448,8 +1047,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1468,8 +1065,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1495,8 +1090,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1516,8 +1109,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1539,8 +1130,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1560,8 +1149,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1582,8 +1169,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1602,8 +1187,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1623,8 +1206,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1643,8 +1224,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1663,8 +1242,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1674,13 +1251,6 @@ 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 @@ -1691,8 +1261,6 @@ def title(self): def title(self, val): self["title"] = val - # type - # ---- @property def type(self): """ @@ -1714,8 +1282,6 @@ def type(self): def type(self, val): self["type"] = val - # visible - # ------- @property def visible(self): """ @@ -1736,8 +1302,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # zeroline - # -------- @property def zeroline(self): """ @@ -1758,8 +1322,6 @@ def zeroline(self): def zeroline(self, val): self["zeroline"] = val - # zerolinecolor - # ------------- @property def zerolinecolor(self): """ @@ -1770,42 +1332,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -1817,8 +1344,6 @@ def zerolinecolor(self): def zerolinecolor(self, val): self["zerolinecolor"] = val - # zerolinewidth - # ------------- @property def zerolinewidth(self): """ @@ -1837,8 +1362,6 @@ def zerolinewidth(self): def zerolinewidth(self, val): self["zerolinewidth"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1997,7 +1520,7 @@ def _prop_descriptions(self): the default `autorange`. rangemode If "normal", the range is computed in relation to the - extrema of the input data. If *tozero*`, the range + 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. @@ -2364,7 +1887,7 @@ def __init__( the default `autorange`. rangemode If "normal", the range is computed in relation to the - extrema of the input data. If *tozero*`, the range + 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. @@ -2505,14 +2028,11 @@ def __init__( ------- XAxis """ - super(XAxis, self).__init__("xaxis") - + super().__init__("xaxis") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2527,258 +2047,68 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("autorange", arg, autorange) + self._set_property("autorangeoptions", arg, autorangeoptions) + self._set_property("autotypenumbers", arg, autotypenumbers) + self._set_property("backgroundcolor", arg, backgroundcolor) + self._set_property("calendar", arg, calendar) + self._set_property("categoryarray", arg, categoryarray) + self._set_property("categoryarraysrc", arg, categoryarraysrc) + self._set_property("categoryorder", arg, categoryorder) + self._set_property("color", arg, color) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("gridcolor", arg, gridcolor) + self._set_property("gridwidth", arg, gridwidth) + self._set_property("hoverformat", arg, hoverformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("linecolor", arg, linecolor) + self._set_property("linewidth", arg, linewidth) + self._set_property("maxallowed", arg, maxallowed) + self._set_property("minallowed", arg, minallowed) + self._set_property("minexponent", arg, minexponent) + self._set_property("mirror", arg, mirror) + self._set_property("nticks", arg, nticks) + self._set_property("range", arg, range) + self._set_property("rangemode", arg, rangemode) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showaxeslabels", arg, showaxeslabels) + self._set_property("showbackground", arg, showbackground) + self._set_property("showexponent", arg, showexponent) + self._set_property("showgrid", arg, showgrid) + self._set_property("showline", arg, showline) + self._set_property("showspikes", arg, showspikes) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("spikecolor", arg, spikecolor) + self._set_property("spikesides", arg, spikesides) + self._set_property("spikethickness", arg, spikethickness) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("type", arg, type) + self._set_property("visible", arg, visible) + self._set_property("zeroline", arg, zeroline) + self._set_property("zerolinecolor", arg, zerolinecolor) + self._set_property("zerolinewidth", arg, zerolinewidth) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/scene/_yaxis.py b/plotly/graph_objs/layout/scene/_yaxis.py index 75c65cfb7a..28d9e26db9 100644 --- a/plotly/graph_objs/layout/scene/_yaxis.py +++ b/plotly/graph_objs/layout/scene/_yaxis.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class YAxis(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.scene" _path_str = "layout.scene.yaxis" _valid_props = { @@ -71,8 +72,6 @@ class YAxis(_BaseLayoutHierarchyType): "zerolinewidth", } - # autorange - # --------- @property def autorange(self): """ @@ -102,8 +101,6 @@ def autorange(self): def autorange(self, val): self["autorange"] = val - # autorangeoptions - # ---------------- @property def autorangeoptions(self): """ @@ -113,26 +110,6 @@ 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 @@ -143,8 +120,6 @@ def autorangeoptions(self): def autorangeoptions(self, val): self["autorangeoptions"] = val - # autotypenumbers - # --------------- @property def autotypenumbers(self): """ @@ -167,8 +142,6 @@ def autotypenumbers(self): def autotypenumbers(self, val): self["autotypenumbers"] = val - # backgroundcolor - # --------------- @property def backgroundcolor(self): """ @@ -179,42 +152,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -226,8 +164,6 @@ def backgroundcolor(self): def backgroundcolor(self, val): self["backgroundcolor"] = val - # calendar - # -------- @property def calendar(self): """ @@ -253,8 +189,6 @@ def calendar(self): def calendar(self, val): self["calendar"] = val - # categoryarray - # ------------- @property def categoryarray(self): """ @@ -275,8 +209,6 @@ def categoryarray(self): def categoryarray(self, val): self["categoryarray"] = val - # categoryarraysrc - # ---------------- @property def categoryarraysrc(self): """ @@ -296,8 +228,6 @@ def categoryarraysrc(self): def categoryarraysrc(self, val): self["categoryarraysrc"] = val - # categoryorder - # ------------- @property def categoryorder(self): """ @@ -337,8 +267,6 @@ def categoryorder(self): def categoryorder(self, val): self["categoryorder"] = val - # color - # ----- @property def color(self): """ @@ -352,42 +280,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -399,8 +292,6 @@ def color(self): def color(self, val): self["color"] = val - # dtick - # ----- @property def dtick(self): """ @@ -437,8 +328,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -462,8 +351,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # gridcolor - # --------- @property def gridcolor(self): """ @@ -474,42 +361,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -521,8 +373,6 @@ def gridcolor(self): def gridcolor(self, val): self["gridcolor"] = val - # gridwidth - # --------- @property def gridwidth(self): """ @@ -541,8 +391,6 @@ def gridwidth(self): def gridwidth(self, val): self["gridwidth"] = val - # hoverformat - # ----------- @property def hoverformat(self): """ @@ -571,8 +419,6 @@ def hoverformat(self): def hoverformat(self, val): self["hoverformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -598,8 +444,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # linecolor - # --------- @property def linecolor(self): """ @@ -610,42 +454,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -657,8 +466,6 @@ def linecolor(self): def linecolor(self, val): self["linecolor"] = val - # linewidth - # --------- @property def linewidth(self): """ @@ -677,8 +484,6 @@ def linewidth(self): def linewidth(self, val): self["linewidth"] = val - # maxallowed - # ---------- @property def maxallowed(self): """ @@ -696,8 +501,6 @@ def maxallowed(self): def maxallowed(self, val): self["maxallowed"] = val - # minallowed - # ---------- @property def minallowed(self): """ @@ -715,8 +518,6 @@ def minallowed(self): def minallowed(self, val): self["minallowed"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -736,8 +537,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # mirror - # ------ @property def mirror(self): """ @@ -762,8 +561,6 @@ def mirror(self): def mirror(self, val): self["mirror"] = val - # nticks - # ------ @property def nticks(self): """ @@ -786,8 +583,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # range - # ----- @property def range(self): """ @@ -818,13 +613,11 @@ def range(self): def range(self, val): self["range"] = val - # rangemode - # --------- @property def rangemode(self): """ If "normal", the range is computed in relation to the extrema - of the input data. If *tozero*`, the range extends to 0, + 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. @@ -843,8 +636,6 @@ def rangemode(self): def rangemode(self, val): self["rangemode"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -863,8 +654,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showaxeslabels - # -------------- @property def showaxeslabels(self): """ @@ -883,8 +672,6 @@ def showaxeslabels(self): def showaxeslabels(self, val): self["showaxeslabels"] = val - # showbackground - # -------------- @property def showbackground(self): """ @@ -903,8 +690,6 @@ def showbackground(self): def showbackground(self, val): self["showbackground"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -927,8 +712,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showgrid - # -------- @property def showgrid(self): """ @@ -948,8 +731,6 @@ def showgrid(self): def showgrid(self, val): self["showgrid"] = val - # showline - # -------- @property def showline(self): """ @@ -968,8 +749,6 @@ def showline(self): def showline(self, val): self["showline"] = val - # showspikes - # ---------- @property def showspikes(self): """ @@ -989,8 +768,6 @@ def showspikes(self): def showspikes(self, val): self["showspikes"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -1009,8 +786,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -1033,8 +808,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -1054,8 +827,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # spikecolor - # ---------- @property def spikecolor(self): """ @@ -1066,42 +837,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -1113,8 +849,6 @@ def spikecolor(self): def spikecolor(self, val): self["spikecolor"] = val - # spikesides - # ---------- @property def spikesides(self): """ @@ -1134,8 +868,6 @@ def spikesides(self): def spikesides(self, val): self["spikesides"] = val - # spikethickness - # -------------- @property def spikethickness(self): """ @@ -1154,8 +886,6 @@ def spikethickness(self): def spikethickness(self, val): self["spikethickness"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -1181,8 +911,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -1205,8 +933,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -1217,42 +943,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -1264,8 +955,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -1277,52 +966,6 @@ 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 @@ -1333,8 +976,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -1363,8 +1004,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -1374,42 +1013,6 @@ 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] @@ -1420,8 +1023,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -1436,8 +1037,6 @@ 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 @@ -1448,8 +1047,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1468,8 +1065,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1495,8 +1090,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1516,8 +1109,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1539,8 +1130,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1560,8 +1149,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1582,8 +1169,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1602,8 +1187,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1623,8 +1206,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1643,8 +1224,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1663,8 +1242,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1674,13 +1251,6 @@ 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 @@ -1691,8 +1261,6 @@ def title(self): def title(self, val): self["title"] = val - # type - # ---- @property def type(self): """ @@ -1714,8 +1282,6 @@ def type(self): def type(self, val): self["type"] = val - # visible - # ------- @property def visible(self): """ @@ -1736,8 +1302,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # zeroline - # -------- @property def zeroline(self): """ @@ -1758,8 +1322,6 @@ def zeroline(self): def zeroline(self, val): self["zeroline"] = val - # zerolinecolor - # ------------- @property def zerolinecolor(self): """ @@ -1770,42 +1332,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -1817,8 +1344,6 @@ def zerolinecolor(self): def zerolinecolor(self, val): self["zerolinecolor"] = val - # zerolinewidth - # ------------- @property def zerolinewidth(self): """ @@ -1837,8 +1362,6 @@ def zerolinewidth(self): def zerolinewidth(self, val): self["zerolinewidth"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1997,7 +1520,7 @@ def _prop_descriptions(self): the default `autorange`. rangemode If "normal", the range is computed in relation to the - extrema of the input data. If *tozero*`, the range + 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. @@ -2364,7 +1887,7 @@ def __init__( the default `autorange`. rangemode If "normal", the range is computed in relation to the - extrema of the input data. If *tozero*`, the range + 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. @@ -2505,14 +2028,11 @@ def __init__( ------- YAxis """ - super(YAxis, self).__init__("yaxis") - + super().__init__("yaxis") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2527,258 +2047,68 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("autorange", arg, autorange) + self._set_property("autorangeoptions", arg, autorangeoptions) + self._set_property("autotypenumbers", arg, autotypenumbers) + self._set_property("backgroundcolor", arg, backgroundcolor) + self._set_property("calendar", arg, calendar) + self._set_property("categoryarray", arg, categoryarray) + self._set_property("categoryarraysrc", arg, categoryarraysrc) + self._set_property("categoryorder", arg, categoryorder) + self._set_property("color", arg, color) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("gridcolor", arg, gridcolor) + self._set_property("gridwidth", arg, gridwidth) + self._set_property("hoverformat", arg, hoverformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("linecolor", arg, linecolor) + self._set_property("linewidth", arg, linewidth) + self._set_property("maxallowed", arg, maxallowed) + self._set_property("minallowed", arg, minallowed) + self._set_property("minexponent", arg, minexponent) + self._set_property("mirror", arg, mirror) + self._set_property("nticks", arg, nticks) + self._set_property("range", arg, range) + self._set_property("rangemode", arg, rangemode) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showaxeslabels", arg, showaxeslabels) + self._set_property("showbackground", arg, showbackground) + self._set_property("showexponent", arg, showexponent) + self._set_property("showgrid", arg, showgrid) + self._set_property("showline", arg, showline) + self._set_property("showspikes", arg, showspikes) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("spikecolor", arg, spikecolor) + self._set_property("spikesides", arg, spikesides) + self._set_property("spikethickness", arg, spikethickness) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("type", arg, type) + self._set_property("visible", arg, visible) + self._set_property("zeroline", arg, zeroline) + self._set_property("zerolinecolor", arg, zerolinecolor) + self._set_property("zerolinewidth", arg, zerolinewidth) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/scene/_zaxis.py b/plotly/graph_objs/layout/scene/_zaxis.py index 7bf8c78d8b..28d334e88b 100644 --- a/plotly/graph_objs/layout/scene/_zaxis.py +++ b/plotly/graph_objs/layout/scene/_zaxis.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class ZAxis(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.scene" _path_str = "layout.scene.zaxis" _valid_props = { @@ -71,8 +72,6 @@ class ZAxis(_BaseLayoutHierarchyType): "zerolinewidth", } - # autorange - # --------- @property def autorange(self): """ @@ -102,8 +101,6 @@ def autorange(self): def autorange(self, val): self["autorange"] = val - # autorangeoptions - # ---------------- @property def autorangeoptions(self): """ @@ -113,26 +110,6 @@ 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 @@ -143,8 +120,6 @@ def autorangeoptions(self): def autorangeoptions(self, val): self["autorangeoptions"] = val - # autotypenumbers - # --------------- @property def autotypenumbers(self): """ @@ -167,8 +142,6 @@ def autotypenumbers(self): def autotypenumbers(self, val): self["autotypenumbers"] = val - # backgroundcolor - # --------------- @property def backgroundcolor(self): """ @@ -179,42 +152,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -226,8 +164,6 @@ def backgroundcolor(self): def backgroundcolor(self, val): self["backgroundcolor"] = val - # calendar - # -------- @property def calendar(self): """ @@ -253,8 +189,6 @@ def calendar(self): def calendar(self, val): self["calendar"] = val - # categoryarray - # ------------- @property def categoryarray(self): """ @@ -275,8 +209,6 @@ def categoryarray(self): def categoryarray(self, val): self["categoryarray"] = val - # categoryarraysrc - # ---------------- @property def categoryarraysrc(self): """ @@ -296,8 +228,6 @@ def categoryarraysrc(self): def categoryarraysrc(self, val): self["categoryarraysrc"] = val - # categoryorder - # ------------- @property def categoryorder(self): """ @@ -337,8 +267,6 @@ def categoryorder(self): def categoryorder(self, val): self["categoryorder"] = val - # color - # ----- @property def color(self): """ @@ -352,42 +280,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -399,8 +292,6 @@ def color(self): def color(self, val): self["color"] = val - # dtick - # ----- @property def dtick(self): """ @@ -437,8 +328,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -462,8 +351,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # gridcolor - # --------- @property def gridcolor(self): """ @@ -474,42 +361,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -521,8 +373,6 @@ def gridcolor(self): def gridcolor(self, val): self["gridcolor"] = val - # gridwidth - # --------- @property def gridwidth(self): """ @@ -541,8 +391,6 @@ def gridwidth(self): def gridwidth(self, val): self["gridwidth"] = val - # hoverformat - # ----------- @property def hoverformat(self): """ @@ -571,8 +419,6 @@ def hoverformat(self): def hoverformat(self, val): self["hoverformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -598,8 +444,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # linecolor - # --------- @property def linecolor(self): """ @@ -610,42 +454,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -657,8 +466,6 @@ def linecolor(self): def linecolor(self, val): self["linecolor"] = val - # linewidth - # --------- @property def linewidth(self): """ @@ -677,8 +484,6 @@ def linewidth(self): def linewidth(self, val): self["linewidth"] = val - # maxallowed - # ---------- @property def maxallowed(self): """ @@ -696,8 +501,6 @@ def maxallowed(self): def maxallowed(self, val): self["maxallowed"] = val - # minallowed - # ---------- @property def minallowed(self): """ @@ -715,8 +518,6 @@ def minallowed(self): def minallowed(self, val): self["minallowed"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -736,8 +537,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # mirror - # ------ @property def mirror(self): """ @@ -762,8 +561,6 @@ def mirror(self): def mirror(self, val): self["mirror"] = val - # nticks - # ------ @property def nticks(self): """ @@ -786,8 +583,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # range - # ----- @property def range(self): """ @@ -818,13 +613,11 @@ def range(self): def range(self, val): self["range"] = val - # rangemode - # --------- @property def rangemode(self): """ If "normal", the range is computed in relation to the extrema - of the input data. If *tozero*`, the range extends to 0, + 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. @@ -843,8 +636,6 @@ def rangemode(self): def rangemode(self, val): self["rangemode"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -863,8 +654,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showaxeslabels - # -------------- @property def showaxeslabels(self): """ @@ -883,8 +672,6 @@ def showaxeslabels(self): def showaxeslabels(self, val): self["showaxeslabels"] = val - # showbackground - # -------------- @property def showbackground(self): """ @@ -903,8 +690,6 @@ def showbackground(self): def showbackground(self, val): self["showbackground"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -927,8 +712,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showgrid - # -------- @property def showgrid(self): """ @@ -948,8 +731,6 @@ def showgrid(self): def showgrid(self, val): self["showgrid"] = val - # showline - # -------- @property def showline(self): """ @@ -968,8 +749,6 @@ def showline(self): def showline(self, val): self["showline"] = val - # showspikes - # ---------- @property def showspikes(self): """ @@ -989,8 +768,6 @@ def showspikes(self): def showspikes(self, val): self["showspikes"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -1009,8 +786,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -1033,8 +808,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -1054,8 +827,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # spikecolor - # ---------- @property def spikecolor(self): """ @@ -1066,42 +837,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -1113,8 +849,6 @@ def spikecolor(self): def spikecolor(self, val): self["spikecolor"] = val - # spikesides - # ---------- @property def spikesides(self): """ @@ -1134,8 +868,6 @@ def spikesides(self): def spikesides(self, val): self["spikesides"] = val - # spikethickness - # -------------- @property def spikethickness(self): """ @@ -1154,8 +886,6 @@ def spikethickness(self): def spikethickness(self, val): self["spikethickness"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -1181,8 +911,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -1205,8 +933,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -1217,42 +943,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -1264,8 +955,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -1277,52 +966,6 @@ 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 @@ -1333,8 +976,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -1363,8 +1004,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -1374,42 +1013,6 @@ 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] @@ -1420,8 +1023,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -1436,8 +1037,6 @@ 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 @@ -1448,8 +1047,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1468,8 +1065,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1495,8 +1090,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1516,8 +1109,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1539,8 +1130,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1560,8 +1149,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1582,8 +1169,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1602,8 +1187,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1623,8 +1206,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1643,8 +1224,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1663,8 +1242,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1674,13 +1251,6 @@ 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 @@ -1691,8 +1261,6 @@ def title(self): def title(self, val): self["title"] = val - # type - # ---- @property def type(self): """ @@ -1714,8 +1282,6 @@ def type(self): def type(self, val): self["type"] = val - # visible - # ------- @property def visible(self): """ @@ -1736,8 +1302,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # zeroline - # -------- @property def zeroline(self): """ @@ -1758,8 +1322,6 @@ def zeroline(self): def zeroline(self, val): self["zeroline"] = val - # zerolinecolor - # ------------- @property def zerolinecolor(self): """ @@ -1770,42 +1332,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -1817,8 +1344,6 @@ def zerolinecolor(self): def zerolinecolor(self, val): self["zerolinecolor"] = val - # zerolinewidth - # ------------- @property def zerolinewidth(self): """ @@ -1837,8 +1362,6 @@ def zerolinewidth(self): def zerolinewidth(self, val): self["zerolinewidth"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1997,7 +1520,7 @@ def _prop_descriptions(self): the default `autorange`. rangemode If "normal", the range is computed in relation to the - extrema of the input data. If *tozero*`, the range + 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. @@ -2364,7 +1887,7 @@ def __init__( the default `autorange`. rangemode If "normal", the range is computed in relation to the - extrema of the input data. If *tozero*`, the range + 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. @@ -2505,14 +2028,11 @@ def __init__( ------- ZAxis """ - super(ZAxis, self).__init__("zaxis") - + super().__init__("zaxis") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2527,258 +2047,68 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("autorange", arg, autorange) + self._set_property("autorangeoptions", arg, autorangeoptions) + self._set_property("autotypenumbers", arg, autotypenumbers) + self._set_property("backgroundcolor", arg, backgroundcolor) + self._set_property("calendar", arg, calendar) + self._set_property("categoryarray", arg, categoryarray) + self._set_property("categoryarraysrc", arg, categoryarraysrc) + self._set_property("categoryorder", arg, categoryorder) + self._set_property("color", arg, color) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("gridcolor", arg, gridcolor) + self._set_property("gridwidth", arg, gridwidth) + self._set_property("hoverformat", arg, hoverformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("linecolor", arg, linecolor) + self._set_property("linewidth", arg, linewidth) + self._set_property("maxallowed", arg, maxallowed) + self._set_property("minallowed", arg, minallowed) + self._set_property("minexponent", arg, minexponent) + self._set_property("mirror", arg, mirror) + self._set_property("nticks", arg, nticks) + self._set_property("range", arg, range) + self._set_property("rangemode", arg, rangemode) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showaxeslabels", arg, showaxeslabels) + self._set_property("showbackground", arg, showbackground) + self._set_property("showexponent", arg, showexponent) + self._set_property("showgrid", arg, showgrid) + self._set_property("showline", arg, showline) + self._set_property("showspikes", arg, showspikes) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("spikecolor", arg, spikecolor) + self._set_property("spikesides", arg, spikesides) + self._set_property("spikethickness", arg, spikethickness) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("type", arg, type) + self._set_property("visible", arg, visible) + self._set_property("zeroline", arg, zeroline) + self._set_property("zerolinecolor", arg, zerolinecolor) + self._set_property("zerolinewidth", arg, zerolinewidth) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/scene/annotation/__init__.py b/plotly/graph_objs/layout/scene/annotation/__init__.py index 89cac20f5a..a9cb1938bc 100644 --- a/plotly/graph_objs/layout/scene/annotation/__init__.py +++ b/plotly/graph_objs/layout/scene/annotation/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [".hoverlabel"], ["._font.Font", "._hoverlabel.Hoverlabel"] +) diff --git a/plotly/graph_objs/layout/scene/annotation/_font.py b/plotly/graph_objs/layout/scene/annotation/_font.py index b7708d1c41..5b7bf8d7eb 100644 --- a/plotly/graph_objs/layout/scene/annotation/_font.py +++ b/plotly/graph_objs/layout/scene/annotation/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Font(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.scene.annotation" _path_str = "layout.scene.annotation.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/scene/annotation/_hoverlabel.py b/plotly/graph_objs/layout/scene/annotation/_hoverlabel.py index 38a130745a..f5a09cbb3c 100644 --- a/plotly/graph_objs/layout/scene/annotation/_hoverlabel.py +++ b/plotly/graph_objs/layout/scene/annotation/_hoverlabel.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Hoverlabel(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.scene.annotation" _path_str = "layout.scene.annotation.hoverlabel" _valid_props = {"bgcolor", "bordercolor", "font"} - # bgcolor - # ------- @property def bgcolor(self): """ @@ -24,42 +23,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -71,8 +35,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -85,42 +47,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -132,8 +59,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # font - # ---- @property def font(self): """ @@ -146,52 +71,6 @@ 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 @@ -202,8 +81,6 @@ def font(self): def font(self, val): self["font"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -248,14 +125,11 @@ def __init__(self, arg=None, bgcolor=None, bordercolor=None, font=None, **kwargs ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -270,30 +144,11 @@ def __init__(self, arg=None, bgcolor=None, bordercolor=None, font=None, **kwargs 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("font", arg, font) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/scene/annotation/hoverlabel/__init__.py b/plotly/graph_objs/layout/scene/annotation/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/layout/scene/annotation/hoverlabel/__init__.py +++ b/plotly/graph_objs/layout/scene/annotation/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/layout/scene/annotation/hoverlabel/_font.py b/plotly/graph_objs/layout/scene/annotation/hoverlabel/_font.py index e90d539336..2a31b18fbe 100644 --- a/plotly/graph_objs/layout/scene/annotation/hoverlabel/_font.py +++ b/plotly/graph_objs/layout/scene/annotation/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Font(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.scene.annotation.hoverlabel" _path_str = "layout.scene.annotation.hoverlabel.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -339,18 +271,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -378,14 +303,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -400,54 +322,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/scene/camera/__init__.py b/plotly/graph_objs/layout/scene/camera/__init__.py index 9478fa29e0..ddffeb54e4 100644 --- a/plotly/graph_objs/layout/scene/camera/__init__.py +++ b/plotly/graph_objs/layout/scene/camera/__init__.py @@ -1,16 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._center import Center - from ._eye import Eye - from ._projection import Projection - 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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._center.Center", "._eye.Eye", "._projection.Projection", "._up.Up"] +) diff --git a/plotly/graph_objs/layout/scene/camera/_center.py b/plotly/graph_objs/layout/scene/camera/_center.py index 1d2e3dfb04..9f5ca655eb 100644 --- a/plotly/graph_objs/layout/scene/camera/_center.py +++ b/plotly/graph_objs/layout/scene/camera/_center.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Center(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.scene.camera" _path_str = "layout.scene.camera.center" _valid_props = {"x", "y", "z"} - # x - # - @property def x(self): """ @@ -28,8 +27,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -46,8 +43,6 @@ def y(self): def y(self, val): self["y"] = val - # z - # - @property def z(self): """ @@ -64,8 +59,6 @@ def z(self): def z(self, val): self["z"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -102,14 +95,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Center """ - super(Center, self).__init__("center") - + super().__init__("center") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -124,30 +114,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("x", arg, x) + self._set_property("y", arg, y) + self._set_property("z", arg, z) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/scene/camera/_eye.py b/plotly/graph_objs/layout/scene/camera/_eye.py index 3c43284f61..08c108629b 100644 --- a/plotly/graph_objs/layout/scene/camera/_eye.py +++ b/plotly/graph_objs/layout/scene/camera/_eye.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Eye(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.scene.camera" _path_str = "layout.scene.camera.eye" _valid_props = {"x", "y", "z"} - # x - # - @property def x(self): """ @@ -28,8 +27,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -46,8 +43,6 @@ def y(self): def y(self, val): self["y"] = val - # z - # - @property def z(self): """ @@ -64,8 +59,6 @@ def z(self): def z(self, val): self["z"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -102,14 +95,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Eye """ - super(Eye, self).__init__("eye") - + super().__init__("eye") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -124,30 +114,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("x", arg, x) + self._set_property("y", arg, y) + self._set_property("z", arg, z) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/scene/camera/_projection.py b/plotly/graph_objs/layout/scene/camera/_projection.py index b0b87ba794..db376ad9f8 100644 --- a/plotly/graph_objs/layout/scene/camera/_projection.py +++ b/plotly/graph_objs/layout/scene/camera/_projection.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Projection(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.scene.camera" _path_str = "layout.scene.camera.projection" _valid_props = {"type"} - # type - # ---- @property def type(self): """ @@ -32,8 +31,6 @@ def type(self): def type(self, val): self["type"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -62,14 +59,11 @@ def __init__(self, arg=None, type=None, **kwargs): ------- Projection """ - super(Projection, self).__init__("projection") - + super().__init__("projection") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -84,22 +78,9 @@ def __init__(self, arg=None, type=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("type", arg, type) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/scene/camera/_up.py b/plotly/graph_objs/layout/scene/camera/_up.py index 503519c0e2..0ea56815c7 100644 --- a/plotly/graph_objs/layout/scene/camera/_up.py +++ b/plotly/graph_objs/layout/scene/camera/_up.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Up(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.scene.camera" _path_str = "layout.scene.camera.up" _valid_props = {"x", "y", "z"} - # x - # - @property def x(self): """ @@ -28,8 +27,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -46,8 +43,6 @@ def y(self): def y(self, val): self["y"] = val - # z - # - @property def z(self): """ @@ -64,8 +59,6 @@ def z(self): def z(self, val): self["z"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -103,14 +96,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Up """ - super(Up, self).__init__("up") - + super().__init__("up") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -125,30 +115,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("x", arg, x) + self._set_property("y", arg, y) + self._set_property("z", arg, z) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/scene/xaxis/__init__.py b/plotly/graph_objs/layout/scene/xaxis/__init__.py index 7004d6695b..72774d8afa 100644 --- a/plotly/graph_objs/layout/scene/xaxis/__init__.py +++ b/plotly/graph_objs/layout/scene/xaxis/__init__.py @@ -1,22 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._autorangeoptions import Autorangeoptions - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + [ + "._autorangeoptions.Autorangeoptions", + "._tickfont.Tickfont", + "._tickformatstop.Tickformatstop", + "._title.Title", + ], +) diff --git a/plotly/graph_objs/layout/scene/xaxis/_autorangeoptions.py b/plotly/graph_objs/layout/scene/xaxis/_autorangeoptions.py index 5513d91908..e97114801e 100644 --- a/plotly/graph_objs/layout/scene/xaxis/_autorangeoptions.py +++ b/plotly/graph_objs/layout/scene/xaxis/_autorangeoptions.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Autorangeoptions(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.scene.xaxis" _path_str = "layout.scene.xaxis.autorangeoptions" _valid_props = { @@ -17,8 +18,6 @@ class Autorangeoptions(_BaseLayoutHierarchyType): "minallowed", } - # clipmax - # ------- @property def clipmax(self): """ @@ -37,8 +36,6 @@ def clipmax(self): def clipmax(self, val): self["clipmax"] = val - # clipmin - # ------- @property def clipmin(self): """ @@ -57,8 +54,6 @@ def clipmin(self): def clipmin(self, val): self["clipmin"] = val - # include - # ------- @property def include(self): """ @@ -76,8 +71,6 @@ def include(self): def include(self, val): self["include"] = val - # includesrc - # ---------- @property def includesrc(self): """ @@ -96,8 +89,6 @@ def includesrc(self): def includesrc(self, val): self["includesrc"] = val - # maxallowed - # ---------- @property def maxallowed(self): """ @@ -115,8 +106,6 @@ def maxallowed(self): def maxallowed(self, val): self["maxallowed"] = val - # minallowed - # ---------- @property def minallowed(self): """ @@ -134,8 +123,6 @@ def minallowed(self): def minallowed(self, val): self["minallowed"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -200,14 +187,11 @@ def __init__( ------- Autorangeoptions """ - super(Autorangeoptions, self).__init__("autorangeoptions") - + super().__init__("autorangeoptions") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -222,42 +206,14 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("clipmax", arg, clipmax) + self._set_property("clipmin", arg, clipmin) + self._set_property("include", arg, include) + self._set_property("includesrc", arg, includesrc) + self._set_property("maxallowed", arg, maxallowed) + self._set_property("minallowed", arg, minallowed) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/scene/xaxis/_tickfont.py b/plotly/graph_objs/layout/scene/xaxis/_tickfont.py index 3dd73b17ab..9e18542e74 100644 --- a/plotly/graph_objs/layout/scene/xaxis/_tickfont.py +++ b/plotly/graph_objs/layout/scene/xaxis/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Tickfont(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.scene.xaxis" _path_str = "layout.scene.xaxis.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/scene/xaxis/_tickformatstop.py b/plotly/graph_objs/layout/scene/xaxis/_tickformatstop.py index d7d3fc22d7..b618d31c32 100644 --- a/plotly/graph_objs/layout/scene/xaxis/_tickformatstop.py +++ b/plotly/graph_objs/layout/scene/xaxis/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Tickformatstop(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.scene.xaxis" _path_str = "layout.scene.xaxis.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/scene/xaxis/_title.py b/plotly/graph_objs/layout/scene/xaxis/_title.py index b2f98fbb60..a3009506cb 100644 --- a/plotly/graph_objs/layout/scene/xaxis/_title.py +++ b/plotly/graph_objs/layout/scene/xaxis/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Title(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.scene.xaxis" _path_str = "layout.scene.xaxis.title" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/scene/xaxis/title/__init__.py b/plotly/graph_objs/layout/scene/xaxis/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/layout/scene/xaxis/title/__init__.py +++ b/plotly/graph_objs/layout/scene/xaxis/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/layout/scene/xaxis/title/_font.py b/plotly/graph_objs/layout/scene/xaxis/title/_font.py index 4beada0bab..555198e133 100644 --- a/plotly/graph_objs/layout/scene/xaxis/title/_font.py +++ b/plotly/graph_objs/layout/scene/xaxis/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Font(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.scene.xaxis.title" _path_str = "layout.scene.xaxis.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/scene/yaxis/__init__.py b/plotly/graph_objs/layout/scene/yaxis/__init__.py index 7004d6695b..72774d8afa 100644 --- a/plotly/graph_objs/layout/scene/yaxis/__init__.py +++ b/plotly/graph_objs/layout/scene/yaxis/__init__.py @@ -1,22 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._autorangeoptions import Autorangeoptions - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + [ + "._autorangeoptions.Autorangeoptions", + "._tickfont.Tickfont", + "._tickformatstop.Tickformatstop", + "._title.Title", + ], +) diff --git a/plotly/graph_objs/layout/scene/yaxis/_autorangeoptions.py b/plotly/graph_objs/layout/scene/yaxis/_autorangeoptions.py index 51f99b2c27..7c0bbf152c 100644 --- a/plotly/graph_objs/layout/scene/yaxis/_autorangeoptions.py +++ b/plotly/graph_objs/layout/scene/yaxis/_autorangeoptions.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Autorangeoptions(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.scene.yaxis" _path_str = "layout.scene.yaxis.autorangeoptions" _valid_props = { @@ -17,8 +18,6 @@ class Autorangeoptions(_BaseLayoutHierarchyType): "minallowed", } - # clipmax - # ------- @property def clipmax(self): """ @@ -37,8 +36,6 @@ def clipmax(self): def clipmax(self, val): self["clipmax"] = val - # clipmin - # ------- @property def clipmin(self): """ @@ -57,8 +54,6 @@ def clipmin(self): def clipmin(self, val): self["clipmin"] = val - # include - # ------- @property def include(self): """ @@ -76,8 +71,6 @@ def include(self): def include(self, val): self["include"] = val - # includesrc - # ---------- @property def includesrc(self): """ @@ -96,8 +89,6 @@ def includesrc(self): def includesrc(self, val): self["includesrc"] = val - # maxallowed - # ---------- @property def maxallowed(self): """ @@ -115,8 +106,6 @@ def maxallowed(self): def maxallowed(self, val): self["maxallowed"] = val - # minallowed - # ---------- @property def minallowed(self): """ @@ -134,8 +123,6 @@ def minallowed(self): def minallowed(self, val): self["minallowed"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -200,14 +187,11 @@ def __init__( ------- Autorangeoptions """ - super(Autorangeoptions, self).__init__("autorangeoptions") - + super().__init__("autorangeoptions") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -222,42 +206,14 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("clipmax", arg, clipmax) + self._set_property("clipmin", arg, clipmin) + self._set_property("include", arg, include) + self._set_property("includesrc", arg, includesrc) + self._set_property("maxallowed", arg, maxallowed) + self._set_property("minallowed", arg, minallowed) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/scene/yaxis/_tickfont.py b/plotly/graph_objs/layout/scene/yaxis/_tickfont.py index 268c0432ab..321f0dd0f4 100644 --- a/plotly/graph_objs/layout/scene/yaxis/_tickfont.py +++ b/plotly/graph_objs/layout/scene/yaxis/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Tickfont(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.scene.yaxis" _path_str = "layout.scene.yaxis.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/scene/yaxis/_tickformatstop.py b/plotly/graph_objs/layout/scene/yaxis/_tickformatstop.py index 6f4c72426e..9fd0c1592f 100644 --- a/plotly/graph_objs/layout/scene/yaxis/_tickformatstop.py +++ b/plotly/graph_objs/layout/scene/yaxis/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Tickformatstop(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.scene.yaxis" _path_str = "layout.scene.yaxis.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/scene/yaxis/_title.py b/plotly/graph_objs/layout/scene/yaxis/_title.py index c0ddf835d5..e6fe15e2ff 100644 --- a/plotly/graph_objs/layout/scene/yaxis/_title.py +++ b/plotly/graph_objs/layout/scene/yaxis/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Title(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.scene.yaxis" _path_str = "layout.scene.yaxis.title" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/scene/yaxis/title/__init__.py b/plotly/graph_objs/layout/scene/yaxis/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/layout/scene/yaxis/title/__init__.py +++ b/plotly/graph_objs/layout/scene/yaxis/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/layout/scene/yaxis/title/_font.py b/plotly/graph_objs/layout/scene/yaxis/title/_font.py index 4cda20e0a5..c2087f2bb3 100644 --- a/plotly/graph_objs/layout/scene/yaxis/title/_font.py +++ b/plotly/graph_objs/layout/scene/yaxis/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Font(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.scene.yaxis.title" _path_str = "layout.scene.yaxis.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/scene/zaxis/__init__.py b/plotly/graph_objs/layout/scene/zaxis/__init__.py index 7004d6695b..72774d8afa 100644 --- a/plotly/graph_objs/layout/scene/zaxis/__init__.py +++ b/plotly/graph_objs/layout/scene/zaxis/__init__.py @@ -1,22 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._autorangeoptions import Autorangeoptions - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + [ + "._autorangeoptions.Autorangeoptions", + "._tickfont.Tickfont", + "._tickformatstop.Tickformatstop", + "._title.Title", + ], +) diff --git a/plotly/graph_objs/layout/scene/zaxis/_autorangeoptions.py b/plotly/graph_objs/layout/scene/zaxis/_autorangeoptions.py index 64a49fbb7e..2ae17dd85b 100644 --- a/plotly/graph_objs/layout/scene/zaxis/_autorangeoptions.py +++ b/plotly/graph_objs/layout/scene/zaxis/_autorangeoptions.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Autorangeoptions(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.scene.zaxis" _path_str = "layout.scene.zaxis.autorangeoptions" _valid_props = { @@ -17,8 +18,6 @@ class Autorangeoptions(_BaseLayoutHierarchyType): "minallowed", } - # clipmax - # ------- @property def clipmax(self): """ @@ -37,8 +36,6 @@ def clipmax(self): def clipmax(self, val): self["clipmax"] = val - # clipmin - # ------- @property def clipmin(self): """ @@ -57,8 +54,6 @@ def clipmin(self): def clipmin(self, val): self["clipmin"] = val - # include - # ------- @property def include(self): """ @@ -76,8 +71,6 @@ def include(self): def include(self, val): self["include"] = val - # includesrc - # ---------- @property def includesrc(self): """ @@ -96,8 +89,6 @@ def includesrc(self): def includesrc(self, val): self["includesrc"] = val - # maxallowed - # ---------- @property def maxallowed(self): """ @@ -115,8 +106,6 @@ def maxallowed(self): def maxallowed(self, val): self["maxallowed"] = val - # minallowed - # ---------- @property def minallowed(self): """ @@ -134,8 +123,6 @@ def minallowed(self): def minallowed(self, val): self["minallowed"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -200,14 +187,11 @@ def __init__( ------- Autorangeoptions """ - super(Autorangeoptions, self).__init__("autorangeoptions") - + super().__init__("autorangeoptions") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -222,42 +206,14 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("clipmax", arg, clipmax) + self._set_property("clipmin", arg, clipmin) + self._set_property("include", arg, include) + self._set_property("includesrc", arg, includesrc) + self._set_property("maxallowed", arg, maxallowed) + self._set_property("minallowed", arg, minallowed) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/scene/zaxis/_tickfont.py b/plotly/graph_objs/layout/scene/zaxis/_tickfont.py index 532537a387..bac266b477 100644 --- a/plotly/graph_objs/layout/scene/zaxis/_tickfont.py +++ b/plotly/graph_objs/layout/scene/zaxis/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Tickfont(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.scene.zaxis" _path_str = "layout.scene.zaxis.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/scene/zaxis/_tickformatstop.py b/plotly/graph_objs/layout/scene/zaxis/_tickformatstop.py index c5ebcd3184..15a3584743 100644 --- a/plotly/graph_objs/layout/scene/zaxis/_tickformatstop.py +++ b/plotly/graph_objs/layout/scene/zaxis/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Tickformatstop(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.scene.zaxis" _path_str = "layout.scene.zaxis.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/scene/zaxis/_title.py b/plotly/graph_objs/layout/scene/zaxis/_title.py index 4e0739754a..bd535a9b9e 100644 --- a/plotly/graph_objs/layout/scene/zaxis/_title.py +++ b/plotly/graph_objs/layout/scene/zaxis/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Title(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.scene.zaxis" _path_str = "layout.scene.zaxis.title" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/scene/zaxis/title/__init__.py b/plotly/graph_objs/layout/scene/zaxis/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/layout/scene/zaxis/title/__init__.py +++ b/plotly/graph_objs/layout/scene/zaxis/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/layout/scene/zaxis/title/_font.py b/plotly/graph_objs/layout/scene/zaxis/title/_font.py index cb23aedeed..c4201cec00 100644 --- a/plotly/graph_objs/layout/scene/zaxis/title/_font.py +++ b/plotly/graph_objs/layout/scene/zaxis/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Font(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.scene.zaxis.title" _path_str = "layout.scene.zaxis.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/selection/__init__.py b/plotly/graph_objs/layout/selection/__init__.py index 8722c15a2b..579ff002ce 100644 --- a/plotly/graph_objs/layout/selection/__init__.py +++ b/plotly/graph_objs/layout/selection/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/layout/selection/_line.py b/plotly/graph_objs/layout/selection/_line.py index 7a8ea63177..868f26c369 100644 --- a/plotly/graph_objs/layout/selection/_line.py +++ b/plotly/graph_objs/layout/selection/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Line(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.selection" _path_str = "layout.selection.line" _valid_props = {"color", "dash", "width"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # dash - # ---- @property def dash(self): """ @@ -95,8 +57,6 @@ def dash(self): def dash(self, val): self["dash"] = val - # width - # ----- @property def width(self): """ @@ -115,8 +75,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -155,14 +113,11 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -177,30 +132,11 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("dash", arg, dash) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/shape/__init__.py b/plotly/graph_objs/layout/shape/__init__.py index dd5947b049..ac9079347d 100644 --- a/plotly/graph_objs/layout/shape/__init__.py +++ b/plotly/graph_objs/layout/shape/__init__.py @@ -1,17 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._label import Label - from ._legendgrouptitle import Legendgrouptitle - from ._line import Line - from . import label - 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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".label", ".legendgrouptitle"], + ["._label.Label", "._legendgrouptitle.Legendgrouptitle", "._line.Line"], +) diff --git a/plotly/graph_objs/layout/shape/_label.py b/plotly/graph_objs/layout/shape/_label.py index 580b0eb627..a1da664094 100644 --- a/plotly/graph_objs/layout/shape/_label.py +++ b/plotly/graph_objs/layout/shape/_label.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Label(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.shape" _path_str = "layout.shape.label" _valid_props = { @@ -19,8 +20,6 @@ class Label(_BaseLayoutHierarchyType): "yanchor", } - # font - # ---- @property def font(self): """ @@ -32,52 +31,6 @@ 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 @@ -88,8 +41,6 @@ def font(self): def font(self, val): self["font"] = val - # padding - # ------- @property def padding(self): """ @@ -108,8 +59,6 @@ def padding(self): def padding(self, val): self["padding"] = val - # text - # ---- @property def text(self): """ @@ -130,8 +79,6 @@ def text(self): def text(self, val): self["text"] = val - # textangle - # --------- @property def textangle(self): """ @@ -154,8 +101,6 @@ def textangle(self): def textangle(self, val): self["textangle"] = val - # textposition - # ------------ @property def textposition(self): """ @@ -183,8 +128,6 @@ def textposition(self): def textposition(self, val): self["textposition"] = val - # texttemplate - # ------------ @property def texttemplate(self): """ @@ -223,8 +166,6 @@ def texttemplate(self): def texttemplate(self, val): self["texttemplate"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -249,8 +190,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -274,8 +213,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -428,14 +365,11 @@ def __init__( ------- Label """ - super(Label, self).__init__("label") - + super().__init__("label") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -450,50 +384,16 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("padding", arg, padding) + self._set_property("text", arg, text) + self._set_property("textangle", arg, textangle) + self._set_property("textposition", arg, textposition) + self._set_property("texttemplate", arg, texttemplate) + self._set_property("xanchor", arg, xanchor) + self._set_property("yanchor", arg, yanchor) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/shape/_legendgrouptitle.py b/plotly/graph_objs/layout/shape/_legendgrouptitle.py index d9be087437..792e64b48b 100644 --- a/plotly/graph_objs/layout/shape/_legendgrouptitle.py +++ b/plotly/graph_objs/layout/shape/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Legendgrouptitle(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.shape" _path_str = "layout.shape.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/shape/_line.py b/plotly/graph_objs/layout/shape/_line.py index cdddbeee78..a49f8c233f 100644 --- a/plotly/graph_objs/layout/shape/_line.py +++ b/plotly/graph_objs/layout/shape/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Line(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.shape" _path_str = "layout.shape.line" _valid_props = {"color", "dash", "width"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # dash - # ---- @property def dash(self): """ @@ -95,8 +57,6 @@ def dash(self): def dash(self, val): self["dash"] = val - # width - # ----- @property def width(self): """ @@ -115,8 +75,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -155,14 +113,11 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -177,30 +132,11 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("dash", arg, dash) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/shape/label/__init__.py b/plotly/graph_objs/layout/shape/label/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/layout/shape/label/__init__.py +++ b/plotly/graph_objs/layout/shape/label/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/layout/shape/label/_font.py b/plotly/graph_objs/layout/shape/label/_font.py index 19d7cd5103..18bec92805 100644 --- a/plotly/graph_objs/layout/shape/label/_font.py +++ b/plotly/graph_objs/layout/shape/label/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Font(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.shape.label" _path_str = "layout.shape.label.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/shape/legendgrouptitle/__init__.py b/plotly/graph_objs/layout/shape/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/layout/shape/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/layout/shape/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/layout/shape/legendgrouptitle/_font.py b/plotly/graph_objs/layout/shape/legendgrouptitle/_font.py index 0e35784692..f3776ca288 100644 --- a/plotly/graph_objs/layout/shape/legendgrouptitle/_font.py +++ b/plotly/graph_objs/layout/shape/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Font(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.shape.legendgrouptitle" _path_str = "layout.shape.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/slider/__init__.py b/plotly/graph_objs/layout/slider/__init__.py index 7d9334c150..8def8c550e 100644 --- a/plotly/graph_objs/layout/slider/__init__.py +++ b/plotly/graph_objs/layout/slider/__init__.py @@ -1,24 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._currentvalue import Currentvalue - from ._font import Font - from ._pad import Pad - from ._step import Step - from ._transition import Transition - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".currentvalue"], + [ + "._currentvalue.Currentvalue", + "._font.Font", + "._pad.Pad", + "._step.Step", + "._transition.Transition", + ], +) diff --git a/plotly/graph_objs/layout/slider/_currentvalue.py b/plotly/graph_objs/layout/slider/_currentvalue.py index 61cdc95aba..e9b47693de 100644 --- a/plotly/graph_objs/layout/slider/_currentvalue.py +++ b/plotly/graph_objs/layout/slider/_currentvalue.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Currentvalue(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.slider" _path_str = "layout.slider.currentvalue" _valid_props = {"font", "offset", "prefix", "suffix", "visible", "xanchor"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # offset - # ------ @property def offset(self): """ @@ -100,8 +51,6 @@ def offset(self): def offset(self, val): self["offset"] = val - # prefix - # ------ @property def prefix(self): """ @@ -122,8 +71,6 @@ def prefix(self): def prefix(self, val): self["prefix"] = val - # suffix - # ------ @property def suffix(self): """ @@ -144,8 +91,6 @@ def suffix(self): def suffix(self, val): self["suffix"] = val - # visible - # ------- @property def visible(self): """ @@ -164,8 +109,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -186,8 +129,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -250,14 +191,11 @@ def __init__( ------- Currentvalue """ - super(Currentvalue, self).__init__("currentvalue") - + super().__init__("currentvalue") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -272,42 +210,14 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("offset", arg, offset) + self._set_property("prefix", arg, prefix) + self._set_property("suffix", arg, suffix) + self._set_property("visible", arg, visible) + self._set_property("xanchor", arg, xanchor) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/slider/_font.py b/plotly/graph_objs/layout/slider/_font.py index f727d35bf6..d45feb8c85 100644 --- a/plotly/graph_objs/layout/slider/_font.py +++ b/plotly/graph_objs/layout/slider/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Font(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.slider" _path_str = "layout.slider.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/slider/_pad.py b/plotly/graph_objs/layout/slider/_pad.py index 89b85a83d8..a614ee41dd 100644 --- a/plotly/graph_objs/layout/slider/_pad.py +++ b/plotly/graph_objs/layout/slider/_pad.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Pad(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.slider" _path_str = "layout.slider.pad" _valid_props = {"b", "l", "r", "t"} - # b - # - @property def b(self): """ @@ -31,8 +30,6 @@ def b(self): def b(self, val): self["b"] = val - # l - # - @property def l(self): """ @@ -52,8 +49,6 @@ def l(self): def l(self, val): self["l"] = val - # r - # - @property def r(self): """ @@ -73,8 +68,6 @@ def r(self): def r(self, val): self["r"] = val - # t - # - @property def t(self): """ @@ -93,8 +86,6 @@ def t(self): def t(self, val): self["t"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -141,14 +132,11 @@ def __init__(self, arg=None, b=None, l=None, r=None, t=None, **kwargs): ------- Pad """ - super(Pad, self).__init__("pad") - + super().__init__("pad") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -163,34 +151,12 @@ def __init__(self, arg=None, b=None, l=None, r=None, t=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("b", arg, b) + self._set_property("l", arg, l) + self._set_property("r", arg, r) + self._set_property("t", arg, t) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/slider/_step.py b/plotly/graph_objs/layout/slider/_step.py index 67a6efa0c0..714aee8458 100644 --- a/plotly/graph_objs/layout/slider/_step.py +++ b/plotly/graph_objs/layout/slider/_step.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Step(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.slider" _path_str = "layout.slider.step" _valid_props = { @@ -19,8 +20,6 @@ class Step(_BaseLayoutHierarchyType): "visible", } - # args - # ---- @property def args(self): """ @@ -44,8 +43,6 @@ def args(self): def args(self, val): self["args"] = val - # execute - # ------- @property def execute(self): """ @@ -70,8 +67,6 @@ def execute(self): def execute(self, val): self["execute"] = val - # label - # ----- @property def label(self): """ @@ -91,8 +86,6 @@ def label(self): def label(self, val): self["label"] = val - # method - # ------ @property def method(self): """ @@ -117,8 +110,6 @@ def method(self): def method(self, val): self["method"] = val - # name - # ---- @property def name(self): """ @@ -144,8 +135,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -172,8 +161,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -194,8 +181,6 @@ def value(self): def value(self, val): self["value"] = val - # visible - # ------- @property def visible(self): """ @@ -214,8 +199,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -340,14 +323,11 @@ def __init__( ------- Step """ - super(Step, self).__init__("steps") - + super().__init__("steps") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -362,50 +342,16 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("args", arg, args) + self._set_property("execute", arg, execute) + self._set_property("label", arg, label) + self._set_property("method", arg, method) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) + self._set_property("visible", arg, visible) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/slider/_transition.py b/plotly/graph_objs/layout/slider/_transition.py index 9565cfb6bf..1291ac5d5a 100644 --- a/plotly/graph_objs/layout/slider/_transition.py +++ b/plotly/graph_objs/layout/slider/_transition.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Transition(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.slider" _path_str = "layout.slider.transition" _valid_props = {"duration", "easing"} - # duration - # -------- @property def duration(self): """ @@ -30,8 +29,6 @@ def duration(self): def duration(self, val): self["duration"] = val - # easing - # ------ @property def easing(self): """ @@ -59,8 +56,6 @@ def easing(self): def easing(self, val): self["easing"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -89,14 +84,11 @@ def __init__(self, arg=None, duration=None, easing=None, **kwargs): ------- Transition """ - super(Transition, self).__init__("transition") - + super().__init__("transition") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -111,26 +103,10 @@ def __init__(self, arg=None, duration=None, easing=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("duration", arg, duration) + self._set_property("easing", arg, easing) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/slider/currentvalue/__init__.py b/plotly/graph_objs/layout/slider/currentvalue/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/layout/slider/currentvalue/__init__.py +++ b/plotly/graph_objs/layout/slider/currentvalue/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/layout/slider/currentvalue/_font.py b/plotly/graph_objs/layout/slider/currentvalue/_font.py index 761196a2b3..8ab76a0c9f 100644 --- a/plotly/graph_objs/layout/slider/currentvalue/_font.py +++ b/plotly/graph_objs/layout/slider/currentvalue/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Font(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.slider.currentvalue" _path_str = "layout.slider.currentvalue.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/smith/__init__.py b/plotly/graph_objs/layout/smith/__init__.py index 0ebc73bd0a..183925b564 100644 --- a/plotly/graph_objs/layout/smith/__init__.py +++ b/plotly/graph_objs/layout/smith/__init__.py @@ -1,17 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._domain import Domain - from ._imaginaryaxis import Imaginaryaxis - from ._realaxis import Realaxis - from . import imaginaryaxis - 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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".imaginaryaxis", ".realaxis"], + ["._domain.Domain", "._imaginaryaxis.Imaginaryaxis", "._realaxis.Realaxis"], +) diff --git a/plotly/graph_objs/layout/smith/_domain.py b/plotly/graph_objs/layout/smith/_domain.py index 09870f3693..ddb5ba9d5a 100644 --- a/plotly/graph_objs/layout/smith/_domain.py +++ b/plotly/graph_objs/layout/smith/_domain.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Domain(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.smith" _path_str = "layout.smith.domain" _valid_props = {"column", "row", "x", "y"} - # column - # ------ @property def column(self): """ @@ -32,8 +31,6 @@ def column(self): def column(self, val): self["column"] = val - # row - # --- @property def row(self): """ @@ -54,8 +51,6 @@ def row(self): def row(self, val): self["row"] = val - # x - # - @property def x(self): """ @@ -80,8 +75,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -106,8 +99,6 @@ def y(self): def y(self, val): self["y"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -152,14 +143,11 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") - + super().__init__("domain") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -174,34 +162,12 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("column", arg, column) + self._set_property("row", arg, row) + self._set_property("x", arg, x) + self._set_property("y", arg, y) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/smith/_imaginaryaxis.py b/plotly/graph_objs/layout/smith/_imaginaryaxis.py index 7a666c1e53..175553fd24 100644 --- a/plotly/graph_objs/layout/smith/_imaginaryaxis.py +++ b/plotly/graph_objs/layout/smith/_imaginaryaxis.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Imaginaryaxis(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.smith" _path_str = "layout.smith.imaginaryaxis" _valid_props = { @@ -36,8 +37,6 @@ class Imaginaryaxis(_BaseLayoutHierarchyType): "visible", } - # color - # ----- @property def color(self): """ @@ -51,42 +50,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -98,8 +62,6 @@ def color(self): def color(self, val): self["color"] = val - # gridcolor - # --------- @property def gridcolor(self): """ @@ -110,42 +72,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -157,8 +84,6 @@ def gridcolor(self): def gridcolor(self, val): self["gridcolor"] = val - # griddash - # -------- @property def griddash(self): """ @@ -183,8 +108,6 @@ def griddash(self): def griddash(self, val): self["griddash"] = val - # gridwidth - # --------- @property def gridwidth(self): """ @@ -203,8 +126,6 @@ def gridwidth(self): def gridwidth(self, val): self["gridwidth"] = val - # hoverformat - # ----------- @property def hoverformat(self): """ @@ -233,8 +154,6 @@ def hoverformat(self): def hoverformat(self, val): self["hoverformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -260,8 +179,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # layer - # ----- @property def layer(self): """ @@ -286,8 +203,6 @@ def layer(self): def layer(self, val): self["layer"] = val - # linecolor - # --------- @property def linecolor(self): """ @@ -298,42 +213,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -345,8 +225,6 @@ def linecolor(self): def linecolor(self, val): self["linecolor"] = val - # linewidth - # --------- @property def linewidth(self): """ @@ -365,8 +243,6 @@ def linewidth(self): def linewidth(self, val): self["linewidth"] = val - # showgrid - # -------- @property def showgrid(self): """ @@ -386,8 +262,6 @@ def showgrid(self): def showgrid(self, val): self["showgrid"] = val - # showline - # -------- @property def showline(self): """ @@ -406,8 +280,6 @@ def showline(self): def showline(self, val): self["showline"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -426,8 +298,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -450,8 +320,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -471,8 +339,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -483,42 +349,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -530,8 +361,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -543,52 +372,6 @@ 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 @@ -599,8 +382,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -629,8 +410,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -649,8 +428,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -670,8 +447,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -693,8 +468,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -714,8 +487,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -735,8 +506,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -755,8 +524,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -775,8 +542,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # visible - # ------- @property def visible(self): """ @@ -797,8 +562,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1054,14 +817,11 @@ def __init__( ------- Imaginaryaxis """ - super(Imaginaryaxis, self).__init__("imaginaryaxis") - + super().__init__("imaginaryaxis") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1076,118 +836,33 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("gridcolor", arg, gridcolor) + self._set_property("griddash", arg, griddash) + self._set_property("gridwidth", arg, gridwidth) + self._set_property("hoverformat", arg, hoverformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("layer", arg, layer) + self._set_property("linecolor", arg, linecolor) + self._set_property("linewidth", arg, linewidth) + self._set_property("showgrid", arg, showgrid) + self._set_property("showline", arg, showline) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("visible", arg, visible) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/smith/_realaxis.py b/plotly/graph_objs/layout/smith/_realaxis.py index 3aa26e70a5..883ed21151 100644 --- a/plotly/graph_objs/layout/smith/_realaxis.py +++ b/plotly/graph_objs/layout/smith/_realaxis.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Realaxis(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.smith" _path_str = "layout.smith.realaxis" _valid_props = { @@ -38,8 +39,6 @@ class Realaxis(_BaseLayoutHierarchyType): "visible", } - # color - # ----- @property def color(self): """ @@ -53,42 +52,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -100,8 +64,6 @@ def color(self): def color(self, val): self["color"] = val - # gridcolor - # --------- @property def gridcolor(self): """ @@ -112,42 +74,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -159,8 +86,6 @@ def gridcolor(self): def gridcolor(self, val): self["gridcolor"] = val - # griddash - # -------- @property def griddash(self): """ @@ -185,8 +110,6 @@ def griddash(self): def griddash(self, val): self["griddash"] = val - # gridwidth - # --------- @property def gridwidth(self): """ @@ -205,8 +128,6 @@ def gridwidth(self): def gridwidth(self, val): self["gridwidth"] = val - # hoverformat - # ----------- @property def hoverformat(self): """ @@ -235,8 +156,6 @@ def hoverformat(self): def hoverformat(self, val): self["hoverformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -262,8 +181,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # layer - # ----- @property def layer(self): """ @@ -288,8 +205,6 @@ def layer(self): def layer(self, val): self["layer"] = val - # linecolor - # --------- @property def linecolor(self): """ @@ -300,42 +215,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -347,8 +227,6 @@ def linecolor(self): def linecolor(self, val): self["linecolor"] = val - # linewidth - # --------- @property def linewidth(self): """ @@ -367,8 +245,6 @@ def linewidth(self): def linewidth(self, val): self["linewidth"] = val - # showgrid - # -------- @property def showgrid(self): """ @@ -388,8 +264,6 @@ def showgrid(self): def showgrid(self, val): self["showgrid"] = val - # showline - # -------- @property def showline(self): """ @@ -408,8 +282,6 @@ def showline(self): def showline(self, val): self["showline"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -428,8 +300,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -452,8 +322,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -473,8 +341,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # side - # ---- @property def side(self): """ @@ -495,8 +361,6 @@ def side(self): def side(self, val): self["side"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -519,8 +383,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -531,42 +393,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -578,8 +405,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -591,52 +416,6 @@ 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 @@ -647,8 +426,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -677,8 +454,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -697,8 +472,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -718,8 +491,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -741,8 +512,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -762,8 +531,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -782,8 +549,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -802,8 +567,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -822,8 +585,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # visible - # ------- @property def visible(self): """ @@ -844,8 +605,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1113,14 +872,11 @@ def __init__( ------- Realaxis """ - super(Realaxis, self).__init__("realaxis") - + super().__init__("realaxis") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1135,126 +891,35 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("gridcolor", arg, gridcolor) + self._set_property("griddash", arg, griddash) + self._set_property("gridwidth", arg, gridwidth) + self._set_property("hoverformat", arg, hoverformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("layer", arg, layer) + self._set_property("linecolor", arg, linecolor) + self._set_property("linewidth", arg, linewidth) + self._set_property("showgrid", arg, showgrid) + self._set_property("showline", arg, showline) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("side", arg, side) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("visible", arg, visible) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/smith/imaginaryaxis/__init__.py b/plotly/graph_objs/layout/smith/imaginaryaxis/__init__.py index 0224c78e2f..95d4572a8d 100644 --- a/plotly/graph_objs/layout/smith/imaginaryaxis/__init__.py +++ b/plotly/graph_objs/layout/smith/imaginaryaxis/__init__.py @@ -1,11 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import(__name__, [], ["._tickfont.Tickfont"]) diff --git a/plotly/graph_objs/layout/smith/imaginaryaxis/_tickfont.py b/plotly/graph_objs/layout/smith/imaginaryaxis/_tickfont.py index 95278b10cf..756bce8eea 100644 --- a/plotly/graph_objs/layout/smith/imaginaryaxis/_tickfont.py +++ b/plotly/graph_objs/layout/smith/imaginaryaxis/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Tickfont(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.smith.imaginaryaxis" _path_str = "layout.smith.imaginaryaxis.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/smith/realaxis/__init__.py b/plotly/graph_objs/layout/smith/realaxis/__init__.py index 0224c78e2f..95d4572a8d 100644 --- a/plotly/graph_objs/layout/smith/realaxis/__init__.py +++ b/plotly/graph_objs/layout/smith/realaxis/__init__.py @@ -1,11 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import(__name__, [], ["._tickfont.Tickfont"]) diff --git a/plotly/graph_objs/layout/smith/realaxis/_tickfont.py b/plotly/graph_objs/layout/smith/realaxis/_tickfont.py index c3e38dfbcb..3ad1c81ec8 100644 --- a/plotly/graph_objs/layout/smith/realaxis/_tickfont.py +++ b/plotly/graph_objs/layout/smith/realaxis/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Tickfont(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.smith.realaxis" _path_str = "layout.smith.realaxis.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/template/__init__.py b/plotly/graph_objs/layout/template/__init__.py index 6b4972a461..cee6e64720 100644 --- a/plotly/graph_objs/layout/template/__init__.py +++ b/plotly/graph_objs/layout/template/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [".data"], ["._data.Data", "._layout.Layout"] +) diff --git a/plotly/graph_objs/layout/template/_data.py b/plotly/graph_objs/layout/template/_data.py index a27b067975..024a996eef 100644 --- a/plotly/graph_objs/layout/template/_data.py +++ b/plotly/graph_objs/layout/template/_data.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Data(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.template" _path_str = "layout.template.data" _valid_props = { @@ -60,8 +61,6 @@ class Data(_BaseLayoutHierarchyType): "waterfall", } - # barpolar - # -------- @property def barpolar(self): """ @@ -71,8 +70,6 @@ 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] @@ -83,8 +80,6 @@ def barpolar(self): def barpolar(self, val): self["barpolar"] = val - # bar - # --- @property def bar(self): """ @@ -94,8 +89,6 @@ 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] @@ -106,8 +99,6 @@ def bar(self): def bar(self, val): self["bar"] = val - # box - # --- @property def box(self): """ @@ -117,8 +108,6 @@ 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] @@ -129,8 +118,6 @@ def box(self): def box(self, val): self["box"] = val - # candlestick - # ----------- @property def candlestick(self): """ @@ -140,8 +127,6 @@ 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] @@ -152,8 +137,6 @@ def candlestick(self): def candlestick(self, val): self["candlestick"] = val - # carpet - # ------ @property def carpet(self): """ @@ -163,8 +146,6 @@ 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] @@ -175,8 +156,6 @@ def carpet(self): def carpet(self, val): self["carpet"] = val - # choroplethmapbox - # ---------------- @property def choroplethmapbox(self): """ @@ -186,8 +165,6 @@ 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] @@ -198,8 +175,6 @@ def choroplethmapbox(self): def choroplethmapbox(self, val): self["choroplethmapbox"] = val - # choroplethmap - # ------------- @property def choroplethmap(self): """ @@ -209,8 +184,6 @@ 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] @@ -221,8 +194,6 @@ def choroplethmap(self): def choroplethmap(self, val): self["choroplethmap"] = val - # choropleth - # ---------- @property def choropleth(self): """ @@ -232,8 +203,6 @@ 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] @@ -244,8 +213,6 @@ def choropleth(self): def choropleth(self, val): self["choropleth"] = val - # cone - # ---- @property def cone(self): """ @@ -255,8 +222,6 @@ 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] @@ -267,8 +232,6 @@ def cone(self): def cone(self, val): self["cone"] = val - # contourcarpet - # ------------- @property def contourcarpet(self): """ @@ -278,8 +241,6 @@ 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] @@ -290,8 +251,6 @@ def contourcarpet(self): def contourcarpet(self, val): self["contourcarpet"] = val - # contour - # ------- @property def contour(self): """ @@ -301,8 +260,6 @@ 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] @@ -313,8 +270,6 @@ def contour(self): def contour(self, val): self["contour"] = val - # densitymapbox - # ------------- @property def densitymapbox(self): """ @@ -324,8 +279,6 @@ 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] @@ -336,8 +289,6 @@ def densitymapbox(self): def densitymapbox(self, val): self["densitymapbox"] = val - # densitymap - # ---------- @property def densitymap(self): """ @@ -347,8 +298,6 @@ 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] @@ -359,8 +308,6 @@ def densitymap(self): def densitymap(self, val): self["densitymap"] = val - # funnelarea - # ---------- @property def funnelarea(self): """ @@ -370,8 +317,6 @@ 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] @@ -382,8 +327,6 @@ def funnelarea(self): def funnelarea(self, val): self["funnelarea"] = val - # funnel - # ------ @property def funnel(self): """ @@ -393,8 +336,6 @@ 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] @@ -405,8 +346,6 @@ def funnel(self): def funnel(self, val): self["funnel"] = val - # heatmap - # ------- @property def heatmap(self): """ @@ -416,8 +355,6 @@ 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] @@ -428,8 +365,6 @@ def heatmap(self): def heatmap(self, val): self["heatmap"] = val - # histogram2dcontour - # ------------------ @property def histogram2dcontour(self): """ @@ -439,8 +374,6 @@ 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] @@ -451,8 +384,6 @@ def histogram2dcontour(self): def histogram2dcontour(self, val): self["histogram2dcontour"] = val - # histogram2d - # ----------- @property def histogram2d(self): """ @@ -462,8 +393,6 @@ 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] @@ -474,8 +403,6 @@ def histogram2d(self): def histogram2d(self, val): self["histogram2d"] = val - # histogram - # --------- @property def histogram(self): """ @@ -485,8 +412,6 @@ 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] @@ -497,8 +422,6 @@ def histogram(self): def histogram(self, val): self["histogram"] = val - # icicle - # ------ @property def icicle(self): """ @@ -508,8 +431,6 @@ 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] @@ -520,8 +441,6 @@ def icicle(self): def icicle(self, val): self["icicle"] = val - # image - # ----- @property def image(self): """ @@ -531,8 +450,6 @@ 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] @@ -543,8 +460,6 @@ def image(self): def image(self, val): self["image"] = val - # indicator - # --------- @property def indicator(self): """ @@ -554,8 +469,6 @@ 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] @@ -566,8 +479,6 @@ def indicator(self): def indicator(self, val): self["indicator"] = val - # isosurface - # ---------- @property def isosurface(self): """ @@ -577,8 +488,6 @@ 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] @@ -589,8 +498,6 @@ def isosurface(self): def isosurface(self, val): self["isosurface"] = val - # mesh3d - # ------ @property def mesh3d(self): """ @@ -600,8 +507,6 @@ 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] @@ -612,8 +517,6 @@ def mesh3d(self): def mesh3d(self, val): self["mesh3d"] = val - # ohlc - # ---- @property def ohlc(self): """ @@ -623,8 +526,6 @@ 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] @@ -635,8 +536,6 @@ def ohlc(self): def ohlc(self, val): self["ohlc"] = val - # parcats - # ------- @property def parcats(self): """ @@ -646,8 +545,6 @@ 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] @@ -658,8 +555,6 @@ def parcats(self): def parcats(self, val): self["parcats"] = val - # parcoords - # --------- @property def parcoords(self): """ @@ -669,8 +564,6 @@ 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] @@ -681,8 +574,6 @@ def parcoords(self): def parcoords(self, val): self["parcoords"] = val - # pie - # --- @property def pie(self): """ @@ -692,8 +583,6 @@ 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] @@ -704,8 +593,6 @@ def pie(self): def pie(self, val): self["pie"] = val - # sankey - # ------ @property def sankey(self): """ @@ -715,8 +602,6 @@ 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] @@ -727,8 +612,6 @@ def sankey(self): def sankey(self, val): self["sankey"] = val - # scatter3d - # --------- @property def scatter3d(self): """ @@ -738,8 +621,6 @@ 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] @@ -750,8 +631,6 @@ def scatter3d(self): def scatter3d(self, val): self["scatter3d"] = val - # scattercarpet - # ------------- @property def scattercarpet(self): """ @@ -761,8 +640,6 @@ 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] @@ -773,8 +650,6 @@ def scattercarpet(self): def scattercarpet(self, val): self["scattercarpet"] = val - # scattergeo - # ---------- @property def scattergeo(self): """ @@ -784,8 +659,6 @@ 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] @@ -796,8 +669,6 @@ def scattergeo(self): def scattergeo(self, val): self["scattergeo"] = val - # scattergl - # --------- @property def scattergl(self): """ @@ -807,8 +678,6 @@ 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] @@ -819,8 +688,6 @@ def scattergl(self): def scattergl(self, val): self["scattergl"] = val - # scattermapbox - # ------------- @property def scattermapbox(self): """ @@ -830,8 +697,6 @@ 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] @@ -842,8 +707,6 @@ def scattermapbox(self): def scattermapbox(self, val): self["scattermapbox"] = val - # scattermap - # ---------- @property def scattermap(self): """ @@ -853,8 +716,6 @@ 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] @@ -865,8 +726,6 @@ def scattermap(self): def scattermap(self, val): self["scattermap"] = val - # scatterpolargl - # -------------- @property def scatterpolargl(self): """ @@ -876,8 +735,6 @@ 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] @@ -888,8 +745,6 @@ def scatterpolargl(self): def scatterpolargl(self, val): self["scatterpolargl"] = val - # scatterpolar - # ------------ @property def scatterpolar(self): """ @@ -899,8 +754,6 @@ 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] @@ -911,8 +764,6 @@ def scatterpolar(self): def scatterpolar(self, val): self["scatterpolar"] = val - # scatter - # ------- @property def scatter(self): """ @@ -922,8 +773,6 @@ 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] @@ -934,8 +783,6 @@ def scatter(self): def scatter(self, val): self["scatter"] = val - # scattersmith - # ------------ @property def scattersmith(self): """ @@ -945,8 +792,6 @@ 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] @@ -957,8 +802,6 @@ def scattersmith(self): def scattersmith(self, val): self["scattersmith"] = val - # scatterternary - # -------------- @property def scatterternary(self): """ @@ -968,8 +811,6 @@ 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] @@ -980,8 +821,6 @@ def scatterternary(self): def scatterternary(self, val): self["scatterternary"] = val - # splom - # ----- @property def splom(self): """ @@ -991,8 +830,6 @@ 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] @@ -1003,8 +840,6 @@ def splom(self): def splom(self, val): self["splom"] = val - # streamtube - # ---------- @property def streamtube(self): """ @@ -1014,8 +849,6 @@ 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] @@ -1026,8 +859,6 @@ def streamtube(self): def streamtube(self, val): self["streamtube"] = val - # sunburst - # -------- @property def sunburst(self): """ @@ -1037,8 +868,6 @@ 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] @@ -1049,8 +878,6 @@ def sunburst(self): def sunburst(self, val): self["sunburst"] = val - # surface - # ------- @property def surface(self): """ @@ -1060,8 +887,6 @@ 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] @@ -1072,8 +897,6 @@ def surface(self): def surface(self, val): self["surface"] = val - # table - # ----- @property def table(self): """ @@ -1083,8 +906,6 @@ 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] @@ -1095,8 +916,6 @@ def table(self): def table(self, val): self["table"] = val - # treemap - # ------- @property def treemap(self): """ @@ -1106,8 +925,6 @@ 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] @@ -1118,8 +935,6 @@ def treemap(self): def treemap(self, val): self["treemap"] = val - # violin - # ------ @property def violin(self): """ @@ -1129,8 +944,6 @@ 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] @@ -1141,8 +954,6 @@ def violin(self): def violin(self, val): self["violin"] = val - # volume - # ------ @property def volume(self): """ @@ -1152,8 +963,6 @@ 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] @@ -1164,8 +973,6 @@ def volume(self): def volume(self, val): self["volume"] = val - # waterfall - # --------- @property def waterfall(self): """ @@ -1175,8 +982,6 @@ 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] @@ -1187,8 +992,6 @@ def waterfall(self): def waterfall(self, val): self["waterfall"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1560,14 +1363,11 @@ def __init__( ------- Data """ - super(Data, self).__init__("data") - + super().__init__("data") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1582,214 +1382,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("barpolar", arg, barpolar) + self._set_property("bar", arg, bar) + self._set_property("box", arg, box) + self._set_property("candlestick", arg, candlestick) + self._set_property("carpet", arg, carpet) + self._set_property("choroplethmapbox", arg, choroplethmapbox) + self._set_property("choroplethmap", arg, choroplethmap) + self._set_property("choropleth", arg, choropleth) + self._set_property("cone", arg, cone) + self._set_property("contourcarpet", arg, contourcarpet) + self._set_property("contour", arg, contour) + self._set_property("densitymapbox", arg, densitymapbox) + self._set_property("densitymap", arg, densitymap) + self._set_property("funnelarea", arg, funnelarea) + self._set_property("funnel", arg, funnel) + self._set_property("heatmap", arg, heatmap) + self._set_property("histogram2dcontour", arg, histogram2dcontour) + self._set_property("histogram2d", arg, histogram2d) + self._set_property("histogram", arg, histogram) + self._set_property("icicle", arg, icicle) + self._set_property("image", arg, image) + self._set_property("indicator", arg, indicator) + self._set_property("isosurface", arg, isosurface) + self._set_property("mesh3d", arg, mesh3d) + self._set_property("ohlc", arg, ohlc) + self._set_property("parcats", arg, parcats) + self._set_property("parcoords", arg, parcoords) + self._set_property("pie", arg, pie) + self._set_property("sankey", arg, sankey) + self._set_property("scatter3d", arg, scatter3d) + self._set_property("scattercarpet", arg, scattercarpet) + self._set_property("scattergeo", arg, scattergeo) + self._set_property("scattergl", arg, scattergl) + self._set_property("scattermapbox", arg, scattermapbox) + self._set_property("scattermap", arg, scattermap) + self._set_property("scatterpolargl", arg, scatterpolargl) + self._set_property("scatterpolar", arg, scatterpolar) + self._set_property("scatter", arg, scatter) + self._set_property("scattersmith", arg, scattersmith) + self._set_property("scatterternary", arg, scatterternary) + self._set_property("splom", arg, splom) + self._set_property("streamtube", arg, streamtube) + self._set_property("sunburst", arg, sunburst) + self._set_property("surface", arg, surface) + self._set_property("table", arg, table) + self._set_property("treemap", arg, treemap) + self._set_property("violin", arg, violin) + self._set_property("volume", arg, volume) + self._set_property("waterfall", arg, waterfall) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/template/data/__init__.py b/plotly/graph_objs/layout/template/data/__init__.py index 3a11f83049..ef2921907e 100644 --- a/plotly/graph_objs/layout/template/data/__init__.py +++ b/plotly/graph_objs/layout/template/data/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._bar import Bar - from ._barpolar import Barpolar - from ._box import Box - from ._candlestick import Candlestick - from ._carpet import Carpet - from ._choropleth import Choropleth - from ._choroplethmap import Choroplethmap - from ._choroplethmapbox import Choroplethmapbox - from ._cone import Cone - from ._contour import Contour - from ._contourcarpet import Contourcarpet - from ._densitymap import Densitymap - from ._densitymapbox import Densitymapbox - from ._funnel import Funnel - from ._funnelarea import Funnelarea - from ._heatmap import Heatmap - from ._histogram import Histogram - from ._histogram2d import Histogram2d - from ._histogram2dcontour import Histogram2dContour - from ._icicle import Icicle - from ._image import Image - from ._indicator import Indicator - from ._isosurface import Isosurface - from ._mesh3d import Mesh3d - from ._ohlc import Ohlc - from ._parcats import Parcats - from ._parcoords import Parcoords - from ._pie import Pie - from ._sankey import Sankey - from ._scatter import Scatter - from ._scatter3d import Scatter3d - from ._scattercarpet import Scattercarpet - from ._scattergeo import Scattergeo - from ._scattergl import Scattergl - from ._scattermap import Scattermap - from ._scattermapbox import Scattermapbox - from ._scatterpolar import Scatterpolar - from ._scatterpolargl import Scatterpolargl - from ._scattersmith import Scattersmith - from ._scatterternary import Scatterternary - from ._splom import Splom - from ._streamtube import Streamtube - from ._sunburst import Sunburst - from ._surface import Surface - from ._table import Table - from ._treemap import Treemap - from ._violin import Violin - from ._volume import Volume - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/layout/ternary/__init__.py b/plotly/graph_objs/layout/ternary/__init__.py index 5bd479382d..d64a0f9f5d 100644 --- a/plotly/graph_objs/layout/ternary/__init__.py +++ b/plotly/graph_objs/layout/ternary/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._aaxis import Aaxis - from ._baxis import Baxis - from ._caxis import Caxis - from ._domain import Domain - from . import aaxis - from . import baxis - 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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".aaxis", ".baxis", ".caxis"], + ["._aaxis.Aaxis", "._baxis.Baxis", "._caxis.Caxis", "._domain.Domain"], +) diff --git a/plotly/graph_objs/layout/ternary/_aaxis.py b/plotly/graph_objs/layout/ternary/_aaxis.py index 8b003c58c3..5e178e303e 100644 --- a/plotly/graph_objs/layout/ternary/_aaxis.py +++ b/plotly/graph_objs/layout/ternary/_aaxis.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Aaxis(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.ternary" _path_str = "layout.ternary.aaxis" _valid_props = { @@ -52,8 +53,6 @@ class Aaxis(_BaseLayoutHierarchyType): "uirevision", } - # color - # ----- @property def color(self): """ @@ -67,42 +66,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -114,8 +78,6 @@ def color(self): def color(self, val): self["color"] = val - # dtick - # ----- @property def dtick(self): """ @@ -152,8 +114,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -177,8 +137,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # gridcolor - # --------- @property def gridcolor(self): """ @@ -189,42 +147,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -236,8 +159,6 @@ def gridcolor(self): def gridcolor(self, val): self["gridcolor"] = val - # griddash - # -------- @property def griddash(self): """ @@ -262,8 +183,6 @@ def griddash(self): def griddash(self, val): self["griddash"] = val - # gridwidth - # --------- @property def gridwidth(self): """ @@ -282,8 +201,6 @@ def gridwidth(self): def gridwidth(self, val): self["gridwidth"] = val - # hoverformat - # ----------- @property def hoverformat(self): """ @@ -312,8 +229,6 @@ def hoverformat(self): def hoverformat(self, val): self["hoverformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -339,8 +254,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # layer - # ----- @property def layer(self): """ @@ -365,8 +278,6 @@ def layer(self): def layer(self, val): self["layer"] = val - # linecolor - # --------- @property def linecolor(self): """ @@ -377,42 +288,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -424,8 +300,6 @@ def linecolor(self): def linecolor(self, val): self["linecolor"] = val - # linewidth - # --------- @property def linewidth(self): """ @@ -444,8 +318,6 @@ def linewidth(self): def linewidth(self, val): self["linewidth"] = val - # min - # --- @property def min(self): """ @@ -466,8 +338,6 @@ def min(self): def min(self, val): self["min"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -487,8 +357,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -511,8 +379,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -531,8 +397,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -555,8 +419,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showgrid - # -------- @property def showgrid(self): """ @@ -576,8 +438,6 @@ def showgrid(self): def showgrid(self, val): self["showgrid"] = val - # showline - # -------- @property def showline(self): """ @@ -596,8 +456,6 @@ def showline(self): def showline(self, val): self["showline"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -616,8 +474,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -640,8 +496,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -661,8 +515,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -688,8 +540,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -712,8 +562,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -724,42 +572,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -771,8 +584,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -784,52 +595,6 @@ 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 @@ -840,8 +605,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -870,8 +633,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -881,42 +642,6 @@ 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] @@ -927,8 +652,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -943,8 +666,6 @@ 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 @@ -955,8 +676,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -981,8 +700,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1001,8 +718,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1028,8 +743,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1049,8 +762,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1072,8 +783,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1093,8 +802,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1115,8 +822,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1135,8 +840,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1156,8 +859,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1176,8 +877,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1196,8 +895,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1207,13 +904,6 @@ 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 @@ -1224,8 +914,6 @@ def title(self): def title(self, val): self["title"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1245,8 +933,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1724,14 +1410,11 @@ def __init__( ------- Aaxis """ - super(Aaxis, self).__init__("aaxis") - + super().__init__("aaxis") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1746,182 +1429,49 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("gridcolor", arg, gridcolor) + self._set_property("griddash", arg, griddash) + self._set_property("gridwidth", arg, gridwidth) + self._set_property("hoverformat", arg, hoverformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("layer", arg, layer) + self._set_property("linecolor", arg, linecolor) + self._set_property("linewidth", arg, linewidth) + self._set_property("min", arg, min) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showgrid", arg, showgrid) + self._set_property("showline", arg, showline) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("uirevision", arg, uirevision) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/ternary/_baxis.py b/plotly/graph_objs/layout/ternary/_baxis.py index 3c5060624b..f08cf16888 100644 --- a/plotly/graph_objs/layout/ternary/_baxis.py +++ b/plotly/graph_objs/layout/ternary/_baxis.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Baxis(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.ternary" _path_str = "layout.ternary.baxis" _valid_props = { @@ -52,8 +53,6 @@ class Baxis(_BaseLayoutHierarchyType): "uirevision", } - # color - # ----- @property def color(self): """ @@ -67,42 +66,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -114,8 +78,6 @@ def color(self): def color(self, val): self["color"] = val - # dtick - # ----- @property def dtick(self): """ @@ -152,8 +114,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -177,8 +137,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # gridcolor - # --------- @property def gridcolor(self): """ @@ -189,42 +147,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -236,8 +159,6 @@ def gridcolor(self): def gridcolor(self, val): self["gridcolor"] = val - # griddash - # -------- @property def griddash(self): """ @@ -262,8 +183,6 @@ def griddash(self): def griddash(self, val): self["griddash"] = val - # gridwidth - # --------- @property def gridwidth(self): """ @@ -282,8 +201,6 @@ def gridwidth(self): def gridwidth(self, val): self["gridwidth"] = val - # hoverformat - # ----------- @property def hoverformat(self): """ @@ -312,8 +229,6 @@ def hoverformat(self): def hoverformat(self, val): self["hoverformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -339,8 +254,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # layer - # ----- @property def layer(self): """ @@ -365,8 +278,6 @@ def layer(self): def layer(self, val): self["layer"] = val - # linecolor - # --------- @property def linecolor(self): """ @@ -377,42 +288,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -424,8 +300,6 @@ def linecolor(self): def linecolor(self, val): self["linecolor"] = val - # linewidth - # --------- @property def linewidth(self): """ @@ -444,8 +318,6 @@ def linewidth(self): def linewidth(self, val): self["linewidth"] = val - # min - # --- @property def min(self): """ @@ -466,8 +338,6 @@ def min(self): def min(self, val): self["min"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -487,8 +357,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -511,8 +379,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -531,8 +397,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -555,8 +419,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showgrid - # -------- @property def showgrid(self): """ @@ -576,8 +438,6 @@ def showgrid(self): def showgrid(self, val): self["showgrid"] = val - # showline - # -------- @property def showline(self): """ @@ -596,8 +456,6 @@ def showline(self): def showline(self, val): self["showline"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -616,8 +474,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -640,8 +496,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -661,8 +515,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -688,8 +540,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -712,8 +562,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -724,42 +572,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -771,8 +584,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -784,52 +595,6 @@ 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 @@ -840,8 +605,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -870,8 +633,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -881,42 +642,6 @@ 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] @@ -927,8 +652,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -943,8 +666,6 @@ 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 @@ -955,8 +676,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -981,8 +700,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1001,8 +718,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1028,8 +743,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1049,8 +762,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1072,8 +783,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1093,8 +802,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1115,8 +822,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1135,8 +840,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1156,8 +859,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1176,8 +877,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1196,8 +895,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1207,13 +904,6 @@ 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 @@ -1224,8 +914,6 @@ def title(self): def title(self, val): self["title"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1245,8 +933,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1724,14 +1410,11 @@ def __init__( ------- Baxis """ - super(Baxis, self).__init__("baxis") - + super().__init__("baxis") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1746,182 +1429,49 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("gridcolor", arg, gridcolor) + self._set_property("griddash", arg, griddash) + self._set_property("gridwidth", arg, gridwidth) + self._set_property("hoverformat", arg, hoverformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("layer", arg, layer) + self._set_property("linecolor", arg, linecolor) + self._set_property("linewidth", arg, linewidth) + self._set_property("min", arg, min) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showgrid", arg, showgrid) + self._set_property("showline", arg, showline) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("uirevision", arg, uirevision) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/ternary/_caxis.py b/plotly/graph_objs/layout/ternary/_caxis.py index 336b50f7c8..86ae5b62fd 100644 --- a/plotly/graph_objs/layout/ternary/_caxis.py +++ b/plotly/graph_objs/layout/ternary/_caxis.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Caxis(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.ternary" _path_str = "layout.ternary.caxis" _valid_props = { @@ -52,8 +53,6 @@ class Caxis(_BaseLayoutHierarchyType): "uirevision", } - # color - # ----- @property def color(self): """ @@ -67,42 +66,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -114,8 +78,6 @@ def color(self): def color(self, val): self["color"] = val - # dtick - # ----- @property def dtick(self): """ @@ -152,8 +114,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -177,8 +137,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # gridcolor - # --------- @property def gridcolor(self): """ @@ -189,42 +147,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -236,8 +159,6 @@ def gridcolor(self): def gridcolor(self, val): self["gridcolor"] = val - # griddash - # -------- @property def griddash(self): """ @@ -262,8 +183,6 @@ def griddash(self): def griddash(self, val): self["griddash"] = val - # gridwidth - # --------- @property def gridwidth(self): """ @@ -282,8 +201,6 @@ def gridwidth(self): def gridwidth(self, val): self["gridwidth"] = val - # hoverformat - # ----------- @property def hoverformat(self): """ @@ -312,8 +229,6 @@ def hoverformat(self): def hoverformat(self, val): self["hoverformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -339,8 +254,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # layer - # ----- @property def layer(self): """ @@ -365,8 +278,6 @@ def layer(self): def layer(self, val): self["layer"] = val - # linecolor - # --------- @property def linecolor(self): """ @@ -377,42 +288,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -424,8 +300,6 @@ def linecolor(self): def linecolor(self, val): self["linecolor"] = val - # linewidth - # --------- @property def linewidth(self): """ @@ -444,8 +318,6 @@ def linewidth(self): def linewidth(self, val): self["linewidth"] = val - # min - # --- @property def min(self): """ @@ -466,8 +338,6 @@ def min(self): def min(self, val): self["min"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -487,8 +357,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -511,8 +379,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -531,8 +397,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -555,8 +419,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showgrid - # -------- @property def showgrid(self): """ @@ -576,8 +438,6 @@ def showgrid(self): def showgrid(self, val): self["showgrid"] = val - # showline - # -------- @property def showline(self): """ @@ -596,8 +456,6 @@ def showline(self): def showline(self, val): self["showline"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -616,8 +474,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -640,8 +496,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -661,8 +515,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -688,8 +540,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -712,8 +562,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -724,42 +572,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -771,8 +584,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -784,52 +595,6 @@ 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 @@ -840,8 +605,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -870,8 +633,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -881,42 +642,6 @@ 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] @@ -927,8 +652,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -943,8 +666,6 @@ 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 @@ -955,8 +676,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -981,8 +700,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1001,8 +718,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1028,8 +743,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1049,8 +762,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1072,8 +783,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1093,8 +802,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1115,8 +822,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1135,8 +840,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1156,8 +859,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1176,8 +877,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1196,8 +895,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1207,13 +904,6 @@ 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 @@ -1224,8 +914,6 @@ def title(self): def title(self, val): self["title"] = val - # uirevision - # ---------- @property def uirevision(self): """ @@ -1245,8 +933,6 @@ def uirevision(self): def uirevision(self, val): self["uirevision"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1724,14 +1410,11 @@ def __init__( ------- Caxis """ - super(Caxis, self).__init__("caxis") - + super().__init__("caxis") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1746,182 +1429,49 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("gridcolor", arg, gridcolor) + self._set_property("griddash", arg, griddash) + self._set_property("gridwidth", arg, gridwidth) + self._set_property("hoverformat", arg, hoverformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("layer", arg, layer) + self._set_property("linecolor", arg, linecolor) + self._set_property("linewidth", arg, linewidth) + self._set_property("min", arg, min) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showgrid", arg, showgrid) + self._set_property("showline", arg, showline) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("uirevision", arg, uirevision) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/ternary/_domain.py b/plotly/graph_objs/layout/ternary/_domain.py index 91212c905f..6ac8742647 100644 --- a/plotly/graph_objs/layout/ternary/_domain.py +++ b/plotly/graph_objs/layout/ternary/_domain.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Domain(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.ternary" _path_str = "layout.ternary.domain" _valid_props = {"column", "row", "x", "y"} - # column - # ------ @property def column(self): """ @@ -32,8 +31,6 @@ def column(self): def column(self, val): self["column"] = val - # row - # --- @property def row(self): """ @@ -54,8 +51,6 @@ def row(self): def row(self, val): self["row"] = val - # x - # - @property def x(self): """ @@ -80,8 +75,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -106,8 +99,6 @@ def y(self): def y(self, val): self["y"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -152,14 +143,11 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") - + super().__init__("domain") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -174,34 +162,12 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("column", arg, column) + self._set_property("row", arg, row) + self._set_property("x", arg, x) + self._set_property("y", arg, y) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/ternary/aaxis/__init__.py b/plotly/graph_objs/layout/ternary/aaxis/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/layout/ternary/aaxis/__init__.py +++ b/plotly/graph_objs/layout/ternary/aaxis/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/layout/ternary/aaxis/_tickfont.py b/plotly/graph_objs/layout/ternary/aaxis/_tickfont.py index d8a8c8459d..9247b8982c 100644 --- a/plotly/graph_objs/layout/ternary/aaxis/_tickfont.py +++ b/plotly/graph_objs/layout/ternary/aaxis/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Tickfont(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.ternary.aaxis" _path_str = "layout.ternary.aaxis.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/ternary/aaxis/_tickformatstop.py b/plotly/graph_objs/layout/ternary/aaxis/_tickformatstop.py index 6ee8859eef..6991f65432 100644 --- a/plotly/graph_objs/layout/ternary/aaxis/_tickformatstop.py +++ b/plotly/graph_objs/layout/ternary/aaxis/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Tickformatstop(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.ternary.aaxis" _path_str = "layout.ternary.aaxis.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/ternary/aaxis/_title.py b/plotly/graph_objs/layout/ternary/aaxis/_title.py index be6f0f1325..72d6a03ba2 100644 --- a/plotly/graph_objs/layout/ternary/aaxis/_title.py +++ b/plotly/graph_objs/layout/ternary/aaxis/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Title(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.ternary.aaxis" _path_str = "layout.ternary.aaxis.title" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/ternary/aaxis/title/__init__.py b/plotly/graph_objs/layout/ternary/aaxis/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/layout/ternary/aaxis/title/__init__.py +++ b/plotly/graph_objs/layout/ternary/aaxis/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/layout/ternary/aaxis/title/_font.py b/plotly/graph_objs/layout/ternary/aaxis/title/_font.py index 8103e3d578..89c31aa83f 100644 --- a/plotly/graph_objs/layout/ternary/aaxis/title/_font.py +++ b/plotly/graph_objs/layout/ternary/aaxis/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Font(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.ternary.aaxis.title" _path_str = "layout.ternary.aaxis.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/ternary/baxis/__init__.py b/plotly/graph_objs/layout/ternary/baxis/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/layout/ternary/baxis/__init__.py +++ b/plotly/graph_objs/layout/ternary/baxis/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/layout/ternary/baxis/_tickfont.py b/plotly/graph_objs/layout/ternary/baxis/_tickfont.py index c958d1f66c..0f57e7fdea 100644 --- a/plotly/graph_objs/layout/ternary/baxis/_tickfont.py +++ b/plotly/graph_objs/layout/ternary/baxis/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Tickfont(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.ternary.baxis" _path_str = "layout.ternary.baxis.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/ternary/baxis/_tickformatstop.py b/plotly/graph_objs/layout/ternary/baxis/_tickformatstop.py index 0463b4a018..f401787b9a 100644 --- a/plotly/graph_objs/layout/ternary/baxis/_tickformatstop.py +++ b/plotly/graph_objs/layout/ternary/baxis/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Tickformatstop(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.ternary.baxis" _path_str = "layout.ternary.baxis.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/ternary/baxis/_title.py b/plotly/graph_objs/layout/ternary/baxis/_title.py index b6e9612703..855b9f4139 100644 --- a/plotly/graph_objs/layout/ternary/baxis/_title.py +++ b/plotly/graph_objs/layout/ternary/baxis/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Title(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.ternary.baxis" _path_str = "layout.ternary.baxis.title" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/ternary/baxis/title/__init__.py b/plotly/graph_objs/layout/ternary/baxis/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/layout/ternary/baxis/title/__init__.py +++ b/plotly/graph_objs/layout/ternary/baxis/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/layout/ternary/baxis/title/_font.py b/plotly/graph_objs/layout/ternary/baxis/title/_font.py index 2f020fe77b..254488fb73 100644 --- a/plotly/graph_objs/layout/ternary/baxis/title/_font.py +++ b/plotly/graph_objs/layout/ternary/baxis/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Font(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.ternary.baxis.title" _path_str = "layout.ternary.baxis.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/ternary/caxis/__init__.py b/plotly/graph_objs/layout/ternary/caxis/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/layout/ternary/caxis/__init__.py +++ b/plotly/graph_objs/layout/ternary/caxis/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/layout/ternary/caxis/_tickfont.py b/plotly/graph_objs/layout/ternary/caxis/_tickfont.py index ec1c27272b..dcc67cae21 100644 --- a/plotly/graph_objs/layout/ternary/caxis/_tickfont.py +++ b/plotly/graph_objs/layout/ternary/caxis/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Tickfont(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.ternary.caxis" _path_str = "layout.ternary.caxis.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/ternary/caxis/_tickformatstop.py b/plotly/graph_objs/layout/ternary/caxis/_tickformatstop.py index 10dc85cd7c..f922d464f3 100644 --- a/plotly/graph_objs/layout/ternary/caxis/_tickformatstop.py +++ b/plotly/graph_objs/layout/ternary/caxis/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Tickformatstop(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.ternary.caxis" _path_str = "layout.ternary.caxis.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/ternary/caxis/_title.py b/plotly/graph_objs/layout/ternary/caxis/_title.py index f12aca460c..86ddf17acf 100644 --- a/plotly/graph_objs/layout/ternary/caxis/_title.py +++ b/plotly/graph_objs/layout/ternary/caxis/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Title(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.ternary.caxis" _path_str = "layout.ternary.caxis.title" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/ternary/caxis/title/__init__.py b/plotly/graph_objs/layout/ternary/caxis/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/layout/ternary/caxis/title/__init__.py +++ b/plotly/graph_objs/layout/ternary/caxis/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/layout/ternary/caxis/title/_font.py b/plotly/graph_objs/layout/ternary/caxis/title/_font.py index 1549ec2097..d6c23fb458 100644 --- a/plotly/graph_objs/layout/ternary/caxis/title/_font.py +++ b/plotly/graph_objs/layout/ternary/caxis/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Font(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.ternary.caxis.title" _path_str = "layout.ternary.caxis.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/title/__init__.py b/plotly/graph_objs/layout/title/__init__.py index d37379b99d..795705c62e 100644 --- a/plotly/graph_objs/layout/title/__init__.py +++ b/plotly/graph_objs/layout/title/__init__.py @@ -1,14 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._font import Font - from ._pad import Pad - from ._subtitle import Subtitle - from . import subtitle -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, [".subtitle"], ["._font.Font", "._pad.Pad", "._subtitle.Subtitle"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [".subtitle"], ["._font.Font", "._pad.Pad", "._subtitle.Subtitle"] +) diff --git a/plotly/graph_objs/layout/title/_font.py b/plotly/graph_objs/layout/title/_font.py index ff9ad16858..188f056599 100644 --- a/plotly/graph_objs/layout/title/_font.py +++ b/plotly/graph_objs/layout/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Font(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.title" _path_str = "layout.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/title/_pad.py b/plotly/graph_objs/layout/title/_pad.py index 6653b1896d..620b791ce8 100644 --- a/plotly/graph_objs/layout/title/_pad.py +++ b/plotly/graph_objs/layout/title/_pad.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Pad(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.title" _path_str = "layout.title.pad" _valid_props = {"b", "l", "r", "t"} - # b - # - @property def b(self): """ @@ -31,8 +30,6 @@ def b(self): def b(self, val): self["b"] = val - # l - # - @property def l(self): """ @@ -52,8 +49,6 @@ def l(self): def l(self, val): self["l"] = val - # r - # - @property def r(self): """ @@ -73,8 +68,6 @@ def r(self): def r(self, val): self["r"] = val - # t - # - @property def t(self): """ @@ -93,8 +86,6 @@ def t(self): def t(self, val): self["t"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -146,14 +137,11 @@ def __init__(self, arg=None, b=None, l=None, r=None, t=None, **kwargs): ------- Pad """ - super(Pad, self).__init__("pad") - + super().__init__("pad") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -168,34 +156,12 @@ def __init__(self, arg=None, b=None, l=None, r=None, t=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("b", arg, b) + self._set_property("l", arg, l) + self._set_property("r", arg, r) + self._set_property("t", arg, t) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/title/_subtitle.py b/plotly/graph_objs/layout/title/_subtitle.py index 24f0428798..1f6bcc6f97 100644 --- a/plotly/graph_objs/layout/title/_subtitle.py +++ b/plotly/graph_objs/layout/title/_subtitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Subtitle(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.title" _path_str = "layout.title.subtitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Subtitle """ - super(Subtitle, self).__init__("subtitle") - + super().__init__("subtitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/title/subtitle/__init__.py b/plotly/graph_objs/layout/title/subtitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/layout/title/subtitle/__init__.py +++ b/plotly/graph_objs/layout/title/subtitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/layout/title/subtitle/_font.py b/plotly/graph_objs/layout/title/subtitle/_font.py index 711b816a06..44545cefc2 100644 --- a/plotly/graph_objs/layout/title/subtitle/_font.py +++ b/plotly/graph_objs/layout/title/subtitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Font(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.title.subtitle" _path_str = "layout.title.subtitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/updatemenu/__init__.py b/plotly/graph_objs/layout/updatemenu/__init__.py index 2a9ee9dca6..e9cbc65129 100644 --- a/plotly/graph_objs/layout/updatemenu/__init__.py +++ b/plotly/graph_objs/layout/updatemenu/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._button.Button", "._font.Font", "._pad.Pad"] +) diff --git a/plotly/graph_objs/layout/updatemenu/_button.py b/plotly/graph_objs/layout/updatemenu/_button.py index e3bfcfb77f..5994d225fe 100644 --- a/plotly/graph_objs/layout/updatemenu/_button.py +++ b/plotly/graph_objs/layout/updatemenu/_button.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Button(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.updatemenu" _path_str = "layout.updatemenu.button" _valid_props = { @@ -19,8 +20,6 @@ class Button(_BaseLayoutHierarchyType): "visible", } - # args - # ---- @property def args(self): """ @@ -44,8 +43,6 @@ def args(self): def args(self, val): self["args"] = val - # args2 - # ----- @property def args2(self): """ @@ -70,8 +67,6 @@ def args2(self): def args2(self, val): self["args2"] = val - # execute - # ------- @property def execute(self): """ @@ -96,8 +91,6 @@ def execute(self): def execute(self, val): self["execute"] = val - # label - # ----- @property def label(self): """ @@ -117,8 +110,6 @@ def label(self): def label(self, val): self["label"] = val - # method - # ------ @property def method(self): """ @@ -142,8 +133,6 @@ def method(self): def method(self, val): self["method"] = val - # name - # ---- @property def name(self): """ @@ -169,8 +158,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -197,8 +184,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # visible - # ------- @property def visible(self): """ @@ -217,8 +202,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -345,14 +328,11 @@ def __init__( ------- Button """ - super(Button, self).__init__("buttons") - + super().__init__("buttons") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -367,50 +347,16 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("args", arg, args) + self._set_property("args2", arg, args2) + self._set_property("execute", arg, execute) + self._set_property("label", arg, label) + self._set_property("method", arg, method) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("visible", arg, visible) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/updatemenu/_font.py b/plotly/graph_objs/layout/updatemenu/_font.py index 862e5738b9..db4ddae0fa 100644 --- a/plotly/graph_objs/layout/updatemenu/_font.py +++ b/plotly/graph_objs/layout/updatemenu/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Font(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.updatemenu" _path_str = "layout.updatemenu.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/updatemenu/_pad.py b/plotly/graph_objs/layout/updatemenu/_pad.py index 3cadc5a794..888590f6d4 100644 --- a/plotly/graph_objs/layout/updatemenu/_pad.py +++ b/plotly/graph_objs/layout/updatemenu/_pad.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Pad(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.updatemenu" _path_str = "layout.updatemenu.pad" _valid_props = {"b", "l", "r", "t"} - # b - # - @property def b(self): """ @@ -31,8 +30,6 @@ def b(self): def b(self, val): self["b"] = val - # l - # - @property def l(self): """ @@ -52,8 +49,6 @@ def l(self): def l(self, val): self["l"] = val - # r - # - @property def r(self): """ @@ -73,8 +68,6 @@ def r(self): def r(self, val): self["r"] = val - # t - # - @property def t(self): """ @@ -93,8 +86,6 @@ def t(self): def t(self, val): self["t"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -141,14 +132,11 @@ def __init__(self, arg=None, b=None, l=None, r=None, t=None, **kwargs): ------- Pad """ - super(Pad, self).__init__("pad") - + super().__init__("pad") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -163,34 +151,12 @@ def __init__(self, arg=None, b=None, l=None, r=None, t=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("b", arg, b) + self._set_property("l", arg, l) + self._set_property("r", arg, r) + self._set_property("t", arg, t) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/xaxis/__init__.py b/plotly/graph_objs/layout/xaxis/__init__.py index ebf011b8b6..d8ee189d9f 100644 --- a/plotly/graph_objs/layout/xaxis/__init__.py +++ b/plotly/graph_objs/layout/xaxis/__init__.py @@ -1,32 +1,17 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._autorangeoptions import Autorangeoptions - from ._minor import Minor - from ._rangebreak import Rangebreak - from ._rangeselector import Rangeselector - from ._rangeslider import Rangeslider - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import rangeselector - from . import rangeslider - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/layout/xaxis/_autorangeoptions.py b/plotly/graph_objs/layout/xaxis/_autorangeoptions.py index 81df0b01e4..e21bc167b3 100644 --- a/plotly/graph_objs/layout/xaxis/_autorangeoptions.py +++ b/plotly/graph_objs/layout/xaxis/_autorangeoptions.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Autorangeoptions(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.xaxis" _path_str = "layout.xaxis.autorangeoptions" _valid_props = { @@ -17,8 +18,6 @@ class Autorangeoptions(_BaseLayoutHierarchyType): "minallowed", } - # clipmax - # ------- @property def clipmax(self): """ @@ -37,8 +36,6 @@ def clipmax(self): def clipmax(self, val): self["clipmax"] = val - # clipmin - # ------- @property def clipmin(self): """ @@ -57,8 +54,6 @@ def clipmin(self): def clipmin(self, val): self["clipmin"] = val - # include - # ------- @property def include(self): """ @@ -76,8 +71,6 @@ def include(self): def include(self, val): self["include"] = val - # includesrc - # ---------- @property def includesrc(self): """ @@ -96,8 +89,6 @@ def includesrc(self): def includesrc(self, val): self["includesrc"] = val - # maxallowed - # ---------- @property def maxallowed(self): """ @@ -115,8 +106,6 @@ def maxallowed(self): def maxallowed(self, val): self["maxallowed"] = val - # minallowed - # ---------- @property def minallowed(self): """ @@ -134,8 +123,6 @@ def minallowed(self): def minallowed(self, val): self["minallowed"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -200,14 +187,11 @@ def __init__( ------- Autorangeoptions """ - super(Autorangeoptions, self).__init__("autorangeoptions") - + super().__init__("autorangeoptions") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -222,42 +206,14 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("clipmax", arg, clipmax) + self._set_property("clipmin", arg, clipmin) + self._set_property("include", arg, include) + self._set_property("includesrc", arg, includesrc) + self._set_property("maxallowed", arg, maxallowed) + self._set_property("minallowed", arg, minallowed) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/xaxis/_minor.py b/plotly/graph_objs/layout/xaxis/_minor.py index 08ccaacfc7..b462c42eed 100644 --- a/plotly/graph_objs/layout/xaxis/_minor.py +++ b/plotly/graph_objs/layout/xaxis/_minor.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Minor(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.xaxis" _path_str = "layout.xaxis.minor" _valid_props = { @@ -25,8 +26,6 @@ class Minor(_BaseLayoutHierarchyType): "tickwidth", } - # dtick - # ----- @property def dtick(self): """ @@ -63,8 +62,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # gridcolor - # --------- @property def gridcolor(self): """ @@ -75,42 +72,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -122,8 +84,6 @@ def gridcolor(self): def gridcolor(self, val): self["gridcolor"] = val - # griddash - # -------- @property def griddash(self): """ @@ -148,8 +108,6 @@ def griddash(self): def griddash(self, val): self["griddash"] = val - # gridwidth - # --------- @property def gridwidth(self): """ @@ -168,8 +126,6 @@ def gridwidth(self): def gridwidth(self, val): self["gridwidth"] = val - # nticks - # ------ @property def nticks(self): """ @@ -192,8 +148,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # showgrid - # -------- @property def showgrid(self): """ @@ -213,8 +167,6 @@ def showgrid(self): def showgrid(self, val): self["showgrid"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -240,8 +192,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -252,42 +202,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -299,8 +214,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -319,8 +232,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -346,8 +257,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # ticks - # ----- @property def ticks(self): """ @@ -369,8 +278,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -390,8 +297,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -410,8 +315,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -430,8 +333,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -628,14 +529,11 @@ def __init__( ------- Minor """ - super(Minor, self).__init__("minor") - + super().__init__("minor") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -650,74 +548,22 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtick", arg, dtick) + self._set_property("gridcolor", arg, gridcolor) + self._set_property("griddash", arg, griddash) + self._set_property("gridwidth", arg, gridwidth) + self._set_property("nticks", arg, nticks) + self._set_property("showgrid", arg, showgrid) + self._set_property("tick0", arg, tick0) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("ticks", arg, ticks) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/xaxis/_rangebreak.py b/plotly/graph_objs/layout/xaxis/_rangebreak.py index aad40eb59a..9bf3fc5c56 100644 --- a/plotly/graph_objs/layout/xaxis/_rangebreak.py +++ b/plotly/graph_objs/layout/xaxis/_rangebreak.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Rangebreak(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.xaxis" _path_str = "layout.xaxis.rangebreak" _valid_props = { @@ -18,8 +19,6 @@ class Rangebreak(_BaseLayoutHierarchyType): "values", } - # bounds - # ------ @property def bounds(self): """ @@ -42,8 +41,6 @@ def bounds(self): def bounds(self, val): self["bounds"] = val - # dvalue - # ------ @property def dvalue(self): """ @@ -63,8 +60,6 @@ def dvalue(self): def dvalue(self, val): self["dvalue"] = val - # enabled - # ------- @property def enabled(self): """ @@ -84,8 +79,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -111,8 +104,6 @@ def name(self): def name(self, val): self["name"] = val - # pattern - # ------- @property def pattern(self): """ @@ -141,8 +132,6 @@ def pattern(self): def pattern(self, val): self["pattern"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -169,8 +158,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # values - # ------ @property def values(self): """ @@ -192,8 +179,6 @@ def values(self): def values(self, val): self["values"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -315,14 +300,11 @@ def __init__( ------- Rangebreak """ - super(Rangebreak, self).__init__("rangebreaks") - + super().__init__("rangebreaks") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -337,46 +319,15 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bounds", arg, bounds) + self._set_property("dvalue", arg, dvalue) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("pattern", arg, pattern) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("values", arg, values) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/xaxis/_rangeselector.py b/plotly/graph_objs/layout/xaxis/_rangeselector.py index 472fd80915..d97090d139 100644 --- a/plotly/graph_objs/layout/xaxis/_rangeselector.py +++ b/plotly/graph_objs/layout/xaxis/_rangeselector.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Rangeselector(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.xaxis" _path_str = "layout.xaxis.rangeselector" _valid_props = { @@ -23,8 +24,6 @@ class Rangeselector(_BaseLayoutHierarchyType): "yanchor", } - # activecolor - # ----------- @property def activecolor(self): """ @@ -35,42 +34,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -82,8 +46,6 @@ def activecolor(self): def activecolor(self, val): self["activecolor"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -94,42 +56,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -141,8 +68,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -153,42 +78,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -200,8 +90,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -221,8 +109,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # buttons - # ------- @property def buttons(self): """ @@ -235,54 +121,6 @@ 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] @@ -293,8 +131,6 @@ def buttons(self): def buttons(self, val): self["buttons"] = val - # buttondefaults - # -------------- @property def buttondefaults(self): """ @@ -309,8 +145,6 @@ 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 @@ -321,8 +155,6 @@ def buttondefaults(self): def buttondefaults(self, val): self["buttondefaults"] = val - # font - # ---- @property def font(self): """ @@ -334,52 +166,6 @@ 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 @@ -390,8 +176,6 @@ def font(self): def font(self, val): self["font"] = val - # visible - # ------- @property def visible(self): """ @@ -412,8 +196,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # x - # - @property def x(self): """ @@ -433,8 +215,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -456,8 +236,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # y - # - @property def y(self): """ @@ -477,8 +255,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -500,8 +276,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -618,14 +392,11 @@ def __init__( ------- Rangeselector """ - super(Rangeselector, self).__init__("rangeselector") - + super().__init__("rangeselector") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -640,66 +411,20 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("activecolor", arg, activecolor) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("buttons", arg, buttons) + self._set_property("buttondefaults", arg, buttondefaults) + self._set_property("font", arg, font) + self._set_property("visible", arg, visible) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/xaxis/_rangeslider.py b/plotly/graph_objs/layout/xaxis/_rangeslider.py index 4d0a987bcb..6f374e39bf 100644 --- a/plotly/graph_objs/layout/xaxis/_rangeslider.py +++ b/plotly/graph_objs/layout/xaxis/_rangeslider.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Rangeslider(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.xaxis" _path_str = "layout.xaxis.rangeslider" _valid_props = { @@ -19,8 +20,6 @@ class Rangeslider(_BaseLayoutHierarchyType): "yaxis", } - # autorange - # --------- @property def autorange(self): """ @@ -41,8 +40,6 @@ def autorange(self): def autorange(self, val): self["autorange"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -53,42 +50,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -100,8 +62,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -112,42 +72,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -159,8 +84,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -180,8 +103,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # range - # ----- @property def range(self): """ @@ -210,8 +131,6 @@ def range(self): def range(self, val): self["range"] = val - # thickness - # --------- @property def thickness(self): """ @@ -231,8 +150,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # visible - # ------- @property def visible(self): """ @@ -252,8 +169,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # yaxis - # ----- @property def yaxis(self): """ @@ -263,20 +178,6 @@ 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 @@ -287,8 +188,6 @@ def yaxis(self): def yaxis(self, val): self["yaxis"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -381,14 +280,11 @@ def __init__( ------- Rangeslider """ - super(Rangeslider, self).__init__("rangeslider") - + super().__init__("rangeslider") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -403,50 +299,16 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("autorange", arg, autorange) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("range", arg, range) + self._set_property("thickness", arg, thickness) + self._set_property("visible", arg, visible) + self._set_property("yaxis", arg, yaxis) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/xaxis/_tickfont.py b/plotly/graph_objs/layout/xaxis/_tickfont.py index 77944969fe..5576d9de4e 100644 --- a/plotly/graph_objs/layout/xaxis/_tickfont.py +++ b/plotly/graph_objs/layout/xaxis/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Tickfont(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.xaxis" _path_str = "layout.xaxis.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/xaxis/_tickformatstop.py b/plotly/graph_objs/layout/xaxis/_tickformatstop.py index 75674f2ee2..d575d0c9d8 100644 --- a/plotly/graph_objs/layout/xaxis/_tickformatstop.py +++ b/plotly/graph_objs/layout/xaxis/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Tickformatstop(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.xaxis" _path_str = "layout.xaxis.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/xaxis/_title.py b/plotly/graph_objs/layout/xaxis/_title.py index a2a53e4d98..0052eee801 100644 --- a/plotly/graph_objs/layout/xaxis/_title.py +++ b/plotly/graph_objs/layout/xaxis/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Title(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.xaxis" _path_str = "layout.xaxis.title" _valid_props = {"font", "standoff", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # standoff - # -------- @property def standoff(self): """ @@ -106,8 +57,6 @@ def standoff(self): def standoff(self, val): self["standoff"] = val - # text - # ---- @property def text(self): """ @@ -127,8 +76,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -177,14 +124,11 @@ def __init__(self, arg=None, font=None, standoff=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -199,30 +143,11 @@ def __init__(self, arg=None, font=None, standoff=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("standoff", arg, standoff) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/xaxis/rangeselector/__init__.py b/plotly/graph_objs/layout/xaxis/rangeselector/__init__.py index 5f2046f921..6c9372f176 100644 --- a/plotly/graph_objs/layout/xaxis/rangeselector/__init__.py +++ b/plotly/graph_objs/layout/xaxis/rangeselector/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._button.Button", "._font.Font"] +) diff --git a/plotly/graph_objs/layout/xaxis/rangeselector/_button.py b/plotly/graph_objs/layout/xaxis/rangeselector/_button.py index 80344305e2..524bb0adbe 100644 --- a/plotly/graph_objs/layout/xaxis/rangeselector/_button.py +++ b/plotly/graph_objs/layout/xaxis/rangeselector/_button.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Button(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.xaxis.rangeselector" _path_str = "layout.xaxis.rangeselector.button" _valid_props = { @@ -18,8 +19,6 @@ class Button(_BaseLayoutHierarchyType): "visible", } - # count - # ----- @property def count(self): """ @@ -39,8 +38,6 @@ def count(self): def count(self, val): self["count"] = val - # label - # ----- @property def label(self): """ @@ -60,8 +57,6 @@ def label(self): def label(self, val): self["label"] = val - # name - # ---- @property def name(self): """ @@ -87,8 +82,6 @@ def name(self): def name(self, val): self["name"] = val - # step - # ---- @property def step(self): """ @@ -110,8 +103,6 @@ def step(self): def step(self, val): self["step"] = val - # stepmode - # -------- @property def stepmode(self): """ @@ -139,8 +130,6 @@ def stepmode(self): def stepmode(self, val): self["stepmode"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -167,8 +156,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # visible - # ------- @property def visible(self): """ @@ -187,8 +174,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -303,14 +288,11 @@ def __init__( ------- Button """ - super(Button, self).__init__("buttons") - + super().__init__("buttons") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -325,46 +307,15 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("count", arg, count) + self._set_property("label", arg, label) + self._set_property("name", arg, name) + self._set_property("step", arg, step) + self._set_property("stepmode", arg, stepmode) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("visible", arg, visible) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/xaxis/rangeselector/_font.py b/plotly/graph_objs/layout/xaxis/rangeselector/_font.py index 60fe186eea..7b4a2c2cbd 100644 --- a/plotly/graph_objs/layout/xaxis/rangeselector/_font.py +++ b/plotly/graph_objs/layout/xaxis/rangeselector/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Font(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.xaxis.rangeselector" _path_str = "layout.xaxis.rangeselector.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/xaxis/rangeslider/__init__.py b/plotly/graph_objs/layout/xaxis/rangeslider/__init__.py index 0eaf7ecc59..6218b2b7b5 100644 --- a/plotly/graph_objs/layout/xaxis/rangeslider/__init__.py +++ b/plotly/graph_objs/layout/xaxis/rangeslider/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/layout/xaxis/rangeslider/_yaxis.py b/plotly/graph_objs/layout/xaxis/rangeslider/_yaxis.py index f6d65c62d3..e35c040a1f 100644 --- a/plotly/graph_objs/layout/xaxis/rangeslider/_yaxis.py +++ b/plotly/graph_objs/layout/xaxis/rangeslider/_yaxis.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class YAxis(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.xaxis.rangeslider" _path_str = "layout.xaxis.rangeslider.yaxis" _valid_props = {"range", "rangemode"} - # range - # ----- @property def range(self): """ @@ -33,8 +32,6 @@ def range(self): def range(self, val): self["range"] = val - # rangemode - # --------- @property def rangemode(self): """ @@ -58,8 +55,6 @@ def rangemode(self): def rangemode(self, val): self["rangemode"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -98,14 +93,11 @@ def __init__(self, arg=None, range=None, rangemode=None, **kwargs): ------- YAxis """ - super(YAxis, self).__init__("yaxis") - + super().__init__("yaxis") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -120,26 +112,10 @@ def __init__(self, arg=None, range=None, rangemode=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("range", arg, range) + self._set_property("rangemode", arg, rangemode) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/xaxis/title/__init__.py b/plotly/graph_objs/layout/xaxis/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/layout/xaxis/title/__init__.py +++ b/plotly/graph_objs/layout/xaxis/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/layout/xaxis/title/_font.py b/plotly/graph_objs/layout/xaxis/title/_font.py index c03035018b..76322586cf 100644 --- a/plotly/graph_objs/layout/xaxis/title/_font.py +++ b/plotly/graph_objs/layout/xaxis/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Font(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.xaxis.title" _path_str = "layout.xaxis.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/yaxis/__init__.py b/plotly/graph_objs/layout/yaxis/__init__.py index 0772a2b9bc..91bf9f612b 100644 --- a/plotly/graph_objs/layout/yaxis/__init__.py +++ b/plotly/graph_objs/layout/yaxis/__init__.py @@ -1,26 +1,15 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._autorangeoptions import Autorangeoptions - from ._minor import Minor - from ._rangebreak import Rangebreak - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + [ + "._autorangeoptions.Autorangeoptions", + "._minor.Minor", + "._rangebreak.Rangebreak", + "._tickfont.Tickfont", + "._tickformatstop.Tickformatstop", + "._title.Title", + ], +) diff --git a/plotly/graph_objs/layout/yaxis/_autorangeoptions.py b/plotly/graph_objs/layout/yaxis/_autorangeoptions.py index 9824e15d8e..bbb50bdf80 100644 --- a/plotly/graph_objs/layout/yaxis/_autorangeoptions.py +++ b/plotly/graph_objs/layout/yaxis/_autorangeoptions.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Autorangeoptions(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.yaxis" _path_str = "layout.yaxis.autorangeoptions" _valid_props = { @@ -17,8 +18,6 @@ class Autorangeoptions(_BaseLayoutHierarchyType): "minallowed", } - # clipmax - # ------- @property def clipmax(self): """ @@ -37,8 +36,6 @@ def clipmax(self): def clipmax(self, val): self["clipmax"] = val - # clipmin - # ------- @property def clipmin(self): """ @@ -57,8 +54,6 @@ def clipmin(self): def clipmin(self, val): self["clipmin"] = val - # include - # ------- @property def include(self): """ @@ -76,8 +71,6 @@ def include(self): def include(self, val): self["include"] = val - # includesrc - # ---------- @property def includesrc(self): """ @@ -96,8 +89,6 @@ def includesrc(self): def includesrc(self, val): self["includesrc"] = val - # maxallowed - # ---------- @property def maxallowed(self): """ @@ -115,8 +106,6 @@ def maxallowed(self): def maxallowed(self, val): self["maxallowed"] = val - # minallowed - # ---------- @property def minallowed(self): """ @@ -134,8 +123,6 @@ def minallowed(self): def minallowed(self, val): self["minallowed"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -200,14 +187,11 @@ def __init__( ------- Autorangeoptions """ - super(Autorangeoptions, self).__init__("autorangeoptions") - + super().__init__("autorangeoptions") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -222,42 +206,14 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("clipmax", arg, clipmax) + self._set_property("clipmin", arg, clipmin) + self._set_property("include", arg, include) + self._set_property("includesrc", arg, includesrc) + self._set_property("maxallowed", arg, maxallowed) + self._set_property("minallowed", arg, minallowed) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/yaxis/_minor.py b/plotly/graph_objs/layout/yaxis/_minor.py index c48c590f84..f621a191f1 100644 --- a/plotly/graph_objs/layout/yaxis/_minor.py +++ b/plotly/graph_objs/layout/yaxis/_minor.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Minor(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.yaxis" _path_str = "layout.yaxis.minor" _valid_props = { @@ -25,8 +26,6 @@ class Minor(_BaseLayoutHierarchyType): "tickwidth", } - # dtick - # ----- @property def dtick(self): """ @@ -63,8 +62,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # gridcolor - # --------- @property def gridcolor(self): """ @@ -75,42 +72,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -122,8 +84,6 @@ def gridcolor(self): def gridcolor(self, val): self["gridcolor"] = val - # griddash - # -------- @property def griddash(self): """ @@ -148,8 +108,6 @@ def griddash(self): def griddash(self, val): self["griddash"] = val - # gridwidth - # --------- @property def gridwidth(self): """ @@ -168,8 +126,6 @@ def gridwidth(self): def gridwidth(self, val): self["gridwidth"] = val - # nticks - # ------ @property def nticks(self): """ @@ -192,8 +148,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # showgrid - # -------- @property def showgrid(self): """ @@ -213,8 +167,6 @@ def showgrid(self): def showgrid(self, val): self["showgrid"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -240,8 +192,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -252,42 +202,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -299,8 +214,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -319,8 +232,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -346,8 +257,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # ticks - # ----- @property def ticks(self): """ @@ -369,8 +278,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -390,8 +297,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -410,8 +315,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -430,8 +333,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -628,14 +529,11 @@ def __init__( ------- Minor """ - super(Minor, self).__init__("minor") - + super().__init__("minor") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -650,74 +548,22 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtick", arg, dtick) + self._set_property("gridcolor", arg, gridcolor) + self._set_property("griddash", arg, griddash) + self._set_property("gridwidth", arg, gridwidth) + self._set_property("nticks", arg, nticks) + self._set_property("showgrid", arg, showgrid) + self._set_property("tick0", arg, tick0) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("ticks", arg, ticks) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/yaxis/_rangebreak.py b/plotly/graph_objs/layout/yaxis/_rangebreak.py index fc61da1c7e..2c87992643 100644 --- a/plotly/graph_objs/layout/yaxis/_rangebreak.py +++ b/plotly/graph_objs/layout/yaxis/_rangebreak.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Rangebreak(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.yaxis" _path_str = "layout.yaxis.rangebreak" _valid_props = { @@ -18,8 +19,6 @@ class Rangebreak(_BaseLayoutHierarchyType): "values", } - # bounds - # ------ @property def bounds(self): """ @@ -42,8 +41,6 @@ def bounds(self): def bounds(self, val): self["bounds"] = val - # dvalue - # ------ @property def dvalue(self): """ @@ -63,8 +60,6 @@ def dvalue(self): def dvalue(self, val): self["dvalue"] = val - # enabled - # ------- @property def enabled(self): """ @@ -84,8 +79,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -111,8 +104,6 @@ def name(self): def name(self, val): self["name"] = val - # pattern - # ------- @property def pattern(self): """ @@ -141,8 +132,6 @@ def pattern(self): def pattern(self, val): self["pattern"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -169,8 +158,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # values - # ------ @property def values(self): """ @@ -192,8 +179,6 @@ def values(self): def values(self, val): self["values"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -315,14 +300,11 @@ def __init__( ------- Rangebreak """ - super(Rangebreak, self).__init__("rangebreaks") - + super().__init__("rangebreaks") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -337,46 +319,15 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bounds", arg, bounds) + self._set_property("dvalue", arg, dvalue) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("pattern", arg, pattern) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("values", arg, values) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/yaxis/_tickfont.py b/plotly/graph_objs/layout/yaxis/_tickfont.py index 9b851ae09e..0a379c2a9e 100644 --- a/plotly/graph_objs/layout/yaxis/_tickfont.py +++ b/plotly/graph_objs/layout/yaxis/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Tickfont(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.yaxis" _path_str = "layout.yaxis.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/yaxis/_tickformatstop.py b/plotly/graph_objs/layout/yaxis/_tickformatstop.py index d765ca2052..67495db325 100644 --- a/plotly/graph_objs/layout/yaxis/_tickformatstop.py +++ b/plotly/graph_objs/layout/yaxis/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Tickformatstop(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.yaxis" _path_str = "layout.yaxis.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/yaxis/_title.py b/plotly/graph_objs/layout/yaxis/_title.py index 550928ce2b..6b5273afb8 100644 --- a/plotly/graph_objs/layout/yaxis/_title.py +++ b/plotly/graph_objs/layout/yaxis/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Title(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.yaxis" _path_str = "layout.yaxis.title" _valid_props = {"font", "standoff", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # standoff - # -------- @property def standoff(self): """ @@ -106,8 +57,6 @@ def standoff(self): def standoff(self, val): self["standoff"] = val - # text - # ---- @property def text(self): """ @@ -127,8 +76,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -177,14 +124,11 @@ def __init__(self, arg=None, font=None, standoff=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -199,30 +143,11 @@ def __init__(self, arg=None, font=None, standoff=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("standoff", arg, standoff) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/layout/yaxis/title/__init__.py b/plotly/graph_objs/layout/yaxis/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/layout/yaxis/title/__init__.py +++ b/plotly/graph_objs/layout/yaxis/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/layout/yaxis/title/_font.py b/plotly/graph_objs/layout/yaxis/title/_font.py index 678a3a2706..c9f4cf075e 100644 --- a/plotly/graph_objs/layout/yaxis/title/_font.py +++ b/plotly/graph_objs/layout/yaxis/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseLayoutHierarchyType as _BaseLayoutHierarchyType import copy as _copy class Font(_BaseLayoutHierarchyType): - # class properties - # -------------------- _parent_path_str = "layout.yaxis.title" _path_str = "layout.yaxis.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseLayoutHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/mesh3d/__init__.py b/plotly/graph_objs/mesh3d/__init__.py index f3d446f51f..60c4863378 100644 --- a/plotly/graph_objs/mesh3d/__init__.py +++ b/plotly/graph_objs/mesh3d/__init__.py @@ -1,30 +1,16 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._colorbar import ColorBar - from ._contour import Contour - from ._hoverlabel import Hoverlabel - from ._legendgrouptitle import Legendgrouptitle - from ._lighting import Lighting - from ._lightposition import Lightposition - from ._stream import Stream - from . import colorbar - from . import hoverlabel - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".colorbar", ".hoverlabel", ".legendgrouptitle"], + [ + "._colorbar.ColorBar", + "._contour.Contour", + "._hoverlabel.Hoverlabel", + "._legendgrouptitle.Legendgrouptitle", + "._lighting.Lighting", + "._lightposition.Lightposition", + "._stream.Stream", + ], +) diff --git a/plotly/graph_objs/mesh3d/_colorbar.py b/plotly/graph_objs/mesh3d/_colorbar.py index e10aa7db5c..143cc846a2 100644 --- a/plotly/graph_objs/mesh3d/_colorbar.py +++ b/plotly/graph_objs/mesh3d/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "mesh3d" _path_str = "mesh3d.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -913,8 +638,6 @@ 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 @@ -925,8 +648,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -949,8 +670,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -974,8 +693,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1000,8 +717,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1020,8 +735,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1047,8 +760,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1068,8 +779,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1091,8 +800,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1112,8 +819,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1134,8 +839,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1154,8 +857,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1175,8 +876,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1195,8 +894,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1215,8 +912,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1226,18 +921,6 @@ 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 @@ -1248,8 +931,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1274,8 +955,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1298,8 +977,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1318,8 +995,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1341,8 +1016,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1367,8 +1040,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1391,8 +1062,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1411,8 +1080,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1434,8 +1101,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1985,14 +1650,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2007,214 +1669,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/mesh3d/_contour.py b/plotly/graph_objs/mesh3d/_contour.py index fdf0646c02..25c2671346 100644 --- a/plotly/graph_objs/mesh3d/_contour.py +++ b/plotly/graph_objs/mesh3d/_contour.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Contour(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "mesh3d" _path_str = "mesh3d.contour" _valid_props = {"color", "show", "width"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # show - # ---- @property def show(self): """ @@ -89,8 +51,6 @@ def show(self): def show(self, val): self["show"] = val - # width - # ----- @property def width(self): """ @@ -109,8 +69,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -143,14 +101,11 @@ def __init__(self, arg=None, color=None, show=None, width=None, **kwargs): ------- Contour """ - super(Contour, self).__init__("contour") - + super().__init__("contour") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -165,30 +120,11 @@ def __init__(self, arg=None, color=None, show=None, width=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("show", arg, show) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/mesh3d/_hoverlabel.py b/plotly/graph_objs/mesh3d/_hoverlabel.py index dfeab519dd..9ef3a06069 100644 --- a/plotly/graph_objs/mesh3d/_hoverlabel.py +++ b/plotly/graph_objs/mesh3d/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "mesh3d" _path_str = "mesh3d.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/mesh3d/_legendgrouptitle.py b/plotly/graph_objs/mesh3d/_legendgrouptitle.py index d4bf7d207e..b0eb12df69 100644 --- a/plotly/graph_objs/mesh3d/_legendgrouptitle.py +++ b/plotly/graph_objs/mesh3d/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "mesh3d" _path_str = "mesh3d.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/mesh3d/_lighting.py b/plotly/graph_objs/mesh3d/_lighting.py index 6659b4f7d9..a8568627fd 100644 --- a/plotly/graph_objs/mesh3d/_lighting.py +++ b/plotly/graph_objs/mesh3d/_lighting.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Lighting(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "mesh3d" _path_str = "mesh3d.lighting" _valid_props = { @@ -18,8 +19,6 @@ class Lighting(_BaseTraceHierarchyType): "vertexnormalsepsilon", } - # ambient - # ------- @property def ambient(self): """ @@ -39,8 +38,6 @@ def ambient(self): def ambient(self, val): self["ambient"] = val - # diffuse - # ------- @property def diffuse(self): """ @@ -60,8 +57,6 @@ def diffuse(self): def diffuse(self, val): self["diffuse"] = val - # facenormalsepsilon - # ------------------ @property def facenormalsepsilon(self): """ @@ -81,8 +76,6 @@ def facenormalsepsilon(self): def facenormalsepsilon(self, val): self["facenormalsepsilon"] = val - # fresnel - # ------- @property def fresnel(self): """ @@ -103,8 +96,6 @@ def fresnel(self): def fresnel(self, val): self["fresnel"] = val - # roughness - # --------- @property def roughness(self): """ @@ -124,8 +115,6 @@ def roughness(self): def roughness(self, val): self["roughness"] = val - # specular - # -------- @property def specular(self): """ @@ -145,8 +134,6 @@ def specular(self): def specular(self, val): self["specular"] = val - # vertexnormalsepsilon - # -------------------- @property def vertexnormalsepsilon(self): """ @@ -166,8 +153,6 @@ def vertexnormalsepsilon(self): def vertexnormalsepsilon(self, val): self["vertexnormalsepsilon"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -245,14 +230,11 @@ def __init__( ------- Lighting """ - super(Lighting, self).__init__("lighting") - + super().__init__("lighting") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -267,46 +249,15 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("ambient", arg, ambient) + self._set_property("diffuse", arg, diffuse) + self._set_property("facenormalsepsilon", arg, facenormalsepsilon) + self._set_property("fresnel", arg, fresnel) + self._set_property("roughness", arg, roughness) + self._set_property("specular", arg, specular) + self._set_property("vertexnormalsepsilon", arg, vertexnormalsepsilon) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/mesh3d/_lightposition.py b/plotly/graph_objs/mesh3d/_lightposition.py index 13b7153308..b30854bd8c 100644 --- a/plotly/graph_objs/mesh3d/_lightposition.py +++ b/plotly/graph_objs/mesh3d/_lightposition.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Lightposition(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "mesh3d" _path_str = "mesh3d.lightposition" _valid_props = {"x", "y", "z"} - # x - # - @property def x(self): """ @@ -30,8 +29,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -50,8 +47,6 @@ def y(self): def y(self, val): self["y"] = val - # z - # - @property def z(self): """ @@ -70,8 +65,6 @@ def z(self): def z(self, val): self["z"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -110,14 +103,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Lightposition """ - super(Lightposition, self).__init__("lightposition") - + super().__init__("lightposition") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -132,30 +122,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("x", arg, x) + self._set_property("y", arg, y) + self._set_property("z", arg, z) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/mesh3d/_stream.py b/plotly/graph_objs/mesh3d/_stream.py index f7d4198cbe..be3106ca68 100644 --- a/plotly/graph_objs/mesh3d/_stream.py +++ b/plotly/graph_objs/mesh3d/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "mesh3d" _path_str = "mesh3d.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -93,14 +88,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -115,26 +107,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/mesh3d/colorbar/__init__.py b/plotly/graph_objs/mesh3d/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/mesh3d/colorbar/__init__.py +++ b/plotly/graph_objs/mesh3d/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/mesh3d/colorbar/_tickfont.py b/plotly/graph_objs/mesh3d/colorbar/_tickfont.py index aba97dec3d..d5f567e982 100644 --- a/plotly/graph_objs/mesh3d/colorbar/_tickfont.py +++ b/plotly/graph_objs/mesh3d/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "mesh3d.colorbar" _path_str = "mesh3d.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/mesh3d/colorbar/_tickformatstop.py b/plotly/graph_objs/mesh3d/colorbar/_tickformatstop.py index fb0a98cabe..0998ddfab2 100644 --- a/plotly/graph_objs/mesh3d/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/mesh3d/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "mesh3d.colorbar" _path_str = "mesh3d.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/mesh3d/colorbar/_title.py b/plotly/graph_objs/mesh3d/colorbar/_title.py index 223a84cafb..b5ea3e82ab 100644 --- a/plotly/graph_objs/mesh3d/colorbar/_title.py +++ b/plotly/graph_objs/mesh3d/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "mesh3d.colorbar" _path_str = "mesh3d.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/mesh3d/colorbar/title/__init__.py b/plotly/graph_objs/mesh3d/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/mesh3d/colorbar/title/__init__.py +++ b/plotly/graph_objs/mesh3d/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/mesh3d/colorbar/title/_font.py b/plotly/graph_objs/mesh3d/colorbar/title/_font.py index c2b0ed72b7..47309f868b 100644 --- a/plotly/graph_objs/mesh3d/colorbar/title/_font.py +++ b/plotly/graph_objs/mesh3d/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "mesh3d.colorbar.title" _path_str = "mesh3d.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/mesh3d/hoverlabel/__init__.py b/plotly/graph_objs/mesh3d/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/mesh3d/hoverlabel/__init__.py +++ b/plotly/graph_objs/mesh3d/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/mesh3d/hoverlabel/_font.py b/plotly/graph_objs/mesh3d/hoverlabel/_font.py index 42d07b7c57..71a531c97b 100644 --- a/plotly/graph_objs/mesh3d/hoverlabel/_font.py +++ b/plotly/graph_objs/mesh3d/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "mesh3d.hoverlabel" _path_str = "mesh3d.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/mesh3d/legendgrouptitle/__init__.py b/plotly/graph_objs/mesh3d/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/mesh3d/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/mesh3d/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/mesh3d/legendgrouptitle/_font.py b/plotly/graph_objs/mesh3d/legendgrouptitle/_font.py index 8c6d3e267a..c7a66a7c0e 100644 --- a/plotly/graph_objs/mesh3d/legendgrouptitle/_font.py +++ b/plotly/graph_objs/mesh3d/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "mesh3d.legendgrouptitle" _path_str = "mesh3d.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/ohlc/__init__.py b/plotly/graph_objs/ohlc/__init__.py index eef010c140..4b308ef8c3 100644 --- a/plotly/graph_objs/ohlc/__init__.py +++ b/plotly/graph_objs/ohlc/__init__.py @@ -1,29 +1,15 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._decreasing import Decreasing - from ._hoverlabel import Hoverlabel - from ._increasing import Increasing - from ._legendgrouptitle import Legendgrouptitle - from ._line import Line - from ._stream import Stream - from . import decreasing - from . import hoverlabel - from . import increasing - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".decreasing", ".hoverlabel", ".increasing", ".legendgrouptitle"], + [ + "._decreasing.Decreasing", + "._hoverlabel.Hoverlabel", + "._increasing.Increasing", + "._legendgrouptitle.Legendgrouptitle", + "._line.Line", + "._stream.Stream", + ], +) diff --git a/plotly/graph_objs/ohlc/_decreasing.py b/plotly/graph_objs/ohlc/_decreasing.py index 77bb5be5d6..fe95dae848 100644 --- a/plotly/graph_objs/ohlc/_decreasing.py +++ b/plotly/graph_objs/ohlc/_decreasing.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Decreasing(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "ohlc" _path_str = "ohlc.decreasing" _valid_props = {"line"} - # line - # ---- @property def line(self): """ @@ -21,18 +20,6 @@ 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 @@ -43,8 +30,6 @@ def line(self): def line(self, val): self["line"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -71,14 +56,11 @@ def __init__(self, arg=None, line=None, **kwargs): ------- Decreasing """ - super(Decreasing, self).__init__("decreasing") - + super().__init__("decreasing") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -93,22 +75,9 @@ def __init__(self, arg=None, line=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("line", arg, line) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/ohlc/_hoverlabel.py b/plotly/graph_objs/ohlc/_hoverlabel.py index c28c687109..73117e09ce 100644 --- a/plotly/graph_objs/ohlc/_hoverlabel.py +++ b/plotly/graph_objs/ohlc/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "ohlc" _path_str = "ohlc.hoverlabel" _valid_props = { @@ -21,8 +22,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "split", } - # align - # ----- @property def align(self): """ @@ -45,8 +44,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -65,8 +62,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -77,42 +72,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -125,8 +85,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -145,8 +103,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -157,42 +113,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -205,8 +126,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -226,8 +145,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -239,79 +156,6 @@ 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 @@ -322,8 +166,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -349,8 +191,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -370,8 +210,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # split - # ----- @property def split(self): """ @@ -391,8 +229,6 @@ def split(self): def split(self, val): self["split"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -497,14 +333,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -519,58 +352,18 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) + self._set_property("split", arg, split) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/ohlc/_increasing.py b/plotly/graph_objs/ohlc/_increasing.py index 41f7cb8666..bd218e3a9e 100644 --- a/plotly/graph_objs/ohlc/_increasing.py +++ b/plotly/graph_objs/ohlc/_increasing.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Increasing(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "ohlc" _path_str = "ohlc.increasing" _valid_props = {"line"} - # line - # ---- @property def line(self): """ @@ -21,18 +20,6 @@ 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 @@ -43,8 +30,6 @@ def line(self): def line(self, val): self["line"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -71,14 +56,11 @@ def __init__(self, arg=None, line=None, **kwargs): ------- Increasing """ - super(Increasing, self).__init__("increasing") - + super().__init__("increasing") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -93,22 +75,9 @@ def __init__(self, arg=None, line=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("line", arg, line) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/ohlc/_legendgrouptitle.py b/plotly/graph_objs/ohlc/_legendgrouptitle.py index 9d81684613..abd8266b8f 100644 --- a/plotly/graph_objs/ohlc/_legendgrouptitle.py +++ b/plotly/graph_objs/ohlc/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "ohlc" _path_str = "ohlc.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/ohlc/_line.py b/plotly/graph_objs/ohlc/_line.py index 84916db5c8..5e43603910 100644 --- a/plotly/graph_objs/ohlc/_line.py +++ b/plotly/graph_objs/ohlc/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "ohlc" _path_str = "ohlc.line" _valid_props = {"dash", "width"} - # dash - # ---- @property def dash(self): """ @@ -38,8 +37,6 @@ def dash(self): def dash(self, val): self["dash"] = val - # width - # ----- @property def width(self): """ @@ -60,8 +57,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -103,14 +98,11 @@ def __init__(self, arg=None, dash=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -125,26 +117,10 @@ def __init__(self, arg=None, dash=None, width=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dash", arg, dash) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/ohlc/_stream.py b/plotly/graph_objs/ohlc/_stream.py index 9267a3c3ef..97b72d8acb 100644 --- a/plotly/graph_objs/ohlc/_stream.py +++ b/plotly/graph_objs/ohlc/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "ohlc" _path_str = "ohlc.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -93,14 +88,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -115,26 +107,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/ohlc/decreasing/__init__.py b/plotly/graph_objs/ohlc/decreasing/__init__.py index 8722c15a2b..579ff002ce 100644 --- a/plotly/graph_objs/ohlc/decreasing/__init__.py +++ b/plotly/graph_objs/ohlc/decreasing/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/ohlc/decreasing/_line.py b/plotly/graph_objs/ohlc/decreasing/_line.py index 099e75438a..a4e4cb9640 100644 --- a/plotly/graph_objs/ohlc/decreasing/_line.py +++ b/plotly/graph_objs/ohlc/decreasing/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "ohlc.decreasing" _path_str = "ohlc.decreasing.line" _valid_props = {"color", "dash", "width"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # dash - # ---- @property def dash(self): """ @@ -95,8 +57,6 @@ def dash(self): def dash(self, val): self["dash"] = val - # width - # ----- @property def width(self): """ @@ -115,8 +75,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -155,14 +113,11 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -177,30 +132,11 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("dash", arg, dash) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/ohlc/hoverlabel/__init__.py b/plotly/graph_objs/ohlc/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/ohlc/hoverlabel/__init__.py +++ b/plotly/graph_objs/ohlc/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/ohlc/hoverlabel/_font.py b/plotly/graph_objs/ohlc/hoverlabel/_font.py index da3d4b93a8..9aa914b744 100644 --- a/plotly/graph_objs/ohlc/hoverlabel/_font.py +++ b/plotly/graph_objs/ohlc/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "ohlc.hoverlabel" _path_str = "ohlc.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/ohlc/increasing/__init__.py b/plotly/graph_objs/ohlc/increasing/__init__.py index 8722c15a2b..579ff002ce 100644 --- a/plotly/graph_objs/ohlc/increasing/__init__.py +++ b/plotly/graph_objs/ohlc/increasing/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/ohlc/increasing/_line.py b/plotly/graph_objs/ohlc/increasing/_line.py index ff05abf073..9a23068139 100644 --- a/plotly/graph_objs/ohlc/increasing/_line.py +++ b/plotly/graph_objs/ohlc/increasing/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "ohlc.increasing" _path_str = "ohlc.increasing.line" _valid_props = {"color", "dash", "width"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # dash - # ---- @property def dash(self): """ @@ -95,8 +57,6 @@ def dash(self): def dash(self, val): self["dash"] = val - # width - # ----- @property def width(self): """ @@ -115,8 +75,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -155,14 +113,11 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -177,30 +132,11 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("dash", arg, dash) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/ohlc/legendgrouptitle/__init__.py b/plotly/graph_objs/ohlc/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/ohlc/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/ohlc/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/ohlc/legendgrouptitle/_font.py b/plotly/graph_objs/ohlc/legendgrouptitle/_font.py index 2e02263e14..7fd2fd8091 100644 --- a/plotly/graph_objs/ohlc/legendgrouptitle/_font.py +++ b/plotly/graph_objs/ohlc/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "ohlc.legendgrouptitle" _path_str = "ohlc.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/parcats/__init__.py b/plotly/graph_objs/parcats/__init__.py index 97248e8a01..5760d95146 100644 --- a/plotly/graph_objs/parcats/__init__.py +++ b/plotly/graph_objs/parcats/__init__.py @@ -1,29 +1,16 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._dimension import Dimension - from ._domain import Domain - from ._labelfont import Labelfont - from ._legendgrouptitle import Legendgrouptitle - from ._line import Line - from ._stream import Stream - from ._tickfont import Tickfont - from . import legendgrouptitle - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".legendgrouptitle", ".line"], + [ + "._dimension.Dimension", + "._domain.Domain", + "._labelfont.Labelfont", + "._legendgrouptitle.Legendgrouptitle", + "._line.Line", + "._stream.Stream", + "._tickfont.Tickfont", + ], +) diff --git a/plotly/graph_objs/parcats/_dimension.py b/plotly/graph_objs/parcats/_dimension.py index 7b1e105823..38127e6886 100644 --- a/plotly/graph_objs/parcats/_dimension.py +++ b/plotly/graph_objs/parcats/_dimension.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Dimension(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "parcats" _path_str = "parcats.dimension" _valid_props = { @@ -21,8 +22,6 @@ class Dimension(_BaseTraceHierarchyType): "visible", } - # categoryarray - # ------------- @property def categoryarray(self): """ @@ -43,8 +42,6 @@ def categoryarray(self): def categoryarray(self, val): self["categoryarray"] = val - # categoryarraysrc - # ---------------- @property def categoryarraysrc(self): """ @@ -64,8 +61,6 @@ def categoryarraysrc(self): def categoryarraysrc(self, val): self["categoryarraysrc"] = val - # categoryorder - # ------------- @property def categoryorder(self): """ @@ -96,8 +91,6 @@ def categoryorder(self): def categoryorder(self, val): self["categoryorder"] = val - # displayindex - # ------------ @property def displayindex(self): """ @@ -117,8 +110,6 @@ def displayindex(self): def displayindex(self, val): self["displayindex"] = val - # label - # ----- @property def label(self): """ @@ -138,8 +129,6 @@ def label(self): def label(self, val): self["label"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -161,8 +150,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -181,8 +168,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # values - # ------ @property def values(self): """ @@ -204,8 +189,6 @@ def values(self): def values(self, val): self["values"] = val - # valuessrc - # --------- @property def valuessrc(self): """ @@ -224,8 +207,6 @@ def valuessrc(self): def valuessrc(self, val): self["valuessrc"] = val - # visible - # ------- @property def visible(self): """ @@ -245,8 +226,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -371,14 +350,11 @@ def __init__( ------- Dimension """ - super(Dimension, self).__init__("dimensions") - + super().__init__("dimensions") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -393,58 +369,18 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("categoryarray", arg, categoryarray) + self._set_property("categoryarraysrc", arg, categoryarraysrc) + self._set_property("categoryorder", arg, categoryorder) + self._set_property("displayindex", arg, displayindex) + self._set_property("label", arg, label) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("values", arg, values) + self._set_property("valuessrc", arg, valuessrc) + self._set_property("visible", arg, visible) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/parcats/_domain.py b/plotly/graph_objs/parcats/_domain.py index 7d55c70b7a..e8a75a2291 100644 --- a/plotly/graph_objs/parcats/_domain.py +++ b/plotly/graph_objs/parcats/_domain.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Domain(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "parcats" _path_str = "parcats.domain" _valid_props = {"column", "row", "x", "y"} - # column - # ------ @property def column(self): """ @@ -32,8 +31,6 @@ def column(self): def column(self, val): self["column"] = val - # row - # --- @property def row(self): """ @@ -54,8 +51,6 @@ def row(self): def row(self, val): self["row"] = val - # x - # - @property def x(self): """ @@ -80,8 +75,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -106,8 +99,6 @@ def y(self): def y(self, val): self["y"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -152,14 +143,11 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") - + super().__init__("domain") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -174,34 +162,12 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("column", arg, column) + self._set_property("row", arg, row) + self._set_property("x", arg, x) + self._set_property("y", arg, y) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/parcats/_labelfont.py b/plotly/graph_objs/parcats/_labelfont.py index a701d114d2..f13f98f24d 100644 --- a/plotly/graph_objs/parcats/_labelfont.py +++ b/plotly/graph_objs/parcats/_labelfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Labelfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "parcats" _path_str = "parcats.labelfont" _valid_props = { @@ -20,8 +21,6 @@ class Labelfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Labelfont """ - super(Labelfont, self).__init__("labelfont") - + super().__init__("labelfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/parcats/_legendgrouptitle.py b/plotly/graph_objs/parcats/_legendgrouptitle.py index bd0472960e..315048a77f 100644 --- a/plotly/graph_objs/parcats/_legendgrouptitle.py +++ b/plotly/graph_objs/parcats/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "parcats" _path_str = "parcats.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/parcats/_line.py b/plotly/graph_objs/parcats/_line.py index 63058ebe06..787cfc3e65 100644 --- a/plotly/graph_objs/parcats/_line.py +++ b/plotly/graph_objs/parcats/_line.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "parcats" _path_str = "parcats.line" _valid_props = { @@ -25,8 +26,6 @@ class Line(_BaseTraceHierarchyType): "showscale", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -51,8 +50,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -75,8 +72,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -98,8 +93,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -122,8 +115,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -145,8 +136,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # color - # ----- @property def color(self): """ @@ -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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to parcats.line.colorscale - A list or array of any of the above @@ -210,8 +164,6 @@ def color(self): def color(self, val): self["color"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -237,8 +189,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -248,273 +198,6 @@ 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 @@ -525,8 +208,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -579,8 +260,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -599,8 +278,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -645,8 +322,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -668,8 +343,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # shape - # ----- @property def shape(self): """ @@ -691,8 +364,6 @@ def shape(self): def shape(self, val): self["shape"] = val - # showscale - # --------- @property def showscale(self): """ @@ -713,8 +384,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -974,14 +643,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -996,74 +662,22 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("color", arg, color) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("reversescale", arg, reversescale) + self._set_property("shape", arg, shape) + self._set_property("showscale", arg, showscale) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/parcats/_stream.py b/plotly/graph_objs/parcats/_stream.py index b6e389c866..04cd076845 100644 --- a/plotly/graph_objs/parcats/_stream.py +++ b/plotly/graph_objs/parcats/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "parcats" _path_str = "parcats.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -94,14 +89,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -116,26 +108,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/parcats/_tickfont.py b/plotly/graph_objs/parcats/_tickfont.py index b017ce51e6..5d0f9a8fbe 100644 --- a/plotly/graph_objs/parcats/_tickfont.py +++ b/plotly/graph_objs/parcats/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "parcats" _path_str = "parcats.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/parcats/legendgrouptitle/__init__.py b/plotly/graph_objs/parcats/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/parcats/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/parcats/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/parcats/legendgrouptitle/_font.py b/plotly/graph_objs/parcats/legendgrouptitle/_font.py index 99d15aa1ad..f982fc928c 100644 --- a/plotly/graph_objs/parcats/legendgrouptitle/_font.py +++ b/plotly/graph_objs/parcats/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "parcats.legendgrouptitle" _path_str = "parcats.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/parcats/line/__init__.py b/plotly/graph_objs/parcats/line/__init__.py index 27dfc9e52f..5e1805d8fa 100644 --- a/plotly/graph_objs/parcats/line/__init__.py +++ b/plotly/graph_objs/parcats/line/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [".colorbar"], ["._colorbar.ColorBar"] +) diff --git a/plotly/graph_objs/parcats/line/_colorbar.py b/plotly/graph_objs/parcats/line/_colorbar.py index 82337cb2db..09a32aa4d6 100644 --- a/plotly/graph_objs/parcats/line/_colorbar.py +++ b/plotly/graph_objs/parcats/line/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "parcats.line" _path_str = "parcats.line.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -913,8 +638,6 @@ 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 @@ -925,8 +648,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -949,8 +670,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -974,8 +693,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1000,8 +717,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1020,8 +735,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1047,8 +760,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1068,8 +779,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1091,8 +800,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1112,8 +819,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1134,8 +839,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1154,8 +857,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1175,8 +876,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1195,8 +894,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1215,8 +912,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1226,18 +921,6 @@ 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 @@ -1248,8 +931,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1274,8 +955,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1298,8 +977,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1318,8 +995,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1341,8 +1016,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1367,8 +1040,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1391,8 +1062,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1411,8 +1080,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1434,8 +1101,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1985,14 +1650,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2007,214 +1669,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/parcats/line/colorbar/__init__.py b/plotly/graph_objs/parcats/line/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/parcats/line/colorbar/__init__.py +++ b/plotly/graph_objs/parcats/line/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/parcats/line/colorbar/_tickfont.py b/plotly/graph_objs/parcats/line/colorbar/_tickfont.py index e4bbb61a59..fe9ee34895 100644 --- a/plotly/graph_objs/parcats/line/colorbar/_tickfont.py +++ b/plotly/graph_objs/parcats/line/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "parcats.line.colorbar" _path_str = "parcats.line.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/parcats/line/colorbar/_tickformatstop.py b/plotly/graph_objs/parcats/line/colorbar/_tickformatstop.py index 792d45da52..2f111b5e7a 100644 --- a/plotly/graph_objs/parcats/line/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/parcats/line/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "parcats.line.colorbar" _path_str = "parcats.line.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/parcats/line/colorbar/_title.py b/plotly/graph_objs/parcats/line/colorbar/_title.py index 0e202a829f..c1f17647d6 100644 --- a/plotly/graph_objs/parcats/line/colorbar/_title.py +++ b/plotly/graph_objs/parcats/line/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "parcats.line.colorbar" _path_str = "parcats.line.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/parcats/line/colorbar/title/__init__.py b/plotly/graph_objs/parcats/line/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/parcats/line/colorbar/title/__init__.py +++ b/plotly/graph_objs/parcats/line/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/parcats/line/colorbar/title/_font.py b/plotly/graph_objs/parcats/line/colorbar/title/_font.py index 8758ccea9f..24804f764f 100644 --- a/plotly/graph_objs/parcats/line/colorbar/title/_font.py +++ b/plotly/graph_objs/parcats/line/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "parcats.line.colorbar.title" _path_str = "parcats.line.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/parcoords/__init__.py b/plotly/graph_objs/parcoords/__init__.py index 61ee5f1d40..174389e645 100644 --- a/plotly/graph_objs/parcoords/__init__.py +++ b/plotly/graph_objs/parcoords/__init__.py @@ -1,34 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._dimension import Dimension - from ._domain import Domain - from ._labelfont import Labelfont - from ._legendgrouptitle import Legendgrouptitle - from ._line import Line - from ._rangefont import Rangefont - from ._stream import Stream - from ._tickfont import Tickfont - from ._unselected import Unselected - from . import legendgrouptitle - from . import line - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/parcoords/_dimension.py b/plotly/graph_objs/parcoords/_dimension.py index 61e6334eef..6ce8184be8 100644 --- a/plotly/graph_objs/parcoords/_dimension.py +++ b/plotly/graph_objs/parcoords/_dimension.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Dimension(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "parcoords" _path_str = "parcoords.dimension" _valid_props = { @@ -25,8 +26,6 @@ class Dimension(_BaseTraceHierarchyType): "visible", } - # constraintrange - # --------------- @property def constraintrange(self): """ @@ -56,8 +55,6 @@ def constraintrange(self): def constraintrange(self, val): self["constraintrange"] = val - # label - # ----- @property def label(self): """ @@ -77,8 +74,6 @@ def label(self): def label(self, val): self["label"] = val - # multiselect - # ----------- @property def multiselect(self): """ @@ -97,8 +92,6 @@ def multiselect(self): def multiselect(self, val): self["multiselect"] = val - # name - # ---- @property def name(self): """ @@ -124,8 +117,6 @@ def name(self): def name(self, val): self["name"] = val - # range - # ----- @property def range(self): """ @@ -151,8 +142,6 @@ def range(self): def range(self, val): self["range"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -179,8 +168,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -209,8 +196,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -229,8 +214,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -249,8 +232,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -269,8 +250,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -289,8 +268,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # values - # ------ @property def values(self): """ @@ -312,8 +289,6 @@ def values(self): def values(self, val): self["values"] = val - # valuessrc - # --------- @property def valuessrc(self): """ @@ -332,8 +307,6 @@ def valuessrc(self): def valuessrc(self, val): self["valuessrc"] = val - # visible - # ------- @property def visible(self): """ @@ -353,8 +326,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -538,14 +509,11 @@ def __init__( ------- Dimension """ - super(Dimension, self).__init__("dimensions") - + super().__init__("dimensions") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -560,74 +528,22 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("constraintrange", arg, constraintrange) + self._set_property("label", arg, label) + self._set_property("multiselect", arg, multiselect) + self._set_property("name", arg, name) + self._set_property("range", arg, range) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("tickformat", arg, tickformat) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("values", arg, values) + self._set_property("valuessrc", arg, valuessrc) + self._set_property("visible", arg, visible) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/parcoords/_domain.py b/plotly/graph_objs/parcoords/_domain.py index cec9642abe..4879e9ea60 100644 --- a/plotly/graph_objs/parcoords/_domain.py +++ b/plotly/graph_objs/parcoords/_domain.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Domain(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "parcoords" _path_str = "parcoords.domain" _valid_props = {"column", "row", "x", "y"} - # column - # ------ @property def column(self): """ @@ -32,8 +31,6 @@ def column(self): def column(self, val): self["column"] = val - # row - # --- @property def row(self): """ @@ -54,8 +51,6 @@ def row(self): def row(self, val): self["row"] = val - # x - # - @property def x(self): """ @@ -80,8 +75,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -106,8 +99,6 @@ def y(self): def y(self, val): self["y"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -152,14 +143,11 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") - + super().__init__("domain") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -174,34 +162,12 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("column", arg, column) + self._set_property("row", arg, row) + self._set_property("x", arg, x) + self._set_property("y", arg, y) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/parcoords/_labelfont.py b/plotly/graph_objs/parcoords/_labelfont.py index a8304d126c..dd5ff335a8 100644 --- a/plotly/graph_objs/parcoords/_labelfont.py +++ b/plotly/graph_objs/parcoords/_labelfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Labelfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "parcoords" _path_str = "parcoords.labelfont" _valid_props = { @@ -20,8 +21,6 @@ class Labelfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Labelfont """ - super(Labelfont, self).__init__("labelfont") - + super().__init__("labelfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/parcoords/_legendgrouptitle.py b/plotly/graph_objs/parcoords/_legendgrouptitle.py index f667d43b06..95eaa05aa1 100644 --- a/plotly/graph_objs/parcoords/_legendgrouptitle.py +++ b/plotly/graph_objs/parcoords/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "parcoords" _path_str = "parcoords.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/parcoords/_line.py b/plotly/graph_objs/parcoords/_line.py index ea91782124..5a0e73c048 100644 --- a/plotly/graph_objs/parcoords/_line.py +++ b/plotly/graph_objs/parcoords/_line.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "parcoords" _path_str = "parcoords.line" _valid_props = { @@ -23,8 +24,6 @@ class Line(_BaseTraceHierarchyType): "showscale", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -49,8 +48,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -73,8 +70,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -96,8 +91,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -120,8 +113,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -143,8 +134,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # color - # ----- @property def color(self): """ @@ -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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to parcoords.line.colorscale - A list or array of any of the above @@ -208,8 +162,6 @@ def color(self): def color(self, val): self["color"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -235,8 +187,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -246,273 +196,6 @@ 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 @@ -523,8 +206,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -577,8 +258,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -597,8 +276,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -620,8 +297,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # showscale - # --------- @property def showscale(self): """ @@ -642,8 +317,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -832,14 +505,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -854,66 +524,20 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("color", arg, color) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("reversescale", arg, reversescale) + self._set_property("showscale", arg, showscale) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/parcoords/_rangefont.py b/plotly/graph_objs/parcoords/_rangefont.py index d0dcb16b33..0c9513b3b8 100644 --- a/plotly/graph_objs/parcoords/_rangefont.py +++ b/plotly/graph_objs/parcoords/_rangefont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Rangefont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "parcoords" _path_str = "parcoords.rangefont" _valid_props = { @@ -20,8 +21,6 @@ class Rangefont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Rangefont """ - super(Rangefont, self).__init__("rangefont") - + super().__init__("rangefont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/parcoords/_stream.py b/plotly/graph_objs/parcoords/_stream.py index a9b1a52f27..2e5d68951c 100644 --- a/plotly/graph_objs/parcoords/_stream.py +++ b/plotly/graph_objs/parcoords/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "parcoords" _path_str = "parcoords.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -94,14 +89,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -116,26 +108,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/parcoords/_tickfont.py b/plotly/graph_objs/parcoords/_tickfont.py index 122825fb05..356c288b20 100644 --- a/plotly/graph_objs/parcoords/_tickfont.py +++ b/plotly/graph_objs/parcoords/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "parcoords" _path_str = "parcoords.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/parcoords/_unselected.py b/plotly/graph_objs/parcoords/_unselected.py index b6afc15d1c..c7d5c2d9e4 100644 --- a/plotly/graph_objs/parcoords/_unselected.py +++ b/plotly/graph_objs/parcoords/_unselected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Unselected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "parcoords" _path_str = "parcoords.unselected" _valid_props = {"line"} - # line - # ---- @property def line(self): """ @@ -21,17 +20,6 @@ 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 @@ -42,8 +30,6 @@ def line(self): def line(self, val): self["line"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -70,14 +56,11 @@ def __init__(self, arg=None, line=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") - + super().__init__("unselected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -92,22 +75,9 @@ def __init__(self, arg=None, line=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("line", arg, line) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/parcoords/legendgrouptitle/__init__.py b/plotly/graph_objs/parcoords/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/parcoords/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/parcoords/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/parcoords/legendgrouptitle/_font.py b/plotly/graph_objs/parcoords/legendgrouptitle/_font.py index 43406e96f3..4e748d86d3 100644 --- a/plotly/graph_objs/parcoords/legendgrouptitle/_font.py +++ b/plotly/graph_objs/parcoords/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "parcoords.legendgrouptitle" _path_str = "parcoords.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/parcoords/line/__init__.py b/plotly/graph_objs/parcoords/line/__init__.py index 27dfc9e52f..5e1805d8fa 100644 --- a/plotly/graph_objs/parcoords/line/__init__.py +++ b/plotly/graph_objs/parcoords/line/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [".colorbar"], ["._colorbar.ColorBar"] +) diff --git a/plotly/graph_objs/parcoords/line/_colorbar.py b/plotly/graph_objs/parcoords/line/_colorbar.py index 0b2e3b6a18..1d8436f755 100644 --- a/plotly/graph_objs/parcoords/line/_colorbar.py +++ b/plotly/graph_objs/parcoords/line/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "parcoords.line" _path_str = "parcoords.line.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -913,8 +638,6 @@ 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 @@ -925,8 +648,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -949,8 +670,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -974,8 +693,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1000,8 +717,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1020,8 +735,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1047,8 +760,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1068,8 +779,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1091,8 +800,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1112,8 +819,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1134,8 +839,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1154,8 +857,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1175,8 +876,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1195,8 +894,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1215,8 +912,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1226,18 +921,6 @@ 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 @@ -1248,8 +931,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1274,8 +955,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1298,8 +977,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1318,8 +995,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1341,8 +1016,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1367,8 +1040,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1391,8 +1062,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1411,8 +1080,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1434,8 +1101,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1985,14 +1650,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2007,214 +1669,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/parcoords/line/colorbar/__init__.py b/plotly/graph_objs/parcoords/line/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/parcoords/line/colorbar/__init__.py +++ b/plotly/graph_objs/parcoords/line/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/parcoords/line/colorbar/_tickfont.py b/plotly/graph_objs/parcoords/line/colorbar/_tickfont.py index 9214f96fc0..b3988ca49d 100644 --- a/plotly/graph_objs/parcoords/line/colorbar/_tickfont.py +++ b/plotly/graph_objs/parcoords/line/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "parcoords.line.colorbar" _path_str = "parcoords.line.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/parcoords/line/colorbar/_tickformatstop.py b/plotly/graph_objs/parcoords/line/colorbar/_tickformatstop.py index 91e8d618f6..b8e0455d48 100644 --- a/plotly/graph_objs/parcoords/line/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/parcoords/line/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "parcoords.line.colorbar" _path_str = "parcoords.line.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/parcoords/line/colorbar/_title.py b/plotly/graph_objs/parcoords/line/colorbar/_title.py index 61d3ae5400..fbaf42775e 100644 --- a/plotly/graph_objs/parcoords/line/colorbar/_title.py +++ b/plotly/graph_objs/parcoords/line/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "parcoords.line.colorbar" _path_str = "parcoords.line.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/parcoords/line/colorbar/title/__init__.py b/plotly/graph_objs/parcoords/line/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/parcoords/line/colorbar/title/__init__.py +++ b/plotly/graph_objs/parcoords/line/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/parcoords/line/colorbar/title/_font.py b/plotly/graph_objs/parcoords/line/colorbar/title/_font.py index abd968c6ce..7cb19cb80a 100644 --- a/plotly/graph_objs/parcoords/line/colorbar/title/_font.py +++ b/plotly/graph_objs/parcoords/line/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "parcoords.line.colorbar.title" _path_str = "parcoords.line.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/parcoords/unselected/__init__.py b/plotly/graph_objs/parcoords/unselected/__init__.py index 8722c15a2b..579ff002ce 100644 --- a/plotly/graph_objs/parcoords/unselected/__init__.py +++ b/plotly/graph_objs/parcoords/unselected/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/parcoords/unselected/_line.py b/plotly/graph_objs/parcoords/unselected/_line.py index a71fe07e08..fa0f67e9ee 100644 --- a/plotly/graph_objs/parcoords/unselected/_line.py +++ b/plotly/graph_objs/parcoords/unselected/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "parcoords.unselected" _path_str = "parcoords.unselected.line" _valid_props = {"color", "opacity"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # opacity - # ------- @property def opacity(self): """ @@ -92,8 +54,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +90,11 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +109,10 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("opacity", arg, opacity) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/pie/__init__.py b/plotly/graph_objs/pie/__init__.py index 7f472afeb9..dd82665ec5 100644 --- a/plotly/graph_objs/pie/__init__.py +++ b/plotly/graph_objs/pie/__init__.py @@ -1,35 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._domain import Domain - from ._hoverlabel import Hoverlabel - from ._insidetextfont import Insidetextfont - from ._legendgrouptitle import Legendgrouptitle - from ._marker import Marker - from ._outsidetextfont import Outsidetextfont - from ._stream import Stream - from ._textfont import Textfont - from ._title import Title - from . import hoverlabel - from . import legendgrouptitle - from . import marker - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/pie/_domain.py b/plotly/graph_objs/pie/_domain.py index 66bbaa0e23..fe923ad911 100644 --- a/plotly/graph_objs/pie/_domain.py +++ b/plotly/graph_objs/pie/_domain.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Domain(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "pie" _path_str = "pie.domain" _valid_props = {"column", "row", "x", "y"} - # column - # ------ @property def column(self): """ @@ -32,8 +31,6 @@ def column(self): def column(self, val): self["column"] = val - # row - # --- @property def row(self): """ @@ -54,8 +51,6 @@ def row(self): def row(self, val): self["row"] = val - # x - # - @property def x(self): """ @@ -80,8 +75,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -105,8 +98,6 @@ def y(self): def y(self, val): self["y"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -150,14 +141,11 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") - + super().__init__("domain") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -172,34 +160,12 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("column", arg, column) + self._set_property("row", arg, row) + self._set_property("x", arg, x) + self._set_property("y", arg, y) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/pie/_hoverlabel.py b/plotly/graph_objs/pie/_hoverlabel.py index 6eea4b083d..9368daed1f 100644 --- a/plotly/graph_objs/pie/_hoverlabel.py +++ b/plotly/graph_objs/pie/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "pie" _path_str = "pie.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/pie/_insidetextfont.py b/plotly/graph_objs/pie/_insidetextfont.py index 405e49af4a..89f6e2b401 100644 --- a/plotly/graph_objs/pie/_insidetextfont.py +++ b/plotly/graph_objs/pie/_insidetextfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Insidetextfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "pie" _path_str = "pie.insidetextfont" _valid_props = { @@ -29,8 +30,6 @@ class Insidetextfont(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Insidetextfont """ - super(Insidetextfont, self).__init__("insidetextfont") - + super().__init__("insidetextfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/pie/_legendgrouptitle.py b/plotly/graph_objs/pie/_legendgrouptitle.py index 6e519996c6..43c4f3fcfa 100644 --- a/plotly/graph_objs/pie/_legendgrouptitle.py +++ b/plotly/graph_objs/pie/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "pie" _path_str = "pie.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/pie/_marker.py b/plotly/graph_objs/pie/_marker.py index 5dc68dd8e2..eab96c8ee9 100644 --- a/plotly/graph_objs/pie/_marker.py +++ b/plotly/graph_objs/pie/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "pie" _path_str = "pie.marker" _valid_props = {"colors", "colorssrc", "line", "pattern"} - # colors - # ------ @property def colors(self): """ @@ -31,8 +30,6 @@ def colors(self): def colors(self, val): self["colors"] = val - # colorssrc - # --------- @property def colorssrc(self): """ @@ -51,8 +48,6 @@ def colorssrc(self): def colorssrc(self, val): self["colorssrc"] = val - # line - # ---- @property def line(self): """ @@ -62,21 +57,6 @@ 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 @@ -87,8 +67,6 @@ def line(self): def line(self, val): self["line"] = val - # pattern - # ------- @property def pattern(self): """ @@ -100,57 +78,6 @@ 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 @@ -161,8 +88,6 @@ def pattern(self): def pattern(self, val): self["pattern"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -208,14 +133,11 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -230,34 +152,12 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("colors", arg, colors) + self._set_property("colorssrc", arg, colorssrc) + self._set_property("line", arg, line) + self._set_property("pattern", arg, pattern) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/pie/_outsidetextfont.py b/plotly/graph_objs/pie/_outsidetextfont.py index 2b989c8eee..fccb71d800 100644 --- a/plotly/graph_objs/pie/_outsidetextfont.py +++ b/plotly/graph_objs/pie/_outsidetextfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Outsidetextfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "pie" _path_str = "pie.outsidetextfont" _valid_props = { @@ -29,8 +30,6 @@ class Outsidetextfont(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Outsidetextfont """ - super(Outsidetextfont, self).__init__("outsidetextfont") - + super().__init__("outsidetextfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/pie/_stream.py b/plotly/graph_objs/pie/_stream.py index 258d1201fb..e9de4785dd 100644 --- a/plotly/graph_objs/pie/_stream.py +++ b/plotly/graph_objs/pie/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "pie" _path_str = "pie.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -93,14 +88,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -115,26 +107,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/pie/_textfont.py b/plotly/graph_objs/pie/_textfont.py index dd100565b6..68b2f63145 100644 --- a/plotly/graph_objs/pie/_textfont.py +++ b/plotly/graph_objs/pie/_textfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "pie" _path_str = "pie.textfont" _valid_props = { @@ -29,8 +30,6 @@ class Textfont(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -575,18 +489,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -638,14 +545,11 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -660,90 +564,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/pie/_title.py b/plotly/graph_objs/pie/_title.py index a353059e41..f754e4d8cc 100644 --- a/plotly/graph_objs/pie/_title.py +++ b/plotly/graph_objs/pie/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "pie" _path_str = "pie.title" _valid_props = {"font", "position", "text"} - # font - # ---- @property def font(self): """ @@ -23,79 +22,6 @@ 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 @@ -106,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # position - # -------- @property def position(self): """ @@ -128,8 +52,6 @@ def position(self): def position(self, val): self["position"] = val - # text - # ---- @property def text(self): """ @@ -150,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -185,14 +105,11 @@ def __init__(self, arg=None, font=None, position=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -207,30 +124,11 @@ def __init__(self, arg=None, font=None, position=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("position", arg, position) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/pie/hoverlabel/__init__.py b/plotly/graph_objs/pie/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/pie/hoverlabel/__init__.py +++ b/plotly/graph_objs/pie/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/pie/hoverlabel/_font.py b/plotly/graph_objs/pie/hoverlabel/_font.py index 4dbd06c8e3..1e12e5233e 100644 --- a/plotly/graph_objs/pie/hoverlabel/_font.py +++ b/plotly/graph_objs/pie/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "pie.hoverlabel" _path_str = "pie.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/pie/legendgrouptitle/__init__.py b/plotly/graph_objs/pie/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/pie/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/pie/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/pie/legendgrouptitle/_font.py b/plotly/graph_objs/pie/legendgrouptitle/_font.py index f06c6ce659..a0c9de3405 100644 --- a/plotly/graph_objs/pie/legendgrouptitle/_font.py +++ b/plotly/graph_objs/pie/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "pie.legendgrouptitle" _path_str = "pie.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/pie/marker/__init__.py b/plotly/graph_objs/pie/marker/__init__.py index 9f8ac2640c..4e5d01c99b 100644 --- a/plotly/graph_objs/pie/marker/__init__.py +++ b/plotly/graph_objs/pie/marker/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._line.Line", "._pattern.Pattern"] +) diff --git a/plotly/graph_objs/pie/marker/_line.py b/plotly/graph_objs/pie/marker/_line.py index 01e91301af..c43366e788 100644 --- a/plotly/graph_objs/pie/marker/_line.py +++ b/plotly/graph_objs/pie/marker/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "pie.marker" _path_str = "pie.marker.line" _valid_props = {"color", "colorsrc", "width", "widthsrc"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -90,8 +52,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # width - # ----- @property def width(self): """ @@ -111,8 +71,6 @@ def width(self): def width(self, val): self["width"] = val - # widthsrc - # -------- @property def widthsrc(self): """ @@ -131,8 +89,6 @@ def widthsrc(self): def widthsrc(self, val): self["widthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -177,14 +133,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -199,34 +152,12 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("width", arg, width) + self._set_property("widthsrc", arg, widthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/pie/marker/_pattern.py b/plotly/graph_objs/pie/marker/_pattern.py index 9f9e0d31db..d9c7faf89b 100644 --- a/plotly/graph_objs/pie/marker/_pattern.py +++ b/plotly/graph_objs/pie/marker/_pattern.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Pattern(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "pie.marker" _path_str = "pie.marker.pattern" _valid_props = { @@ -23,8 +24,6 @@ class Pattern(_BaseTraceHierarchyType): "soliditysrc", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -38,42 +37,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -86,8 +50,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -106,8 +68,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # fgcolor - # ------- @property def fgcolor(self): """ @@ -121,42 +81,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -169,8 +94,6 @@ def fgcolor(self): def fgcolor(self, val): self["fgcolor"] = val - # fgcolorsrc - # ---------- @property def fgcolorsrc(self): """ @@ -189,8 +112,6 @@ def fgcolorsrc(self): def fgcolorsrc(self, val): self["fgcolorsrc"] = val - # fgopacity - # --------- @property def fgopacity(self): """ @@ -210,8 +131,6 @@ def fgopacity(self): def fgopacity(self, val): self["fgopacity"] = val - # fillmode - # -------- @property def fillmode(self): """ @@ -232,8 +151,6 @@ def fillmode(self): def fillmode(self, val): self["fillmode"] = val - # shape - # ----- @property def shape(self): """ @@ -255,8 +172,6 @@ def shape(self): def shape(self, val): self["shape"] = val - # shapesrc - # -------- @property def shapesrc(self): """ @@ -275,8 +190,6 @@ def shapesrc(self): def shapesrc(self, val): self["shapesrc"] = val - # size - # ---- @property def size(self): """ @@ -297,8 +210,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -317,8 +228,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # solidity - # -------- @property def solidity(self): """ @@ -341,8 +250,6 @@ def solidity(self): def solidity(self, val): self["solidity"] = val - # soliditysrc - # ----------- @property def soliditysrc(self): """ @@ -361,8 +268,6 @@ def soliditysrc(self): def soliditysrc(self, val): self["soliditysrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -493,14 +398,11 @@ def __init__( ------- Pattern """ - super(Pattern, self).__init__("pattern") - + super().__init__("pattern") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -515,66 +417,20 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("fgcolor", arg, fgcolor) + self._set_property("fgcolorsrc", arg, fgcolorsrc) + self._set_property("fgopacity", arg, fgopacity) + self._set_property("fillmode", arg, fillmode) + self._set_property("shape", arg, shape) + self._set_property("shapesrc", arg, shapesrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("solidity", arg, solidity) + self._set_property("soliditysrc", arg, soliditysrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/pie/title/__init__.py b/plotly/graph_objs/pie/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/pie/title/__init__.py +++ b/plotly/graph_objs/pie/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/pie/title/_font.py b/plotly/graph_objs/pie/title/_font.py index 94abdc6fad..bf865b3ac8 100644 --- a/plotly/graph_objs/pie/title/_font.py +++ b/plotly/graph_objs/pie/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "pie.title" _path_str = "pie.title.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/sankey/__init__.py b/plotly/graph_objs/sankey/__init__.py index 546ebd48cf..e3a9223111 100644 --- a/plotly/graph_objs/sankey/__init__.py +++ b/plotly/graph_objs/sankey/__init__.py @@ -1,31 +1,16 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._domain import Domain - from ._hoverlabel import Hoverlabel - from ._legendgrouptitle import Legendgrouptitle - from ._link import Link - from ._node import Node - from ._stream import Stream - from ._textfont import Textfont - from . import hoverlabel - from . import legendgrouptitle - from . import link - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".hoverlabel", ".legendgrouptitle", ".link", ".node"], + [ + "._domain.Domain", + "._hoverlabel.Hoverlabel", + "._legendgrouptitle.Legendgrouptitle", + "._link.Link", + "._node.Node", + "._stream.Stream", + "._textfont.Textfont", + ], +) diff --git a/plotly/graph_objs/sankey/_domain.py b/plotly/graph_objs/sankey/_domain.py index a4d04fd60b..37548ccf19 100644 --- a/plotly/graph_objs/sankey/_domain.py +++ b/plotly/graph_objs/sankey/_domain.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Domain(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "sankey" _path_str = "sankey.domain" _valid_props = {"column", "row", "x", "y"} - # column - # ------ @property def column(self): """ @@ -32,8 +31,6 @@ def column(self): def column(self, val): self["column"] = val - # row - # --- @property def row(self): """ @@ -54,8 +51,6 @@ def row(self): def row(self, val): self["row"] = val - # x - # - @property def x(self): """ @@ -80,8 +75,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -106,8 +99,6 @@ def y(self): def y(self, val): self["y"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -151,14 +142,11 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") - + super().__init__("domain") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -173,34 +161,12 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("column", arg, column) + self._set_property("row", arg, row) + self._set_property("x", arg, x) + self._set_property("y", arg, y) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/sankey/_hoverlabel.py b/plotly/graph_objs/sankey/_hoverlabel.py index d83a32f20a..e423be83f0 100644 --- a/plotly/graph_objs/sankey/_hoverlabel.py +++ b/plotly/graph_objs/sankey/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "sankey" _path_str = "sankey.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/sankey/_legendgrouptitle.py b/plotly/graph_objs/sankey/_legendgrouptitle.py index 244ff4aece..eb4749f245 100644 --- a/plotly/graph_objs/sankey/_legendgrouptitle.py +++ b/plotly/graph_objs/sankey/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "sankey" _path_str = "sankey.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/sankey/_link.py b/plotly/graph_objs/sankey/_link.py index 0dfcced219..da4af0cbd8 100644 --- a/plotly/graph_objs/sankey/_link.py +++ b/plotly/graph_objs/sankey/_link.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Link(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "sankey" _path_str = "sankey.link" _valid_props = { @@ -33,8 +34,6 @@ class Link(_BaseTraceHierarchyType): "valuesrc", } - # arrowlen - # -------- @property def arrowlen(self): """ @@ -54,8 +53,6 @@ def arrowlen(self): def arrowlen(self, val): self["arrowlen"] = val - # color - # ----- @property def color(self): """ @@ -68,42 +65,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -116,8 +78,6 @@ def color(self): def color(self, val): self["color"] = val - # colorscales - # ----------- @property def colorscales(self): """ @@ -127,51 +87,6 @@ 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] @@ -182,8 +97,6 @@ def colorscales(self): def colorscales(self, val): self["colorscales"] = val - # colorscaledefaults - # ------------------ @property def colorscaledefaults(self): """ @@ -198,8 +111,6 @@ 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 @@ -210,8 +121,6 @@ def colorscaledefaults(self): def colorscaledefaults(self, val): self["colorscaledefaults"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -230,8 +139,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -250,8 +157,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -271,8 +176,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # hovercolor - # ---------- @property def hovercolor(self): """ @@ -286,42 +189,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -334,8 +202,6 @@ def hovercolor(self): def hovercolor(self, val): self["hovercolor"] = val - # hovercolorsrc - # ------------- @property def hovercolorsrc(self): """ @@ -355,8 +221,6 @@ def hovercolorsrc(self): def hovercolorsrc(self, val): self["hovercolorsrc"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -379,8 +243,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -390,44 +252,6 @@ 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 @@ -438,8 +262,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -484,8 +306,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -505,8 +325,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # label - # ----- @property def label(self): """ @@ -525,8 +343,6 @@ def label(self): def label(self, val): self["label"] = val - # labelsrc - # -------- @property def labelsrc(self): """ @@ -545,8 +361,6 @@ def labelsrc(self): def labelsrc(self, val): self["labelsrc"] = val - # line - # ---- @property def line(self): """ @@ -556,21 +370,6 @@ 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 @@ -581,8 +380,6 @@ def line(self): def line(self, val): self["line"] = val - # source - # ------ @property def source(self): """ @@ -602,8 +399,6 @@ def source(self): def source(self, val): self["source"] = val - # sourcesrc - # --------- @property def sourcesrc(self): """ @@ -622,8 +417,6 @@ def sourcesrc(self): def sourcesrc(self, val): self["sourcesrc"] = val - # target - # ------ @property def target(self): """ @@ -643,8 +436,6 @@ def target(self): def target(self, val): self["target"] = val - # targetsrc - # --------- @property def targetsrc(self): """ @@ -663,8 +454,6 @@ def targetsrc(self): def targetsrc(self, val): self["targetsrc"] = val - # value - # ----- @property def value(self): """ @@ -683,8 +472,6 @@ def value(self): def value(self, val): self["value"] = val - # valuesrc - # -------- @property def valuesrc(self): """ @@ -703,8 +490,6 @@ def valuesrc(self): def valuesrc(self, val): self["valuesrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -954,14 +739,11 @@ def __init__( ------- Link """ - super(Link, self).__init__("link") - + super().__init__("link") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -976,106 +758,30 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("arrowlen", arg, arrowlen) + self._set_property("color", arg, color) + self._set_property("colorscales", arg, colorscales) + self._set_property("colorscaledefaults", arg, colorscaledefaults) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("hovercolor", arg, hovercolor) + self._set_property("hovercolorsrc", arg, hovercolorsrc) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("label", arg, label) + self._set_property("labelsrc", arg, labelsrc) + self._set_property("line", arg, line) + self._set_property("source", arg, source) + self._set_property("sourcesrc", arg, sourcesrc) + self._set_property("target", arg, target) + self._set_property("targetsrc", arg, targetsrc) + self._set_property("value", arg, value) + self._set_property("valuesrc", arg, valuesrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/sankey/_node.py b/plotly/graph_objs/sankey/_node.py index 61d7d275fb..d3e4c21b6e 100644 --- a/plotly/graph_objs/sankey/_node.py +++ b/plotly/graph_objs/sankey/_node.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Node(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "sankey" _path_str = "sankey.node" _valid_props = { @@ -30,8 +31,6 @@ class Node(_BaseTraceHierarchyType): "ysrc", } - # align - # ----- @property def align(self): """ @@ -52,8 +51,6 @@ def align(self): def align(self, val): self["align"] = val - # color - # ----- @property def color(self): """ @@ -69,42 +66,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -117,8 +79,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -137,8 +97,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # customdata - # ---------- @property def customdata(self): """ @@ -157,8 +115,6 @@ def customdata(self): def customdata(self, val): self["customdata"] = val - # customdatasrc - # ------------- @property def customdatasrc(self): """ @@ -178,8 +134,6 @@ def customdatasrc(self): def customdatasrc(self, val): self["customdatasrc"] = val - # groups - # ------ @property def groups(self): """ @@ -202,8 +156,6 @@ def groups(self): def groups(self, val): self["groups"] = val - # hoverinfo - # --------- @property def hoverinfo(self): """ @@ -226,8 +178,6 @@ def hoverinfo(self): def hoverinfo(self, val): self["hoverinfo"] = val - # hoverlabel - # ---------- @property def hoverlabel(self): """ @@ -237,44 +187,6 @@ 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 @@ -285,8 +197,6 @@ def hoverlabel(self): def hoverlabel(self, val): self["hoverlabel"] = val - # hovertemplate - # ------------- @property def hovertemplate(self): """ @@ -332,8 +242,6 @@ def hovertemplate(self): def hovertemplate(self, val): self["hovertemplate"] = val - # hovertemplatesrc - # ---------------- @property def hovertemplatesrc(self): """ @@ -353,8 +261,6 @@ def hovertemplatesrc(self): def hovertemplatesrc(self, val): self["hovertemplatesrc"] = val - # label - # ----- @property def label(self): """ @@ -373,8 +279,6 @@ def label(self): def label(self, val): self["label"] = val - # labelsrc - # -------- @property def labelsrc(self): """ @@ -393,8 +297,6 @@ def labelsrc(self): def labelsrc(self, val): self["labelsrc"] = val - # line - # ---- @property def line(self): """ @@ -404,21 +306,6 @@ 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 @@ -429,8 +316,6 @@ def line(self): def line(self, val): self["line"] = val - # pad - # --- @property def pad(self): """ @@ -449,8 +334,6 @@ def pad(self): def pad(self, val): self["pad"] = val - # thickness - # --------- @property def thickness(self): """ @@ -469,8 +352,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # x - # - @property def x(self): """ @@ -489,8 +370,6 @@ def x(self): def x(self, val): self["x"] = val - # xsrc - # ---- @property def xsrc(self): """ @@ -509,8 +388,6 @@ def xsrc(self): def xsrc(self, val): self["xsrc"] = val - # y - # - @property def y(self): """ @@ -529,8 +406,6 @@ def y(self): def y(self, val): self["y"] = val - # ysrc - # ---- @property def ysrc(self): """ @@ -549,8 +424,6 @@ def ysrc(self): def ysrc(self, val): self["ysrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -767,14 +640,11 @@ def __init__( ------- Node """ - super(Node, self).__init__("node") - + super().__init__("node") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -789,94 +659,27 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("customdata", arg, customdata) + self._set_property("customdatasrc", arg, customdatasrc) + self._set_property("groups", arg, groups) + self._set_property("hoverinfo", arg, hoverinfo) + self._set_property("hoverlabel", arg, hoverlabel) + self._set_property("hovertemplate", arg, hovertemplate) + self._set_property("hovertemplatesrc", arg, hovertemplatesrc) + self._set_property("label", arg, label) + self._set_property("labelsrc", arg, labelsrc) + self._set_property("line", arg, line) + self._set_property("pad", arg, pad) + self._set_property("thickness", arg, thickness) + self._set_property("x", arg, x) + self._set_property("xsrc", arg, xsrc) + self._set_property("y", arg, y) + self._set_property("ysrc", arg, ysrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/sankey/_stream.py b/plotly/graph_objs/sankey/_stream.py index 72583c9471..9c8f1046a9 100644 --- a/plotly/graph_objs/sankey/_stream.py +++ b/plotly/graph_objs/sankey/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "sankey" _path_str = "sankey.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -93,14 +88,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -115,26 +107,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/sankey/_textfont.py b/plotly/graph_objs/sankey/_textfont.py index 1bb9d7fd84..3c777acf41 100644 --- a/plotly/graph_objs/sankey/_textfont.py +++ b/plotly/graph_objs/sankey/_textfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "sankey" _path_str = "sankey.textfont" _valid_props = { @@ -20,8 +21,6 @@ class Textfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/sankey/hoverlabel/__init__.py b/plotly/graph_objs/sankey/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/sankey/hoverlabel/__init__.py +++ b/plotly/graph_objs/sankey/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/sankey/hoverlabel/_font.py b/plotly/graph_objs/sankey/hoverlabel/_font.py index 502fe432bc..8a98d0f953 100644 --- a/plotly/graph_objs/sankey/hoverlabel/_font.py +++ b/plotly/graph_objs/sankey/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "sankey.hoverlabel" _path_str = "sankey.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/sankey/legendgrouptitle/__init__.py b/plotly/graph_objs/sankey/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/sankey/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/sankey/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/sankey/legendgrouptitle/_font.py b/plotly/graph_objs/sankey/legendgrouptitle/_font.py index 34d067b55f..04430041b7 100644 --- a/plotly/graph_objs/sankey/legendgrouptitle/_font.py +++ b/plotly/graph_objs/sankey/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "sankey.legendgrouptitle" _path_str = "sankey.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/sankey/link/__init__.py b/plotly/graph_objs/sankey/link/__init__.py index be51e67f10..fe898fb7d7 100644 --- a/plotly/graph_objs/sankey/link/__init__.py +++ b/plotly/graph_objs/sankey/link/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._colorscale import Colorscale - 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"], - ["._colorscale.Colorscale", "._hoverlabel.Hoverlabel", "._line.Line"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".hoverlabel"], + ["._colorscale.Colorscale", "._hoverlabel.Hoverlabel", "._line.Line"], +) diff --git a/plotly/graph_objs/sankey/link/_colorscale.py b/plotly/graph_objs/sankey/link/_colorscale.py index a7734e691f..a3bf41cc0e 100644 --- a/plotly/graph_objs/sankey/link/_colorscale.py +++ b/plotly/graph_objs/sankey/link/_colorscale.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Colorscale(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "sankey.link" _path_str = "sankey.link.colorscale" _valid_props = {"cmax", "cmin", "colorscale", "label", "name", "templateitemname"} - # cmax - # ---- @property def cmax(self): """ @@ -30,8 +29,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmin - # ---- @property def cmin(self): """ @@ -50,8 +47,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -103,8 +98,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # label - # ----- @property def label(self): """ @@ -125,8 +118,6 @@ def label(self): def label(self, val): self["label"] = val - # name - # ---- @property def name(self): """ @@ -152,8 +143,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -180,8 +169,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -288,14 +275,11 @@ def __init__( ------- Colorscale """ - super(Colorscale, self).__init__("colorscales") - + super().__init__("colorscales") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -310,42 +294,14 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("cmax", arg, cmax) + self._set_property("cmin", arg, cmin) + self._set_property("colorscale", arg, colorscale) + self._set_property("label", arg, label) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/sankey/link/_hoverlabel.py b/plotly/graph_objs/sankey/link/_hoverlabel.py index 8a63e71700..763f566f9e 100644 --- a/plotly/graph_objs/sankey/link/_hoverlabel.py +++ b/plotly/graph_objs/sankey/link/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "sankey.link" _path_str = "sankey.link.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/sankey/link/_line.py b/plotly/graph_objs/sankey/link/_line.py index d1c1d9b4af..1029e59f1e 100644 --- a/plotly/graph_objs/sankey/link/_line.py +++ b/plotly/graph_objs/sankey/link/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "sankey.link" _path_str = "sankey.link.line" _valid_props = {"color", "colorsrc", "width", "widthsrc"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -90,8 +52,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # width - # ----- @property def width(self): """ @@ -111,8 +71,6 @@ def width(self): def width(self, val): self["width"] = val - # widthsrc - # -------- @property def widthsrc(self): """ @@ -131,8 +89,6 @@ def widthsrc(self): def widthsrc(self, val): self["widthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -177,14 +133,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -199,34 +152,12 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("width", arg, width) + self._set_property("widthsrc", arg, widthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/sankey/link/hoverlabel/__init__.py b/plotly/graph_objs/sankey/link/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/sankey/link/hoverlabel/__init__.py +++ b/plotly/graph_objs/sankey/link/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/sankey/link/hoverlabel/_font.py b/plotly/graph_objs/sankey/link/hoverlabel/_font.py index b9fb526bee..277da0b1e1 100644 --- a/plotly/graph_objs/sankey/link/hoverlabel/_font.py +++ b/plotly/graph_objs/sankey/link/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "sankey.link.hoverlabel" _path_str = "sankey.link.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/sankey/node/__init__.py b/plotly/graph_objs/sankey/node/__init__.py index de720a3b81..f920380373 100644 --- a/plotly/graph_objs/sankey/node/__init__.py +++ b/plotly/graph_objs/sankey/node/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [".hoverlabel"], ["._hoverlabel.Hoverlabel", "._line.Line"] +) diff --git a/plotly/graph_objs/sankey/node/_hoverlabel.py b/plotly/graph_objs/sankey/node/_hoverlabel.py index bc10f646bd..5dfa29f8ec 100644 --- a/plotly/graph_objs/sankey/node/_hoverlabel.py +++ b/plotly/graph_objs/sankey/node/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "sankey.node" _path_str = "sankey.node.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/sankey/node/_line.py b/plotly/graph_objs/sankey/node/_line.py index 26b939ac11..3c2162637e 100644 --- a/plotly/graph_objs/sankey/node/_line.py +++ b/plotly/graph_objs/sankey/node/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "sankey.node" _path_str = "sankey.node.line" _valid_props = {"color", "colorsrc", "width", "widthsrc"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -90,8 +52,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # width - # ----- @property def width(self): """ @@ -111,8 +71,6 @@ def width(self): def width(self, val): self["width"] = val - # widthsrc - # -------- @property def widthsrc(self): """ @@ -131,8 +89,6 @@ def widthsrc(self): def widthsrc(self, val): self["widthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -177,14 +133,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -199,34 +152,12 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("width", arg, width) + self._set_property("widthsrc", arg, widthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/sankey/node/hoverlabel/__init__.py b/plotly/graph_objs/sankey/node/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/sankey/node/hoverlabel/__init__.py +++ b/plotly/graph_objs/sankey/node/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/sankey/node/hoverlabel/_font.py b/plotly/graph_objs/sankey/node/hoverlabel/_font.py index 25c367c4d3..03adfe1ca6 100644 --- a/plotly/graph_objs/sankey/node/hoverlabel/_font.py +++ b/plotly/graph_objs/sankey/node/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "sankey.node.hoverlabel" _path_str = "sankey.node.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter/__init__.py b/plotly/graph_objs/scatter/__init__.py index 8f8eb55b57..b0327a6d1b 100644 --- a/plotly/graph_objs/scatter/__init__.py +++ b/plotly/graph_objs/scatter/__init__.py @@ -1,42 +1,21 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._error_x import ErrorX - from ._error_y import ErrorY - from ._fillgradient import Fillgradient - from ._fillpattern import Fillpattern - from ._hoverlabel import Hoverlabel - from ._legendgrouptitle import Legendgrouptitle - from ._line import Line - from ._marker import Marker - from ._selected import Selected - from ._stream import Stream - from ._textfont import Textfont - from ._unselected import Unselected - from . import hoverlabel - from . import legendgrouptitle - from . import marker - from . import selected - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/scatter/_error_x.py b/plotly/graph_objs/scatter/_error_x.py index 60a4663ad0..d6d10a16c2 100644 --- a/plotly/graph_objs/scatter/_error_x.py +++ b/plotly/graph_objs/scatter/_error_x.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ErrorX(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter" _path_str = "scatter.error_x" _valid_props = { @@ -26,8 +27,6 @@ class ErrorX(_BaseTraceHierarchyType): "width", } - # array - # ----- @property def array(self): """ @@ -47,8 +46,6 @@ def array(self): def array(self, val): self["array"] = val - # arrayminus - # ---------- @property def arrayminus(self): """ @@ -69,8 +66,6 @@ def arrayminus(self): def arrayminus(self, val): self["arrayminus"] = val - # arrayminussrc - # ------------- @property def arrayminussrc(self): """ @@ -90,8 +85,6 @@ def arrayminussrc(self): def arrayminussrc(self, val): self["arrayminussrc"] = val - # arraysrc - # -------- @property def arraysrc(self): """ @@ -110,8 +103,6 @@ def arraysrc(self): def arraysrc(self, val): self["arraysrc"] = val - # color - # ----- @property def color(self): """ @@ -122,42 +113,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -169,8 +125,6 @@ def color(self): def color(self, val): self["color"] = val - # copy_ystyle - # ----------- @property def copy_ystyle(self): """ @@ -187,8 +141,6 @@ def copy_ystyle(self): def copy_ystyle(self, val): self["copy_ystyle"] = val - # symmetric - # --------- @property def symmetric(self): """ @@ -209,8 +161,6 @@ def symmetric(self): def symmetric(self, val): self["symmetric"] = val - # thickness - # --------- @property def thickness(self): """ @@ -229,8 +179,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # traceref - # -------- @property def traceref(self): """ @@ -248,8 +196,6 @@ def traceref(self): def traceref(self, val): self["traceref"] = val - # tracerefminus - # ------------- @property def tracerefminus(self): """ @@ -267,13 +213,11 @@ def tracerefminus(self): def tracerefminus(self, val): self["tracerefminus"] = val - # type - # ---- @property def type(self): """ Determines the rule used to generate the error bars. If - *constant`, the bar lengths are of a constant value. Set this + "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 @@ -294,8 +238,6 @@ def type(self): def type(self, val): self["type"] = val - # value - # ----- @property def value(self): """ @@ -316,8 +258,6 @@ def value(self): def value(self, val): self["value"] = val - # valueminus - # ---------- @property def valueminus(self): """ @@ -339,8 +279,6 @@ def valueminus(self): def valueminus(self, val): self["valueminus"] = val - # visible - # ------- @property def visible(self): """ @@ -359,8 +297,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # width - # ----- @property def width(self): """ @@ -380,8 +316,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -416,7 +350,7 @@ def _prop_descriptions(self): type Determines the rule used to generate the error bars. If - *constant`, the bar lengths are of a constant value. + "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 @@ -502,7 +436,7 @@ def __init__( type Determines the rule used to generate the error bars. If - *constant`, the bar lengths are of a constant value. + "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 @@ -531,14 +465,11 @@ def __init__( ------- ErrorX """ - super(ErrorX, self).__init__("error_x") - + super().__init__("error_x") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -553,78 +484,23 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("array", arg, array) + self._set_property("arrayminus", arg, arrayminus) + self._set_property("arrayminussrc", arg, arrayminussrc) + self._set_property("arraysrc", arg, arraysrc) + self._set_property("color", arg, color) + self._set_property("copy_ystyle", arg, copy_ystyle) + self._set_property("symmetric", arg, symmetric) + self._set_property("thickness", arg, thickness) + self._set_property("traceref", arg, traceref) + self._set_property("tracerefminus", arg, tracerefminus) + self._set_property("type", arg, type) + self._set_property("value", arg, value) + self._set_property("valueminus", arg, valueminus) + self._set_property("visible", arg, visible) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter/_error_y.py b/plotly/graph_objs/scatter/_error_y.py index 6c40ce1c2f..16271b0200 100644 --- a/plotly/graph_objs/scatter/_error_y.py +++ b/plotly/graph_objs/scatter/_error_y.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ErrorY(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter" _path_str = "scatter.error_y" _valid_props = { @@ -25,8 +26,6 @@ class ErrorY(_BaseTraceHierarchyType): "width", } - # array - # ----- @property def array(self): """ @@ -46,8 +45,6 @@ def array(self): def array(self, val): self["array"] = val - # arrayminus - # ---------- @property def arrayminus(self): """ @@ -68,8 +65,6 @@ def arrayminus(self): def arrayminus(self, val): self["arrayminus"] = val - # arrayminussrc - # ------------- @property def arrayminussrc(self): """ @@ -89,8 +84,6 @@ def arrayminussrc(self): def arrayminussrc(self, val): self["arrayminussrc"] = val - # arraysrc - # -------- @property def arraysrc(self): """ @@ -109,8 +102,6 @@ def arraysrc(self): def arraysrc(self, val): self["arraysrc"] = val - # color - # ----- @property def color(self): """ @@ -121,42 +112,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -168,8 +124,6 @@ def color(self): def color(self, val): self["color"] = val - # symmetric - # --------- @property def symmetric(self): """ @@ -190,8 +144,6 @@ def symmetric(self): def symmetric(self, val): self["symmetric"] = val - # thickness - # --------- @property def thickness(self): """ @@ -210,8 +162,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # traceref - # -------- @property def traceref(self): """ @@ -229,8 +179,6 @@ def traceref(self): def traceref(self, val): self["traceref"] = val - # tracerefminus - # ------------- @property def tracerefminus(self): """ @@ -248,13 +196,11 @@ def tracerefminus(self): def tracerefminus(self, val): self["tracerefminus"] = val - # type - # ---- @property def type(self): """ Determines the rule used to generate the error bars. If - *constant`, the bar lengths are of a constant value. Set this + "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 @@ -275,8 +221,6 @@ def type(self): def type(self, val): self["type"] = val - # value - # ----- @property def value(self): """ @@ -297,8 +241,6 @@ def value(self): def value(self, val): self["value"] = val - # valueminus - # ---------- @property def valueminus(self): """ @@ -320,8 +262,6 @@ def valueminus(self): def valueminus(self, val): self["valueminus"] = val - # visible - # ------- @property def visible(self): """ @@ -340,8 +280,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # width - # ----- @property def width(self): """ @@ -361,8 +299,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -395,7 +331,7 @@ def _prop_descriptions(self): type Determines the rule used to generate the error bars. If - *constant`, the bar lengths are of a constant value. + "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 @@ -478,7 +414,7 @@ def __init__( type Determines the rule used to generate the error bars. If - *constant`, the bar lengths are of a constant value. + "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 @@ -507,14 +443,11 @@ def __init__( ------- ErrorY """ - super(ErrorY, self).__init__("error_y") - + super().__init__("error_y") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -529,74 +462,22 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("array", arg, array) + self._set_property("arrayminus", arg, arrayminus) + self._set_property("arrayminussrc", arg, arrayminussrc) + self._set_property("arraysrc", arg, arraysrc) + self._set_property("color", arg, color) + self._set_property("symmetric", arg, symmetric) + self._set_property("thickness", arg, thickness) + self._set_property("traceref", arg, traceref) + self._set_property("tracerefminus", arg, tracerefminus) + self._set_property("type", arg, type) + self._set_property("value", arg, value) + self._set_property("valueminus", arg, valueminus) + self._set_property("visible", arg, visible) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter/_fillgradient.py b/plotly/graph_objs/scatter/_fillgradient.py index be66434984..67cc2970d0 100644 --- a/plotly/graph_objs/scatter/_fillgradient.py +++ b/plotly/graph_objs/scatter/_fillgradient.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Fillgradient(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter" _path_str = "scatter.fillgradient" _valid_props = {"colorscale", "start", "stop", "type"} - # colorscale - # ---------- @property def colorscale(self): """ @@ -58,8 +57,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # start - # ----- @property def start(self): """ @@ -83,8 +80,6 @@ def start(self): def start(self, val): self["start"] = val - # stop - # ---- @property def stop(self): """ @@ -108,8 +103,6 @@ def stop(self): def stop(self, val): self["stop"] = val - # type - # ---- @property def type(self): """ @@ -130,8 +123,6 @@ def type(self): def type(self, val): self["type"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -209,14 +200,11 @@ def __init__( ------- Fillgradient """ - super(Fillgradient, self).__init__("fillgradient") - + super().__init__("fillgradient") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -231,34 +219,12 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("colorscale", arg, colorscale) + self._set_property("start", arg, start) + self._set_property("stop", arg, stop) + self._set_property("type", arg, type) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter/_fillpattern.py b/plotly/graph_objs/scatter/_fillpattern.py index 4c164136fa..e8a7fdda8b 100644 --- a/plotly/graph_objs/scatter/_fillpattern.py +++ b/plotly/graph_objs/scatter/_fillpattern.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Fillpattern(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter" _path_str = "scatter.fillpattern" _valid_props = { @@ -23,8 +24,6 @@ class Fillpattern(_BaseTraceHierarchyType): "soliditysrc", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -38,42 +37,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -86,8 +50,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -106,8 +68,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # fgcolor - # ------- @property def fgcolor(self): """ @@ -121,42 +81,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -169,8 +94,6 @@ def fgcolor(self): def fgcolor(self, val): self["fgcolor"] = val - # fgcolorsrc - # ---------- @property def fgcolorsrc(self): """ @@ -189,8 +112,6 @@ def fgcolorsrc(self): def fgcolorsrc(self, val): self["fgcolorsrc"] = val - # fgopacity - # --------- @property def fgopacity(self): """ @@ -210,8 +131,6 @@ def fgopacity(self): def fgopacity(self, val): self["fgopacity"] = val - # fillmode - # -------- @property def fillmode(self): """ @@ -232,8 +151,6 @@ def fillmode(self): def fillmode(self, val): self["fillmode"] = val - # shape - # ----- @property def shape(self): """ @@ -255,8 +172,6 @@ def shape(self): def shape(self, val): self["shape"] = val - # shapesrc - # -------- @property def shapesrc(self): """ @@ -275,8 +190,6 @@ def shapesrc(self): def shapesrc(self, val): self["shapesrc"] = val - # size - # ---- @property def size(self): """ @@ -297,8 +210,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -317,8 +228,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # solidity - # -------- @property def solidity(self): """ @@ -341,8 +250,6 @@ def solidity(self): def solidity(self, val): self["solidity"] = val - # soliditysrc - # ----------- @property def soliditysrc(self): """ @@ -361,8 +268,6 @@ def soliditysrc(self): def soliditysrc(self, val): self["soliditysrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -493,14 +398,11 @@ def __init__( ------- Fillpattern """ - super(Fillpattern, self).__init__("fillpattern") - + super().__init__("fillpattern") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -515,66 +417,20 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("fgcolor", arg, fgcolor) + self._set_property("fgcolorsrc", arg, fgcolorsrc) + self._set_property("fgopacity", arg, fgopacity) + self._set_property("fillmode", arg, fillmode) + self._set_property("shape", arg, shape) + self._set_property("shapesrc", arg, shapesrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("solidity", arg, solidity) + self._set_property("soliditysrc", arg, soliditysrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter/_hoverlabel.py b/plotly/graph_objs/scatter/_hoverlabel.py index 226227c4fa..e0540990c1 100644 --- a/plotly/graph_objs/scatter/_hoverlabel.py +++ b/plotly/graph_objs/scatter/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter" _path_str = "scatter.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter/_legendgrouptitle.py b/plotly/graph_objs/scatter/_legendgrouptitle.py index 3616b9bf6f..02b97dbb06 100644 --- a/plotly/graph_objs/scatter/_legendgrouptitle.py +++ b/plotly/graph_objs/scatter/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter" _path_str = "scatter.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter/_line.py b/plotly/graph_objs/scatter/_line.py index 3044fc2fcc..13a1d12346 100644 --- a/plotly/graph_objs/scatter/_line.py +++ b/plotly/graph_objs/scatter/_line.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter" _path_str = "scatter.line" _valid_props = { @@ -19,8 +20,6 @@ class Line(_BaseTraceHierarchyType): "width", } - # backoff - # ------- @property def backoff(self): """ @@ -43,8 +42,6 @@ def backoff(self): def backoff(self, val): self["backoff"] = val - # backoffsrc - # ---------- @property def backoffsrc(self): """ @@ -63,8 +60,6 @@ def backoffsrc(self): def backoffsrc(self, val): self["backoffsrc"] = val - # color - # ----- @property def color(self): """ @@ -75,42 +70,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -122,8 +82,6 @@ def color(self): def color(self, val): self["color"] = val - # dash - # ---- @property def dash(self): """ @@ -148,8 +106,6 @@ def dash(self): def dash(self, val): self["dash"] = val - # shape - # ----- @property def shape(self): """ @@ -171,8 +127,6 @@ def shape(self): def shape(self, val): self["shape"] = val - # simplify - # -------- @property def simplify(self): """ @@ -194,8 +148,6 @@ def simplify(self): def simplify(self, val): self["simplify"] = val - # smoothing - # --------- @property def smoothing(self): """ @@ -216,8 +168,6 @@ def smoothing(self): def smoothing(self, val): self["smoothing"] = val - # width - # ----- @property def width(self): """ @@ -236,8 +186,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -331,14 +279,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -353,50 +298,16 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("backoff", arg, backoff) + self._set_property("backoffsrc", arg, backoffsrc) + self._set_property("color", arg, color) + self._set_property("dash", arg, dash) + self._set_property("shape", arg, shape) + self._set_property("simplify", arg, simplify) + self._set_property("smoothing", arg, smoothing) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter/_marker.py b/plotly/graph_objs/scatter/_marker.py index f3dd1eb297..1098f885e6 100644 --- a/plotly/graph_objs/scatter/_marker.py +++ b/plotly/graph_objs/scatter/_marker.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter" _path_str = "scatter.marker" _valid_props = { @@ -40,8 +41,6 @@ class Marker(_BaseTraceHierarchyType): "symbolsrc", } - # angle - # ----- @property def angle(self): """ @@ -62,8 +61,6 @@ def angle(self): def angle(self, val): self["angle"] = val - # angleref - # -------- @property def angleref(self): """ @@ -85,8 +82,6 @@ def angleref(self): def angleref(self, val): self["angleref"] = val - # anglesrc - # -------- @property def anglesrc(self): """ @@ -105,8 +100,6 @@ def anglesrc(self): def anglesrc(self, val): self["anglesrc"] = val - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -131,8 +124,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -156,8 +147,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -179,8 +168,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -203,8 +190,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -226,8 +211,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # color - # ----- @property def color(self): """ @@ -241,42 +224,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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to scatter.marker.colorscale - A list or array of any of the above @@ -291,8 +239,6 @@ def color(self): def color(self, val): self["color"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -318,8 +264,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -329,273 +273,6 @@ 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 @@ -606,8 +283,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -660,8 +335,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -680,8 +353,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # gradient - # -------- @property def gradient(self): """ @@ -691,22 +362,6 @@ 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 @@ -717,8 +372,6 @@ def gradient(self): def gradient(self, val): self["gradient"] = val - # line - # ---- @property def line(self): """ @@ -728,98 +381,6 @@ 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 @@ -830,8 +391,6 @@ def line(self): def line(self, val): self["line"] = val - # maxdisplayed - # ------------ @property def maxdisplayed(self): """ @@ -851,8 +410,6 @@ def maxdisplayed(self): def maxdisplayed(self, val): self["maxdisplayed"] = val - # opacity - # ------- @property def opacity(self): """ @@ -872,8 +429,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # opacitysrc - # ---------- @property def opacitysrc(self): """ @@ -892,8 +447,6 @@ def opacitysrc(self): def opacitysrc(self, val): self["opacitysrc"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -915,8 +468,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # showscale - # --------- @property def showscale(self): """ @@ -937,8 +488,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # size - # ---- @property def size(self): """ @@ -958,8 +507,6 @@ def size(self): def size(self, val): self["size"] = val - # sizemin - # ------- @property def sizemin(self): """ @@ -980,8 +527,6 @@ def sizemin(self): def sizemin(self, val): self["sizemin"] = val - # sizemode - # -------- @property def sizemode(self): """ @@ -1003,8 +548,6 @@ def sizemode(self): def sizemode(self, val): self["sizemode"] = val - # sizeref - # ------- @property def sizeref(self): """ @@ -1025,8 +568,6 @@ def sizeref(self): def sizeref(self, val): self["sizeref"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -1045,8 +586,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # standoff - # -------- @property def standoff(self): """ @@ -1069,8 +608,6 @@ def standoff(self): def standoff(self, val): self["standoff"] = val - # standoffsrc - # ----------- @property def standoffsrc(self): """ @@ -1089,8 +626,6 @@ def standoffsrc(self): def standoffsrc(self, val): self["standoffsrc"] = val - # symbol - # ------ @property def symbol(self): """ @@ -1202,8 +737,6 @@ def symbol(self): def symbol(self, val): self["symbol"] = val - # symbolsrc - # --------- @property def symbolsrc(self): """ @@ -1222,8 +755,6 @@ def symbolsrc(self): def symbolsrc(self, val): self["symbolsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1547,14 +1078,11 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1569,134 +1097,37 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("angle", arg, angle) + self._set_property("angleref", arg, angleref) + self._set_property("anglesrc", arg, anglesrc) + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("color", arg, color) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("gradient", arg, gradient) + self._set_property("line", arg, line) + self._set_property("maxdisplayed", arg, maxdisplayed) + self._set_property("opacity", arg, opacity) + self._set_property("opacitysrc", arg, opacitysrc) + self._set_property("reversescale", arg, reversescale) + self._set_property("showscale", arg, showscale) + self._set_property("size", arg, size) + self._set_property("sizemin", arg, sizemin) + self._set_property("sizemode", arg, sizemode) + self._set_property("sizeref", arg, sizeref) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("standoff", arg, standoff) + self._set_property("standoffsrc", arg, standoffsrc) + self._set_property("symbol", arg, symbol) + self._set_property("symbolsrc", arg, symbolsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter/_selected.py b/plotly/graph_objs/scatter/_selected.py index 3d44a1a65a..bf5178f097 100644 --- a/plotly/graph_objs/scatter/_selected.py +++ b/plotly/graph_objs/scatter/_selected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Selected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter" _path_str = "scatter.selected" _valid_props = {"marker", "textfont"} - # marker - # ------ @property def marker(self): """ @@ -21,15 +20,6 @@ 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 @@ -40,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # textfont - # -------- @property def textfont(self): """ @@ -51,11 +39,6 @@ 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 @@ -66,8 +49,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -100,14 +81,11 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") - + super().__init__("selected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -122,26 +100,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) + self._set_property("textfont", arg, textfont) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter/_stream.py b/plotly/graph_objs/scatter/_stream.py index 9308720d14..79163cc0fa 100644 --- a/plotly/graph_objs/scatter/_stream.py +++ b/plotly/graph_objs/scatter/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter" _path_str = "scatter.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -94,14 +89,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -116,26 +108,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter/_textfont.py b/plotly/graph_objs/scatter/_textfont.py index 543761a304..ed354516de 100644 --- a/plotly/graph_objs/scatter/_textfont.py +++ b/plotly/graph_objs/scatter/_textfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter" _path_str = "scatter.textfont" _valid_props = { @@ -29,8 +30,6 @@ class Textfont(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter/_unselected.py b/plotly/graph_objs/scatter/_unselected.py index b2f8099aa1..a8c291175f 100644 --- a/plotly/graph_objs/scatter/_unselected.py +++ b/plotly/graph_objs/scatter/_unselected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Unselected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter" _path_str = "scatter.unselected" _valid_props = {"marker", "textfont"} - # marker - # ------ @property def marker(self): """ @@ -21,18 +20,6 @@ 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 @@ -43,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # textfont - # -------- @property def textfont(self): """ @@ -54,12 +39,6 @@ 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 @@ -70,8 +49,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -104,14 +81,11 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") - + super().__init__("unselected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -126,26 +100,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) + self._set_property("textfont", arg, textfont) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter/hoverlabel/__init__.py b/plotly/graph_objs/scatter/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/scatter/hoverlabel/__init__.py +++ b/plotly/graph_objs/scatter/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scatter/hoverlabel/_font.py b/plotly/graph_objs/scatter/hoverlabel/_font.py index 4550c310d9..a09cf0bbae 100644 --- a/plotly/graph_objs/scatter/hoverlabel/_font.py +++ b/plotly/graph_objs/scatter/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter.hoverlabel" _path_str = "scatter.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter/legendgrouptitle/__init__.py b/plotly/graph_objs/scatter/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/scatter/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/scatter/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scatter/legendgrouptitle/_font.py b/plotly/graph_objs/scatter/legendgrouptitle/_font.py index a7c0904326..36cc91c2bd 100644 --- a/plotly/graph_objs/scatter/legendgrouptitle/_font.py +++ b/plotly/graph_objs/scatter/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter.legendgrouptitle" _path_str = "scatter.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter/marker/__init__.py b/plotly/graph_objs/scatter/marker/__init__.py index f1897fb0aa..f9d889ecb9 100644 --- a/plotly/graph_objs/scatter/marker/__init__.py +++ b/plotly/graph_objs/scatter/marker/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._colorbar import ColorBar - from ._gradient import Gradient - from ._line import Line - from . import colorbar -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".colorbar"], - ["._colorbar.ColorBar", "._gradient.Gradient", "._line.Line"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".colorbar"], + ["._colorbar.ColorBar", "._gradient.Gradient", "._line.Line"], +) diff --git a/plotly/graph_objs/scatter/marker/_colorbar.py b/plotly/graph_objs/scatter/marker/_colorbar.py index dc0ff92db9..1ed6d635a7 100644 --- a/plotly/graph_objs/scatter/marker/_colorbar.py +++ b/plotly/graph_objs/scatter/marker/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter.marker" _path_str = "scatter.marker.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -913,8 +638,6 @@ 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 @@ -925,8 +648,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -949,8 +670,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -974,8 +693,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1000,8 +717,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1020,8 +735,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1047,8 +760,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1068,8 +779,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1091,8 +800,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1112,8 +819,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1134,8 +839,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1154,8 +857,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1175,8 +876,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1195,8 +894,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1215,8 +912,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1226,18 +921,6 @@ 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 @@ -1248,8 +931,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1274,8 +955,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1298,8 +977,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1318,8 +995,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1341,8 +1016,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1367,8 +1040,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1391,8 +1062,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1411,8 +1080,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1434,8 +1101,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1985,14 +1650,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2007,214 +1669,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter/marker/_gradient.py b/plotly/graph_objs/scatter/marker/_gradient.py index b20e34c67a..9e6b568a44 100644 --- a/plotly/graph_objs/scatter/marker/_gradient.py +++ b/plotly/graph_objs/scatter/marker/_gradient.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Gradient(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter.marker" _path_str = "scatter.marker.gradient" _valid_props = {"color", "colorsrc", "type", "typesrc"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -71,8 +35,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -91,8 +53,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # type - # ---- @property def type(self): """ @@ -113,8 +73,6 @@ def type(self): def type(self, val): self["type"] = val - # typesrc - # ------- @property def typesrc(self): """ @@ -133,8 +91,6 @@ def typesrc(self): def typesrc(self, val): self["typesrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -181,14 +137,11 @@ def __init__( ------- Gradient """ - super(Gradient, self).__init__("gradient") - + super().__init__("gradient") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -203,34 +156,12 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("type", arg, type) + self._set_property("typesrc", arg, typesrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter/marker/_line.py b/plotly/graph_objs/scatter/marker/_line.py index d845e06789..c6e81451c9 100644 --- a/plotly/graph_objs/scatter/marker/_line.py +++ b/plotly/graph_objs/scatter/marker/_line.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter.marker" _path_str = "scatter.marker.line" _valid_props = { @@ -23,8 +24,6 @@ class Line(_BaseTraceHierarchyType): "widthsrc", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -49,8 +48,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -74,8 +71,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -97,8 +92,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -122,8 +115,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -145,8 +136,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # color - # ----- @property def color(self): """ @@ -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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to scatter.marker.line.colorscale - A list or array of any of the above @@ -210,8 +164,6 @@ def color(self): def color(self, val): self["color"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -237,8 +189,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -292,8 +242,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -312,8 +260,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -336,8 +282,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # width - # ----- @property def width(self): """ @@ -357,8 +301,6 @@ def width(self): def width(self, val): self["width"] = val - # widthsrc - # -------- @property def widthsrc(self): """ @@ -377,8 +319,6 @@ def widthsrc(self): def widthsrc(self, val): self["widthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -571,14 +511,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -593,66 +530,20 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("color", arg, color) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("reversescale", arg, reversescale) + self._set_property("width", arg, width) + self._set_property("widthsrc", arg, widthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter/marker/colorbar/__init__.py b/plotly/graph_objs/scatter/marker/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/scatter/marker/colorbar/__init__.py +++ b/plotly/graph_objs/scatter/marker/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/scatter/marker/colorbar/_tickfont.py b/plotly/graph_objs/scatter/marker/colorbar/_tickfont.py index 34e6f9d5e3..b47874ec19 100644 --- a/plotly/graph_objs/scatter/marker/colorbar/_tickfont.py +++ b/plotly/graph_objs/scatter/marker/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter.marker.colorbar" _path_str = "scatter.marker.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter/marker/colorbar/_tickformatstop.py b/plotly/graph_objs/scatter/marker/colorbar/_tickformatstop.py index 1d1fb7c597..ea14fcf850 100644 --- a/plotly/graph_objs/scatter/marker/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/scatter/marker/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter.marker.colorbar" _path_str = "scatter.marker.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter/marker/colorbar/_title.py b/plotly/graph_objs/scatter/marker/colorbar/_title.py index d4f420caf9..e555b89ec1 100644 --- a/plotly/graph_objs/scatter/marker/colorbar/_title.py +++ b/plotly/graph_objs/scatter/marker/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter.marker.colorbar" _path_str = "scatter.marker.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter/marker/colorbar/title/__init__.py b/plotly/graph_objs/scatter/marker/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/scatter/marker/colorbar/title/__init__.py +++ b/plotly/graph_objs/scatter/marker/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scatter/marker/colorbar/title/_font.py b/plotly/graph_objs/scatter/marker/colorbar/title/_font.py index a15f2dfb70..cd5aa3a22c 100644 --- a/plotly/graph_objs/scatter/marker/colorbar/title/_font.py +++ b/plotly/graph_objs/scatter/marker/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter.marker.colorbar.title" _path_str = "scatter.marker.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter/selected/__init__.py b/plotly/graph_objs/scatter/selected/__init__.py index ae964f0b65..473168fdb5 100644 --- a/plotly/graph_objs/scatter/selected/__init__.py +++ b/plotly/graph_objs/scatter/selected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.Marker", "._textfont.Textfont"] +) diff --git a/plotly/graph_objs/scatter/selected/_marker.py b/plotly/graph_objs/scatter/selected/_marker.py index bc65de46a8..93ebfe86e8 100644 --- a/plotly/graph_objs/scatter/selected/_marker.py +++ b/plotly/graph_objs/scatter/selected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter.selected" _path_str = "scatter.selected.marker" _valid_props = {"color", "opacity", "size"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # opacity - # ------- @property def opacity(self): """ @@ -89,8 +51,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # size - # ---- @property def size(self): """ @@ -109,8 +69,6 @@ def size(self): def size(self, val): self["size"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -143,14 +101,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -165,30 +120,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("opacity", arg, opacity) + self._set_property("size", arg, size) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter/selected/_textfont.py b/plotly/graph_objs/scatter/selected/_textfont.py index a1ee91470a..65f365c9db 100644 --- a/plotly/graph_objs/scatter/selected/_textfont.py +++ b/plotly/graph_objs/scatter/selected/_textfont.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter.selected" _path_str = "scatter.selected.textfont" _valid_props = {"color"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -95,14 +57,11 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -117,22 +76,9 @@ def __init__(self, arg=None, color=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter/unselected/__init__.py b/plotly/graph_objs/scatter/unselected/__init__.py index ae964f0b65..473168fdb5 100644 --- a/plotly/graph_objs/scatter/unselected/__init__.py +++ b/plotly/graph_objs/scatter/unselected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.Marker", "._textfont.Textfont"] +) diff --git a/plotly/graph_objs/scatter/unselected/_marker.py b/plotly/graph_objs/scatter/unselected/_marker.py index 3de2a9e417..bd5d81f45c 100644 --- a/plotly/graph_objs/scatter/unselected/_marker.py +++ b/plotly/graph_objs/scatter/unselected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter.unselected" _path_str = "scatter.unselected.marker" _valid_props = {"color", "opacity", "size"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # opacity - # ------- @property def opacity(self): """ @@ -91,8 +53,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # size - # ---- @property def size(self): """ @@ -112,8 +72,6 @@ def size(self): def size(self, val): self["size"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -152,14 +110,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -174,30 +129,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("opacity", arg, opacity) + self._set_property("size", arg, size) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter/unselected/_textfont.py b/plotly/graph_objs/scatter/unselected/_textfont.py index 486e02e29c..f63b194581 100644 --- a/plotly/graph_objs/scatter/unselected/_textfont.py +++ b/plotly/graph_objs/scatter/unselected/_textfont.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter.unselected" _path_str = "scatter.unselected.textfont" _valid_props = {"color"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -98,14 +60,11 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -120,22 +79,9 @@ def __init__(self, arg=None, color=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter3d/__init__.py b/plotly/graph_objs/scatter3d/__init__.py index 47dbd27a85..4782838bc4 100644 --- a/plotly/graph_objs/scatter3d/__init__.py +++ b/plotly/graph_objs/scatter3d/__init__.py @@ -1,38 +1,19 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._error_x import ErrorX - from ._error_y import ErrorY - from ._error_z import ErrorZ - from ._hoverlabel import Hoverlabel - from ._legendgrouptitle import Legendgrouptitle - from ._line import Line - from ._marker import Marker - from ._projection import Projection - from ._stream import Stream - from ._textfont import Textfont - from . import hoverlabel - from . import legendgrouptitle - from . import line - from . import marker - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/scatter3d/_error_x.py b/plotly/graph_objs/scatter3d/_error_x.py index 7a2abacc6c..d04f8e4c6e 100644 --- a/plotly/graph_objs/scatter3d/_error_x.py +++ b/plotly/graph_objs/scatter3d/_error_x.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ErrorX(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter3d" _path_str = "scatter3d.error_x" _valid_props = { @@ -26,8 +27,6 @@ class ErrorX(_BaseTraceHierarchyType): "width", } - # array - # ----- @property def array(self): """ @@ -47,8 +46,6 @@ def array(self): def array(self, val): self["array"] = val - # arrayminus - # ---------- @property def arrayminus(self): """ @@ -69,8 +66,6 @@ def arrayminus(self): def arrayminus(self, val): self["arrayminus"] = val - # arrayminussrc - # ------------- @property def arrayminussrc(self): """ @@ -90,8 +85,6 @@ def arrayminussrc(self): def arrayminussrc(self, val): self["arrayminussrc"] = val - # arraysrc - # -------- @property def arraysrc(self): """ @@ -110,8 +103,6 @@ def arraysrc(self): def arraysrc(self, val): self["arraysrc"] = val - # color - # ----- @property def color(self): """ @@ -122,42 +113,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -169,8 +125,6 @@ def color(self): def color(self, val): self["color"] = val - # copy_zstyle - # ----------- @property def copy_zstyle(self): """ @@ -187,8 +141,6 @@ def copy_zstyle(self): def copy_zstyle(self, val): self["copy_zstyle"] = val - # symmetric - # --------- @property def symmetric(self): """ @@ -209,8 +161,6 @@ def symmetric(self): def symmetric(self, val): self["symmetric"] = val - # thickness - # --------- @property def thickness(self): """ @@ -229,8 +179,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # traceref - # -------- @property def traceref(self): """ @@ -248,8 +196,6 @@ def traceref(self): def traceref(self, val): self["traceref"] = val - # tracerefminus - # ------------- @property def tracerefminus(self): """ @@ -267,13 +213,11 @@ def tracerefminus(self): def tracerefminus(self, val): self["tracerefminus"] = val - # type - # ---- @property def type(self): """ Determines the rule used to generate the error bars. If - *constant`, the bar lengths are of a constant value. Set this + "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 @@ -294,8 +238,6 @@ def type(self): def type(self, val): self["type"] = val - # value - # ----- @property def value(self): """ @@ -316,8 +258,6 @@ def value(self): def value(self, val): self["value"] = val - # valueminus - # ---------- @property def valueminus(self): """ @@ -339,8 +279,6 @@ def valueminus(self): def valueminus(self, val): self["valueminus"] = val - # visible - # ------- @property def visible(self): """ @@ -359,8 +297,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # width - # ----- @property def width(self): """ @@ -380,8 +316,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -416,7 +350,7 @@ def _prop_descriptions(self): type Determines the rule used to generate the error bars. If - *constant`, the bar lengths are of a constant value. + "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 @@ -502,7 +436,7 @@ def __init__( type Determines the rule used to generate the error bars. If - *constant`, the bar lengths are of a constant value. + "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 @@ -531,14 +465,11 @@ def __init__( ------- ErrorX """ - super(ErrorX, self).__init__("error_x") - + super().__init__("error_x") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -553,78 +484,23 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("array", arg, array) + self._set_property("arrayminus", arg, arrayminus) + self._set_property("arrayminussrc", arg, arrayminussrc) + self._set_property("arraysrc", arg, arraysrc) + self._set_property("color", arg, color) + self._set_property("copy_zstyle", arg, copy_zstyle) + self._set_property("symmetric", arg, symmetric) + self._set_property("thickness", arg, thickness) + self._set_property("traceref", arg, traceref) + self._set_property("tracerefminus", arg, tracerefminus) + self._set_property("type", arg, type) + self._set_property("value", arg, value) + self._set_property("valueminus", arg, valueminus) + self._set_property("visible", arg, visible) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter3d/_error_y.py b/plotly/graph_objs/scatter3d/_error_y.py index 6e011a401d..84a00a99b7 100644 --- a/plotly/graph_objs/scatter3d/_error_y.py +++ b/plotly/graph_objs/scatter3d/_error_y.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ErrorY(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter3d" _path_str = "scatter3d.error_y" _valid_props = { @@ -26,8 +27,6 @@ class ErrorY(_BaseTraceHierarchyType): "width", } - # array - # ----- @property def array(self): """ @@ -47,8 +46,6 @@ def array(self): def array(self, val): self["array"] = val - # arrayminus - # ---------- @property def arrayminus(self): """ @@ -69,8 +66,6 @@ def arrayminus(self): def arrayminus(self, val): self["arrayminus"] = val - # arrayminussrc - # ------------- @property def arrayminussrc(self): """ @@ -90,8 +85,6 @@ def arrayminussrc(self): def arrayminussrc(self, val): self["arrayminussrc"] = val - # arraysrc - # -------- @property def arraysrc(self): """ @@ -110,8 +103,6 @@ def arraysrc(self): def arraysrc(self, val): self["arraysrc"] = val - # color - # ----- @property def color(self): """ @@ -122,42 +113,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -169,8 +125,6 @@ def color(self): def color(self, val): self["color"] = val - # copy_zstyle - # ----------- @property def copy_zstyle(self): """ @@ -187,8 +141,6 @@ def copy_zstyle(self): def copy_zstyle(self, val): self["copy_zstyle"] = val - # symmetric - # --------- @property def symmetric(self): """ @@ -209,8 +161,6 @@ def symmetric(self): def symmetric(self, val): self["symmetric"] = val - # thickness - # --------- @property def thickness(self): """ @@ -229,8 +179,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # traceref - # -------- @property def traceref(self): """ @@ -248,8 +196,6 @@ def traceref(self): def traceref(self, val): self["traceref"] = val - # tracerefminus - # ------------- @property def tracerefminus(self): """ @@ -267,13 +213,11 @@ def tracerefminus(self): def tracerefminus(self, val): self["tracerefminus"] = val - # type - # ---- @property def type(self): """ Determines the rule used to generate the error bars. If - *constant`, the bar lengths are of a constant value. Set this + "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 @@ -294,8 +238,6 @@ def type(self): def type(self, val): self["type"] = val - # value - # ----- @property def value(self): """ @@ -316,8 +258,6 @@ def value(self): def value(self, val): self["value"] = val - # valueminus - # ---------- @property def valueminus(self): """ @@ -339,8 +279,6 @@ def valueminus(self): def valueminus(self, val): self["valueminus"] = val - # visible - # ------- @property def visible(self): """ @@ -359,8 +297,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # width - # ----- @property def width(self): """ @@ -380,8 +316,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -416,7 +350,7 @@ def _prop_descriptions(self): type Determines the rule used to generate the error bars. If - *constant`, the bar lengths are of a constant value. + "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 @@ -502,7 +436,7 @@ def __init__( type Determines the rule used to generate the error bars. If - *constant`, the bar lengths are of a constant value. + "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 @@ -531,14 +465,11 @@ def __init__( ------- ErrorY """ - super(ErrorY, self).__init__("error_y") - + super().__init__("error_y") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -553,78 +484,23 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("array", arg, array) + self._set_property("arrayminus", arg, arrayminus) + self._set_property("arrayminussrc", arg, arrayminussrc) + self._set_property("arraysrc", arg, arraysrc) + self._set_property("color", arg, color) + self._set_property("copy_zstyle", arg, copy_zstyle) + self._set_property("symmetric", arg, symmetric) + self._set_property("thickness", arg, thickness) + self._set_property("traceref", arg, traceref) + self._set_property("tracerefminus", arg, tracerefminus) + self._set_property("type", arg, type) + self._set_property("value", arg, value) + self._set_property("valueminus", arg, valueminus) + self._set_property("visible", arg, visible) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter3d/_error_z.py b/plotly/graph_objs/scatter3d/_error_z.py index 961f07cac0..ff7d68b096 100644 --- a/plotly/graph_objs/scatter3d/_error_z.py +++ b/plotly/graph_objs/scatter3d/_error_z.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ErrorZ(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter3d" _path_str = "scatter3d.error_z" _valid_props = { @@ -25,8 +26,6 @@ class ErrorZ(_BaseTraceHierarchyType): "width", } - # array - # ----- @property def array(self): """ @@ -46,8 +45,6 @@ def array(self): def array(self, val): self["array"] = val - # arrayminus - # ---------- @property def arrayminus(self): """ @@ -68,8 +65,6 @@ def arrayminus(self): def arrayminus(self, val): self["arrayminus"] = val - # arrayminussrc - # ------------- @property def arrayminussrc(self): """ @@ -89,8 +84,6 @@ def arrayminussrc(self): def arrayminussrc(self, val): self["arrayminussrc"] = val - # arraysrc - # -------- @property def arraysrc(self): """ @@ -109,8 +102,6 @@ def arraysrc(self): def arraysrc(self, val): self["arraysrc"] = val - # color - # ----- @property def color(self): """ @@ -121,42 +112,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -168,8 +124,6 @@ def color(self): def color(self, val): self["color"] = val - # symmetric - # --------- @property def symmetric(self): """ @@ -190,8 +144,6 @@ def symmetric(self): def symmetric(self, val): self["symmetric"] = val - # thickness - # --------- @property def thickness(self): """ @@ -210,8 +162,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # traceref - # -------- @property def traceref(self): """ @@ -229,8 +179,6 @@ def traceref(self): def traceref(self, val): self["traceref"] = val - # tracerefminus - # ------------- @property def tracerefminus(self): """ @@ -248,13 +196,11 @@ def tracerefminus(self): def tracerefminus(self, val): self["tracerefminus"] = val - # type - # ---- @property def type(self): """ Determines the rule used to generate the error bars. If - *constant`, the bar lengths are of a constant value. Set this + "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 @@ -275,8 +221,6 @@ def type(self): def type(self, val): self["type"] = val - # value - # ----- @property def value(self): """ @@ -297,8 +241,6 @@ def value(self): def value(self, val): self["value"] = val - # valueminus - # ---------- @property def valueminus(self): """ @@ -320,8 +262,6 @@ def valueminus(self): def valueminus(self, val): self["valueminus"] = val - # visible - # ------- @property def visible(self): """ @@ -340,8 +280,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # width - # ----- @property def width(self): """ @@ -361,8 +299,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -395,7 +331,7 @@ def _prop_descriptions(self): type Determines the rule used to generate the error bars. If - *constant`, the bar lengths are of a constant value. + "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 @@ -478,7 +414,7 @@ def __init__( type Determines the rule used to generate the error bars. If - *constant`, the bar lengths are of a constant value. + "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 @@ -507,14 +443,11 @@ def __init__( ------- ErrorZ """ - super(ErrorZ, self).__init__("error_z") - + super().__init__("error_z") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -529,74 +462,22 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("array", arg, array) + self._set_property("arrayminus", arg, arrayminus) + self._set_property("arrayminussrc", arg, arrayminussrc) + self._set_property("arraysrc", arg, arraysrc) + self._set_property("color", arg, color) + self._set_property("symmetric", arg, symmetric) + self._set_property("thickness", arg, thickness) + self._set_property("traceref", arg, traceref) + self._set_property("tracerefminus", arg, tracerefminus) + self._set_property("type", arg, type) + self._set_property("value", arg, value) + self._set_property("valueminus", arg, valueminus) + self._set_property("visible", arg, visible) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter3d/_hoverlabel.py b/plotly/graph_objs/scatter3d/_hoverlabel.py index db24a5c766..9fc1bf4351 100644 --- a/plotly/graph_objs/scatter3d/_hoverlabel.py +++ b/plotly/graph_objs/scatter3d/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter3d" _path_str = "scatter3d.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter3d/_legendgrouptitle.py b/plotly/graph_objs/scatter3d/_legendgrouptitle.py index 48507d5d80..882857b01a 100644 --- a/plotly/graph_objs/scatter3d/_legendgrouptitle.py +++ b/plotly/graph_objs/scatter3d/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter3d" _path_str = "scatter3d.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter3d/_line.py b/plotly/graph_objs/scatter3d/_line.py index 3005090f81..b163c5384c 100644 --- a/plotly/graph_objs/scatter3d/_line.py +++ b/plotly/graph_objs/scatter3d/_line.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter3d" _path_str = "scatter3d.line" _valid_props = { @@ -25,8 +26,6 @@ class Line(_BaseTraceHierarchyType): "width", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -51,8 +50,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -75,8 +72,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -98,8 +93,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -122,8 +115,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -145,8 +136,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # color - # ----- @property def color(self): """ @@ -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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to scatter3d.line.colorscale - A list or array of any of the above @@ -210,8 +164,6 @@ def color(self): def color(self, val): self["color"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -237,8 +189,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -248,273 +198,6 @@ 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 @@ -525,8 +208,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -579,8 +260,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -599,8 +278,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # dash - # ---- @property def dash(self): """ @@ -621,8 +298,6 @@ def dash(self): def dash(self, val): self["dash"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -644,8 +319,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # showscale - # --------- @property def showscale(self): """ @@ -666,8 +339,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # width - # ----- @property def width(self): """ @@ -686,8 +357,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -886,14 +555,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -908,74 +574,22 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("color", arg, color) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("dash", arg, dash) + self._set_property("reversescale", arg, reversescale) + self._set_property("showscale", arg, showscale) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter3d/_marker.py b/plotly/graph_objs/scatter3d/_marker.py index 36d86b9fda..7450187374 100644 --- a/plotly/graph_objs/scatter3d/_marker.py +++ b/plotly/graph_objs/scatter3d/_marker.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter3d" _path_str = "scatter3d.marker" _valid_props = { @@ -32,8 +33,6 @@ class Marker(_BaseTraceHierarchyType): "symbolsrc", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -58,8 +57,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -83,8 +80,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -106,8 +101,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -130,8 +123,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -153,8 +144,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # color - # ----- @property def color(self): """ @@ -168,42 +157,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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to scatter3d.marker.colorscale - A list or array of any of the above @@ -218,8 +172,6 @@ def color(self): def color(self, val): self["color"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -245,8 +197,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -256,273 +206,6 @@ 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 @@ -533,8 +216,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -587,8 +268,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -607,8 +286,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # line - # ---- @property def line(self): """ @@ -618,95 +295,6 @@ 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 @@ -717,8 +305,6 @@ def line(self): def line(self, val): self["line"] = val - # opacity - # ------- @property def opacity(self): """ @@ -741,8 +327,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -764,8 +348,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # showscale - # --------- @property def showscale(self): """ @@ -786,8 +368,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # size - # ---- @property def size(self): """ @@ -807,8 +387,6 @@ def size(self): def size(self, val): self["size"] = val - # sizemin - # ------- @property def sizemin(self): """ @@ -829,8 +407,6 @@ def sizemin(self): def sizemin(self, val): self["sizemin"] = val - # sizemode - # -------- @property def sizemode(self): """ @@ -852,8 +428,6 @@ def sizemode(self): def sizemode(self, val): self["sizemode"] = val - # sizeref - # ------- @property def sizeref(self): """ @@ -874,8 +448,6 @@ def sizeref(self): def sizeref(self, val): self["sizeref"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -894,8 +466,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # symbol - # ------ @property def symbol(self): """ @@ -917,8 +487,6 @@ def symbol(self): def symbol(self, val): self["symbol"] = val - # symbolsrc - # --------- @property def symbolsrc(self): """ @@ -937,8 +505,6 @@ def symbolsrc(self): def symbolsrc(self, val): self["symbolsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1200,14 +766,11 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1222,102 +785,29 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("color", arg, color) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("line", arg, line) + self._set_property("opacity", arg, opacity) + self._set_property("reversescale", arg, reversescale) + self._set_property("showscale", arg, showscale) + self._set_property("size", arg, size) + self._set_property("sizemin", arg, sizemin) + self._set_property("sizemode", arg, sizemode) + self._set_property("sizeref", arg, sizeref) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("symbol", arg, symbol) + self._set_property("symbolsrc", arg, symbolsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter3d/_projection.py b/plotly/graph_objs/scatter3d/_projection.py index 3b34ae5f6d..f2f29667b0 100644 --- a/plotly/graph_objs/scatter3d/_projection.py +++ b/plotly/graph_objs/scatter3d/_projection.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Projection(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter3d" _path_str = "scatter3d.projection" _valid_props = {"x", "y", "z"} - # x - # - @property def x(self): """ @@ -21,17 +20,6 @@ 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 @@ -42,8 +30,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -53,17 +39,6 @@ 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 @@ -74,8 +49,6 @@ def y(self): def y(self, val): self["y"] = val - # z - # - @property def z(self): """ @@ -85,17 +58,6 @@ 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 @@ -106,8 +68,6 @@ def z(self): def z(self, val): self["z"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -146,14 +106,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Projection """ - super(Projection, self).__init__("projection") - + super().__init__("projection") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -168,30 +125,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("x", arg, x) + self._set_property("y", arg, y) + self._set_property("z", arg, z) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter3d/_stream.py b/plotly/graph_objs/scatter3d/_stream.py index f1f3adf613..bb38f1ba94 100644 --- a/plotly/graph_objs/scatter3d/_stream.py +++ b/plotly/graph_objs/scatter3d/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter3d" _path_str = "scatter3d.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -94,14 +89,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -116,26 +108,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter3d/_textfont.py b/plotly/graph_objs/scatter3d/_textfont.py index 6e931a0181..650e577a15 100644 --- a/plotly/graph_objs/scatter3d/_textfont.py +++ b/plotly/graph_objs/scatter3d/_textfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter3d" _path_str = "scatter3d.textfont" _valid_props = { @@ -23,8 +24,6 @@ class Textfont(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -33,42 +32,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -81,8 +45,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -101,23 +63,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -133,8 +86,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -153,8 +104,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # size - # ---- @property def size(self): """ @@ -172,8 +121,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -192,8 +139,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -215,8 +160,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -235,8 +178,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -257,8 +198,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -277,8 +216,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -300,8 +237,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -320,8 +255,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -332,18 +265,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -405,18 +331,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -446,14 +365,11 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -468,66 +384,20 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter3d/hoverlabel/__init__.py b/plotly/graph_objs/scatter3d/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/scatter3d/hoverlabel/__init__.py +++ b/plotly/graph_objs/scatter3d/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scatter3d/hoverlabel/_font.py b/plotly/graph_objs/scatter3d/hoverlabel/_font.py index a3dd6d32e3..7f051e2ff7 100644 --- a/plotly/graph_objs/scatter3d/hoverlabel/_font.py +++ b/plotly/graph_objs/scatter3d/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter3d.hoverlabel" _path_str = "scatter3d.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter3d/legendgrouptitle/__init__.py b/plotly/graph_objs/scatter3d/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/scatter3d/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/scatter3d/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scatter3d/legendgrouptitle/_font.py b/plotly/graph_objs/scatter3d/legendgrouptitle/_font.py index dc518d92cb..d8392fbd46 100644 --- a/plotly/graph_objs/scatter3d/legendgrouptitle/_font.py +++ b/plotly/graph_objs/scatter3d/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter3d.legendgrouptitle" _path_str = "scatter3d.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter3d/line/__init__.py b/plotly/graph_objs/scatter3d/line/__init__.py index 27dfc9e52f..5e1805d8fa 100644 --- a/plotly/graph_objs/scatter3d/line/__init__.py +++ b/plotly/graph_objs/scatter3d/line/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [".colorbar"], ["._colorbar.ColorBar"] +) diff --git a/plotly/graph_objs/scatter3d/line/_colorbar.py b/plotly/graph_objs/scatter3d/line/_colorbar.py index d987d717ba..eca42e8185 100644 --- a/plotly/graph_objs/scatter3d/line/_colorbar.py +++ b/plotly/graph_objs/scatter3d/line/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter3d.line" _path_str = "scatter3d.line.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -913,8 +638,6 @@ 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 @@ -925,8 +648,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -949,8 +670,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -974,8 +693,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1000,8 +717,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1020,8 +735,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1047,8 +760,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1068,8 +779,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1091,8 +800,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1112,8 +819,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1134,8 +839,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1154,8 +857,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1175,8 +876,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1195,8 +894,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1215,8 +912,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1226,18 +921,6 @@ 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 @@ -1248,8 +931,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1274,8 +955,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1298,8 +977,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1318,8 +995,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1341,8 +1016,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1367,8 +1040,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1391,8 +1062,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1411,8 +1080,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1434,8 +1101,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1985,14 +1650,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2007,214 +1669,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter3d/line/colorbar/__init__.py b/plotly/graph_objs/scatter3d/line/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/scatter3d/line/colorbar/__init__.py +++ b/plotly/graph_objs/scatter3d/line/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/scatter3d/line/colorbar/_tickfont.py b/plotly/graph_objs/scatter3d/line/colorbar/_tickfont.py index 8515f8dbef..4db1501562 100644 --- a/plotly/graph_objs/scatter3d/line/colorbar/_tickfont.py +++ b/plotly/graph_objs/scatter3d/line/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter3d.line.colorbar" _path_str = "scatter3d.line.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter3d/line/colorbar/_tickformatstop.py b/plotly/graph_objs/scatter3d/line/colorbar/_tickformatstop.py index 04e9d2fa7b..862ba9713c 100644 --- a/plotly/graph_objs/scatter3d/line/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/scatter3d/line/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter3d.line.colorbar" _path_str = "scatter3d.line.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter3d/line/colorbar/_title.py b/plotly/graph_objs/scatter3d/line/colorbar/_title.py index 3483e9e4a6..a656d80533 100644 --- a/plotly/graph_objs/scatter3d/line/colorbar/_title.py +++ b/plotly/graph_objs/scatter3d/line/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter3d.line.colorbar" _path_str = "scatter3d.line.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter3d/line/colorbar/title/__init__.py b/plotly/graph_objs/scatter3d/line/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/scatter3d/line/colorbar/title/__init__.py +++ b/plotly/graph_objs/scatter3d/line/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scatter3d/line/colorbar/title/_font.py b/plotly/graph_objs/scatter3d/line/colorbar/title/_font.py index a98fdfd8b2..8d72116e7a 100644 --- a/plotly/graph_objs/scatter3d/line/colorbar/title/_font.py +++ b/plotly/graph_objs/scatter3d/line/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter3d.line.colorbar.title" _path_str = "scatter3d.line.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter3d/marker/__init__.py b/plotly/graph_objs/scatter3d/marker/__init__.py index 8481520e3c..ff536ec8b2 100644 --- a/plotly/graph_objs/scatter3d/marker/__init__.py +++ b/plotly/graph_objs/scatter3d/marker/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [".colorbar"], ["._colorbar.ColorBar", "._line.Line"] +) diff --git a/plotly/graph_objs/scatter3d/marker/_colorbar.py b/plotly/graph_objs/scatter3d/marker/_colorbar.py index 19904e5845..f2b5895eb7 100644 --- a/plotly/graph_objs/scatter3d/marker/_colorbar.py +++ b/plotly/graph_objs/scatter3d/marker/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter3d.marker" _path_str = "scatter3d.marker.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -913,8 +638,6 @@ 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 @@ -925,8 +648,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -949,8 +670,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -974,8 +693,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1000,8 +717,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1020,8 +735,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1047,8 +760,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1068,8 +779,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1091,8 +800,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1112,8 +819,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1134,8 +839,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1154,8 +857,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1175,8 +876,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1195,8 +894,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1215,8 +912,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1226,18 +921,6 @@ 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 @@ -1248,8 +931,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1274,8 +955,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1298,8 +977,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1318,8 +995,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1341,8 +1016,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1367,8 +1040,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1391,8 +1062,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1411,8 +1080,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1434,8 +1101,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1985,14 +1650,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2007,214 +1669,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter3d/marker/_line.py b/plotly/graph_objs/scatter3d/marker/_line.py index bf7ebcf385..a257714e5c 100644 --- a/plotly/graph_objs/scatter3d/marker/_line.py +++ b/plotly/graph_objs/scatter3d/marker/_line.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter3d.marker" _path_str = "scatter3d.marker.line" _valid_props = { @@ -22,8 +23,6 @@ class Line(_BaseTraceHierarchyType): "width", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -48,8 +47,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -73,8 +70,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -96,8 +91,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -121,8 +114,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -144,8 +135,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # color - # ----- @property def color(self): """ @@ -159,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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to scatter3d.marker.line.colorscale - A list or array of any of the above @@ -209,8 +163,6 @@ def color(self): def color(self, val): self["color"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -236,8 +188,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -291,8 +241,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -311,8 +259,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -335,8 +281,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # width - # ----- @property def width(self): """ @@ -355,8 +299,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -542,14 +484,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -564,62 +503,19 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("color", arg, color) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("reversescale", arg, reversescale) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter3d/marker/colorbar/__init__.py b/plotly/graph_objs/scatter3d/marker/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/scatter3d/marker/colorbar/__init__.py +++ b/plotly/graph_objs/scatter3d/marker/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/scatter3d/marker/colorbar/_tickfont.py b/plotly/graph_objs/scatter3d/marker/colorbar/_tickfont.py index 725d247cb5..4d0f35fa6e 100644 --- a/plotly/graph_objs/scatter3d/marker/colorbar/_tickfont.py +++ b/plotly/graph_objs/scatter3d/marker/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter3d.marker.colorbar" _path_str = "scatter3d.marker.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter3d/marker/colorbar/_tickformatstop.py b/plotly/graph_objs/scatter3d/marker/colorbar/_tickformatstop.py index f953773650..48d9dada61 100644 --- a/plotly/graph_objs/scatter3d/marker/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/scatter3d/marker/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter3d.marker.colorbar" _path_str = "scatter3d.marker.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter3d/marker/colorbar/_title.py b/plotly/graph_objs/scatter3d/marker/colorbar/_title.py index c048363a0c..270fd8269b 100644 --- a/plotly/graph_objs/scatter3d/marker/colorbar/_title.py +++ b/plotly/graph_objs/scatter3d/marker/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter3d.marker.colorbar" _path_str = "scatter3d.marker.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter3d/marker/colorbar/title/__init__.py b/plotly/graph_objs/scatter3d/marker/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/scatter3d/marker/colorbar/title/__init__.py +++ b/plotly/graph_objs/scatter3d/marker/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scatter3d/marker/colorbar/title/_font.py b/plotly/graph_objs/scatter3d/marker/colorbar/title/_font.py index 1da6442303..b38a7cf725 100644 --- a/plotly/graph_objs/scatter3d/marker/colorbar/title/_font.py +++ b/plotly/graph_objs/scatter3d/marker/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter3d.marker.colorbar.title" _path_str = "scatter3d.marker.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter3d/projection/__init__.py b/plotly/graph_objs/scatter3d/projection/__init__.py index b7c5709451..649c038369 100644 --- a/plotly/graph_objs/scatter3d/projection/__init__.py +++ b/plotly/graph_objs/scatter3d/projection/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._x.X", "._y.Y", "._z.Z"] +) diff --git a/plotly/graph_objs/scatter3d/projection/_x.py b/plotly/graph_objs/scatter3d/projection/_x.py index 28728a3c8d..f05bebbdb7 100644 --- a/plotly/graph_objs/scatter3d/projection/_x.py +++ b/plotly/graph_objs/scatter3d/projection/_x.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class X(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter3d.projection" _path_str = "scatter3d.projection.x" _valid_props = {"opacity", "scale", "show"} - # opacity - # ------- @property def opacity(self): """ @@ -30,8 +29,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # scale - # ----- @property def scale(self): """ @@ -51,8 +48,6 @@ def scale(self): def scale(self, val): self["scale"] = val - # show - # ---- @property def show(self): """ @@ -71,8 +66,6 @@ def show(self): def show(self, val): self["show"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -109,14 +102,11 @@ def __init__(self, arg=None, opacity=None, scale=None, show=None, **kwargs): ------- X """ - super(X, self).__init__("x") - + super().__init__("x") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -131,30 +121,11 @@ def __init__(self, arg=None, opacity=None, scale=None, show=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("opacity", arg, opacity) + self._set_property("scale", arg, scale) + self._set_property("show", arg, show) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter3d/projection/_y.py b/plotly/graph_objs/scatter3d/projection/_y.py index b36d3902c3..ee11e53cee 100644 --- a/plotly/graph_objs/scatter3d/projection/_y.py +++ b/plotly/graph_objs/scatter3d/projection/_y.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Y(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter3d.projection" _path_str = "scatter3d.projection.y" _valid_props = {"opacity", "scale", "show"} - # opacity - # ------- @property def opacity(self): """ @@ -30,8 +29,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # scale - # ----- @property def scale(self): """ @@ -51,8 +48,6 @@ def scale(self): def scale(self, val): self["scale"] = val - # show - # ---- @property def show(self): """ @@ -71,8 +66,6 @@ def show(self): def show(self, val): self["show"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -109,14 +102,11 @@ def __init__(self, arg=None, opacity=None, scale=None, show=None, **kwargs): ------- Y """ - super(Y, self).__init__("y") - + super().__init__("y") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -131,30 +121,11 @@ def __init__(self, arg=None, opacity=None, scale=None, show=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("opacity", arg, opacity) + self._set_property("scale", arg, scale) + self._set_property("show", arg, show) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatter3d/projection/_z.py b/plotly/graph_objs/scatter3d/projection/_z.py index 5ca5e519e8..a3ce33cadb 100644 --- a/plotly/graph_objs/scatter3d/projection/_z.py +++ b/plotly/graph_objs/scatter3d/projection/_z.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Z(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatter3d.projection" _path_str = "scatter3d.projection.z" _valid_props = {"opacity", "scale", "show"} - # opacity - # ------- @property def opacity(self): """ @@ -30,8 +29,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # scale - # ----- @property def scale(self): """ @@ -51,8 +48,6 @@ def scale(self): def scale(self, val): self["scale"] = val - # show - # ---- @property def show(self): """ @@ -71,8 +66,6 @@ def show(self): def show(self, val): self["show"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -109,14 +102,11 @@ def __init__(self, arg=None, opacity=None, scale=None, show=None, **kwargs): ------- Z """ - super(Z, self).__init__("z") - + super().__init__("z") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -131,30 +121,11 @@ def __init__(self, arg=None, opacity=None, scale=None, show=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("opacity", arg, opacity) + self._set_property("scale", arg, scale) + self._set_property("show", arg, show) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattercarpet/__init__.py b/plotly/graph_objs/scattercarpet/__init__.py index 382e87019f..7cc31d4831 100644 --- a/plotly/graph_objs/scattercarpet/__init__.py +++ b/plotly/graph_objs/scattercarpet/__init__.py @@ -1,34 +1,17 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._hoverlabel import Hoverlabel - from ._legendgrouptitle import Legendgrouptitle - from ._line import Line - from ._marker import Marker - from ._selected import Selected - from ._stream import Stream - from ._textfont import Textfont - from ._unselected import Unselected - from . import hoverlabel - from . import legendgrouptitle - from . import marker - from . import selected - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/scattercarpet/_hoverlabel.py b/plotly/graph_objs/scattercarpet/_hoverlabel.py index d8a228b5bf..4c02dd2acf 100644 --- a/plotly/graph_objs/scattercarpet/_hoverlabel.py +++ b/plotly/graph_objs/scattercarpet/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattercarpet" _path_str = "scattercarpet.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattercarpet/_legendgrouptitle.py b/plotly/graph_objs/scattercarpet/_legendgrouptitle.py index 0ef210fb5c..48edf472b7 100644 --- a/plotly/graph_objs/scattercarpet/_legendgrouptitle.py +++ b/plotly/graph_objs/scattercarpet/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattercarpet" _path_str = "scattercarpet.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattercarpet/_line.py b/plotly/graph_objs/scattercarpet/_line.py index e90e05f8f8..336fe8e544 100644 --- a/plotly/graph_objs/scattercarpet/_line.py +++ b/plotly/graph_objs/scattercarpet/_line.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattercarpet" _path_str = "scattercarpet.line" _valid_props = { @@ -18,8 +19,6 @@ class Line(_BaseTraceHierarchyType): "width", } - # backoff - # ------- @property def backoff(self): """ @@ -42,8 +41,6 @@ def backoff(self): def backoff(self, val): self["backoff"] = val - # backoffsrc - # ---------- @property def backoffsrc(self): """ @@ -62,8 +59,6 @@ def backoffsrc(self): def backoffsrc(self, val): self["backoffsrc"] = val - # color - # ----- @property def color(self): """ @@ -74,42 +69,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -121,8 +81,6 @@ def color(self): def color(self, val): self["color"] = val - # dash - # ---- @property def dash(self): """ @@ -147,8 +105,6 @@ def dash(self): def dash(self, val): self["dash"] = val - # shape - # ----- @property def shape(self): """ @@ -170,8 +126,6 @@ def shape(self): def shape(self, val): self["shape"] = val - # smoothing - # --------- @property def smoothing(self): """ @@ -192,8 +146,6 @@ def smoothing(self): def smoothing(self, val): self["smoothing"] = val - # width - # ----- @property def width(self): """ @@ -212,8 +164,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -297,14 +247,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -319,46 +266,15 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("backoff", arg, backoff) + self._set_property("backoffsrc", arg, backoffsrc) + self._set_property("color", arg, color) + self._set_property("dash", arg, dash) + self._set_property("shape", arg, shape) + self._set_property("smoothing", arg, smoothing) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattercarpet/_marker.py b/plotly/graph_objs/scattercarpet/_marker.py index 1d1e05bd35..32b8d44a82 100644 --- a/plotly/graph_objs/scattercarpet/_marker.py +++ b/plotly/graph_objs/scattercarpet/_marker.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattercarpet" _path_str = "scattercarpet.marker" _valid_props = { @@ -40,8 +41,6 @@ class Marker(_BaseTraceHierarchyType): "symbolsrc", } - # angle - # ----- @property def angle(self): """ @@ -62,8 +61,6 @@ def angle(self): def angle(self, val): self["angle"] = val - # angleref - # -------- @property def angleref(self): """ @@ -85,8 +82,6 @@ def angleref(self): def angleref(self, val): self["angleref"] = val - # anglesrc - # -------- @property def anglesrc(self): """ @@ -105,8 +100,6 @@ def anglesrc(self): def anglesrc(self, val): self["anglesrc"] = val - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -131,8 +124,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -156,8 +147,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -179,8 +168,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -203,8 +190,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -226,8 +211,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # color - # ----- @property def color(self): """ @@ -241,42 +224,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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to scattercarpet.marker.colorscale - A list or array of any of the above @@ -291,8 +239,6 @@ def color(self): def color(self, val): self["color"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -318,8 +264,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -329,273 +273,6 @@ 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 @@ -606,8 +283,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -660,8 +335,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -680,8 +353,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # gradient - # -------- @property def gradient(self): """ @@ -691,22 +362,6 @@ 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 @@ -717,8 +372,6 @@ def gradient(self): def gradient(self, val): self["gradient"] = val - # line - # ---- @property def line(self): """ @@ -728,98 +381,6 @@ 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 @@ -830,8 +391,6 @@ def line(self): def line(self, val): self["line"] = val - # maxdisplayed - # ------------ @property def maxdisplayed(self): """ @@ -851,8 +410,6 @@ def maxdisplayed(self): def maxdisplayed(self, val): self["maxdisplayed"] = val - # opacity - # ------- @property def opacity(self): """ @@ -872,8 +429,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # opacitysrc - # ---------- @property def opacitysrc(self): """ @@ -892,8 +447,6 @@ def opacitysrc(self): def opacitysrc(self, val): self["opacitysrc"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -915,8 +468,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # showscale - # --------- @property def showscale(self): """ @@ -937,8 +488,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # size - # ---- @property def size(self): """ @@ -958,8 +507,6 @@ def size(self): def size(self, val): self["size"] = val - # sizemin - # ------- @property def sizemin(self): """ @@ -980,8 +527,6 @@ def sizemin(self): def sizemin(self, val): self["sizemin"] = val - # sizemode - # -------- @property def sizemode(self): """ @@ -1003,8 +548,6 @@ def sizemode(self): def sizemode(self, val): self["sizemode"] = val - # sizeref - # ------- @property def sizeref(self): """ @@ -1025,8 +568,6 @@ def sizeref(self): def sizeref(self, val): self["sizeref"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -1045,8 +586,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # standoff - # -------- @property def standoff(self): """ @@ -1069,8 +608,6 @@ def standoff(self): def standoff(self, val): self["standoff"] = val - # standoffsrc - # ----------- @property def standoffsrc(self): """ @@ -1089,8 +626,6 @@ def standoffsrc(self): def standoffsrc(self, val): self["standoffsrc"] = val - # symbol - # ------ @property def symbol(self): """ @@ -1202,8 +737,6 @@ def symbol(self): def symbol(self, val): self["symbol"] = val - # symbolsrc - # --------- @property def symbolsrc(self): """ @@ -1222,8 +755,6 @@ def symbolsrc(self): def symbolsrc(self, val): self["symbolsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1547,14 +1078,11 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1569,134 +1097,37 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("angle", arg, angle) + self._set_property("angleref", arg, angleref) + self._set_property("anglesrc", arg, anglesrc) + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("color", arg, color) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("gradient", arg, gradient) + self._set_property("line", arg, line) + self._set_property("maxdisplayed", arg, maxdisplayed) + self._set_property("opacity", arg, opacity) + self._set_property("opacitysrc", arg, opacitysrc) + self._set_property("reversescale", arg, reversescale) + self._set_property("showscale", arg, showscale) + self._set_property("size", arg, size) + self._set_property("sizemin", arg, sizemin) + self._set_property("sizemode", arg, sizemode) + self._set_property("sizeref", arg, sizeref) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("standoff", arg, standoff) + self._set_property("standoffsrc", arg, standoffsrc) + self._set_property("symbol", arg, symbol) + self._set_property("symbolsrc", arg, symbolsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattercarpet/_selected.py b/plotly/graph_objs/scattercarpet/_selected.py index f304c520ea..4081ec1bbf 100644 --- a/plotly/graph_objs/scattercarpet/_selected.py +++ b/plotly/graph_objs/scattercarpet/_selected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Selected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattercarpet" _path_str = "scattercarpet.selected" _valid_props = {"marker", "textfont"} - # marker - # ------ @property def marker(self): """ @@ -21,15 +20,6 @@ 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 @@ -40,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # textfont - # -------- @property def textfont(self): """ @@ -51,11 +39,6 @@ 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 @@ -66,8 +49,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -100,14 +81,11 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") - + super().__init__("selected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -122,26 +100,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) + self._set_property("textfont", arg, textfont) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattercarpet/_stream.py b/plotly/graph_objs/scattercarpet/_stream.py index bc4d38873d..5e5ac78c88 100644 --- a/plotly/graph_objs/scattercarpet/_stream.py +++ b/plotly/graph_objs/scattercarpet/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattercarpet" _path_str = "scattercarpet.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -94,14 +89,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -116,26 +108,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattercarpet/_textfont.py b/plotly/graph_objs/scattercarpet/_textfont.py index 480d5806bb..32240df57a 100644 --- a/plotly/graph_objs/scattercarpet/_textfont.py +++ b/plotly/graph_objs/scattercarpet/_textfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattercarpet" _path_str = "scattercarpet.textfont" _valid_props = { @@ -29,8 +30,6 @@ class Textfont(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattercarpet/_unselected.py b/plotly/graph_objs/scattercarpet/_unselected.py index 1542019237..31be43e1bf 100644 --- a/plotly/graph_objs/scattercarpet/_unselected.py +++ b/plotly/graph_objs/scattercarpet/_unselected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Unselected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattercarpet" _path_str = "scattercarpet.unselected" _valid_props = {"marker", "textfont"} - # marker - # ------ @property def marker(self): """ @@ -21,18 +20,6 @@ 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 @@ -43,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # textfont - # -------- @property def textfont(self): """ @@ -54,12 +39,6 @@ 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 @@ -70,8 +49,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -104,14 +81,11 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") - + super().__init__("unselected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -126,26 +100,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) + self._set_property("textfont", arg, textfont) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattercarpet/hoverlabel/__init__.py b/plotly/graph_objs/scattercarpet/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/scattercarpet/hoverlabel/__init__.py +++ b/plotly/graph_objs/scattercarpet/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scattercarpet/hoverlabel/_font.py b/plotly/graph_objs/scattercarpet/hoverlabel/_font.py index 1f5f52ddba..9c19de4539 100644 --- a/plotly/graph_objs/scattercarpet/hoverlabel/_font.py +++ b/plotly/graph_objs/scattercarpet/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattercarpet.hoverlabel" _path_str = "scattercarpet.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattercarpet/legendgrouptitle/__init__.py b/plotly/graph_objs/scattercarpet/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/scattercarpet/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/scattercarpet/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scattercarpet/legendgrouptitle/_font.py b/plotly/graph_objs/scattercarpet/legendgrouptitle/_font.py index 0f72cb4373..afb974824c 100644 --- a/plotly/graph_objs/scattercarpet/legendgrouptitle/_font.py +++ b/plotly/graph_objs/scattercarpet/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattercarpet.legendgrouptitle" _path_str = "scattercarpet.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattercarpet/marker/__init__.py b/plotly/graph_objs/scattercarpet/marker/__init__.py index f1897fb0aa..f9d889ecb9 100644 --- a/plotly/graph_objs/scattercarpet/marker/__init__.py +++ b/plotly/graph_objs/scattercarpet/marker/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._colorbar import ColorBar - from ._gradient import Gradient - from ._line import Line - from . import colorbar -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".colorbar"], - ["._colorbar.ColorBar", "._gradient.Gradient", "._line.Line"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".colorbar"], + ["._colorbar.ColorBar", "._gradient.Gradient", "._line.Line"], +) diff --git a/plotly/graph_objs/scattercarpet/marker/_colorbar.py b/plotly/graph_objs/scattercarpet/marker/_colorbar.py index 6b7cd89da4..51327ceaee 100644 --- a/plotly/graph_objs/scattercarpet/marker/_colorbar.py +++ b/plotly/graph_objs/scattercarpet/marker/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattercarpet.marker" _path_str = "scattercarpet.marker.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -913,8 +638,6 @@ 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 @@ -925,8 +648,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -949,8 +670,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -974,8 +693,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1000,8 +717,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1020,8 +735,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1047,8 +760,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1068,8 +779,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1091,8 +800,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1112,8 +819,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1134,8 +839,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1154,8 +857,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1175,8 +876,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1195,8 +894,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1215,8 +912,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1226,18 +921,6 @@ 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 @@ -1248,8 +931,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1274,8 +955,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1298,8 +977,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1318,8 +995,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1341,8 +1016,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1367,8 +1040,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1391,8 +1062,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1411,8 +1080,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1434,8 +1101,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1985,14 +1650,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2007,214 +1669,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattercarpet/marker/_gradient.py b/plotly/graph_objs/scattercarpet/marker/_gradient.py index e1d631261b..c68ea551ac 100644 --- a/plotly/graph_objs/scattercarpet/marker/_gradient.py +++ b/plotly/graph_objs/scattercarpet/marker/_gradient.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Gradient(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattercarpet.marker" _path_str = "scattercarpet.marker.gradient" _valid_props = {"color", "colorsrc", "type", "typesrc"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -71,8 +35,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -91,8 +53,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # type - # ---- @property def type(self): """ @@ -113,8 +73,6 @@ def type(self): def type(self, val): self["type"] = val - # typesrc - # ------- @property def typesrc(self): """ @@ -133,8 +91,6 @@ def typesrc(self): def typesrc(self, val): self["typesrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -181,14 +137,11 @@ def __init__( ------- Gradient """ - super(Gradient, self).__init__("gradient") - + super().__init__("gradient") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -203,34 +156,12 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("type", arg, type) + self._set_property("typesrc", arg, typesrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattercarpet/marker/_line.py b/plotly/graph_objs/scattercarpet/marker/_line.py index 55baf406f2..1f8f8e09cd 100644 --- a/plotly/graph_objs/scattercarpet/marker/_line.py +++ b/plotly/graph_objs/scattercarpet/marker/_line.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattercarpet.marker" _path_str = "scattercarpet.marker.line" _valid_props = { @@ -23,8 +24,6 @@ class Line(_BaseTraceHierarchyType): "widthsrc", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -49,8 +48,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -74,8 +71,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -97,8 +92,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -122,8 +115,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -145,8 +136,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # color - # ----- @property def color(self): """ @@ -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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to scattercarpet.marker.line.colorscale - A list or array of any of the above @@ -210,8 +164,6 @@ def color(self): def color(self, val): self["color"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -237,8 +189,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -292,8 +242,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -312,8 +260,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -336,8 +282,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # width - # ----- @property def width(self): """ @@ -357,8 +301,6 @@ def width(self): def width(self, val): self["width"] = val - # widthsrc - # -------- @property def widthsrc(self): """ @@ -377,8 +319,6 @@ def widthsrc(self): def widthsrc(self, val): self["widthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -571,14 +511,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -593,66 +530,20 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("color", arg, color) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("reversescale", arg, reversescale) + self._set_property("width", arg, width) + self._set_property("widthsrc", arg, widthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattercarpet/marker/colorbar/__init__.py b/plotly/graph_objs/scattercarpet/marker/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/scattercarpet/marker/colorbar/__init__.py +++ b/plotly/graph_objs/scattercarpet/marker/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/scattercarpet/marker/colorbar/_tickfont.py b/plotly/graph_objs/scattercarpet/marker/colorbar/_tickfont.py index e21f9eba0d..51b7c2a491 100644 --- a/plotly/graph_objs/scattercarpet/marker/colorbar/_tickfont.py +++ b/plotly/graph_objs/scattercarpet/marker/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattercarpet.marker.colorbar" _path_str = "scattercarpet.marker.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattercarpet/marker/colorbar/_tickformatstop.py b/plotly/graph_objs/scattercarpet/marker/colorbar/_tickformatstop.py index 1d6a29ee8f..9f873f3784 100644 --- a/plotly/graph_objs/scattercarpet/marker/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/scattercarpet/marker/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattercarpet.marker.colorbar" _path_str = "scattercarpet.marker.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattercarpet/marker/colorbar/_title.py b/plotly/graph_objs/scattercarpet/marker/colorbar/_title.py index 537a7994e5..937455bef7 100644 --- a/plotly/graph_objs/scattercarpet/marker/colorbar/_title.py +++ b/plotly/graph_objs/scattercarpet/marker/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattercarpet.marker.colorbar" _path_str = "scattercarpet.marker.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattercarpet/marker/colorbar/title/__init__.py b/plotly/graph_objs/scattercarpet/marker/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/scattercarpet/marker/colorbar/title/__init__.py +++ b/plotly/graph_objs/scattercarpet/marker/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scattercarpet/marker/colorbar/title/_font.py b/plotly/graph_objs/scattercarpet/marker/colorbar/title/_font.py index 7df5a819af..8f84fd3661 100644 --- a/plotly/graph_objs/scattercarpet/marker/colorbar/title/_font.py +++ b/plotly/graph_objs/scattercarpet/marker/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattercarpet.marker.colorbar.title" _path_str = "scattercarpet.marker.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattercarpet/selected/__init__.py b/plotly/graph_objs/scattercarpet/selected/__init__.py index ae964f0b65..473168fdb5 100644 --- a/plotly/graph_objs/scattercarpet/selected/__init__.py +++ b/plotly/graph_objs/scattercarpet/selected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.Marker", "._textfont.Textfont"] +) diff --git a/plotly/graph_objs/scattercarpet/selected/_marker.py b/plotly/graph_objs/scattercarpet/selected/_marker.py index 1b24f8856f..e43d198c4e 100644 --- a/plotly/graph_objs/scattercarpet/selected/_marker.py +++ b/plotly/graph_objs/scattercarpet/selected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattercarpet.selected" _path_str = "scattercarpet.selected.marker" _valid_props = {"color", "opacity", "size"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # opacity - # ------- @property def opacity(self): """ @@ -89,8 +51,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # size - # ---- @property def size(self): """ @@ -109,8 +69,6 @@ def size(self): def size(self, val): self["size"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -143,14 +101,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -165,30 +120,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("opacity", arg, opacity) + self._set_property("size", arg, size) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattercarpet/selected/_textfont.py b/plotly/graph_objs/scattercarpet/selected/_textfont.py index 0b33101065..6c4337e3fb 100644 --- a/plotly/graph_objs/scattercarpet/selected/_textfont.py +++ b/plotly/graph_objs/scattercarpet/selected/_textfont.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattercarpet.selected" _path_str = "scattercarpet.selected.textfont" _valid_props = {"color"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -95,14 +57,11 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -117,22 +76,9 @@ def __init__(self, arg=None, color=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattercarpet/unselected/__init__.py b/plotly/graph_objs/scattercarpet/unselected/__init__.py index ae964f0b65..473168fdb5 100644 --- a/plotly/graph_objs/scattercarpet/unselected/__init__.py +++ b/plotly/graph_objs/scattercarpet/unselected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.Marker", "._textfont.Textfont"] +) diff --git a/plotly/graph_objs/scattercarpet/unselected/_marker.py b/plotly/graph_objs/scattercarpet/unselected/_marker.py index 5d0b8a5d0d..5f63108bd9 100644 --- a/plotly/graph_objs/scattercarpet/unselected/_marker.py +++ b/plotly/graph_objs/scattercarpet/unselected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattercarpet.unselected" _path_str = "scattercarpet.unselected.marker" _valid_props = {"color", "opacity", "size"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # opacity - # ------- @property def opacity(self): """ @@ -91,8 +53,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # size - # ---- @property def size(self): """ @@ -112,8 +72,6 @@ def size(self): def size(self, val): self["size"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -152,14 +110,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -174,30 +129,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("opacity", arg, opacity) + self._set_property("size", arg, size) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattercarpet/unselected/_textfont.py b/plotly/graph_objs/scattercarpet/unselected/_textfont.py index 95209e1791..b39b308db6 100644 --- a/plotly/graph_objs/scattercarpet/unselected/_textfont.py +++ b/plotly/graph_objs/scattercarpet/unselected/_textfont.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattercarpet.unselected" _path_str = "scattercarpet.unselected.textfont" _valid_props = {"color"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -98,14 +60,11 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -120,22 +79,9 @@ def __init__(self, arg=None, color=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergeo/__init__.py b/plotly/graph_objs/scattergeo/__init__.py index 382e87019f..7cc31d4831 100644 --- a/plotly/graph_objs/scattergeo/__init__.py +++ b/plotly/graph_objs/scattergeo/__init__.py @@ -1,34 +1,17 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._hoverlabel import Hoverlabel - from ._legendgrouptitle import Legendgrouptitle - from ._line import Line - from ._marker import Marker - from ._selected import Selected - from ._stream import Stream - from ._textfont import Textfont - from ._unselected import Unselected - from . import hoverlabel - from . import legendgrouptitle - from . import marker - from . import selected - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/scattergeo/_hoverlabel.py b/plotly/graph_objs/scattergeo/_hoverlabel.py index 50bc99f007..4120c55377 100644 --- a/plotly/graph_objs/scattergeo/_hoverlabel.py +++ b/plotly/graph_objs/scattergeo/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergeo" _path_str = "scattergeo.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergeo/_legendgrouptitle.py b/plotly/graph_objs/scattergeo/_legendgrouptitle.py index 128be95b35..fdc17073c6 100644 --- a/plotly/graph_objs/scattergeo/_legendgrouptitle.py +++ b/plotly/graph_objs/scattergeo/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergeo" _path_str = "scattergeo.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergeo/_line.py b/plotly/graph_objs/scattergeo/_line.py index 7567b73249..0299f42e7c 100644 --- a/plotly/graph_objs/scattergeo/_line.py +++ b/plotly/graph_objs/scattergeo/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergeo" _path_str = "scattergeo.line" _valid_props = {"color", "dash", "width"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # dash - # ---- @property def dash(self): """ @@ -95,8 +57,6 @@ def dash(self): def dash(self, val): self["dash"] = val - # width - # ----- @property def width(self): """ @@ -115,8 +75,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -155,14 +113,11 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -177,30 +132,11 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("dash", arg, dash) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergeo/_marker.py b/plotly/graph_objs/scattergeo/_marker.py index ac1ea83374..f3b56d6bc7 100644 --- a/plotly/graph_objs/scattergeo/_marker.py +++ b/plotly/graph_objs/scattergeo/_marker.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergeo" _path_str = "scattergeo.marker" _valid_props = { @@ -39,8 +40,6 @@ class Marker(_BaseTraceHierarchyType): "symbolsrc", } - # angle - # ----- @property def angle(self): """ @@ -61,8 +60,6 @@ def angle(self): def angle(self, val): self["angle"] = val - # angleref - # -------- @property def angleref(self): """ @@ -86,8 +83,6 @@ def angleref(self): def angleref(self, val): self["angleref"] = val - # anglesrc - # -------- @property def anglesrc(self): """ @@ -106,8 +101,6 @@ def anglesrc(self): def anglesrc(self, val): self["anglesrc"] = val - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -132,8 +125,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -157,8 +148,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -180,8 +169,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -204,8 +191,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -227,8 +212,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # color - # ----- @property def color(self): """ @@ -242,42 +225,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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to scattergeo.marker.colorscale - A list or array of any of the above @@ -292,8 +240,6 @@ def color(self): def color(self, val): self["color"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -319,8 +265,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -330,273 +274,6 @@ 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 @@ -607,8 +284,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -661,8 +336,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -681,8 +354,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # gradient - # -------- @property def gradient(self): """ @@ -692,22 +363,6 @@ 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 @@ -718,8 +373,6 @@ def gradient(self): def gradient(self, val): self["gradient"] = val - # line - # ---- @property def line(self): """ @@ -729,98 +382,6 @@ 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 @@ -831,8 +392,6 @@ def line(self): def line(self, val): self["line"] = val - # opacity - # ------- @property def opacity(self): """ @@ -852,8 +411,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # opacitysrc - # ---------- @property def opacitysrc(self): """ @@ -872,8 +429,6 @@ def opacitysrc(self): def opacitysrc(self, val): self["opacitysrc"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -895,8 +450,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # showscale - # --------- @property def showscale(self): """ @@ -917,8 +470,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # size - # ---- @property def size(self): """ @@ -938,8 +489,6 @@ def size(self): def size(self, val): self["size"] = val - # sizemin - # ------- @property def sizemin(self): """ @@ -960,8 +509,6 @@ def sizemin(self): def sizemin(self, val): self["sizemin"] = val - # sizemode - # -------- @property def sizemode(self): """ @@ -983,8 +530,6 @@ def sizemode(self): def sizemode(self, val): self["sizemode"] = val - # sizeref - # ------- @property def sizeref(self): """ @@ -1005,8 +550,6 @@ def sizeref(self): def sizeref(self, val): self["sizeref"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -1025,8 +568,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # standoff - # -------- @property def standoff(self): """ @@ -1049,8 +590,6 @@ def standoff(self): def standoff(self, val): self["standoff"] = val - # standoffsrc - # ----------- @property def standoffsrc(self): """ @@ -1069,8 +608,6 @@ def standoffsrc(self): def standoffsrc(self, val): self["standoffsrc"] = val - # symbol - # ------ @property def symbol(self): """ @@ -1182,8 +719,6 @@ def symbol(self): def symbol(self, val): self["symbol"] = val - # symbolsrc - # --------- @property def symbolsrc(self): """ @@ -1202,8 +737,6 @@ def symbolsrc(self): def symbolsrc(self, val): self["symbolsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1522,14 +1055,11 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1544,130 +1074,36 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("angle", arg, angle) + self._set_property("angleref", arg, angleref) + self._set_property("anglesrc", arg, anglesrc) + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("color", arg, color) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("gradient", arg, gradient) + self._set_property("line", arg, line) + self._set_property("opacity", arg, opacity) + self._set_property("opacitysrc", arg, opacitysrc) + self._set_property("reversescale", arg, reversescale) + self._set_property("showscale", arg, showscale) + self._set_property("size", arg, size) + self._set_property("sizemin", arg, sizemin) + self._set_property("sizemode", arg, sizemode) + self._set_property("sizeref", arg, sizeref) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("standoff", arg, standoff) + self._set_property("standoffsrc", arg, standoffsrc) + self._set_property("symbol", arg, symbol) + self._set_property("symbolsrc", arg, symbolsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergeo/_selected.py b/plotly/graph_objs/scattergeo/_selected.py index c1277c1ae2..cca85d4a7b 100644 --- a/plotly/graph_objs/scattergeo/_selected.py +++ b/plotly/graph_objs/scattergeo/_selected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Selected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergeo" _path_str = "scattergeo.selected" _valid_props = {"marker", "textfont"} - # marker - # ------ @property def marker(self): """ @@ -21,15 +20,6 @@ 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 @@ -40,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # textfont - # -------- @property def textfont(self): """ @@ -51,11 +39,6 @@ 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 @@ -66,8 +49,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -100,14 +81,11 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") - + super().__init__("selected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -122,26 +100,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) + self._set_property("textfont", arg, textfont) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergeo/_stream.py b/plotly/graph_objs/scattergeo/_stream.py index fafa62d627..9eb70b909e 100644 --- a/plotly/graph_objs/scattergeo/_stream.py +++ b/plotly/graph_objs/scattergeo/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergeo" _path_str = "scattergeo.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -94,14 +89,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -116,26 +108,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergeo/_textfont.py b/plotly/graph_objs/scattergeo/_textfont.py index 4c35690599..d1450a148a 100644 --- a/plotly/graph_objs/scattergeo/_textfont.py +++ b/plotly/graph_objs/scattergeo/_textfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergeo" _path_str = "scattergeo.textfont" _valid_props = { @@ -29,8 +30,6 @@ class Textfont(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergeo/_unselected.py b/plotly/graph_objs/scattergeo/_unselected.py index 5925e30352..0bd34ac33f 100644 --- a/plotly/graph_objs/scattergeo/_unselected.py +++ b/plotly/graph_objs/scattergeo/_unselected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Unselected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergeo" _path_str = "scattergeo.unselected" _valid_props = {"marker", "textfont"} - # marker - # ------ @property def marker(self): """ @@ -21,18 +20,6 @@ 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 @@ -43,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # textfont - # -------- @property def textfont(self): """ @@ -54,12 +39,6 @@ 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 @@ -70,8 +49,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -104,14 +81,11 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") - + super().__init__("unselected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -126,26 +100,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) + self._set_property("textfont", arg, textfont) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergeo/hoverlabel/__init__.py b/plotly/graph_objs/scattergeo/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/scattergeo/hoverlabel/__init__.py +++ b/plotly/graph_objs/scattergeo/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scattergeo/hoverlabel/_font.py b/plotly/graph_objs/scattergeo/hoverlabel/_font.py index c3e1ef39d0..5912282f38 100644 --- a/plotly/graph_objs/scattergeo/hoverlabel/_font.py +++ b/plotly/graph_objs/scattergeo/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergeo.hoverlabel" _path_str = "scattergeo.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergeo/legendgrouptitle/__init__.py b/plotly/graph_objs/scattergeo/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/scattergeo/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/scattergeo/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scattergeo/legendgrouptitle/_font.py b/plotly/graph_objs/scattergeo/legendgrouptitle/_font.py index 0de9e4179c..6671c9faf3 100644 --- a/plotly/graph_objs/scattergeo/legendgrouptitle/_font.py +++ b/plotly/graph_objs/scattergeo/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergeo.legendgrouptitle" _path_str = "scattergeo.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergeo/marker/__init__.py b/plotly/graph_objs/scattergeo/marker/__init__.py index f1897fb0aa..f9d889ecb9 100644 --- a/plotly/graph_objs/scattergeo/marker/__init__.py +++ b/plotly/graph_objs/scattergeo/marker/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._colorbar import ColorBar - from ._gradient import Gradient - from ._line import Line - from . import colorbar -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".colorbar"], - ["._colorbar.ColorBar", "._gradient.Gradient", "._line.Line"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".colorbar"], + ["._colorbar.ColorBar", "._gradient.Gradient", "._line.Line"], +) diff --git a/plotly/graph_objs/scattergeo/marker/_colorbar.py b/plotly/graph_objs/scattergeo/marker/_colorbar.py index 7751a1ac29..16d225e32a 100644 --- a/plotly/graph_objs/scattergeo/marker/_colorbar.py +++ b/plotly/graph_objs/scattergeo/marker/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergeo.marker" _path_str = "scattergeo.marker.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -913,8 +638,6 @@ 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 @@ -925,8 +648,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -949,8 +670,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -974,8 +693,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1000,8 +717,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1020,8 +735,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1047,8 +760,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1068,8 +779,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1091,8 +800,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1112,8 +819,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1134,8 +839,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1154,8 +857,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1175,8 +876,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1195,8 +894,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1215,8 +912,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1226,18 +921,6 @@ 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 @@ -1248,8 +931,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1274,8 +955,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1298,8 +977,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1318,8 +995,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1341,8 +1016,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1367,8 +1040,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1391,8 +1062,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1411,8 +1080,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1434,8 +1101,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1985,14 +1650,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2007,214 +1669,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergeo/marker/_gradient.py b/plotly/graph_objs/scattergeo/marker/_gradient.py index 9da07fb17f..a4931635bc 100644 --- a/plotly/graph_objs/scattergeo/marker/_gradient.py +++ b/plotly/graph_objs/scattergeo/marker/_gradient.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Gradient(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergeo.marker" _path_str = "scattergeo.marker.gradient" _valid_props = {"color", "colorsrc", "type", "typesrc"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -71,8 +35,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -91,8 +53,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # type - # ---- @property def type(self): """ @@ -113,8 +73,6 @@ def type(self): def type(self, val): self["type"] = val - # typesrc - # ------- @property def typesrc(self): """ @@ -133,8 +91,6 @@ def typesrc(self): def typesrc(self, val): self["typesrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -181,14 +137,11 @@ def __init__( ------- Gradient """ - super(Gradient, self).__init__("gradient") - + super().__init__("gradient") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -203,34 +156,12 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("type", arg, type) + self._set_property("typesrc", arg, typesrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergeo/marker/_line.py b/plotly/graph_objs/scattergeo/marker/_line.py index 59ba236da4..72d3e119ca 100644 --- a/plotly/graph_objs/scattergeo/marker/_line.py +++ b/plotly/graph_objs/scattergeo/marker/_line.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergeo.marker" _path_str = "scattergeo.marker.line" _valid_props = { @@ -23,8 +24,6 @@ class Line(_BaseTraceHierarchyType): "widthsrc", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -49,8 +48,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -74,8 +71,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -97,8 +92,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -122,8 +115,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -145,8 +136,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # color - # ----- @property def color(self): """ @@ -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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to scattergeo.marker.line.colorscale - A list or array of any of the above @@ -210,8 +164,6 @@ def color(self): def color(self, val): self["color"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -237,8 +189,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -292,8 +242,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -312,8 +260,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -336,8 +282,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # width - # ----- @property def width(self): """ @@ -357,8 +301,6 @@ def width(self): def width(self, val): self["width"] = val - # widthsrc - # -------- @property def widthsrc(self): """ @@ -377,8 +319,6 @@ def widthsrc(self): def widthsrc(self, val): self["widthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -571,14 +511,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -593,66 +530,20 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("color", arg, color) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("reversescale", arg, reversescale) + self._set_property("width", arg, width) + self._set_property("widthsrc", arg, widthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergeo/marker/colorbar/__init__.py b/plotly/graph_objs/scattergeo/marker/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/scattergeo/marker/colorbar/__init__.py +++ b/plotly/graph_objs/scattergeo/marker/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/scattergeo/marker/colorbar/_tickfont.py b/plotly/graph_objs/scattergeo/marker/colorbar/_tickfont.py index ab7398f6c3..9416345377 100644 --- a/plotly/graph_objs/scattergeo/marker/colorbar/_tickfont.py +++ b/plotly/graph_objs/scattergeo/marker/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergeo.marker.colorbar" _path_str = "scattergeo.marker.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergeo/marker/colorbar/_tickformatstop.py b/plotly/graph_objs/scattergeo/marker/colorbar/_tickformatstop.py index 8f39cd0d14..2b21f5972a 100644 --- a/plotly/graph_objs/scattergeo/marker/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/scattergeo/marker/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergeo.marker.colorbar" _path_str = "scattergeo.marker.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergeo/marker/colorbar/_title.py b/plotly/graph_objs/scattergeo/marker/colorbar/_title.py index 6194cbbed4..2e08a80e3c 100644 --- a/plotly/graph_objs/scattergeo/marker/colorbar/_title.py +++ b/plotly/graph_objs/scattergeo/marker/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergeo.marker.colorbar" _path_str = "scattergeo.marker.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergeo/marker/colorbar/title/__init__.py b/plotly/graph_objs/scattergeo/marker/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/scattergeo/marker/colorbar/title/__init__.py +++ b/plotly/graph_objs/scattergeo/marker/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scattergeo/marker/colorbar/title/_font.py b/plotly/graph_objs/scattergeo/marker/colorbar/title/_font.py index 600b1baf02..c6e9a31259 100644 --- a/plotly/graph_objs/scattergeo/marker/colorbar/title/_font.py +++ b/plotly/graph_objs/scattergeo/marker/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergeo.marker.colorbar.title" _path_str = "scattergeo.marker.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergeo/selected/__init__.py b/plotly/graph_objs/scattergeo/selected/__init__.py index ae964f0b65..473168fdb5 100644 --- a/plotly/graph_objs/scattergeo/selected/__init__.py +++ b/plotly/graph_objs/scattergeo/selected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.Marker", "._textfont.Textfont"] +) diff --git a/plotly/graph_objs/scattergeo/selected/_marker.py b/plotly/graph_objs/scattergeo/selected/_marker.py index 3d1b18e39b..301576c766 100644 --- a/plotly/graph_objs/scattergeo/selected/_marker.py +++ b/plotly/graph_objs/scattergeo/selected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergeo.selected" _path_str = "scattergeo.selected.marker" _valid_props = {"color", "opacity", "size"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # opacity - # ------- @property def opacity(self): """ @@ -89,8 +51,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # size - # ---- @property def size(self): """ @@ -109,8 +69,6 @@ def size(self): def size(self, val): self["size"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -143,14 +101,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -165,30 +120,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("opacity", arg, opacity) + self._set_property("size", arg, size) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergeo/selected/_textfont.py b/plotly/graph_objs/scattergeo/selected/_textfont.py index dc54217841..6a56e33d3a 100644 --- a/plotly/graph_objs/scattergeo/selected/_textfont.py +++ b/plotly/graph_objs/scattergeo/selected/_textfont.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergeo.selected" _path_str = "scattergeo.selected.textfont" _valid_props = {"color"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -95,14 +57,11 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -117,22 +76,9 @@ def __init__(self, arg=None, color=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergeo/unselected/__init__.py b/plotly/graph_objs/scattergeo/unselected/__init__.py index ae964f0b65..473168fdb5 100644 --- a/plotly/graph_objs/scattergeo/unselected/__init__.py +++ b/plotly/graph_objs/scattergeo/unselected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.Marker", "._textfont.Textfont"] +) diff --git a/plotly/graph_objs/scattergeo/unselected/_marker.py b/plotly/graph_objs/scattergeo/unselected/_marker.py index 12476e64cf..cd5f878018 100644 --- a/plotly/graph_objs/scattergeo/unselected/_marker.py +++ b/plotly/graph_objs/scattergeo/unselected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergeo.unselected" _path_str = "scattergeo.unselected.marker" _valid_props = {"color", "opacity", "size"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # opacity - # ------- @property def opacity(self): """ @@ -91,8 +53,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # size - # ---- @property def size(self): """ @@ -112,8 +72,6 @@ def size(self): def size(self, val): self["size"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -152,14 +110,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -174,30 +129,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("opacity", arg, opacity) + self._set_property("size", arg, size) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergeo/unselected/_textfont.py b/plotly/graph_objs/scattergeo/unselected/_textfont.py index 3202d39ac8..4b0cc73bf3 100644 --- a/plotly/graph_objs/scattergeo/unselected/_textfont.py +++ b/plotly/graph_objs/scattergeo/unselected/_textfont.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergeo.unselected" _path_str = "scattergeo.unselected.textfont" _valid_props = {"color"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -98,14 +60,11 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -120,22 +79,9 @@ def __init__(self, arg=None, color=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergl/__init__.py b/plotly/graph_objs/scattergl/__init__.py index 151ee1c144..70041375de 100644 --- a/plotly/graph_objs/scattergl/__init__.py +++ b/plotly/graph_objs/scattergl/__init__.py @@ -1,38 +1,19 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._error_x import ErrorX - from ._error_y import ErrorY - from ._hoverlabel import Hoverlabel - from ._legendgrouptitle import Legendgrouptitle - from ._line import Line - from ._marker import Marker - from ._selected import Selected - from ._stream import Stream - from ._textfont import Textfont - from ._unselected import Unselected - from . import hoverlabel - from . import legendgrouptitle - from . import marker - from . import selected - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/scattergl/_error_x.py b/plotly/graph_objs/scattergl/_error_x.py index 3daa2b17ed..65103fa6f0 100644 --- a/plotly/graph_objs/scattergl/_error_x.py +++ b/plotly/graph_objs/scattergl/_error_x.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ErrorX(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergl" _path_str = "scattergl.error_x" _valid_props = { @@ -26,8 +27,6 @@ class ErrorX(_BaseTraceHierarchyType): "width", } - # array - # ----- @property def array(self): """ @@ -47,8 +46,6 @@ def array(self): def array(self, val): self["array"] = val - # arrayminus - # ---------- @property def arrayminus(self): """ @@ -69,8 +66,6 @@ def arrayminus(self): def arrayminus(self, val): self["arrayminus"] = val - # arrayminussrc - # ------------- @property def arrayminussrc(self): """ @@ -90,8 +85,6 @@ def arrayminussrc(self): def arrayminussrc(self, val): self["arrayminussrc"] = val - # arraysrc - # -------- @property def arraysrc(self): """ @@ -110,8 +103,6 @@ def arraysrc(self): def arraysrc(self, val): self["arraysrc"] = val - # color - # ----- @property def color(self): """ @@ -122,42 +113,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -169,8 +125,6 @@ def color(self): def color(self, val): self["color"] = val - # copy_ystyle - # ----------- @property def copy_ystyle(self): """ @@ -187,8 +141,6 @@ def copy_ystyle(self): def copy_ystyle(self, val): self["copy_ystyle"] = val - # symmetric - # --------- @property def symmetric(self): """ @@ -209,8 +161,6 @@ def symmetric(self): def symmetric(self, val): self["symmetric"] = val - # thickness - # --------- @property def thickness(self): """ @@ -229,8 +179,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # traceref - # -------- @property def traceref(self): """ @@ -248,8 +196,6 @@ def traceref(self): def traceref(self, val): self["traceref"] = val - # tracerefminus - # ------------- @property def tracerefminus(self): """ @@ -267,13 +213,11 @@ def tracerefminus(self): def tracerefminus(self, val): self["tracerefminus"] = val - # type - # ---- @property def type(self): """ Determines the rule used to generate the error bars. If - *constant`, the bar lengths are of a constant value. Set this + "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 @@ -294,8 +238,6 @@ def type(self): def type(self, val): self["type"] = val - # value - # ----- @property def value(self): """ @@ -316,8 +258,6 @@ def value(self): def value(self, val): self["value"] = val - # valueminus - # ---------- @property def valueminus(self): """ @@ -339,8 +279,6 @@ def valueminus(self): def valueminus(self, val): self["valueminus"] = val - # visible - # ------- @property def visible(self): """ @@ -359,8 +297,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # width - # ----- @property def width(self): """ @@ -380,8 +316,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -416,7 +350,7 @@ def _prop_descriptions(self): type Determines the rule used to generate the error bars. If - *constant`, the bar lengths are of a constant value. + "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 @@ -502,7 +436,7 @@ def __init__( type Determines the rule used to generate the error bars. If - *constant`, the bar lengths are of a constant value. + "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 @@ -531,14 +465,11 @@ def __init__( ------- ErrorX """ - super(ErrorX, self).__init__("error_x") - + super().__init__("error_x") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -553,78 +484,23 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("array", arg, array) + self._set_property("arrayminus", arg, arrayminus) + self._set_property("arrayminussrc", arg, arrayminussrc) + self._set_property("arraysrc", arg, arraysrc) + self._set_property("color", arg, color) + self._set_property("copy_ystyle", arg, copy_ystyle) + self._set_property("symmetric", arg, symmetric) + self._set_property("thickness", arg, thickness) + self._set_property("traceref", arg, traceref) + self._set_property("tracerefminus", arg, tracerefminus) + self._set_property("type", arg, type) + self._set_property("value", arg, value) + self._set_property("valueminus", arg, valueminus) + self._set_property("visible", arg, visible) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergl/_error_y.py b/plotly/graph_objs/scattergl/_error_y.py index 9b261c703f..885979fbc4 100644 --- a/plotly/graph_objs/scattergl/_error_y.py +++ b/plotly/graph_objs/scattergl/_error_y.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ErrorY(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergl" _path_str = "scattergl.error_y" _valid_props = { @@ -25,8 +26,6 @@ class ErrorY(_BaseTraceHierarchyType): "width", } - # array - # ----- @property def array(self): """ @@ -46,8 +45,6 @@ def array(self): def array(self, val): self["array"] = val - # arrayminus - # ---------- @property def arrayminus(self): """ @@ -68,8 +65,6 @@ def arrayminus(self): def arrayminus(self, val): self["arrayminus"] = val - # arrayminussrc - # ------------- @property def arrayminussrc(self): """ @@ -89,8 +84,6 @@ def arrayminussrc(self): def arrayminussrc(self, val): self["arrayminussrc"] = val - # arraysrc - # -------- @property def arraysrc(self): """ @@ -109,8 +102,6 @@ def arraysrc(self): def arraysrc(self, val): self["arraysrc"] = val - # color - # ----- @property def color(self): """ @@ -121,42 +112,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -168,8 +124,6 @@ def color(self): def color(self, val): self["color"] = val - # symmetric - # --------- @property def symmetric(self): """ @@ -190,8 +144,6 @@ def symmetric(self): def symmetric(self, val): self["symmetric"] = val - # thickness - # --------- @property def thickness(self): """ @@ -210,8 +162,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # traceref - # -------- @property def traceref(self): """ @@ -229,8 +179,6 @@ def traceref(self): def traceref(self, val): self["traceref"] = val - # tracerefminus - # ------------- @property def tracerefminus(self): """ @@ -248,13 +196,11 @@ def tracerefminus(self): def tracerefminus(self, val): self["tracerefminus"] = val - # type - # ---- @property def type(self): """ Determines the rule used to generate the error bars. If - *constant`, the bar lengths are of a constant value. Set this + "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 @@ -275,8 +221,6 @@ def type(self): def type(self, val): self["type"] = val - # value - # ----- @property def value(self): """ @@ -297,8 +241,6 @@ def value(self): def value(self, val): self["value"] = val - # valueminus - # ---------- @property def valueminus(self): """ @@ -320,8 +262,6 @@ def valueminus(self): def valueminus(self, val): self["valueminus"] = val - # visible - # ------- @property def visible(self): """ @@ -340,8 +280,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # width - # ----- @property def width(self): """ @@ -361,8 +299,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -395,7 +331,7 @@ def _prop_descriptions(self): type Determines the rule used to generate the error bars. If - *constant`, the bar lengths are of a constant value. + "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 @@ -478,7 +414,7 @@ def __init__( type Determines the rule used to generate the error bars. If - *constant`, the bar lengths are of a constant value. + "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 @@ -507,14 +443,11 @@ def __init__( ------- ErrorY """ - super(ErrorY, self).__init__("error_y") - + super().__init__("error_y") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -529,74 +462,22 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("array", arg, array) + self._set_property("arrayminus", arg, arrayminus) + self._set_property("arrayminussrc", arg, arrayminussrc) + self._set_property("arraysrc", arg, arraysrc) + self._set_property("color", arg, color) + self._set_property("symmetric", arg, symmetric) + self._set_property("thickness", arg, thickness) + self._set_property("traceref", arg, traceref) + self._set_property("tracerefminus", arg, tracerefminus) + self._set_property("type", arg, type) + self._set_property("value", arg, value) + self._set_property("valueminus", arg, valueminus) + self._set_property("visible", arg, visible) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergl/_hoverlabel.py b/plotly/graph_objs/scattergl/_hoverlabel.py index 84dd7fdc41..0caa4ab7fe 100644 --- a/plotly/graph_objs/scattergl/_hoverlabel.py +++ b/plotly/graph_objs/scattergl/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergl" _path_str = "scattergl.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergl/_legendgrouptitle.py b/plotly/graph_objs/scattergl/_legendgrouptitle.py index 345973ad4c..916787fdef 100644 --- a/plotly/graph_objs/scattergl/_legendgrouptitle.py +++ b/plotly/graph_objs/scattergl/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergl" _path_str = "scattergl.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergl/_line.py b/plotly/graph_objs/scattergl/_line.py index 9659fbba19..013c115e95 100644 --- a/plotly/graph_objs/scattergl/_line.py +++ b/plotly/graph_objs/scattergl/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergl" _path_str = "scattergl.line" _valid_props = {"color", "dash", "shape", "width"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # dash - # ---- @property def dash(self): """ @@ -91,8 +53,6 @@ def dash(self): def dash(self, val): self["dash"] = val - # shape - # ----- @property def shape(self): """ @@ -113,8 +73,6 @@ def shape(self): def shape(self, val): self["shape"] = val - # width - # ----- @property def width(self): """ @@ -133,8 +91,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -175,14 +131,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -197,34 +150,12 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("dash", arg, dash) + self._set_property("shape", arg, shape) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergl/_marker.py b/plotly/graph_objs/scattergl/_marker.py index b7f020b894..2b4861660a 100644 --- a/plotly/graph_objs/scattergl/_marker.py +++ b/plotly/graph_objs/scattergl/_marker.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergl" _path_str = "scattergl.marker" _valid_props = { @@ -35,8 +36,6 @@ class Marker(_BaseTraceHierarchyType): "symbolsrc", } - # angle - # ----- @property def angle(self): """ @@ -57,8 +56,6 @@ def angle(self): def angle(self, val): self["angle"] = val - # anglesrc - # -------- @property def anglesrc(self): """ @@ -77,8 +74,6 @@ def anglesrc(self): def anglesrc(self, val): self["anglesrc"] = val - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -103,8 +98,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -128,8 +121,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -151,8 +142,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -175,8 +164,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -198,8 +185,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # color - # ----- @property def color(self): """ @@ -213,42 +198,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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to scattergl.marker.colorscale - A list or array of any of the above @@ -263,8 +213,6 @@ def color(self): def color(self, val): self["color"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -290,8 +238,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -301,273 +247,6 @@ 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 @@ -578,8 +257,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -632,8 +309,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -652,8 +327,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # line - # ---- @property def line(self): """ @@ -663,98 +336,6 @@ 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 @@ -765,8 +346,6 @@ def line(self): def line(self, val): self["line"] = val - # opacity - # ------- @property def opacity(self): """ @@ -786,8 +365,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # opacitysrc - # ---------- @property def opacitysrc(self): """ @@ -806,8 +383,6 @@ def opacitysrc(self): def opacitysrc(self, val): self["opacitysrc"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -829,8 +404,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # showscale - # --------- @property def showscale(self): """ @@ -851,8 +424,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # size - # ---- @property def size(self): """ @@ -872,8 +443,6 @@ def size(self): def size(self, val): self["size"] = val - # sizemin - # ------- @property def sizemin(self): """ @@ -894,8 +463,6 @@ def sizemin(self): def sizemin(self, val): self["sizemin"] = val - # sizemode - # -------- @property def sizemode(self): """ @@ -917,8 +484,6 @@ def sizemode(self): def sizemode(self, val): self["sizemode"] = val - # sizeref - # ------- @property def sizeref(self): """ @@ -939,8 +504,6 @@ def sizeref(self): def sizeref(self, val): self["sizeref"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -959,8 +522,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # symbol - # ------ @property def symbol(self): """ @@ -1072,8 +633,6 @@ def symbol(self): def symbol(self, val): self["symbol"] = val - # symbolsrc - # --------- @property def symbolsrc(self): """ @@ -1092,8 +651,6 @@ def symbolsrc(self): def symbolsrc(self, val): self["symbolsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1374,14 +931,11 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1396,114 +950,32 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("angle", arg, angle) + self._set_property("anglesrc", arg, anglesrc) + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("color", arg, color) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("line", arg, line) + self._set_property("opacity", arg, opacity) + self._set_property("opacitysrc", arg, opacitysrc) + self._set_property("reversescale", arg, reversescale) + self._set_property("showscale", arg, showscale) + self._set_property("size", arg, size) + self._set_property("sizemin", arg, sizemin) + self._set_property("sizemode", arg, sizemode) + self._set_property("sizeref", arg, sizeref) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("symbol", arg, symbol) + self._set_property("symbolsrc", arg, symbolsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergl/_selected.py b/plotly/graph_objs/scattergl/_selected.py index a7fabdd410..f1a97da88d 100644 --- a/plotly/graph_objs/scattergl/_selected.py +++ b/plotly/graph_objs/scattergl/_selected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Selected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergl" _path_str = "scattergl.selected" _valid_props = {"marker", "textfont"} - # marker - # ------ @property def marker(self): """ @@ -21,15 +20,6 @@ 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 @@ -40,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # textfont - # -------- @property def textfont(self): """ @@ -51,11 +39,6 @@ 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 @@ -66,8 +49,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -100,14 +81,11 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") - + super().__init__("selected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -122,26 +100,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) + self._set_property("textfont", arg, textfont) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergl/_stream.py b/plotly/graph_objs/scattergl/_stream.py index 9377ded88d..76ec5afd1f 100644 --- a/plotly/graph_objs/scattergl/_stream.py +++ b/plotly/graph_objs/scattergl/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergl" _path_str = "scattergl.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -94,14 +89,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -116,26 +108,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergl/_textfont.py b/plotly/graph_objs/scattergl/_textfont.py index 243984489e..e7fc1cbd63 100644 --- a/plotly/graph_objs/scattergl/_textfont.py +++ b/plotly/graph_objs/scattergl/_textfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergl" _path_str = "scattergl.textfont" _valid_props = { @@ -23,8 +24,6 @@ class Textfont(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -33,42 +32,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -81,8 +45,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -101,23 +63,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -133,8 +86,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -153,8 +104,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # size - # ---- @property def size(self): """ @@ -172,8 +121,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -192,8 +139,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -215,8 +160,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -235,8 +178,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -257,8 +198,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -277,8 +216,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -299,8 +236,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -319,8 +254,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -331,18 +264,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -404,18 +330,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -445,14 +364,11 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -467,66 +383,20 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergl/_unselected.py b/plotly/graph_objs/scattergl/_unselected.py index b7c165da06..02524fc047 100644 --- a/plotly/graph_objs/scattergl/_unselected.py +++ b/plotly/graph_objs/scattergl/_unselected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Unselected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergl" _path_str = "scattergl.unselected" _valid_props = {"marker", "textfont"} - # marker - # ------ @property def marker(self): """ @@ -21,18 +20,6 @@ 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 @@ -43,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # textfont - # -------- @property def textfont(self): """ @@ -54,12 +39,6 @@ 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 @@ -70,8 +49,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -104,14 +81,11 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") - + super().__init__("unselected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -126,26 +100,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) + self._set_property("textfont", arg, textfont) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergl/hoverlabel/__init__.py b/plotly/graph_objs/scattergl/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/scattergl/hoverlabel/__init__.py +++ b/plotly/graph_objs/scattergl/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scattergl/hoverlabel/_font.py b/plotly/graph_objs/scattergl/hoverlabel/_font.py index 49fddb0c4c..e33371f02d 100644 --- a/plotly/graph_objs/scattergl/hoverlabel/_font.py +++ b/plotly/graph_objs/scattergl/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergl.hoverlabel" _path_str = "scattergl.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergl/legendgrouptitle/__init__.py b/plotly/graph_objs/scattergl/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/scattergl/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/scattergl/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scattergl/legendgrouptitle/_font.py b/plotly/graph_objs/scattergl/legendgrouptitle/_font.py index c491f7f013..71e06dbe75 100644 --- a/plotly/graph_objs/scattergl/legendgrouptitle/_font.py +++ b/plotly/graph_objs/scattergl/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergl.legendgrouptitle" _path_str = "scattergl.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergl/marker/__init__.py b/plotly/graph_objs/scattergl/marker/__init__.py index 8481520e3c..ff536ec8b2 100644 --- a/plotly/graph_objs/scattergl/marker/__init__.py +++ b/plotly/graph_objs/scattergl/marker/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [".colorbar"], ["._colorbar.ColorBar", "._line.Line"] +) diff --git a/plotly/graph_objs/scattergl/marker/_colorbar.py b/plotly/graph_objs/scattergl/marker/_colorbar.py index 06c915818d..33aa6ff92d 100644 --- a/plotly/graph_objs/scattergl/marker/_colorbar.py +++ b/plotly/graph_objs/scattergl/marker/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergl.marker" _path_str = "scattergl.marker.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -913,8 +638,6 @@ 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 @@ -925,8 +648,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -949,8 +670,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -974,8 +693,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1000,8 +717,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1020,8 +735,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1047,8 +760,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1068,8 +779,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1091,8 +800,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1112,8 +819,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1134,8 +839,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1154,8 +857,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1175,8 +876,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1195,8 +894,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1215,8 +912,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1226,18 +921,6 @@ 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 @@ -1248,8 +931,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1274,8 +955,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1298,8 +977,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1318,8 +995,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1341,8 +1016,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1367,8 +1040,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1391,8 +1062,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1411,8 +1080,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1434,8 +1101,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1985,14 +1650,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2007,214 +1669,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergl/marker/_line.py b/plotly/graph_objs/scattergl/marker/_line.py index 2e04595e35..862c23f0f4 100644 --- a/plotly/graph_objs/scattergl/marker/_line.py +++ b/plotly/graph_objs/scattergl/marker/_line.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergl.marker" _path_str = "scattergl.marker.line" _valid_props = { @@ -23,8 +24,6 @@ class Line(_BaseTraceHierarchyType): "widthsrc", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -49,8 +48,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -74,8 +71,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -97,8 +92,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -122,8 +115,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -145,8 +136,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # color - # ----- @property def color(self): """ @@ -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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to scattergl.marker.line.colorscale - A list or array of any of the above @@ -210,8 +164,6 @@ def color(self): def color(self, val): self["color"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -237,8 +189,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -292,8 +242,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -312,8 +260,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -336,8 +282,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # width - # ----- @property def width(self): """ @@ -357,8 +301,6 @@ def width(self): def width(self, val): self["width"] = val - # widthsrc - # -------- @property def widthsrc(self): """ @@ -377,8 +319,6 @@ def widthsrc(self): def widthsrc(self, val): self["widthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -571,14 +511,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -593,66 +530,20 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("color", arg, color) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("reversescale", arg, reversescale) + self._set_property("width", arg, width) + self._set_property("widthsrc", arg, widthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergl/marker/colorbar/__init__.py b/plotly/graph_objs/scattergl/marker/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/scattergl/marker/colorbar/__init__.py +++ b/plotly/graph_objs/scattergl/marker/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/scattergl/marker/colorbar/_tickfont.py b/plotly/graph_objs/scattergl/marker/colorbar/_tickfont.py index aeca1b6fce..2510ee3ecd 100644 --- a/plotly/graph_objs/scattergl/marker/colorbar/_tickfont.py +++ b/plotly/graph_objs/scattergl/marker/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergl.marker.colorbar" _path_str = "scattergl.marker.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergl/marker/colorbar/_tickformatstop.py b/plotly/graph_objs/scattergl/marker/colorbar/_tickformatstop.py index d6a4a14943..ddf5d0ac5f 100644 --- a/plotly/graph_objs/scattergl/marker/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/scattergl/marker/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergl.marker.colorbar" _path_str = "scattergl.marker.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergl/marker/colorbar/_title.py b/plotly/graph_objs/scattergl/marker/colorbar/_title.py index 2f432c735b..51badd91a3 100644 --- a/plotly/graph_objs/scattergl/marker/colorbar/_title.py +++ b/plotly/graph_objs/scattergl/marker/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergl.marker.colorbar" _path_str = "scattergl.marker.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergl/marker/colorbar/title/__init__.py b/plotly/graph_objs/scattergl/marker/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/scattergl/marker/colorbar/title/__init__.py +++ b/plotly/graph_objs/scattergl/marker/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scattergl/marker/colorbar/title/_font.py b/plotly/graph_objs/scattergl/marker/colorbar/title/_font.py index 6ecbf0502c..8b1ec88e79 100644 --- a/plotly/graph_objs/scattergl/marker/colorbar/title/_font.py +++ b/plotly/graph_objs/scattergl/marker/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergl.marker.colorbar.title" _path_str = "scattergl.marker.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergl/selected/__init__.py b/plotly/graph_objs/scattergl/selected/__init__.py index ae964f0b65..473168fdb5 100644 --- a/plotly/graph_objs/scattergl/selected/__init__.py +++ b/plotly/graph_objs/scattergl/selected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.Marker", "._textfont.Textfont"] +) diff --git a/plotly/graph_objs/scattergl/selected/_marker.py b/plotly/graph_objs/scattergl/selected/_marker.py index 7c75bf66ca..36978eb840 100644 --- a/plotly/graph_objs/scattergl/selected/_marker.py +++ b/plotly/graph_objs/scattergl/selected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergl.selected" _path_str = "scattergl.selected.marker" _valid_props = {"color", "opacity", "size"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # opacity - # ------- @property def opacity(self): """ @@ -89,8 +51,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # size - # ---- @property def size(self): """ @@ -109,8 +69,6 @@ def size(self): def size(self, val): self["size"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -143,14 +101,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -165,30 +120,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("opacity", arg, opacity) + self._set_property("size", arg, size) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergl/selected/_textfont.py b/plotly/graph_objs/scattergl/selected/_textfont.py index d72808f27e..57e3b59aa4 100644 --- a/plotly/graph_objs/scattergl/selected/_textfont.py +++ b/plotly/graph_objs/scattergl/selected/_textfont.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergl.selected" _path_str = "scattergl.selected.textfont" _valid_props = {"color"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -95,14 +57,11 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -117,22 +76,9 @@ def __init__(self, arg=None, color=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergl/unselected/__init__.py b/plotly/graph_objs/scattergl/unselected/__init__.py index ae964f0b65..473168fdb5 100644 --- a/plotly/graph_objs/scattergl/unselected/__init__.py +++ b/plotly/graph_objs/scattergl/unselected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.Marker", "._textfont.Textfont"] +) diff --git a/plotly/graph_objs/scattergl/unselected/_marker.py b/plotly/graph_objs/scattergl/unselected/_marker.py index 188144c355..6f44c3a35e 100644 --- a/plotly/graph_objs/scattergl/unselected/_marker.py +++ b/plotly/graph_objs/scattergl/unselected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergl.unselected" _path_str = "scattergl.unselected.marker" _valid_props = {"color", "opacity", "size"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # opacity - # ------- @property def opacity(self): """ @@ -91,8 +53,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # size - # ---- @property def size(self): """ @@ -112,8 +72,6 @@ def size(self): def size(self, val): self["size"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -152,14 +110,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -174,30 +129,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("opacity", arg, opacity) + self._set_property("size", arg, size) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattergl/unselected/_textfont.py b/plotly/graph_objs/scattergl/unselected/_textfont.py index 03f459b9dc..fb7a2a6303 100644 --- a/plotly/graph_objs/scattergl/unselected/_textfont.py +++ b/plotly/graph_objs/scattergl/unselected/_textfont.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattergl.unselected" _path_str = "scattergl.unselected.textfont" _valid_props = {"color"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -98,14 +60,11 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -120,22 +79,9 @@ def __init__(self, arg=None, color=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermap/__init__.py b/plotly/graph_objs/scattermap/__init__.py index a32d23f438..b1056d2ce4 100644 --- a/plotly/graph_objs/scattermap/__init__.py +++ b/plotly/graph_objs/scattermap/__init__.py @@ -1,36 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._cluster import Cluster - from ._hoverlabel import Hoverlabel - from ._legendgrouptitle import Legendgrouptitle - from ._line import Line - from ._marker import Marker - from ._selected import Selected - from ._stream import Stream - from ._textfont import Textfont - from ._unselected import Unselected - from . import hoverlabel - from . import legendgrouptitle - from . import marker - from . import selected - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/scattermap/_cluster.py b/plotly/graph_objs/scattermap/_cluster.py index ebfd9bfa66..154b3b60de 100644 --- a/plotly/graph_objs/scattermap/_cluster.py +++ b/plotly/graph_objs/scattermap/_cluster.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Cluster(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermap" _path_str = "scattermap.cluster" _valid_props = { @@ -21,8 +22,6 @@ class Cluster(_BaseTraceHierarchyType): "stepsrc", } - # color - # ----- @property def color(self): """ @@ -33,42 +32,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -81,8 +45,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -101,8 +63,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # enabled - # ------- @property def enabled(self): """ @@ -121,8 +81,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # maxzoom - # ------- @property def maxzoom(self): """ @@ -142,8 +100,6 @@ def maxzoom(self): def maxzoom(self, val): self["maxzoom"] = val - # opacity - # ------- @property def opacity(self): """ @@ -163,8 +119,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # opacitysrc - # ---------- @property def opacitysrc(self): """ @@ -183,8 +137,6 @@ def opacitysrc(self): def opacitysrc(self, val): self["opacitysrc"] = val - # size - # ---- @property def size(self): """ @@ -204,8 +156,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -224,8 +174,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # step - # ---- @property def step(self): """ @@ -249,8 +197,6 @@ def step(self): def step(self, val): self["step"] = val - # stepsrc - # ------- @property def stepsrc(self): """ @@ -269,8 +215,6 @@ def stepsrc(self): def stepsrc(self, val): self["stepsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -365,14 +309,11 @@ def __init__( ------- Cluster """ - super(Cluster, self).__init__("cluster") - + super().__init__("cluster") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -387,58 +328,18 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("enabled", arg, enabled) + self._set_property("maxzoom", arg, maxzoom) + self._set_property("opacity", arg, opacity) + self._set_property("opacitysrc", arg, opacitysrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("step", arg, step) + self._set_property("stepsrc", arg, stepsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermap/_hoverlabel.py b/plotly/graph_objs/scattermap/_hoverlabel.py index 3918b3de3c..4e6a701765 100644 --- a/plotly/graph_objs/scattermap/_hoverlabel.py +++ b/plotly/graph_objs/scattermap/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermap" _path_str = "scattermap.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermap/_legendgrouptitle.py b/plotly/graph_objs/scattermap/_legendgrouptitle.py index 7c149aebb3..5db1684911 100644 --- a/plotly/graph_objs/scattermap/_legendgrouptitle.py +++ b/plotly/graph_objs/scattermap/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermap" _path_str = "scattermap.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermap/_line.py b/plotly/graph_objs/scattermap/_line.py index 1ea2f18c47..8d1c8127b6 100644 --- a/plotly/graph_objs/scattermap/_line.py +++ b/plotly/graph_objs/scattermap/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermap" _path_str = "scattermap.line" _valid_props = {"color", "width"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # width - # ----- @property def width(self): """ @@ -89,8 +51,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -119,14 +79,11 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -141,26 +98,10 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermap/_marker.py b/plotly/graph_objs/scattermap/_marker.py index df69d1b826..904c9867e1 100644 --- a/plotly/graph_objs/scattermap/_marker.py +++ b/plotly/graph_objs/scattermap/_marker.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermap" _path_str = "scattermap.marker" _valid_props = { @@ -35,8 +36,6 @@ class Marker(_BaseTraceHierarchyType): "symbolsrc", } - # allowoverlap - # ------------ @property def allowoverlap(self): """ @@ -55,8 +54,6 @@ def allowoverlap(self): def allowoverlap(self, val): self["allowoverlap"] = val - # angle - # ----- @property def angle(self): """ @@ -79,8 +76,6 @@ def angle(self): def angle(self, val): self["angle"] = val - # anglesrc - # -------- @property def anglesrc(self): """ @@ -99,8 +94,6 @@ def anglesrc(self): def anglesrc(self, val): self["anglesrc"] = val - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -125,8 +118,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -150,8 +141,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -173,8 +162,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -197,8 +184,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -220,8 +205,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # color - # ----- @property def color(self): """ @@ -235,42 +218,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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to scattermap.marker.colorscale - A list or array of any of the above @@ -285,8 +233,6 @@ def color(self): def color(self, val): self["color"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -312,8 +258,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -323,273 +267,6 @@ 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 @@ -600,8 +277,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -654,8 +329,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -674,8 +347,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # opacity - # ------- @property def opacity(self): """ @@ -695,8 +366,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # opacitysrc - # ---------- @property def opacitysrc(self): """ @@ -715,8 +384,6 @@ def opacitysrc(self): def opacitysrc(self, val): self["opacitysrc"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -738,8 +405,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # showscale - # --------- @property def showscale(self): """ @@ -760,8 +425,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # size - # ---- @property def size(self): """ @@ -781,8 +444,6 @@ def size(self): def size(self, val): self["size"] = val - # sizemin - # ------- @property def sizemin(self): """ @@ -803,8 +464,6 @@ def sizemin(self): def sizemin(self, val): self["sizemin"] = val - # sizemode - # -------- @property def sizemode(self): """ @@ -826,8 +485,6 @@ def sizemode(self): def sizemode(self, val): self["sizemode"] = val - # sizeref - # ------- @property def sizeref(self): """ @@ -848,8 +505,6 @@ def sizeref(self): def sizeref(self, val): self["sizeref"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -868,8 +523,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # symbol - # ------ @property def symbol(self): """ @@ -892,8 +545,6 @@ def symbol(self): def symbol(self, val): self["symbol"] = val - # symbolsrc - # --------- @property def symbolsrc(self): """ @@ -912,8 +563,6 @@ def symbolsrc(self): def symbolsrc(self, val): self["symbolsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1196,14 +845,11 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1218,114 +864,32 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("allowoverlap", arg, allowoverlap) + self._set_property("angle", arg, angle) + self._set_property("anglesrc", arg, anglesrc) + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("color", arg, color) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("opacity", arg, opacity) + self._set_property("opacitysrc", arg, opacitysrc) + self._set_property("reversescale", arg, reversescale) + self._set_property("showscale", arg, showscale) + self._set_property("size", arg, size) + self._set_property("sizemin", arg, sizemin) + self._set_property("sizemode", arg, sizemode) + self._set_property("sizeref", arg, sizeref) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("symbol", arg, symbol) + self._set_property("symbolsrc", arg, symbolsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermap/_selected.py b/plotly/graph_objs/scattermap/_selected.py index bdfc7067fd..bf88cb4c85 100644 --- a/plotly/graph_objs/scattermap/_selected.py +++ b/plotly/graph_objs/scattermap/_selected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Selected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermap" _path_str = "scattermap.selected" _valid_props = {"marker"} - # marker - # ------ @property def marker(self): """ @@ -21,15 +20,6 @@ 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 @@ -40,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -68,14 +56,11 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") - + super().__init__("selected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -90,22 +75,9 @@ def __init__(self, arg=None, marker=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermap/_stream.py b/plotly/graph_objs/scattermap/_stream.py index 0147e4aeff..9fbd73879a 100644 --- a/plotly/graph_objs/scattermap/_stream.py +++ b/plotly/graph_objs/scattermap/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermap" _path_str = "scattermap.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -94,14 +89,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -116,26 +108,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermap/_textfont.py b/plotly/graph_objs/scattermap/_textfont.py index 411bc39f1e..9e65b7aefb 100644 --- a/plotly/graph_objs/scattermap/_textfont.py +++ b/plotly/graph_objs/scattermap/_textfont.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermap" _path_str = "scattermap.textfont" _valid_props = {"color", "family", "size", "style", "weight"} - # color - # ----- @property def color(self): """ @@ -20,42 +19,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -67,23 +31,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -98,8 +53,6 @@ def family(self): def family(self, val): self["family"] = val - # size - # ---- @property def size(self): """ @@ -116,8 +69,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -138,8 +89,6 @@ def style(self): def style(self, val): self["style"] = val - # weight - # ------ @property def weight(self): """ @@ -160,8 +109,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -169,18 +116,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. size style @@ -217,18 +157,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. size style @@ -241,14 +174,11 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -263,38 +193,13 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermap/_unselected.py b/plotly/graph_objs/scattermap/_unselected.py index adc562b607..bc68c4df2a 100644 --- a/plotly/graph_objs/scattermap/_unselected.py +++ b/plotly/graph_objs/scattermap/_unselected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Unselected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermap" _path_str = "scattermap.unselected" _valid_props = {"marker"} - # marker - # ------ @property def marker(self): """ @@ -21,18 +20,6 @@ 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 @@ -43,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -71,14 +56,11 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") - + super().__init__("unselected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -93,22 +75,9 @@ def __init__(self, arg=None, marker=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermap/hoverlabel/__init__.py b/plotly/graph_objs/scattermap/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/scattermap/hoverlabel/__init__.py +++ b/plotly/graph_objs/scattermap/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scattermap/hoverlabel/_font.py b/plotly/graph_objs/scattermap/hoverlabel/_font.py index a64e1f6a3c..03de768495 100644 --- a/plotly/graph_objs/scattermap/hoverlabel/_font.py +++ b/plotly/graph_objs/scattermap/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermap.hoverlabel" _path_str = "scattermap.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermap/legendgrouptitle/__init__.py b/plotly/graph_objs/scattermap/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/scattermap/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/scattermap/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scattermap/legendgrouptitle/_font.py b/plotly/graph_objs/scattermap/legendgrouptitle/_font.py index 36f64875e8..7f19d536a9 100644 --- a/plotly/graph_objs/scattermap/legendgrouptitle/_font.py +++ b/plotly/graph_objs/scattermap/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermap.legendgrouptitle" _path_str = "scattermap.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermap/marker/__init__.py b/plotly/graph_objs/scattermap/marker/__init__.py index 27dfc9e52f..5e1805d8fa 100644 --- a/plotly/graph_objs/scattermap/marker/__init__.py +++ b/plotly/graph_objs/scattermap/marker/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [".colorbar"], ["._colorbar.ColorBar"] +) diff --git a/plotly/graph_objs/scattermap/marker/_colorbar.py b/plotly/graph_objs/scattermap/marker/_colorbar.py index cbacaa4732..9e935b73bb 100644 --- a/plotly/graph_objs/scattermap/marker/_colorbar.py +++ b/plotly/graph_objs/scattermap/marker/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermap.marker" _path_str = "scattermap.marker.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -913,8 +638,6 @@ 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 @@ -925,8 +648,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -949,8 +670,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -974,8 +693,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1000,8 +717,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1020,8 +735,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1047,8 +760,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1068,8 +779,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1091,8 +800,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1112,8 +819,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1134,8 +839,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1154,8 +857,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1175,8 +876,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1195,8 +894,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1215,8 +912,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1226,18 +921,6 @@ 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 @@ -1248,8 +931,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1274,8 +955,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1298,8 +977,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1318,8 +995,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1341,8 +1016,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1367,8 +1040,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1391,8 +1062,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1411,8 +1080,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1434,8 +1101,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1985,14 +1650,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2007,214 +1669,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermap/marker/colorbar/__init__.py b/plotly/graph_objs/scattermap/marker/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/scattermap/marker/colorbar/__init__.py +++ b/plotly/graph_objs/scattermap/marker/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/scattermap/marker/colorbar/_tickfont.py b/plotly/graph_objs/scattermap/marker/colorbar/_tickfont.py index b5237c2f9e..da8d633f9c 100644 --- a/plotly/graph_objs/scattermap/marker/colorbar/_tickfont.py +++ b/plotly/graph_objs/scattermap/marker/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermap.marker.colorbar" _path_str = "scattermap.marker.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermap/marker/colorbar/_tickformatstop.py b/plotly/graph_objs/scattermap/marker/colorbar/_tickformatstop.py index aac9f8bafb..c081999b08 100644 --- a/plotly/graph_objs/scattermap/marker/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/scattermap/marker/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermap.marker.colorbar" _path_str = "scattermap.marker.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermap/marker/colorbar/_title.py b/plotly/graph_objs/scattermap/marker/colorbar/_title.py index ee796ffbb0..782d34a0d8 100644 --- a/plotly/graph_objs/scattermap/marker/colorbar/_title.py +++ b/plotly/graph_objs/scattermap/marker/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermap.marker.colorbar" _path_str = "scattermap.marker.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermap/marker/colorbar/title/__init__.py b/plotly/graph_objs/scattermap/marker/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/scattermap/marker/colorbar/title/__init__.py +++ b/plotly/graph_objs/scattermap/marker/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scattermap/marker/colorbar/title/_font.py b/plotly/graph_objs/scattermap/marker/colorbar/title/_font.py index 0914990dcb..f563105f3b 100644 --- a/plotly/graph_objs/scattermap/marker/colorbar/title/_font.py +++ b/plotly/graph_objs/scattermap/marker/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermap.marker.colorbar.title" _path_str = "scattermap.marker.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermap/selected/__init__.py b/plotly/graph_objs/scattermap/selected/__init__.py index dfd3406713..17b6d670bc 100644 --- a/plotly/graph_objs/scattermap/selected/__init__.py +++ b/plotly/graph_objs/scattermap/selected/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scattermap/selected/_marker.py b/plotly/graph_objs/scattermap/selected/_marker.py index 7d820a8fcd..43003e69a8 100644 --- a/plotly/graph_objs/scattermap/selected/_marker.py +++ b/plotly/graph_objs/scattermap/selected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermap.selected" _path_str = "scattermap.selected.marker" _valid_props = {"color", "opacity", "size"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # opacity - # ------- @property def opacity(self): """ @@ -89,8 +51,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # size - # ---- @property def size(self): """ @@ -109,8 +69,6 @@ def size(self): def size(self, val): self["size"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -143,14 +101,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -165,30 +120,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("opacity", arg, opacity) + self._set_property("size", arg, size) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermap/unselected/__init__.py b/plotly/graph_objs/scattermap/unselected/__init__.py index dfd3406713..17b6d670bc 100644 --- a/plotly/graph_objs/scattermap/unselected/__init__.py +++ b/plotly/graph_objs/scattermap/unselected/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scattermap/unselected/_marker.py b/plotly/graph_objs/scattermap/unselected/_marker.py index 0722a0f7b1..78bca7e1f2 100644 --- a/plotly/graph_objs/scattermap/unselected/_marker.py +++ b/plotly/graph_objs/scattermap/unselected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermap.unselected" _path_str = "scattermap.unselected.marker" _valid_props = {"color", "opacity", "size"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # opacity - # ------- @property def opacity(self): """ @@ -91,8 +53,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # size - # ---- @property def size(self): """ @@ -112,8 +72,6 @@ def size(self): def size(self, val): self["size"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -152,14 +110,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -174,30 +129,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("opacity", arg, opacity) + self._set_property("size", arg, size) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermapbox/__init__.py b/plotly/graph_objs/scattermapbox/__init__.py index a32d23f438..b1056d2ce4 100644 --- a/plotly/graph_objs/scattermapbox/__init__.py +++ b/plotly/graph_objs/scattermapbox/__init__.py @@ -1,36 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._cluster import Cluster - from ._hoverlabel import Hoverlabel - from ._legendgrouptitle import Legendgrouptitle - from ._line import Line - from ._marker import Marker - from ._selected import Selected - from ._stream import Stream - from ._textfont import Textfont - from ._unselected import Unselected - from . import hoverlabel - from . import legendgrouptitle - from . import marker - from . import selected - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/scattermapbox/_cluster.py b/plotly/graph_objs/scattermapbox/_cluster.py index 2d34eb4c16..fc0c834a7d 100644 --- a/plotly/graph_objs/scattermapbox/_cluster.py +++ b/plotly/graph_objs/scattermapbox/_cluster.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Cluster(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermapbox" _path_str = "scattermapbox.cluster" _valid_props = { @@ -21,8 +22,6 @@ class Cluster(_BaseTraceHierarchyType): "stepsrc", } - # color - # ----- @property def color(self): """ @@ -33,42 +32,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -81,8 +45,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -101,8 +63,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # enabled - # ------- @property def enabled(self): """ @@ -121,8 +81,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # maxzoom - # ------- @property def maxzoom(self): """ @@ -142,8 +100,6 @@ def maxzoom(self): def maxzoom(self, val): self["maxzoom"] = val - # opacity - # ------- @property def opacity(self): """ @@ -163,8 +119,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # opacitysrc - # ---------- @property def opacitysrc(self): """ @@ -183,8 +137,6 @@ def opacitysrc(self): def opacitysrc(self, val): self["opacitysrc"] = val - # size - # ---- @property def size(self): """ @@ -204,8 +156,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -224,8 +174,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # step - # ---- @property def step(self): """ @@ -249,8 +197,6 @@ def step(self): def step(self, val): self["step"] = val - # stepsrc - # ------- @property def stepsrc(self): """ @@ -269,8 +215,6 @@ def stepsrc(self): def stepsrc(self, val): self["stepsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -365,14 +309,11 @@ def __init__( ------- Cluster """ - super(Cluster, self).__init__("cluster") - + super().__init__("cluster") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -387,58 +328,18 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("enabled", arg, enabled) + self._set_property("maxzoom", arg, maxzoom) + self._set_property("opacity", arg, opacity) + self._set_property("opacitysrc", arg, opacitysrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("step", arg, step) + self._set_property("stepsrc", arg, stepsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermapbox/_hoverlabel.py b/plotly/graph_objs/scattermapbox/_hoverlabel.py index 56376844a0..40ed235086 100644 --- a/plotly/graph_objs/scattermapbox/_hoverlabel.py +++ b/plotly/graph_objs/scattermapbox/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermapbox" _path_str = "scattermapbox.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermapbox/_legendgrouptitle.py b/plotly/graph_objs/scattermapbox/_legendgrouptitle.py index 9468d3e87d..a403b8bbce 100644 --- a/plotly/graph_objs/scattermapbox/_legendgrouptitle.py +++ b/plotly/graph_objs/scattermapbox/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermapbox" _path_str = "scattermapbox.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermapbox/_line.py b/plotly/graph_objs/scattermapbox/_line.py index 53702c2816..d2263597ae 100644 --- a/plotly/graph_objs/scattermapbox/_line.py +++ b/plotly/graph_objs/scattermapbox/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermapbox" _path_str = "scattermapbox.line" _valid_props = {"color", "width"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # width - # ----- @property def width(self): """ @@ -89,8 +51,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -119,14 +79,11 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -141,26 +98,10 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermapbox/_marker.py b/plotly/graph_objs/scattermapbox/_marker.py index 089412374d..45bcccb368 100644 --- a/plotly/graph_objs/scattermapbox/_marker.py +++ b/plotly/graph_objs/scattermapbox/_marker.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermapbox" _path_str = "scattermapbox.marker" _valid_props = { @@ -35,8 +36,6 @@ class Marker(_BaseTraceHierarchyType): "symbolsrc", } - # allowoverlap - # ------------ @property def allowoverlap(self): """ @@ -55,8 +54,6 @@ def allowoverlap(self): def allowoverlap(self, val): self["allowoverlap"] = val - # angle - # ----- @property def angle(self): """ @@ -79,8 +76,6 @@ def angle(self): def angle(self, val): self["angle"] = val - # anglesrc - # -------- @property def anglesrc(self): """ @@ -99,8 +94,6 @@ def anglesrc(self): def anglesrc(self, val): self["anglesrc"] = val - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -125,8 +118,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -150,8 +141,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -173,8 +162,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -197,8 +184,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -220,8 +205,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # color - # ----- @property def color(self): """ @@ -235,42 +218,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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to scattermapbox.marker.colorscale - A list or array of any of the above @@ -285,8 +233,6 @@ def color(self): def color(self, val): self["color"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -312,8 +258,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -323,273 +267,6 @@ 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 @@ -600,8 +277,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -654,8 +329,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -674,8 +347,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # opacity - # ------- @property def opacity(self): """ @@ -695,8 +366,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # opacitysrc - # ---------- @property def opacitysrc(self): """ @@ -715,8 +384,6 @@ def opacitysrc(self): def opacitysrc(self, val): self["opacitysrc"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -738,8 +405,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # showscale - # --------- @property def showscale(self): """ @@ -760,8 +425,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # size - # ---- @property def size(self): """ @@ -781,8 +444,6 @@ def size(self): def size(self, val): self["size"] = val - # sizemin - # ------- @property def sizemin(self): """ @@ -803,8 +464,6 @@ def sizemin(self): def sizemin(self, val): self["sizemin"] = val - # sizemode - # -------- @property def sizemode(self): """ @@ -826,8 +485,6 @@ def sizemode(self): def sizemode(self, val): self["sizemode"] = val - # sizeref - # ------- @property def sizeref(self): """ @@ -848,8 +505,6 @@ def sizeref(self): def sizeref(self, val): self["sizeref"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -868,8 +523,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # symbol - # ------ @property def symbol(self): """ @@ -892,8 +545,6 @@ def symbol(self): def symbol(self, val): self["symbol"] = val - # symbolsrc - # --------- @property def symbolsrc(self): """ @@ -912,8 +563,6 @@ def symbolsrc(self): def symbolsrc(self, val): self["symbolsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1196,14 +845,11 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1218,114 +864,32 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("allowoverlap", arg, allowoverlap) + self._set_property("angle", arg, angle) + self._set_property("anglesrc", arg, anglesrc) + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("color", arg, color) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("opacity", arg, opacity) + self._set_property("opacitysrc", arg, opacitysrc) + self._set_property("reversescale", arg, reversescale) + self._set_property("showscale", arg, showscale) + self._set_property("size", arg, size) + self._set_property("sizemin", arg, sizemin) + self._set_property("sizemode", arg, sizemode) + self._set_property("sizeref", arg, sizeref) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("symbol", arg, symbol) + self._set_property("symbolsrc", arg, symbolsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermapbox/_selected.py b/plotly/graph_objs/scattermapbox/_selected.py index 21df8b5b8c..cb161c2117 100644 --- a/plotly/graph_objs/scattermapbox/_selected.py +++ b/plotly/graph_objs/scattermapbox/_selected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Selected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermapbox" _path_str = "scattermapbox.selected" _valid_props = {"marker"} - # marker - # ------ @property def marker(self): """ @@ -21,15 +20,6 @@ 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 @@ -40,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -68,14 +56,11 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") - + super().__init__("selected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -90,22 +75,9 @@ def __init__(self, arg=None, marker=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermapbox/_stream.py b/plotly/graph_objs/scattermapbox/_stream.py index 2042494256..bbecfe37c0 100644 --- a/plotly/graph_objs/scattermapbox/_stream.py +++ b/plotly/graph_objs/scattermapbox/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermapbox" _path_str = "scattermapbox.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -94,14 +89,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -116,26 +108,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermapbox/_textfont.py b/plotly/graph_objs/scattermapbox/_textfont.py index 76e9548644..22c764cb11 100644 --- a/plotly/graph_objs/scattermapbox/_textfont.py +++ b/plotly/graph_objs/scattermapbox/_textfont.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermapbox" _path_str = "scattermapbox.textfont" _valid_props = {"color", "family", "size", "style", "weight"} - # color - # ----- @property def color(self): """ @@ -20,42 +19,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -67,23 +31,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -98,8 +53,6 @@ def family(self): def family(self, val): self["family"] = val - # size - # ---- @property def size(self): """ @@ -116,8 +69,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -138,8 +89,6 @@ def style(self): def style(self, val): self["style"] = val - # weight - # ------ @property def weight(self): """ @@ -160,8 +109,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -169,18 +116,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. size style @@ -217,18 +157,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. size style @@ -241,14 +174,11 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -263,38 +193,13 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermapbox/_unselected.py b/plotly/graph_objs/scattermapbox/_unselected.py index 789952d317..95c2f12cf4 100644 --- a/plotly/graph_objs/scattermapbox/_unselected.py +++ b/plotly/graph_objs/scattermapbox/_unselected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Unselected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermapbox" _path_str = "scattermapbox.unselected" _valid_props = {"marker"} - # marker - # ------ @property def marker(self): """ @@ -21,18 +20,6 @@ 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 @@ -43,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -71,14 +56,11 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") - + super().__init__("unselected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -93,22 +75,9 @@ def __init__(self, arg=None, marker=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermapbox/hoverlabel/__init__.py b/plotly/graph_objs/scattermapbox/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/scattermapbox/hoverlabel/__init__.py +++ b/plotly/graph_objs/scattermapbox/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scattermapbox/hoverlabel/_font.py b/plotly/graph_objs/scattermapbox/hoverlabel/_font.py index 8fda3dd0c0..b3c92b7da6 100644 --- a/plotly/graph_objs/scattermapbox/hoverlabel/_font.py +++ b/plotly/graph_objs/scattermapbox/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermapbox.hoverlabel" _path_str = "scattermapbox.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermapbox/legendgrouptitle/__init__.py b/plotly/graph_objs/scattermapbox/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/scattermapbox/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/scattermapbox/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scattermapbox/legendgrouptitle/_font.py b/plotly/graph_objs/scattermapbox/legendgrouptitle/_font.py index bc6e44c4da..f457b3a851 100644 --- a/plotly/graph_objs/scattermapbox/legendgrouptitle/_font.py +++ b/plotly/graph_objs/scattermapbox/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermapbox.legendgrouptitle" _path_str = "scattermapbox.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermapbox/marker/__init__.py b/plotly/graph_objs/scattermapbox/marker/__init__.py index 27dfc9e52f..5e1805d8fa 100644 --- a/plotly/graph_objs/scattermapbox/marker/__init__.py +++ b/plotly/graph_objs/scattermapbox/marker/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [".colorbar"], ["._colorbar.ColorBar"] +) diff --git a/plotly/graph_objs/scattermapbox/marker/_colorbar.py b/plotly/graph_objs/scattermapbox/marker/_colorbar.py index 684ef30a36..5ddf0f4da4 100644 --- a/plotly/graph_objs/scattermapbox/marker/_colorbar.py +++ b/plotly/graph_objs/scattermapbox/marker/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermapbox.marker" _path_str = "scattermapbox.marker.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -913,8 +638,6 @@ 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 @@ -925,8 +648,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -949,8 +670,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -974,8 +693,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1000,8 +717,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1020,8 +735,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1047,8 +760,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1068,8 +779,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1091,8 +800,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1112,8 +819,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1134,8 +839,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1154,8 +857,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1175,8 +876,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1195,8 +894,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1215,8 +912,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1226,18 +921,6 @@ 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 @@ -1248,8 +931,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1274,8 +955,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1298,8 +977,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1318,8 +995,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1341,8 +1016,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1367,8 +1040,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1391,8 +1062,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1411,8 +1080,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1434,8 +1101,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1985,14 +1650,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2007,214 +1669,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermapbox/marker/colorbar/__init__.py b/plotly/graph_objs/scattermapbox/marker/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/scattermapbox/marker/colorbar/__init__.py +++ b/plotly/graph_objs/scattermapbox/marker/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/scattermapbox/marker/colorbar/_tickfont.py b/plotly/graph_objs/scattermapbox/marker/colorbar/_tickfont.py index 903e0b3c9b..43b9e7c5f9 100644 --- a/plotly/graph_objs/scattermapbox/marker/colorbar/_tickfont.py +++ b/plotly/graph_objs/scattermapbox/marker/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermapbox.marker.colorbar" _path_str = "scattermapbox.marker.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermapbox/marker/colorbar/_tickformatstop.py b/plotly/graph_objs/scattermapbox/marker/colorbar/_tickformatstop.py index 1c215a3bf2..9938d321e2 100644 --- a/plotly/graph_objs/scattermapbox/marker/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/scattermapbox/marker/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermapbox.marker.colorbar" _path_str = "scattermapbox.marker.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermapbox/marker/colorbar/_title.py b/plotly/graph_objs/scattermapbox/marker/colorbar/_title.py index 812ba8dfe0..23a73ff4e5 100644 --- a/plotly/graph_objs/scattermapbox/marker/colorbar/_title.py +++ b/plotly/graph_objs/scattermapbox/marker/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermapbox.marker.colorbar" _path_str = "scattermapbox.marker.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermapbox/marker/colorbar/title/__init__.py b/plotly/graph_objs/scattermapbox/marker/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/scattermapbox/marker/colorbar/title/__init__.py +++ b/plotly/graph_objs/scattermapbox/marker/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scattermapbox/marker/colorbar/title/_font.py b/plotly/graph_objs/scattermapbox/marker/colorbar/title/_font.py index 0e046a0e6d..ff7ae43cb4 100644 --- a/plotly/graph_objs/scattermapbox/marker/colorbar/title/_font.py +++ b/plotly/graph_objs/scattermapbox/marker/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermapbox.marker.colorbar.title" _path_str = "scattermapbox.marker.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermapbox/selected/__init__.py b/plotly/graph_objs/scattermapbox/selected/__init__.py index dfd3406713..17b6d670bc 100644 --- a/plotly/graph_objs/scattermapbox/selected/__init__.py +++ b/plotly/graph_objs/scattermapbox/selected/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scattermapbox/selected/_marker.py b/plotly/graph_objs/scattermapbox/selected/_marker.py index 14f82d5fa0..ad01ff1a76 100644 --- a/plotly/graph_objs/scattermapbox/selected/_marker.py +++ b/plotly/graph_objs/scattermapbox/selected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermapbox.selected" _path_str = "scattermapbox.selected.marker" _valid_props = {"color", "opacity", "size"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # opacity - # ------- @property def opacity(self): """ @@ -89,8 +51,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # size - # ---- @property def size(self): """ @@ -109,8 +69,6 @@ def size(self): def size(self, val): self["size"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -143,14 +101,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -165,30 +120,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("opacity", arg, opacity) + self._set_property("size", arg, size) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattermapbox/unselected/__init__.py b/plotly/graph_objs/scattermapbox/unselected/__init__.py index dfd3406713..17b6d670bc 100644 --- a/plotly/graph_objs/scattermapbox/unselected/__init__.py +++ b/plotly/graph_objs/scattermapbox/unselected/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scattermapbox/unselected/_marker.py b/plotly/graph_objs/scattermapbox/unselected/_marker.py index 4712c12b0d..d7570b5dad 100644 --- a/plotly/graph_objs/scattermapbox/unselected/_marker.py +++ b/plotly/graph_objs/scattermapbox/unselected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattermapbox.unselected" _path_str = "scattermapbox.unselected.marker" _valid_props = {"color", "opacity", "size"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # opacity - # ------- @property def opacity(self): """ @@ -91,8 +53,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # size - # ---- @property def size(self): """ @@ -112,8 +72,6 @@ def size(self): def size(self, val): self["size"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -152,14 +110,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -174,30 +129,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("opacity", arg, opacity) + self._set_property("size", arg, size) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolar/__init__.py b/plotly/graph_objs/scatterpolar/__init__.py index 382e87019f..7cc31d4831 100644 --- a/plotly/graph_objs/scatterpolar/__init__.py +++ b/plotly/graph_objs/scatterpolar/__init__.py @@ -1,34 +1,17 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._hoverlabel import Hoverlabel - from ._legendgrouptitle import Legendgrouptitle - from ._line import Line - from ._marker import Marker - from ._selected import Selected - from ._stream import Stream - from ._textfont import Textfont - from ._unselected import Unselected - from . import hoverlabel - from . import legendgrouptitle - from . import marker - from . import selected - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/scatterpolar/_hoverlabel.py b/plotly/graph_objs/scatterpolar/_hoverlabel.py index 9298560b41..0d77fa8c1d 100644 --- a/plotly/graph_objs/scatterpolar/_hoverlabel.py +++ b/plotly/graph_objs/scatterpolar/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolar" _path_str = "scatterpolar.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolar/_legendgrouptitle.py b/plotly/graph_objs/scatterpolar/_legendgrouptitle.py index 2383375ac0..7f94eb8786 100644 --- a/plotly/graph_objs/scatterpolar/_legendgrouptitle.py +++ b/plotly/graph_objs/scatterpolar/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolar" _path_str = "scatterpolar.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolar/_line.py b/plotly/graph_objs/scatterpolar/_line.py index d62c4ea2d5..0918f97704 100644 --- a/plotly/graph_objs/scatterpolar/_line.py +++ b/plotly/graph_objs/scatterpolar/_line.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolar" _path_str = "scatterpolar.line" _valid_props = { @@ -18,8 +19,6 @@ class Line(_BaseTraceHierarchyType): "width", } - # backoff - # ------- @property def backoff(self): """ @@ -42,8 +41,6 @@ def backoff(self): def backoff(self, val): self["backoff"] = val - # backoffsrc - # ---------- @property def backoffsrc(self): """ @@ -62,8 +59,6 @@ def backoffsrc(self): def backoffsrc(self, val): self["backoffsrc"] = val - # color - # ----- @property def color(self): """ @@ -74,42 +69,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -121,8 +81,6 @@ def color(self): def color(self, val): self["color"] = val - # dash - # ---- @property def dash(self): """ @@ -147,8 +105,6 @@ def dash(self): def dash(self, val): self["dash"] = val - # shape - # ----- @property def shape(self): """ @@ -170,8 +126,6 @@ def shape(self): def shape(self, val): self["shape"] = val - # smoothing - # --------- @property def smoothing(self): """ @@ -192,8 +146,6 @@ def smoothing(self): def smoothing(self, val): self["smoothing"] = val - # width - # ----- @property def width(self): """ @@ -212,8 +164,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -297,14 +247,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -319,46 +266,15 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("backoff", arg, backoff) + self._set_property("backoffsrc", arg, backoffsrc) + self._set_property("color", arg, color) + self._set_property("dash", arg, dash) + self._set_property("shape", arg, shape) + self._set_property("smoothing", arg, smoothing) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolar/_marker.py b/plotly/graph_objs/scatterpolar/_marker.py index 048167b890..918172b9a9 100644 --- a/plotly/graph_objs/scatterpolar/_marker.py +++ b/plotly/graph_objs/scatterpolar/_marker.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolar" _path_str = "scatterpolar.marker" _valid_props = { @@ -40,8 +41,6 @@ class Marker(_BaseTraceHierarchyType): "symbolsrc", } - # angle - # ----- @property def angle(self): """ @@ -62,8 +61,6 @@ def angle(self): def angle(self, val): self["angle"] = val - # angleref - # -------- @property def angleref(self): """ @@ -85,8 +82,6 @@ def angleref(self): def angleref(self, val): self["angleref"] = val - # anglesrc - # -------- @property def anglesrc(self): """ @@ -105,8 +100,6 @@ def anglesrc(self): def anglesrc(self, val): self["anglesrc"] = val - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -131,8 +124,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -156,8 +147,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -179,8 +168,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -203,8 +190,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -226,8 +211,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # color - # ----- @property def color(self): """ @@ -241,42 +224,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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to scatterpolar.marker.colorscale - A list or array of any of the above @@ -291,8 +239,6 @@ def color(self): def color(self, val): self["color"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -318,8 +264,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -329,273 +273,6 @@ 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 @@ -606,8 +283,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -660,8 +335,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -680,8 +353,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # gradient - # -------- @property def gradient(self): """ @@ -691,22 +362,6 @@ 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 @@ -717,8 +372,6 @@ def gradient(self): def gradient(self, val): self["gradient"] = val - # line - # ---- @property def line(self): """ @@ -728,98 +381,6 @@ 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 @@ -830,8 +391,6 @@ def line(self): def line(self, val): self["line"] = val - # maxdisplayed - # ------------ @property def maxdisplayed(self): """ @@ -851,8 +410,6 @@ def maxdisplayed(self): def maxdisplayed(self, val): self["maxdisplayed"] = val - # opacity - # ------- @property def opacity(self): """ @@ -872,8 +429,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # opacitysrc - # ---------- @property def opacitysrc(self): """ @@ -892,8 +447,6 @@ def opacitysrc(self): def opacitysrc(self, val): self["opacitysrc"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -915,8 +468,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # showscale - # --------- @property def showscale(self): """ @@ -937,8 +488,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # size - # ---- @property def size(self): """ @@ -958,8 +507,6 @@ def size(self): def size(self, val): self["size"] = val - # sizemin - # ------- @property def sizemin(self): """ @@ -980,8 +527,6 @@ def sizemin(self): def sizemin(self, val): self["sizemin"] = val - # sizemode - # -------- @property def sizemode(self): """ @@ -1003,8 +548,6 @@ def sizemode(self): def sizemode(self, val): self["sizemode"] = val - # sizeref - # ------- @property def sizeref(self): """ @@ -1025,8 +568,6 @@ def sizeref(self): def sizeref(self, val): self["sizeref"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -1045,8 +586,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # standoff - # -------- @property def standoff(self): """ @@ -1069,8 +608,6 @@ def standoff(self): def standoff(self, val): self["standoff"] = val - # standoffsrc - # ----------- @property def standoffsrc(self): """ @@ -1089,8 +626,6 @@ def standoffsrc(self): def standoffsrc(self, val): self["standoffsrc"] = val - # symbol - # ------ @property def symbol(self): """ @@ -1202,8 +737,6 @@ def symbol(self): def symbol(self, val): self["symbol"] = val - # symbolsrc - # --------- @property def symbolsrc(self): """ @@ -1222,8 +755,6 @@ def symbolsrc(self): def symbolsrc(self, val): self["symbolsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1547,14 +1078,11 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1569,134 +1097,37 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("angle", arg, angle) + self._set_property("angleref", arg, angleref) + self._set_property("anglesrc", arg, anglesrc) + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("color", arg, color) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("gradient", arg, gradient) + self._set_property("line", arg, line) + self._set_property("maxdisplayed", arg, maxdisplayed) + self._set_property("opacity", arg, opacity) + self._set_property("opacitysrc", arg, opacitysrc) + self._set_property("reversescale", arg, reversescale) + self._set_property("showscale", arg, showscale) + self._set_property("size", arg, size) + self._set_property("sizemin", arg, sizemin) + self._set_property("sizemode", arg, sizemode) + self._set_property("sizeref", arg, sizeref) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("standoff", arg, standoff) + self._set_property("standoffsrc", arg, standoffsrc) + self._set_property("symbol", arg, symbol) + self._set_property("symbolsrc", arg, symbolsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolar/_selected.py b/plotly/graph_objs/scatterpolar/_selected.py index df8415c49e..0648ef5144 100644 --- a/plotly/graph_objs/scatterpolar/_selected.py +++ b/plotly/graph_objs/scatterpolar/_selected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Selected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolar" _path_str = "scatterpolar.selected" _valid_props = {"marker", "textfont"} - # marker - # ------ @property def marker(self): """ @@ -21,15 +20,6 @@ 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 @@ -40,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # textfont - # -------- @property def textfont(self): """ @@ -51,11 +39,6 @@ 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 @@ -66,8 +49,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -100,14 +81,11 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") - + super().__init__("selected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -122,26 +100,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) + self._set_property("textfont", arg, textfont) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolar/_stream.py b/plotly/graph_objs/scatterpolar/_stream.py index 444327ede9..c85d3db709 100644 --- a/plotly/graph_objs/scatterpolar/_stream.py +++ b/plotly/graph_objs/scatterpolar/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolar" _path_str = "scatterpolar.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -94,14 +89,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -116,26 +108,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolar/_textfont.py b/plotly/graph_objs/scatterpolar/_textfont.py index d120f4de43..9aa9d4442b 100644 --- a/plotly/graph_objs/scatterpolar/_textfont.py +++ b/plotly/graph_objs/scatterpolar/_textfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolar" _path_str = "scatterpolar.textfont" _valid_props = { @@ -29,8 +30,6 @@ class Textfont(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolar/_unselected.py b/plotly/graph_objs/scatterpolar/_unselected.py index 2cbe5169a3..deb2bb2066 100644 --- a/plotly/graph_objs/scatterpolar/_unselected.py +++ b/plotly/graph_objs/scatterpolar/_unselected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Unselected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolar" _path_str = "scatterpolar.unselected" _valid_props = {"marker", "textfont"} - # marker - # ------ @property def marker(self): """ @@ -21,18 +20,6 @@ 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 @@ -43,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # textfont - # -------- @property def textfont(self): """ @@ -54,12 +39,6 @@ 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 @@ -70,8 +49,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -104,14 +81,11 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") - + super().__init__("unselected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -126,26 +100,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) + self._set_property("textfont", arg, textfont) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolar/hoverlabel/__init__.py b/plotly/graph_objs/scatterpolar/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/scatterpolar/hoverlabel/__init__.py +++ b/plotly/graph_objs/scatterpolar/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scatterpolar/hoverlabel/_font.py b/plotly/graph_objs/scatterpolar/hoverlabel/_font.py index 2e9f6fdbdf..2ca7a57454 100644 --- a/plotly/graph_objs/scatterpolar/hoverlabel/_font.py +++ b/plotly/graph_objs/scatterpolar/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolar.hoverlabel" _path_str = "scatterpolar.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolar/legendgrouptitle/__init__.py b/plotly/graph_objs/scatterpolar/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/scatterpolar/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/scatterpolar/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scatterpolar/legendgrouptitle/_font.py b/plotly/graph_objs/scatterpolar/legendgrouptitle/_font.py index 94a44b838f..8def746487 100644 --- a/plotly/graph_objs/scatterpolar/legendgrouptitle/_font.py +++ b/plotly/graph_objs/scatterpolar/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolar.legendgrouptitle" _path_str = "scatterpolar.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolar/marker/__init__.py b/plotly/graph_objs/scatterpolar/marker/__init__.py index f1897fb0aa..f9d889ecb9 100644 --- a/plotly/graph_objs/scatterpolar/marker/__init__.py +++ b/plotly/graph_objs/scatterpolar/marker/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._colorbar import ColorBar - from ._gradient import Gradient - from ._line import Line - from . import colorbar -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".colorbar"], - ["._colorbar.ColorBar", "._gradient.Gradient", "._line.Line"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".colorbar"], + ["._colorbar.ColorBar", "._gradient.Gradient", "._line.Line"], +) diff --git a/plotly/graph_objs/scatterpolar/marker/_colorbar.py b/plotly/graph_objs/scatterpolar/marker/_colorbar.py index 1dea820c83..da061261a2 100644 --- a/plotly/graph_objs/scatterpolar/marker/_colorbar.py +++ b/plotly/graph_objs/scatterpolar/marker/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolar.marker" _path_str = "scatterpolar.marker.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -913,8 +638,6 @@ 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 @@ -925,8 +648,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -949,8 +670,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -974,8 +693,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1000,8 +717,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1020,8 +735,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1047,8 +760,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1068,8 +779,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1091,8 +800,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1112,8 +819,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1134,8 +839,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1154,8 +857,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1175,8 +876,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1195,8 +894,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1215,8 +912,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1226,18 +921,6 @@ 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 @@ -1248,8 +931,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1274,8 +955,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1298,8 +977,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1318,8 +995,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1341,8 +1016,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1367,8 +1040,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1391,8 +1062,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1411,8 +1080,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1434,8 +1101,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1985,14 +1650,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2007,214 +1669,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolar/marker/_gradient.py b/plotly/graph_objs/scatterpolar/marker/_gradient.py index 9c29c769c9..76f595326f 100644 --- a/plotly/graph_objs/scatterpolar/marker/_gradient.py +++ b/plotly/graph_objs/scatterpolar/marker/_gradient.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Gradient(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolar.marker" _path_str = "scatterpolar.marker.gradient" _valid_props = {"color", "colorsrc", "type", "typesrc"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -71,8 +35,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -91,8 +53,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # type - # ---- @property def type(self): """ @@ -113,8 +73,6 @@ def type(self): def type(self, val): self["type"] = val - # typesrc - # ------- @property def typesrc(self): """ @@ -133,8 +91,6 @@ def typesrc(self): def typesrc(self, val): self["typesrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -181,14 +137,11 @@ def __init__( ------- Gradient """ - super(Gradient, self).__init__("gradient") - + super().__init__("gradient") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -203,34 +156,12 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("type", arg, type) + self._set_property("typesrc", arg, typesrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolar/marker/_line.py b/plotly/graph_objs/scatterpolar/marker/_line.py index 2484f5e5a5..16ecb17788 100644 --- a/plotly/graph_objs/scatterpolar/marker/_line.py +++ b/plotly/graph_objs/scatterpolar/marker/_line.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolar.marker" _path_str = "scatterpolar.marker.line" _valid_props = { @@ -23,8 +24,6 @@ class Line(_BaseTraceHierarchyType): "widthsrc", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -49,8 +48,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -74,8 +71,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -97,8 +92,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -122,8 +115,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -145,8 +136,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # color - # ----- @property def color(self): """ @@ -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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to scatterpolar.marker.line.colorscale - A list or array of any of the above @@ -210,8 +164,6 @@ def color(self): def color(self, val): self["color"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -237,8 +189,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -292,8 +242,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -312,8 +260,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -336,8 +282,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # width - # ----- @property def width(self): """ @@ -357,8 +301,6 @@ def width(self): def width(self, val): self["width"] = val - # widthsrc - # -------- @property def widthsrc(self): """ @@ -377,8 +319,6 @@ def widthsrc(self): def widthsrc(self, val): self["widthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -571,14 +511,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -593,66 +530,20 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("color", arg, color) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("reversescale", arg, reversescale) + self._set_property("width", arg, width) + self._set_property("widthsrc", arg, widthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolar/marker/colorbar/__init__.py b/plotly/graph_objs/scatterpolar/marker/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/scatterpolar/marker/colorbar/__init__.py +++ b/plotly/graph_objs/scatterpolar/marker/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/scatterpolar/marker/colorbar/_tickfont.py b/plotly/graph_objs/scatterpolar/marker/colorbar/_tickfont.py index 759310f638..c51649c655 100644 --- a/plotly/graph_objs/scatterpolar/marker/colorbar/_tickfont.py +++ b/plotly/graph_objs/scatterpolar/marker/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolar.marker.colorbar" _path_str = "scatterpolar.marker.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolar/marker/colorbar/_tickformatstop.py b/plotly/graph_objs/scatterpolar/marker/colorbar/_tickformatstop.py index 61eeba8255..21862592a2 100644 --- a/plotly/graph_objs/scatterpolar/marker/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/scatterpolar/marker/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolar.marker.colorbar" _path_str = "scatterpolar.marker.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolar/marker/colorbar/_title.py b/plotly/graph_objs/scatterpolar/marker/colorbar/_title.py index e62ca01ff1..f4aa7726d9 100644 --- a/plotly/graph_objs/scatterpolar/marker/colorbar/_title.py +++ b/plotly/graph_objs/scatterpolar/marker/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolar.marker.colorbar" _path_str = "scatterpolar.marker.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolar/marker/colorbar/title/__init__.py b/plotly/graph_objs/scatterpolar/marker/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/scatterpolar/marker/colorbar/title/__init__.py +++ b/plotly/graph_objs/scatterpolar/marker/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scatterpolar/marker/colorbar/title/_font.py b/plotly/graph_objs/scatterpolar/marker/colorbar/title/_font.py index 41fce0c702..e679f5e8c0 100644 --- a/plotly/graph_objs/scatterpolar/marker/colorbar/title/_font.py +++ b/plotly/graph_objs/scatterpolar/marker/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolar.marker.colorbar.title" _path_str = "scatterpolar.marker.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolar/selected/__init__.py b/plotly/graph_objs/scatterpolar/selected/__init__.py index ae964f0b65..473168fdb5 100644 --- a/plotly/graph_objs/scatterpolar/selected/__init__.py +++ b/plotly/graph_objs/scatterpolar/selected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.Marker", "._textfont.Textfont"] +) diff --git a/plotly/graph_objs/scatterpolar/selected/_marker.py b/plotly/graph_objs/scatterpolar/selected/_marker.py index 65c47bd19c..e7be999e0a 100644 --- a/plotly/graph_objs/scatterpolar/selected/_marker.py +++ b/plotly/graph_objs/scatterpolar/selected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolar.selected" _path_str = "scatterpolar.selected.marker" _valid_props = {"color", "opacity", "size"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # opacity - # ------- @property def opacity(self): """ @@ -89,8 +51,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # size - # ---- @property def size(self): """ @@ -109,8 +69,6 @@ def size(self): def size(self, val): self["size"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -143,14 +101,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -165,30 +120,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("opacity", arg, opacity) + self._set_property("size", arg, size) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolar/selected/_textfont.py b/plotly/graph_objs/scatterpolar/selected/_textfont.py index 33b7ae9a0b..53613c1b14 100644 --- a/plotly/graph_objs/scatterpolar/selected/_textfont.py +++ b/plotly/graph_objs/scatterpolar/selected/_textfont.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolar.selected" _path_str = "scatterpolar.selected.textfont" _valid_props = {"color"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -95,14 +57,11 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -117,22 +76,9 @@ def __init__(self, arg=None, color=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolar/unselected/__init__.py b/plotly/graph_objs/scatterpolar/unselected/__init__.py index ae964f0b65..473168fdb5 100644 --- a/plotly/graph_objs/scatterpolar/unselected/__init__.py +++ b/plotly/graph_objs/scatterpolar/unselected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.Marker", "._textfont.Textfont"] +) diff --git a/plotly/graph_objs/scatterpolar/unselected/_marker.py b/plotly/graph_objs/scatterpolar/unselected/_marker.py index c92b750344..0a21fcabd5 100644 --- a/plotly/graph_objs/scatterpolar/unselected/_marker.py +++ b/plotly/graph_objs/scatterpolar/unselected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolar.unselected" _path_str = "scatterpolar.unselected.marker" _valid_props = {"color", "opacity", "size"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # opacity - # ------- @property def opacity(self): """ @@ -91,8 +53,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # size - # ---- @property def size(self): """ @@ -112,8 +72,6 @@ def size(self): def size(self, val): self["size"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -152,14 +110,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -174,30 +129,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("opacity", arg, opacity) + self._set_property("size", arg, size) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolar/unselected/_textfont.py b/plotly/graph_objs/scatterpolar/unselected/_textfont.py index 8330c2f1d8..c11ac8d3b2 100644 --- a/plotly/graph_objs/scatterpolar/unselected/_textfont.py +++ b/plotly/graph_objs/scatterpolar/unselected/_textfont.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolar.unselected" _path_str = "scatterpolar.unselected.textfont" _valid_props = {"color"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -98,14 +60,11 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -120,22 +79,9 @@ def __init__(self, arg=None, color=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolargl/__init__.py b/plotly/graph_objs/scatterpolargl/__init__.py index 382e87019f..7cc31d4831 100644 --- a/plotly/graph_objs/scatterpolargl/__init__.py +++ b/plotly/graph_objs/scatterpolargl/__init__.py @@ -1,34 +1,17 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._hoverlabel import Hoverlabel - from ._legendgrouptitle import Legendgrouptitle - from ._line import Line - from ._marker import Marker - from ._selected import Selected - from ._stream import Stream - from ._textfont import Textfont - from ._unselected import Unselected - from . import hoverlabel - from . import legendgrouptitle - from . import marker - from . import selected - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/scatterpolargl/_hoverlabel.py b/plotly/graph_objs/scatterpolargl/_hoverlabel.py index 8785f555d4..e6ba2e2f81 100644 --- a/plotly/graph_objs/scatterpolargl/_hoverlabel.py +++ b/plotly/graph_objs/scatterpolargl/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolargl" _path_str = "scatterpolargl.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolargl/_legendgrouptitle.py b/plotly/graph_objs/scatterpolargl/_legendgrouptitle.py index a2519c9a45..022e0509fd 100644 --- a/plotly/graph_objs/scatterpolargl/_legendgrouptitle.py +++ b/plotly/graph_objs/scatterpolargl/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolargl" _path_str = "scatterpolargl.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolargl/_line.py b/plotly/graph_objs/scatterpolargl/_line.py index 35a581a8e4..fd3304d4b5 100644 --- a/plotly/graph_objs/scatterpolargl/_line.py +++ b/plotly/graph_objs/scatterpolargl/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolargl" _path_str = "scatterpolargl.line" _valid_props = {"color", "dash", "width"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # dash - # ---- @property def dash(self): """ @@ -91,8 +53,6 @@ def dash(self): def dash(self, val): self["dash"] = val - # width - # ----- @property def width(self): """ @@ -111,8 +71,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -145,14 +103,11 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -167,30 +122,11 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("dash", arg, dash) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolargl/_marker.py b/plotly/graph_objs/scatterpolargl/_marker.py index 8fa0d4b2c6..b79fd6113a 100644 --- a/plotly/graph_objs/scatterpolargl/_marker.py +++ b/plotly/graph_objs/scatterpolargl/_marker.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolargl" _path_str = "scatterpolargl.marker" _valid_props = { @@ -35,8 +36,6 @@ class Marker(_BaseTraceHierarchyType): "symbolsrc", } - # angle - # ----- @property def angle(self): """ @@ -57,8 +56,6 @@ def angle(self): def angle(self, val): self["angle"] = val - # anglesrc - # -------- @property def anglesrc(self): """ @@ -77,8 +74,6 @@ def anglesrc(self): def anglesrc(self, val): self["anglesrc"] = val - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -103,8 +98,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -128,8 +121,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -151,8 +142,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -175,8 +164,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -198,8 +185,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # color - # ----- @property def color(self): """ @@ -213,42 +198,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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to scatterpolargl.marker.colorscale - A list or array of any of the above @@ -263,8 +213,6 @@ def color(self): def color(self, val): self["color"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -290,8 +238,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -301,273 +247,6 @@ 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 @@ -578,8 +257,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -632,8 +309,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -652,8 +327,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # line - # ---- @property def line(self): """ @@ -663,98 +336,6 @@ 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 @@ -765,8 +346,6 @@ def line(self): def line(self, val): self["line"] = val - # opacity - # ------- @property def opacity(self): """ @@ -786,8 +365,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # opacitysrc - # ---------- @property def opacitysrc(self): """ @@ -806,8 +383,6 @@ def opacitysrc(self): def opacitysrc(self, val): self["opacitysrc"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -829,8 +404,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # showscale - # --------- @property def showscale(self): """ @@ -851,8 +424,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # size - # ---- @property def size(self): """ @@ -872,8 +443,6 @@ def size(self): def size(self, val): self["size"] = val - # sizemin - # ------- @property def sizemin(self): """ @@ -894,8 +463,6 @@ def sizemin(self): def sizemin(self, val): self["sizemin"] = val - # sizemode - # -------- @property def sizemode(self): """ @@ -917,8 +484,6 @@ def sizemode(self): def sizemode(self, val): self["sizemode"] = val - # sizeref - # ------- @property def sizeref(self): """ @@ -939,8 +504,6 @@ def sizeref(self): def sizeref(self, val): self["sizeref"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -959,8 +522,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # symbol - # ------ @property def symbol(self): """ @@ -1072,8 +633,6 @@ def symbol(self): def symbol(self, val): self["symbol"] = val - # symbolsrc - # --------- @property def symbolsrc(self): """ @@ -1092,8 +651,6 @@ def symbolsrc(self): def symbolsrc(self, val): self["symbolsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1374,14 +931,11 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1396,114 +950,32 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("angle", arg, angle) + self._set_property("anglesrc", arg, anglesrc) + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("color", arg, color) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("line", arg, line) + self._set_property("opacity", arg, opacity) + self._set_property("opacitysrc", arg, opacitysrc) + self._set_property("reversescale", arg, reversescale) + self._set_property("showscale", arg, showscale) + self._set_property("size", arg, size) + self._set_property("sizemin", arg, sizemin) + self._set_property("sizemode", arg, sizemode) + self._set_property("sizeref", arg, sizeref) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("symbol", arg, symbol) + self._set_property("symbolsrc", arg, symbolsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolargl/_selected.py b/plotly/graph_objs/scatterpolargl/_selected.py index 3633cbd509..c89403512f 100644 --- a/plotly/graph_objs/scatterpolargl/_selected.py +++ b/plotly/graph_objs/scatterpolargl/_selected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Selected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolargl" _path_str = "scatterpolargl.selected" _valid_props = {"marker", "textfont"} - # marker - # ------ @property def marker(self): """ @@ -21,15 +20,6 @@ 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 @@ -40,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # textfont - # -------- @property def textfont(self): """ @@ -51,11 +39,6 @@ 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 @@ -66,8 +49,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -100,14 +81,11 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") - + super().__init__("selected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -122,26 +100,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) + self._set_property("textfont", arg, textfont) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolargl/_stream.py b/plotly/graph_objs/scatterpolargl/_stream.py index 1446c90098..e97501f731 100644 --- a/plotly/graph_objs/scatterpolargl/_stream.py +++ b/plotly/graph_objs/scatterpolargl/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolargl" _path_str = "scatterpolargl.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -94,14 +89,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -116,26 +108,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolargl/_textfont.py b/plotly/graph_objs/scatterpolargl/_textfont.py index 94dabaa4a2..0e324fac0d 100644 --- a/plotly/graph_objs/scatterpolargl/_textfont.py +++ b/plotly/graph_objs/scatterpolargl/_textfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolargl" _path_str = "scatterpolargl.textfont" _valid_props = { @@ -23,8 +24,6 @@ class Textfont(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -33,42 +32,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -81,8 +45,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -101,23 +63,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -133,8 +86,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -153,8 +104,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # size - # ---- @property def size(self): """ @@ -172,8 +121,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -192,8 +139,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -215,8 +160,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -235,8 +178,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -257,8 +198,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -277,8 +216,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -299,8 +236,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -319,8 +254,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -331,18 +264,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -404,18 +330,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -445,14 +364,11 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -467,66 +383,20 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolargl/_unselected.py b/plotly/graph_objs/scatterpolargl/_unselected.py index 41ad0befff..817f5af64e 100644 --- a/plotly/graph_objs/scatterpolargl/_unselected.py +++ b/plotly/graph_objs/scatterpolargl/_unselected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Unselected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolargl" _path_str = "scatterpolargl.unselected" _valid_props = {"marker", "textfont"} - # marker - # ------ @property def marker(self): """ @@ -21,18 +20,6 @@ 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 @@ -43,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # textfont - # -------- @property def textfont(self): """ @@ -54,12 +39,6 @@ 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 @@ -70,8 +49,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -104,14 +81,11 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") - + super().__init__("unselected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -126,26 +100,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) + self._set_property("textfont", arg, textfont) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolargl/hoverlabel/__init__.py b/plotly/graph_objs/scatterpolargl/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/scatterpolargl/hoverlabel/__init__.py +++ b/plotly/graph_objs/scatterpolargl/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scatterpolargl/hoverlabel/_font.py b/plotly/graph_objs/scatterpolargl/hoverlabel/_font.py index 2bb67d5d53..788ef91acc 100644 --- a/plotly/graph_objs/scatterpolargl/hoverlabel/_font.py +++ b/plotly/graph_objs/scatterpolargl/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolargl.hoverlabel" _path_str = "scatterpolargl.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolargl/legendgrouptitle/__init__.py b/plotly/graph_objs/scatterpolargl/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/scatterpolargl/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/scatterpolargl/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scatterpolargl/legendgrouptitle/_font.py b/plotly/graph_objs/scatterpolargl/legendgrouptitle/_font.py index c8ef040bdc..64b1f921e5 100644 --- a/plotly/graph_objs/scatterpolargl/legendgrouptitle/_font.py +++ b/plotly/graph_objs/scatterpolargl/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolargl.legendgrouptitle" _path_str = "scatterpolargl.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolargl/marker/__init__.py b/plotly/graph_objs/scatterpolargl/marker/__init__.py index 8481520e3c..ff536ec8b2 100644 --- a/plotly/graph_objs/scatterpolargl/marker/__init__.py +++ b/plotly/graph_objs/scatterpolargl/marker/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [".colorbar"], ["._colorbar.ColorBar", "._line.Line"] +) diff --git a/plotly/graph_objs/scatterpolargl/marker/_colorbar.py b/plotly/graph_objs/scatterpolargl/marker/_colorbar.py index 0d80f886c7..c5b05be4ae 100644 --- a/plotly/graph_objs/scatterpolargl/marker/_colorbar.py +++ b/plotly/graph_objs/scatterpolargl/marker/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolargl.marker" _path_str = "scatterpolargl.marker.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -913,8 +638,6 @@ 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 @@ -925,8 +648,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -949,8 +670,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -974,8 +693,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1000,8 +717,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1020,8 +735,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1047,8 +760,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1068,8 +779,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1091,8 +800,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1112,8 +819,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1134,8 +839,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1154,8 +857,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1175,8 +876,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1195,8 +894,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1215,8 +912,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1226,18 +921,6 @@ 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 @@ -1248,8 +931,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1274,8 +955,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1298,8 +977,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1318,8 +995,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1341,8 +1016,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1367,8 +1040,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1391,8 +1062,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1411,8 +1080,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1434,8 +1101,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1985,14 +1650,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2007,214 +1669,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolargl/marker/_line.py b/plotly/graph_objs/scatterpolargl/marker/_line.py index 7d11a59689..28863c1b55 100644 --- a/plotly/graph_objs/scatterpolargl/marker/_line.py +++ b/plotly/graph_objs/scatterpolargl/marker/_line.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolargl.marker" _path_str = "scatterpolargl.marker.line" _valid_props = { @@ -23,8 +24,6 @@ class Line(_BaseTraceHierarchyType): "widthsrc", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -49,8 +48,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -74,8 +71,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -97,8 +92,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -122,8 +115,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -145,8 +136,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # color - # ----- @property def color(self): """ @@ -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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to scatterpolargl.marker.line.colorscale - A list or array of any of the above @@ -210,8 +164,6 @@ def color(self): def color(self, val): self["color"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -237,8 +189,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -292,8 +242,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -312,8 +260,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -336,8 +282,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # width - # ----- @property def width(self): """ @@ -357,8 +301,6 @@ def width(self): def width(self, val): self["width"] = val - # widthsrc - # -------- @property def widthsrc(self): """ @@ -377,8 +319,6 @@ def widthsrc(self): def widthsrc(self, val): self["widthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -571,14 +511,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -593,66 +530,20 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("color", arg, color) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("reversescale", arg, reversescale) + self._set_property("width", arg, width) + self._set_property("widthsrc", arg, widthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolargl/marker/colorbar/__init__.py b/plotly/graph_objs/scatterpolargl/marker/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/scatterpolargl/marker/colorbar/__init__.py +++ b/plotly/graph_objs/scatterpolargl/marker/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/scatterpolargl/marker/colorbar/_tickfont.py b/plotly/graph_objs/scatterpolargl/marker/colorbar/_tickfont.py index cac486d95d..d49a1c90ed 100644 --- a/plotly/graph_objs/scatterpolargl/marker/colorbar/_tickfont.py +++ b/plotly/graph_objs/scatterpolargl/marker/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolargl.marker.colorbar" _path_str = "scatterpolargl.marker.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolargl/marker/colorbar/_tickformatstop.py b/plotly/graph_objs/scatterpolargl/marker/colorbar/_tickformatstop.py index 4cf6020fc0..2eaf022cd0 100644 --- a/plotly/graph_objs/scatterpolargl/marker/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/scatterpolargl/marker/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolargl.marker.colorbar" _path_str = "scatterpolargl.marker.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolargl/marker/colorbar/_title.py b/plotly/graph_objs/scatterpolargl/marker/colorbar/_title.py index 313c0a1fa8..b8fef5e8d9 100644 --- a/plotly/graph_objs/scatterpolargl/marker/colorbar/_title.py +++ b/plotly/graph_objs/scatterpolargl/marker/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolargl.marker.colorbar" _path_str = "scatterpolargl.marker.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolargl/marker/colorbar/title/__init__.py b/plotly/graph_objs/scatterpolargl/marker/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/scatterpolargl/marker/colorbar/title/__init__.py +++ b/plotly/graph_objs/scatterpolargl/marker/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scatterpolargl/marker/colorbar/title/_font.py b/plotly/graph_objs/scatterpolargl/marker/colorbar/title/_font.py index 2334e829c0..2b23aff3a1 100644 --- a/plotly/graph_objs/scatterpolargl/marker/colorbar/title/_font.py +++ b/plotly/graph_objs/scatterpolargl/marker/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolargl.marker.colorbar.title" _path_str = "scatterpolargl.marker.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolargl/selected/__init__.py b/plotly/graph_objs/scatterpolargl/selected/__init__.py index ae964f0b65..473168fdb5 100644 --- a/plotly/graph_objs/scatterpolargl/selected/__init__.py +++ b/plotly/graph_objs/scatterpolargl/selected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.Marker", "._textfont.Textfont"] +) diff --git a/plotly/graph_objs/scatterpolargl/selected/_marker.py b/plotly/graph_objs/scatterpolargl/selected/_marker.py index f8b22058a9..beaf722fa0 100644 --- a/plotly/graph_objs/scatterpolargl/selected/_marker.py +++ b/plotly/graph_objs/scatterpolargl/selected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolargl.selected" _path_str = "scatterpolargl.selected.marker" _valid_props = {"color", "opacity", "size"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # opacity - # ------- @property def opacity(self): """ @@ -89,8 +51,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # size - # ---- @property def size(self): """ @@ -109,8 +69,6 @@ def size(self): def size(self, val): self["size"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -143,14 +101,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -165,30 +120,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("opacity", arg, opacity) + self._set_property("size", arg, size) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolargl/selected/_textfont.py b/plotly/graph_objs/scatterpolargl/selected/_textfont.py index b37d165bd0..dd1832e529 100644 --- a/plotly/graph_objs/scatterpolargl/selected/_textfont.py +++ b/plotly/graph_objs/scatterpolargl/selected/_textfont.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolargl.selected" _path_str = "scatterpolargl.selected.textfont" _valid_props = {"color"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -95,14 +57,11 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -117,22 +76,9 @@ def __init__(self, arg=None, color=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolargl/unselected/__init__.py b/plotly/graph_objs/scatterpolargl/unselected/__init__.py index ae964f0b65..473168fdb5 100644 --- a/plotly/graph_objs/scatterpolargl/unselected/__init__.py +++ b/plotly/graph_objs/scatterpolargl/unselected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.Marker", "._textfont.Textfont"] +) diff --git a/plotly/graph_objs/scatterpolargl/unselected/_marker.py b/plotly/graph_objs/scatterpolargl/unselected/_marker.py index 005c8a9e07..bf65f9b31a 100644 --- a/plotly/graph_objs/scatterpolargl/unselected/_marker.py +++ b/plotly/graph_objs/scatterpolargl/unselected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolargl.unselected" _path_str = "scatterpolargl.unselected.marker" _valid_props = {"color", "opacity", "size"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # opacity - # ------- @property def opacity(self): """ @@ -91,8 +53,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # size - # ---- @property def size(self): """ @@ -112,8 +72,6 @@ def size(self): def size(self, val): self["size"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -152,14 +110,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -174,30 +129,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("opacity", arg, opacity) + self._set_property("size", arg, size) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterpolargl/unselected/_textfont.py b/plotly/graph_objs/scatterpolargl/unselected/_textfont.py index b05e65f33d..a803c62085 100644 --- a/plotly/graph_objs/scatterpolargl/unselected/_textfont.py +++ b/plotly/graph_objs/scatterpolargl/unselected/_textfont.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterpolargl.unselected" _path_str = "scatterpolargl.unselected.textfont" _valid_props = {"color"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -98,14 +60,11 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -120,22 +79,9 @@ def __init__(self, arg=None, color=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattersmith/__init__.py b/plotly/graph_objs/scattersmith/__init__.py index 382e87019f..7cc31d4831 100644 --- a/plotly/graph_objs/scattersmith/__init__.py +++ b/plotly/graph_objs/scattersmith/__init__.py @@ -1,34 +1,17 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._hoverlabel import Hoverlabel - from ._legendgrouptitle import Legendgrouptitle - from ._line import Line - from ._marker import Marker - from ._selected import Selected - from ._stream import Stream - from ._textfont import Textfont - from ._unselected import Unselected - from . import hoverlabel - from . import legendgrouptitle - from . import marker - from . import selected - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/scattersmith/_hoverlabel.py b/plotly/graph_objs/scattersmith/_hoverlabel.py index 28e0674fdb..4cc47981cc 100644 --- a/plotly/graph_objs/scattersmith/_hoverlabel.py +++ b/plotly/graph_objs/scattersmith/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattersmith" _path_str = "scattersmith.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattersmith/_legendgrouptitle.py b/plotly/graph_objs/scattersmith/_legendgrouptitle.py index fcb0392a7c..cc52ed093c 100644 --- a/plotly/graph_objs/scattersmith/_legendgrouptitle.py +++ b/plotly/graph_objs/scattersmith/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattersmith" _path_str = "scattersmith.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattersmith/_line.py b/plotly/graph_objs/scattersmith/_line.py index 2ec059f0f0..cf22f60986 100644 --- a/plotly/graph_objs/scattersmith/_line.py +++ b/plotly/graph_objs/scattersmith/_line.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattersmith" _path_str = "scattersmith.line" _valid_props = { @@ -18,8 +19,6 @@ class Line(_BaseTraceHierarchyType): "width", } - # backoff - # ------- @property def backoff(self): """ @@ -42,8 +41,6 @@ def backoff(self): def backoff(self, val): self["backoff"] = val - # backoffsrc - # ---------- @property def backoffsrc(self): """ @@ -62,8 +59,6 @@ def backoffsrc(self): def backoffsrc(self, val): self["backoffsrc"] = val - # color - # ----- @property def color(self): """ @@ -74,42 +69,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -121,8 +81,6 @@ def color(self): def color(self, val): self["color"] = val - # dash - # ---- @property def dash(self): """ @@ -147,8 +105,6 @@ def dash(self): def dash(self, val): self["dash"] = val - # shape - # ----- @property def shape(self): """ @@ -170,8 +126,6 @@ def shape(self): def shape(self, val): self["shape"] = val - # smoothing - # --------- @property def smoothing(self): """ @@ -192,8 +146,6 @@ def smoothing(self): def smoothing(self, val): self["smoothing"] = val - # width - # ----- @property def width(self): """ @@ -212,8 +164,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -297,14 +247,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -319,46 +266,15 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("backoff", arg, backoff) + self._set_property("backoffsrc", arg, backoffsrc) + self._set_property("color", arg, color) + self._set_property("dash", arg, dash) + self._set_property("shape", arg, shape) + self._set_property("smoothing", arg, smoothing) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattersmith/_marker.py b/plotly/graph_objs/scattersmith/_marker.py index 5b78c98321..355db37e41 100644 --- a/plotly/graph_objs/scattersmith/_marker.py +++ b/plotly/graph_objs/scattersmith/_marker.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattersmith" _path_str = "scattersmith.marker" _valid_props = { @@ -40,8 +41,6 @@ class Marker(_BaseTraceHierarchyType): "symbolsrc", } - # angle - # ----- @property def angle(self): """ @@ -62,8 +61,6 @@ def angle(self): def angle(self, val): self["angle"] = val - # angleref - # -------- @property def angleref(self): """ @@ -85,8 +82,6 @@ def angleref(self): def angleref(self, val): self["angleref"] = val - # anglesrc - # -------- @property def anglesrc(self): """ @@ -105,8 +100,6 @@ def anglesrc(self): def anglesrc(self, val): self["anglesrc"] = val - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -131,8 +124,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -156,8 +147,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -179,8 +168,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -203,8 +190,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -226,8 +211,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # color - # ----- @property def color(self): """ @@ -241,42 +224,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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to scattersmith.marker.colorscale - A list or array of any of the above @@ -291,8 +239,6 @@ def color(self): def color(self, val): self["color"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -318,8 +264,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -329,273 +273,6 @@ 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 @@ -606,8 +283,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -660,8 +335,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -680,8 +353,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # gradient - # -------- @property def gradient(self): """ @@ -691,22 +362,6 @@ 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 @@ -717,8 +372,6 @@ def gradient(self): def gradient(self, val): self["gradient"] = val - # line - # ---- @property def line(self): """ @@ -728,98 +381,6 @@ 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 @@ -830,8 +391,6 @@ def line(self): def line(self, val): self["line"] = val - # maxdisplayed - # ------------ @property def maxdisplayed(self): """ @@ -851,8 +410,6 @@ def maxdisplayed(self): def maxdisplayed(self, val): self["maxdisplayed"] = val - # opacity - # ------- @property def opacity(self): """ @@ -872,8 +429,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # opacitysrc - # ---------- @property def opacitysrc(self): """ @@ -892,8 +447,6 @@ def opacitysrc(self): def opacitysrc(self, val): self["opacitysrc"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -915,8 +468,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # showscale - # --------- @property def showscale(self): """ @@ -937,8 +488,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # size - # ---- @property def size(self): """ @@ -958,8 +507,6 @@ def size(self): def size(self, val): self["size"] = val - # sizemin - # ------- @property def sizemin(self): """ @@ -980,8 +527,6 @@ def sizemin(self): def sizemin(self, val): self["sizemin"] = val - # sizemode - # -------- @property def sizemode(self): """ @@ -1003,8 +548,6 @@ def sizemode(self): def sizemode(self, val): self["sizemode"] = val - # sizeref - # ------- @property def sizeref(self): """ @@ -1025,8 +568,6 @@ def sizeref(self): def sizeref(self, val): self["sizeref"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -1045,8 +586,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # standoff - # -------- @property def standoff(self): """ @@ -1069,8 +608,6 @@ def standoff(self): def standoff(self, val): self["standoff"] = val - # standoffsrc - # ----------- @property def standoffsrc(self): """ @@ -1089,8 +626,6 @@ def standoffsrc(self): def standoffsrc(self, val): self["standoffsrc"] = val - # symbol - # ------ @property def symbol(self): """ @@ -1202,8 +737,6 @@ def symbol(self): def symbol(self, val): self["symbol"] = val - # symbolsrc - # --------- @property def symbolsrc(self): """ @@ -1222,8 +755,6 @@ def symbolsrc(self): def symbolsrc(self, val): self["symbolsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1547,14 +1078,11 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1569,134 +1097,37 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("angle", arg, angle) + self._set_property("angleref", arg, angleref) + self._set_property("anglesrc", arg, anglesrc) + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("color", arg, color) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("gradient", arg, gradient) + self._set_property("line", arg, line) + self._set_property("maxdisplayed", arg, maxdisplayed) + self._set_property("opacity", arg, opacity) + self._set_property("opacitysrc", arg, opacitysrc) + self._set_property("reversescale", arg, reversescale) + self._set_property("showscale", arg, showscale) + self._set_property("size", arg, size) + self._set_property("sizemin", arg, sizemin) + self._set_property("sizemode", arg, sizemode) + self._set_property("sizeref", arg, sizeref) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("standoff", arg, standoff) + self._set_property("standoffsrc", arg, standoffsrc) + self._set_property("symbol", arg, symbol) + self._set_property("symbolsrc", arg, symbolsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattersmith/_selected.py b/plotly/graph_objs/scattersmith/_selected.py index f556045466..7b1c3be58c 100644 --- a/plotly/graph_objs/scattersmith/_selected.py +++ b/plotly/graph_objs/scattersmith/_selected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Selected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattersmith" _path_str = "scattersmith.selected" _valid_props = {"marker", "textfont"} - # marker - # ------ @property def marker(self): """ @@ -21,15 +20,6 @@ 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 @@ -40,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # textfont - # -------- @property def textfont(self): """ @@ -51,11 +39,6 @@ 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 @@ -66,8 +49,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -100,14 +81,11 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") - + super().__init__("selected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -122,26 +100,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) + self._set_property("textfont", arg, textfont) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattersmith/_stream.py b/plotly/graph_objs/scattersmith/_stream.py index bbc9dd202c..136cc11b4f 100644 --- a/plotly/graph_objs/scattersmith/_stream.py +++ b/plotly/graph_objs/scattersmith/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattersmith" _path_str = "scattersmith.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -94,14 +89,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -116,26 +108,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattersmith/_textfont.py b/plotly/graph_objs/scattersmith/_textfont.py index 585ec66e3d..f54bfbbb93 100644 --- a/plotly/graph_objs/scattersmith/_textfont.py +++ b/plotly/graph_objs/scattersmith/_textfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattersmith" _path_str = "scattersmith.textfont" _valid_props = { @@ -29,8 +30,6 @@ class Textfont(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattersmith/_unselected.py b/plotly/graph_objs/scattersmith/_unselected.py index df78faca87..19b9763f86 100644 --- a/plotly/graph_objs/scattersmith/_unselected.py +++ b/plotly/graph_objs/scattersmith/_unselected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Unselected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattersmith" _path_str = "scattersmith.unselected" _valid_props = {"marker", "textfont"} - # marker - # ------ @property def marker(self): """ @@ -21,18 +20,6 @@ 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 @@ -43,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # textfont - # -------- @property def textfont(self): """ @@ -54,12 +39,6 @@ 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 @@ -70,8 +49,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -104,14 +81,11 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") - + super().__init__("unselected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -126,26 +100,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) + self._set_property("textfont", arg, textfont) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattersmith/hoverlabel/__init__.py b/plotly/graph_objs/scattersmith/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/scattersmith/hoverlabel/__init__.py +++ b/plotly/graph_objs/scattersmith/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scattersmith/hoverlabel/_font.py b/plotly/graph_objs/scattersmith/hoverlabel/_font.py index 2a71999436..ddae3273f6 100644 --- a/plotly/graph_objs/scattersmith/hoverlabel/_font.py +++ b/plotly/graph_objs/scattersmith/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattersmith.hoverlabel" _path_str = "scattersmith.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattersmith/legendgrouptitle/__init__.py b/plotly/graph_objs/scattersmith/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/scattersmith/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/scattersmith/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scattersmith/legendgrouptitle/_font.py b/plotly/graph_objs/scattersmith/legendgrouptitle/_font.py index 29bc39f98b..6f6777fea5 100644 --- a/plotly/graph_objs/scattersmith/legendgrouptitle/_font.py +++ b/plotly/graph_objs/scattersmith/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattersmith.legendgrouptitle" _path_str = "scattersmith.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattersmith/marker/__init__.py b/plotly/graph_objs/scattersmith/marker/__init__.py index f1897fb0aa..f9d889ecb9 100644 --- a/plotly/graph_objs/scattersmith/marker/__init__.py +++ b/plotly/graph_objs/scattersmith/marker/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._colorbar import ColorBar - from ._gradient import Gradient - from ._line import Line - from . import colorbar -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".colorbar"], - ["._colorbar.ColorBar", "._gradient.Gradient", "._line.Line"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".colorbar"], + ["._colorbar.ColorBar", "._gradient.Gradient", "._line.Line"], +) diff --git a/plotly/graph_objs/scattersmith/marker/_colorbar.py b/plotly/graph_objs/scattersmith/marker/_colorbar.py index 67c324202e..f1eb39dfcd 100644 --- a/plotly/graph_objs/scattersmith/marker/_colorbar.py +++ b/plotly/graph_objs/scattersmith/marker/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattersmith.marker" _path_str = "scattersmith.marker.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -913,8 +638,6 @@ 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 @@ -925,8 +648,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -949,8 +670,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -974,8 +693,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1000,8 +717,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1020,8 +735,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1047,8 +760,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1068,8 +779,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1091,8 +800,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1112,8 +819,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1134,8 +839,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1154,8 +857,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1175,8 +876,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1195,8 +894,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1215,8 +912,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1226,18 +921,6 @@ 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 @@ -1248,8 +931,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1274,8 +955,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1298,8 +977,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1318,8 +995,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1341,8 +1016,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1367,8 +1040,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1391,8 +1062,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1411,8 +1080,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1434,8 +1101,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1985,14 +1650,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2007,214 +1669,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattersmith/marker/_gradient.py b/plotly/graph_objs/scattersmith/marker/_gradient.py index e1e91ba222..743440f8be 100644 --- a/plotly/graph_objs/scattersmith/marker/_gradient.py +++ b/plotly/graph_objs/scattersmith/marker/_gradient.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Gradient(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattersmith.marker" _path_str = "scattersmith.marker.gradient" _valid_props = {"color", "colorsrc", "type", "typesrc"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -71,8 +35,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -91,8 +53,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # type - # ---- @property def type(self): """ @@ -113,8 +73,6 @@ def type(self): def type(self, val): self["type"] = val - # typesrc - # ------- @property def typesrc(self): """ @@ -133,8 +91,6 @@ def typesrc(self): def typesrc(self, val): self["typesrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -181,14 +137,11 @@ def __init__( ------- Gradient """ - super(Gradient, self).__init__("gradient") - + super().__init__("gradient") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -203,34 +156,12 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("type", arg, type) + self._set_property("typesrc", arg, typesrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattersmith/marker/_line.py b/plotly/graph_objs/scattersmith/marker/_line.py index 9ff74b103a..d4768f4f64 100644 --- a/plotly/graph_objs/scattersmith/marker/_line.py +++ b/plotly/graph_objs/scattersmith/marker/_line.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattersmith.marker" _path_str = "scattersmith.marker.line" _valid_props = { @@ -23,8 +24,6 @@ class Line(_BaseTraceHierarchyType): "widthsrc", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -49,8 +48,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -74,8 +71,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -97,8 +92,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -122,8 +115,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -145,8 +136,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # color - # ----- @property def color(self): """ @@ -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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to scattersmith.marker.line.colorscale - A list or array of any of the above @@ -210,8 +164,6 @@ def color(self): def color(self, val): self["color"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -237,8 +189,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -292,8 +242,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -312,8 +260,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -336,8 +282,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # width - # ----- @property def width(self): """ @@ -357,8 +301,6 @@ def width(self): def width(self, val): self["width"] = val - # widthsrc - # -------- @property def widthsrc(self): """ @@ -377,8 +319,6 @@ def widthsrc(self): def widthsrc(self, val): self["widthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -571,14 +511,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -593,66 +530,20 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("color", arg, color) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("reversescale", arg, reversescale) + self._set_property("width", arg, width) + self._set_property("widthsrc", arg, widthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattersmith/marker/colorbar/__init__.py b/plotly/graph_objs/scattersmith/marker/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/scattersmith/marker/colorbar/__init__.py +++ b/plotly/graph_objs/scattersmith/marker/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/scattersmith/marker/colorbar/_tickfont.py b/plotly/graph_objs/scattersmith/marker/colorbar/_tickfont.py index 9d22fc1a4e..2eaf5821da 100644 --- a/plotly/graph_objs/scattersmith/marker/colorbar/_tickfont.py +++ b/plotly/graph_objs/scattersmith/marker/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattersmith.marker.colorbar" _path_str = "scattersmith.marker.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattersmith/marker/colorbar/_tickformatstop.py b/plotly/graph_objs/scattersmith/marker/colorbar/_tickformatstop.py index 48b94ce5fd..945cc01085 100644 --- a/plotly/graph_objs/scattersmith/marker/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/scattersmith/marker/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattersmith.marker.colorbar" _path_str = "scattersmith.marker.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattersmith/marker/colorbar/_title.py b/plotly/graph_objs/scattersmith/marker/colorbar/_title.py index b6233e1f9f..e9f31d9550 100644 --- a/plotly/graph_objs/scattersmith/marker/colorbar/_title.py +++ b/plotly/graph_objs/scattersmith/marker/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattersmith.marker.colorbar" _path_str = "scattersmith.marker.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattersmith/marker/colorbar/title/__init__.py b/plotly/graph_objs/scattersmith/marker/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/scattersmith/marker/colorbar/title/__init__.py +++ b/plotly/graph_objs/scattersmith/marker/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scattersmith/marker/colorbar/title/_font.py b/plotly/graph_objs/scattersmith/marker/colorbar/title/_font.py index ae836aa723..338ecadf87 100644 --- a/plotly/graph_objs/scattersmith/marker/colorbar/title/_font.py +++ b/plotly/graph_objs/scattersmith/marker/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattersmith.marker.colorbar.title" _path_str = "scattersmith.marker.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattersmith/selected/__init__.py b/plotly/graph_objs/scattersmith/selected/__init__.py index ae964f0b65..473168fdb5 100644 --- a/plotly/graph_objs/scattersmith/selected/__init__.py +++ b/plotly/graph_objs/scattersmith/selected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.Marker", "._textfont.Textfont"] +) diff --git a/plotly/graph_objs/scattersmith/selected/_marker.py b/plotly/graph_objs/scattersmith/selected/_marker.py index 17f622a091..febb75df77 100644 --- a/plotly/graph_objs/scattersmith/selected/_marker.py +++ b/plotly/graph_objs/scattersmith/selected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattersmith.selected" _path_str = "scattersmith.selected.marker" _valid_props = {"color", "opacity", "size"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # opacity - # ------- @property def opacity(self): """ @@ -89,8 +51,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # size - # ---- @property def size(self): """ @@ -109,8 +69,6 @@ def size(self): def size(self, val): self["size"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -143,14 +101,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -165,30 +120,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("opacity", arg, opacity) + self._set_property("size", arg, size) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattersmith/selected/_textfont.py b/plotly/graph_objs/scattersmith/selected/_textfont.py index d6207f10d5..48315d84f7 100644 --- a/plotly/graph_objs/scattersmith/selected/_textfont.py +++ b/plotly/graph_objs/scattersmith/selected/_textfont.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattersmith.selected" _path_str = "scattersmith.selected.textfont" _valid_props = {"color"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -95,14 +57,11 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -117,22 +76,9 @@ def __init__(self, arg=None, color=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattersmith/unselected/__init__.py b/plotly/graph_objs/scattersmith/unselected/__init__.py index ae964f0b65..473168fdb5 100644 --- a/plotly/graph_objs/scattersmith/unselected/__init__.py +++ b/plotly/graph_objs/scattersmith/unselected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.Marker", "._textfont.Textfont"] +) diff --git a/plotly/graph_objs/scattersmith/unselected/_marker.py b/plotly/graph_objs/scattersmith/unselected/_marker.py index 3e20eea5db..a99cf9ce51 100644 --- a/plotly/graph_objs/scattersmith/unselected/_marker.py +++ b/plotly/graph_objs/scattersmith/unselected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattersmith.unselected" _path_str = "scattersmith.unselected.marker" _valid_props = {"color", "opacity", "size"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # opacity - # ------- @property def opacity(self): """ @@ -91,8 +53,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # size - # ---- @property def size(self): """ @@ -112,8 +72,6 @@ def size(self): def size(self, val): self["size"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -152,14 +110,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -174,30 +129,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("opacity", arg, opacity) + self._set_property("size", arg, size) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scattersmith/unselected/_textfont.py b/plotly/graph_objs/scattersmith/unselected/_textfont.py index f2fdfda870..54e37af91b 100644 --- a/plotly/graph_objs/scattersmith/unselected/_textfont.py +++ b/plotly/graph_objs/scattersmith/unselected/_textfont.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scattersmith.unselected" _path_str = "scattersmith.unselected.textfont" _valid_props = {"color"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -98,14 +60,11 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -120,22 +79,9 @@ def __init__(self, arg=None, color=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterternary/__init__.py b/plotly/graph_objs/scatterternary/__init__.py index 382e87019f..7cc31d4831 100644 --- a/plotly/graph_objs/scatterternary/__init__.py +++ b/plotly/graph_objs/scatterternary/__init__.py @@ -1,34 +1,17 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._hoverlabel import Hoverlabel - from ._legendgrouptitle import Legendgrouptitle - from ._line import Line - from ._marker import Marker - from ._selected import Selected - from ._stream import Stream - from ._textfont import Textfont - from ._unselected import Unselected - from . import hoverlabel - from . import legendgrouptitle - from . import marker - from . import selected - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/scatterternary/_hoverlabel.py b/plotly/graph_objs/scatterternary/_hoverlabel.py index 00ac960324..1ca409cd53 100644 --- a/plotly/graph_objs/scatterternary/_hoverlabel.py +++ b/plotly/graph_objs/scatterternary/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterternary" _path_str = "scatterternary.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterternary/_legendgrouptitle.py b/plotly/graph_objs/scatterternary/_legendgrouptitle.py index 71ceaf3c50..a182d17b4a 100644 --- a/plotly/graph_objs/scatterternary/_legendgrouptitle.py +++ b/plotly/graph_objs/scatterternary/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterternary" _path_str = "scatterternary.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterternary/_line.py b/plotly/graph_objs/scatterternary/_line.py index c64fe4eee6..e30288c7e6 100644 --- a/plotly/graph_objs/scatterternary/_line.py +++ b/plotly/graph_objs/scatterternary/_line.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterternary" _path_str = "scatterternary.line" _valid_props = { @@ -18,8 +19,6 @@ class Line(_BaseTraceHierarchyType): "width", } - # backoff - # ------- @property def backoff(self): """ @@ -42,8 +41,6 @@ def backoff(self): def backoff(self, val): self["backoff"] = val - # backoffsrc - # ---------- @property def backoffsrc(self): """ @@ -62,8 +59,6 @@ def backoffsrc(self): def backoffsrc(self, val): self["backoffsrc"] = val - # color - # ----- @property def color(self): """ @@ -74,42 +69,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -121,8 +81,6 @@ def color(self): def color(self, val): self["color"] = val - # dash - # ---- @property def dash(self): """ @@ -147,8 +105,6 @@ def dash(self): def dash(self, val): self["dash"] = val - # shape - # ----- @property def shape(self): """ @@ -170,8 +126,6 @@ def shape(self): def shape(self, val): self["shape"] = val - # smoothing - # --------- @property def smoothing(self): """ @@ -192,8 +146,6 @@ def smoothing(self): def smoothing(self, val): self["smoothing"] = val - # width - # ----- @property def width(self): """ @@ -212,8 +164,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -297,14 +247,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -319,46 +266,15 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("backoff", arg, backoff) + self._set_property("backoffsrc", arg, backoffsrc) + self._set_property("color", arg, color) + self._set_property("dash", arg, dash) + self._set_property("shape", arg, shape) + self._set_property("smoothing", arg, smoothing) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterternary/_marker.py b/plotly/graph_objs/scatterternary/_marker.py index a8f50cb512..36c44512b7 100644 --- a/plotly/graph_objs/scatterternary/_marker.py +++ b/plotly/graph_objs/scatterternary/_marker.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterternary" _path_str = "scatterternary.marker" _valid_props = { @@ -40,8 +41,6 @@ class Marker(_BaseTraceHierarchyType): "symbolsrc", } - # angle - # ----- @property def angle(self): """ @@ -62,8 +61,6 @@ def angle(self): def angle(self, val): self["angle"] = val - # angleref - # -------- @property def angleref(self): """ @@ -85,8 +82,6 @@ def angleref(self): def angleref(self, val): self["angleref"] = val - # anglesrc - # -------- @property def anglesrc(self): """ @@ -105,8 +100,6 @@ def anglesrc(self): def anglesrc(self, val): self["anglesrc"] = val - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -131,8 +124,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -156,8 +147,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -179,8 +168,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -203,8 +190,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -226,8 +211,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # color - # ----- @property def color(self): """ @@ -241,42 +224,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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to scatterternary.marker.colorscale - A list or array of any of the above @@ -291,8 +239,6 @@ def color(self): def color(self, val): self["color"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -318,8 +264,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -329,273 +273,6 @@ 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 @@ -606,8 +283,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -660,8 +335,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -680,8 +353,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # gradient - # -------- @property def gradient(self): """ @@ -691,22 +362,6 @@ 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 @@ -717,8 +372,6 @@ def gradient(self): def gradient(self, val): self["gradient"] = val - # line - # ---- @property def line(self): """ @@ -728,98 +381,6 @@ 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 @@ -830,8 +391,6 @@ def line(self): def line(self, val): self["line"] = val - # maxdisplayed - # ------------ @property def maxdisplayed(self): """ @@ -851,8 +410,6 @@ def maxdisplayed(self): def maxdisplayed(self, val): self["maxdisplayed"] = val - # opacity - # ------- @property def opacity(self): """ @@ -872,8 +429,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # opacitysrc - # ---------- @property def opacitysrc(self): """ @@ -892,8 +447,6 @@ def opacitysrc(self): def opacitysrc(self, val): self["opacitysrc"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -915,8 +468,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # showscale - # --------- @property def showscale(self): """ @@ -937,8 +488,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # size - # ---- @property def size(self): """ @@ -958,8 +507,6 @@ def size(self): def size(self, val): self["size"] = val - # sizemin - # ------- @property def sizemin(self): """ @@ -980,8 +527,6 @@ def sizemin(self): def sizemin(self, val): self["sizemin"] = val - # sizemode - # -------- @property def sizemode(self): """ @@ -1003,8 +548,6 @@ def sizemode(self): def sizemode(self, val): self["sizemode"] = val - # sizeref - # ------- @property def sizeref(self): """ @@ -1025,8 +568,6 @@ def sizeref(self): def sizeref(self, val): self["sizeref"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -1045,8 +586,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # standoff - # -------- @property def standoff(self): """ @@ -1069,8 +608,6 @@ def standoff(self): def standoff(self, val): self["standoff"] = val - # standoffsrc - # ----------- @property def standoffsrc(self): """ @@ -1089,8 +626,6 @@ def standoffsrc(self): def standoffsrc(self, val): self["standoffsrc"] = val - # symbol - # ------ @property def symbol(self): """ @@ -1202,8 +737,6 @@ def symbol(self): def symbol(self, val): self["symbol"] = val - # symbolsrc - # --------- @property def symbolsrc(self): """ @@ -1222,8 +755,6 @@ def symbolsrc(self): def symbolsrc(self, val): self["symbolsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1547,14 +1078,11 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1569,134 +1097,37 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("angle", arg, angle) + self._set_property("angleref", arg, angleref) + self._set_property("anglesrc", arg, anglesrc) + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("color", arg, color) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("gradient", arg, gradient) + self._set_property("line", arg, line) + self._set_property("maxdisplayed", arg, maxdisplayed) + self._set_property("opacity", arg, opacity) + self._set_property("opacitysrc", arg, opacitysrc) + self._set_property("reversescale", arg, reversescale) + self._set_property("showscale", arg, showscale) + self._set_property("size", arg, size) + self._set_property("sizemin", arg, sizemin) + self._set_property("sizemode", arg, sizemode) + self._set_property("sizeref", arg, sizeref) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("standoff", arg, standoff) + self._set_property("standoffsrc", arg, standoffsrc) + self._set_property("symbol", arg, symbol) + self._set_property("symbolsrc", arg, symbolsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterternary/_selected.py b/plotly/graph_objs/scatterternary/_selected.py index ea416db8aa..147708aa91 100644 --- a/plotly/graph_objs/scatterternary/_selected.py +++ b/plotly/graph_objs/scatterternary/_selected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Selected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterternary" _path_str = "scatterternary.selected" _valid_props = {"marker", "textfont"} - # marker - # ------ @property def marker(self): """ @@ -21,15 +20,6 @@ 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 @@ -40,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # textfont - # -------- @property def textfont(self): """ @@ -51,11 +39,6 @@ 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 @@ -66,8 +49,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -100,14 +81,11 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") - + super().__init__("selected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -122,26 +100,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) + self._set_property("textfont", arg, textfont) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterternary/_stream.py b/plotly/graph_objs/scatterternary/_stream.py index 6f12b626be..5f5cbf91d9 100644 --- a/plotly/graph_objs/scatterternary/_stream.py +++ b/plotly/graph_objs/scatterternary/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterternary" _path_str = "scatterternary.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -94,14 +89,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -116,26 +108,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterternary/_textfont.py b/plotly/graph_objs/scatterternary/_textfont.py index b4c9e896d5..cd649d7b21 100644 --- a/plotly/graph_objs/scatterternary/_textfont.py +++ b/plotly/graph_objs/scatterternary/_textfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterternary" _path_str = "scatterternary.textfont" _valid_props = { @@ -29,8 +30,6 @@ class Textfont(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterternary/_unselected.py b/plotly/graph_objs/scatterternary/_unselected.py index 5546e8c40b..4dd638293b 100644 --- a/plotly/graph_objs/scatterternary/_unselected.py +++ b/plotly/graph_objs/scatterternary/_unselected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Unselected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterternary" _path_str = "scatterternary.unselected" _valid_props = {"marker", "textfont"} - # marker - # ------ @property def marker(self): """ @@ -21,18 +20,6 @@ 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 @@ -43,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # textfont - # -------- @property def textfont(self): """ @@ -54,12 +39,6 @@ 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 @@ -70,8 +49,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -104,14 +81,11 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") - + super().__init__("unselected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -126,26 +100,10 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) + self._set_property("textfont", arg, textfont) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterternary/hoverlabel/__init__.py b/plotly/graph_objs/scatterternary/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/scatterternary/hoverlabel/__init__.py +++ b/plotly/graph_objs/scatterternary/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scatterternary/hoverlabel/_font.py b/plotly/graph_objs/scatterternary/hoverlabel/_font.py index 30b26aa4ba..ab3f2e3785 100644 --- a/plotly/graph_objs/scatterternary/hoverlabel/_font.py +++ b/plotly/graph_objs/scatterternary/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterternary.hoverlabel" _path_str = "scatterternary.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterternary/legendgrouptitle/__init__.py b/plotly/graph_objs/scatterternary/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/scatterternary/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/scatterternary/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scatterternary/legendgrouptitle/_font.py b/plotly/graph_objs/scatterternary/legendgrouptitle/_font.py index 6880a3857b..31910885fd 100644 --- a/plotly/graph_objs/scatterternary/legendgrouptitle/_font.py +++ b/plotly/graph_objs/scatterternary/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterternary.legendgrouptitle" _path_str = "scatterternary.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterternary/marker/__init__.py b/plotly/graph_objs/scatterternary/marker/__init__.py index f1897fb0aa..f9d889ecb9 100644 --- a/plotly/graph_objs/scatterternary/marker/__init__.py +++ b/plotly/graph_objs/scatterternary/marker/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._colorbar import ColorBar - from ._gradient import Gradient - from ._line import Line - from . import colorbar -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".colorbar"], - ["._colorbar.ColorBar", "._gradient.Gradient", "._line.Line"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".colorbar"], + ["._colorbar.ColorBar", "._gradient.Gradient", "._line.Line"], +) diff --git a/plotly/graph_objs/scatterternary/marker/_colorbar.py b/plotly/graph_objs/scatterternary/marker/_colorbar.py index f0a2344cf5..4247f9cb68 100644 --- a/plotly/graph_objs/scatterternary/marker/_colorbar.py +++ b/plotly/graph_objs/scatterternary/marker/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterternary.marker" _path_str = "scatterternary.marker.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -913,8 +638,6 @@ 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 @@ -925,8 +648,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -949,8 +670,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -974,8 +693,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1000,8 +717,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1020,8 +735,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1047,8 +760,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1068,8 +779,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1091,8 +800,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1112,8 +819,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1134,8 +839,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1154,8 +857,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1175,8 +876,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1195,8 +894,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1215,8 +912,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1226,18 +921,6 @@ 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 @@ -1248,8 +931,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1274,8 +955,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1298,8 +977,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1318,8 +995,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1341,8 +1016,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1367,8 +1040,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1391,8 +1062,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1411,8 +1080,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1434,8 +1101,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1985,14 +1650,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2007,214 +1669,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterternary/marker/_gradient.py b/plotly/graph_objs/scatterternary/marker/_gradient.py index b5face9cc4..682c74c8be 100644 --- a/plotly/graph_objs/scatterternary/marker/_gradient.py +++ b/plotly/graph_objs/scatterternary/marker/_gradient.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Gradient(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterternary.marker" _path_str = "scatterternary.marker.gradient" _valid_props = {"color", "colorsrc", "type", "typesrc"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -71,8 +35,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -91,8 +53,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # type - # ---- @property def type(self): """ @@ -113,8 +73,6 @@ def type(self): def type(self, val): self["type"] = val - # typesrc - # ------- @property def typesrc(self): """ @@ -133,8 +91,6 @@ def typesrc(self): def typesrc(self, val): self["typesrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -181,14 +137,11 @@ def __init__( ------- Gradient """ - super(Gradient, self).__init__("gradient") - + super().__init__("gradient") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -203,34 +156,12 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("type", arg, type) + self._set_property("typesrc", arg, typesrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterternary/marker/_line.py b/plotly/graph_objs/scatterternary/marker/_line.py index 28c73d58e8..ef7f7f142f 100644 --- a/plotly/graph_objs/scatterternary/marker/_line.py +++ b/plotly/graph_objs/scatterternary/marker/_line.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterternary.marker" _path_str = "scatterternary.marker.line" _valid_props = { @@ -23,8 +24,6 @@ class Line(_BaseTraceHierarchyType): "widthsrc", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -49,8 +48,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -74,8 +71,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -97,8 +92,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -122,8 +115,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -145,8 +136,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # color - # ----- @property def color(self): """ @@ -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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to scatterternary.marker.line.colorscale - A list or array of any of the above @@ -210,8 +164,6 @@ def color(self): def color(self, val): self["color"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -237,8 +189,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -292,8 +242,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -312,8 +260,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -336,8 +282,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # width - # ----- @property def width(self): """ @@ -357,8 +301,6 @@ def width(self): def width(self, val): self["width"] = val - # widthsrc - # -------- @property def widthsrc(self): """ @@ -377,8 +319,6 @@ def widthsrc(self): def widthsrc(self, val): self["widthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -571,14 +511,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -593,66 +530,20 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("color", arg, color) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("reversescale", arg, reversescale) + self._set_property("width", arg, width) + self._set_property("widthsrc", arg, widthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterternary/marker/colorbar/__init__.py b/plotly/graph_objs/scatterternary/marker/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/scatterternary/marker/colorbar/__init__.py +++ b/plotly/graph_objs/scatterternary/marker/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/scatterternary/marker/colorbar/_tickfont.py b/plotly/graph_objs/scatterternary/marker/colorbar/_tickfont.py index 5a07c4f172..a952933b0e 100644 --- a/plotly/graph_objs/scatterternary/marker/colorbar/_tickfont.py +++ b/plotly/graph_objs/scatterternary/marker/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterternary.marker.colorbar" _path_str = "scatterternary.marker.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterternary/marker/colorbar/_tickformatstop.py b/plotly/graph_objs/scatterternary/marker/colorbar/_tickformatstop.py index 20545634ca..d6ddeb6520 100644 --- a/plotly/graph_objs/scatterternary/marker/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/scatterternary/marker/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterternary.marker.colorbar" _path_str = "scatterternary.marker.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterternary/marker/colorbar/_title.py b/plotly/graph_objs/scatterternary/marker/colorbar/_title.py index 1dfe75b424..daab742af4 100644 --- a/plotly/graph_objs/scatterternary/marker/colorbar/_title.py +++ b/plotly/graph_objs/scatterternary/marker/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterternary.marker.colorbar" _path_str = "scatterternary.marker.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterternary/marker/colorbar/title/__init__.py b/plotly/graph_objs/scatterternary/marker/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/scatterternary/marker/colorbar/title/__init__.py +++ b/plotly/graph_objs/scatterternary/marker/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/scatterternary/marker/colorbar/title/_font.py b/plotly/graph_objs/scatterternary/marker/colorbar/title/_font.py index 3771ba64a7..a8d324c88c 100644 --- a/plotly/graph_objs/scatterternary/marker/colorbar/title/_font.py +++ b/plotly/graph_objs/scatterternary/marker/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterternary.marker.colorbar.title" _path_str = "scatterternary.marker.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterternary/selected/__init__.py b/plotly/graph_objs/scatterternary/selected/__init__.py index ae964f0b65..473168fdb5 100644 --- a/plotly/graph_objs/scatterternary/selected/__init__.py +++ b/plotly/graph_objs/scatterternary/selected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.Marker", "._textfont.Textfont"] +) diff --git a/plotly/graph_objs/scatterternary/selected/_marker.py b/plotly/graph_objs/scatterternary/selected/_marker.py index 26bb1a9435..1a2a51a055 100644 --- a/plotly/graph_objs/scatterternary/selected/_marker.py +++ b/plotly/graph_objs/scatterternary/selected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterternary.selected" _path_str = "scatterternary.selected.marker" _valid_props = {"color", "opacity", "size"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # opacity - # ------- @property def opacity(self): """ @@ -89,8 +51,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # size - # ---- @property def size(self): """ @@ -109,8 +69,6 @@ def size(self): def size(self, val): self["size"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -143,14 +101,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -165,30 +120,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("opacity", arg, opacity) + self._set_property("size", arg, size) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterternary/selected/_textfont.py b/plotly/graph_objs/scatterternary/selected/_textfont.py index afb97493eb..003990d3a3 100644 --- a/plotly/graph_objs/scatterternary/selected/_textfont.py +++ b/plotly/graph_objs/scatterternary/selected/_textfont.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterternary.selected" _path_str = "scatterternary.selected.textfont" _valid_props = {"color"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -95,14 +57,11 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -117,22 +76,9 @@ def __init__(self, arg=None, color=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterternary/unselected/__init__.py b/plotly/graph_objs/scatterternary/unselected/__init__.py index ae964f0b65..473168fdb5 100644 --- a/plotly/graph_objs/scatterternary/unselected/__init__.py +++ b/plotly/graph_objs/scatterternary/unselected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.Marker", "._textfont.Textfont"] +) diff --git a/plotly/graph_objs/scatterternary/unselected/_marker.py b/plotly/graph_objs/scatterternary/unselected/_marker.py index bef9394b20..8a6f27fae3 100644 --- a/plotly/graph_objs/scatterternary/unselected/_marker.py +++ b/plotly/graph_objs/scatterternary/unselected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterternary.unselected" _path_str = "scatterternary.unselected.marker" _valid_props = {"color", "opacity", "size"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # opacity - # ------- @property def opacity(self): """ @@ -91,8 +53,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # size - # ---- @property def size(self): """ @@ -112,8 +72,6 @@ def size(self): def size(self, val): self["size"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -152,14 +110,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -174,30 +129,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("opacity", arg, opacity) + self._set_property("size", arg, size) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/scatterternary/unselected/_textfont.py b/plotly/graph_objs/scatterternary/unselected/_textfont.py index 1c452ced1d..7be7d70194 100644 --- a/plotly/graph_objs/scatterternary/unselected/_textfont.py +++ b/plotly/graph_objs/scatterternary/unselected/_textfont.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "scatterternary.unselected" _path_str = "scatterternary.unselected.textfont" _valid_props = {"color"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -98,14 +60,11 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -120,22 +79,9 @@ def __init__(self, arg=None, color=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/splom/__init__.py b/plotly/graph_objs/splom/__init__.py index fc09843582..a047d25012 100644 --- a/plotly/graph_objs/splom/__init__.py +++ b/plotly/graph_objs/splom/__init__.py @@ -1,42 +1,24 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._diagonal import Diagonal - from ._dimension import Dimension - from ._hoverlabel import Hoverlabel - from ._legendgrouptitle import Legendgrouptitle - from ._marker import Marker - from ._selected import Selected - from ._stream import Stream - from ._unselected import Unselected - from . import dimension - from . import hoverlabel - from . import legendgrouptitle - from . import marker - from . import selected - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/splom/_diagonal.py b/plotly/graph_objs/splom/_diagonal.py index fbfdc261a5..600f86425c 100644 --- a/plotly/graph_objs/splom/_diagonal.py +++ b/plotly/graph_objs/splom/_diagonal.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Diagonal(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "splom" _path_str = "splom.diagonal" _valid_props = {"visible"} - # visible - # ------- @property def visible(self): """ @@ -31,8 +30,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -59,14 +56,11 @@ def __init__(self, arg=None, visible=None, **kwargs): ------- Diagonal """ - super(Diagonal, self).__init__("diagonal") - + super().__init__("diagonal") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -81,22 +75,9 @@ def __init__(self, arg=None, visible=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("visible", arg, visible) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/splom/_dimension.py b/plotly/graph_objs/splom/_dimension.py index c9a7ffe266..39dec77cb2 100644 --- a/plotly/graph_objs/splom/_dimension.py +++ b/plotly/graph_objs/splom/_dimension.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Dimension(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "splom" _path_str = "splom.dimension" _valid_props = { @@ -18,8 +19,6 @@ class Dimension(_BaseTraceHierarchyType): "visible", } - # axis - # ---- @property def axis(self): """ @@ -29,19 +28,6 @@ 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 @@ -52,8 +38,6 @@ def axis(self): def axis(self, val): self["axis"] = val - # label - # ----- @property def label(self): """ @@ -73,8 +57,6 @@ def label(self): def label(self, val): self["label"] = val - # name - # ---- @property def name(self): """ @@ -100,8 +82,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -128,8 +108,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # values - # ------ @property def values(self): """ @@ -148,8 +126,6 @@ def values(self): def values(self, val): self["values"] = val - # valuessrc - # --------- @property def valuessrc(self): """ @@ -168,8 +144,6 @@ def valuessrc(self): def valuessrc(self, val): self["valuessrc"] = val - # visible - # ------- @property def visible(self): """ @@ -190,8 +164,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -291,14 +263,11 @@ def __init__( ------- Dimension """ - super(Dimension, self).__init__("dimensions") - + super().__init__("dimensions") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -313,46 +282,15 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("axis", arg, axis) + self._set_property("label", arg, label) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("values", arg, values) + self._set_property("valuessrc", arg, valuessrc) + self._set_property("visible", arg, visible) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/splom/_hoverlabel.py b/plotly/graph_objs/splom/_hoverlabel.py index 6730d8e3b2..f83990593f 100644 --- a/plotly/graph_objs/splom/_hoverlabel.py +++ b/plotly/graph_objs/splom/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "splom" _path_str = "splom.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/splom/_legendgrouptitle.py b/plotly/graph_objs/splom/_legendgrouptitle.py index ba249acc8c..26a4292b90 100644 --- a/plotly/graph_objs/splom/_legendgrouptitle.py +++ b/plotly/graph_objs/splom/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "splom" _path_str = "splom.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/splom/_marker.py b/plotly/graph_objs/splom/_marker.py index 741c7de383..adae0b7c8c 100644 --- a/plotly/graph_objs/splom/_marker.py +++ b/plotly/graph_objs/splom/_marker.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "splom" _path_str = "splom.marker" _valid_props = { @@ -35,8 +36,6 @@ class Marker(_BaseTraceHierarchyType): "symbolsrc", } - # angle - # ----- @property def angle(self): """ @@ -57,8 +56,6 @@ def angle(self): def angle(self, val): self["angle"] = val - # anglesrc - # -------- @property def anglesrc(self): """ @@ -77,8 +74,6 @@ def anglesrc(self): def anglesrc(self, val): self["anglesrc"] = val - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -103,8 +98,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -128,8 +121,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -151,8 +142,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -175,8 +164,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -198,8 +185,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # color - # ----- @property def color(self): """ @@ -213,42 +198,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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to splom.marker.colorscale - A list or array of any of the above @@ -263,8 +213,6 @@ def color(self): def color(self, val): self["color"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -290,8 +238,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -301,273 +247,6 @@ 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 @@ -578,8 +257,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -632,8 +309,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -652,8 +327,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # line - # ---- @property def line(self): """ @@ -663,98 +336,6 @@ 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 @@ -765,8 +346,6 @@ def line(self): def line(self, val): self["line"] = val - # opacity - # ------- @property def opacity(self): """ @@ -786,8 +365,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # opacitysrc - # ---------- @property def opacitysrc(self): """ @@ -806,8 +383,6 @@ def opacitysrc(self): def opacitysrc(self, val): self["opacitysrc"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -829,8 +404,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # showscale - # --------- @property def showscale(self): """ @@ -851,8 +424,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # size - # ---- @property def size(self): """ @@ -872,8 +443,6 @@ def size(self): def size(self, val): self["size"] = val - # sizemin - # ------- @property def sizemin(self): """ @@ -894,8 +463,6 @@ def sizemin(self): def sizemin(self, val): self["sizemin"] = val - # sizemode - # -------- @property def sizemode(self): """ @@ -917,8 +484,6 @@ def sizemode(self): def sizemode(self, val): self["sizemode"] = val - # sizeref - # ------- @property def sizeref(self): """ @@ -939,8 +504,6 @@ def sizeref(self): def sizeref(self, val): self["sizeref"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -959,8 +522,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # symbol - # ------ @property def symbol(self): """ @@ -1072,8 +633,6 @@ def symbol(self): def symbol(self, val): self["symbol"] = val - # symbolsrc - # --------- @property def symbolsrc(self): """ @@ -1092,8 +651,6 @@ def symbolsrc(self): def symbolsrc(self, val): self["symbolsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1373,14 +930,11 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1395,114 +949,32 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("angle", arg, angle) + self._set_property("anglesrc", arg, anglesrc) + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("color", arg, color) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("line", arg, line) + self._set_property("opacity", arg, opacity) + self._set_property("opacitysrc", arg, opacitysrc) + self._set_property("reversescale", arg, reversescale) + self._set_property("showscale", arg, showscale) + self._set_property("size", arg, size) + self._set_property("sizemin", arg, sizemin) + self._set_property("sizemode", arg, sizemode) + self._set_property("sizeref", arg, sizeref) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("symbol", arg, symbol) + self._set_property("symbolsrc", arg, symbolsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/splom/_selected.py b/plotly/graph_objs/splom/_selected.py index 391699e3e3..9868586d07 100644 --- a/plotly/graph_objs/splom/_selected.py +++ b/plotly/graph_objs/splom/_selected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Selected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "splom" _path_str = "splom.selected" _valid_props = {"marker"} - # marker - # ------ @property def marker(self): """ @@ -21,15 +20,6 @@ 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 @@ -40,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -68,14 +56,11 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") - + super().__init__("selected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -90,22 +75,9 @@ def __init__(self, arg=None, marker=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/splom/_stream.py b/plotly/graph_objs/splom/_stream.py index c97ab999fe..d9971fca56 100644 --- a/plotly/graph_objs/splom/_stream.py +++ b/plotly/graph_objs/splom/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "splom" _path_str = "splom.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -93,14 +88,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -115,26 +107,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/splom/_unselected.py b/plotly/graph_objs/splom/_unselected.py index 70ba03e6c2..35d06a5ae0 100644 --- a/plotly/graph_objs/splom/_unselected.py +++ b/plotly/graph_objs/splom/_unselected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Unselected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "splom" _path_str = "splom.unselected" _valid_props = {"marker"} - # marker - # ------ @property def marker(self): """ @@ -21,18 +20,6 @@ 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 @@ -43,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -71,14 +56,11 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") - + super().__init__("unselected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -93,22 +75,9 @@ def __init__(self, arg=None, marker=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/splom/dimension/__init__.py b/plotly/graph_objs/splom/dimension/__init__.py index fa2cdec08b..3f149bf98a 100644 --- a/plotly/graph_objs/splom/dimension/__init__.py +++ b/plotly/graph_objs/splom/dimension/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/splom/dimension/_axis.py b/plotly/graph_objs/splom/dimension/_axis.py index 9d82b980af..4775f13795 100644 --- a/plotly/graph_objs/splom/dimension/_axis.py +++ b/plotly/graph_objs/splom/dimension/_axis.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Axis(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "splom.dimension" _path_str = "splom.dimension.axis" _valid_props = {"matches", "type"} - # matches - # ------- @property def matches(self): """ @@ -32,8 +31,6 @@ def matches(self): def matches(self, val): self["matches"] = val - # type - # ---- @property def type(self): """ @@ -55,8 +52,6 @@ def type(self): def type(self, val): self["type"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -95,14 +90,11 @@ def __init__(self, arg=None, matches=None, type=None, **kwargs): ------- Axis """ - super(Axis, self).__init__("axis") - + super().__init__("axis") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -117,26 +109,10 @@ def __init__(self, arg=None, matches=None, type=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("matches", arg, matches) + self._set_property("type", arg, type) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/splom/hoverlabel/__init__.py b/plotly/graph_objs/splom/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/splom/hoverlabel/__init__.py +++ b/plotly/graph_objs/splom/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/splom/hoverlabel/_font.py b/plotly/graph_objs/splom/hoverlabel/_font.py index 32c53ae9b3..5a6be73053 100644 --- a/plotly/graph_objs/splom/hoverlabel/_font.py +++ b/plotly/graph_objs/splom/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "splom.hoverlabel" _path_str = "splom.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/splom/legendgrouptitle/__init__.py b/plotly/graph_objs/splom/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/splom/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/splom/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/splom/legendgrouptitle/_font.py b/plotly/graph_objs/splom/legendgrouptitle/_font.py index 42cdd4ebc5..fa6ac0c9d6 100644 --- a/plotly/graph_objs/splom/legendgrouptitle/_font.py +++ b/plotly/graph_objs/splom/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "splom.legendgrouptitle" _path_str = "splom.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/splom/marker/__init__.py b/plotly/graph_objs/splom/marker/__init__.py index 8481520e3c..ff536ec8b2 100644 --- a/plotly/graph_objs/splom/marker/__init__.py +++ b/plotly/graph_objs/splom/marker/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [".colorbar"], ["._colorbar.ColorBar", "._line.Line"] +) diff --git a/plotly/graph_objs/splom/marker/_colorbar.py b/plotly/graph_objs/splom/marker/_colorbar.py index ecef7af8e6..609cc0f679 100644 --- a/plotly/graph_objs/splom/marker/_colorbar.py +++ b/plotly/graph_objs/splom/marker/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "splom.marker" _path_str = "splom.marker.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -913,8 +638,6 @@ 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 @@ -925,8 +648,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -949,8 +670,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -974,8 +693,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1000,8 +717,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1020,8 +735,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1047,8 +760,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1068,8 +779,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1091,8 +800,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1112,8 +819,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1134,8 +839,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1154,8 +857,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1175,8 +876,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1195,8 +894,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1215,8 +912,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1226,18 +921,6 @@ 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 @@ -1248,8 +931,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1274,8 +955,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1298,8 +977,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1318,8 +995,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1341,8 +1016,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1367,8 +1040,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1391,8 +1062,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1411,8 +1080,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1434,8 +1101,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1985,14 +1650,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2007,214 +1669,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/splom/marker/_line.py b/plotly/graph_objs/splom/marker/_line.py index a6263ebb07..249a2df811 100644 --- a/plotly/graph_objs/splom/marker/_line.py +++ b/plotly/graph_objs/splom/marker/_line.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "splom.marker" _path_str = "splom.marker.line" _valid_props = { @@ -23,8 +24,6 @@ class Line(_BaseTraceHierarchyType): "widthsrc", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -49,8 +48,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -74,8 +71,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -97,8 +92,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -122,8 +115,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -145,8 +136,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # color - # ----- @property def color(self): """ @@ -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: see https://plotly.com/python/css-colors/ for a list - A number that will be interpreted as a color according to splom.marker.line.colorscale - A list or array of any of the above @@ -210,8 +164,6 @@ def color(self): def color(self, val): self["color"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -237,8 +189,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -292,8 +242,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -312,8 +260,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -336,8 +282,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # width - # ----- @property def width(self): """ @@ -357,8 +301,6 @@ def width(self): def width(self, val): self["width"] = val - # widthsrc - # -------- @property def widthsrc(self): """ @@ -377,8 +319,6 @@ def widthsrc(self): def widthsrc(self, val): self["widthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -571,14 +511,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -593,66 +530,20 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("color", arg, color) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("reversescale", arg, reversescale) + self._set_property("width", arg, width) + self._set_property("widthsrc", arg, widthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/splom/marker/colorbar/__init__.py b/plotly/graph_objs/splom/marker/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/splom/marker/colorbar/__init__.py +++ b/plotly/graph_objs/splom/marker/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/splom/marker/colorbar/_tickfont.py b/plotly/graph_objs/splom/marker/colorbar/_tickfont.py index f2de99543b..ad1f7ca7b8 100644 --- a/plotly/graph_objs/splom/marker/colorbar/_tickfont.py +++ b/plotly/graph_objs/splom/marker/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "splom.marker.colorbar" _path_str = "splom.marker.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/splom/marker/colorbar/_tickformatstop.py b/plotly/graph_objs/splom/marker/colorbar/_tickformatstop.py index 7cd0145ad2..579d593049 100644 --- a/plotly/graph_objs/splom/marker/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/splom/marker/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "splom.marker.colorbar" _path_str = "splom.marker.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/splom/marker/colorbar/_title.py b/plotly/graph_objs/splom/marker/colorbar/_title.py index 4d797f7876..790d583255 100644 --- a/plotly/graph_objs/splom/marker/colorbar/_title.py +++ b/plotly/graph_objs/splom/marker/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "splom.marker.colorbar" _path_str = "splom.marker.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/splom/marker/colorbar/title/__init__.py b/plotly/graph_objs/splom/marker/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/splom/marker/colorbar/title/__init__.py +++ b/plotly/graph_objs/splom/marker/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/splom/marker/colorbar/title/_font.py b/plotly/graph_objs/splom/marker/colorbar/title/_font.py index c1c9028036..4fbef898cb 100644 --- a/plotly/graph_objs/splom/marker/colorbar/title/_font.py +++ b/plotly/graph_objs/splom/marker/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "splom.marker.colorbar.title" _path_str = "splom.marker.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/splom/selected/__init__.py b/plotly/graph_objs/splom/selected/__init__.py index dfd3406713..17b6d670bc 100644 --- a/plotly/graph_objs/splom/selected/__init__.py +++ b/plotly/graph_objs/splom/selected/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/splom/selected/_marker.py b/plotly/graph_objs/splom/selected/_marker.py index 0d8d5e39b4..6439c1cd31 100644 --- a/plotly/graph_objs/splom/selected/_marker.py +++ b/plotly/graph_objs/splom/selected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "splom.selected" _path_str = "splom.selected.marker" _valid_props = {"color", "opacity", "size"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # opacity - # ------- @property def opacity(self): """ @@ -89,8 +51,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # size - # ---- @property def size(self): """ @@ -109,8 +69,6 @@ def size(self): def size(self, val): self["size"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -143,14 +101,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -165,30 +120,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("opacity", arg, opacity) + self._set_property("size", arg, size) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/splom/unselected/__init__.py b/plotly/graph_objs/splom/unselected/__init__.py index dfd3406713..17b6d670bc 100644 --- a/plotly/graph_objs/splom/unselected/__init__.py +++ b/plotly/graph_objs/splom/unselected/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/splom/unselected/_marker.py b/plotly/graph_objs/splom/unselected/_marker.py index b86833b9c0..70aba13d3a 100644 --- a/plotly/graph_objs/splom/unselected/_marker.py +++ b/plotly/graph_objs/splom/unselected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "splom.unselected" _path_str = "splom.unselected.marker" _valid_props = {"color", "opacity", "size"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # opacity - # ------- @property def opacity(self): """ @@ -91,8 +53,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # size - # ---- @property def size(self): """ @@ -112,8 +72,6 @@ def size(self): def size(self, val): self["size"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -152,14 +110,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -174,30 +129,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("opacity", arg, opacity) + self._set_property("size", arg, size) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/streamtube/__init__.py b/plotly/graph_objs/streamtube/__init__.py index 09773e9fa9..76d3753932 100644 --- a/plotly/graph_objs/streamtube/__init__.py +++ b/plotly/graph_objs/streamtube/__init__.py @@ -1,30 +1,16 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._colorbar import ColorBar - from ._hoverlabel import Hoverlabel - from ._legendgrouptitle import Legendgrouptitle - from ._lighting import Lighting - from ._lightposition import Lightposition - from ._starts import Starts - from ._stream import Stream - from . import colorbar - from . import hoverlabel - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".colorbar", ".hoverlabel", ".legendgrouptitle"], + [ + "._colorbar.ColorBar", + "._hoverlabel.Hoverlabel", + "._legendgrouptitle.Legendgrouptitle", + "._lighting.Lighting", + "._lightposition.Lightposition", + "._starts.Starts", + "._stream.Stream", + ], +) diff --git a/plotly/graph_objs/streamtube/_colorbar.py b/plotly/graph_objs/streamtube/_colorbar.py index 86e15098f2..8ecb602304 100644 --- a/plotly/graph_objs/streamtube/_colorbar.py +++ b/plotly/graph_objs/streamtube/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "streamtube" _path_str = "streamtube.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -912,8 +637,6 @@ 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 @@ -924,8 +647,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -948,8 +669,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -973,8 +692,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -999,8 +716,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1019,8 +734,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1046,8 +759,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1067,8 +778,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1090,8 +799,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1111,8 +818,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1133,8 +838,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1153,8 +856,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1174,8 +875,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1194,8 +893,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1214,8 +911,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1225,18 +920,6 @@ 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 @@ -1247,8 +930,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1273,8 +954,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1297,8 +976,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1317,8 +994,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1340,8 +1015,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1366,8 +1039,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1390,8 +1061,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1410,8 +1079,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1433,8 +1100,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1984,14 +1649,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2006,214 +1668,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/streamtube/_hoverlabel.py b/plotly/graph_objs/streamtube/_hoverlabel.py index 8b643599ea..1bc5c771e2 100644 --- a/plotly/graph_objs/streamtube/_hoverlabel.py +++ b/plotly/graph_objs/streamtube/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "streamtube" _path_str = "streamtube.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/streamtube/_legendgrouptitle.py b/plotly/graph_objs/streamtube/_legendgrouptitle.py index f8e894a8ae..395dd34e23 100644 --- a/plotly/graph_objs/streamtube/_legendgrouptitle.py +++ b/plotly/graph_objs/streamtube/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "streamtube" _path_str = "streamtube.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/streamtube/_lighting.py b/plotly/graph_objs/streamtube/_lighting.py index c109365928..f4b2863761 100644 --- a/plotly/graph_objs/streamtube/_lighting.py +++ b/plotly/graph_objs/streamtube/_lighting.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Lighting(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "streamtube" _path_str = "streamtube.lighting" _valid_props = { @@ -18,8 +19,6 @@ class Lighting(_BaseTraceHierarchyType): "vertexnormalsepsilon", } - # ambient - # ------- @property def ambient(self): """ @@ -39,8 +38,6 @@ def ambient(self): def ambient(self, val): self["ambient"] = val - # diffuse - # ------- @property def diffuse(self): """ @@ -60,8 +57,6 @@ def diffuse(self): def diffuse(self, val): self["diffuse"] = val - # facenormalsepsilon - # ------------------ @property def facenormalsepsilon(self): """ @@ -81,8 +76,6 @@ def facenormalsepsilon(self): def facenormalsepsilon(self, val): self["facenormalsepsilon"] = val - # fresnel - # ------- @property def fresnel(self): """ @@ -103,8 +96,6 @@ def fresnel(self): def fresnel(self, val): self["fresnel"] = val - # roughness - # --------- @property def roughness(self): """ @@ -124,8 +115,6 @@ def roughness(self): def roughness(self, val): self["roughness"] = val - # specular - # -------- @property def specular(self): """ @@ -145,8 +134,6 @@ def specular(self): def specular(self, val): self["specular"] = val - # vertexnormalsepsilon - # -------------------- @property def vertexnormalsepsilon(self): """ @@ -166,8 +153,6 @@ def vertexnormalsepsilon(self): def vertexnormalsepsilon(self, val): self["vertexnormalsepsilon"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -245,14 +230,11 @@ def __init__( ------- Lighting """ - super(Lighting, self).__init__("lighting") - + super().__init__("lighting") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -267,46 +249,15 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("ambient", arg, ambient) + self._set_property("diffuse", arg, diffuse) + self._set_property("facenormalsepsilon", arg, facenormalsepsilon) + self._set_property("fresnel", arg, fresnel) + self._set_property("roughness", arg, roughness) + self._set_property("specular", arg, specular) + self._set_property("vertexnormalsepsilon", arg, vertexnormalsepsilon) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/streamtube/_lightposition.py b/plotly/graph_objs/streamtube/_lightposition.py index d42b300a24..1f4d43aaf0 100644 --- a/plotly/graph_objs/streamtube/_lightposition.py +++ b/plotly/graph_objs/streamtube/_lightposition.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Lightposition(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "streamtube" _path_str = "streamtube.lightposition" _valid_props = {"x", "y", "z"} - # x - # - @property def x(self): """ @@ -30,8 +29,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -50,8 +47,6 @@ def y(self): def y(self, val): self["y"] = val - # z - # - @property def z(self): """ @@ -70,8 +65,6 @@ def z(self): def z(self, val): self["z"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -110,14 +103,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Lightposition """ - super(Lightposition, self).__init__("lightposition") - + super().__init__("lightposition") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -132,30 +122,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("x", arg, x) + self._set_property("y", arg, y) + self._set_property("z", arg, z) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/streamtube/_starts.py b/plotly/graph_objs/streamtube/_starts.py index 8eaeb8062c..22d4e3d95b 100644 --- a/plotly/graph_objs/streamtube/_starts.py +++ b/plotly/graph_objs/streamtube/_starts.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Starts(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "streamtube" _path_str = "streamtube.starts" _valid_props = {"x", "xsrc", "y", "ysrc", "z", "zsrc"} - # x - # - @property def x(self): """ @@ -31,8 +30,6 @@ def x(self): def x(self, val): self["x"] = val - # xsrc - # ---- @property def xsrc(self): """ @@ -51,8 +48,6 @@ def xsrc(self): def xsrc(self, val): self["xsrc"] = val - # y - # - @property def y(self): """ @@ -72,8 +67,6 @@ def y(self): def y(self, val): self["y"] = val - # ysrc - # ---- @property def ysrc(self): """ @@ -92,8 +85,6 @@ def ysrc(self): def ysrc(self, val): self["ysrc"] = val - # z - # - @property def z(self): """ @@ -113,8 +104,6 @@ def z(self): def z(self, val): self["z"] = val - # zsrc - # ---- @property def zsrc(self): """ @@ -133,8 +122,6 @@ def zsrc(self): def zsrc(self, val): self["zsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -201,14 +188,11 @@ def __init__( ------- Starts """ - super(Starts, self).__init__("starts") - + super().__init__("starts") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -223,42 +207,14 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("x", arg, x) + self._set_property("xsrc", arg, xsrc) + self._set_property("y", arg, y) + self._set_property("ysrc", arg, ysrc) + self._set_property("z", arg, z) + self._set_property("zsrc", arg, zsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/streamtube/_stream.py b/plotly/graph_objs/streamtube/_stream.py index c9eaaf8e93..28763c9894 100644 --- a/plotly/graph_objs/streamtube/_stream.py +++ b/plotly/graph_objs/streamtube/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "streamtube" _path_str = "streamtube.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -94,14 +89,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -116,26 +108,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/streamtube/colorbar/__init__.py b/plotly/graph_objs/streamtube/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/streamtube/colorbar/__init__.py +++ b/plotly/graph_objs/streamtube/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/streamtube/colorbar/_tickfont.py b/plotly/graph_objs/streamtube/colorbar/_tickfont.py index 0f597fb9c9..ddf75b3020 100644 --- a/plotly/graph_objs/streamtube/colorbar/_tickfont.py +++ b/plotly/graph_objs/streamtube/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "streamtube.colorbar" _path_str = "streamtube.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/streamtube/colorbar/_tickformatstop.py b/plotly/graph_objs/streamtube/colorbar/_tickformatstop.py index 25a8b253f1..9d709b16a3 100644 --- a/plotly/graph_objs/streamtube/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/streamtube/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "streamtube.colorbar" _path_str = "streamtube.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/streamtube/colorbar/_title.py b/plotly/graph_objs/streamtube/colorbar/_title.py index 6c24e5e24d..87386c9c36 100644 --- a/plotly/graph_objs/streamtube/colorbar/_title.py +++ b/plotly/graph_objs/streamtube/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "streamtube.colorbar" _path_str = "streamtube.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/streamtube/colorbar/title/__init__.py b/plotly/graph_objs/streamtube/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/streamtube/colorbar/title/__init__.py +++ b/plotly/graph_objs/streamtube/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/streamtube/colorbar/title/_font.py b/plotly/graph_objs/streamtube/colorbar/title/_font.py index 8c95f54bac..e627388168 100644 --- a/plotly/graph_objs/streamtube/colorbar/title/_font.py +++ b/plotly/graph_objs/streamtube/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "streamtube.colorbar.title" _path_str = "streamtube.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/streamtube/hoverlabel/__init__.py b/plotly/graph_objs/streamtube/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/streamtube/hoverlabel/__init__.py +++ b/plotly/graph_objs/streamtube/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/streamtube/hoverlabel/_font.py b/plotly/graph_objs/streamtube/hoverlabel/_font.py index 3d4540b1d1..7c247ae68a 100644 --- a/plotly/graph_objs/streamtube/hoverlabel/_font.py +++ b/plotly/graph_objs/streamtube/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "streamtube.hoverlabel" _path_str = "streamtube.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/streamtube/legendgrouptitle/__init__.py b/plotly/graph_objs/streamtube/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/streamtube/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/streamtube/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/streamtube/legendgrouptitle/_font.py b/plotly/graph_objs/streamtube/legendgrouptitle/_font.py index fd884b5556..230b8962ff 100644 --- a/plotly/graph_objs/streamtube/legendgrouptitle/_font.py +++ b/plotly/graph_objs/streamtube/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "streamtube.legendgrouptitle" _path_str = "streamtube.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/sunburst/__init__.py b/plotly/graph_objs/sunburst/__init__.py index 07004d8c8a..d32b10600f 100644 --- a/plotly/graph_objs/sunburst/__init__.py +++ b/plotly/graph_objs/sunburst/__init__.py @@ -1,36 +1,19 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._domain import Domain - from ._hoverlabel import Hoverlabel - from ._insidetextfont import Insidetextfont - from ._leaf import Leaf - from ._legendgrouptitle import Legendgrouptitle - from ._marker import Marker - from ._outsidetextfont import Outsidetextfont - from ._root import Root - from ._stream import Stream - from ._textfont import Textfont - from . import hoverlabel - from . import legendgrouptitle - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/sunburst/_domain.py b/plotly/graph_objs/sunburst/_domain.py index 31cf6f6bad..9c2abb3ea8 100644 --- a/plotly/graph_objs/sunburst/_domain.py +++ b/plotly/graph_objs/sunburst/_domain.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Domain(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "sunburst" _path_str = "sunburst.domain" _valid_props = {"column", "row", "x", "y"} - # column - # ------ @property def column(self): """ @@ -32,8 +31,6 @@ def column(self): def column(self, val): self["column"] = val - # row - # --- @property def row(self): """ @@ -54,8 +51,6 @@ def row(self): def row(self, val): self["row"] = val - # x - # - @property def x(self): """ @@ -80,8 +75,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -106,8 +99,6 @@ def y(self): def y(self, val): self["y"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -152,14 +143,11 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") - + super().__init__("domain") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -174,34 +162,12 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("column", arg, column) + self._set_property("row", arg, row) + self._set_property("x", arg, x) + self._set_property("y", arg, y) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/sunburst/_hoverlabel.py b/plotly/graph_objs/sunburst/_hoverlabel.py index 1cd3581b97..a3ac8cd836 100644 --- a/plotly/graph_objs/sunburst/_hoverlabel.py +++ b/plotly/graph_objs/sunburst/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "sunburst" _path_str = "sunburst.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/sunburst/_insidetextfont.py b/plotly/graph_objs/sunburst/_insidetextfont.py index 4a80322592..9e0ace3a4e 100644 --- a/plotly/graph_objs/sunburst/_insidetextfont.py +++ b/plotly/graph_objs/sunburst/_insidetextfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Insidetextfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "sunburst" _path_str = "sunburst.insidetextfont" _valid_props = { @@ -29,8 +30,6 @@ class Insidetextfont(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Insidetextfont """ - super(Insidetextfont, self).__init__("insidetextfont") - + super().__init__("insidetextfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/sunburst/_leaf.py b/plotly/graph_objs/sunburst/_leaf.py index 7c343bbba9..7e230411ea 100644 --- a/plotly/graph_objs/sunburst/_leaf.py +++ b/plotly/graph_objs/sunburst/_leaf.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Leaf(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "sunburst" _path_str = "sunburst.leaf" _valid_props = {"opacity"} - # opacity - # ------- @property def opacity(self): """ @@ -31,8 +30,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -58,14 +55,11 @@ def __init__(self, arg=None, opacity=None, **kwargs): ------- Leaf """ - super(Leaf, self).__init__("leaf") - + super().__init__("leaf") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -80,22 +74,9 @@ def __init__(self, arg=None, opacity=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("opacity", arg, opacity) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/sunburst/_legendgrouptitle.py b/plotly/graph_objs/sunburst/_legendgrouptitle.py index 9baa8cd8da..ae2d34b24d 100644 --- a/plotly/graph_objs/sunburst/_legendgrouptitle.py +++ b/plotly/graph_objs/sunburst/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "sunburst" _path_str = "sunburst.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/sunburst/_marker.py b/plotly/graph_objs/sunburst/_marker.py index 8c49c93c22..34b86baf99 100644 --- a/plotly/graph_objs/sunburst/_marker.py +++ b/plotly/graph_objs/sunburst/_marker.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "sunburst" _path_str = "sunburst.marker" _valid_props = { @@ -25,8 +26,6 @@ class Marker(_BaseTraceHierarchyType): "showscale", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -51,8 +50,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -75,8 +72,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -97,8 +92,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -121,8 +114,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -143,8 +134,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -170,8 +159,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -181,273 +168,6 @@ 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 @@ -458,8 +178,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colors - # ------ @property def colors(self): """ @@ -479,8 +197,6 @@ def colors(self): def colors(self, val): self["colors"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -533,8 +249,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorssrc - # --------- @property def colorssrc(self): """ @@ -553,8 +267,6 @@ def colorssrc(self): def colorssrc(self, val): self["colorssrc"] = val - # line - # ---- @property def line(self): """ @@ -564,21 +276,6 @@ 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 @@ -589,8 +286,6 @@ def line(self): def line(self, val): self["line"] = val - # pattern - # ------- @property def pattern(self): """ @@ -602,57 +297,6 @@ 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 @@ -663,8 +307,6 @@ def pattern(self): def pattern(self, val): self["pattern"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -686,8 +328,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # showscale - # --------- @property def showscale(self): """ @@ -708,8 +348,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -904,14 +542,11 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -926,74 +561,22 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colors", arg, colors) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorssrc", arg, colorssrc) + self._set_property("line", arg, line) + self._set_property("pattern", arg, pattern) + self._set_property("reversescale", arg, reversescale) + self._set_property("showscale", arg, showscale) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/sunburst/_outsidetextfont.py b/plotly/graph_objs/sunburst/_outsidetextfont.py index dfb0670a2f..46837307a2 100644 --- a/plotly/graph_objs/sunburst/_outsidetextfont.py +++ b/plotly/graph_objs/sunburst/_outsidetextfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Outsidetextfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "sunburst" _path_str = "sunburst.outsidetextfont" _valid_props = { @@ -29,8 +30,6 @@ class Outsidetextfont(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -580,18 +494,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -643,14 +550,11 @@ def __init__( ------- Outsidetextfont """ - super(Outsidetextfont, self).__init__("outsidetextfont") - + super().__init__("outsidetextfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -665,90 +569,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/sunburst/_root.py b/plotly/graph_objs/sunburst/_root.py index cd4a949f20..ca090d564b 100644 --- a/plotly/graph_objs/sunburst/_root.py +++ b/plotly/graph_objs/sunburst/_root.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Root(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "sunburst" _path_str = "sunburst.root" _valid_props = {"color"} - # color - # ----- @property def color(self): """ @@ -24,42 +23,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -71,8 +35,6 @@ def color(self): def color(self, val): self["color"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -100,14 +62,11 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Root """ - super(Root, self).__init__("root") - + super().__init__("root") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -122,22 +81,9 @@ def __init__(self, arg=None, color=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/sunburst/_stream.py b/plotly/graph_objs/sunburst/_stream.py index ee2526e662..a0f8dd05a6 100644 --- a/plotly/graph_objs/sunburst/_stream.py +++ b/plotly/graph_objs/sunburst/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "sunburst" _path_str = "sunburst.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -94,14 +89,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -116,26 +108,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/sunburst/_textfont.py b/plotly/graph_objs/sunburst/_textfont.py index 1321419a24..cf4bf58477 100644 --- a/plotly/graph_objs/sunburst/_textfont.py +++ b/plotly/graph_objs/sunburst/_textfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "sunburst" _path_str = "sunburst.textfont" _valid_props = { @@ -29,8 +30,6 @@ class Textfont(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/sunburst/hoverlabel/__init__.py b/plotly/graph_objs/sunburst/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/sunburst/hoverlabel/__init__.py +++ b/plotly/graph_objs/sunburst/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/sunburst/hoverlabel/_font.py b/plotly/graph_objs/sunburst/hoverlabel/_font.py index a28575d99d..acf3c0f3a5 100644 --- a/plotly/graph_objs/sunburst/hoverlabel/_font.py +++ b/plotly/graph_objs/sunburst/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "sunburst.hoverlabel" _path_str = "sunburst.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/sunburst/legendgrouptitle/__init__.py b/plotly/graph_objs/sunburst/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/sunburst/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/sunburst/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/sunburst/legendgrouptitle/_font.py b/plotly/graph_objs/sunburst/legendgrouptitle/_font.py index af15a8c9fe..07719d58fe 100644 --- a/plotly/graph_objs/sunburst/legendgrouptitle/_font.py +++ b/plotly/graph_objs/sunburst/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "sunburst.legendgrouptitle" _path_str = "sunburst.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/sunburst/marker/__init__.py b/plotly/graph_objs/sunburst/marker/__init__.py index ce0279c544..700941a53e 100644 --- a/plotly/graph_objs/sunburst/marker/__init__.py +++ b/plotly/graph_objs/sunburst/marker/__init__.py @@ -1,16 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._colorbar import ColorBar - from ._line import Line - from ._pattern import Pattern - from . import colorbar -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".colorbar"], - ["._colorbar.ColorBar", "._line.Line", "._pattern.Pattern"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [".colorbar"], ["._colorbar.ColorBar", "._line.Line", "._pattern.Pattern"] +) diff --git a/plotly/graph_objs/sunburst/marker/_colorbar.py b/plotly/graph_objs/sunburst/marker/_colorbar.py index f267810f51..46efaa3886 100644 --- a/plotly/graph_objs/sunburst/marker/_colorbar.py +++ b/plotly/graph_objs/sunburst/marker/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "sunburst.marker" _path_str = "sunburst.marker.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -913,8 +638,6 @@ 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 @@ -925,8 +648,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -949,8 +670,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -974,8 +693,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1000,8 +717,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1020,8 +735,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1047,8 +760,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1068,8 +779,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1091,8 +800,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1112,8 +819,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1134,8 +839,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1154,8 +857,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1175,8 +876,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1195,8 +894,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1215,8 +912,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1226,18 +921,6 @@ 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 @@ -1248,8 +931,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1274,8 +955,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1298,8 +977,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1318,8 +995,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1341,8 +1016,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1367,8 +1040,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1391,8 +1062,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1411,8 +1080,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1434,8 +1101,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1985,14 +1650,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2007,214 +1669,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/sunburst/marker/_line.py b/plotly/graph_objs/sunburst/marker/_line.py index c116e5d961..ce1429a0f0 100644 --- a/plotly/graph_objs/sunburst/marker/_line.py +++ b/plotly/graph_objs/sunburst/marker/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "sunburst.marker" _path_str = "sunburst.marker.line" _valid_props = {"color", "colorsrc", "width", "widthsrc"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -71,8 +35,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -91,8 +53,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # width - # ----- @property def width(self): """ @@ -112,8 +72,6 @@ def width(self): def width(self, val): self["width"] = val - # widthsrc - # -------- @property def widthsrc(self): """ @@ -132,8 +90,6 @@ def widthsrc(self): def widthsrc(self, val): self["widthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -180,14 +136,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -202,34 +155,12 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("width", arg, width) + self._set_property("widthsrc", arg, widthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/sunburst/marker/_pattern.py b/plotly/graph_objs/sunburst/marker/_pattern.py index 802761107d..56de56ccb5 100644 --- a/plotly/graph_objs/sunburst/marker/_pattern.py +++ b/plotly/graph_objs/sunburst/marker/_pattern.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Pattern(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "sunburst.marker" _path_str = "sunburst.marker.pattern" _valid_props = { @@ -23,8 +24,6 @@ class Pattern(_BaseTraceHierarchyType): "soliditysrc", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -38,42 +37,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -86,8 +50,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -106,8 +68,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # fgcolor - # ------- @property def fgcolor(self): """ @@ -121,42 +81,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -169,8 +94,6 @@ def fgcolor(self): def fgcolor(self, val): self["fgcolor"] = val - # fgcolorsrc - # ---------- @property def fgcolorsrc(self): """ @@ -189,8 +112,6 @@ def fgcolorsrc(self): def fgcolorsrc(self, val): self["fgcolorsrc"] = val - # fgopacity - # --------- @property def fgopacity(self): """ @@ -210,8 +131,6 @@ def fgopacity(self): def fgopacity(self, val): self["fgopacity"] = val - # fillmode - # -------- @property def fillmode(self): """ @@ -232,8 +151,6 @@ def fillmode(self): def fillmode(self, val): self["fillmode"] = val - # shape - # ----- @property def shape(self): """ @@ -255,8 +172,6 @@ def shape(self): def shape(self, val): self["shape"] = val - # shapesrc - # -------- @property def shapesrc(self): """ @@ -275,8 +190,6 @@ def shapesrc(self): def shapesrc(self, val): self["shapesrc"] = val - # size - # ---- @property def size(self): """ @@ -297,8 +210,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -317,8 +228,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # solidity - # -------- @property def solidity(self): """ @@ -341,8 +250,6 @@ def solidity(self): def solidity(self, val): self["solidity"] = val - # soliditysrc - # ----------- @property def soliditysrc(self): """ @@ -361,8 +268,6 @@ def soliditysrc(self): def soliditysrc(self, val): self["soliditysrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -493,14 +398,11 @@ def __init__( ------- Pattern """ - super(Pattern, self).__init__("pattern") - + super().__init__("pattern") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -515,66 +417,20 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("fgcolor", arg, fgcolor) + self._set_property("fgcolorsrc", arg, fgcolorsrc) + self._set_property("fgopacity", arg, fgopacity) + self._set_property("fillmode", arg, fillmode) + self._set_property("shape", arg, shape) + self._set_property("shapesrc", arg, shapesrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("solidity", arg, solidity) + self._set_property("soliditysrc", arg, soliditysrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/sunburst/marker/colorbar/__init__.py b/plotly/graph_objs/sunburst/marker/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/sunburst/marker/colorbar/__init__.py +++ b/plotly/graph_objs/sunburst/marker/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/sunburst/marker/colorbar/_tickfont.py b/plotly/graph_objs/sunburst/marker/colorbar/_tickfont.py index 5bcfe54bb7..05ff4164fb 100644 --- a/plotly/graph_objs/sunburst/marker/colorbar/_tickfont.py +++ b/plotly/graph_objs/sunburst/marker/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "sunburst.marker.colorbar" _path_str = "sunburst.marker.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/sunburst/marker/colorbar/_tickformatstop.py b/plotly/graph_objs/sunburst/marker/colorbar/_tickformatstop.py index 28d48b5b73..148ce1bf68 100644 --- a/plotly/graph_objs/sunburst/marker/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/sunburst/marker/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "sunburst.marker.colorbar" _path_str = "sunburst.marker.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/sunburst/marker/colorbar/_title.py b/plotly/graph_objs/sunburst/marker/colorbar/_title.py index 98b6c074b9..718a8fbfb9 100644 --- a/plotly/graph_objs/sunburst/marker/colorbar/_title.py +++ b/plotly/graph_objs/sunburst/marker/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "sunburst.marker.colorbar" _path_str = "sunburst.marker.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/sunburst/marker/colorbar/title/__init__.py b/plotly/graph_objs/sunburst/marker/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/sunburst/marker/colorbar/title/__init__.py +++ b/plotly/graph_objs/sunburst/marker/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/sunburst/marker/colorbar/title/_font.py b/plotly/graph_objs/sunburst/marker/colorbar/title/_font.py index d03f4499dc..fef5634cf6 100644 --- a/plotly/graph_objs/sunburst/marker/colorbar/title/_font.py +++ b/plotly/graph_objs/sunburst/marker/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "sunburst.marker.colorbar.title" _path_str = "sunburst.marker.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/surface/__init__.py b/plotly/graph_objs/surface/__init__.py index 934476fba3..b6f108258f 100644 --- a/plotly/graph_objs/surface/__init__.py +++ b/plotly/graph_objs/surface/__init__.py @@ -1,31 +1,16 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._colorbar import ColorBar - from ._contours import Contours - from ._hoverlabel import Hoverlabel - from ._legendgrouptitle import Legendgrouptitle - from ._lighting import Lighting - from ._lightposition import Lightposition - from ._stream import Stream - from . import colorbar - from . import contours - from . import hoverlabel - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".colorbar", ".contours", ".hoverlabel", ".legendgrouptitle"], + [ + "._colorbar.ColorBar", + "._contours.Contours", + "._hoverlabel.Hoverlabel", + "._legendgrouptitle.Legendgrouptitle", + "._lighting.Lighting", + "._lightposition.Lightposition", + "._stream.Stream", + ], +) diff --git a/plotly/graph_objs/surface/_colorbar.py b/plotly/graph_objs/surface/_colorbar.py index 435be9c932..a28aca3b8c 100644 --- a/plotly/graph_objs/surface/_colorbar.py +++ b/plotly/graph_objs/surface/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "surface" _path_str = "surface.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -913,8 +638,6 @@ 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 @@ -925,8 +648,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -949,8 +670,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -974,8 +693,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1000,8 +717,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1020,8 +735,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1047,8 +760,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1068,8 +779,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1091,8 +800,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1112,8 +819,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1134,8 +839,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1154,8 +857,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1175,8 +876,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1195,8 +894,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1215,8 +912,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1226,18 +921,6 @@ 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 @@ -1248,8 +931,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1274,8 +955,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1298,8 +977,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1318,8 +995,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1341,8 +1016,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1367,8 +1040,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1391,8 +1062,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1411,8 +1080,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1434,8 +1101,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1985,14 +1650,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2007,214 +1669,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/surface/_contours.py b/plotly/graph_objs/surface/_contours.py index f07540cf59..125dbf5b2a 100644 --- a/plotly/graph_objs/surface/_contours.py +++ b/plotly/graph_objs/surface/_contours.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Contours(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "surface" _path_str = "surface.contours" _valid_props = {"x", "y", "z"} - # x - # - @property def x(self): """ @@ -21,42 +20,6 @@ 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 @@ -67,8 +30,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -78,42 +39,6 @@ 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 @@ -124,8 +49,6 @@ def y(self): def y(self, val): self["y"] = val - # z - # - @property def z(self): """ @@ -135,42 +58,6 @@ 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 @@ -181,8 +68,6 @@ def z(self): def z(self, val): self["z"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -221,14 +106,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Contours """ - super(Contours, self).__init__("contours") - + super().__init__("contours") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -243,30 +125,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("x", arg, x) + self._set_property("y", arg, y) + self._set_property("z", arg, z) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/surface/_hoverlabel.py b/plotly/graph_objs/surface/_hoverlabel.py index c245fe36b9..70bebf1c66 100644 --- a/plotly/graph_objs/surface/_hoverlabel.py +++ b/plotly/graph_objs/surface/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "surface" _path_str = "surface.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/surface/_legendgrouptitle.py b/plotly/graph_objs/surface/_legendgrouptitle.py index d8fb5dcc8a..ecee46211b 100644 --- a/plotly/graph_objs/surface/_legendgrouptitle.py +++ b/plotly/graph_objs/surface/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "surface" _path_str = "surface.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/surface/_lighting.py b/plotly/graph_objs/surface/_lighting.py index 91e7ff62ee..a6c23b38dc 100644 --- a/plotly/graph_objs/surface/_lighting.py +++ b/plotly/graph_objs/surface/_lighting.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Lighting(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "surface" _path_str = "surface.lighting" _valid_props = {"ambient", "diffuse", "fresnel", "roughness", "specular"} - # ambient - # ------- @property def ambient(self): """ @@ -31,8 +30,6 @@ def ambient(self): def ambient(self, val): self["ambient"] = val - # diffuse - # ------- @property def diffuse(self): """ @@ -52,8 +49,6 @@ def diffuse(self): def diffuse(self, val): self["diffuse"] = val - # fresnel - # ------- @property def fresnel(self): """ @@ -74,8 +69,6 @@ def fresnel(self): def fresnel(self, val): self["fresnel"] = val - # roughness - # --------- @property def roughness(self): """ @@ -95,8 +88,6 @@ def roughness(self): def roughness(self, val): self["roughness"] = val - # specular - # -------- @property def specular(self): """ @@ -116,8 +107,6 @@ def specular(self): def specular(self, val): self["specular"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -181,14 +170,11 @@ def __init__( ------- Lighting """ - super(Lighting, self).__init__("lighting") - + super().__init__("lighting") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -203,38 +189,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("ambient", arg, ambient) + self._set_property("diffuse", arg, diffuse) + self._set_property("fresnel", arg, fresnel) + self._set_property("roughness", arg, roughness) + self._set_property("specular", arg, specular) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/surface/_lightposition.py b/plotly/graph_objs/surface/_lightposition.py index 29e5ac30ae..37ac18575a 100644 --- a/plotly/graph_objs/surface/_lightposition.py +++ b/plotly/graph_objs/surface/_lightposition.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Lightposition(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "surface" _path_str = "surface.lightposition" _valid_props = {"x", "y", "z"} - # x - # - @property def x(self): """ @@ -30,8 +29,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -50,8 +47,6 @@ def y(self): def y(self, val): self["y"] = val - # z - # - @property def z(self): """ @@ -70,8 +65,6 @@ def z(self): def z(self, val): self["z"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -110,14 +103,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Lightposition """ - super(Lightposition, self).__init__("lightposition") - + super().__init__("lightposition") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -132,30 +122,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("x", arg, x) + self._set_property("y", arg, y) + self._set_property("z", arg, z) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/surface/_stream.py b/plotly/graph_objs/surface/_stream.py index 38f7bcbdc5..b3903c0a09 100644 --- a/plotly/graph_objs/surface/_stream.py +++ b/plotly/graph_objs/surface/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "surface" _path_str = "surface.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -94,14 +89,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -116,26 +108,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/surface/colorbar/__init__.py b/plotly/graph_objs/surface/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/surface/colorbar/__init__.py +++ b/plotly/graph_objs/surface/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/surface/colorbar/_tickfont.py b/plotly/graph_objs/surface/colorbar/_tickfont.py index be029b14e8..c568c4a445 100644 --- a/plotly/graph_objs/surface/colorbar/_tickfont.py +++ b/plotly/graph_objs/surface/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "surface.colorbar" _path_str = "surface.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/surface/colorbar/_tickformatstop.py b/plotly/graph_objs/surface/colorbar/_tickformatstop.py index 89bdc997b5..ad3ae6d213 100644 --- a/plotly/graph_objs/surface/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/surface/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "surface.colorbar" _path_str = "surface.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/surface/colorbar/_title.py b/plotly/graph_objs/surface/colorbar/_title.py index 5d7455b4bc..444447ce58 100644 --- a/plotly/graph_objs/surface/colorbar/_title.py +++ b/plotly/graph_objs/surface/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "surface.colorbar" _path_str = "surface.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/surface/colorbar/title/__init__.py b/plotly/graph_objs/surface/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/surface/colorbar/title/__init__.py +++ b/plotly/graph_objs/surface/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/surface/colorbar/title/_font.py b/plotly/graph_objs/surface/colorbar/title/_font.py index 45fc210c2d..a24f2b4faa 100644 --- a/plotly/graph_objs/surface/colorbar/title/_font.py +++ b/plotly/graph_objs/surface/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "surface.colorbar.title" _path_str = "surface.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/surface/contours/__init__.py b/plotly/graph_objs/surface/contours/__init__.py index 40e571c2c8..3b1133f0ee 100644 --- a/plotly/graph_objs/surface/contours/__init__.py +++ b/plotly/graph_objs/surface/contours/__init__.py @@ -1,16 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._x import X - from ._y import Y - from ._z import Z - from . import x - from . import y - 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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [".x", ".y", ".z"], ["._x.X", "._y.Y", "._z.Z"] +) diff --git a/plotly/graph_objs/surface/contours/_x.py b/plotly/graph_objs/surface/contours/_x.py index 3a0122ad5d..0cd147d039 100644 --- a/plotly/graph_objs/surface/contours/_x.py +++ b/plotly/graph_objs/surface/contours/_x.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class X(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "surface.contours" _path_str = "surface.contours.x" _valid_props = { @@ -22,8 +23,6 @@ class X(_BaseTraceHierarchyType): "width", } - # color - # ----- @property def color(self): """ @@ -34,42 +33,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -81,8 +45,6 @@ def color(self): def color(self, val): self["color"] = val - # end - # --- @property def end(self): """ @@ -102,8 +64,6 @@ def end(self): def end(self, val): self["end"] = val - # highlight - # --------- @property def highlight(self): """ @@ -123,8 +83,6 @@ def highlight(self): def highlight(self, val): self["highlight"] = val - # highlightcolor - # -------------- @property def highlightcolor(self): """ @@ -135,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -182,8 +105,6 @@ def highlightcolor(self): def highlightcolor(self, val): self["highlightcolor"] = val - # highlightwidth - # -------------- @property def highlightwidth(self): """ @@ -202,8 +123,6 @@ def highlightwidth(self): def highlightwidth(self, val): self["highlightwidth"] = val - # project - # ------- @property def project(self): """ @@ -213,27 +132,6 @@ 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 @@ -244,8 +142,6 @@ def project(self): def project(self, val): self["project"] = val - # show - # ---- @property def show(self): """ @@ -265,8 +161,6 @@ def show(self): def show(self, val): self["show"] = val - # size - # ---- @property def size(self): """ @@ -285,8 +179,6 @@ def size(self): def size(self, val): self["size"] = val - # start - # ----- @property def start(self): """ @@ -306,8 +198,6 @@ def start(self): def start(self, val): self["start"] = val - # usecolormap - # ----------- @property def usecolormap(self): """ @@ -327,8 +217,6 @@ def usecolormap(self): def usecolormap(self, val): self["usecolormap"] = val - # width - # ----- @property def width(self): """ @@ -347,8 +235,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -442,14 +328,11 @@ def __init__( ------- X """ - super(X, self).__init__("x") - + super().__init__("x") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -464,62 +347,19 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("end", arg, end) + self._set_property("highlight", arg, highlight) + self._set_property("highlightcolor", arg, highlightcolor) + self._set_property("highlightwidth", arg, highlightwidth) + self._set_property("project", arg, project) + self._set_property("show", arg, show) + self._set_property("size", arg, size) + self._set_property("start", arg, start) + self._set_property("usecolormap", arg, usecolormap) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/surface/contours/_y.py b/plotly/graph_objs/surface/contours/_y.py index faf7eccca3..e605838877 100644 --- a/plotly/graph_objs/surface/contours/_y.py +++ b/plotly/graph_objs/surface/contours/_y.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Y(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "surface.contours" _path_str = "surface.contours.y" _valid_props = { @@ -22,8 +23,6 @@ class Y(_BaseTraceHierarchyType): "width", } - # color - # ----- @property def color(self): """ @@ -34,42 +33,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -81,8 +45,6 @@ def color(self): def color(self, val): self["color"] = val - # end - # --- @property def end(self): """ @@ -102,8 +64,6 @@ def end(self): def end(self, val): self["end"] = val - # highlight - # --------- @property def highlight(self): """ @@ -123,8 +83,6 @@ def highlight(self): def highlight(self, val): self["highlight"] = val - # highlightcolor - # -------------- @property def highlightcolor(self): """ @@ -135,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -182,8 +105,6 @@ def highlightcolor(self): def highlightcolor(self, val): self["highlightcolor"] = val - # highlightwidth - # -------------- @property def highlightwidth(self): """ @@ -202,8 +123,6 @@ def highlightwidth(self): def highlightwidth(self, val): self["highlightwidth"] = val - # project - # ------- @property def project(self): """ @@ -213,27 +132,6 @@ 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 @@ -244,8 +142,6 @@ def project(self): def project(self, val): self["project"] = val - # show - # ---- @property def show(self): """ @@ -265,8 +161,6 @@ def show(self): def show(self, val): self["show"] = val - # size - # ---- @property def size(self): """ @@ -285,8 +179,6 @@ def size(self): def size(self, val): self["size"] = val - # start - # ----- @property def start(self): """ @@ -306,8 +198,6 @@ def start(self): def start(self, val): self["start"] = val - # usecolormap - # ----------- @property def usecolormap(self): """ @@ -327,8 +217,6 @@ def usecolormap(self): def usecolormap(self, val): self["usecolormap"] = val - # width - # ----- @property def width(self): """ @@ -347,8 +235,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -442,14 +328,11 @@ def __init__( ------- Y """ - super(Y, self).__init__("y") - + super().__init__("y") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -464,62 +347,19 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("end", arg, end) + self._set_property("highlight", arg, highlight) + self._set_property("highlightcolor", arg, highlightcolor) + self._set_property("highlightwidth", arg, highlightwidth) + self._set_property("project", arg, project) + self._set_property("show", arg, show) + self._set_property("size", arg, size) + self._set_property("start", arg, start) + self._set_property("usecolormap", arg, usecolormap) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/surface/contours/_z.py b/plotly/graph_objs/surface/contours/_z.py index 21a4dc7262..c54852be91 100644 --- a/plotly/graph_objs/surface/contours/_z.py +++ b/plotly/graph_objs/surface/contours/_z.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Z(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "surface.contours" _path_str = "surface.contours.z" _valid_props = { @@ -22,8 +23,6 @@ class Z(_BaseTraceHierarchyType): "width", } - # color - # ----- @property def color(self): """ @@ -34,42 +33,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -81,8 +45,6 @@ def color(self): def color(self, val): self["color"] = val - # end - # --- @property def end(self): """ @@ -102,8 +64,6 @@ def end(self): def end(self, val): self["end"] = val - # highlight - # --------- @property def highlight(self): """ @@ -123,8 +83,6 @@ def highlight(self): def highlight(self, val): self["highlight"] = val - # highlightcolor - # -------------- @property def highlightcolor(self): """ @@ -135,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -182,8 +105,6 @@ def highlightcolor(self): def highlightcolor(self, val): self["highlightcolor"] = val - # highlightwidth - # -------------- @property def highlightwidth(self): """ @@ -202,8 +123,6 @@ def highlightwidth(self): def highlightwidth(self, val): self["highlightwidth"] = val - # project - # ------- @property def project(self): """ @@ -213,27 +132,6 @@ 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 @@ -244,8 +142,6 @@ def project(self): def project(self, val): self["project"] = val - # show - # ---- @property def show(self): """ @@ -265,8 +161,6 @@ def show(self): def show(self, val): self["show"] = val - # size - # ---- @property def size(self): """ @@ -285,8 +179,6 @@ def size(self): def size(self, val): self["size"] = val - # start - # ----- @property def start(self): """ @@ -306,8 +198,6 @@ def start(self): def start(self, val): self["start"] = val - # usecolormap - # ----------- @property def usecolormap(self): """ @@ -327,8 +217,6 @@ def usecolormap(self): def usecolormap(self, val): self["usecolormap"] = val - # width - # ----- @property def width(self): """ @@ -347,8 +235,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -442,14 +328,11 @@ def __init__( ------- Z """ - super(Z, self).__init__("z") - + super().__init__("z") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -464,62 +347,19 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("end", arg, end) + self._set_property("highlight", arg, highlight) + self._set_property("highlightcolor", arg, highlightcolor) + self._set_property("highlightwidth", arg, highlightwidth) + self._set_property("project", arg, project) + self._set_property("show", arg, show) + self._set_property("size", arg, size) + self._set_property("start", arg, start) + self._set_property("usecolormap", arg, usecolormap) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/surface/contours/x/__init__.py b/plotly/graph_objs/surface/contours/x/__init__.py index c01cb58525..a27203b57f 100644 --- a/plotly/graph_objs/surface/contours/x/__init__.py +++ b/plotly/graph_objs/surface/contours/x/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/surface/contours/x/_project.py b/plotly/graph_objs/surface/contours/x/_project.py index 158db85158..580100f006 100644 --- a/plotly/graph_objs/surface/contours/x/_project.py +++ b/plotly/graph_objs/surface/contours/x/_project.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Project(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "surface.contours.x" _path_str = "surface.contours.x.project" _valid_props = {"x", "y", "z"} - # x - # - @property def x(self): """ @@ -33,8 +32,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -56,8 +53,6 @@ def y(self): def y(self, val): self["y"] = val - # z - # - @property def z(self): """ @@ -79,8 +74,6 @@ def z(self): def z(self, val): self["z"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -137,14 +130,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Project """ - super(Project, self).__init__("project") - + super().__init__("project") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -159,30 +149,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("x", arg, x) + self._set_property("y", arg, y) + self._set_property("z", arg, z) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/surface/contours/y/__init__.py b/plotly/graph_objs/surface/contours/y/__init__.py index c01cb58525..a27203b57f 100644 --- a/plotly/graph_objs/surface/contours/y/__init__.py +++ b/plotly/graph_objs/surface/contours/y/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/surface/contours/y/_project.py b/plotly/graph_objs/surface/contours/y/_project.py index 68ff9fd518..d2b86175e8 100644 --- a/plotly/graph_objs/surface/contours/y/_project.py +++ b/plotly/graph_objs/surface/contours/y/_project.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Project(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "surface.contours.y" _path_str = "surface.contours.y.project" _valid_props = {"x", "y", "z"} - # x - # - @property def x(self): """ @@ -33,8 +32,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -56,8 +53,6 @@ def y(self): def y(self, val): self["y"] = val - # z - # - @property def z(self): """ @@ -79,8 +74,6 @@ def z(self): def z(self, val): self["z"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -137,14 +130,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Project """ - super(Project, self).__init__("project") - + super().__init__("project") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -159,30 +149,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("x", arg, x) + self._set_property("y", arg, y) + self._set_property("z", arg, z) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/surface/contours/z/__init__.py b/plotly/graph_objs/surface/contours/z/__init__.py index c01cb58525..a27203b57f 100644 --- a/plotly/graph_objs/surface/contours/z/__init__.py +++ b/plotly/graph_objs/surface/contours/z/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/surface/contours/z/_project.py b/plotly/graph_objs/surface/contours/z/_project.py index 17efc1ae04..00eabf2a1d 100644 --- a/plotly/graph_objs/surface/contours/z/_project.py +++ b/plotly/graph_objs/surface/contours/z/_project.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Project(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "surface.contours.z" _path_str = "surface.contours.z.project" _valid_props = {"x", "y", "z"} - # x - # - @property def x(self): """ @@ -33,8 +32,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -56,8 +53,6 @@ def y(self): def y(self, val): self["y"] = val - # z - # - @property def z(self): """ @@ -79,8 +74,6 @@ def z(self): def z(self, val): self["z"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -137,14 +130,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Project """ - super(Project, self).__init__("project") - + super().__init__("project") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -159,30 +149,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("x", arg, x) + self._set_property("y", arg, y) + self._set_property("z", arg, z) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/surface/hoverlabel/__init__.py b/plotly/graph_objs/surface/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/surface/hoverlabel/__init__.py +++ b/plotly/graph_objs/surface/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/surface/hoverlabel/_font.py b/plotly/graph_objs/surface/hoverlabel/_font.py index 59a9809f1a..988b39cabf 100644 --- a/plotly/graph_objs/surface/hoverlabel/_font.py +++ b/plotly/graph_objs/surface/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "surface.hoverlabel" _path_str = "surface.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/surface/legendgrouptitle/__init__.py b/plotly/graph_objs/surface/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/surface/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/surface/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/surface/legendgrouptitle/_font.py b/plotly/graph_objs/surface/legendgrouptitle/_font.py index b79a937969..a4d9577f72 100644 --- a/plotly/graph_objs/surface/legendgrouptitle/_font.py +++ b/plotly/graph_objs/surface/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "surface.legendgrouptitle" _path_str = "surface.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/table/__init__.py b/plotly/graph_objs/table/__init__.py index 21b4bd6230..cc43fc1ce9 100644 --- a/plotly/graph_objs/table/__init__.py +++ b/plotly/graph_objs/table/__init__.py @@ -1,29 +1,15 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._cells import Cells - from ._domain import Domain - from ._header import Header - from ._hoverlabel import Hoverlabel - from ._legendgrouptitle import Legendgrouptitle - from ._stream import Stream - from . import cells - from . import header - from . import hoverlabel - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".cells", ".header", ".hoverlabel", ".legendgrouptitle"], + [ + "._cells.Cells", + "._domain.Domain", + "._header.Header", + "._hoverlabel.Hoverlabel", + "._legendgrouptitle.Legendgrouptitle", + "._stream.Stream", + ], +) diff --git a/plotly/graph_objs/table/_cells.py b/plotly/graph_objs/table/_cells.py index 812f9dda45..58d1c220ac 100644 --- a/plotly/graph_objs/table/_cells.py +++ b/plotly/graph_objs/table/_cells.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Cells(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "table" _path_str = "table.cells" _valid_props = { @@ -25,8 +26,6 @@ class Cells(_BaseTraceHierarchyType): "valuessrc", } - # align - # ----- @property def align(self): """ @@ -50,8 +49,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -70,8 +67,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # fill - # ---- @property def fill(self): """ @@ -81,16 +76,6 @@ 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 @@ -101,8 +86,6 @@ def fill(self): def fill(self, val): self["fill"] = val - # font - # ---- @property def font(self): """ @@ -112,79 +95,6 @@ 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 @@ -195,8 +105,6 @@ def font(self): def font(self, val): self["font"] = val - # format - # ------ @property def format(self): """ @@ -218,8 +126,6 @@ def format(self): def format(self, val): self["format"] = val - # formatsrc - # --------- @property def formatsrc(self): """ @@ -238,8 +144,6 @@ def formatsrc(self): def formatsrc(self, val): self["formatsrc"] = val - # height - # ------ @property def height(self): """ @@ -258,8 +162,6 @@ def height(self): def height(self, val): self["height"] = val - # line - # ---- @property def line(self): """ @@ -269,19 +171,6 @@ 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 @@ -292,8 +181,6 @@ def line(self): def line(self, val): self["line"] = val - # prefix - # ------ @property def prefix(self): """ @@ -314,8 +201,6 @@ def prefix(self): def prefix(self, val): self["prefix"] = val - # prefixsrc - # --------- @property def prefixsrc(self): """ @@ -334,8 +219,6 @@ def prefixsrc(self): def prefixsrc(self, val): self["prefixsrc"] = val - # suffix - # ------ @property def suffix(self): """ @@ -356,8 +239,6 @@ def suffix(self): def suffix(self, val): self["suffix"] = val - # suffixsrc - # --------- @property def suffixsrc(self): """ @@ -376,8 +257,6 @@ def suffixsrc(self): def suffixsrc(self, val): self["suffixsrc"] = val - # values - # ------ @property def values(self): """ @@ -399,8 +278,6 @@ def values(self): def values(self, val): self["values"] = val - # valuessrc - # --------- @property def valuessrc(self): """ @@ -419,8 +296,6 @@ def valuessrc(self): def valuessrc(self, val): self["valuessrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -552,14 +427,11 @@ def __init__( ------- Cells """ - super(Cells, self).__init__("cells") - + super().__init__("cells") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -574,74 +446,22 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("fill", arg, fill) + self._set_property("font", arg, font) + self._set_property("format", arg, format) + self._set_property("formatsrc", arg, formatsrc) + self._set_property("height", arg, height) + self._set_property("line", arg, line) + self._set_property("prefix", arg, prefix) + self._set_property("prefixsrc", arg, prefixsrc) + self._set_property("suffix", arg, suffix) + self._set_property("suffixsrc", arg, suffixsrc) + self._set_property("values", arg, values) + self._set_property("valuessrc", arg, valuessrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/table/_domain.py b/plotly/graph_objs/table/_domain.py index 7b3274e955..ae906a4b5b 100644 --- a/plotly/graph_objs/table/_domain.py +++ b/plotly/graph_objs/table/_domain.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Domain(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "table" _path_str = "table.domain" _valid_props = {"column", "row", "x", "y"} - # column - # ------ @property def column(self): """ @@ -32,8 +31,6 @@ def column(self): def column(self, val): self["column"] = val - # row - # --- @property def row(self): """ @@ -54,8 +51,6 @@ def row(self): def row(self, val): self["row"] = val - # x - # - @property def x(self): """ @@ -80,8 +75,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -106,8 +99,6 @@ def y(self): def y(self, val): self["y"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -151,14 +142,11 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") - + super().__init__("domain") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -173,34 +161,12 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("column", arg, column) + self._set_property("row", arg, row) + self._set_property("x", arg, x) + self._set_property("y", arg, y) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/table/_header.py b/plotly/graph_objs/table/_header.py index 6ba73d3b9f..cf30763ab6 100644 --- a/plotly/graph_objs/table/_header.py +++ b/plotly/graph_objs/table/_header.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Header(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "table" _path_str = "table.header" _valid_props = { @@ -25,8 +26,6 @@ class Header(_BaseTraceHierarchyType): "valuessrc", } - # align - # ----- @property def align(self): """ @@ -50,8 +49,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -70,8 +67,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # fill - # ---- @property def fill(self): """ @@ -81,16 +76,6 @@ 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 @@ -101,8 +86,6 @@ def fill(self): def fill(self, val): self["fill"] = val - # font - # ---- @property def font(self): """ @@ -112,79 +95,6 @@ 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 @@ -195,8 +105,6 @@ def font(self): def font(self, val): self["font"] = val - # format - # ------ @property def format(self): """ @@ -218,8 +126,6 @@ def format(self): def format(self, val): self["format"] = val - # formatsrc - # --------- @property def formatsrc(self): """ @@ -238,8 +144,6 @@ def formatsrc(self): def formatsrc(self, val): self["formatsrc"] = val - # height - # ------ @property def height(self): """ @@ -258,8 +162,6 @@ def height(self): def height(self, val): self["height"] = val - # line - # ---- @property def line(self): """ @@ -269,19 +171,6 @@ 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 @@ -292,8 +181,6 @@ def line(self): def line(self, val): self["line"] = val - # prefix - # ------ @property def prefix(self): """ @@ -314,8 +201,6 @@ def prefix(self): def prefix(self, val): self["prefix"] = val - # prefixsrc - # --------- @property def prefixsrc(self): """ @@ -334,8 +219,6 @@ def prefixsrc(self): def prefixsrc(self, val): self["prefixsrc"] = val - # suffix - # ------ @property def suffix(self): """ @@ -356,8 +239,6 @@ def suffix(self): def suffix(self, val): self["suffix"] = val - # suffixsrc - # --------- @property def suffixsrc(self): """ @@ -376,8 +257,6 @@ def suffixsrc(self): def suffixsrc(self, val): self["suffixsrc"] = val - # values - # ------ @property def values(self): """ @@ -399,8 +278,6 @@ def values(self): def values(self, val): self["values"] = val - # valuessrc - # --------- @property def valuessrc(self): """ @@ -419,8 +296,6 @@ def valuessrc(self): def valuessrc(self, val): self["valuessrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -552,14 +427,11 @@ def __init__( ------- Header """ - super(Header, self).__init__("header") - + super().__init__("header") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -574,74 +446,22 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("fill", arg, fill) + self._set_property("font", arg, font) + self._set_property("format", arg, format) + self._set_property("formatsrc", arg, formatsrc) + self._set_property("height", arg, height) + self._set_property("line", arg, line) + self._set_property("prefix", arg, prefix) + self._set_property("prefixsrc", arg, prefixsrc) + self._set_property("suffix", arg, suffix) + self._set_property("suffixsrc", arg, suffixsrc) + self._set_property("values", arg, values) + self._set_property("valuessrc", arg, valuessrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/table/_hoverlabel.py b/plotly/graph_objs/table/_hoverlabel.py index 5ef832aa68..6cd2eba57d 100644 --- a/plotly/graph_objs/table/_hoverlabel.py +++ b/plotly/graph_objs/table/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "table" _path_str = "table.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/table/_legendgrouptitle.py b/plotly/graph_objs/table/_legendgrouptitle.py index 150d30abb7..49b6fd734c 100644 --- a/plotly/graph_objs/table/_legendgrouptitle.py +++ b/plotly/graph_objs/table/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "table" _path_str = "table.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/table/_stream.py b/plotly/graph_objs/table/_stream.py index f42337b2e0..e79f83fa72 100644 --- a/plotly/graph_objs/table/_stream.py +++ b/plotly/graph_objs/table/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "table" _path_str = "table.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -93,14 +88,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -115,26 +107,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/table/cells/__init__.py b/plotly/graph_objs/table/cells/__init__.py index bc3fbf02cd..7679bc70a1 100644 --- a/plotly/graph_objs/table/cells/__init__.py +++ b/plotly/graph_objs/table/cells/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._fill.Fill", "._font.Font", "._line.Line"] +) diff --git a/plotly/graph_objs/table/cells/_fill.py b/plotly/graph_objs/table/cells/_fill.py index c081a9b2dd..e625f0c048 100644 --- a/plotly/graph_objs/table/cells/_fill.py +++ b/plotly/graph_objs/table/cells/_fill.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Fill(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "table.cells" _path_str = "table.cells.fill" _valid_props = {"color", "colorsrc"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -71,8 +35,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -91,8 +53,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -125,14 +85,11 @@ def __init__(self, arg=None, color=None, colorsrc=None, **kwargs): ------- Fill """ - super(Fill, self).__init__("fill") - + super().__init__("fill") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -147,26 +104,10 @@ def __init__(self, arg=None, color=None, colorsrc=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/table/cells/_font.py b/plotly/graph_objs/table/cells/_font.py index cc5c3ce58d..4f5f006f79 100644 --- a/plotly/graph_objs/table/cells/_font.py +++ b/plotly/graph_objs/table/cells/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "table.cells" _path_str = "table.cells.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -574,18 +488,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -637,14 +544,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -659,90 +563,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/table/cells/_line.py b/plotly/graph_objs/table/cells/_line.py index 6483287201..5dc7286a82 100644 --- a/plotly/graph_objs/table/cells/_line.py +++ b/plotly/graph_objs/table/cells/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "table.cells" _path_str = "table.cells.line" _valid_props = {"color", "colorsrc", "width", "widthsrc"} - # color - # ----- @property def color(self): """ @@ -20,42 +19,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -68,8 +32,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -88,8 +50,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # width - # ----- @property def width(self): """ @@ -107,8 +67,6 @@ def width(self): def width(self, val): self["width"] = val - # widthsrc - # -------- @property def widthsrc(self): """ @@ -127,8 +85,6 @@ def widthsrc(self): def widthsrc(self, val): self["widthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -171,14 +127,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -193,34 +146,12 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("width", arg, width) + self._set_property("widthsrc", arg, widthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/table/header/__init__.py b/plotly/graph_objs/table/header/__init__.py index bc3fbf02cd..7679bc70a1 100644 --- a/plotly/graph_objs/table/header/__init__.py +++ b/plotly/graph_objs/table/header/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._fill.Fill", "._font.Font", "._line.Line"] +) diff --git a/plotly/graph_objs/table/header/_fill.py b/plotly/graph_objs/table/header/_fill.py index 9235360933..5ce91c4eb0 100644 --- a/plotly/graph_objs/table/header/_fill.py +++ b/plotly/graph_objs/table/header/_fill.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Fill(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "table.header" _path_str = "table.header.fill" _valid_props = {"color", "colorsrc"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -71,8 +35,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -91,8 +53,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -125,14 +85,11 @@ def __init__(self, arg=None, color=None, colorsrc=None, **kwargs): ------- Fill """ - super(Fill, self).__init__("fill") - + super().__init__("fill") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -147,26 +104,10 @@ def __init__(self, arg=None, color=None, colorsrc=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/table/header/_font.py b/plotly/graph_objs/table/header/_font.py index 3ea8afe3f0..cc2a81f26d 100644 --- a/plotly/graph_objs/table/header/_font.py +++ b/plotly/graph_objs/table/header/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "table.header" _path_str = "table.header.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -574,18 +488,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -637,14 +544,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -659,90 +563,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/table/header/_line.py b/plotly/graph_objs/table/header/_line.py index 8f0e41c939..f1e4c71e28 100644 --- a/plotly/graph_objs/table/header/_line.py +++ b/plotly/graph_objs/table/header/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "table.header" _path_str = "table.header.line" _valid_props = {"color", "colorsrc", "width", "widthsrc"} - # color - # ----- @property def color(self): """ @@ -20,42 +19,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -68,8 +32,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -88,8 +50,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # width - # ----- @property def width(self): """ @@ -107,8 +67,6 @@ def width(self): def width(self, val): self["width"] = val - # widthsrc - # -------- @property def widthsrc(self): """ @@ -127,8 +85,6 @@ def widthsrc(self): def widthsrc(self, val): self["widthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -171,14 +127,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -193,34 +146,12 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("width", arg, width) + self._set_property("widthsrc", arg, widthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/table/hoverlabel/__init__.py b/plotly/graph_objs/table/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/table/hoverlabel/__init__.py +++ b/plotly/graph_objs/table/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/table/hoverlabel/_font.py b/plotly/graph_objs/table/hoverlabel/_font.py index 5a72bf219d..4d8d02aded 100644 --- a/plotly/graph_objs/table/hoverlabel/_font.py +++ b/plotly/graph_objs/table/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "table.hoverlabel" _path_str = "table.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/table/legendgrouptitle/__init__.py b/plotly/graph_objs/table/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/table/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/table/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/table/legendgrouptitle/_font.py b/plotly/graph_objs/table/legendgrouptitle/_font.py index c458e0e5a4..8b7f26a924 100644 --- a/plotly/graph_objs/table/legendgrouptitle/_font.py +++ b/plotly/graph_objs/table/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "table.legendgrouptitle" _path_str = "table.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/treemap/__init__.py b/plotly/graph_objs/treemap/__init__.py index 3e1752e4e6..8d5d944295 100644 --- a/plotly/graph_objs/treemap/__init__.py +++ b/plotly/graph_objs/treemap/__init__.py @@ -1,39 +1,20 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._domain import Domain - from ._hoverlabel import Hoverlabel - from ._insidetextfont import Insidetextfont - from ._legendgrouptitle import Legendgrouptitle - from ._marker import Marker - from ._outsidetextfont import Outsidetextfont - from ._pathbar import Pathbar - from ._root import Root - from ._stream import Stream - from ._textfont import Textfont - from ._tiling import Tiling - from . import hoverlabel - from . import legendgrouptitle - from . import marker - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/treemap/_domain.py b/plotly/graph_objs/treemap/_domain.py index 25cbbdb69c..92bb014961 100644 --- a/plotly/graph_objs/treemap/_domain.py +++ b/plotly/graph_objs/treemap/_domain.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Domain(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "treemap" _path_str = "treemap.domain" _valid_props = {"column", "row", "x", "y"} - # column - # ------ @property def column(self): """ @@ -32,8 +31,6 @@ def column(self): def column(self, val): self["column"] = val - # row - # --- @property def row(self): """ @@ -54,8 +51,6 @@ def row(self): def row(self, val): self["row"] = val - # x - # - @property def x(self): """ @@ -80,8 +75,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -106,8 +99,6 @@ def y(self): def y(self, val): self["y"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -152,14 +143,11 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): ------- Domain """ - super(Domain, self).__init__("domain") - + super().__init__("domain") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -174,34 +162,12 @@ def __init__(self, arg=None, column=None, row=None, x=None, y=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("column", arg, column) + self._set_property("row", arg, row) + self._set_property("x", arg, x) + self._set_property("y", arg, y) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/treemap/_hoverlabel.py b/plotly/graph_objs/treemap/_hoverlabel.py index 302184f1d3..9a59665ff5 100644 --- a/plotly/graph_objs/treemap/_hoverlabel.py +++ b/plotly/graph_objs/treemap/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "treemap" _path_str = "treemap.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/treemap/_insidetextfont.py b/plotly/graph_objs/treemap/_insidetextfont.py index 2d6af94a57..889a6d980b 100644 --- a/plotly/graph_objs/treemap/_insidetextfont.py +++ b/plotly/graph_objs/treemap/_insidetextfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Insidetextfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "treemap" _path_str = "treemap.insidetextfont" _valid_props = { @@ -29,8 +30,6 @@ class Insidetextfont(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Insidetextfont """ - super(Insidetextfont, self).__init__("insidetextfont") - + super().__init__("insidetextfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/treemap/_legendgrouptitle.py b/plotly/graph_objs/treemap/_legendgrouptitle.py index 064f6b74b9..d2b05b787f 100644 --- a/plotly/graph_objs/treemap/_legendgrouptitle.py +++ b/plotly/graph_objs/treemap/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "treemap" _path_str = "treemap.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/treemap/_marker.py b/plotly/graph_objs/treemap/_marker.py index cf89025eb1..4783555d02 100644 --- a/plotly/graph_objs/treemap/_marker.py +++ b/plotly/graph_objs/treemap/_marker.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "treemap" _path_str = "treemap.marker" _valid_props = { @@ -28,8 +29,6 @@ class Marker(_BaseTraceHierarchyType): "showscale", } - # autocolorscale - # -------------- @property def autocolorscale(self): """ @@ -54,8 +53,6 @@ def autocolorscale(self): def autocolorscale(self, val): self["autocolorscale"] = val - # cauto - # ----- @property def cauto(self): """ @@ -78,8 +75,6 @@ def cauto(self): def cauto(self, val): self["cauto"] = val - # cmax - # ---- @property def cmax(self): """ @@ -100,8 +95,6 @@ def cmax(self): def cmax(self, val): self["cmax"] = val - # cmid - # ---- @property def cmid(self): """ @@ -124,8 +117,6 @@ def cmid(self): def cmid(self, val): self["cmid"] = val - # cmin - # ---- @property def cmin(self): """ @@ -146,8 +137,6 @@ def cmin(self): def cmin(self, val): self["cmin"] = val - # coloraxis - # --------- @property def coloraxis(self): """ @@ -173,8 +162,6 @@ def coloraxis(self): def coloraxis(self, val): self["coloraxis"] = val - # colorbar - # -------- @property def colorbar(self): """ @@ -184,273 +171,6 @@ 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 @@ -461,8 +181,6 @@ def colorbar(self): def colorbar(self, val): self["colorbar"] = val - # colors - # ------ @property def colors(self): """ @@ -482,8 +200,6 @@ def colors(self): def colors(self, val): self["colors"] = val - # colorscale - # ---------- @property def colorscale(self): """ @@ -536,8 +252,6 @@ def colorscale(self): def colorscale(self, val): self["colorscale"] = val - # colorssrc - # --------- @property def colorssrc(self): """ @@ -556,8 +270,6 @@ def colorssrc(self): def colorssrc(self, val): self["colorssrc"] = val - # cornerradius - # ------------ @property def cornerradius(self): """ @@ -576,8 +288,6 @@ def cornerradius(self): def cornerradius(self, val): self["cornerradius"] = val - # depthfade - # --------- @property def depthfade(self): """ @@ -604,8 +314,6 @@ def depthfade(self): def depthfade(self, val): self["depthfade"] = val - # line - # ---- @property def line(self): """ @@ -615,21 +323,6 @@ 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 @@ -640,8 +333,6 @@ def line(self): def line(self, val): self["line"] = val - # pad - # --- @property def pad(self): """ @@ -651,17 +342,6 @@ 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 @@ -672,8 +352,6 @@ def pad(self): def pad(self, val): self["pad"] = val - # pattern - # ------- @property def pattern(self): """ @@ -685,57 +363,6 @@ 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 @@ -746,8 +373,6 @@ def pattern(self): def pattern(self, val): self["pattern"] = val - # reversescale - # ------------ @property def reversescale(self): """ @@ -769,8 +394,6 @@ def reversescale(self): def reversescale(self, val): self["reversescale"] = val - # showscale - # --------- @property def showscale(self): """ @@ -791,8 +414,6 @@ def showscale(self): def showscale(self, val): self["showscale"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1020,14 +641,11 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -1042,86 +660,25 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("autocolorscale", arg, autocolorscale) + self._set_property("cauto", arg, cauto) + self._set_property("cmax", arg, cmax) + self._set_property("cmid", arg, cmid) + self._set_property("cmin", arg, cmin) + self._set_property("coloraxis", arg, coloraxis) + self._set_property("colorbar", arg, colorbar) + self._set_property("colors", arg, colors) + self._set_property("colorscale", arg, colorscale) + self._set_property("colorssrc", arg, colorssrc) + self._set_property("cornerradius", arg, cornerradius) + self._set_property("depthfade", arg, depthfade) + self._set_property("line", arg, line) + self._set_property("pad", arg, pad) + self._set_property("pattern", arg, pattern) + self._set_property("reversescale", arg, reversescale) + self._set_property("showscale", arg, showscale) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/treemap/_outsidetextfont.py b/plotly/graph_objs/treemap/_outsidetextfont.py index 835637951d..2207cb5c82 100644 --- a/plotly/graph_objs/treemap/_outsidetextfont.py +++ b/plotly/graph_objs/treemap/_outsidetextfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Outsidetextfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "treemap" _path_str = "treemap.outsidetextfont" _valid_props = { @@ -29,8 +30,6 @@ class Outsidetextfont(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -580,18 +494,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -643,14 +550,11 @@ def __init__( ------- Outsidetextfont """ - super(Outsidetextfont, self).__init__("outsidetextfont") - + super().__init__("outsidetextfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -665,90 +569,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/treemap/_pathbar.py b/plotly/graph_objs/treemap/_pathbar.py index 8cdf60c0be..2017552e68 100644 --- a/plotly/graph_objs/treemap/_pathbar.py +++ b/plotly/graph_objs/treemap/_pathbar.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Pathbar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "treemap" _path_str = "treemap.pathbar" _valid_props = {"edgeshape", "side", "textfont", "thickness", "visible"} - # edgeshape - # --------- @property def edgeshape(self): """ @@ -32,8 +31,6 @@ def edgeshape(self): def edgeshape(self, val): self["edgeshape"] = val - # side - # ---- @property def side(self): """ @@ -54,8 +51,6 @@ def side(self): def side(self, val): self["side"] = val - # textfont - # -------- @property def textfont(self): """ @@ -67,79 +62,6 @@ 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 @@ -150,8 +72,6 @@ def textfont(self): def textfont(self, val): self["textfont"] = val - # thickness - # --------- @property def thickness(self): """ @@ -172,8 +92,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # visible - # ------- @property def visible(self): """ @@ -193,8 +111,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -254,14 +170,11 @@ def __init__( ------- Pathbar """ - super(Pathbar, self).__init__("pathbar") - + super().__init__("pathbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -276,38 +189,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("edgeshape", arg, edgeshape) + self._set_property("side", arg, side) + self._set_property("textfont", arg, textfont) + self._set_property("thickness", arg, thickness) + self._set_property("visible", arg, visible) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/treemap/_root.py b/plotly/graph_objs/treemap/_root.py index 19fb073608..0e850b495d 100644 --- a/plotly/graph_objs/treemap/_root.py +++ b/plotly/graph_objs/treemap/_root.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Root(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "treemap" _path_str = "treemap.root" _valid_props = {"color"} - # color - # ----- @property def color(self): """ @@ -24,42 +23,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -71,8 +35,6 @@ def color(self): def color(self, val): self["color"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -100,14 +62,11 @@ def __init__(self, arg=None, color=None, **kwargs): ------- Root """ - super(Root, self).__init__("root") - + super().__init__("root") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -122,22 +81,9 @@ def __init__(self, arg=None, color=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = arg.pop("color", None) - _v = color if color is not None else _v - if _v is not None: - self["color"] = _v - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/treemap/_stream.py b/plotly/graph_objs/treemap/_stream.py index 8f1c320912..304280d694 100644 --- a/plotly/graph_objs/treemap/_stream.py +++ b/plotly/graph_objs/treemap/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "treemap" _path_str = "treemap.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -94,14 +89,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -116,26 +108,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/treemap/_textfont.py b/plotly/graph_objs/treemap/_textfont.py index 9e1aabaa35..72bc351528 100644 --- a/plotly/graph_objs/treemap/_textfont.py +++ b/plotly/graph_objs/treemap/_textfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "treemap" _path_str = "treemap.textfont" _valid_props = { @@ -29,8 +30,6 @@ class Textfont(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/treemap/_tiling.py b/plotly/graph_objs/treemap/_tiling.py index b892e7bdec..e88c1f7641 100644 --- a/plotly/graph_objs/treemap/_tiling.py +++ b/plotly/graph_objs/treemap/_tiling.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tiling(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "treemap" _path_str = "treemap.tiling" _valid_props = {"flip", "packing", "pad", "squarifyratio"} - # flip - # ---- @property def flip(self): """ @@ -33,8 +32,6 @@ def flip(self): def flip(self, val): self["flip"] = val - # packing - # ------- @property def packing(self): """ @@ -56,8 +53,6 @@ def packing(self): def packing(self, val): self["packing"] = val - # pad - # --- @property def pad(self): """ @@ -76,23 +71,20 @@ def pad(self): def pad(self, val): self["pad"] = val - # squarifyratio - # ------------- @property def squarifyratio(self): """ 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. + /github.com/d3/d3-hierarchy/blob/v3.1.1/README.md#squarify_rati + o 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. The 'squarifyratio' property is a number and may be specified as: - An int or float in the interval [1, inf] @@ -107,8 +99,6 @@ def squarifyratio(self): def squarifyratio(self, val): self["squarifyratio"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -123,18 +113,17 @@ def _prop_descriptions(self): 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. + https://github.com/d3/d3-hierarchy/blob/v3.1.1/README.m + d#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. """ def __init__( @@ -160,31 +149,27 @@ def __init__( 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. + https://github.com/d3/d3-hierarchy/blob/v3.1.1/README.m + d#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 ------- Tiling """ - super(Tiling, self).__init__("tiling") - + super().__init__("tiling") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -199,34 +184,12 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("flip", arg, flip) + self._set_property("packing", arg, packing) + self._set_property("pad", arg, pad) + self._set_property("squarifyratio", arg, squarifyratio) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/treemap/hoverlabel/__init__.py b/plotly/graph_objs/treemap/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/treemap/hoverlabel/__init__.py +++ b/plotly/graph_objs/treemap/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/treemap/hoverlabel/_font.py b/plotly/graph_objs/treemap/hoverlabel/_font.py index ca452284ed..fcf6a69b5e 100644 --- a/plotly/graph_objs/treemap/hoverlabel/_font.py +++ b/plotly/graph_objs/treemap/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "treemap.hoverlabel" _path_str = "treemap.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/treemap/legendgrouptitle/__init__.py b/plotly/graph_objs/treemap/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/treemap/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/treemap/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/treemap/legendgrouptitle/_font.py b/plotly/graph_objs/treemap/legendgrouptitle/_font.py index ff4b1beca0..a36a549794 100644 --- a/plotly/graph_objs/treemap/legendgrouptitle/_font.py +++ b/plotly/graph_objs/treemap/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "treemap.legendgrouptitle" _path_str = "treemap.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/treemap/marker/__init__.py b/plotly/graph_objs/treemap/marker/__init__.py index a8a98bb5ff..b175232abe 100644 --- a/plotly/graph_objs/treemap/marker/__init__.py +++ b/plotly/graph_objs/treemap/marker/__init__.py @@ -1,17 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._colorbar import ColorBar - from ._line import Line - from ._pad import Pad - from ._pattern import Pattern - 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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".colorbar"], + ["._colorbar.ColorBar", "._line.Line", "._pad.Pad", "._pattern.Pattern"], +) diff --git a/plotly/graph_objs/treemap/marker/_colorbar.py b/plotly/graph_objs/treemap/marker/_colorbar.py index 14184370a3..e6e38058c4 100644 --- a/plotly/graph_objs/treemap/marker/_colorbar.py +++ b/plotly/graph_objs/treemap/marker/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "treemap.marker" _path_str = "treemap.marker.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -913,8 +638,6 @@ 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 @@ -925,8 +648,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -949,8 +670,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -974,8 +693,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1000,8 +717,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1020,8 +735,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1047,8 +760,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1068,8 +779,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1091,8 +800,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1112,8 +819,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1134,8 +839,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1154,8 +857,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1175,8 +876,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1195,8 +894,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1215,8 +912,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1226,18 +921,6 @@ 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 @@ -1248,8 +931,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1274,8 +955,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1298,8 +977,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1318,8 +995,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1341,8 +1016,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1367,8 +1040,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1391,8 +1062,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1411,8 +1080,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1434,8 +1101,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1985,14 +1650,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2007,214 +1669,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/treemap/marker/_line.py b/plotly/graph_objs/treemap/marker/_line.py index 10d261ee15..b2b3dba880 100644 --- a/plotly/graph_objs/treemap/marker/_line.py +++ b/plotly/graph_objs/treemap/marker/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "treemap.marker" _path_str = "treemap.marker.line" _valid_props = {"color", "colorsrc", "width", "widthsrc"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -71,8 +35,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -91,8 +53,6 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # width - # ----- @property def width(self): """ @@ -112,8 +72,6 @@ def width(self): def width(self, val): self["width"] = val - # widthsrc - # -------- @property def widthsrc(self): """ @@ -132,8 +90,6 @@ def widthsrc(self): def widthsrc(self, val): self["widthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -180,14 +136,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -202,34 +155,12 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("width", arg, width) + self._set_property("widthsrc", arg, widthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/treemap/marker/_pad.py b/plotly/graph_objs/treemap/marker/_pad.py index 33e35a2cb6..d78fc03001 100644 --- a/plotly/graph_objs/treemap/marker/_pad.py +++ b/plotly/graph_objs/treemap/marker/_pad.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Pad(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "treemap.marker" _path_str = "treemap.marker.pad" _valid_props = {"b", "l", "r", "t"} - # b - # - @property def b(self): """ @@ -30,8 +29,6 @@ def b(self): def b(self, val): self["b"] = val - # l - # - @property def l(self): """ @@ -50,8 +47,6 @@ def l(self): def l(self, val): self["l"] = val - # r - # - @property def r(self): """ @@ -70,8 +65,6 @@ def r(self): def r(self, val): self["r"] = val - # t - # - @property def t(self): """ @@ -90,8 +83,6 @@ def t(self): def t(self, val): self["t"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -128,14 +119,11 @@ def __init__(self, arg=None, b=None, l=None, r=None, t=None, **kwargs): ------- Pad """ - super(Pad, self).__init__("pad") - + super().__init__("pad") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -150,34 +138,12 @@ def __init__(self, arg=None, b=None, l=None, r=None, t=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("b", arg, b) + self._set_property("l", arg, l) + self._set_property("r", arg, r) + self._set_property("t", arg, t) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/treemap/marker/_pattern.py b/plotly/graph_objs/treemap/marker/_pattern.py index a5f40d5387..c7e9825e8f 100644 --- a/plotly/graph_objs/treemap/marker/_pattern.py +++ b/plotly/graph_objs/treemap/marker/_pattern.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Pattern(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "treemap.marker" _path_str = "treemap.marker.pattern" _valid_props = { @@ -23,8 +24,6 @@ class Pattern(_BaseTraceHierarchyType): "soliditysrc", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -38,42 +37,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -86,8 +50,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -106,8 +68,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # fgcolor - # ------- @property def fgcolor(self): """ @@ -121,42 +81,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -169,8 +94,6 @@ def fgcolor(self): def fgcolor(self, val): self["fgcolor"] = val - # fgcolorsrc - # ---------- @property def fgcolorsrc(self): """ @@ -189,8 +112,6 @@ def fgcolorsrc(self): def fgcolorsrc(self, val): self["fgcolorsrc"] = val - # fgopacity - # --------- @property def fgopacity(self): """ @@ -210,8 +131,6 @@ def fgopacity(self): def fgopacity(self, val): self["fgopacity"] = val - # fillmode - # -------- @property def fillmode(self): """ @@ -232,8 +151,6 @@ def fillmode(self): def fillmode(self, val): self["fillmode"] = val - # shape - # ----- @property def shape(self): """ @@ -255,8 +172,6 @@ def shape(self): def shape(self, val): self["shape"] = val - # shapesrc - # -------- @property def shapesrc(self): """ @@ -275,8 +190,6 @@ def shapesrc(self): def shapesrc(self, val): self["shapesrc"] = val - # size - # ---- @property def size(self): """ @@ -297,8 +210,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -317,8 +228,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # solidity - # -------- @property def solidity(self): """ @@ -341,8 +250,6 @@ def solidity(self): def solidity(self, val): self["solidity"] = val - # soliditysrc - # ----------- @property def soliditysrc(self): """ @@ -361,8 +268,6 @@ def soliditysrc(self): def soliditysrc(self, val): self["soliditysrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -493,14 +398,11 @@ def __init__( ------- Pattern """ - super(Pattern, self).__init__("pattern") - + super().__init__("pattern") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -515,66 +417,20 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("fgcolor", arg, fgcolor) + self._set_property("fgcolorsrc", arg, fgcolorsrc) + self._set_property("fgopacity", arg, fgopacity) + self._set_property("fillmode", arg, fillmode) + self._set_property("shape", arg, shape) + self._set_property("shapesrc", arg, shapesrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("solidity", arg, solidity) + self._set_property("soliditysrc", arg, soliditysrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/treemap/marker/colorbar/__init__.py b/plotly/graph_objs/treemap/marker/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/treemap/marker/colorbar/__init__.py +++ b/plotly/graph_objs/treemap/marker/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/treemap/marker/colorbar/_tickfont.py b/plotly/graph_objs/treemap/marker/colorbar/_tickfont.py index 6c79bda5d4..1ee9fa71af 100644 --- a/plotly/graph_objs/treemap/marker/colorbar/_tickfont.py +++ b/plotly/graph_objs/treemap/marker/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "treemap.marker.colorbar" _path_str = "treemap.marker.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/treemap/marker/colorbar/_tickformatstop.py b/plotly/graph_objs/treemap/marker/colorbar/_tickformatstop.py index fa3754e45d..451e7c388b 100644 --- a/plotly/graph_objs/treemap/marker/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/treemap/marker/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "treemap.marker.colorbar" _path_str = "treemap.marker.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/treemap/marker/colorbar/_title.py b/plotly/graph_objs/treemap/marker/colorbar/_title.py index 98cc61b005..29bac042af 100644 --- a/plotly/graph_objs/treemap/marker/colorbar/_title.py +++ b/plotly/graph_objs/treemap/marker/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "treemap.marker.colorbar" _path_str = "treemap.marker.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/treemap/marker/colorbar/title/__init__.py b/plotly/graph_objs/treemap/marker/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/treemap/marker/colorbar/title/__init__.py +++ b/plotly/graph_objs/treemap/marker/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/treemap/marker/colorbar/title/_font.py b/plotly/graph_objs/treemap/marker/colorbar/title/_font.py index 77ed3544d4..7afefe673d 100644 --- a/plotly/graph_objs/treemap/marker/colorbar/title/_font.py +++ b/plotly/graph_objs/treemap/marker/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "treemap.marker.colorbar.title" _path_str = "treemap.marker.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/treemap/pathbar/__init__.py b/plotly/graph_objs/treemap/pathbar/__init__.py index 1640397aa7..2afd605560 100644 --- a/plotly/graph_objs/treemap/pathbar/__init__.py +++ b/plotly/graph_objs/treemap/pathbar/__init__.py @@ -1,11 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import(__name__, [], ["._textfont.Textfont"]) diff --git a/plotly/graph_objs/treemap/pathbar/_textfont.py b/plotly/graph_objs/treemap/pathbar/_textfont.py index 9695927e46..a7c9b59d01 100644 --- a/plotly/graph_objs/treemap/pathbar/_textfont.py +++ b/plotly/graph_objs/treemap/pathbar/_textfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "treemap.pathbar" _path_str = "treemap.pathbar.textfont" _valid_props = { @@ -29,8 +30,6 @@ class Textfont(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/violin/__init__.py b/plotly/graph_objs/violin/__init__.py index e172bcbf7d..9e0217028f 100644 --- a/plotly/graph_objs/violin/__init__.py +++ b/plotly/graph_objs/violin/__init__.py @@ -1,44 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._box import Box - from ._hoverlabel import Hoverlabel - from ._legendgrouptitle import Legendgrouptitle - from ._line import Line - from ._marker import Marker - from ._meanline import Meanline - from ._selected import Selected - from ._stream import Stream - from ._unselected import Unselected - from . import box - from . import hoverlabel - from . import legendgrouptitle - from . import marker - from . import selected - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/violin/_box.py b/plotly/graph_objs/violin/_box.py index 5b343e830e..c9a7d8855c 100644 --- a/plotly/graph_objs/violin/_box.py +++ b/plotly/graph_objs/violin/_box.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Box(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "violin" _path_str = "violin.box" _valid_props = {"fillcolor", "line", "visible", "width"} - # fillcolor - # --------- @property def fillcolor(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def fillcolor(self): def fillcolor(self, val): self["fillcolor"] = val - # line - # ---- @property def line(self): """ @@ -80,13 +42,6 @@ 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 @@ -97,8 +52,6 @@ def line(self): def line(self, val): self["line"] = val - # visible - # ------- @property def visible(self): """ @@ -118,8 +71,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # width - # ----- @property def width(self): """ @@ -140,8 +91,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -187,14 +136,11 @@ def __init__( ------- Box """ - super(Box, self).__init__("box") - + super().__init__("box") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -209,34 +155,12 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("fillcolor", arg, fillcolor) + self._set_property("line", arg, line) + self._set_property("visible", arg, visible) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/violin/_hoverlabel.py b/plotly/graph_objs/violin/_hoverlabel.py index 9577b2e519..94c528347d 100644 --- a/plotly/graph_objs/violin/_hoverlabel.py +++ b/plotly/graph_objs/violin/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "violin" _path_str = "violin.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/violin/_legendgrouptitle.py b/plotly/graph_objs/violin/_legendgrouptitle.py index 422d55b606..1051d22a88 100644 --- a/plotly/graph_objs/violin/_legendgrouptitle.py +++ b/plotly/graph_objs/violin/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "violin" _path_str = "violin.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/violin/_line.py b/plotly/graph_objs/violin/_line.py index b345e21426..4bfa170f36 100644 --- a/plotly/graph_objs/violin/_line.py +++ b/plotly/graph_objs/violin/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "violin" _path_str = "violin.line" _valid_props = {"color", "width"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # width - # ----- @property def width(self): """ @@ -89,8 +51,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -118,14 +78,11 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -140,26 +97,10 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/violin/_marker.py b/plotly/graph_objs/violin/_marker.py index 6cc91d1784..4a6f84a19d 100644 --- a/plotly/graph_objs/violin/_marker.py +++ b/plotly/graph_objs/violin/_marker.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "violin" _path_str = "violin.marker" _valid_props = { @@ -18,8 +19,6 @@ class Marker(_BaseTraceHierarchyType): "symbol", } - # angle - # ----- @property def angle(self): """ @@ -40,8 +39,6 @@ def angle(self): def angle(self, val): self["angle"] = val - # color - # ----- @property def color(self): """ @@ -55,42 +52,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -102,8 +64,6 @@ def color(self): def color(self, val): self["color"] = val - # line - # ---- @property def line(self): """ @@ -113,25 +73,6 @@ 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 @@ -142,8 +83,6 @@ def line(self): def line(self, val): self["line"] = val - # opacity - # ------- @property def opacity(self): """ @@ -162,8 +101,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # outliercolor - # ------------ @property def outliercolor(self): """ @@ -174,42 +111,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -221,8 +123,6 @@ def outliercolor(self): def outliercolor(self, val): self["outliercolor"] = val - # size - # ---- @property def size(self): """ @@ -241,8 +141,6 @@ def size(self): def size(self, val): self["size"] = val - # symbol - # ------ @property def symbol(self): """ @@ -353,8 +251,6 @@ def symbol(self): def symbol(self, val): self["symbol"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -431,14 +327,11 @@ def __init__( ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -453,46 +346,15 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("angle", arg, angle) + self._set_property("color", arg, color) + self._set_property("line", arg, line) + self._set_property("opacity", arg, opacity) + self._set_property("outliercolor", arg, outliercolor) + self._set_property("size", arg, size) + self._set_property("symbol", arg, symbol) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/violin/_meanline.py b/plotly/graph_objs/violin/_meanline.py index a01a203c03..0610fa9da1 100644 --- a/plotly/graph_objs/violin/_meanline.py +++ b/plotly/graph_objs/violin/_meanline.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Meanline(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "violin" _path_str = "violin.meanline" _valid_props = {"color", "visible", "width"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # visible - # ------- @property def visible(self): """ @@ -92,8 +54,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # width - # ----- @property def width(self): """ @@ -112,8 +72,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -154,14 +112,11 @@ def __init__(self, arg=None, color=None, visible=None, width=None, **kwargs): ------- Meanline """ - super(Meanline, self).__init__("meanline") - + super().__init__("meanline") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -176,30 +131,11 @@ def __init__(self, arg=None, color=None, visible=None, width=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("visible", arg, visible) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/violin/_selected.py b/plotly/graph_objs/violin/_selected.py index 5af0f9da16..7d60f7b232 100644 --- a/plotly/graph_objs/violin/_selected.py +++ b/plotly/graph_objs/violin/_selected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Selected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "violin" _path_str = "violin.selected" _valid_props = {"marker"} - # marker - # ------ @property def marker(self): """ @@ -21,15 +20,6 @@ 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 @@ -40,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -68,14 +56,11 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Selected """ - super(Selected, self).__init__("selected") - + super().__init__("selected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -90,22 +75,9 @@ def __init__(self, arg=None, marker=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/violin/_stream.py b/plotly/graph_objs/violin/_stream.py index 1650d9e04a..2891caf202 100644 --- a/plotly/graph_objs/violin/_stream.py +++ b/plotly/graph_objs/violin/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "violin" _path_str = "violin.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -93,14 +88,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -115,26 +107,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/violin/_unselected.py b/plotly/graph_objs/violin/_unselected.py index b2bbee1581..3889d2299e 100644 --- a/plotly/graph_objs/violin/_unselected.py +++ b/plotly/graph_objs/violin/_unselected.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Unselected(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "violin" _path_str = "violin.unselected" _valid_props = {"marker"} - # marker - # ------ @property def marker(self): """ @@ -21,18 +20,6 @@ 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 @@ -43,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -71,14 +56,11 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Unselected """ - super(Unselected, self).__init__("unselected") - + super().__init__("unselected") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -93,22 +75,9 @@ def __init__(self, arg=None, marker=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/violin/box/__init__.py b/plotly/graph_objs/violin/box/__init__.py index 8722c15a2b..579ff002ce 100644 --- a/plotly/graph_objs/violin/box/__init__.py +++ b/plotly/graph_objs/violin/box/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/violin/box/_line.py b/plotly/graph_objs/violin/box/_line.py index 82009a329e..496339a3d7 100644 --- a/plotly/graph_objs/violin/box/_line.py +++ b/plotly/graph_objs/violin/box/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "violin.box" _path_str = "violin.box.line" _valid_props = {"color", "width"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # width - # ----- @property def width(self): """ @@ -89,8 +51,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -119,14 +79,11 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -141,26 +98,10 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/violin/hoverlabel/__init__.py b/plotly/graph_objs/violin/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/violin/hoverlabel/__init__.py +++ b/plotly/graph_objs/violin/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/violin/hoverlabel/_font.py b/plotly/graph_objs/violin/hoverlabel/_font.py index 57c2ce2323..2e54df8f6f 100644 --- a/plotly/graph_objs/violin/hoverlabel/_font.py +++ b/plotly/graph_objs/violin/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "violin.hoverlabel" _path_str = "violin.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/violin/legendgrouptitle/__init__.py b/plotly/graph_objs/violin/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/violin/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/violin/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/violin/legendgrouptitle/_font.py b/plotly/graph_objs/violin/legendgrouptitle/_font.py index a29afec501..8f573bf47f 100644 --- a/plotly/graph_objs/violin/legendgrouptitle/_font.py +++ b/plotly/graph_objs/violin/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "violin.legendgrouptitle" _path_str = "violin.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/violin/marker/__init__.py b/plotly/graph_objs/violin/marker/__init__.py index 8722c15a2b..579ff002ce 100644 --- a/plotly/graph_objs/violin/marker/__init__.py +++ b/plotly/graph_objs/violin/marker/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/violin/marker/_line.py b/plotly/graph_objs/violin/marker/_line.py index 1b5ca38df2..e80cc186cd 100644 --- a/plotly/graph_objs/violin/marker/_line.py +++ b/plotly/graph_objs/violin/marker/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "violin.marker" _path_str = "violin.marker.line" _valid_props = {"color", "outliercolor", "outlierwidth", "width"} - # color - # ----- @property def color(self): """ @@ -25,42 +24,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -72,8 +36,6 @@ def color(self): def color(self, val): self["color"] = val - # outliercolor - # ------------ @property def outliercolor(self): """ @@ -85,42 +47,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -132,8 +59,6 @@ def outliercolor(self): def outliercolor(self, val): self["outliercolor"] = val - # outlierwidth - # ------------ @property def outlierwidth(self): """ @@ -153,8 +78,6 @@ def outlierwidth(self): def outlierwidth(self, val): self["outlierwidth"] = val - # width - # ----- @property def width(self): """ @@ -173,8 +96,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -233,14 +154,11 @@ def __init__( ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -255,34 +173,12 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("outliercolor", arg, outliercolor) + self._set_property("outlierwidth", arg, outlierwidth) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/violin/selected/__init__.py b/plotly/graph_objs/violin/selected/__init__.py index dfd3406713..17b6d670bc 100644 --- a/plotly/graph_objs/violin/selected/__init__.py +++ b/plotly/graph_objs/violin/selected/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/violin/selected/_marker.py b/plotly/graph_objs/violin/selected/_marker.py index ab927292f8..5dffaba486 100644 --- a/plotly/graph_objs/violin/selected/_marker.py +++ b/plotly/graph_objs/violin/selected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "violin.selected" _path_str = "violin.selected.marker" _valid_props = {"color", "opacity", "size"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # opacity - # ------- @property def opacity(self): """ @@ -89,8 +51,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # size - # ---- @property def size(self): """ @@ -109,8 +69,6 @@ def size(self): def size(self, val): self["size"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -143,14 +101,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -165,30 +120,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("opacity", arg, opacity) + self._set_property("size", arg, size) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/violin/unselected/__init__.py b/plotly/graph_objs/violin/unselected/__init__.py index dfd3406713..17b6d670bc 100644 --- a/plotly/graph_objs/violin/unselected/__init__.py +++ b/plotly/graph_objs/violin/unselected/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/violin/unselected/_marker.py b/plotly/graph_objs/violin/unselected/_marker.py index 76449d2b9b..a13396b5d0 100644 --- a/plotly/graph_objs/violin/unselected/_marker.py +++ b/plotly/graph_objs/violin/unselected/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "violin.unselected" _path_str = "violin.unselected.marker" _valid_props = {"color", "opacity", "size"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # opacity - # ------- @property def opacity(self): """ @@ -91,8 +53,6 @@ def opacity(self): def opacity(self, val): self["opacity"] = val - # size - # ---- @property def size(self): """ @@ -112,8 +72,6 @@ def size(self): def size(self, val): self["size"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -152,14 +110,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -174,30 +129,11 @@ def __init__(self, arg=None, color=None, opacity=None, size=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("opacity", arg, opacity) + self._set_property("size", arg, size) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/volume/__init__.py b/plotly/graph_objs/volume/__init__.py index 505fd03f99..0b8a4b7653 100644 --- a/plotly/graph_objs/volume/__init__.py +++ b/plotly/graph_objs/volume/__init__.py @@ -1,40 +1,20 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._caps import Caps - from ._colorbar import ColorBar - from ._contour import Contour - from ._hoverlabel import Hoverlabel - from ._legendgrouptitle import Legendgrouptitle - from ._lighting import Lighting - from ._lightposition import Lightposition - from ._slices import Slices - from ._spaceframe import Spaceframe - from ._stream import Stream - from ._surface import Surface - from . import caps - from . import colorbar - from . import hoverlabel - from . import legendgrouptitle - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/volume/_caps.py b/plotly/graph_objs/volume/_caps.py index 9d6462ccc8..3b273a0252 100644 --- a/plotly/graph_objs/volume/_caps.py +++ b/plotly/graph_objs/volume/_caps.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Caps(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "volume" _path_str = "volume.caps" _valid_props = {"x", "y", "z"} - # x - # - @property def x(self): """ @@ -21,22 +20,6 @@ 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 @@ -47,8 +30,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -58,22 +39,6 @@ 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 @@ -84,8 +49,6 @@ def y(self): def y(self, val): self["y"] = val - # z - # - @property def z(self): """ @@ -95,22 +58,6 @@ 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 @@ -121,8 +68,6 @@ def z(self): def z(self, val): self["z"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -160,14 +105,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Caps """ - super(Caps, self).__init__("caps") - + super().__init__("caps") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -182,30 +124,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("x", arg, x) + self._set_property("y", arg, y) + self._set_property("z", arg, z) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/volume/_colorbar.py b/plotly/graph_objs/volume/_colorbar.py index a71748a52c..ec9959f144 100644 --- a/plotly/graph_objs/volume/_colorbar.py +++ b/plotly/graph_objs/volume/_colorbar.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class ColorBar(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "volume" _path_str = "volume.colorbar" _valid_props = { @@ -60,8 +61,6 @@ class ColorBar(_BaseTraceHierarchyType): "yref", } - # bgcolor - # ------- @property def bgcolor(self): """ @@ -72,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -119,8 +83,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -131,42 +93,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -178,8 +105,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # borderwidth - # ----------- @property def borderwidth(self): """ @@ -198,8 +123,6 @@ def borderwidth(self): def borderwidth(self, val): self["borderwidth"] = val - # dtick - # ----- @property def dtick(self): """ @@ -236,8 +159,6 @@ def dtick(self): def dtick(self, val): self["dtick"] = val - # exponentformat - # -------------- @property def exponentformat(self): """ @@ -261,8 +182,6 @@ def exponentformat(self): def exponentformat(self, val): self["exponentformat"] = val - # labelalias - # ---------- @property def labelalias(self): """ @@ -288,8 +207,6 @@ def labelalias(self): def labelalias(self, val): self["labelalias"] = val - # len - # --- @property def len(self): """ @@ -310,8 +227,6 @@ def len(self): def len(self, val): self["len"] = val - # lenmode - # ------- @property def lenmode(self): """ @@ -333,8 +248,6 @@ def lenmode(self): def lenmode(self, val): self["lenmode"] = val - # minexponent - # ----------- @property def minexponent(self): """ @@ -354,8 +267,6 @@ def minexponent(self): def minexponent(self, val): self["minexponent"] = val - # nticks - # ------ @property def nticks(self): """ @@ -378,8 +289,6 @@ def nticks(self): def nticks(self, val): self["nticks"] = val - # orientation - # ----------- @property def orientation(self): """ @@ -399,8 +308,6 @@ def orientation(self): def orientation(self, val): self["orientation"] = val - # outlinecolor - # ------------ @property def outlinecolor(self): """ @@ -411,42 +318,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -458,8 +330,6 @@ def outlinecolor(self): def outlinecolor(self, val): self["outlinecolor"] = val - # outlinewidth - # ------------ @property def outlinewidth(self): """ @@ -478,8 +348,6 @@ def outlinewidth(self): def outlinewidth(self, val): self["outlinewidth"] = val - # separatethousands - # ----------------- @property def separatethousands(self): """ @@ -498,8 +366,6 @@ def separatethousands(self): def separatethousands(self, val): self["separatethousands"] = val - # showexponent - # ------------ @property def showexponent(self): """ @@ -522,8 +388,6 @@ def showexponent(self): def showexponent(self, val): self["showexponent"] = val - # showticklabels - # -------------- @property def showticklabels(self): """ @@ -542,8 +406,6 @@ def showticklabels(self): def showticklabels(self, val): self["showticklabels"] = val - # showtickprefix - # -------------- @property def showtickprefix(self): """ @@ -566,8 +428,6 @@ def showtickprefix(self): def showtickprefix(self, val): self["showtickprefix"] = val - # showticksuffix - # -------------- @property def showticksuffix(self): """ @@ -587,8 +447,6 @@ def showticksuffix(self): def showticksuffix(self, val): self["showticksuffix"] = val - # thickness - # --------- @property def thickness(self): """ @@ -608,8 +466,6 @@ def thickness(self): def thickness(self, val): self["thickness"] = val - # thicknessmode - # ------------- @property def thicknessmode(self): """ @@ -631,8 +487,6 @@ def thicknessmode(self): def thicknessmode(self, val): self["thicknessmode"] = val - # tick0 - # ----- @property def tick0(self): """ @@ -658,8 +512,6 @@ def tick0(self): def tick0(self, val): self["tick0"] = val - # tickangle - # --------- @property def tickangle(self): """ @@ -682,8 +534,6 @@ def tickangle(self): def tickangle(self, val): self["tickangle"] = val - # tickcolor - # --------- @property def tickcolor(self): """ @@ -694,42 +544,7 @@ 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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -741,8 +556,6 @@ def tickcolor(self): def tickcolor(self, val): self["tickcolor"] = val - # tickfont - # -------- @property def tickfont(self): """ @@ -754,52 +567,6 @@ 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 @@ -810,8 +577,6 @@ def tickfont(self): def tickfont(self, val): self["tickfont"] = val - # tickformat - # ---------- @property def tickformat(self): """ @@ -840,8 +605,6 @@ def tickformat(self): def tickformat(self, val): self["tickformat"] = val - # tickformatstops - # --------------- @property def tickformatstops(self): """ @@ -851,42 +614,6 @@ 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] @@ -897,8 +624,6 @@ def tickformatstops(self): def tickformatstops(self, val): self["tickformatstops"] = val - # tickformatstopdefaults - # ---------------------- @property def tickformatstopdefaults(self): """ @@ -913,8 +638,6 @@ 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 @@ -925,8 +648,6 @@ def tickformatstopdefaults(self): def tickformatstopdefaults(self, val): self["tickformatstopdefaults"] = val - # ticklabeloverflow - # ----------------- @property def ticklabeloverflow(self): """ @@ -949,8 +670,6 @@ def ticklabeloverflow(self): def ticklabeloverflow(self, val): self["ticklabeloverflow"] = val - # ticklabelposition - # ----------------- @property def ticklabelposition(self): """ @@ -974,8 +693,6 @@ def ticklabelposition(self): def ticklabelposition(self, val): self["ticklabelposition"] = val - # ticklabelstep - # ------------- @property def ticklabelstep(self): """ @@ -1000,8 +717,6 @@ def ticklabelstep(self): def ticklabelstep(self, val): self["ticklabelstep"] = val - # ticklen - # ------- @property def ticklen(self): """ @@ -1020,8 +735,6 @@ def ticklen(self): def ticklen(self, val): self["ticklen"] = val - # tickmode - # -------- @property def tickmode(self): """ @@ -1047,8 +760,6 @@ def tickmode(self): def tickmode(self, val): self["tickmode"] = val - # tickprefix - # ---------- @property def tickprefix(self): """ @@ -1068,8 +779,6 @@ def tickprefix(self): def tickprefix(self, val): self["tickprefix"] = val - # ticks - # ----- @property def ticks(self): """ @@ -1091,8 +800,6 @@ def ticks(self): def ticks(self, val): self["ticks"] = val - # ticksuffix - # ---------- @property def ticksuffix(self): """ @@ -1112,8 +819,6 @@ def ticksuffix(self): def ticksuffix(self, val): self["ticksuffix"] = val - # ticktext - # -------- @property def ticktext(self): """ @@ -1134,8 +839,6 @@ def ticktext(self): def ticktext(self, val): self["ticktext"] = val - # ticktextsrc - # ----------- @property def ticktextsrc(self): """ @@ -1154,8 +857,6 @@ def ticktextsrc(self): def ticktextsrc(self, val): self["ticktextsrc"] = val - # tickvals - # -------- @property def tickvals(self): """ @@ -1175,8 +876,6 @@ def tickvals(self): def tickvals(self, val): self["tickvals"] = val - # tickvalssrc - # ----------- @property def tickvalssrc(self): """ @@ -1195,8 +894,6 @@ def tickvalssrc(self): def tickvalssrc(self, val): self["tickvalssrc"] = val - # tickwidth - # --------- @property def tickwidth(self): """ @@ -1215,8 +912,6 @@ def tickwidth(self): def tickwidth(self, val): self["tickwidth"] = val - # title - # ----- @property def title(self): """ @@ -1226,18 +921,6 @@ 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 @@ -1248,8 +931,6 @@ def title(self): def title(self, val): self["title"] = val - # x - # - @property def x(self): """ @@ -1274,8 +955,6 @@ def x(self): def x(self, val): self["x"] = val - # xanchor - # ------- @property def xanchor(self): """ @@ -1298,8 +977,6 @@ def xanchor(self): def xanchor(self, val): self["xanchor"] = val - # xpad - # ---- @property def xpad(self): """ @@ -1318,8 +995,6 @@ def xpad(self): def xpad(self, val): self["xpad"] = val - # xref - # ---- @property def xref(self): """ @@ -1341,8 +1016,6 @@ def xref(self): def xref(self, val): self["xref"] = val - # y - # - @property def y(self): """ @@ -1367,8 +1040,6 @@ def y(self): def y(self, val): self["y"] = val - # yanchor - # ------- @property def yanchor(self): """ @@ -1391,8 +1062,6 @@ def yanchor(self): def yanchor(self, val): self["yanchor"] = val - # ypad - # ---- @property def ypad(self): """ @@ -1411,8 +1080,6 @@ def ypad(self): def ypad(self, val): self["ypad"] = val - # yref - # ---- @property def yref(self): """ @@ -1434,8 +1101,6 @@ def yref(self): def yref(self, val): self["yref"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -1985,14 +1650,11 @@ def __init__( ------- ColorBar """ - super(ColorBar, self).__init__("colorbar") - + super().__init__("colorbar") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -2007,214 +1669,57 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("borderwidth", arg, borderwidth) + self._set_property("dtick", arg, dtick) + self._set_property("exponentformat", arg, exponentformat) + self._set_property("labelalias", arg, labelalias) + self._set_property("len", arg, len) + self._set_property("lenmode", arg, lenmode) + self._set_property("minexponent", arg, minexponent) + self._set_property("nticks", arg, nticks) + self._set_property("orientation", arg, orientation) + self._set_property("outlinecolor", arg, outlinecolor) + self._set_property("outlinewidth", arg, outlinewidth) + self._set_property("separatethousands", arg, separatethousands) + self._set_property("showexponent", arg, showexponent) + self._set_property("showticklabels", arg, showticklabels) + self._set_property("showtickprefix", arg, showtickprefix) + self._set_property("showticksuffix", arg, showticksuffix) + self._set_property("thickness", arg, thickness) + self._set_property("thicknessmode", arg, thicknessmode) + self._set_property("tick0", arg, tick0) + self._set_property("tickangle", arg, tickangle) + self._set_property("tickcolor", arg, tickcolor) + self._set_property("tickfont", arg, tickfont) + self._set_property("tickformat", arg, tickformat) + self._set_property("tickformatstops", arg, tickformatstops) + self._set_property("tickformatstopdefaults", arg, tickformatstopdefaults) + self._set_property("ticklabeloverflow", arg, ticklabeloverflow) + self._set_property("ticklabelposition", arg, ticklabelposition) + self._set_property("ticklabelstep", arg, ticklabelstep) + self._set_property("ticklen", arg, ticklen) + self._set_property("tickmode", arg, tickmode) + self._set_property("tickprefix", arg, tickprefix) + self._set_property("ticks", arg, ticks) + self._set_property("ticksuffix", arg, ticksuffix) + self._set_property("ticktext", arg, ticktext) + self._set_property("ticktextsrc", arg, ticktextsrc) + self._set_property("tickvals", arg, tickvals) + self._set_property("tickvalssrc", arg, tickvalssrc) + self._set_property("tickwidth", arg, tickwidth) + self._set_property("title", arg, title) + self._set_property("x", arg, x) + self._set_property("xanchor", arg, xanchor) + self._set_property("xpad", arg, xpad) + self._set_property("xref", arg, xref) + self._set_property("y", arg, y) + self._set_property("yanchor", arg, yanchor) + self._set_property("ypad", arg, ypad) + self._set_property("yref", arg, yref) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/volume/_contour.py b/plotly/graph_objs/volume/_contour.py index 4faf0876af..2190f08f2c 100644 --- a/plotly/graph_objs/volume/_contour.py +++ b/plotly/graph_objs/volume/_contour.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Contour(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "volume" _path_str = "volume.contour" _valid_props = {"color", "show", "width"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # show - # ---- @property def show(self): """ @@ -89,8 +51,6 @@ def show(self): def show(self, val): self["show"] = val - # width - # ----- @property def width(self): """ @@ -109,8 +69,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -143,14 +101,11 @@ def __init__(self, arg=None, color=None, show=None, width=None, **kwargs): ------- Contour """ - super(Contour, self).__init__("contour") - + super().__init__("contour") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -165,30 +120,11 @@ def __init__(self, arg=None, color=None, show=None, width=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("show", arg, show) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/volume/_hoverlabel.py b/plotly/graph_objs/volume/_hoverlabel.py index 77b9091841..5602c1f924 100644 --- a/plotly/graph_objs/volume/_hoverlabel.py +++ b/plotly/graph_objs/volume/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "volume" _path_str = "volume.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/volume/_legendgrouptitle.py b/plotly/graph_objs/volume/_legendgrouptitle.py index 5a47d42759..e9b3629351 100644 --- a/plotly/graph_objs/volume/_legendgrouptitle.py +++ b/plotly/graph_objs/volume/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "volume" _path_str = "volume.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/volume/_lighting.py b/plotly/graph_objs/volume/_lighting.py index d27f9d1e9c..3e9612ffa5 100644 --- a/plotly/graph_objs/volume/_lighting.py +++ b/plotly/graph_objs/volume/_lighting.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Lighting(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "volume" _path_str = "volume.lighting" _valid_props = { @@ -18,8 +19,6 @@ class Lighting(_BaseTraceHierarchyType): "vertexnormalsepsilon", } - # ambient - # ------- @property def ambient(self): """ @@ -39,8 +38,6 @@ def ambient(self): def ambient(self, val): self["ambient"] = val - # diffuse - # ------- @property def diffuse(self): """ @@ -60,8 +57,6 @@ def diffuse(self): def diffuse(self, val): self["diffuse"] = val - # facenormalsepsilon - # ------------------ @property def facenormalsepsilon(self): """ @@ -81,8 +76,6 @@ def facenormalsepsilon(self): def facenormalsepsilon(self, val): self["facenormalsepsilon"] = val - # fresnel - # ------- @property def fresnel(self): """ @@ -103,8 +96,6 @@ def fresnel(self): def fresnel(self, val): self["fresnel"] = val - # roughness - # --------- @property def roughness(self): """ @@ -124,8 +115,6 @@ def roughness(self): def roughness(self, val): self["roughness"] = val - # specular - # -------- @property def specular(self): """ @@ -145,8 +134,6 @@ def specular(self): def specular(self, val): self["specular"] = val - # vertexnormalsepsilon - # -------------------- @property def vertexnormalsepsilon(self): """ @@ -166,8 +153,6 @@ def vertexnormalsepsilon(self): def vertexnormalsepsilon(self, val): self["vertexnormalsepsilon"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -245,14 +230,11 @@ def __init__( ------- Lighting """ - super(Lighting, self).__init__("lighting") - + super().__init__("lighting") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -267,46 +249,15 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("ambient", arg, ambient) + self._set_property("diffuse", arg, diffuse) + self._set_property("facenormalsepsilon", arg, facenormalsepsilon) + self._set_property("fresnel", arg, fresnel) + self._set_property("roughness", arg, roughness) + self._set_property("specular", arg, specular) + self._set_property("vertexnormalsepsilon", arg, vertexnormalsepsilon) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/volume/_lightposition.py b/plotly/graph_objs/volume/_lightposition.py index a0e0eb1f86..8b1ab5b88d 100644 --- a/plotly/graph_objs/volume/_lightposition.py +++ b/plotly/graph_objs/volume/_lightposition.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Lightposition(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "volume" _path_str = "volume.lightposition" _valid_props = {"x", "y", "z"} - # x - # - @property def x(self): """ @@ -30,8 +29,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -50,8 +47,6 @@ def y(self): def y(self, val): self["y"] = val - # z - # - @property def z(self): """ @@ -70,8 +65,6 @@ def z(self): def z(self, val): self["z"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -110,14 +103,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Lightposition """ - super(Lightposition, self).__init__("lightposition") - + super().__init__("lightposition") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -132,30 +122,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("x", arg, x) + self._set_property("y", arg, y) + self._set_property("z", arg, z) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/volume/_slices.py b/plotly/graph_objs/volume/_slices.py index e5b47a34ee..84938f11cb 100644 --- a/plotly/graph_objs/volume/_slices.py +++ b/plotly/graph_objs/volume/_slices.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Slices(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "volume" _path_str = "volume.slices" _valid_props = {"x", "y", "z"} - # x - # - @property def x(self): """ @@ -21,27 +20,6 @@ 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 @@ -52,8 +30,6 @@ def x(self): def x(self, val): self["x"] = val - # y - # - @property def y(self): """ @@ -63,27 +39,6 @@ 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 @@ -94,8 +49,6 @@ def y(self): def y(self, val): self["y"] = val - # z - # - @property def z(self): """ @@ -105,27 +58,6 @@ 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 @@ -136,8 +68,6 @@ def z(self): def z(self, val): self["z"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -175,14 +105,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): ------- Slices """ - super(Slices, self).__init__("slices") - + super().__init__("slices") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -197,30 +124,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("x", arg, x) + self._set_property("y", arg, y) + self._set_property("z", arg, z) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/volume/_spaceframe.py b/plotly/graph_objs/volume/_spaceframe.py index 8912ff3c28..112bfa2ea6 100644 --- a/plotly/graph_objs/volume/_spaceframe.py +++ b/plotly/graph_objs/volume/_spaceframe.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Spaceframe(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "volume" _path_str = "volume.spaceframe" _valid_props = {"fill", "show"} - # fill - # ---- @property def fill(self): """ @@ -33,8 +32,6 @@ def fill(self): def fill(self, val): self["fill"] = val - # show - # ---- @property def show(self): """ @@ -55,8 +52,6 @@ def show(self): def show(self, val): self["show"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -97,14 +92,11 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): ------- Spaceframe """ - super(Spaceframe, self).__init__("spaceframe") - + super().__init__("spaceframe") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -119,26 +111,10 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("fill", arg, fill) + self._set_property("show", arg, show) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/volume/_stream.py b/plotly/graph_objs/volume/_stream.py index 3c5778090a..8dc9b6fb43 100644 --- a/plotly/graph_objs/volume/_stream.py +++ b/plotly/graph_objs/volume/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "volume" _path_str = "volume.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -93,14 +88,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -115,26 +107,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/volume/_surface.py b/plotly/graph_objs/volume/_surface.py index b4547f344d..1b9812a9a9 100644 --- a/plotly/graph_objs/volume/_surface.py +++ b/plotly/graph_objs/volume/_surface.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Surface(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "volume" _path_str = "volume.surface" _valid_props = {"count", "fill", "pattern", "show"} - # count - # ----- @property def count(self): """ @@ -33,8 +32,6 @@ def count(self): def count(self, val): self["count"] = val - # fill - # ---- @property def fill(self): """ @@ -56,8 +53,6 @@ def fill(self): def fill(self, val): self["fill"] = val - # pattern - # ------- @property def pattern(self): """ @@ -85,8 +80,6 @@ def pattern(self): def pattern(self, val): self["pattern"] = val - # show - # ---- @property def show(self): """ @@ -105,8 +98,6 @@ def show(self): def show(self, val): self["show"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -175,14 +166,11 @@ def __init__( ------- Surface """ - super(Surface, self).__init__("surface") - + super().__init__("surface") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -197,34 +185,12 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("count", arg, count) + self._set_property("fill", arg, fill) + self._set_property("pattern", arg, pattern) + self._set_property("show", arg, show) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/volume/caps/__init__.py b/plotly/graph_objs/volume/caps/__init__.py index b7c5709451..649c038369 100644 --- a/plotly/graph_objs/volume/caps/__init__.py +++ b/plotly/graph_objs/volume/caps/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._x.X", "._y.Y", "._z.Z"] +) diff --git a/plotly/graph_objs/volume/caps/_x.py b/plotly/graph_objs/volume/caps/_x.py index 93661103d0..f7a92b3c8f 100644 --- a/plotly/graph_objs/volume/caps/_x.py +++ b/plotly/graph_objs/volume/caps/_x.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class X(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "volume.caps" _path_str = "volume.caps.x" _valid_props = {"fill", "show"} - # fill - # ---- @property def fill(self): """ @@ -33,8 +32,6 @@ def fill(self): def fill(self, val): self["fill"] = val - # show - # ---- @property def show(self): """ @@ -56,8 +53,6 @@ def show(self): def show(self, val): self["show"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -101,14 +96,11 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): ------- X """ - super(X, self).__init__("x") - + super().__init__("x") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -123,26 +115,10 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("fill", arg, fill) + self._set_property("show", arg, show) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/volume/caps/_y.py b/plotly/graph_objs/volume/caps/_y.py index 956a5b4936..0ff10c6f9e 100644 --- a/plotly/graph_objs/volume/caps/_y.py +++ b/plotly/graph_objs/volume/caps/_y.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Y(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "volume.caps" _path_str = "volume.caps.y" _valid_props = {"fill", "show"} - # fill - # ---- @property def fill(self): """ @@ -33,8 +32,6 @@ def fill(self): def fill(self, val): self["fill"] = val - # show - # ---- @property def show(self): """ @@ -56,8 +53,6 @@ def show(self): def show(self, val): self["show"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -101,14 +96,11 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): ------- Y """ - super(Y, self).__init__("y") - + super().__init__("y") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -123,26 +115,10 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("fill", arg, fill) + self._set_property("show", arg, show) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/volume/caps/_z.py b/plotly/graph_objs/volume/caps/_z.py index a42a47589f..a9bcd9c44e 100644 --- a/plotly/graph_objs/volume/caps/_z.py +++ b/plotly/graph_objs/volume/caps/_z.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Z(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "volume.caps" _path_str = "volume.caps.z" _valid_props = {"fill", "show"} - # fill - # ---- @property def fill(self): """ @@ -33,8 +32,6 @@ def fill(self): def fill(self, val): self["fill"] = val - # show - # ---- @property def show(self): """ @@ -56,8 +53,6 @@ def show(self): def show(self, val): self["show"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -101,14 +96,11 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): ------- Z """ - super(Z, self).__init__("z") - + super().__init__("z") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -123,26 +115,10 @@ def __init__(self, arg=None, fill=None, show=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("fill", arg, fill) + self._set_property("show", arg, show) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/volume/colorbar/__init__.py b/plotly/graph_objs/volume/colorbar/__init__.py index e20590b714..cc97be8661 100644 --- a/plotly/graph_objs/volume/colorbar/__init__.py +++ b/plotly/graph_objs/volume/colorbar/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickfont import Tickfont - from ._tickformatstop import Tickformatstop - from ._title import Title - from . import title -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [".title"], - ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [".title"], + ["._tickfont.Tickfont", "._tickformatstop.Tickformatstop", "._title.Title"], +) diff --git a/plotly/graph_objs/volume/colorbar/_tickfont.py b/plotly/graph_objs/volume/colorbar/_tickfont.py index f07cfd2ff4..d851fe9bb5 100644 --- a/plotly/graph_objs/volume/colorbar/_tickfont.py +++ b/plotly/graph_objs/volume/colorbar/_tickfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "volume.colorbar" _path_str = "volume.colorbar.tickfont" _valid_props = { @@ -20,8 +21,6 @@ class Tickfont(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Tickfont """ - super(Tickfont, self).__init__("tickfont") - + super().__init__("tickfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/volume/colorbar/_tickformatstop.py b/plotly/graph_objs/volume/colorbar/_tickformatstop.py index 103def0361..918dcd4992 100644 --- a/plotly/graph_objs/volume/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/volume/colorbar/_tickformatstop.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Tickformatstop(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "volume.colorbar" _path_str = "volume.colorbar.tickformatstop" _valid_props = {"dtickrange", "enabled", "name", "templateitemname", "value"} - # dtickrange - # ---------- @property def dtickrange(self): """ @@ -35,8 +34,6 @@ def dtickrange(self): def dtickrange(self, val): self["dtickrange"] = val - # enabled - # ------- @property def enabled(self): """ @@ -56,8 +53,6 @@ def enabled(self): def enabled(self, val): self["enabled"] = val - # name - # ---- @property def name(self): """ @@ -83,8 +78,6 @@ def name(self): def name(self, val): self["name"] = val - # templateitemname - # ---------------- @property def templateitemname(self): """ @@ -111,8 +104,6 @@ def templateitemname(self): def templateitemname(self, val): self["templateitemname"] = val - # value - # ----- @property def value(self): """ @@ -133,8 +124,6 @@ def value(self): def value(self, val): self["value"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -224,14 +213,11 @@ def __init__( ------- Tickformatstop """ - super(Tickformatstop, self).__init__("tickformatstops") - + super().__init__("tickformatstops") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -246,38 +232,13 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("dtickrange", arg, dtickrange) + self._set_property("enabled", arg, enabled) + self._set_property("name", arg, name) + self._set_property("templateitemname", arg, templateitemname) + self._set_property("value", arg, value) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/volume/colorbar/_title.py b/plotly/graph_objs/volume/colorbar/_title.py index fb92277575..759532da0e 100644 --- a/plotly/graph_objs/volume/colorbar/_title.py +++ b/plotly/graph_objs/volume/colorbar/_title.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Title(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "volume.colorbar" _path_str = "volume.colorbar.title" _valid_props = {"font", "side", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # side - # ---- @property def side(self): """ @@ -102,8 +53,6 @@ def side(self): def side(self, val): self["side"] = val - # text - # ---- @property def text(self): """ @@ -123,8 +72,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -163,14 +110,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): ------- Title """ - super(Title, self).__init__("title") - + super().__init__("title") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -185,30 +129,11 @@ def __init__(self, arg=None, font=None, side=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("side", arg, side) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/volume/colorbar/title/__init__.py b/plotly/graph_objs/volume/colorbar/title/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/volume/colorbar/title/__init__.py +++ b/plotly/graph_objs/volume/colorbar/title/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/volume/colorbar/title/_font.py b/plotly/graph_objs/volume/colorbar/title/_font.py index 0b90faab5d..7529bd09c0 100644 --- a/plotly/graph_objs/volume/colorbar/title/_font.py +++ b/plotly/graph_objs/volume/colorbar/title/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "volume.colorbar.title" _path_str = "volume.colorbar.title.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/volume/hoverlabel/__init__.py b/plotly/graph_objs/volume/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/volume/hoverlabel/__init__.py +++ b/plotly/graph_objs/volume/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/volume/hoverlabel/_font.py b/plotly/graph_objs/volume/hoverlabel/_font.py index a095ce2b54..77794cf3f2 100644 --- a/plotly/graph_objs/volume/hoverlabel/_font.py +++ b/plotly/graph_objs/volume/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "volume.hoverlabel" _path_str = "volume.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/volume/legendgrouptitle/__init__.py b/plotly/graph_objs/volume/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/volume/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/volume/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/volume/legendgrouptitle/_font.py b/plotly/graph_objs/volume/legendgrouptitle/_font.py index 66cfcd0a4d..2f508e8752 100644 --- a/plotly/graph_objs/volume/legendgrouptitle/_font.py +++ b/plotly/graph_objs/volume/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "volume.legendgrouptitle" _path_str = "volume.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/volume/slices/__init__.py b/plotly/graph_objs/volume/slices/__init__.py index b7c5709451..649c038369 100644 --- a/plotly/graph_objs/volume/slices/__init__.py +++ b/plotly/graph_objs/volume/slices/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._x.X", "._y.Y", "._z.Z"] +) diff --git a/plotly/graph_objs/volume/slices/_x.py b/plotly/graph_objs/volume/slices/_x.py index 04d84e1847..16e8e139d2 100644 --- a/plotly/graph_objs/volume/slices/_x.py +++ b/plotly/graph_objs/volume/slices/_x.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class X(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "volume.slices" _path_str = "volume.slices.x" _valid_props = {"fill", "locations", "locationssrc", "show"} - # fill - # ---- @property def fill(self): """ @@ -33,8 +32,6 @@ def fill(self): def fill(self, val): self["fill"] = val - # locations - # --------- @property def locations(self): """ @@ -55,8 +52,6 @@ def locations(self): def locations(self, val): self["locations"] = val - # locationssrc - # ------------ @property def locationssrc(self): """ @@ -76,8 +71,6 @@ def locationssrc(self): def locationssrc(self, val): self["locationssrc"] = val - # show - # ---- @property def show(self): """ @@ -97,8 +90,6 @@ def show(self): def show(self, val): self["show"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -159,14 +150,11 @@ def __init__( ------- X """ - super(X, self).__init__("x") - + super().__init__("x") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -181,34 +169,12 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("fill", arg, fill) + self._set_property("locations", arg, locations) + self._set_property("locationssrc", arg, locationssrc) + self._set_property("show", arg, show) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/volume/slices/_y.py b/plotly/graph_objs/volume/slices/_y.py index dbf474bd00..a6f1fac426 100644 --- a/plotly/graph_objs/volume/slices/_y.py +++ b/plotly/graph_objs/volume/slices/_y.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Y(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "volume.slices" _path_str = "volume.slices.y" _valid_props = {"fill", "locations", "locationssrc", "show"} - # fill - # ---- @property def fill(self): """ @@ -33,8 +32,6 @@ def fill(self): def fill(self, val): self["fill"] = val - # locations - # --------- @property def locations(self): """ @@ -55,8 +52,6 @@ def locations(self): def locations(self, val): self["locations"] = val - # locationssrc - # ------------ @property def locationssrc(self): """ @@ -76,8 +71,6 @@ def locationssrc(self): def locationssrc(self, val): self["locationssrc"] = val - # show - # ---- @property def show(self): """ @@ -97,8 +90,6 @@ def show(self): def show(self, val): self["show"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -159,14 +150,11 @@ def __init__( ------- Y """ - super(Y, self).__init__("y") - + super().__init__("y") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -181,34 +169,12 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("fill", arg, fill) + self._set_property("locations", arg, locations) + self._set_property("locationssrc", arg, locationssrc) + self._set_property("show", arg, show) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/volume/slices/_z.py b/plotly/graph_objs/volume/slices/_z.py index 32b05693a2..37bb008f59 100644 --- a/plotly/graph_objs/volume/slices/_z.py +++ b/plotly/graph_objs/volume/slices/_z.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Z(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "volume.slices" _path_str = "volume.slices.z" _valid_props = {"fill", "locations", "locationssrc", "show"} - # fill - # ---- @property def fill(self): """ @@ -33,8 +32,6 @@ def fill(self): def fill(self, val): self["fill"] = val - # locations - # --------- @property def locations(self): """ @@ -55,8 +52,6 @@ def locations(self): def locations(self, val): self["locations"] = val - # locationssrc - # ------------ @property def locationssrc(self): """ @@ -76,8 +71,6 @@ def locationssrc(self): def locationssrc(self, val): self["locationssrc"] = val - # show - # ---- @property def show(self): """ @@ -97,8 +90,6 @@ def show(self): def show(self, val): self["show"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -159,14 +150,11 @@ def __init__( ------- Z """ - super(Z, self).__init__("z") - + super().__init__("z") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -181,34 +169,12 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("fill", arg, fill) + self._set_property("locations", arg, locations) + self._set_property("locationssrc", arg, locationssrc) + self._set_property("show", arg, show) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/waterfall/__init__.py b/plotly/graph_objs/waterfall/__init__.py index 6f3b73587c..8ae0fae837 100644 --- a/plotly/graph_objs/waterfall/__init__.py +++ b/plotly/graph_objs/waterfall/__init__.py @@ -1,46 +1,26 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._connector import Connector - from ._decreasing import Decreasing - from ._hoverlabel import Hoverlabel - from ._increasing import Increasing - from ._insidetextfont import Insidetextfont - from ._legendgrouptitle import Legendgrouptitle - from ._outsidetextfont import Outsidetextfont - from ._stream import Stream - from ._textfont import Textfont - from ._totals import Totals - from . import connector - from . import decreasing - from . import hoverlabel - from . import increasing - from . import legendgrouptitle - 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", - ], - ) +__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", + ], +) diff --git a/plotly/graph_objs/waterfall/_connector.py b/plotly/graph_objs/waterfall/_connector.py index 9808c28ce7..3532fa9ade 100644 --- a/plotly/graph_objs/waterfall/_connector.py +++ b/plotly/graph_objs/waterfall/_connector.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Connector(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "waterfall" _path_str = "waterfall.connector" _valid_props = {"line", "mode", "visible"} - # line - # ---- @property def line(self): """ @@ -21,18 +20,6 @@ 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 @@ -43,8 +30,6 @@ def line(self): def line(self, val): self["line"] = val - # mode - # ---- @property def mode(self): """ @@ -64,8 +49,6 @@ def mode(self): def mode(self, val): self["mode"] = val - # visible - # ------- @property def visible(self): """ @@ -84,8 +67,6 @@ def visible(self): def visible(self, val): self["visible"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -120,14 +101,11 @@ def __init__(self, arg=None, line=None, mode=None, visible=None, **kwargs): ------- Connector """ - super(Connector, self).__init__("connector") - + super().__init__("connector") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -142,30 +120,11 @@ def __init__(self, arg=None, line=None, mode=None, visible=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("line", arg, line) + self._set_property("mode", arg, mode) + self._set_property("visible", arg, visible) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/waterfall/_decreasing.py b/plotly/graph_objs/waterfall/_decreasing.py index 452f443961..1433be2187 100644 --- a/plotly/graph_objs/waterfall/_decreasing.py +++ b/plotly/graph_objs/waterfall/_decreasing.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Decreasing(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "waterfall" _path_str = "waterfall.decreasing" _valid_props = {"marker"} - # marker - # ------ @property def marker(self): """ @@ -21,15 +20,6 @@ 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 @@ -40,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -68,14 +56,11 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Decreasing """ - super(Decreasing, self).__init__("decreasing") - + super().__init__("decreasing") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -90,22 +75,9 @@ def __init__(self, arg=None, marker=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/waterfall/_hoverlabel.py b/plotly/graph_objs/waterfall/_hoverlabel.py index f2c8d8303c..02df5c7623 100644 --- a/plotly/graph_objs/waterfall/_hoverlabel.py +++ b/plotly/graph_objs/waterfall/_hoverlabel.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Hoverlabel(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "waterfall" _path_str = "waterfall.hoverlabel" _valid_props = { @@ -20,8 +21,6 @@ class Hoverlabel(_BaseTraceHierarchyType): "namelengthsrc", } - # align - # ----- @property def align(self): """ @@ -44,8 +43,6 @@ def align(self): def align(self, val): self["align"] = val - # alignsrc - # -------- @property def alignsrc(self): """ @@ -64,8 +61,6 @@ def alignsrc(self): def alignsrc(self, val): self["alignsrc"] = val - # bgcolor - # ------- @property def bgcolor(self): """ @@ -76,42 +71,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -124,8 +84,6 @@ def bgcolor(self): def bgcolor(self, val): self["bgcolor"] = val - # bgcolorsrc - # ---------- @property def bgcolorsrc(self): """ @@ -144,8 +102,6 @@ def bgcolorsrc(self): def bgcolorsrc(self, val): self["bgcolorsrc"] = val - # bordercolor - # ----------- @property def bordercolor(self): """ @@ -156,42 +112,7 @@ 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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -204,8 +125,6 @@ def bordercolor(self): def bordercolor(self, val): self["bordercolor"] = val - # bordercolorsrc - # -------------- @property def bordercolorsrc(self): """ @@ -225,8 +144,6 @@ def bordercolorsrc(self): def bordercolorsrc(self, val): self["bordercolorsrc"] = val - # font - # ---- @property def font(self): """ @@ -238,79 +155,6 @@ 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 @@ -321,8 +165,6 @@ def font(self): def font(self, val): self["font"] = val - # namelength - # ---------- @property def namelength(self): """ @@ -348,8 +190,6 @@ def namelength(self): def namelength(self, val): self["namelength"] = val - # namelengthsrc - # ------------- @property def namelengthsrc(self): """ @@ -369,8 +209,6 @@ def namelengthsrc(self): def namelengthsrc(self, val): self["namelengthsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -468,14 +306,11 @@ def __init__( ------- Hoverlabel """ - super(Hoverlabel, self).__init__("hoverlabel") - + super().__init__("hoverlabel") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -490,54 +325,17 @@ def __init__( 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("align", arg, align) + self._set_property("alignsrc", arg, alignsrc) + self._set_property("bgcolor", arg, bgcolor) + self._set_property("bgcolorsrc", arg, bgcolorsrc) + self._set_property("bordercolor", arg, bordercolor) + self._set_property("bordercolorsrc", arg, bordercolorsrc) + self._set_property("font", arg, font) + self._set_property("namelength", arg, namelength) + self._set_property("namelengthsrc", arg, namelengthsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/waterfall/_increasing.py b/plotly/graph_objs/waterfall/_increasing.py index 3efad61d15..d36313c5fd 100644 --- a/plotly/graph_objs/waterfall/_increasing.py +++ b/plotly/graph_objs/waterfall/_increasing.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Increasing(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "waterfall" _path_str = "waterfall.increasing" _valid_props = {"marker"} - # marker - # ------ @property def marker(self): """ @@ -21,15 +20,6 @@ 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 @@ -40,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -68,14 +56,11 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Increasing """ - super(Increasing, self).__init__("increasing") - + super().__init__("increasing") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -90,22 +75,9 @@ def __init__(self, arg=None, marker=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/waterfall/_insidetextfont.py b/plotly/graph_objs/waterfall/_insidetextfont.py index c73f7d4585..c918e21164 100644 --- a/plotly/graph_objs/waterfall/_insidetextfont.py +++ b/plotly/graph_objs/waterfall/_insidetextfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Insidetextfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "waterfall" _path_str = "waterfall.insidetextfont" _valid_props = { @@ -29,8 +30,6 @@ class Insidetextfont(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Insidetextfont """ - super(Insidetextfont, self).__init__("insidetextfont") - + super().__init__("insidetextfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/waterfall/_legendgrouptitle.py b/plotly/graph_objs/waterfall/_legendgrouptitle.py index 0cdd764056..d57811c7aa 100644 --- a/plotly/graph_objs/waterfall/_legendgrouptitle.py +++ b/plotly/graph_objs/waterfall/_legendgrouptitle.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Legendgrouptitle(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "waterfall" _path_str = "waterfall.legendgrouptitle" _valid_props = {"font", "text"} - # font - # ---- @property def font(self): """ @@ -23,52 +22,6 @@ 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 @@ -79,8 +32,6 @@ def font(self): def font(self, val): self["font"] = val - # text - # ---- @property def text(self): """ @@ -100,8 +51,6 @@ def text(self): def text(self, val): self["text"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -130,14 +79,11 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): ------- Legendgrouptitle """ - super(Legendgrouptitle, self).__init__("legendgrouptitle") - + super().__init__("legendgrouptitle") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -152,26 +98,10 @@ def __init__(self, arg=None, font=None, text=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("font", arg, font) + self._set_property("text", arg, text) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/waterfall/_outsidetextfont.py b/plotly/graph_objs/waterfall/_outsidetextfont.py index 7ecc6cc912..38fe043f8c 100644 --- a/plotly/graph_objs/waterfall/_outsidetextfont.py +++ b/plotly/graph_objs/waterfall/_outsidetextfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Outsidetextfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "waterfall" _path_str = "waterfall.outsidetextfont" _valid_props = { @@ -29,8 +30,6 @@ class Outsidetextfont(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Outsidetextfont """ - super(Outsidetextfont, self).__init__("outsidetextfont") - + super().__init__("outsidetextfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/waterfall/_stream.py b/plotly/graph_objs/waterfall/_stream.py index 36060f46e3..c0c4a9db8d 100644 --- a/plotly/graph_objs/waterfall/_stream.py +++ b/plotly/graph_objs/waterfall/_stream.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Stream(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "waterfall" _path_str = "waterfall.stream" _valid_props = {"maxpoints", "token"} - # maxpoints - # --------- @property def maxpoints(self): """ @@ -32,8 +31,6 @@ def maxpoints(self): def maxpoints(self, val): self["maxpoints"] = val - # token - # ----- @property def token(self): """ @@ -54,8 +51,6 @@ def token(self): def token(self, val): self["token"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -94,14 +89,11 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): ------- Stream """ - super(Stream, self).__init__("stream") - + super().__init__("stream") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -116,26 +108,10 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("maxpoints", arg, maxpoints) + self._set_property("token", arg, token) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/waterfall/_textfont.py b/plotly/graph_objs/waterfall/_textfont.py index 0cab4c92c8..8fd220afe5 100644 --- a/plotly/graph_objs/waterfall/_textfont.py +++ b/plotly/graph_objs/waterfall/_textfont.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Textfont(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "waterfall" _path_str = "waterfall.textfont" _valid_props = { @@ -29,8 +30,6 @@ class Textfont(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Textfont """ - super(Textfont, self).__init__("textfont") - + super().__init__("textfont") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/waterfall/_totals.py b/plotly/graph_objs/waterfall/_totals.py index 48611b7b00..79c8cd300c 100644 --- a/plotly/graph_objs/waterfall/_totals.py +++ b/plotly/graph_objs/waterfall/_totals.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Totals(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "waterfall" _path_str = "waterfall.totals" _valid_props = {"marker"} - # marker - # ------ @property def marker(self): """ @@ -21,16 +20,6 @@ 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 @@ -41,8 +30,6 @@ def marker(self): def marker(self, val): self["marker"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -69,14 +56,11 @@ def __init__(self, arg=None, marker=None, **kwargs): ------- Totals """ - super(Totals, self).__init__("totals") - + super().__init__("totals") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -91,22 +75,9 @@ def __init__(self, arg=None, marker=None, **kwargs): 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) - # 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("marker", arg, marker) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/waterfall/connector/__init__.py b/plotly/graph_objs/waterfall/connector/__init__.py index 8722c15a2b..579ff002ce 100644 --- a/plotly/graph_objs/waterfall/connector/__init__.py +++ b/plotly/graph_objs/waterfall/connector/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/waterfall/connector/_line.py b/plotly/graph_objs/waterfall/connector/_line.py index 28924db864..46a8c33f58 100644 --- a/plotly/graph_objs/waterfall/connector/_line.py +++ b/plotly/graph_objs/waterfall/connector/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "waterfall.connector" _path_str = "waterfall.connector.line" _valid_props = {"color", "dash", "width"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # dash - # ---- @property def dash(self): """ @@ -95,8 +57,6 @@ def dash(self): def dash(self, val): self["dash"] = val - # width - # ----- @property def width(self): """ @@ -115,8 +75,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -155,14 +113,11 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -177,30 +132,11 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("dash", arg, dash) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/waterfall/decreasing/__init__.py b/plotly/graph_objs/waterfall/decreasing/__init__.py index 61fdd95de6..83d0eda7aa 100644 --- a/plotly/graph_objs/waterfall/decreasing/__init__.py +++ b/plotly/graph_objs/waterfall/decreasing/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [".marker"], ["._marker.Marker"] +) diff --git a/plotly/graph_objs/waterfall/decreasing/_marker.py b/plotly/graph_objs/waterfall/decreasing/_marker.py index 1c97357d3c..a4320abf13 100644 --- a/plotly/graph_objs/waterfall/decreasing/_marker.py +++ b/plotly/graph_objs/waterfall/decreasing/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "waterfall.decreasing" _path_str = "waterfall.decreasing.marker" _valid_props = {"color", "line"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # line - # ---- @property def line(self): """ @@ -80,13 +42,6 @@ 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 @@ -97,8 +52,6 @@ def line(self): def line(self, val): self["line"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -129,14 +82,11 @@ def __init__(self, arg=None, color=None, line=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -151,26 +101,10 @@ def __init__(self, arg=None, color=None, line=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("line", arg, line) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/waterfall/decreasing/marker/__init__.py b/plotly/graph_objs/waterfall/decreasing/marker/__init__.py index 8722c15a2b..579ff002ce 100644 --- a/plotly/graph_objs/waterfall/decreasing/marker/__init__.py +++ b/plotly/graph_objs/waterfall/decreasing/marker/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/waterfall/decreasing/marker/_line.py b/plotly/graph_objs/waterfall/decreasing/marker/_line.py index d368f65b95..611fdbf0a9 100644 --- a/plotly/graph_objs/waterfall/decreasing/marker/_line.py +++ b/plotly/graph_objs/waterfall/decreasing/marker/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "waterfall.decreasing.marker" _path_str = "waterfall.decreasing.marker.line" _valid_props = {"color", "width"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # width - # ----- @property def width(self): """ @@ -89,8 +51,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -119,14 +79,11 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -141,26 +98,10 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/waterfall/hoverlabel/__init__.py b/plotly/graph_objs/waterfall/hoverlabel/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/waterfall/hoverlabel/__init__.py +++ b/plotly/graph_objs/waterfall/hoverlabel/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/waterfall/hoverlabel/_font.py b/plotly/graph_objs/waterfall/hoverlabel/_font.py index 81dd9a21e9..d1522a0fb2 100644 --- a/plotly/graph_objs/waterfall/hoverlabel/_font.py +++ b/plotly/graph_objs/waterfall/hoverlabel/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "waterfall.hoverlabel" _path_str = "waterfall.hoverlabel.font" _valid_props = { @@ -29,8 +30,6 @@ class Font(_BaseTraceHierarchyType): "weightsrc", } - # color - # ----- @property def color(self): """ @@ -39,42 +38,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: see https://plotly.com/python/css-colors/ for a list - A list or array of any of the above Returns @@ -87,8 +51,6 @@ def color(self): def color(self, val): self["color"] = val - # colorsrc - # -------- @property def colorsrc(self): """ @@ -107,23 +69,14 @@ def colorsrc(self): def colorsrc(self, val): self["colorsrc"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -139,8 +92,6 @@ def family(self): def family(self, val): self["family"] = val - # familysrc - # --------- @property def familysrc(self): """ @@ -159,8 +110,6 @@ def familysrc(self): def familysrc(self, val): self["familysrc"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -185,8 +134,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # linepositionsrc - # --------------- @property def linepositionsrc(self): """ @@ -206,8 +153,6 @@ def linepositionsrc(self): def linepositionsrc(self, val): self["linepositionsrc"] = val - # shadow - # ------ @property def shadow(self): """ @@ -231,8 +176,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # shadowsrc - # --------- @property def shadowsrc(self): """ @@ -251,8 +194,6 @@ def shadowsrc(self): def shadowsrc(self, val): self["shadowsrc"] = val - # size - # ---- @property def size(self): """ @@ -270,8 +211,6 @@ def size(self): def size(self, val): self["size"] = val - # sizesrc - # ------- @property def sizesrc(self): """ @@ -290,8 +229,6 @@ def sizesrc(self): def sizesrc(self, val): self["sizesrc"] = val - # style - # ----- @property def style(self): """ @@ -313,8 +250,6 @@ def style(self): def style(self, val): self["style"] = val - # stylesrc - # -------- @property def stylesrc(self): """ @@ -333,8 +268,6 @@ def stylesrc(self): def stylesrc(self, val): self["stylesrc"] = val - # textcase - # -------- @property def textcase(self): """ @@ -357,8 +290,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # textcasesrc - # ----------- @property def textcasesrc(self): """ @@ -377,8 +308,6 @@ def textcasesrc(self): def textcasesrc(self, val): self["textcasesrc"] = val - # variant - # ------- @property def variant(self): """ @@ -400,8 +329,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # variantsrc - # ---------- @property def variantsrc(self): """ @@ -420,8 +347,6 @@ def variantsrc(self): def variantsrc(self, val): self["variantsrc"] = val - # weight - # ------ @property def weight(self): """ @@ -443,8 +368,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # weightsrc - # --------- @property def weightsrc(self): """ @@ -463,8 +386,6 @@ def weightsrc(self): def weightsrc(self, val): self["weightsrc"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -475,18 +396,11 @@ def _prop_descriptions(self): `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -576,18 +490,11 @@ def __init__( `color`. family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. familysrc Sets the source reference on Chart Studio Cloud for `family`. @@ -639,14 +546,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -661,90 +565,26 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("colorsrc", arg, colorsrc) + self._set_property("family", arg, family) + self._set_property("familysrc", arg, familysrc) + self._set_property("lineposition", arg, lineposition) + self._set_property("linepositionsrc", arg, linepositionsrc) + self._set_property("shadow", arg, shadow) + self._set_property("shadowsrc", arg, shadowsrc) + self._set_property("size", arg, size) + self._set_property("sizesrc", arg, sizesrc) + self._set_property("style", arg, style) + self._set_property("stylesrc", arg, stylesrc) + self._set_property("textcase", arg, textcase) + self._set_property("textcasesrc", arg, textcasesrc) + self._set_property("variant", arg, variant) + self._set_property("variantsrc", arg, variantsrc) + self._set_property("weight", arg, weight) + self._set_property("weightsrc", arg, weightsrc) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/waterfall/increasing/__init__.py b/plotly/graph_objs/waterfall/increasing/__init__.py index 61fdd95de6..83d0eda7aa 100644 --- a/plotly/graph_objs/waterfall/increasing/__init__.py +++ b/plotly/graph_objs/waterfall/increasing/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [".marker"], ["._marker.Marker"] +) diff --git a/plotly/graph_objs/waterfall/increasing/_marker.py b/plotly/graph_objs/waterfall/increasing/_marker.py index d781c684bd..fa5dea7af7 100644 --- a/plotly/graph_objs/waterfall/increasing/_marker.py +++ b/plotly/graph_objs/waterfall/increasing/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "waterfall.increasing" _path_str = "waterfall.increasing.marker" _valid_props = {"color", "line"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # line - # ---- @property def line(self): """ @@ -80,13 +42,6 @@ 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 @@ -97,8 +52,6 @@ def line(self): def line(self, val): self["line"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -129,14 +82,11 @@ def __init__(self, arg=None, color=None, line=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -151,26 +101,10 @@ def __init__(self, arg=None, color=None, line=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("line", arg, line) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/waterfall/increasing/marker/__init__.py b/plotly/graph_objs/waterfall/increasing/marker/__init__.py index 8722c15a2b..579ff002ce 100644 --- a/plotly/graph_objs/waterfall/increasing/marker/__init__.py +++ b/plotly/graph_objs/waterfall/increasing/marker/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/waterfall/increasing/marker/_line.py b/plotly/graph_objs/waterfall/increasing/marker/_line.py index 476494b42c..33899da3f6 100644 --- a/plotly/graph_objs/waterfall/increasing/marker/_line.py +++ b/plotly/graph_objs/waterfall/increasing/marker/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "waterfall.increasing.marker" _path_str = "waterfall.increasing.marker.line" _valid_props = {"color", "width"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # width - # ----- @property def width(self): """ @@ -89,8 +51,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -119,14 +79,11 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -141,26 +98,10 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/waterfall/legendgrouptitle/__init__.py b/plotly/graph_objs/waterfall/legendgrouptitle/__init__.py index 2b474e3e06..f78e7c474e 100644 --- a/plotly/graph_objs/waterfall/legendgrouptitle/__init__.py +++ b/plotly/graph_objs/waterfall/legendgrouptitle/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/waterfall/legendgrouptitle/_font.py b/plotly/graph_objs/waterfall/legendgrouptitle/_font.py index c4c6cc8d7e..3b1914da88 100644 --- a/plotly/graph_objs/waterfall/legendgrouptitle/_font.py +++ b/plotly/graph_objs/waterfall/legendgrouptitle/_font.py @@ -1,11 +1,12 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Font(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "waterfall.legendgrouptitle" _path_str = "waterfall.legendgrouptitle.font" _valid_props = { @@ -20,8 +21,6 @@ class Font(_BaseTraceHierarchyType): "weight", } - # color - # ----- @property def color(self): """ @@ -30,42 +29,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -77,23 +41,14 @@ def color(self): def color(self, val): self["color"] = val - # family - # ------ @property def family(self): """ HTML font family - the typeface that will be applied by the web - browser. The web browser will only be able to apply a font if - it is available on the system which it operates. Provide - multiple font families, separated by commas, to indicate the - preference in which to apply fonts if they aren't available on - the system. The Chart Studio Cloud (at https://chart- - studio.plotly.com or on-premise) generates images on a server, - where only a select number of fonts are installed and - supported. These include "Arial", "Balto", "Courier New", - "Droid Sans", "Droid Serif", "Droid Sans Mono", "Gravitas One", - "Old Standard TT", "Open Sans", "Overpass", "PT Sans Narrow", - "Raleway", "Times New Roman". + browser. The web browser can only apply a font if it is + available on the system where it runs. Provide multiple font + families, separated by commas, to indicate the order in which + to apply fonts if they aren't available. The 'family' property is a string and must be specified as: - A non-empty string @@ -108,8 +63,6 @@ def family(self): def family(self, val): self["family"] = val - # lineposition - # ------------ @property def lineposition(self): """ @@ -133,8 +86,6 @@ def lineposition(self): def lineposition(self, val): self["lineposition"] = val - # shadow - # ------ @property def shadow(self): """ @@ -157,8 +108,6 @@ def shadow(self): def shadow(self, val): self["shadow"] = val - # size - # ---- @property def size(self): """ @@ -175,8 +124,6 @@ def size(self): def size(self, val): self["size"] = val - # style - # ----- @property def style(self): """ @@ -197,8 +144,6 @@ def style(self): def style(self, val): self["style"] = val - # textcase - # -------- @property def textcase(self): """ @@ -220,8 +165,6 @@ def textcase(self): def textcase(self, val): self["textcase"] = val - # variant - # ------- @property def variant(self): """ @@ -242,8 +185,6 @@ def variant(self): def variant(self, val): self["variant"] = val - # weight - # ------ @property def weight(self): """ @@ -264,8 +205,6 @@ def weight(self): def weight(self, val): self["weight"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -273,18 +212,11 @@ def _prop_descriptions(self): family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -338,18 +270,11 @@ def __init__( family HTML font family - the typeface that will be applied by - the web browser. The web browser will only be able to - apply a font if it is available on the system which it - operates. Provide multiple font families, separated by - commas, to indicate the preference in which to apply - fonts if they aren't available on the system. The Chart - Studio Cloud (at https://chart-studio.plotly.com or on- - premise) generates images on a server, where only a - select number of fonts are installed and supported. - These include "Arial", "Balto", "Courier New", "Droid - Sans", "Droid Serif", "Droid Sans Mono", "Gravitas - One", "Old Standard TT", "Open Sans", "Overpass", "PT - Sans Narrow", "Raleway", "Times New Roman". + the web browser. The web browser can only apply a font + if it is available on the system where it runs. Provide + multiple font families, separated by commas, to + indicate the order in which to apply fonts if they + aren't available. lineposition Sets the kind of decoration line(s) with text, such as an "under", "over" or "through" as well as combinations @@ -377,14 +302,11 @@ def __init__( ------- Font """ - super(Font, self).__init__("font") - + super().__init__("font") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -399,54 +321,17 @@ def __init__( 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("family", arg, family) + self._set_property("lineposition", arg, lineposition) + self._set_property("shadow", arg, shadow) + self._set_property("size", arg, size) + self._set_property("style", arg, style) + self._set_property("textcase", arg, textcase) + self._set_property("variant", arg, variant) + self._set_property("weight", arg, weight) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/waterfall/totals/__init__.py b/plotly/graph_objs/waterfall/totals/__init__.py index 61fdd95de6..83d0eda7aa 100644 --- a/plotly/graph_objs/waterfall/totals/__init__.py +++ b/plotly/graph_objs/waterfall/totals/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [".marker"], ["._marker.Marker"] +) diff --git a/plotly/graph_objs/waterfall/totals/_marker.py b/plotly/graph_objs/waterfall/totals/_marker.py index 569e78ac5d..4ff0346091 100644 --- a/plotly/graph_objs/waterfall/totals/_marker.py +++ b/plotly/graph_objs/waterfall/totals/_marker.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Marker(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "waterfall.totals" _path_str = "waterfall.totals.marker" _valid_props = {"color", "line"} - # color - # ----- @property def color(self): """ @@ -23,42 +22,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -70,8 +34,6 @@ def color(self): def color(self, val): self["color"] = val - # line - # ---- @property def line(self): """ @@ -81,15 +43,6 @@ 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 @@ -100,8 +53,6 @@ def line(self): def line(self, val): self["line"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -134,14 +85,11 @@ def __init__(self, arg=None, color=None, line=None, **kwargs): ------- Marker """ - super(Marker, self).__init__("marker") - + super().__init__("marker") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -156,26 +104,10 @@ def __init__(self, arg=None, color=None, line=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("line", arg, line) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/graph_objs/waterfall/totals/marker/__init__.py b/plotly/graph_objs/waterfall/totals/marker/__init__.py index 8722c15a2b..579ff002ce 100644 --- a/plotly/graph_objs/waterfall/totals/marker/__init__.py +++ b/plotly/graph_objs/waterfall/totals/marker/__init__.py @@ -1,9 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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/plotly/graph_objs/waterfall/totals/marker/_line.py b/plotly/graph_objs/waterfall/totals/marker/_line.py index d0eec46f41..d1ebe28d92 100644 --- a/plotly/graph_objs/waterfall/totals/marker/_line.py +++ b/plotly/graph_objs/waterfall/totals/marker/_line.py @@ -1,17 +1,16 @@ +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. + from plotly.basedatatypes import BaseTraceHierarchyType as _BaseTraceHierarchyType import copy as _copy class Line(_BaseTraceHierarchyType): - # class properties - # -------------------- _parent_path_str = "waterfall.totals.marker" _path_str = "waterfall.totals.marker.line" _valid_props = {"color", "width"} - # color - # ----- @property def color(self): """ @@ -22,42 +21,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: see https://plotly.com/python/css-colors/ for a list Returns ------- @@ -69,8 +33,6 @@ def color(self): def color(self, val): self["color"] = val - # width - # ----- @property def width(self): """ @@ -89,8 +51,6 @@ def width(self): def width(self, val): self["width"] = val - # Self properties description - # --------------------------- @property def _prop_descriptions(self): return """\ @@ -123,14 +83,11 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): ------- Line """ - super(Line, self).__init__("line") - + super().__init__("line") if "_parent" in kwargs: self._parent = kwargs["_parent"] return - # Validate arg - # ------------ if arg is None: arg = {} elif isinstance(arg, self.__class__): @@ -145,26 +102,10 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): 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) - # Populate data dict with properties - # ---------------------------------- - _v = 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 - - # Process unknown kwargs - # ---------------------- + self._set_property("color", arg, color) + self._set_property("width", arg, width) self._process_kwargs(**dict(arg, **kwargs)) - - # Reset skip_invalid - # ------------------ self._skip_invalid = False diff --git a/plotly/io/_templates.py b/plotly/io/_templates.py index 85e2461f16..ad2d37f6d6 100644 --- a/plotly/io/_templates.py +++ b/plotly/io/_templates.py @@ -273,6 +273,7 @@ def _merge_2_templates(self, template1, template2): templates = TemplatesConfig() del TemplatesConfig + # Template utilities # ------------------ def walk_push_to_template(fig_obj, template_obj, skip): diff --git a/plotly/matplotlylib/__init__.py b/plotly/matplotlylib/__init__.py index 8891cc7c7c..9abe924f6f 100644 --- a/plotly/matplotlylib/__init__.py +++ b/plotly/matplotlylib/__init__.py @@ -9,5 +9,6 @@ 'tools' module or 'plotly' package. """ + from plotly.matplotlylib.renderer import PlotlyRenderer from plotly.matplotlylib.mplexporter import Exporter diff --git a/plotly/matplotlylib/mplexporter/exporter.py b/plotly/matplotlylib/mplexporter/exporter.py index dc3a0b08d8..c81dcb2a87 100644 --- a/plotly/matplotlylib/mplexporter/exporter.py +++ b/plotly/matplotlylib/mplexporter/exporter.py @@ -4,6 +4,7 @@ This submodule contains tools for crawling a matplotlib figure and exporting relevant pieces to a renderer. """ + import warnings import io from . import utils diff --git a/plotly/matplotlylib/mplexporter/utils.py b/plotly/matplotlylib/mplexporter/utils.py index 713620f44c..cdc39ed552 100644 --- a/plotly/matplotlylib/mplexporter/utils.py +++ b/plotly/matplotlylib/mplexporter/utils.py @@ -2,6 +2,7 @@ Utility Routines for Working with Matplotlib Objects ==================================================== """ + import itertools import io import base64 diff --git a/plotly/matplotlylib/mpltools.py b/plotly/matplotlylib/mpltools.py index 9e69fb7fa4..641606b318 100644 --- a/plotly/matplotlylib/mpltools.py +++ b/plotly/matplotlylib/mpltools.py @@ -4,6 +4,7 @@ A module for converting from mpl language to plotly language. """ + import math import warnings @@ -291,7 +292,7 @@ def convert_rgba_array(color_list): clean_color_list = list() for c in color_list: clean_color_list += [ - (dict(r=int(c[0] * 255), g=int(c[1] * 255), b=int(c[2] * 255), a=c[3])) + dict(r=int(c[0] * 255), g=int(c[1] * 255), b=int(c[2] * 255), a=c[3]) ] plotly_colors = list() for rgba in clean_color_list: diff --git a/plotly/matplotlylib/renderer.py b/plotly/matplotlylib/renderer.py index 3321879cbe..e05a046607 100644 --- a/plotly/matplotlylib/renderer.py +++ b/plotly/matplotlylib/renderer.py @@ -6,6 +6,7 @@ with the matplotlylib package. """ + import warnings import plotly.graph_objs as go diff --git a/plotly/offline/__init__.py b/plotly/offline/__init__.py index 9f82e47a90..d4d57e6106 100644 --- a/plotly/offline/__init__.py +++ b/plotly/offline/__init__.py @@ -3,6 +3,7 @@ ====== This module provides offline functionality. """ + from .offline import ( download_plotlyjs, get_plotlyjs_version, diff --git a/plotly/offline/offline.py b/plotly/offline/offline.py index ac05f7db4a..8fd88ec9c3 100644 --- a/plotly/offline/offline.py +++ b/plotly/offline/offline.py @@ -1,8 +1,9 @@ -""" Plotly Offline - A module to use Plotly's graphing library with Python - without connecting to a public or private plotly enterprise - server. +"""Plotly Offline +A module to use Plotly's graphing library with Python +without connecting to a public or private plotly enterprise +server. """ + import os import warnings import pkgutil diff --git a/plotly/tools.py b/plotly/tools.py index 1a29bf8179..87de749e09 100644 --- a/plotly/tools.py +++ b/plotly/tools.py @@ -5,6 +5,7 @@ Functions that USERS will possibly want access to. """ + import json import warnings @@ -571,6 +572,7 @@ def return_figure_from_figure_or_data(figure_or_data, validate_figure): DIAG_CHOICES = ["scatter", "histogram", "box"] VALID_COLORMAP_TYPES = ["cat", "seq"] + # Deprecations class FigureFactory(object): @staticmethod diff --git a/plotly/utils.py b/plotly/utils.py index 6271631416..b61d29de6f 100644 --- a/plotly/utils.py +++ b/plotly/utils.py @@ -4,6 +4,7 @@ from _plotly_utils.utils import * from _plotly_utils.data_utils import * + # Pretty printing def _list_repr_elided(v, threshold=200, edgeitems=3, indent=0, width=80): """ diff --git a/plotly/validators/__init__.py b/plotly/validators/__init__.py index b1e8258104..375c16bf3c 100644 --- a/plotly/validators/__init__.py +++ b/plotly/validators/__init__.py @@ -1,117 +1,61 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._waterfall import WaterfallValidator - from ._volume import VolumeValidator - from ._violin import ViolinValidator - from ._treemap import TreemapValidator - from ._table import TableValidator - from ._surface import SurfaceValidator - from ._sunburst import SunburstValidator - from ._streamtube import StreamtubeValidator - from ._splom import SplomValidator - from ._scatterternary import ScatterternaryValidator - from ._scattersmith import ScattersmithValidator - from ._scatterpolargl import ScatterpolarglValidator - from ._scatterpolar import ScatterpolarValidator - from ._scattermapbox import ScattermapboxValidator - from ._scattermap import ScattermapValidator - from ._scattergl import ScatterglValidator - from ._scattergeo import ScattergeoValidator - from ._scattercarpet import ScattercarpetValidator - from ._scatter3d import Scatter3DValidator - from ._scatter import ScatterValidator - from ._sankey import SankeyValidator - from ._pie import PieValidator - from ._parcoords import ParcoordsValidator - from ._parcats import ParcatsValidator - from ._ohlc import OhlcValidator - from ._mesh3d import Mesh3DValidator - from ._isosurface import IsosurfaceValidator - from ._indicator import IndicatorValidator - from ._image import ImageValidator - from ._icicle import IcicleValidator - from ._histogram2dcontour import Histogram2DcontourValidator - from ._histogram2d import Histogram2DValidator - from ._histogram import HistogramValidator - from ._heatmap import HeatmapValidator - from ._funnelarea import FunnelareaValidator - from ._funnel import FunnelValidator - from ._densitymapbox import DensitymapboxValidator - from ._densitymap import DensitymapValidator - from ._contourcarpet import ContourcarpetValidator - from ._contour import ContourValidator - from ._cone import ConeValidator - from ._choroplethmapbox import ChoroplethmapboxValidator - from ._choroplethmap import ChoroplethmapValidator - from ._choropleth import ChoroplethValidator - from ._carpet import CarpetValidator - from ._candlestick import CandlestickValidator - from ._box import BoxValidator - from ._barpolar import BarpolarValidator - from ._bar import BarValidator - from ._layout import LayoutValidator - from ._frames import FramesValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/_bar.py b/plotly/validators/_bar.py index 35b08e62da..efd7bf81eb 100644 --- a/plotly/validators/_bar.py +++ b/plotly/validators/_bar.py @@ -1,431 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_barpolar.py b/plotly/validators/_barpolar.py index ab03a272a2..9ff109bbe1 100644 --- a/plotly/validators/_barpolar.py +++ b/plotly/validators/_barpolar.py @@ -1,256 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BarpolarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_box.py b/plotly/validators/_box.py index cfbcebe373..c5acfa9bfa 100644 --- a/plotly/validators/_box.py +++ b/plotly/validators/_box.py @@ -1,514 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BoxValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_candlestick.py b/plotly/validators/_candlestick.py index 10e589d82d..20647a9596 100644 --- a/plotly/validators/_candlestick.py +++ b/plotly/validators/_candlestick.py @@ -1,268 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CandlestickValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_carpet.py b/plotly/validators/_carpet.py index aaf53aaa0d..d791599c21 100644 --- a/plotly/validators/_carpet.py +++ b/plotly/validators/_carpet.py @@ -1,194 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CarpetValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_choropleth.py b/plotly/validators/_choropleth.py index 010ef0d401..fc7d2bbc99 100644 --- a/plotly/validators/_choropleth.py +++ b/plotly/validators/_choropleth.py @@ -1,301 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ChoroplethValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_choroplethmap.py b/plotly/validators/_choroplethmap.py index 6efaef4941..ccbc6ee51f 100644 --- a/plotly/validators/_choroplethmap.py +++ b/plotly/validators/_choroplethmap.py @@ -1,299 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ChoroplethmapValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_choroplethmapbox.py b/plotly/validators/_choroplethmapbox.py index ff3439c0c3..a31e12f3c7 100644 --- a/plotly/validators/_choroplethmapbox.py +++ b/plotly/validators/_choroplethmapbox.py @@ -1,308 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ChoroplethmapboxValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_cone.py b/plotly/validators/_cone.py index 94ba1197c3..84d9ac534d 100644 --- a/plotly/validators/_cone.py +++ b/plotly/validators/_cone.py @@ -1,396 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ConeValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_contour.py b/plotly/validators/_contour.py index 3fde1bf29d..a0db1c843c 100644 --- a/plotly/validators/_contour.py +++ b/plotly/validators/_contour.py @@ -1,444 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ContourValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_contourcarpet.py b/plotly/validators/_contourcarpet.py index 3995ea7d3e..b20180dced 100644 --- a/plotly/validators/_contourcarpet.py +++ b/plotly/validators/_contourcarpet.py @@ -1,284 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ContourcarpetValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_data.py b/plotly/validators/_data.py index 19c1dc1f04..6fc88e8c47 100644 --- a/plotly/validators/_data.py +++ b/plotly/validators/_data.py @@ -2,10 +2,11 @@ class DataValidator(_plotly_utils.basevalidators.BaseDataValidator): + def __init__(self, plotly_name="data", parent_name="", **kwargs): - super(DataValidator, self).__init__( - class_strs_map={ + super().__init__( + { "bar": "Bar", "barpolar": "Barpolar", "box": "Box", @@ -56,7 +57,7 @@ def __init__(self, plotly_name="data", parent_name="", **kwargs): "volume": "Volume", "waterfall": "Waterfall", }, - plotly_name=plotly_name, - parent_name=parent_name, + plotly_name, + parent_name, **kwargs, ) diff --git a/plotly/validators/_densitymap.py b/plotly/validators/_densitymap.py index df46712d65..2e2bffa3a1 100644 --- a/plotly/validators/_densitymap.py +++ b/plotly/validators/_densitymap.py @@ -1,296 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DensitymapValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_densitymapbox.py b/plotly/validators/_densitymapbox.py index 8125ff84d3..09fd198114 100644 --- a/plotly/validators/_densitymapbox.py +++ b/plotly/validators/_densitymapbox.py @@ -1,303 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DensitymapboxValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_frames.py b/plotly/validators/_frames.py index 00345981b1..fa1b071c6d 100644 --- a/plotly/validators/_frames.py +++ b/plotly/validators/_frames.py @@ -1,38 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FramesValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_funnel.py b/plotly/validators/_funnel.py index 8144f93e67..7a525188fd 100644 --- a/plotly/validators/_funnel.py +++ b/plotly/validators/_funnel.py @@ -1,414 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FunnelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_funnelarea.py b/plotly/validators/_funnelarea.py index 1785d3b0c5..884164f056 100644 --- a/plotly/validators/_funnelarea.py +++ b/plotly/validators/_funnelarea.py @@ -1,271 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FunnelareaValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_heatmap.py b/plotly/validators/_heatmap.py index 40a96d167b..04e19b2fc9 100644 --- a/plotly/validators/_heatmap.py +++ b/plotly/validators/_heatmap.py @@ -1,425 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HeatmapValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_histogram.py b/plotly/validators/_histogram.py index d43f724f6a..bb31d5aac1 100644 --- a/plotly/validators/_histogram.py +++ b/plotly/validators/_histogram.py @@ -1,417 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HistogramValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_histogram2d.py b/plotly/validators/_histogram2d.py index d689a688cb..39b24ecf16 100644 --- a/plotly/validators/_histogram2d.py +++ b/plotly/validators/_histogram2d.py @@ -1,417 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Histogram2DValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_histogram2dcontour.py b/plotly/validators/_histogram2dcontour.py index 2a1ae751cd..61edf6cf1b 100644 --- a/plotly/validators/_histogram2dcontour.py +++ b/plotly/validators/_histogram2dcontour.py @@ -1,439 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Histogram2DcontourValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_icicle.py b/plotly/validators/_icicle.py index 7cc2802425..db1f6f61b2 100644 --- a/plotly/validators/_icicle.py +++ b/plotly/validators/_icicle.py @@ -1,292 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IcicleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_image.py b/plotly/validators/_image.py index 9e0546ce62..f764b7be25 100644 --- a/plotly/validators/_image.py +++ b/plotly/validators/_image.py @@ -1,250 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ImageValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_indicator.py b/plotly/validators/_indicator.py index 4e715e83d5..f10c642264 100644 --- a/plotly/validators/_indicator.py +++ b/plotly/validators/_indicator.py @@ -1,139 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IndicatorValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_isosurface.py b/plotly/validators/_isosurface.py index 004d4dae08..f3f7e2f961 100644 --- a/plotly/validators/_isosurface.py +++ b/plotly/validators/_isosurface.py @@ -1,367 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IsosurfaceValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_layout.py b/plotly/validators/_layout.py index 5e29ff17e8..a44289f121 100644 --- a/plotly/validators/_layout.py +++ b/plotly/validators/_layout.py @@ -1,558 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LayoutValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_mesh3d.py b/plotly/validators/_mesh3d.py index 6f2ba240a8..2f956c4df3 100644 --- a/plotly/validators/_mesh3d.py +++ b/plotly/validators/_mesh3d.py @@ -1,445 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Mesh3DValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_ohlc.py b/plotly/validators/_ohlc.py index ee7fc6c29f..683bea3770 100644 --- a/plotly/validators/_ohlc.py +++ b/plotly/validators/_ohlc.py @@ -1,264 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OhlcValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_parcats.py b/plotly/validators/_parcats.py index d92f9337e3..0049e88080 100644 --- a/plotly/validators/_parcats.py +++ b/plotly/validators/_parcats.py @@ -1,170 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ParcatsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_parcoords.py b/plotly/validators/_parcoords.py index 0b588926f4..97cd412c1c 100644 --- a/plotly/validators/_parcoords.py +++ b/plotly/validators/_parcoords.py @@ -1,150 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ParcoordsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_pie.py b/plotly/validators/_pie.py index 38f6f99da8..a083e214a1 100644 --- a/plotly/validators/_pie.py +++ b/plotly/validators/_pie.py @@ -1,302 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PieValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_sankey.py b/plotly/validators/_sankey.py index 979fd89e92..16533e1de6 100644 --- a/plotly/validators/_sankey.py +++ b/plotly/validators/_sankey.py @@ -1,163 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SankeyValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_scatter.py b/plotly/validators/_scatter.py index 8c492af138..49e9ca85a6 100644 --- a/plotly/validators/_scatter.py +++ b/plotly/validators/_scatter.py @@ -1,489 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ScatterValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_scatter3d.py b/plotly/validators/_scatter3d.py index 1c7b6b16a9..d9100a2897 100644 --- a/plotly/validators/_scatter3d.py +++ b/plotly/validators/_scatter3d.py @@ -1,333 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Scatter3DValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_scattercarpet.py b/plotly/validators/_scattercarpet.py index 949b7097d1..88c7ef162e 100644 --- a/plotly/validators/_scattercarpet.py +++ b/plotly/validators/_scattercarpet.py @@ -1,313 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ScattercarpetValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_scattergeo.py b/plotly/validators/_scattergeo.py index 7774080183..da8f037849 100644 --- a/plotly/validators/_scattergeo.py +++ b/plotly/validators/_scattergeo.py @@ -1,320 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ScattergeoValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_scattergl.py b/plotly/validators/_scattergl.py index 6de1be4c2e..39a6546ce2 100644 --- a/plotly/validators/_scattergl.py +++ b/plotly/validators/_scattergl.py @@ -1,395 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ScatterglValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_scattermap.py b/plotly/validators/_scattermap.py index de6a4905eb..00a0447271 100644 --- a/plotly/validators/_scattermap.py +++ b/plotly/validators/_scattermap.py @@ -1,295 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ScattermapValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_scattermapbox.py b/plotly/validators/_scattermapbox.py index 7868cc8772..13c2b282ff 100644 --- a/plotly/validators/_scattermapbox.py +++ b/plotly/validators/_scattermapbox.py @@ -1,303 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ScattermapboxValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_scatterpolar.py b/plotly/validators/_scatterpolar.py index be7cf43733..a37db07d27 100644 --- a/plotly/validators/_scatterpolar.py +++ b/plotly/validators/_scatterpolar.py @@ -1,322 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ScatterpolarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_scatterpolargl.py b/plotly/validators/_scatterpolargl.py index 2bc3598169..92e4d04da6 100644 --- a/plotly/validators/_scatterpolargl.py +++ b/plotly/validators/_scatterpolargl.py @@ -1,325 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ScatterpolarglValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_scattersmith.py b/plotly/validators/_scattersmith.py index 256d9bdda3..388a62b972 100644 --- a/plotly/validators/_scattersmith.py +++ b/plotly/validators/_scattersmith.py @@ -1,308 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ScattersmithValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_scatterternary.py b/plotly/validators/_scatterternary.py index b43ccb9690..5c8bb1541d 100644 --- a/plotly/validators/_scatterternary.py +++ b/plotly/validators/_scatterternary.py @@ -1,333 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ScatterternaryValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_splom.py b/plotly/validators/_splom.py index 4d695a2bc5..2f2bde8c5f 100644 --- a/plotly/validators/_splom.py +++ b/plotly/validators/_splom.py @@ -1,269 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SplomValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_streamtube.py b/plotly/validators/_streamtube.py index 5336ae1fb9..2fd8bc5947 100644 --- a/plotly/validators/_streamtube.py +++ b/plotly/validators/_streamtube.py @@ -1,375 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamtubeValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_sunburst.py b/plotly/validators/_sunburst.py index 7a6593dae7..ec8d9a5096 100644 --- a/plotly/validators/_sunburst.py +++ b/plotly/validators/_sunburst.py @@ -1,299 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SunburstValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_surface.py b/plotly/validators/_surface.py index 6356503fbc..508a6fe3b6 100644 --- a/plotly/validators/_surface.py +++ b/plotly/validators/_surface.py @@ -1,365 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SurfaceValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_table.py b/plotly/validators/_table.py index b98caa7c4d..4a1e2f3e41 100644 --- a/plotly/validators/_table.py +++ b/plotly/validators/_table.py @@ -1,149 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TableValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_treemap.py b/plotly/validators/_treemap.py index f35001f80a..77113b515f 100644 --- a/plotly/validators/_treemap.py +++ b/plotly/validators/_treemap.py @@ -1,289 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TreemapValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_violin.py b/plotly/validators/_violin.py index c7ab18059d..c9011ffc18 100644 --- a/plotly/validators/_violin.py +++ b/plotly/validators/_violin.py @@ -1,400 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ViolinValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_volume.py b/plotly/validators/_volume.py index 16409dcb98..46824809ab 100644 --- a/plotly/validators/_volume.py +++ b/plotly/validators/_volume.py @@ -1,377 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VolumeValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/_waterfall.py b/plotly/validators/_waterfall.py index 4368af6336..c10626838f 100644 --- a/plotly/validators/_waterfall.py +++ b/plotly/validators/_waterfall.py @@ -1,433 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WaterfallValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/bar/__init__.py b/plotly/validators/bar/__init__.py index 152121c186..ca538949b3 100644 --- a/plotly/validators/bar/__init__.py +++ b/plotly/validators/bar/__init__.py @@ -1,161 +1,83 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zorder import ZorderValidator - from ._ysrc import YsrcValidator - from ._yperiodalignment import YperiodalignmentValidator - from ._yperiod0 import Yperiod0Validator - from ._yperiod import YperiodValidator - from ._yhoverformat import YhoverformatValidator - from ._ycalendar import YcalendarValidator - from ._yaxis import YaxisValidator - from ._y0 import Y0Validator - from ._y import YValidator - from ._xsrc import XsrcValidator - from ._xperiodalignment import XperiodalignmentValidator - from ._xperiod0 import Xperiod0Validator - from ._xperiod import XperiodValidator - from ._xhoverformat import XhoverformatValidator - from ._xcalendar import XcalendarValidator - from ._xaxis import XaxisValidator - from ._x0 import X0Validator - from ._x import XValidator - from ._widthsrc import WidthsrcValidator - from ._width import WidthValidator - from ._visible import VisibleValidator - from ._unselected import UnselectedValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._texttemplatesrc import TexttemplatesrcValidator - from ._texttemplate import TexttemplateValidator - from ._textsrc import TextsrcValidator - from ._textpositionsrc import TextpositionsrcValidator - from ._textposition import TextpositionValidator - from ._textfont import TextfontValidator - from ._textangle import TextangleValidator - from ._text import TextValidator - from ._stream import StreamValidator - from ._showlegend import ShowlegendValidator - from ._selectedpoints import SelectedpointsValidator - from ._selected import SelectedValidator - from ._outsidetextfont import OutsidetextfontValidator - from ._orientation import OrientationValidator - from ._opacity import OpacityValidator - from ._offsetsrc import OffsetsrcValidator - from ._offsetgroup import OffsetgroupValidator - from ._offset import OffsetValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._marker import MarkerValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._insidetextfont import InsidetextfontValidator - from ._insidetextanchor import InsidetextanchorValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._error_y import Error_YValidator - from ._error_x import Error_XValidator - from ._dy import DyValidator - from ._dx import DxValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._constraintext import ConstraintextValidator - from ._cliponaxis import CliponaxisValidator - from ._basesrc import BasesrcValidator - from ._base import BaseValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/bar/_alignmentgroup.py b/plotly/validators/bar/_alignmentgroup.py index 9fbb19855f..e89f625a81 100644 --- a/plotly/validators/bar/_alignmentgroup.py +++ b/plotly/validators/bar/_alignmentgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignmentgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/bar/_base.py b/plotly/validators/bar/_base.py index 584377e50e..95633aabc4 100644 --- a/plotly/validators/bar/_base.py +++ b/plotly/validators/bar/_base.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BaseValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/bar/_basesrc.py b/plotly/validators/bar/_basesrc.py index a0d9cc1a8a..9c09c7402f 100644 --- a/plotly/validators/bar/_basesrc.py +++ b/plotly/validators/bar/_basesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/_cliponaxis.py b/plotly/validators/bar/_cliponaxis.py index e6d801a1db..7e7a1e2a8d 100644 --- a/plotly/validators/bar/_cliponaxis.py +++ b/plotly/validators/bar/_cliponaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CliponaxisValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/bar/_constraintext.py b/plotly/validators/bar/_constraintext.py index 606706b908..7043461f2d 100644 --- a/plotly/validators/bar/_constraintext.py +++ b/plotly/validators/bar/_constraintext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ConstraintextValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["inside", "outside", "both", "none"]), **kwargs, diff --git a/plotly/validators/bar/_customdata.py b/plotly/validators/bar/_customdata.py index 237901bd6e..c16a013358 100644 --- a/plotly/validators/bar/_customdata.py +++ b/plotly/validators/bar/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/bar/_customdatasrc.py b/plotly/validators/bar/_customdatasrc.py index 47908075b8..8ca5522fca 100644 --- a/plotly/validators/bar/_customdatasrc.py +++ b/plotly/validators/bar/_customdatasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/_dx.py b/plotly/validators/bar/_dx.py index 0a0050b93b..68186e9deb 100644 --- a/plotly/validators/bar/_dx.py +++ b/plotly/validators/bar/_dx.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/bar/_dy.py b/plotly/validators/bar/_dy.py index b60aa22419..f559a54dfb 100644 --- a/plotly/validators/bar/_dy.py +++ b/plotly/validators/bar/_dy.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DyValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/bar/_error_x.py b/plotly/validators/bar/_error_x.py index 04824c2eff..6ee014461e 100644 --- a/plotly/validators/bar/_error_x.py +++ b/plotly/validators/bar/_error_x.py @@ -1,72 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Error_XValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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 - - 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, diff --git a/plotly/validators/bar/_error_y.py b/plotly/validators/bar/_error_y.py index 0d27d95c63..5818ad3bd6 100644 --- a/plotly/validators/bar/_error_y.py +++ b/plotly/validators/bar/_error_y.py @@ -1,70 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Error_YValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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 - - 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, diff --git a/plotly/validators/bar/_hoverinfo.py b/plotly/validators/bar/_hoverinfo.py index 867db37826..0a37de664e 100644 --- a/plotly/validators/bar/_hoverinfo.py +++ b/plotly/validators/bar/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/bar/_hoverinfosrc.py b/plotly/validators/bar/_hoverinfosrc.py index 8cb8cec131..cebb3dcf56 100644 --- a/plotly/validators/bar/_hoverinfosrc.py +++ b/plotly/validators/bar/_hoverinfosrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/_hoverlabel.py b/plotly/validators/bar/_hoverlabel.py index 702f72613a..eaa9f68243 100644 --- a/plotly/validators/bar/_hoverlabel.py +++ b/plotly/validators/bar/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/bar/_hovertemplate.py b/plotly/validators/bar/_hovertemplate.py index 8e90cd0272..ade210e86b 100644 --- a/plotly/validators/bar/_hovertemplate.py +++ b/plotly/validators/bar/_hovertemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/bar/_hovertemplatesrc.py b/plotly/validators/bar/_hovertemplatesrc.py index 69cbf69851..011af6e16f 100644 --- a/plotly/validators/bar/_hovertemplatesrc.py +++ b/plotly/validators/bar/_hovertemplatesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/_hovertext.py b/plotly/validators/bar/_hovertext.py index 01550e746b..4be6c10b11 100644 --- a/plotly/validators/bar/_hovertext.py +++ b/plotly/validators/bar/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/bar/_hovertextsrc.py b/plotly/validators/bar/_hovertextsrc.py index 753980999b..aec4e6ec08 100644 --- a/plotly/validators/bar/_hovertextsrc.py +++ b/plotly/validators/bar/_hovertextsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/_ids.py b/plotly/validators/bar/_ids.py index 321a2b976f..5435b25dc3 100644 --- a/plotly/validators/bar/_ids.py +++ b/plotly/validators/bar/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/bar/_idssrc.py b/plotly/validators/bar/_idssrc.py index 198c60ea60..1aa2b922c1 100644 --- a/plotly/validators/bar/_idssrc.py +++ b/plotly/validators/bar/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/_insidetextanchor.py b/plotly/validators/bar/_insidetextanchor.py index 0dcbe0aafa..1b472ab266 100644 --- a/plotly/validators/bar/_insidetextanchor.py +++ b/plotly/validators/bar/_insidetextanchor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class InsidetextanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["end", "middle", "start"]), **kwargs, diff --git a/plotly/validators/bar/_insidetextfont.py b/plotly/validators/bar/_insidetextfont.py index 6235a6e486..2df6e0fafd 100644 --- a/plotly/validators/bar/_insidetextfont.py +++ b/plotly/validators/bar/_insidetextfont.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class InsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Insidetextfont"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/bar/_legend.py b/plotly/validators/bar/_legend.py index 81e028057c..f15288ec51 100644 --- a/plotly/validators/bar/_legend.py +++ b/plotly/validators/bar/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/bar/_legendgroup.py b/plotly/validators/bar/_legendgroup.py index 5242235527..13617c785e 100644 --- a/plotly/validators/bar/_legendgroup.py +++ b/plotly/validators/bar/_legendgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/bar/_legendgrouptitle.py b/plotly/validators/bar/_legendgrouptitle.py index 9500b982d5..eb42569fff 100644 --- a/plotly/validators/bar/_legendgrouptitle.py +++ b/plotly/validators/bar/_legendgrouptitle.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/bar/_legendrank.py b/plotly/validators/bar/_legendrank.py index e92f1f374b..323b4eecbe 100644 --- a/plotly/validators/bar/_legendrank.py +++ b/plotly/validators/bar/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/bar/_legendwidth.py b/plotly/validators/bar/_legendwidth.py index 4e7854401f..7e28316fd0 100644 --- a/plotly/validators/bar/_legendwidth.py +++ b/plotly/validators/bar/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/bar/_marker.py b/plotly/validators/bar/_marker.py index 08d21a4439..4c8dbc712e 100644 --- a/plotly/validators/bar/_marker.py +++ b/plotly/validators/bar/_marker.py @@ -1,118 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/bar/_meta.py b/plotly/validators/bar/_meta.py index ef0ae4f75c..e357b15bd0 100644 --- a/plotly/validators/bar/_meta.py +++ b/plotly/validators/bar/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/bar/_metasrc.py b/plotly/validators/bar/_metasrc.py index f145bbe6ba..7230d19eb2 100644 --- a/plotly/validators/bar/_metasrc.py +++ b/plotly/validators/bar/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/_name.py b/plotly/validators/bar/_name.py index a5c39d828e..1ad51395e8 100644 --- a/plotly/validators/bar/_name.py +++ b/plotly/validators/bar/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/bar/_offset.py b/plotly/validators/bar/_offset.py index 97eaa5fc92..be35323edb 100644 --- a/plotly/validators/bar/_offset.py +++ b/plotly/validators/bar/_offset.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OffsetValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/bar/_offsetgroup.py b/plotly/validators/bar/_offsetgroup.py index 27143f915b..c335216050 100644 --- a/plotly/validators/bar/_offsetgroup.py +++ b/plotly/validators/bar/_offsetgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OffsetgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/bar/_offsetsrc.py b/plotly/validators/bar/_offsetsrc.py index f4a2749b0c..3041fd8207 100644 --- a/plotly/validators/bar/_offsetsrc.py +++ b/plotly/validators/bar/_offsetsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OffsetsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/_opacity.py b/plotly/validators/bar/_opacity.py index 616a651834..3f9c9c063b 100644 --- a/plotly/validators/bar/_opacity.py +++ b/plotly/validators/bar/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/bar/_orientation.py b/plotly/validators/bar/_orientation.py index bdae787bd4..d0276d99de 100644 --- a/plotly/validators/bar/_orientation.py +++ b/plotly/validators/bar/_orientation.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), values=kwargs.pop("values", ["v", "h"]), **kwargs, diff --git a/plotly/validators/bar/_outsidetextfont.py b/plotly/validators/bar/_outsidetextfont.py index 5910716f5a..748606ca4c 100644 --- a/plotly/validators/bar/_outsidetextfont.py +++ b/plotly/validators/bar/_outsidetextfont.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Outsidetextfont"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/bar/_selected.py b/plotly/validators/bar/_selected.py index cbe89b4db7..4ff35b014d 100644 --- a/plotly/validators/bar/_selected.py +++ b/plotly/validators/bar/_selected.py @@ -1,22 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/bar/_selectedpoints.py b/plotly/validators/bar/_selectedpoints.py index 8a35381e27..333a75cbe3 100644 --- a/plotly/validators/bar/_selectedpoints.py +++ b/plotly/validators/bar/_selectedpoints.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/bar/_showlegend.py b/plotly/validators/bar/_showlegend.py index 0b960cd3e9..67817e3860 100644 --- a/plotly/validators/bar/_showlegend.py +++ b/plotly/validators/bar/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/bar/_stream.py b/plotly/validators/bar/_stream.py index cd88e2d165..88cfc9d879 100644 --- a/plotly/validators/bar/_stream.py +++ b/plotly/validators/bar/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/bar/_text.py b/plotly/validators/bar/_text.py index b160636bc3..5156c053d7 100644 --- a/plotly/validators/bar/_text.py +++ b/plotly/validators/bar/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/bar/_textangle.py b/plotly/validators/bar/_textangle.py index 497870cb91..dac23d630e 100644 --- a/plotly/validators/bar/_textangle.py +++ b/plotly/validators/bar/_textangle.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/bar/_textfont.py b/plotly/validators/bar/_textfont.py index 385f6fcc4d..e297af7a60 100644 --- a/plotly/validators/bar/_textfont.py +++ b/plotly/validators/bar/_textfont.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/bar/_textposition.py b/plotly/validators/bar/_textposition.py index 6824e0998e..8a9b737e00 100644 --- a/plotly/validators/bar/_textposition.py +++ b/plotly/validators/bar/_textposition.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/bar/_textpositionsrc.py b/plotly/validators/bar/_textpositionsrc.py index 31f0e4b317..38ac2a8f80 100644 --- a/plotly/validators/bar/_textpositionsrc.py +++ b/plotly/validators/bar/_textpositionsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/_textsrc.py b/plotly/validators/bar/_textsrc.py index fe8489b785..decec8672d 100644 --- a/plotly/validators/bar/_textsrc.py +++ b/plotly/validators/bar/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/_texttemplate.py b/plotly/validators/bar/_texttemplate.py index 265c623d0b..1b555b7943 100644 --- a/plotly/validators/bar/_texttemplate.py +++ b/plotly/validators/bar/_texttemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/bar/_texttemplatesrc.py b/plotly/validators/bar/_texttemplatesrc.py index b0100106ef..7b6b275155 100644 --- a/plotly/validators/bar/_texttemplatesrc.py +++ b/plotly/validators/bar/_texttemplatesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/_uid.py b/plotly/validators/bar/_uid.py index a7d8b47251..d9ed6edf72 100644 --- a/plotly/validators/bar/_uid.py +++ b/plotly/validators/bar/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/bar/_uirevision.py b/plotly/validators/bar/_uirevision.py index b86c9c4caf..fb4b65a027 100644 --- a/plotly/validators/bar/_uirevision.py +++ b/plotly/validators/bar/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/_unselected.py b/plotly/validators/bar/_unselected.py index 7ac6e1cf2f..c5e2650fe2 100644 --- a/plotly/validators/bar/_unselected.py +++ b/plotly/validators/bar/_unselected.py @@ -1,23 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/bar/_visible.py b/plotly/validators/bar/_visible.py index fadd861c3b..37a843a91f 100644 --- a/plotly/validators/bar/_visible.py +++ b/plotly/validators/bar/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/bar/_width.py b/plotly/validators/bar/_width.py index 7aa8affd49..9109985fda 100644 --- a/plotly/validators/bar/_width.py +++ b/plotly/validators/bar/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/bar/_widthsrc.py b/plotly/validators/bar/_widthsrc.py index 00296c11f3..d09beca497 100644 --- a/plotly/validators/bar/_widthsrc.py +++ b/plotly/validators/bar/_widthsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/_x.py b/plotly/validators/bar/_x.py index 11de3a8357..550750c428 100644 --- a/plotly/validators/bar/_x.py +++ b/plotly/validators/bar/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/bar/_x0.py b/plotly/validators/bar/_x0.py index 6391202546..7ecb3419a5 100644 --- a/plotly/validators/bar/_x0.py +++ b/plotly/validators/bar/_x0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class X0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/bar/_xaxis.py b/plotly/validators/bar/_xaxis.py index c29e53fdbf..457361dbe3 100644 --- a/plotly/validators/bar/_xaxis.py +++ b/plotly/validators/bar/_xaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "x"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/bar/_xcalendar.py b/plotly/validators/bar/_xcalendar.py index 3018735736..94c1dbfcee 100644 --- a/plotly/validators/bar/_xcalendar.py +++ b/plotly/validators/bar/_xcalendar.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/bar/_xhoverformat.py b/plotly/validators/bar/_xhoverformat.py index 4c9fafd7f5..3d33476523 100644 --- a/plotly/validators/bar/_xhoverformat.py +++ b/plotly/validators/bar/_xhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/_xperiod.py b/plotly/validators/bar/_xperiod.py index 09da5f1fb9..9d3c3a5572 100644 --- a/plotly/validators/bar/_xperiod.py +++ b/plotly/validators/bar/_xperiod.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XperiodValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/bar/_xperiod0.py b/plotly/validators/bar/_xperiod0.py index 9b0d8b4daa..27ed0ab71e 100644 --- a/plotly/validators/bar/_xperiod0.py +++ b/plotly/validators/bar/_xperiod0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Xperiod0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/bar/_xperiodalignment.py b/plotly/validators/bar/_xperiodalignment.py index 1cbbe3811e..110c9b32b1 100644 --- a/plotly/validators/bar/_xperiodalignment.py +++ b/plotly/validators/bar/_xperiodalignment.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["start", "middle", "end"]), **kwargs, diff --git a/plotly/validators/bar/_xsrc.py b/plotly/validators/bar/_xsrc.py index 2280a4303a..2aa2dbb22b 100644 --- a/plotly/validators/bar/_xsrc.py +++ b/plotly/validators/bar/_xsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/_y.py b/plotly/validators/bar/_y.py index ca53806e22..91128695f4 100644 --- a/plotly/validators/bar/_y.py +++ b/plotly/validators/bar/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/bar/_y0.py b/plotly/validators/bar/_y0.py index aa07a1fb20..fac9819fdd 100644 --- a/plotly/validators/bar/_y0.py +++ b/plotly/validators/bar/_y0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Y0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/bar/_yaxis.py b/plotly/validators/bar/_yaxis.py index cde2a362fb..4029fac0f4 100644 --- a/plotly/validators/bar/_yaxis.py +++ b/plotly/validators/bar/_yaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "y"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/bar/_ycalendar.py b/plotly/validators/bar/_ycalendar.py index 83a9cbd651..7097f5f975 100644 --- a/plotly/validators/bar/_ycalendar.py +++ b/plotly/validators/bar/_ycalendar.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/bar/_yhoverformat.py b/plotly/validators/bar/_yhoverformat.py index d7a37be739..7f6c0864e8 100644 --- a/plotly/validators/bar/_yhoverformat.py +++ b/plotly/validators/bar/_yhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/_yperiod.py b/plotly/validators/bar/_yperiod.py index 36187a6958..150de4a255 100644 --- a/plotly/validators/bar/_yperiod.py +++ b/plotly/validators/bar/_yperiod.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YperiodValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/bar/_yperiod0.py b/plotly/validators/bar/_yperiod0.py index 5787e5d5d2..86b7e3ced5 100644 --- a/plotly/validators/bar/_yperiod0.py +++ b/plotly/validators/bar/_yperiod0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Yperiod0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/bar/_yperiodalignment.py b/plotly/validators/bar/_yperiodalignment.py index f31d64f4cd..5cff356ed9 100644 --- a/plotly/validators/bar/_yperiodalignment.py +++ b/plotly/validators/bar/_yperiodalignment.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["start", "middle", "end"]), **kwargs, diff --git a/plotly/validators/bar/_ysrc.py b/plotly/validators/bar/_ysrc.py index 174e8a9067..a1d23c51ac 100644 --- a/plotly/validators/bar/_ysrc.py +++ b/plotly/validators/bar/_ysrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/_zorder.py b/plotly/validators/bar/_zorder.py index aed8610a6d..f7e5fd25b1 100644 --- a/plotly/validators/bar/_zorder.py +++ b/plotly/validators/bar/_zorder.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZorderValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/bar/error_x/__init__.py b/plotly/validators/bar/error_x/__init__.py index 2e3ce59d75..62838bdb73 100644 --- a/plotly/validators/bar/error_x/__init__.py +++ b/plotly/validators/bar/error_x/__init__.py @@ -1,43 +1,24 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._width import WidthValidator - from ._visible import VisibleValidator - from ._valueminus import ValueminusValidator - from ._value import ValueValidator - from ._type import TypeValidator - from ._tracerefminus import TracerefminusValidator - from ._traceref import TracerefValidator - from ._thickness import ThicknessValidator - from ._symmetric import SymmetricValidator - from ._copy_ystyle import Copy_YstyleValidator - from ._color import ColorValidator - from ._arraysrc import ArraysrcValidator - from ._arrayminussrc import ArrayminussrcValidator - from ._arrayminus import ArrayminusValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/bar/error_x/_array.py b/plotly/validators/bar/error_x/_array.py index f07bcc848c..fec0f55274 100644 --- a/plotly/validators/bar/error_x/_array.py +++ b/plotly/validators/bar/error_x/_array.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrayValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/bar/error_x/_arrayminus.py b/plotly/validators/bar/error_x/_arrayminus.py index 762d79517d..f0c27e41c0 100644 --- a/plotly/validators/bar/error_x/_arrayminus.py +++ b/plotly/validators/bar/error_x/_arrayminus.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrayminusValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/bar/error_x/_arrayminussrc.py b/plotly/validators/bar/error_x/_arrayminussrc.py index 68ae194f8a..05d95c0c64 100644 --- a/plotly/validators/bar/error_x/_arrayminussrc.py +++ b/plotly/validators/bar/error_x/_arrayminussrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrayminussrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/error_x/_arraysrc.py b/plotly/validators/bar/error_x/_arraysrc.py index 2e5407c752..ab55613c47 100644 --- a/plotly/validators/bar/error_x/_arraysrc.py +++ b/plotly/validators/bar/error_x/_arraysrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArraysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/error_x/_color.py b/plotly/validators/bar/error_x/_color.py index 8137504294..c60d9e9509 100644 --- a/plotly/validators/bar/error_x/_color.py +++ b/plotly/validators/bar/error_x/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/bar/error_x/_copy_ystyle.py b/plotly/validators/bar/error_x/_copy_ystyle.py index 931ab66b6a..9a5eddf91b 100644 --- a/plotly/validators/bar/error_x/_copy_ystyle.py +++ b/plotly/validators/bar/error_x/_copy_ystyle.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Copy_YstyleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/bar/error_x/_symmetric.py b/plotly/validators/bar/error_x/_symmetric.py index 5c638bc087..9b6f1885c1 100644 --- a/plotly/validators/bar/error_x/_symmetric.py +++ b/plotly/validators/bar/error_x/_symmetric.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymmetricValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/bar/error_x/_thickness.py b/plotly/validators/bar/error_x/_thickness.py index 7c2072d34a..b65e7711c3 100644 --- a/plotly/validators/bar/error_x/_thickness.py +++ b/plotly/validators/bar/error_x/_thickness.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/bar/error_x/_traceref.py b/plotly/validators/bar/error_x/_traceref.py index 868d031cdf..4016a03a6f 100644 --- a/plotly/validators/bar/error_x/_traceref.py +++ b/plotly/validators/bar/error_x/_traceref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TracerefValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/bar/error_x/_tracerefminus.py b/plotly/validators/bar/error_x/_tracerefminus.py index 0d2f33e85d..1138cc081b 100644 --- a/plotly/validators/bar/error_x/_tracerefminus.py +++ b/plotly/validators/bar/error_x/_tracerefminus.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TracerefminusValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/bar/error_x/_type.py b/plotly/validators/bar/error_x/_type.py index 12cc52ef43..a26692db41 100644 --- a/plotly/validators/bar/error_x/_type.py +++ b/plotly/validators/bar/error_x/_type.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["percent", "constant", "sqrt", "data"]), **kwargs, diff --git a/plotly/validators/bar/error_x/_value.py b/plotly/validators/bar/error_x/_value.py index 340f71c585..7ceec02b80 100644 --- a/plotly/validators/bar/error_x/_value.py +++ b/plotly/validators/bar/error_x/_value.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/bar/error_x/_valueminus.py b/plotly/validators/bar/error_x/_valueminus.py index e9925de8e1..e6d7a53f2e 100644 --- a/plotly/validators/bar/error_x/_valueminus.py +++ b/plotly/validators/bar/error_x/_valueminus.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueminusValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/bar/error_x/_visible.py b/plotly/validators/bar/error_x/_visible.py index 79f4ad008f..7cdbc78767 100644 --- a/plotly/validators/bar/error_x/_visible.py +++ b/plotly/validators/bar/error_x/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/bar/error_x/_width.py b/plotly/validators/bar/error_x/_width.py index b0e7efdd94..22930d3797 100644 --- a/plotly/validators/bar/error_x/_width.py +++ b/plotly/validators/bar/error_x/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/bar/error_y/__init__.py b/plotly/validators/bar/error_y/__init__.py index eff09cd6a0..ea49850d5f 100644 --- a/plotly/validators/bar/error_y/__init__.py +++ b/plotly/validators/bar/error_y/__init__.py @@ -1,41 +1,23 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._width import WidthValidator - from ._visible import VisibleValidator - from ._valueminus import ValueminusValidator - from ._value import ValueValidator - from ._type import TypeValidator - from ._tracerefminus import TracerefminusValidator - from ._traceref import TracerefValidator - from ._thickness import ThicknessValidator - from ._symmetric import SymmetricValidator - from ._color import ColorValidator - from ._arraysrc import ArraysrcValidator - from ._arrayminussrc import ArrayminussrcValidator - from ._arrayminus import ArrayminusValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/bar/error_y/_array.py b/plotly/validators/bar/error_y/_array.py index 31f085ced7..b6fc52ffa0 100644 --- a/plotly/validators/bar/error_y/_array.py +++ b/plotly/validators/bar/error_y/_array.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrayValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/bar/error_y/_arrayminus.py b/plotly/validators/bar/error_y/_arrayminus.py index 3b6605bda8..4da60bc2d0 100644 --- a/plotly/validators/bar/error_y/_arrayminus.py +++ b/plotly/validators/bar/error_y/_arrayminus.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrayminusValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/bar/error_y/_arrayminussrc.py b/plotly/validators/bar/error_y/_arrayminussrc.py index bf7c682490..b2749e6da1 100644 --- a/plotly/validators/bar/error_y/_arrayminussrc.py +++ b/plotly/validators/bar/error_y/_arrayminussrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrayminussrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/error_y/_arraysrc.py b/plotly/validators/bar/error_y/_arraysrc.py index 7d5f461276..11c94c0923 100644 --- a/plotly/validators/bar/error_y/_arraysrc.py +++ b/plotly/validators/bar/error_y/_arraysrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArraysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/error_y/_color.py b/plotly/validators/bar/error_y/_color.py index 63a2d1c101..dabcc5b4a6 100644 --- a/plotly/validators/bar/error_y/_color.py +++ b/plotly/validators/bar/error_y/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/bar/error_y/_symmetric.py b/plotly/validators/bar/error_y/_symmetric.py index f5aad6348d..4a7fd23d7d 100644 --- a/plotly/validators/bar/error_y/_symmetric.py +++ b/plotly/validators/bar/error_y/_symmetric.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymmetricValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/bar/error_y/_thickness.py b/plotly/validators/bar/error_y/_thickness.py index 4cc0602e6e..78ec5d4929 100644 --- a/plotly/validators/bar/error_y/_thickness.py +++ b/plotly/validators/bar/error_y/_thickness.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/bar/error_y/_traceref.py b/plotly/validators/bar/error_y/_traceref.py index c040e4fab7..796a18c21f 100644 --- a/plotly/validators/bar/error_y/_traceref.py +++ b/plotly/validators/bar/error_y/_traceref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TracerefValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/bar/error_y/_tracerefminus.py b/plotly/validators/bar/error_y/_tracerefminus.py index 9924af17a6..de2a3bd066 100644 --- a/plotly/validators/bar/error_y/_tracerefminus.py +++ b/plotly/validators/bar/error_y/_tracerefminus.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TracerefminusValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/bar/error_y/_type.py b/plotly/validators/bar/error_y/_type.py index 21dfcee015..04abf353ac 100644 --- a/plotly/validators/bar/error_y/_type.py +++ b/plotly/validators/bar/error_y/_type.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["percent", "constant", "sqrt", "data"]), **kwargs, diff --git a/plotly/validators/bar/error_y/_value.py b/plotly/validators/bar/error_y/_value.py index 521dabdf8b..53cbc7a56f 100644 --- a/plotly/validators/bar/error_y/_value.py +++ b/plotly/validators/bar/error_y/_value.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/bar/error_y/_valueminus.py b/plotly/validators/bar/error_y/_valueminus.py index 16b77f3c14..1a1376d399 100644 --- a/plotly/validators/bar/error_y/_valueminus.py +++ b/plotly/validators/bar/error_y/_valueminus.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueminusValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/bar/error_y/_visible.py b/plotly/validators/bar/error_y/_visible.py index 5d3453b0d0..2ebd6115d7 100644 --- a/plotly/validators/bar/error_y/_visible.py +++ b/plotly/validators/bar/error_y/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/bar/error_y/_width.py b/plotly/validators/bar/error_y/_width.py index 8306a787d3..07d97b7744 100644 --- a/plotly/validators/bar/error_y/_width.py +++ b/plotly/validators/bar/error_y/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/bar/hoverlabel/__init__.py b/plotly/validators/bar/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/bar/hoverlabel/__init__.py +++ b/plotly/validators/bar/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/bar/hoverlabel/_align.py b/plotly/validators/bar/hoverlabel/_align.py index 5b85aada0b..c183dd3549 100644 --- a/plotly/validators/bar/hoverlabel/_align.py +++ b/plotly/validators/bar/hoverlabel/_align.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/bar/hoverlabel/_alignsrc.py b/plotly/validators/bar/hoverlabel/_alignsrc.py index 1936477839..af5351a0a4 100644 --- a/plotly/validators/bar/hoverlabel/_alignsrc.py +++ b/plotly/validators/bar/hoverlabel/_alignsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/hoverlabel/_bgcolor.py b/plotly/validators/bar/hoverlabel/_bgcolor.py index 5c1cd30b77..84fe666b44 100644 --- a/plotly/validators/bar/hoverlabel/_bgcolor.py +++ b/plotly/validators/bar/hoverlabel/_bgcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/bar/hoverlabel/_bgcolorsrc.py b/plotly/validators/bar/hoverlabel/_bgcolorsrc.py index 52bb4c8ada..d0de2c9095 100644 --- a/plotly/validators/bar/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/bar/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/hoverlabel/_bordercolor.py b/plotly/validators/bar/hoverlabel/_bordercolor.py index 61eeca39f5..a3b6100111 100644 --- a/plotly/validators/bar/hoverlabel/_bordercolor.py +++ b/plotly/validators/bar/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/bar/hoverlabel/_bordercolorsrc.py b/plotly/validators/bar/hoverlabel/_bordercolorsrc.py index e3612555c4..76bdc677b1 100644 --- a/plotly/validators/bar/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/bar/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/hoverlabel/_font.py b/plotly/validators/bar/hoverlabel/_font.py index 4502e73540..7e92da9b02 100644 --- a/plotly/validators/bar/hoverlabel/_font.py +++ b/plotly/validators/bar/hoverlabel/_font.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/bar/hoverlabel/_namelength.py b/plotly/validators/bar/hoverlabel/_namelength.py index deecf475f9..5182d54879 100644 --- a/plotly/validators/bar/hoverlabel/_namelength.py +++ b/plotly/validators/bar/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/bar/hoverlabel/_namelengthsrc.py b/plotly/validators/bar/hoverlabel/_namelengthsrc.py index e3dc7e34ee..d58920be63 100644 --- a/plotly/validators/bar/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/bar/hoverlabel/_namelengthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/hoverlabel/font/__init__.py b/plotly/validators/bar/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/bar/hoverlabel/font/__init__.py +++ b/plotly/validators/bar/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/bar/hoverlabel/font/_color.py b/plotly/validators/bar/hoverlabel/font/_color.py index ec600f7127..7d2589d131 100644 --- a/plotly/validators/bar/hoverlabel/font/_color.py +++ b/plotly/validators/bar/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/bar/hoverlabel/font/_colorsrc.py b/plotly/validators/bar/hoverlabel/font/_colorsrc.py index c9026f36cf..6ce8be0bfb 100644 --- a/plotly/validators/bar/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/bar/hoverlabel/font/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/hoverlabel/font/_family.py b/plotly/validators/bar/hoverlabel/font/_family.py index 8ce9c0474c..80103f4d9a 100644 --- a/plotly/validators/bar/hoverlabel/font/_family.py +++ b/plotly/validators/bar/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/bar/hoverlabel/font/_familysrc.py b/plotly/validators/bar/hoverlabel/font/_familysrc.py index 4f35a77503..7c32b34fb1 100644 --- a/plotly/validators/bar/hoverlabel/font/_familysrc.py +++ b/plotly/validators/bar/hoverlabel/font/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/hoverlabel/font/_lineposition.py b/plotly/validators/bar/hoverlabel/font/_lineposition.py index 007cdf181f..bb2ea96de7 100644 --- a/plotly/validators/bar/hoverlabel/font/_lineposition.py +++ b/plotly/validators/bar/hoverlabel/font/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/bar/hoverlabel/font/_linepositionsrc.py b/plotly/validators/bar/hoverlabel/font/_linepositionsrc.py index bfac3c81ad..20b8fd961a 100644 --- a/plotly/validators/bar/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/bar/hoverlabel/font/_linepositionsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/hoverlabel/font/_shadow.py b/plotly/validators/bar/hoverlabel/font/_shadow.py index 91752e8bee..3b4f256526 100644 --- a/plotly/validators/bar/hoverlabel/font/_shadow.py +++ b/plotly/validators/bar/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/bar/hoverlabel/font/_shadowsrc.py b/plotly/validators/bar/hoverlabel/font/_shadowsrc.py index 0d87bc22f5..4eb7f9bcb4 100644 --- a/plotly/validators/bar/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/bar/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/hoverlabel/font/_size.py b/plotly/validators/bar/hoverlabel/font/_size.py index 9a5c81fa26..98eb2d4a1e 100644 --- a/plotly/validators/bar/hoverlabel/font/_size.py +++ b/plotly/validators/bar/hoverlabel/font/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/bar/hoverlabel/font/_sizesrc.py b/plotly/validators/bar/hoverlabel/font/_sizesrc.py index c55978c66e..070f97a2d7 100644 --- a/plotly/validators/bar/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/bar/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/hoverlabel/font/_style.py b/plotly/validators/bar/hoverlabel/font/_style.py index 6b9717a78e..c003c9438a 100644 --- a/plotly/validators/bar/hoverlabel/font/_style.py +++ b/plotly/validators/bar/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/bar/hoverlabel/font/_stylesrc.py b/plotly/validators/bar/hoverlabel/font/_stylesrc.py index 0ed6844d92..146220d0d9 100644 --- a/plotly/validators/bar/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/bar/hoverlabel/font/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/hoverlabel/font/_textcase.py b/plotly/validators/bar/hoverlabel/font/_textcase.py index 2d7559f05c..41135829a6 100644 --- a/plotly/validators/bar/hoverlabel/font/_textcase.py +++ b/plotly/validators/bar/hoverlabel/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/bar/hoverlabel/font/_textcasesrc.py b/plotly/validators/bar/hoverlabel/font/_textcasesrc.py index 7c09323e4e..9f87f3ddcf 100644 --- a/plotly/validators/bar/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/bar/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/hoverlabel/font/_variant.py b/plotly/validators/bar/hoverlabel/font/_variant.py index b5d5150a29..0979203716 100644 --- a/plotly/validators/bar/hoverlabel/font/_variant.py +++ b/plotly/validators/bar/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/bar/hoverlabel/font/_variantsrc.py b/plotly/validators/bar/hoverlabel/font/_variantsrc.py index 2e36ec85fc..1234eb7f3a 100644 --- a/plotly/validators/bar/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/bar/hoverlabel/font/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/hoverlabel/font/_weight.py b/plotly/validators/bar/hoverlabel/font/_weight.py index 79ee83df1b..b75fceae8e 100644 --- a/plotly/validators/bar/hoverlabel/font/_weight.py +++ b/plotly/validators/bar/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/bar/hoverlabel/font/_weightsrc.py b/plotly/validators/bar/hoverlabel/font/_weightsrc.py index aabcbb8c06..7ba44e421c 100644 --- a/plotly/validators/bar/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/bar/hoverlabel/font/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/insidetextfont/__init__.py b/plotly/validators/bar/insidetextfont/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/bar/insidetextfont/__init__.py +++ b/plotly/validators/bar/insidetextfont/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/bar/insidetextfont/_color.py b/plotly/validators/bar/insidetextfont/_color.py index e4a3334fd8..bda48d7d4b 100644 --- a/plotly/validators/bar/insidetextfont/_color.py +++ b/plotly/validators/bar/insidetextfont/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/bar/insidetextfont/_colorsrc.py b/plotly/validators/bar/insidetextfont/_colorsrc.py index 43615916f5..06225ceeb9 100644 --- a/plotly/validators/bar/insidetextfont/_colorsrc.py +++ b/plotly/validators/bar/insidetextfont/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/insidetextfont/_family.py b/plotly/validators/bar/insidetextfont/_family.py index 705f9d7332..5936fbb0ad 100644 --- a/plotly/validators/bar/insidetextfont/_family.py +++ b/plotly/validators/bar/insidetextfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/bar/insidetextfont/_familysrc.py b/plotly/validators/bar/insidetextfont/_familysrc.py index a35011e40b..7bffb4c662 100644 --- a/plotly/validators/bar/insidetextfont/_familysrc.py +++ b/plotly/validators/bar/insidetextfont/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/insidetextfont/_lineposition.py b/plotly/validators/bar/insidetextfont/_lineposition.py index fc9c74a27d..37c1555cdc 100644 --- a/plotly/validators/bar/insidetextfont/_lineposition.py +++ b/plotly/validators/bar/insidetextfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/bar/insidetextfont/_linepositionsrc.py b/plotly/validators/bar/insidetextfont/_linepositionsrc.py index 15948f678e..58012b9b84 100644 --- a/plotly/validators/bar/insidetextfont/_linepositionsrc.py +++ b/plotly/validators/bar/insidetextfont/_linepositionsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/insidetextfont/_shadow.py b/plotly/validators/bar/insidetextfont/_shadow.py index 375090a768..4ab53b53d3 100644 --- a/plotly/validators/bar/insidetextfont/_shadow.py +++ b/plotly/validators/bar/insidetextfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/bar/insidetextfont/_shadowsrc.py b/plotly/validators/bar/insidetextfont/_shadowsrc.py index 60540f1d3b..1e1af2b43b 100644 --- a/plotly/validators/bar/insidetextfont/_shadowsrc.py +++ b/plotly/validators/bar/insidetextfont/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/insidetextfont/_size.py b/plotly/validators/bar/insidetextfont/_size.py index 8e6a922ab1..2b2f16b2ef 100644 --- a/plotly/validators/bar/insidetextfont/_size.py +++ b/plotly/validators/bar/insidetextfont/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/bar/insidetextfont/_sizesrc.py b/plotly/validators/bar/insidetextfont/_sizesrc.py index 53f7c8a195..1a5531b5c7 100644 --- a/plotly/validators/bar/insidetextfont/_sizesrc.py +++ b/plotly/validators/bar/insidetextfont/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/insidetextfont/_style.py b/plotly/validators/bar/insidetextfont/_style.py index 55d9947aa7..bfbd8c5fa3 100644 --- a/plotly/validators/bar/insidetextfont/_style.py +++ b/plotly/validators/bar/insidetextfont/_style.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/bar/insidetextfont/_stylesrc.py b/plotly/validators/bar/insidetextfont/_stylesrc.py index f88a26cd39..ae029ee971 100644 --- a/plotly/validators/bar/insidetextfont/_stylesrc.py +++ b/plotly/validators/bar/insidetextfont/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/insidetextfont/_textcase.py b/plotly/validators/bar/insidetextfont/_textcase.py index d5948682e5..b48f06c242 100644 --- a/plotly/validators/bar/insidetextfont/_textcase.py +++ b/plotly/validators/bar/insidetextfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/bar/insidetextfont/_textcasesrc.py b/plotly/validators/bar/insidetextfont/_textcasesrc.py index c505245de9..543c630213 100644 --- a/plotly/validators/bar/insidetextfont/_textcasesrc.py +++ b/plotly/validators/bar/insidetextfont/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/insidetextfont/_variant.py b/plotly/validators/bar/insidetextfont/_variant.py index fc14ee7d69..ead876fb57 100644 --- a/plotly/validators/bar/insidetextfont/_variant.py +++ b/plotly/validators/bar/insidetextfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( diff --git a/plotly/validators/bar/insidetextfont/_variantsrc.py b/plotly/validators/bar/insidetextfont/_variantsrc.py index 569ab9e0cf..b2c8462e02 100644 --- a/plotly/validators/bar/insidetextfont/_variantsrc.py +++ b/plotly/validators/bar/insidetextfont/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/insidetextfont/_weight.py b/plotly/validators/bar/insidetextfont/_weight.py index c307665152..abf91e1dfe 100644 --- a/plotly/validators/bar/insidetextfont/_weight.py +++ b/plotly/validators/bar/insidetextfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/bar/insidetextfont/_weightsrc.py b/plotly/validators/bar/insidetextfont/_weightsrc.py index b483266fa9..3aa55a8594 100644 --- a/plotly/validators/bar/insidetextfont/_weightsrc.py +++ b/plotly/validators/bar/insidetextfont/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/legendgrouptitle/__init__.py b/plotly/validators/bar/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/bar/legendgrouptitle/__init__.py +++ b/plotly/validators/bar/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/bar/legendgrouptitle/_font.py b/plotly/validators/bar/legendgrouptitle/_font.py index 1e12588a83..705681d11d 100644 --- a/plotly/validators/bar/legendgrouptitle/_font.py +++ b/plotly/validators/bar/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/bar/legendgrouptitle/_text.py b/plotly/validators/bar/legendgrouptitle/_text.py index e2d707f876..bc52680c46 100644 --- a/plotly/validators/bar/legendgrouptitle/_text.py +++ b/plotly/validators/bar/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/bar/legendgrouptitle/font/__init__.py b/plotly/validators/bar/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/bar/legendgrouptitle/font/__init__.py +++ b/plotly/validators/bar/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/bar/legendgrouptitle/font/_color.py b/plotly/validators/bar/legendgrouptitle/font/_color.py index e11487a07e..77f472049e 100644 --- a/plotly/validators/bar/legendgrouptitle/font/_color.py +++ b/plotly/validators/bar/legendgrouptitle/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/bar/legendgrouptitle/font/_family.py b/plotly/validators/bar/legendgrouptitle/font/_family.py index c83f577e3a..300a1f4808 100644 --- a/plotly/validators/bar/legendgrouptitle/font/_family.py +++ b/plotly/validators/bar/legendgrouptitle/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/bar/legendgrouptitle/font/_lineposition.py b/plotly/validators/bar/legendgrouptitle/font/_lineposition.py index 090b1d827f..76fa7649a4 100644 --- a/plotly/validators/bar/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/bar/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/bar/legendgrouptitle/font/_shadow.py b/plotly/validators/bar/legendgrouptitle/font/_shadow.py index f96027b1b0..8d8212592b 100644 --- a/plotly/validators/bar/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/bar/legendgrouptitle/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/bar/legendgrouptitle/font/_size.py b/plotly/validators/bar/legendgrouptitle/font/_size.py index dc2f56db96..3337023f37 100644 --- a/plotly/validators/bar/legendgrouptitle/font/_size.py +++ b/plotly/validators/bar/legendgrouptitle/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/bar/legendgrouptitle/font/_style.py b/plotly/validators/bar/legendgrouptitle/font/_style.py index cb34f49562..9ae6685934 100644 --- a/plotly/validators/bar/legendgrouptitle/font/_style.py +++ b/plotly/validators/bar/legendgrouptitle/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/bar/legendgrouptitle/font/_textcase.py b/plotly/validators/bar/legendgrouptitle/font/_textcase.py index cdda04773c..eed8ab1054 100644 --- a/plotly/validators/bar/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/bar/legendgrouptitle/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/bar/legendgrouptitle/font/_variant.py b/plotly/validators/bar/legendgrouptitle/font/_variant.py index e6fc43fb31..fadb441a88 100644 --- a/plotly/validators/bar/legendgrouptitle/font/_variant.py +++ b/plotly/validators/bar/legendgrouptitle/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/bar/legendgrouptitle/font/_weight.py b/plotly/validators/bar/legendgrouptitle/font/_weight.py index 4028d48749..2673055d18 100644 --- a/plotly/validators/bar/legendgrouptitle/font/_weight.py +++ b/plotly/validators/bar/legendgrouptitle/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/bar/marker/__init__.py b/plotly/validators/bar/marker/__init__.py index 8f8e3d4a93..69ad877d80 100644 --- a/plotly/validators/bar/marker/__init__.py +++ b/plotly/validators/bar/marker/__init__.py @@ -1,47 +1,26 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._showscale import ShowscaleValidator - from ._reversescale import ReversescaleValidator - from ._pattern import PatternValidator - from ._opacitysrc import OpacitysrcValidator - from ._opacity import OpacityValidator - from ._line import LineValidator - from ._cornerradius import CornerradiusValidator - from ._colorsrc import ColorsrcValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._color import ColorValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/bar/marker/_autocolorscale.py b/plotly/validators/bar/marker/_autocolorscale.py index 3427fbf601..fc78fcb5cb 100644 --- a/plotly/validators/bar/marker/_autocolorscale.py +++ b/plotly/validators/bar/marker/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/bar/marker/_cauto.py b/plotly/validators/bar/marker/_cauto.py index 00e27c9f3a..3158512a78 100644 --- a/plotly/validators/bar/marker/_cauto.py +++ b/plotly/validators/bar/marker/_cauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/bar/marker/_cmax.py b/plotly/validators/bar/marker/_cmax.py index 2d937d74a0..aa62680271 100644 --- a/plotly/validators/bar/marker/_cmax.py +++ b/plotly/validators/bar/marker/_cmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/bar/marker/_cmid.py b/plotly/validators/bar/marker/_cmid.py index 4bccb1831f..8b23f304d8 100644 --- a/plotly/validators/bar/marker/_cmid.py +++ b/plotly/validators/bar/marker/_cmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/bar/marker/_cmin.py b/plotly/validators/bar/marker/_cmin.py index 3d3d12baa6..7d99cd2890 100644 --- a/plotly/validators/bar/marker/_cmin.py +++ b/plotly/validators/bar/marker/_cmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/bar/marker/_color.py b/plotly/validators/bar/marker/_color.py index 000a617f32..aae01783c3 100644 --- a/plotly/validators/bar/marker/_color.py +++ b/plotly/validators/bar/marker/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_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"), diff --git a/plotly/validators/bar/marker/_coloraxis.py b/plotly/validators/bar/marker/_coloraxis.py index 6308c4be1c..01bca7aa36 100644 --- a/plotly/validators/bar/marker/_coloraxis.py +++ b/plotly/validators/bar/marker/_coloraxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/bar/marker/_colorbar.py b/plotly/validators/bar/marker/_colorbar.py index 4155df5580..fe4e077282 100644 --- a/plotly/validators/bar/marker/_colorbar.py +++ b/plotly/validators/bar/marker/_colorbar.py @@ -1,278 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/bar/marker/_colorscale.py b/plotly/validators/bar/marker/_colorscale.py index 32805483a4..4a577e6c5d 100644 --- a/plotly/validators/bar/marker/_colorscale.py +++ b/plotly/validators/bar/marker/_colorscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/bar/marker/_colorsrc.py b/plotly/validators/bar/marker/_colorsrc.py index eca2204e44..d3ff2d441c 100644 --- a/plotly/validators/bar/marker/_colorsrc.py +++ b/plotly/validators/bar/marker/_colorsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/marker/_cornerradius.py b/plotly/validators/bar/marker/_cornerradius.py index 889051129c..416f08add9 100644 --- a/plotly/validators/bar/marker/_cornerradius.py +++ b/plotly/validators/bar/marker/_cornerradius.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CornerradiusValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/bar/marker/_line.py b/plotly/validators/bar/marker/_line.py index 7a0fa50653..90b5cb2ed0 100644 --- a/plotly/validators/bar/marker/_line.py +++ b/plotly/validators/bar/marker/_line.py @@ -1,104 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/bar/marker/_opacity.py b/plotly/validators/bar/marker/_opacity.py index 0dbed4dd7e..9ddb6f48cd 100644 --- a/plotly/validators/bar/marker/_opacity.py +++ b/plotly/validators/bar/marker/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), diff --git a/plotly/validators/bar/marker/_opacitysrc.py b/plotly/validators/bar/marker/_opacitysrc.py index f4fff7ba6a..a47e2684ce 100644 --- a/plotly/validators/bar/marker/_opacitysrc.py +++ b/plotly/validators/bar/marker/_opacitysrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/marker/_pattern.py b/plotly/validators/bar/marker/_pattern.py index 07b9431191..70fd8602a1 100644 --- a/plotly/validators/bar/marker/_pattern.py +++ b/plotly/validators/bar/marker/_pattern.py @@ -1,63 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PatternValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/bar/marker/_reversescale.py b/plotly/validators/bar/marker/_reversescale.py index 87e1df93fa..1f9bddab37 100644 --- a/plotly/validators/bar/marker/_reversescale.py +++ b/plotly/validators/bar/marker/_reversescale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/bar/marker/_showscale.py b/plotly/validators/bar/marker/_showscale.py index f89c360ae8..a3ed763370 100644 --- a/plotly/validators/bar/marker/_showscale.py +++ b/plotly/validators/bar/marker/_showscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/bar/marker/colorbar/__init__.py b/plotly/validators/bar/marker/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/bar/marker/colorbar/__init__.py +++ b/plotly/validators/bar/marker/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/bar/marker/colorbar/_bgcolor.py b/plotly/validators/bar/marker/colorbar/_bgcolor.py index 87d8ddd5f2..ef6532075f 100644 --- a/plotly/validators/bar/marker/colorbar/_bgcolor.py +++ b/plotly/validators/bar/marker/colorbar/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/bar/marker/colorbar/_bordercolor.py b/plotly/validators/bar/marker/colorbar/_bordercolor.py index 309f7eb65c..2e71a59728 100644 --- a/plotly/validators/bar/marker/colorbar/_bordercolor.py +++ b/plotly/validators/bar/marker/colorbar/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/bar/marker/colorbar/_borderwidth.py b/plotly/validators/bar/marker/colorbar/_borderwidth.py index fb311243c7..9258c6fdf8 100644 --- a/plotly/validators/bar/marker/colorbar/_borderwidth.py +++ b/plotly/validators/bar/marker/colorbar/_borderwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/bar/marker/colorbar/_dtick.py b/plotly/validators/bar/marker/colorbar/_dtick.py index 342b57809d..3192c43358 100644 --- a/plotly/validators/bar/marker/colorbar/_dtick.py +++ b/plotly/validators/bar/marker/colorbar/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/bar/marker/colorbar/_exponentformat.py b/plotly/validators/bar/marker/colorbar/_exponentformat.py index 5ed0f77e3a..2fcd5a39e9 100644 --- a/plotly/validators/bar/marker/colorbar/_exponentformat.py +++ b/plotly/validators/bar/marker/colorbar/_exponentformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/bar/marker/colorbar/_labelalias.py b/plotly/validators/bar/marker/colorbar/_labelalias.py index 58f08b59ff..e3ec99719f 100644 --- a/plotly/validators/bar/marker/colorbar/_labelalias.py +++ b/plotly/validators/bar/marker/colorbar/_labelalias.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/bar/marker/colorbar/_len.py b/plotly/validators/bar/marker/colorbar/_len.py index 5111f984c4..40e1aeb72f 100644 --- a/plotly/validators/bar/marker/colorbar/_len.py +++ b/plotly/validators/bar/marker/colorbar/_len.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/bar/marker/colorbar/_lenmode.py b/plotly/validators/bar/marker/colorbar/_lenmode.py index 090299432d..5c93db2269 100644 --- a/plotly/validators/bar/marker/colorbar/_lenmode.py +++ b/plotly/validators/bar/marker/colorbar/_lenmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/bar/marker/colorbar/_minexponent.py b/plotly/validators/bar/marker/colorbar/_minexponent.py index 1590bda863..3ba40239ac 100644 --- a/plotly/validators/bar/marker/colorbar/_minexponent.py +++ b/plotly/validators/bar/marker/colorbar/_minexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/bar/marker/colorbar/_nticks.py b/plotly/validators/bar/marker/colorbar/_nticks.py index 3ba23e297d..78c4f81845 100644 --- a/plotly/validators/bar/marker/colorbar/_nticks.py +++ b/plotly/validators/bar/marker/colorbar/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/bar/marker/colorbar/_orientation.py b/plotly/validators/bar/marker/colorbar/_orientation.py index 439fa7b0d6..678f4ae797 100644 --- a/plotly/validators/bar/marker/colorbar/_orientation.py +++ b/plotly/validators/bar/marker/colorbar/_orientation.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/bar/marker/colorbar/_outlinecolor.py b/plotly/validators/bar/marker/colorbar/_outlinecolor.py index 78330ffaef..49842e5816 100644 --- a/plotly/validators/bar/marker/colorbar/_outlinecolor.py +++ b/plotly/validators/bar/marker/colorbar/_outlinecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/bar/marker/colorbar/_outlinewidth.py b/plotly/validators/bar/marker/colorbar/_outlinewidth.py index 54c5c36927..a345252c0b 100644 --- a/plotly/validators/bar/marker/colorbar/_outlinewidth.py +++ b/plotly/validators/bar/marker/colorbar/_outlinewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/bar/marker/colorbar/_separatethousands.py b/plotly/validators/bar/marker/colorbar/_separatethousands.py index 31d071f1e1..599c42d343 100644 --- a/plotly/validators/bar/marker/colorbar/_separatethousands.py +++ b/plotly/validators/bar/marker/colorbar/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/bar/marker/colorbar/_showexponent.py b/plotly/validators/bar/marker/colorbar/_showexponent.py index 6da60dae8e..ba4183c90a 100644 --- a/plotly/validators/bar/marker/colorbar/_showexponent.py +++ b/plotly/validators/bar/marker/colorbar/_showexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/bar/marker/colorbar/_showticklabels.py b/plotly/validators/bar/marker/colorbar/_showticklabels.py index 41d65921d4..d96f20c1e1 100644 --- a/plotly/validators/bar/marker/colorbar/_showticklabels.py +++ b/plotly/validators/bar/marker/colorbar/_showticklabels.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/bar/marker/colorbar/_showtickprefix.py b/plotly/validators/bar/marker/colorbar/_showtickprefix.py index 892554666c..60ee8228ca 100644 --- a/plotly/validators/bar/marker/colorbar/_showtickprefix.py +++ b/plotly/validators/bar/marker/colorbar/_showtickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/bar/marker/colorbar/_showticksuffix.py b/plotly/validators/bar/marker/colorbar/_showticksuffix.py index 84c7eb4fb3..6daffce6f1 100644 --- a/plotly/validators/bar/marker/colorbar/_showticksuffix.py +++ b/plotly/validators/bar/marker/colorbar/_showticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/bar/marker/colorbar/_thickness.py b/plotly/validators/bar/marker/colorbar/_thickness.py index 664c33c9b0..016d994acf 100644 --- a/plotly/validators/bar/marker/colorbar/_thickness.py +++ b/plotly/validators/bar/marker/colorbar/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/bar/marker/colorbar/_thicknessmode.py b/plotly/validators/bar/marker/colorbar/_thicknessmode.py index 129a7e972a..6a0b6ca698 100644 --- a/plotly/validators/bar/marker/colorbar/_thicknessmode.py +++ b/plotly/validators/bar/marker/colorbar/_thicknessmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/bar/marker/colorbar/_tick0.py b/plotly/validators/bar/marker/colorbar/_tick0.py index 6f949f131b..74cbee7364 100644 --- a/plotly/validators/bar/marker/colorbar/_tick0.py +++ b/plotly/validators/bar/marker/colorbar/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/bar/marker/colorbar/_tickangle.py b/plotly/validators/bar/marker/colorbar/_tickangle.py index a4002dc912..361b92289b 100644 --- a/plotly/validators/bar/marker/colorbar/_tickangle.py +++ b/plotly/validators/bar/marker/colorbar/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/bar/marker/colorbar/_tickcolor.py b/plotly/validators/bar/marker/colorbar/_tickcolor.py index fa4e805bb6..2b213cc291 100644 --- a/plotly/validators/bar/marker/colorbar/_tickcolor.py +++ b/plotly/validators/bar/marker/colorbar/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/bar/marker/colorbar/_tickfont.py b/plotly/validators/bar/marker/colorbar/_tickfont.py index b73e949eed..071f6f002b 100644 --- a/plotly/validators/bar/marker/colorbar/_tickfont.py +++ b/plotly/validators/bar/marker/colorbar/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/bar/marker/colorbar/_tickformat.py b/plotly/validators/bar/marker/colorbar/_tickformat.py index f8b126d9ad..c0ff29f61a 100644 --- a/plotly/validators/bar/marker/colorbar/_tickformat.py +++ b/plotly/validators/bar/marker/colorbar/_tickformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/bar/marker/colorbar/_tickformatstopdefaults.py b/plotly/validators/bar/marker/colorbar/_tickformatstopdefaults.py index 6398584338..12ca13c11e 100644 --- a/plotly/validators/bar/marker/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/bar/marker/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/bar/marker/colorbar/_tickformatstops.py b/plotly/validators/bar/marker/colorbar/_tickformatstops.py index 84d9dcfa42..e90bf3cb4a 100644 --- a/plotly/validators/bar/marker/colorbar/_tickformatstops.py +++ b/plotly/validators/bar/marker/colorbar/_tickformatstops.py @@ -1,50 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/bar/marker/colorbar/_ticklabeloverflow.py b/plotly/validators/bar/marker/colorbar/_ticklabeloverflow.py index 8f4306b30d..cf1c9e8ad1 100644 --- a/plotly/validators/bar/marker/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/bar/marker/colorbar/_ticklabeloverflow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/bar/marker/colorbar/_ticklabelposition.py b/plotly/validators/bar/marker/colorbar/_ticklabelposition.py index 3da79dcd03..978fd31fe5 100644 --- a/plotly/validators/bar/marker/colorbar/_ticklabelposition.py +++ b/plotly/validators/bar/marker/colorbar/_ticklabelposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/bar/marker/colorbar/_ticklabelstep.py b/plotly/validators/bar/marker/colorbar/_ticklabelstep.py index 7dda5eb2a0..bd4ab46fe5 100644 --- a/plotly/validators/bar/marker/colorbar/_ticklabelstep.py +++ b/plotly/validators/bar/marker/colorbar/_ticklabelstep.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/bar/marker/colorbar/_ticklen.py b/plotly/validators/bar/marker/colorbar/_ticklen.py index d56749cc7c..b8bfd4b650 100644 --- a/plotly/validators/bar/marker/colorbar/_ticklen.py +++ b/plotly/validators/bar/marker/colorbar/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/bar/marker/colorbar/_tickmode.py b/plotly/validators/bar/marker/colorbar/_tickmode.py index 112080de23..ce35ea28d9 100644 --- a/plotly/validators/bar/marker/colorbar/_tickmode.py +++ b/plotly/validators/bar/marker/colorbar/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/bar/marker/colorbar/_tickprefix.py b/plotly/validators/bar/marker/colorbar/_tickprefix.py index 62ee4d2b8b..bad5bf50b2 100644 --- a/plotly/validators/bar/marker/colorbar/_tickprefix.py +++ b/plotly/validators/bar/marker/colorbar/_tickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/bar/marker/colorbar/_ticks.py b/plotly/validators/bar/marker/colorbar/_ticks.py index cede8bd688..b2f83b7df4 100644 --- a/plotly/validators/bar/marker/colorbar/_ticks.py +++ b/plotly/validators/bar/marker/colorbar/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/bar/marker/colorbar/_ticksuffix.py b/plotly/validators/bar/marker/colorbar/_ticksuffix.py index 4fe862b540..660fc1f3f2 100644 --- a/plotly/validators/bar/marker/colorbar/_ticksuffix.py +++ b/plotly/validators/bar/marker/colorbar/_ticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/bar/marker/colorbar/_ticktext.py b/plotly/validators/bar/marker/colorbar/_ticktext.py index 0c86bcb17b..8cf9a02a4a 100644 --- a/plotly/validators/bar/marker/colorbar/_ticktext.py +++ b/plotly/validators/bar/marker/colorbar/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/bar/marker/colorbar/_ticktextsrc.py b/plotly/validators/bar/marker/colorbar/_ticktextsrc.py index 3b45f4d9c7..a8d3b77eea 100644 --- a/plotly/validators/bar/marker/colorbar/_ticktextsrc.py +++ b/plotly/validators/bar/marker/colorbar/_ticktextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/marker/colorbar/_tickvals.py b/plotly/validators/bar/marker/colorbar/_tickvals.py index 55ef267a6d..a510ba9d65 100644 --- a/plotly/validators/bar/marker/colorbar/_tickvals.py +++ b/plotly/validators/bar/marker/colorbar/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/bar/marker/colorbar/_tickvalssrc.py b/plotly/validators/bar/marker/colorbar/_tickvalssrc.py index 39fc27b4db..7504db3fd4 100644 --- a/plotly/validators/bar/marker/colorbar/_tickvalssrc.py +++ b/plotly/validators/bar/marker/colorbar/_tickvalssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/marker/colorbar/_tickwidth.py b/plotly/validators/bar/marker/colorbar/_tickwidth.py index dce4b9578c..6e28523399 100644 --- a/plotly/validators/bar/marker/colorbar/_tickwidth.py +++ b/plotly/validators/bar/marker/colorbar/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/bar/marker/colorbar/_title.py b/plotly/validators/bar/marker/colorbar/_title.py index cb47c32f1a..1973dc061e 100644 --- a/plotly/validators/bar/marker/colorbar/_title.py +++ b/plotly/validators/bar/marker/colorbar/_title.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/bar/marker/colorbar/_x.py b/plotly/validators/bar/marker/colorbar/_x.py index f8cc0c516d..2bc2e3039c 100644 --- a/plotly/validators/bar/marker/colorbar/_x.py +++ b/plotly/validators/bar/marker/colorbar/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/bar/marker/colorbar/_xanchor.py b/plotly/validators/bar/marker/colorbar/_xanchor.py index ac443b16ea..018558a16f 100644 --- a/plotly/validators/bar/marker/colorbar/_xanchor.py +++ b/plotly/validators/bar/marker/colorbar/_xanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/bar/marker/colorbar/_xpad.py b/plotly/validators/bar/marker/colorbar/_xpad.py index 8c1888f8cc..3ef621c07e 100644 --- a/plotly/validators/bar/marker/colorbar/_xpad.py +++ b/plotly/validators/bar/marker/colorbar/_xpad.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/bar/marker/colorbar/_xref.py b/plotly/validators/bar/marker/colorbar/_xref.py index 732ea06b73..b15b39b731 100644 --- a/plotly/validators/bar/marker/colorbar/_xref.py +++ b/plotly/validators/bar/marker/colorbar/_xref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/bar/marker/colorbar/_y.py b/plotly/validators/bar/marker/colorbar/_y.py index d8b1fdf0ec..a19fe84eaa 100644 --- a/plotly/validators/bar/marker/colorbar/_y.py +++ b/plotly/validators/bar/marker/colorbar/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/bar/marker/colorbar/_yanchor.py b/plotly/validators/bar/marker/colorbar/_yanchor.py index 3178891622..b42afb3c9b 100644 --- a/plotly/validators/bar/marker/colorbar/_yanchor.py +++ b/plotly/validators/bar/marker/colorbar/_yanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/bar/marker/colorbar/_ypad.py b/plotly/validators/bar/marker/colorbar/_ypad.py index 67cd6d14d0..ad54955b34 100644 --- a/plotly/validators/bar/marker/colorbar/_ypad.py +++ b/plotly/validators/bar/marker/colorbar/_ypad.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/bar/marker/colorbar/_yref.py b/plotly/validators/bar/marker/colorbar/_yref.py index 6409082484..64d0492cd6 100644 --- a/plotly/validators/bar/marker/colorbar/_yref.py +++ b/plotly/validators/bar/marker/colorbar/_yref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/bar/marker/colorbar/tickfont/__init__.py b/plotly/validators/bar/marker/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/bar/marker/colorbar/tickfont/__init__.py +++ b/plotly/validators/bar/marker/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/bar/marker/colorbar/tickfont/_color.py b/plotly/validators/bar/marker/colorbar/tickfont/_color.py index 70f24e2c93..18252fc783 100644 --- a/plotly/validators/bar/marker/colorbar/tickfont/_color.py +++ b/plotly/validators/bar/marker/colorbar/tickfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/bar/marker/colorbar/tickfont/_family.py b/plotly/validators/bar/marker/colorbar/tickfont/_family.py index 86e55813c1..11c3aa9f5f 100644 --- a/plotly/validators/bar/marker/colorbar/tickfont/_family.py +++ b/plotly/validators/bar/marker/colorbar/tickfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/bar/marker/colorbar/tickfont/_lineposition.py b/plotly/validators/bar/marker/colorbar/tickfont/_lineposition.py index 49769a210f..171461695e 100644 --- a/plotly/validators/bar/marker/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/bar/marker/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/bar/marker/colorbar/tickfont/_shadow.py b/plotly/validators/bar/marker/colorbar/tickfont/_shadow.py index 4633af29b3..ae2d4382aa 100644 --- a/plotly/validators/bar/marker/colorbar/tickfont/_shadow.py +++ b/plotly/validators/bar/marker/colorbar/tickfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/bar/marker/colorbar/tickfont/_size.py b/plotly/validators/bar/marker/colorbar/tickfont/_size.py index 0e6853f8b2..d0d2ef5fbd 100644 --- a/plotly/validators/bar/marker/colorbar/tickfont/_size.py +++ b/plotly/validators/bar/marker/colorbar/tickfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/bar/marker/colorbar/tickfont/_style.py b/plotly/validators/bar/marker/colorbar/tickfont/_style.py index ffe55fa9bb..377109e775 100644 --- a/plotly/validators/bar/marker/colorbar/tickfont/_style.py +++ b/plotly/validators/bar/marker/colorbar/tickfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/bar/marker/colorbar/tickfont/_textcase.py b/plotly/validators/bar/marker/colorbar/tickfont/_textcase.py index cf9ee8d0f5..975d03a5e0 100644 --- a/plotly/validators/bar/marker/colorbar/tickfont/_textcase.py +++ b/plotly/validators/bar/marker/colorbar/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/bar/marker/colorbar/tickfont/_variant.py b/plotly/validators/bar/marker/colorbar/tickfont/_variant.py index 6975504bf2..6e167ceb7f 100644 --- a/plotly/validators/bar/marker/colorbar/tickfont/_variant.py +++ b/plotly/validators/bar/marker/colorbar/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/bar/marker/colorbar/tickfont/_weight.py b/plotly/validators/bar/marker/colorbar/tickfont/_weight.py index 197e064242..9c450048eb 100644 --- a/plotly/validators/bar/marker/colorbar/tickfont/_weight.py +++ b/plotly/validators/bar/marker/colorbar/tickfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/bar/marker/colorbar/tickformatstop/__init__.py b/plotly/validators/bar/marker/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/bar/marker/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/bar/marker/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/bar/marker/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/bar/marker/colorbar/tickformatstop/_dtickrange.py index 5ce0669f8e..f6b7753b8b 100644 --- a/plotly/validators/bar/marker/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/bar/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( "items", diff --git a/plotly/validators/bar/marker/colorbar/tickformatstop/_enabled.py b/plotly/validators/bar/marker/colorbar/tickformatstop/_enabled.py index 5d0cef2821..6a8e844a0d 100644 --- a/plotly/validators/bar/marker/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/bar/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/bar/marker/colorbar/tickformatstop/_name.py b/plotly/validators/bar/marker/colorbar/tickformatstop/_name.py index 9d75e33584..ad1ad8049b 100644 --- a/plotly/validators/bar/marker/colorbar/tickformatstop/_name.py +++ b/plotly/validators/bar/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/bar/marker/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/bar/marker/colorbar/tickformatstop/_templateitemname.py index ee5bacc8bb..49848d7f4b 100644 --- a/plotly/validators/bar/marker/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/bar/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/bar/marker/colorbar/tickformatstop/_value.py b/plotly/validators/bar/marker/colorbar/tickformatstop/_value.py index 1822265492..00a1ec33d9 100644 --- a/plotly/validators/bar/marker/colorbar/tickformatstop/_value.py +++ b/plotly/validators/bar/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/bar/marker/colorbar/title/__init__.py b/plotly/validators/bar/marker/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/bar/marker/colorbar/title/__init__.py +++ b/plotly/validators/bar/marker/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/bar/marker/colorbar/title/_font.py b/plotly/validators/bar/marker/colorbar/title/_font.py index c477a242b4..8a31a6d535 100644 --- a/plotly/validators/bar/marker/colorbar/title/_font.py +++ b/plotly/validators/bar/marker/colorbar/title/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/bar/marker/colorbar/title/_side.py b/plotly/validators/bar/marker/colorbar/title/_side.py index 4e07b00449..d5a9499867 100644 --- a/plotly/validators/bar/marker/colorbar/title/_side.py +++ b/plotly/validators/bar/marker/colorbar/title/_side.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/bar/marker/colorbar/title/_text.py b/plotly/validators/bar/marker/colorbar/title/_text.py index 46d351d1e5..d02b75d7d3 100644 --- a/plotly/validators/bar/marker/colorbar/title/_text.py +++ b/plotly/validators/bar/marker/colorbar/title/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/bar/marker/colorbar/title/font/__init__.py b/plotly/validators/bar/marker/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/bar/marker/colorbar/title/font/__init__.py +++ b/plotly/validators/bar/marker/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/bar/marker/colorbar/title/font/_color.py b/plotly/validators/bar/marker/colorbar/title/font/_color.py index ce4585a51d..4002fd71f9 100644 --- a/plotly/validators/bar/marker/colorbar/title/font/_color.py +++ b/plotly/validators/bar/marker/colorbar/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/bar/marker/colorbar/title/font/_family.py b/plotly/validators/bar/marker/colorbar/title/font/_family.py index ae9a20ad46..8e352f36b5 100644 --- a/plotly/validators/bar/marker/colorbar/title/font/_family.py +++ b/plotly/validators/bar/marker/colorbar/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/bar/marker/colorbar/title/font/_lineposition.py b/plotly/validators/bar/marker/colorbar/title/font/_lineposition.py index 6c2e66429c..0c7a466c87 100644 --- a/plotly/validators/bar/marker/colorbar/title/font/_lineposition.py +++ b/plotly/validators/bar/marker/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/bar/marker/colorbar/title/font/_shadow.py b/plotly/validators/bar/marker/colorbar/title/font/_shadow.py index 0f51d82f97..5288a21a0a 100644 --- a/plotly/validators/bar/marker/colorbar/title/font/_shadow.py +++ b/plotly/validators/bar/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/bar/marker/colorbar/title/font/_size.py b/plotly/validators/bar/marker/colorbar/title/font/_size.py index 393f91e902..b3cb24996d 100644 --- a/plotly/validators/bar/marker/colorbar/title/font/_size.py +++ b/plotly/validators/bar/marker/colorbar/title/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/bar/marker/colorbar/title/font/_style.py b/plotly/validators/bar/marker/colorbar/title/font/_style.py index 3d235df56b..7602717912 100644 --- a/plotly/validators/bar/marker/colorbar/title/font/_style.py +++ b/plotly/validators/bar/marker/colorbar/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/bar/marker/colorbar/title/font/_textcase.py b/plotly/validators/bar/marker/colorbar/title/font/_textcase.py index 38d4fa4ff7..895b8c90bd 100644 --- a/plotly/validators/bar/marker/colorbar/title/font/_textcase.py +++ b/plotly/validators/bar/marker/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/bar/marker/colorbar/title/font/_variant.py b/plotly/validators/bar/marker/colorbar/title/font/_variant.py index 57f976bbe8..0dc257659f 100644 --- a/plotly/validators/bar/marker/colorbar/title/font/_variant.py +++ b/plotly/validators/bar/marker/colorbar/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/bar/marker/colorbar/title/font/_weight.py b/plotly/validators/bar/marker/colorbar/title/font/_weight.py index 6d9f231efc..b164b63300 100644 --- a/plotly/validators/bar/marker/colorbar/title/font/_weight.py +++ b/plotly/validators/bar/marker/colorbar/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/bar/marker/line/__init__.py b/plotly/validators/bar/marker/line/__init__.py index facbe33f88..4ba3ea340b 100644 --- a/plotly/validators/bar/marker/line/__init__.py +++ b/plotly/validators/bar/marker/line/__init__.py @@ -1,37 +1,21 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._widthsrc import WidthsrcValidator - from ._width import WidthValidator - from ._reversescale import ReversescaleValidator - from ._colorsrc import ColorsrcValidator - from ._colorscale import ColorscaleValidator - from ._coloraxis import ColoraxisValidator - from ._color import ColorValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/bar/marker/line/_autocolorscale.py b/plotly/validators/bar/marker/line/_autocolorscale.py index 01e1d7f83a..de75375a0a 100644 --- a/plotly/validators/bar/marker/line/_autocolorscale.py +++ b/plotly/validators/bar/marker/line/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/bar/marker/line/_cauto.py b/plotly/validators/bar/marker/line/_cauto.py index 5b097579c2..845a84baaf 100644 --- a/plotly/validators/bar/marker/line/_cauto.py +++ b/plotly/validators/bar/marker/line/_cauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/bar/marker/line/_cmax.py b/plotly/validators/bar/marker/line/_cmax.py index 77f09c737b..1f831cc94e 100644 --- a/plotly/validators/bar/marker/line/_cmax.py +++ b/plotly/validators/bar/marker/line/_cmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/bar/marker/line/_cmid.py b/plotly/validators/bar/marker/line/_cmid.py index 5792aaa808..7ce26b1029 100644 --- a/plotly/validators/bar/marker/line/_cmid.py +++ b/plotly/validators/bar/marker/line/_cmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/bar/marker/line/_cmin.py b/plotly/validators/bar/marker/line/_cmin.py index c18678aa44..017e7ed171 100644 --- a/plotly/validators/bar/marker/line/_cmin.py +++ b/plotly/validators/bar/marker/line/_cmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/bar/marker/line/_color.py b/plotly/validators/bar/marker/line/_color.py index a4119ed532..221530e708 100644 --- a/plotly/validators/bar/marker/line/_color.py +++ b/plotly/validators/bar/marker/line/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_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"), diff --git a/plotly/validators/bar/marker/line/_coloraxis.py b/plotly/validators/bar/marker/line/_coloraxis.py index 3e2579a8fc..f2d2226e84 100644 --- a/plotly/validators/bar/marker/line/_coloraxis.py +++ b/plotly/validators/bar/marker/line/_coloraxis.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/bar/marker/line/_colorscale.py b/plotly/validators/bar/marker/line/_colorscale.py index 27453650ee..a9fe65b490 100644 --- a/plotly/validators/bar/marker/line/_colorscale.py +++ b/plotly/validators/bar/marker/line/_colorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/bar/marker/line/_colorsrc.py b/plotly/validators/bar/marker/line/_colorsrc.py index 22afdcb887..cb8137e96c 100644 --- a/plotly/validators/bar/marker/line/_colorsrc.py +++ b/plotly/validators/bar/marker/line/_colorsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/marker/line/_reversescale.py b/plotly/validators/bar/marker/line/_reversescale.py index 1377e78c8a..f6ddd5241c 100644 --- a/plotly/validators/bar/marker/line/_reversescale.py +++ b/plotly/validators/bar/marker/line/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/bar/marker/line/_width.py b/plotly/validators/bar/marker/line/_width.py index 0ada8567f2..c0e4279a40 100644 --- a/plotly/validators/bar/marker/line/_width.py +++ b/plotly/validators/bar/marker/line/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), diff --git a/plotly/validators/bar/marker/line/_widthsrc.py b/plotly/validators/bar/marker/line/_widthsrc.py index 40f1890123..ad5984d909 100644 --- a/plotly/validators/bar/marker/line/_widthsrc.py +++ b/plotly/validators/bar/marker/line/_widthsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/marker/pattern/__init__.py b/plotly/validators/bar/marker/pattern/__init__.py index e190f962c4..e42ccc4d0f 100644 --- a/plotly/validators/bar/marker/pattern/__init__.py +++ b/plotly/validators/bar/marker/pattern/__init__.py @@ -1,37 +1,21 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._soliditysrc import SoliditysrcValidator - from ._solidity import SolidityValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shapesrc import ShapesrcValidator - from ._shape import ShapeValidator - from ._fillmode import FillmodeValidator - from ._fgopacity import FgopacityValidator - from ._fgcolorsrc import FgcolorsrcValidator - from ._fgcolor import FgcolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/bar/marker/pattern/_bgcolor.py b/plotly/validators/bar/marker/pattern/_bgcolor.py index db17a413ce..0d7336a92e 100644 --- a/plotly/validators/bar/marker/pattern/_bgcolor.py +++ b/plotly/validators/bar/marker/pattern/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/bar/marker/pattern/_bgcolorsrc.py b/plotly/validators/bar/marker/pattern/_bgcolorsrc.py index c30d7c95e9..90e2015d85 100644 --- a/plotly/validators/bar/marker/pattern/_bgcolorsrc.py +++ b/plotly/validators/bar/marker/pattern/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/marker/pattern/_fgcolor.py b/plotly/validators/bar/marker/pattern/_fgcolor.py index c3b3726e05..82a8ac40e0 100644 --- a/plotly/validators/bar/marker/pattern/_fgcolor.py +++ b/plotly/validators/bar/marker/pattern/_fgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/bar/marker/pattern/_fgcolorsrc.py b/plotly/validators/bar/marker/pattern/_fgcolorsrc.py index fb0cf79964..112508385c 100644 --- a/plotly/validators/bar/marker/pattern/_fgcolorsrc.py +++ b/plotly/validators/bar/marker/pattern/_fgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/marker/pattern/_fgopacity.py b/plotly/validators/bar/marker/pattern/_fgopacity.py index e6216c61a9..38a3495175 100644 --- a/plotly/validators/bar/marker/pattern/_fgopacity.py +++ b/plotly/validators/bar/marker/pattern/_fgopacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FgopacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/bar/marker/pattern/_fillmode.py b/plotly/validators/bar/marker/pattern/_fillmode.py index 533f8bdef7..099ffd1a32 100644 --- a/plotly/validators/bar/marker/pattern/_fillmode.py +++ b/plotly/validators/bar/marker/pattern/_fillmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["replace", "overlay"]), **kwargs, diff --git a/plotly/validators/bar/marker/pattern/_shape.py b/plotly/validators/bar/marker/pattern/_shape.py index 9ed95d39bb..3563dcb8c8 100644 --- a/plotly/validators/bar/marker/pattern/_shape.py +++ b/plotly/validators/bar/marker/pattern/_shape.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["", "/", "\\", "x", "-", "|", "+", "."]), diff --git a/plotly/validators/bar/marker/pattern/_shapesrc.py b/plotly/validators/bar/marker/pattern/_shapesrc.py index e3e6351d2e..8c391041a7 100644 --- a/plotly/validators/bar/marker/pattern/_shapesrc.py +++ b/plotly/validators/bar/marker/pattern/_shapesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShapesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/marker/pattern/_size.py b/plotly/validators/bar/marker/pattern/_size.py index c46713a044..2cc4118fbc 100644 --- a/plotly/validators/bar/marker/pattern/_size.py +++ b/plotly/validators/bar/marker/pattern/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/bar/marker/pattern/_sizesrc.py b/plotly/validators/bar/marker/pattern/_sizesrc.py index cc51f8f703..5b8d82d6e1 100644 --- a/plotly/validators/bar/marker/pattern/_sizesrc.py +++ b/plotly/validators/bar/marker/pattern/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/marker/pattern/_solidity.py b/plotly/validators/bar/marker/pattern/_solidity.py index 91c1088e7e..4fa79bf5e8 100644 --- a/plotly/validators/bar/marker/pattern/_solidity.py +++ b/plotly/validators/bar/marker/pattern/_solidity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SolidityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), diff --git a/plotly/validators/bar/marker/pattern/_soliditysrc.py b/plotly/validators/bar/marker/pattern/_soliditysrc.py index 97b7ca72fc..fa8d929a23 100644 --- a/plotly/validators/bar/marker/pattern/_soliditysrc.py +++ b/plotly/validators/bar/marker/pattern/_soliditysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SoliditysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/outsidetextfont/__init__.py b/plotly/validators/bar/outsidetextfont/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/bar/outsidetextfont/__init__.py +++ b/plotly/validators/bar/outsidetextfont/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/bar/outsidetextfont/_color.py b/plotly/validators/bar/outsidetextfont/_color.py index f810277d92..7fca70b0c4 100644 --- a/plotly/validators/bar/outsidetextfont/_color.py +++ b/plotly/validators/bar/outsidetextfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/bar/outsidetextfont/_colorsrc.py b/plotly/validators/bar/outsidetextfont/_colorsrc.py index c63bb0d48a..f6f2c670bf 100644 --- a/plotly/validators/bar/outsidetextfont/_colorsrc.py +++ b/plotly/validators/bar/outsidetextfont/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/outsidetextfont/_family.py b/plotly/validators/bar/outsidetextfont/_family.py index ba04e7afef..28bf9d035a 100644 --- a/plotly/validators/bar/outsidetextfont/_family.py +++ b/plotly/validators/bar/outsidetextfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/bar/outsidetextfont/_familysrc.py b/plotly/validators/bar/outsidetextfont/_familysrc.py index ff178c5fa9..a9f400c579 100644 --- a/plotly/validators/bar/outsidetextfont/_familysrc.py +++ b/plotly/validators/bar/outsidetextfont/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/outsidetextfont/_lineposition.py b/plotly/validators/bar/outsidetextfont/_lineposition.py index 8af29c51b3..6fb03861cc 100644 --- a/plotly/validators/bar/outsidetextfont/_lineposition.py +++ b/plotly/validators/bar/outsidetextfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/bar/outsidetextfont/_linepositionsrc.py b/plotly/validators/bar/outsidetextfont/_linepositionsrc.py index 330525401d..18caf73f87 100644 --- a/plotly/validators/bar/outsidetextfont/_linepositionsrc.py +++ b/plotly/validators/bar/outsidetextfont/_linepositionsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/outsidetextfont/_shadow.py b/plotly/validators/bar/outsidetextfont/_shadow.py index 8a148e4d70..43015a58da 100644 --- a/plotly/validators/bar/outsidetextfont/_shadow.py +++ b/plotly/validators/bar/outsidetextfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/bar/outsidetextfont/_shadowsrc.py b/plotly/validators/bar/outsidetextfont/_shadowsrc.py index a09eeb4c5a..d5c52e19da 100644 --- a/plotly/validators/bar/outsidetextfont/_shadowsrc.py +++ b/plotly/validators/bar/outsidetextfont/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/outsidetextfont/_size.py b/plotly/validators/bar/outsidetextfont/_size.py index 0f689cc8ed..1392867ddb 100644 --- a/plotly/validators/bar/outsidetextfont/_size.py +++ b/plotly/validators/bar/outsidetextfont/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/bar/outsidetextfont/_sizesrc.py b/plotly/validators/bar/outsidetextfont/_sizesrc.py index 72b786c3fe..30d16a6818 100644 --- a/plotly/validators/bar/outsidetextfont/_sizesrc.py +++ b/plotly/validators/bar/outsidetextfont/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/outsidetextfont/_style.py b/plotly/validators/bar/outsidetextfont/_style.py index ba5a9ba0c0..0da2c11184 100644 --- a/plotly/validators/bar/outsidetextfont/_style.py +++ b/plotly/validators/bar/outsidetextfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/bar/outsidetextfont/_stylesrc.py b/plotly/validators/bar/outsidetextfont/_stylesrc.py index ec63bebdd0..75570bc062 100644 --- a/plotly/validators/bar/outsidetextfont/_stylesrc.py +++ b/plotly/validators/bar/outsidetextfont/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/outsidetextfont/_textcase.py b/plotly/validators/bar/outsidetextfont/_textcase.py index 5bf0002fee..a9fd048fca 100644 --- a/plotly/validators/bar/outsidetextfont/_textcase.py +++ b/plotly/validators/bar/outsidetextfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/bar/outsidetextfont/_textcasesrc.py b/plotly/validators/bar/outsidetextfont/_textcasesrc.py index d35b0b1acb..570e9d3363 100644 --- a/plotly/validators/bar/outsidetextfont/_textcasesrc.py +++ b/plotly/validators/bar/outsidetextfont/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/outsidetextfont/_variant.py b/plotly/validators/bar/outsidetextfont/_variant.py index a35838d2ce..9f34bcfd0e 100644 --- a/plotly/validators/bar/outsidetextfont/_variant.py +++ b/plotly/validators/bar/outsidetextfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( diff --git a/plotly/validators/bar/outsidetextfont/_variantsrc.py b/plotly/validators/bar/outsidetextfont/_variantsrc.py index c9069e7b89..1ec7ca58a1 100644 --- a/plotly/validators/bar/outsidetextfont/_variantsrc.py +++ b/plotly/validators/bar/outsidetextfont/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/outsidetextfont/_weight.py b/plotly/validators/bar/outsidetextfont/_weight.py index 3eef854c20..4e2b872617 100644 --- a/plotly/validators/bar/outsidetextfont/_weight.py +++ b/plotly/validators/bar/outsidetextfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/bar/outsidetextfont/_weightsrc.py b/plotly/validators/bar/outsidetextfont/_weightsrc.py index b29eaf336a..c0e1562e60 100644 --- a/plotly/validators/bar/outsidetextfont/_weightsrc.py +++ b/plotly/validators/bar/outsidetextfont/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/selected/__init__.py b/plotly/validators/bar/selected/__init__.py index 3b0aeed383..9d2a313b83 100644 --- a/plotly/validators/bar/selected/__init__.py +++ b/plotly/validators/bar/selected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] +) diff --git a/plotly/validators/bar/selected/_marker.py b/plotly/validators/bar/selected/_marker.py index 32eba2a589..5a09cae5de 100644 --- a/plotly/validators/bar/selected/_marker.py +++ b/plotly/validators/bar/selected/_marker.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/bar/selected/_textfont.py b/plotly/validators/bar/selected/_textfont.py index 1f6c9d64b7..539abf6c7a 100644 --- a/plotly/validators/bar/selected/_textfont.py +++ b/plotly/validators/bar/selected/_textfont.py @@ -1,17 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/bar/selected/marker/__init__.py b/plotly/validators/bar/selected/marker/__init__.py index d8f31347bf..653e572933 100644 --- a/plotly/validators/bar/selected/marker/__init__.py +++ b/plotly/validators/bar/selected/marker/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._opacity.OpacityValidator", "._color.ColorValidator"] +) diff --git a/plotly/validators/bar/selected/marker/_color.py b/plotly/validators/bar/selected/marker/_color.py index e6bb2c9c58..c799691511 100644 --- a/plotly/validators/bar/selected/marker/_color.py +++ b/plotly/validators/bar/selected/marker/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/bar/selected/marker/_opacity.py b/plotly/validators/bar/selected/marker/_opacity.py index e9ce475812..397a4e0fce 100644 --- a/plotly/validators/bar/selected/marker/_opacity.py +++ b/plotly/validators/bar/selected/marker/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/bar/selected/textfont/__init__.py b/plotly/validators/bar/selected/textfont/__init__.py index a9f087e5af..85a4cc9573 100644 --- a/plotly/validators/bar/selected/textfont/__init__.py +++ b/plotly/validators/bar/selected/textfont/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._color.ColorValidator"] +) diff --git a/plotly/validators/bar/selected/textfont/_color.py b/plotly/validators/bar/selected/textfont/_color.py index f2fd78a286..0f8e715bfa 100644 --- a/plotly/validators/bar/selected/textfont/_color.py +++ b/plotly/validators/bar/selected/textfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/bar/stream/__init__.py b/plotly/validators/bar/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/bar/stream/__init__.py +++ b/plotly/validators/bar/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/bar/stream/_maxpoints.py b/plotly/validators/bar/stream/_maxpoints.py index d2dc00626d..549d5e834b 100644 --- a/plotly/validators/bar/stream/_maxpoints.py +++ b/plotly/validators/bar/stream/_maxpoints.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/bar/stream/_token.py b/plotly/validators/bar/stream/_token.py index 5aeed749d6..5bdf0067f8 100644 --- a/plotly/validators/bar/stream/_token.py +++ b/plotly/validators/bar/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/bar/textfont/__init__.py b/plotly/validators/bar/textfont/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/bar/textfont/__init__.py +++ b/plotly/validators/bar/textfont/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/bar/textfont/_color.py b/plotly/validators/bar/textfont/_color.py index 79644aa5a3..958cfc8365 100644 --- a/plotly/validators/bar/textfont/_color.py +++ b/plotly/validators/bar/textfont/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/bar/textfont/_colorsrc.py b/plotly/validators/bar/textfont/_colorsrc.py index 0ab662025c..a0c93f212a 100644 --- a/plotly/validators/bar/textfont/_colorsrc.py +++ b/plotly/validators/bar/textfont/_colorsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/textfont/_family.py b/plotly/validators/bar/textfont/_family.py index 1ee78b440e..6c3ba9e3fa 100644 --- a/plotly/validators/bar/textfont/_family.py +++ b/plotly/validators/bar/textfont/_family.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/bar/textfont/_familysrc.py b/plotly/validators/bar/textfont/_familysrc.py index 878d83e8aa..e706138d2f 100644 --- a/plotly/validators/bar/textfont/_familysrc.py +++ b/plotly/validators/bar/textfont/_familysrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/textfont/_lineposition.py b/plotly/validators/bar/textfont/_lineposition.py index bed0d04aa6..aee261ced7 100644 --- a/plotly/validators/bar/textfont/_lineposition.py +++ b/plotly/validators/bar/textfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/bar/textfont/_linepositionsrc.py b/plotly/validators/bar/textfont/_linepositionsrc.py index c1c2a7b720..023236148e 100644 --- a/plotly/validators/bar/textfont/_linepositionsrc.py +++ b/plotly/validators/bar/textfont/_linepositionsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/textfont/_shadow.py b/plotly/validators/bar/textfont/_shadow.py index 55c0e4ca68..1be7b216ef 100644 --- a/plotly/validators/bar/textfont/_shadow.py +++ b/plotly/validators/bar/textfont/_shadow.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/bar/textfont/_shadowsrc.py b/plotly/validators/bar/textfont/_shadowsrc.py index f189ea33d8..d03e4d6147 100644 --- a/plotly/validators/bar/textfont/_shadowsrc.py +++ b/plotly/validators/bar/textfont/_shadowsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/textfont/_size.py b/plotly/validators/bar/textfont/_size.py index 4fd24f5992..ef50ecdbdf 100644 --- a/plotly/validators/bar/textfont/_size.py +++ b/plotly/validators/bar/textfont/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/bar/textfont/_sizesrc.py b/plotly/validators/bar/textfont/_sizesrc.py index cc8132d5b0..8ef04388d5 100644 --- a/plotly/validators/bar/textfont/_sizesrc.py +++ b/plotly/validators/bar/textfont/_sizesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/textfont/_style.py b/plotly/validators/bar/textfont/_style.py index 7242a00e7c..e98f3e8b3d 100644 --- a/plotly/validators/bar/textfont/_style.py +++ b/plotly/validators/bar/textfont/_style.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/bar/textfont/_stylesrc.py b/plotly/validators/bar/textfont/_stylesrc.py index 313c820105..5064a72976 100644 --- a/plotly/validators/bar/textfont/_stylesrc.py +++ b/plotly/validators/bar/textfont/_stylesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/textfont/_textcase.py b/plotly/validators/bar/textfont/_textcase.py index 70da6f7f43..0e4f7de4a9 100644 --- a/plotly/validators/bar/textfont/_textcase.py +++ b/plotly/validators/bar/textfont/_textcase.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/bar/textfont/_textcasesrc.py b/plotly/validators/bar/textfont/_textcasesrc.py index 64714087a8..8179b140eb 100644 --- a/plotly/validators/bar/textfont/_textcasesrc.py +++ b/plotly/validators/bar/textfont/_textcasesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/textfont/_variant.py b/plotly/validators/bar/textfont/_variant.py index dddda71860..73fb9791eb 100644 --- a/plotly/validators/bar/textfont/_variant.py +++ b/plotly/validators/bar/textfont/_variant.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( diff --git a/plotly/validators/bar/textfont/_variantsrc.py b/plotly/validators/bar/textfont/_variantsrc.py index f3aa16e901..f7b674a816 100644 --- a/plotly/validators/bar/textfont/_variantsrc.py +++ b/plotly/validators/bar/textfont/_variantsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/textfont/_weight.py b/plotly/validators/bar/textfont/_weight.py index 80b816dfed..7aa87310f4 100644 --- a/plotly/validators/bar/textfont/_weight.py +++ b/plotly/validators/bar/textfont/_weight.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/bar/textfont/_weightsrc.py b/plotly/validators/bar/textfont/_weightsrc.py index 1fb08a92ef..9d9761296f 100644 --- a/plotly/validators/bar/textfont/_weightsrc.py +++ b/plotly/validators/bar/textfont/_weightsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/bar/unselected/__init__.py b/plotly/validators/bar/unselected/__init__.py index 3b0aeed383..9d2a313b83 100644 --- a/plotly/validators/bar/unselected/__init__.py +++ b/plotly/validators/bar/unselected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] +) diff --git a/plotly/validators/bar/unselected/_marker.py b/plotly/validators/bar/unselected/_marker.py index 2ee11271c7..3618a76ba3 100644 --- a/plotly/validators/bar/unselected/_marker.py +++ b/plotly/validators/bar/unselected/_marker.py @@ -1,21 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/bar/unselected/_textfont.py b/plotly/validators/bar/unselected/_textfont.py index 9609db7487..a77728dbc6 100644 --- a/plotly/validators/bar/unselected/_textfont.py +++ b/plotly/validators/bar/unselected/_textfont.py @@ -1,18 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/bar/unselected/marker/__init__.py b/plotly/validators/bar/unselected/marker/__init__.py index d8f31347bf..653e572933 100644 --- a/plotly/validators/bar/unselected/marker/__init__.py +++ b/plotly/validators/bar/unselected/marker/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._opacity.OpacityValidator", "._color.ColorValidator"] +) diff --git a/plotly/validators/bar/unselected/marker/_color.py b/plotly/validators/bar/unselected/marker/_color.py index 59219f90af..4cbb6db17a 100644 --- a/plotly/validators/bar/unselected/marker/_color.py +++ b/plotly/validators/bar/unselected/marker/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/bar/unselected/marker/_opacity.py b/plotly/validators/bar/unselected/marker/_opacity.py index 283e9efabf..7e62a85e35 100644 --- a/plotly/validators/bar/unselected/marker/_opacity.py +++ b/plotly/validators/bar/unselected/marker/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/bar/unselected/textfont/__init__.py b/plotly/validators/bar/unselected/textfont/__init__.py index a9f087e5af..85a4cc9573 100644 --- a/plotly/validators/bar/unselected/textfont/__init__.py +++ b/plotly/validators/bar/unselected/textfont/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._color.ColorValidator"] +) diff --git a/plotly/validators/bar/unselected/textfont/_color.py b/plotly/validators/bar/unselected/textfont/_color.py index 1e969db592..d9147fc182 100644 --- a/plotly/validators/bar/unselected/textfont/_color.py +++ b/plotly/validators/bar/unselected/textfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/barpolar/__init__.py b/plotly/validators/barpolar/__init__.py index bb1ecd886b..75779f181d 100644 --- a/plotly/validators/barpolar/__init__.py +++ b/plotly/validators/barpolar/__init__.py @@ -1,107 +1,56 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._widthsrc import WidthsrcValidator - from ._width import WidthValidator - from ._visible import VisibleValidator - from ._unselected import UnselectedValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._thetaunit import ThetaunitValidator - from ._thetasrc import ThetasrcValidator - from ._theta0 import Theta0Validator - from ._theta import ThetaValidator - from ._textsrc import TextsrcValidator - from ._text import TextValidator - from ._subplot import SubplotValidator - from ._stream import StreamValidator - from ._showlegend import ShowlegendValidator - from ._selectedpoints import SelectedpointsValidator - from ._selected import SelectedValidator - from ._rsrc import RsrcValidator - from ._r0 import R0Validator - from ._r import RValidator - from ._opacity import OpacityValidator - from ._offsetsrc import OffsetsrcValidator - from ._offset import OffsetValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._marker import MarkerValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._dtheta import DthetaValidator - from ._dr import DrValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._basesrc import BasesrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/barpolar/_base.py b/plotly/validators/barpolar/_base.py index ac72c72f35..31c34e868a 100644 --- a/plotly/validators/barpolar/_base.py +++ b/plotly/validators/barpolar/_base.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BaseValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/barpolar/_basesrc.py b/plotly/validators/barpolar/_basesrc.py index 3b77a8652a..a2440d4cf8 100644 --- a/plotly/validators/barpolar/_basesrc.py +++ b/plotly/validators/barpolar/_basesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/_customdata.py b/plotly/validators/barpolar/_customdata.py index 4a2ed8cdc8..ea625e680b 100644 --- a/plotly/validators/barpolar/_customdata.py +++ b/plotly/validators/barpolar/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/barpolar/_customdatasrc.py b/plotly/validators/barpolar/_customdatasrc.py index 6c574521f6..4560844822 100644 --- a/plotly/validators/barpolar/_customdatasrc.py +++ b/plotly/validators/barpolar/_customdatasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/_dr.py b/plotly/validators/barpolar/_dr.py index 4c60f92e9e..da7df127bc 100644 --- a/plotly/validators/barpolar/_dr.py +++ b/plotly/validators/barpolar/_dr.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DrValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/barpolar/_dtheta.py b/plotly/validators/barpolar/_dtheta.py index dc98f72ce3..8fb315d698 100644 --- a/plotly/validators/barpolar/_dtheta.py +++ b/plotly/validators/barpolar/_dtheta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DthetaValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/barpolar/_hoverinfo.py b/plotly/validators/barpolar/_hoverinfo.py index f8e222eb88..dfe93cbe2f 100644 --- a/plotly/validators/barpolar/_hoverinfo.py +++ b/plotly/validators/barpolar/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/barpolar/_hoverinfosrc.py b/plotly/validators/barpolar/_hoverinfosrc.py index a6fc8c5471..425e49cb82 100644 --- a/plotly/validators/barpolar/_hoverinfosrc.py +++ b/plotly/validators/barpolar/_hoverinfosrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/_hoverlabel.py b/plotly/validators/barpolar/_hoverlabel.py index 42f3c3ebf6..a375ffc218 100644 --- a/plotly/validators/barpolar/_hoverlabel.py +++ b/plotly/validators/barpolar/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/barpolar/_hovertemplate.py b/plotly/validators/barpolar/_hovertemplate.py index 19a99d888b..c48af8ef96 100644 --- a/plotly/validators/barpolar/_hovertemplate.py +++ b/plotly/validators/barpolar/_hovertemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/barpolar/_hovertemplatesrc.py b/plotly/validators/barpolar/_hovertemplatesrc.py index 0ebd4ff86d..2fab0a4e18 100644 --- a/plotly/validators/barpolar/_hovertemplatesrc.py +++ b/plotly/validators/barpolar/_hovertemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/_hovertext.py b/plotly/validators/barpolar/_hovertext.py index d03039152d..e78f068735 100644 --- a/plotly/validators/barpolar/_hovertext.py +++ b/plotly/validators/barpolar/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/barpolar/_hovertextsrc.py b/plotly/validators/barpolar/_hovertextsrc.py index 61ab77b50f..1a7aed10e5 100644 --- a/plotly/validators/barpolar/_hovertextsrc.py +++ b/plotly/validators/barpolar/_hovertextsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/_ids.py b/plotly/validators/barpolar/_ids.py index 5417df6d08..f818ff5a30 100644 --- a/plotly/validators/barpolar/_ids.py +++ b/plotly/validators/barpolar/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/barpolar/_idssrc.py b/plotly/validators/barpolar/_idssrc.py index 6c84093fe7..060bba3f61 100644 --- a/plotly/validators/barpolar/_idssrc.py +++ b/plotly/validators/barpolar/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/_legend.py b/plotly/validators/barpolar/_legend.py index 3563b94928..bdfa407288 100644 --- a/plotly/validators/barpolar/_legend.py +++ b/plotly/validators/barpolar/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/barpolar/_legendgroup.py b/plotly/validators/barpolar/_legendgroup.py index e987517b6a..711108d141 100644 --- a/plotly/validators/barpolar/_legendgroup.py +++ b/plotly/validators/barpolar/_legendgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/barpolar/_legendgrouptitle.py b/plotly/validators/barpolar/_legendgrouptitle.py index 8cb70c81d5..8a1e4003d2 100644 --- a/plotly/validators/barpolar/_legendgrouptitle.py +++ b/plotly/validators/barpolar/_legendgrouptitle.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/barpolar/_legendrank.py b/plotly/validators/barpolar/_legendrank.py index eac54224ef..d3f173f68c 100644 --- a/plotly/validators/barpolar/_legendrank.py +++ b/plotly/validators/barpolar/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/barpolar/_legendwidth.py b/plotly/validators/barpolar/_legendwidth.py index c92b47e03f..8eaeb6e3a9 100644 --- a/plotly/validators/barpolar/_legendwidth.py +++ b/plotly/validators/barpolar/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/barpolar/_marker.py b/plotly/validators/barpolar/_marker.py index e5bbec8ae4..01783dafb0 100644 --- a/plotly/validators/barpolar/_marker.py +++ b/plotly/validators/barpolar/_marker.py @@ -1,112 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/barpolar/_meta.py b/plotly/validators/barpolar/_meta.py index 9cfc41ee2a..b68a682678 100644 --- a/plotly/validators/barpolar/_meta.py +++ b/plotly/validators/barpolar/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/barpolar/_metasrc.py b/plotly/validators/barpolar/_metasrc.py index abeff2fb5d..ad0f493489 100644 --- a/plotly/validators/barpolar/_metasrc.py +++ b/plotly/validators/barpolar/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/_name.py b/plotly/validators/barpolar/_name.py index 4aeeea2507..99622efe47 100644 --- a/plotly/validators/barpolar/_name.py +++ b/plotly/validators/barpolar/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/barpolar/_offset.py b/plotly/validators/barpolar/_offset.py index d1e8d56263..0b6ec2b166 100644 --- a/plotly/validators/barpolar/_offset.py +++ b/plotly/validators/barpolar/_offset.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OffsetValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/barpolar/_offsetsrc.py b/plotly/validators/barpolar/_offsetsrc.py index 1917d722cf..d385c98d49 100644 --- a/plotly/validators/barpolar/_offsetsrc.py +++ b/plotly/validators/barpolar/_offsetsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OffsetsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/_opacity.py b/plotly/validators/barpolar/_opacity.py index 3dadedfcc2..b629b67c95 100644 --- a/plotly/validators/barpolar/_opacity.py +++ b/plotly/validators/barpolar/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/barpolar/_r.py b/plotly/validators/barpolar/_r.py index 19991e14ad..c9a024cfe9 100644 --- a/plotly/validators/barpolar/_r.py +++ b/plotly/validators/barpolar/_r.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/barpolar/_r0.py b/plotly/validators/barpolar/_r0.py index 9d7d715669..3988c820c4 100644 --- a/plotly/validators/barpolar/_r0.py +++ b/plotly/validators/barpolar/_r0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class R0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/barpolar/_rsrc.py b/plotly/validators/barpolar/_rsrc.py index 1b95b540ee..d569b0b6df 100644 --- a/plotly/validators/barpolar/_rsrc.py +++ b/plotly/validators/barpolar/_rsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/_selected.py b/plotly/validators/barpolar/_selected.py index ff6a794c8d..0eaab51d3b 100644 --- a/plotly/validators/barpolar/_selected.py +++ b/plotly/validators/barpolar/_selected.py @@ -1,23 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/barpolar/_selectedpoints.py b/plotly/validators/barpolar/_selectedpoints.py index 0f198b5d5d..a74609420b 100644 --- a/plotly/validators/barpolar/_selectedpoints.py +++ b/plotly/validators/barpolar/_selectedpoints.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/barpolar/_showlegend.py b/plotly/validators/barpolar/_showlegend.py index e13db2b1aa..ff5b616991 100644 --- a/plotly/validators/barpolar/_showlegend.py +++ b/plotly/validators/barpolar/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/barpolar/_stream.py b/plotly/validators/barpolar/_stream.py index 630e892ce5..3cd270e772 100644 --- a/plotly/validators/barpolar/_stream.py +++ b/plotly/validators/barpolar/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/barpolar/_subplot.py b/plotly/validators/barpolar/_subplot.py index 3d4c909246..87e42d8c61 100644 --- a/plotly/validators/barpolar/_subplot.py +++ b/plotly/validators/barpolar/_subplot.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SubplotValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "polar"), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/barpolar/_text.py b/plotly/validators/barpolar/_text.py index 72b02b34bc..0f6da9e7c9 100644 --- a/plotly/validators/barpolar/_text.py +++ b/plotly/validators/barpolar/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/barpolar/_textsrc.py b/plotly/validators/barpolar/_textsrc.py index b086f454ee..1159094a7b 100644 --- a/plotly/validators/barpolar/_textsrc.py +++ b/plotly/validators/barpolar/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/_theta.py b/plotly/validators/barpolar/_theta.py index db2f43243e..7a08ed0d0d 100644 --- a/plotly/validators/barpolar/_theta.py +++ b/plotly/validators/barpolar/_theta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThetaValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/barpolar/_theta0.py b/plotly/validators/barpolar/_theta0.py index ecbfacf22c..21c27e62bb 100644 --- a/plotly/validators/barpolar/_theta0.py +++ b/plotly/validators/barpolar/_theta0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Theta0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/barpolar/_thetasrc.py b/plotly/validators/barpolar/_thetasrc.py index 78bd2754bb..6190220b98 100644 --- a/plotly/validators/barpolar/_thetasrc.py +++ b/plotly/validators/barpolar/_thetasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/_thetaunit.py b/plotly/validators/barpolar/_thetaunit.py index 206be95acb..ab84a9adbc 100644 --- a/plotly/validators/barpolar/_thetaunit.py +++ b/plotly/validators/barpolar/_thetaunit.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThetaunitValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), values=kwargs.pop("values", ["radians", "degrees", "gradians"]), **kwargs, diff --git a/plotly/validators/barpolar/_uid.py b/plotly/validators/barpolar/_uid.py index b249b5e9f9..e4855e2d03 100644 --- a/plotly/validators/barpolar/_uid.py +++ b/plotly/validators/barpolar/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/barpolar/_uirevision.py b/plotly/validators/barpolar/_uirevision.py index 47f4a15c65..6dd6687e3e 100644 --- a/plotly/validators/barpolar/_uirevision.py +++ b/plotly/validators/barpolar/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/_unselected.py b/plotly/validators/barpolar/_unselected.py index 7b3dfcc64a..83b04ec6cc 100644 --- a/plotly/validators/barpolar/_unselected.py +++ b/plotly/validators/barpolar/_unselected.py @@ -1,23 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/barpolar/_visible.py b/plotly/validators/barpolar/_visible.py index 84b34b54c3..fd373d2686 100644 --- a/plotly/validators/barpolar/_visible.py +++ b/plotly/validators/barpolar/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/barpolar/_width.py b/plotly/validators/barpolar/_width.py index 456f8d5152..7c18d76a0a 100644 --- a/plotly/validators/barpolar/_width.py +++ b/plotly/validators/barpolar/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/barpolar/_widthsrc.py b/plotly/validators/barpolar/_widthsrc.py index 4b0a07f8f6..55aeaa1afd 100644 --- a/plotly/validators/barpolar/_widthsrc.py +++ b/plotly/validators/barpolar/_widthsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/hoverlabel/__init__.py b/plotly/validators/barpolar/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/barpolar/hoverlabel/__init__.py +++ b/plotly/validators/barpolar/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/barpolar/hoverlabel/_align.py b/plotly/validators/barpolar/hoverlabel/_align.py index 7bc89113be..f19ae23e90 100644 --- a/plotly/validators/barpolar/hoverlabel/_align.py +++ b/plotly/validators/barpolar/hoverlabel/_align.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/barpolar/hoverlabel/_alignsrc.py b/plotly/validators/barpolar/hoverlabel/_alignsrc.py index 3482b47212..6e7b29a655 100644 --- a/plotly/validators/barpolar/hoverlabel/_alignsrc.py +++ b/plotly/validators/barpolar/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/hoverlabel/_bgcolor.py b/plotly/validators/barpolar/hoverlabel/_bgcolor.py index f7b09cd5a9..d0f7af14e9 100644 --- a/plotly/validators/barpolar/hoverlabel/_bgcolor.py +++ b/plotly/validators/barpolar/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/barpolar/hoverlabel/_bgcolorsrc.py b/plotly/validators/barpolar/hoverlabel/_bgcolorsrc.py index be26dbaec6..5f85a9647a 100644 --- a/plotly/validators/barpolar/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/barpolar/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/hoverlabel/_bordercolor.py b/plotly/validators/barpolar/hoverlabel/_bordercolor.py index 59ec3897a4..e84c81f681 100644 --- a/plotly/validators/barpolar/hoverlabel/_bordercolor.py +++ b/plotly/validators/barpolar/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/barpolar/hoverlabel/_bordercolorsrc.py b/plotly/validators/barpolar/hoverlabel/_bordercolorsrc.py index 0b482d46f6..87a2089348 100644 --- a/plotly/validators/barpolar/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/barpolar/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/hoverlabel/_font.py b/plotly/validators/barpolar/hoverlabel/_font.py index f529b520e5..534b76b18d 100644 --- a/plotly/validators/barpolar/hoverlabel/_font.py +++ b/plotly/validators/barpolar/hoverlabel/_font.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/barpolar/hoverlabel/_namelength.py b/plotly/validators/barpolar/hoverlabel/_namelength.py index d01f5a9e7f..a6060bb3f6 100644 --- a/plotly/validators/barpolar/hoverlabel/_namelength.py +++ b/plotly/validators/barpolar/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/barpolar/hoverlabel/_namelengthsrc.py b/plotly/validators/barpolar/hoverlabel/_namelengthsrc.py index 6f3150022e..e8f8809e27 100644 --- a/plotly/validators/barpolar/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/barpolar/hoverlabel/_namelengthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/hoverlabel/font/__init__.py b/plotly/validators/barpolar/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/barpolar/hoverlabel/font/__init__.py +++ b/plotly/validators/barpolar/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/barpolar/hoverlabel/font/_color.py b/plotly/validators/barpolar/hoverlabel/font/_color.py index 241cb12e50..f6315f52d6 100644 --- a/plotly/validators/barpolar/hoverlabel/font/_color.py +++ b/plotly/validators/barpolar/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/barpolar/hoverlabel/font/_colorsrc.py b/plotly/validators/barpolar/hoverlabel/font/_colorsrc.py index 3ce150eece..df100e885e 100644 --- a/plotly/validators/barpolar/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/barpolar/hoverlabel/font/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/hoverlabel/font/_family.py b/plotly/validators/barpolar/hoverlabel/font/_family.py index 1e7415e4c8..a4413cc321 100644 --- a/plotly/validators/barpolar/hoverlabel/font/_family.py +++ b/plotly/validators/barpolar/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/barpolar/hoverlabel/font/_familysrc.py b/plotly/validators/barpolar/hoverlabel/font/_familysrc.py index bf5b1d3d3e..a602de72d9 100644 --- a/plotly/validators/barpolar/hoverlabel/font/_familysrc.py +++ b/plotly/validators/barpolar/hoverlabel/font/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/hoverlabel/font/_lineposition.py b/plotly/validators/barpolar/hoverlabel/font/_lineposition.py index e5019fd042..784218dc2b 100644 --- a/plotly/validators/barpolar/hoverlabel/font/_lineposition.py +++ b/plotly/validators/barpolar/hoverlabel/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/barpolar/hoverlabel/font/_linepositionsrc.py b/plotly/validators/barpolar/hoverlabel/font/_linepositionsrc.py index a06da6ecc1..09e3c36f6c 100644 --- a/plotly/validators/barpolar/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/barpolar/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/hoverlabel/font/_shadow.py b/plotly/validators/barpolar/hoverlabel/font/_shadow.py index d3d2015544..376ea7e23a 100644 --- a/plotly/validators/barpolar/hoverlabel/font/_shadow.py +++ b/plotly/validators/barpolar/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/barpolar/hoverlabel/font/_shadowsrc.py b/plotly/validators/barpolar/hoverlabel/font/_shadowsrc.py index b410217dff..e0bdd0556e 100644 --- a/plotly/validators/barpolar/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/barpolar/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/hoverlabel/font/_size.py b/plotly/validators/barpolar/hoverlabel/font/_size.py index c9a57903e8..c074d0453a 100644 --- a/plotly/validators/barpolar/hoverlabel/font/_size.py +++ b/plotly/validators/barpolar/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/barpolar/hoverlabel/font/_sizesrc.py b/plotly/validators/barpolar/hoverlabel/font/_sizesrc.py index 22553161cf..926b74fa52 100644 --- a/plotly/validators/barpolar/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/barpolar/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/hoverlabel/font/_style.py b/plotly/validators/barpolar/hoverlabel/font/_style.py index 4f686c36ce..efc29e4afd 100644 --- a/plotly/validators/barpolar/hoverlabel/font/_style.py +++ b/plotly/validators/barpolar/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/barpolar/hoverlabel/font/_stylesrc.py b/plotly/validators/barpolar/hoverlabel/font/_stylesrc.py index e8d0156091..1a5ac1a409 100644 --- a/plotly/validators/barpolar/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/barpolar/hoverlabel/font/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/hoverlabel/font/_textcase.py b/plotly/validators/barpolar/hoverlabel/font/_textcase.py index cb42bdd372..f0ce14345e 100644 --- a/plotly/validators/barpolar/hoverlabel/font/_textcase.py +++ b/plotly/validators/barpolar/hoverlabel/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/barpolar/hoverlabel/font/_textcasesrc.py b/plotly/validators/barpolar/hoverlabel/font/_textcasesrc.py index bb8bee4bf5..aec4d1451f 100644 --- a/plotly/validators/barpolar/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/barpolar/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/hoverlabel/font/_variant.py b/plotly/validators/barpolar/hoverlabel/font/_variant.py index 431e17d43f..b076b0dbb8 100644 --- a/plotly/validators/barpolar/hoverlabel/font/_variant.py +++ b/plotly/validators/barpolar/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/barpolar/hoverlabel/font/_variantsrc.py b/plotly/validators/barpolar/hoverlabel/font/_variantsrc.py index 387d8294cc..ea33195954 100644 --- a/plotly/validators/barpolar/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/barpolar/hoverlabel/font/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/hoverlabel/font/_weight.py b/plotly/validators/barpolar/hoverlabel/font/_weight.py index e7bfbb1d06..e9dde09e51 100644 --- a/plotly/validators/barpolar/hoverlabel/font/_weight.py +++ b/plotly/validators/barpolar/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/barpolar/hoverlabel/font/_weightsrc.py b/plotly/validators/barpolar/hoverlabel/font/_weightsrc.py index 5e3f309dd7..e5eff31a95 100644 --- a/plotly/validators/barpolar/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/barpolar/hoverlabel/font/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/legendgrouptitle/__init__.py b/plotly/validators/barpolar/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/barpolar/legendgrouptitle/__init__.py +++ b/plotly/validators/barpolar/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/barpolar/legendgrouptitle/_font.py b/plotly/validators/barpolar/legendgrouptitle/_font.py index a164b0cd7f..e5262f8f78 100644 --- a/plotly/validators/barpolar/legendgrouptitle/_font.py +++ b/plotly/validators/barpolar/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/barpolar/legendgrouptitle/_text.py b/plotly/validators/barpolar/legendgrouptitle/_text.py index 4c1da1d4ee..9c9c3f05c2 100644 --- a/plotly/validators/barpolar/legendgrouptitle/_text.py +++ b/plotly/validators/barpolar/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/barpolar/legendgrouptitle/font/__init__.py b/plotly/validators/barpolar/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/barpolar/legendgrouptitle/font/__init__.py +++ b/plotly/validators/barpolar/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/barpolar/legendgrouptitle/font/_color.py b/plotly/validators/barpolar/legendgrouptitle/font/_color.py index e595ec6de3..6c0e3e59a4 100644 --- a/plotly/validators/barpolar/legendgrouptitle/font/_color.py +++ b/plotly/validators/barpolar/legendgrouptitle/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/barpolar/legendgrouptitle/font/_family.py b/plotly/validators/barpolar/legendgrouptitle/font/_family.py index f35d9adec1..b8f7dcd425 100644 --- a/plotly/validators/barpolar/legendgrouptitle/font/_family.py +++ b/plotly/validators/barpolar/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/barpolar/legendgrouptitle/font/_lineposition.py b/plotly/validators/barpolar/legendgrouptitle/font/_lineposition.py index c8d6f9c244..ebdedd33af 100644 --- a/plotly/validators/barpolar/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/barpolar/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/barpolar/legendgrouptitle/font/_shadow.py b/plotly/validators/barpolar/legendgrouptitle/font/_shadow.py index 1ae18a336a..78416b9d51 100644 --- a/plotly/validators/barpolar/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/barpolar/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/barpolar/legendgrouptitle/font/_size.py b/plotly/validators/barpolar/legendgrouptitle/font/_size.py index 98ca85b38c..6e9e84976c 100644 --- a/plotly/validators/barpolar/legendgrouptitle/font/_size.py +++ b/plotly/validators/barpolar/legendgrouptitle/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/barpolar/legendgrouptitle/font/_style.py b/plotly/validators/barpolar/legendgrouptitle/font/_style.py index 9f07619ab0..84d2470608 100644 --- a/plotly/validators/barpolar/legendgrouptitle/font/_style.py +++ b/plotly/validators/barpolar/legendgrouptitle/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/barpolar/legendgrouptitle/font/_textcase.py b/plotly/validators/barpolar/legendgrouptitle/font/_textcase.py index e203d377b4..91a15c003c 100644 --- a/plotly/validators/barpolar/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/barpolar/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/barpolar/legendgrouptitle/font/_variant.py b/plotly/validators/barpolar/legendgrouptitle/font/_variant.py index dd6c6623a3..c684947fe5 100644 --- a/plotly/validators/barpolar/legendgrouptitle/font/_variant.py +++ b/plotly/validators/barpolar/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/barpolar/legendgrouptitle/font/_weight.py b/plotly/validators/barpolar/legendgrouptitle/font/_weight.py index 95ae34c2a6..98eea4d20b 100644 --- a/plotly/validators/barpolar/legendgrouptitle/font/_weight.py +++ b/plotly/validators/barpolar/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/barpolar/marker/__init__.py b/plotly/validators/barpolar/marker/__init__.py index 8fa5005737..339b1c7bb8 100644 --- a/plotly/validators/barpolar/marker/__init__.py +++ b/plotly/validators/barpolar/marker/__init__.py @@ -1,45 +1,25 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._showscale import ShowscaleValidator - from ._reversescale import ReversescaleValidator - from ._pattern import PatternValidator - from ._opacitysrc import OpacitysrcValidator - from ._opacity import OpacityValidator - from ._line import LineValidator - from ._colorsrc import ColorsrcValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._color import ColorValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/barpolar/marker/_autocolorscale.py b/plotly/validators/barpolar/marker/_autocolorscale.py index c3f9dd8056..91cfbac2da 100644 --- a/plotly/validators/barpolar/marker/_autocolorscale.py +++ b/plotly/validators/barpolar/marker/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/barpolar/marker/_cauto.py b/plotly/validators/barpolar/marker/_cauto.py index 7e6a6fdc50..d5c543e7ff 100644 --- a/plotly/validators/barpolar/marker/_cauto.py +++ b/plotly/validators/barpolar/marker/_cauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/barpolar/marker/_cmax.py b/plotly/validators/barpolar/marker/_cmax.py index eebadac8e5..e51c7f9599 100644 --- a/plotly/validators/barpolar/marker/_cmax.py +++ b/plotly/validators/barpolar/marker/_cmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/barpolar/marker/_cmid.py b/plotly/validators/barpolar/marker/_cmid.py index 4570b8a08c..9481b44c47 100644 --- a/plotly/validators/barpolar/marker/_cmid.py +++ b/plotly/validators/barpolar/marker/_cmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/barpolar/marker/_cmin.py b/plotly/validators/barpolar/marker/_cmin.py index a5744b37a1..94811f4a09 100644 --- a/plotly/validators/barpolar/marker/_cmin.py +++ b/plotly/validators/barpolar/marker/_cmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/barpolar/marker/_color.py b/plotly/validators/barpolar/marker/_color.py index 1ecb1f88f0..05d431f465 100644 --- a/plotly/validators/barpolar/marker/_color.py +++ b/plotly/validators/barpolar/marker/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_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"), diff --git a/plotly/validators/barpolar/marker/_coloraxis.py b/plotly/validators/barpolar/marker/_coloraxis.py index d8b859d1cf..add646365d 100644 --- a/plotly/validators/barpolar/marker/_coloraxis.py +++ b/plotly/validators/barpolar/marker/_coloraxis.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/barpolar/marker/_colorbar.py b/plotly/validators/barpolar/marker/_colorbar.py index 5e232c6350..35466cb62d 100644 --- a/plotly/validators/barpolar/marker/_colorbar.py +++ b/plotly/validators/barpolar/marker/_colorbar.py @@ -1,279 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/barpolar/marker/_colorscale.py b/plotly/validators/barpolar/marker/_colorscale.py index 3cd3c946db..0beb540113 100644 --- a/plotly/validators/barpolar/marker/_colorscale.py +++ b/plotly/validators/barpolar/marker/_colorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/barpolar/marker/_colorsrc.py b/plotly/validators/barpolar/marker/_colorsrc.py index 59db87041c..2f3b872dd8 100644 --- a/plotly/validators/barpolar/marker/_colorsrc.py +++ b/plotly/validators/barpolar/marker/_colorsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/_line.py b/plotly/validators/barpolar/marker/_line.py index 166209cdec..a16e4f7b94 100644 --- a/plotly/validators/barpolar/marker/_line.py +++ b/plotly/validators/barpolar/marker/_line.py @@ -1,104 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/barpolar/marker/_opacity.py b/plotly/validators/barpolar/marker/_opacity.py index 4f2689e7a0..9e82e67581 100644 --- a/plotly/validators/barpolar/marker/_opacity.py +++ b/plotly/validators/barpolar/marker/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), diff --git a/plotly/validators/barpolar/marker/_opacitysrc.py b/plotly/validators/barpolar/marker/_opacitysrc.py index c49997f833..a3cced31b0 100644 --- a/plotly/validators/barpolar/marker/_opacitysrc.py +++ b/plotly/validators/barpolar/marker/_opacitysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/_pattern.py b/plotly/validators/barpolar/marker/_pattern.py index b6441fb1c1..27c071c532 100644 --- a/plotly/validators/barpolar/marker/_pattern.py +++ b/plotly/validators/barpolar/marker/_pattern.py @@ -1,63 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PatternValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/barpolar/marker/_reversescale.py b/plotly/validators/barpolar/marker/_reversescale.py index 2d564158f9..294fea57f3 100644 --- a/plotly/validators/barpolar/marker/_reversescale.py +++ b/plotly/validators/barpolar/marker/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/_showscale.py b/plotly/validators/barpolar/marker/_showscale.py index be73b8266c..6c5875d85b 100644 --- a/plotly/validators/barpolar/marker/_showscale.py +++ b/plotly/validators/barpolar/marker/_showscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/colorbar/__init__.py b/plotly/validators/barpolar/marker/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/barpolar/marker/colorbar/__init__.py +++ b/plotly/validators/barpolar/marker/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/barpolar/marker/colorbar/_bgcolor.py b/plotly/validators/barpolar/marker/colorbar/_bgcolor.py index afb613d184..12daa1c01f 100644 --- a/plotly/validators/barpolar/marker/colorbar/_bgcolor.py +++ b/plotly/validators/barpolar/marker/colorbar/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/colorbar/_bordercolor.py b/plotly/validators/barpolar/marker/colorbar/_bordercolor.py index e35f8af2f0..8c0ae87248 100644 --- a/plotly/validators/barpolar/marker/colorbar/_bordercolor.py +++ b/plotly/validators/barpolar/marker/colorbar/_bordercolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/colorbar/_borderwidth.py b/plotly/validators/barpolar/marker/colorbar/_borderwidth.py index 72feb719e4..bc044928d6 100644 --- a/plotly/validators/barpolar/marker/colorbar/_borderwidth.py +++ b/plotly/validators/barpolar/marker/colorbar/_borderwidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/barpolar/marker/colorbar/_dtick.py b/plotly/validators/barpolar/marker/colorbar/_dtick.py index 3131e700df..54fb7254f7 100644 --- a/plotly/validators/barpolar/marker/colorbar/_dtick.py +++ b/plotly/validators/barpolar/marker/colorbar/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/barpolar/marker/colorbar/_exponentformat.py b/plotly/validators/barpolar/marker/colorbar/_exponentformat.py index ded52c3fb6..05d3c751eb 100644 --- a/plotly/validators/barpolar/marker/colorbar/_exponentformat.py +++ b/plotly/validators/barpolar/marker/colorbar/_exponentformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/barpolar/marker/colorbar/_labelalias.py b/plotly/validators/barpolar/marker/colorbar/_labelalias.py index 8d9fb9a426..48a14367b7 100644 --- a/plotly/validators/barpolar/marker/colorbar/_labelalias.py +++ b/plotly/validators/barpolar/marker/colorbar/_labelalias.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/colorbar/_len.py b/plotly/validators/barpolar/marker/colorbar/_len.py index c97cdff724..28a9bcaf8a 100644 --- a/plotly/validators/barpolar/marker/colorbar/_len.py +++ b/plotly/validators/barpolar/marker/colorbar/_len.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/barpolar/marker/colorbar/_lenmode.py b/plotly/validators/barpolar/marker/colorbar/_lenmode.py index 9051b2ec17..58324abaad 100644 --- a/plotly/validators/barpolar/marker/colorbar/_lenmode.py +++ b/plotly/validators/barpolar/marker/colorbar/_lenmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/barpolar/marker/colorbar/_minexponent.py b/plotly/validators/barpolar/marker/colorbar/_minexponent.py index e32cdcd20e..3bccf809d6 100644 --- a/plotly/validators/barpolar/marker/colorbar/_minexponent.py +++ b/plotly/validators/barpolar/marker/colorbar/_minexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/barpolar/marker/colorbar/_nticks.py b/plotly/validators/barpolar/marker/colorbar/_nticks.py index 23b6275892..5e0a93fe15 100644 --- a/plotly/validators/barpolar/marker/colorbar/_nticks.py +++ b/plotly/validators/barpolar/marker/colorbar/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/barpolar/marker/colorbar/_orientation.py b/plotly/validators/barpolar/marker/colorbar/_orientation.py index 4421855ec2..d1e672eca1 100644 --- a/plotly/validators/barpolar/marker/colorbar/_orientation.py +++ b/plotly/validators/barpolar/marker/colorbar/_orientation.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/barpolar/marker/colorbar/_outlinecolor.py b/plotly/validators/barpolar/marker/colorbar/_outlinecolor.py index d184ed2688..bc5fa6b26d 100644 --- a/plotly/validators/barpolar/marker/colorbar/_outlinecolor.py +++ b/plotly/validators/barpolar/marker/colorbar/_outlinecolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/colorbar/_outlinewidth.py b/plotly/validators/barpolar/marker/colorbar/_outlinewidth.py index 4137bb9d31..3f7361bb0d 100644 --- a/plotly/validators/barpolar/marker/colorbar/_outlinewidth.py +++ b/plotly/validators/barpolar/marker/colorbar/_outlinewidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/barpolar/marker/colorbar/_separatethousands.py b/plotly/validators/barpolar/marker/colorbar/_separatethousands.py index 9e68248223..ec17a829c1 100644 --- a/plotly/validators/barpolar/marker/colorbar/_separatethousands.py +++ b/plotly/validators/barpolar/marker/colorbar/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/colorbar/_showexponent.py b/plotly/validators/barpolar/marker/colorbar/_showexponent.py index 8ff6dec479..61b24bd34d 100644 --- a/plotly/validators/barpolar/marker/colorbar/_showexponent.py +++ b/plotly/validators/barpolar/marker/colorbar/_showexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/barpolar/marker/colorbar/_showticklabels.py b/plotly/validators/barpolar/marker/colorbar/_showticklabels.py index 86621a6de9..b07d44fe0e 100644 --- a/plotly/validators/barpolar/marker/colorbar/_showticklabels.py +++ b/plotly/validators/barpolar/marker/colorbar/_showticklabels.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/colorbar/_showtickprefix.py b/plotly/validators/barpolar/marker/colorbar/_showtickprefix.py index c39c63dc36..f95a03622c 100644 --- a/plotly/validators/barpolar/marker/colorbar/_showtickprefix.py +++ b/plotly/validators/barpolar/marker/colorbar/_showtickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/barpolar/marker/colorbar/_showticksuffix.py b/plotly/validators/barpolar/marker/colorbar/_showticksuffix.py index bf44764f43..5a5c96a61a 100644 --- a/plotly/validators/barpolar/marker/colorbar/_showticksuffix.py +++ b/plotly/validators/barpolar/marker/colorbar/_showticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/barpolar/marker/colorbar/_thickness.py b/plotly/validators/barpolar/marker/colorbar/_thickness.py index b79ecd5780..d6d2c9a430 100644 --- a/plotly/validators/barpolar/marker/colorbar/_thickness.py +++ b/plotly/validators/barpolar/marker/colorbar/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/barpolar/marker/colorbar/_thicknessmode.py b/plotly/validators/barpolar/marker/colorbar/_thicknessmode.py index d77b8474d3..2033e5b86f 100644 --- a/plotly/validators/barpolar/marker/colorbar/_thicknessmode.py +++ b/plotly/validators/barpolar/marker/colorbar/_thicknessmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/barpolar/marker/colorbar/_tick0.py b/plotly/validators/barpolar/marker/colorbar/_tick0.py index 69a2667ee5..35f934c22a 100644 --- a/plotly/validators/barpolar/marker/colorbar/_tick0.py +++ b/plotly/validators/barpolar/marker/colorbar/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/barpolar/marker/colorbar/_tickangle.py b/plotly/validators/barpolar/marker/colorbar/_tickangle.py index 8a135c77bc..36251dc703 100644 --- a/plotly/validators/barpolar/marker/colorbar/_tickangle.py +++ b/plotly/validators/barpolar/marker/colorbar/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/colorbar/_tickcolor.py b/plotly/validators/barpolar/marker/colorbar/_tickcolor.py index 5cbf4df698..2607360924 100644 --- a/plotly/validators/barpolar/marker/colorbar/_tickcolor.py +++ b/plotly/validators/barpolar/marker/colorbar/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/colorbar/_tickfont.py b/plotly/validators/barpolar/marker/colorbar/_tickfont.py index 8186f73650..d390509f15 100644 --- a/plotly/validators/barpolar/marker/colorbar/_tickfont.py +++ b/plotly/validators/barpolar/marker/colorbar/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/barpolar/marker/colorbar/_tickformat.py b/plotly/validators/barpolar/marker/colorbar/_tickformat.py index 8e641b2ec1..2a69c252c7 100644 --- a/plotly/validators/barpolar/marker/colorbar/_tickformat.py +++ b/plotly/validators/barpolar/marker/colorbar/_tickformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/colorbar/_tickformatstopdefaults.py b/plotly/validators/barpolar/marker/colorbar/_tickformatstopdefaults.py index 2874c562d7..dcef335f85 100644 --- a/plotly/validators/barpolar/marker/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/barpolar/marker/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/barpolar/marker/colorbar/_tickformatstops.py b/plotly/validators/barpolar/marker/colorbar/_tickformatstops.py index 8697692f92..487cd04397 100644 --- a/plotly/validators/barpolar/marker/colorbar/_tickformatstops.py +++ b/plotly/validators/barpolar/marker/colorbar/_tickformatstops.py @@ -1,53 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/barpolar/marker/colorbar/_ticklabeloverflow.py b/plotly/validators/barpolar/marker/colorbar/_ticklabeloverflow.py index 33481d9611..ec78bd32f5 100644 --- a/plotly/validators/barpolar/marker/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/barpolar/marker/colorbar/_ticklabeloverflow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/barpolar/marker/colorbar/_ticklabelposition.py b/plotly/validators/barpolar/marker/colorbar/_ticklabelposition.py index 4f97a2a13f..2b22e4e5d2 100644 --- a/plotly/validators/barpolar/marker/colorbar/_ticklabelposition.py +++ b/plotly/validators/barpolar/marker/colorbar/_ticklabelposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/barpolar/marker/colorbar/_ticklabelstep.py b/plotly/validators/barpolar/marker/colorbar/_ticklabelstep.py index 799e5801f2..1cf2c3a312 100644 --- a/plotly/validators/barpolar/marker/colorbar/_ticklabelstep.py +++ b/plotly/validators/barpolar/marker/colorbar/_ticklabelstep.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/barpolar/marker/colorbar/_ticklen.py b/plotly/validators/barpolar/marker/colorbar/_ticklen.py index 7df86e5dd3..b7907a1076 100644 --- a/plotly/validators/barpolar/marker/colorbar/_ticklen.py +++ b/plotly/validators/barpolar/marker/colorbar/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/barpolar/marker/colorbar/_tickmode.py b/plotly/validators/barpolar/marker/colorbar/_tickmode.py index 45aa8e21a1..f8e378431d 100644 --- a/plotly/validators/barpolar/marker/colorbar/_tickmode.py +++ b/plotly/validators/barpolar/marker/colorbar/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/barpolar/marker/colorbar/_tickprefix.py b/plotly/validators/barpolar/marker/colorbar/_tickprefix.py index 566789ecb8..c25c62da49 100644 --- a/plotly/validators/barpolar/marker/colorbar/_tickprefix.py +++ b/plotly/validators/barpolar/marker/colorbar/_tickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/colorbar/_ticks.py b/plotly/validators/barpolar/marker/colorbar/_ticks.py index 29d0919662..21990c5548 100644 --- a/plotly/validators/barpolar/marker/colorbar/_ticks.py +++ b/plotly/validators/barpolar/marker/colorbar/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/barpolar/marker/colorbar/_ticksuffix.py b/plotly/validators/barpolar/marker/colorbar/_ticksuffix.py index 1cc223e92c..49ade11e2a 100644 --- a/plotly/validators/barpolar/marker/colorbar/_ticksuffix.py +++ b/plotly/validators/barpolar/marker/colorbar/_ticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/colorbar/_ticktext.py b/plotly/validators/barpolar/marker/colorbar/_ticktext.py index e3e6605e59..7c595d5105 100644 --- a/plotly/validators/barpolar/marker/colorbar/_ticktext.py +++ b/plotly/validators/barpolar/marker/colorbar/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/colorbar/_ticktextsrc.py b/plotly/validators/barpolar/marker/colorbar/_ticktextsrc.py index 7f76d9c17d..e28848e130 100644 --- a/plotly/validators/barpolar/marker/colorbar/_ticktextsrc.py +++ b/plotly/validators/barpolar/marker/colorbar/_ticktextsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/colorbar/_tickvals.py b/plotly/validators/barpolar/marker/colorbar/_tickvals.py index ffde504681..68fac30fa1 100644 --- a/plotly/validators/barpolar/marker/colorbar/_tickvals.py +++ b/plotly/validators/barpolar/marker/colorbar/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/colorbar/_tickvalssrc.py b/plotly/validators/barpolar/marker/colorbar/_tickvalssrc.py index a86e3a2303..40e68eaa59 100644 --- a/plotly/validators/barpolar/marker/colorbar/_tickvalssrc.py +++ b/plotly/validators/barpolar/marker/colorbar/_tickvalssrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/colorbar/_tickwidth.py b/plotly/validators/barpolar/marker/colorbar/_tickwidth.py index 262391b05d..79ed51f2a9 100644 --- a/plotly/validators/barpolar/marker/colorbar/_tickwidth.py +++ b/plotly/validators/barpolar/marker/colorbar/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/barpolar/marker/colorbar/_title.py b/plotly/validators/barpolar/marker/colorbar/_title.py index d8e8416d87..27f77cfb7b 100644 --- a/plotly/validators/barpolar/marker/colorbar/_title.py +++ b/plotly/validators/barpolar/marker/colorbar/_title.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/barpolar/marker/colorbar/_x.py b/plotly/validators/barpolar/marker/colorbar/_x.py index 722a577735..e555e8cfa6 100644 --- a/plotly/validators/barpolar/marker/colorbar/_x.py +++ b/plotly/validators/barpolar/marker/colorbar/_x.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/colorbar/_xanchor.py b/plotly/validators/barpolar/marker/colorbar/_xanchor.py index 21906e128c..720fb5173d 100644 --- a/plotly/validators/barpolar/marker/colorbar/_xanchor.py +++ b/plotly/validators/barpolar/marker/colorbar/_xanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/barpolar/marker/colorbar/_xpad.py b/plotly/validators/barpolar/marker/colorbar/_xpad.py index 07c65b980e..f01e1a198e 100644 --- a/plotly/validators/barpolar/marker/colorbar/_xpad.py +++ b/plotly/validators/barpolar/marker/colorbar/_xpad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/barpolar/marker/colorbar/_xref.py b/plotly/validators/barpolar/marker/colorbar/_xref.py index b9a34595c6..3043f42f47 100644 --- a/plotly/validators/barpolar/marker/colorbar/_xref.py +++ b/plotly/validators/barpolar/marker/colorbar/_xref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/barpolar/marker/colorbar/_y.py b/plotly/validators/barpolar/marker/colorbar/_y.py index cc8f201012..d839e366ef 100644 --- a/plotly/validators/barpolar/marker/colorbar/_y.py +++ b/plotly/validators/barpolar/marker/colorbar/_y.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/colorbar/_yanchor.py b/plotly/validators/barpolar/marker/colorbar/_yanchor.py index bfe37aedb5..13c7c26c84 100644 --- a/plotly/validators/barpolar/marker/colorbar/_yanchor.py +++ b/plotly/validators/barpolar/marker/colorbar/_yanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/barpolar/marker/colorbar/_ypad.py b/plotly/validators/barpolar/marker/colorbar/_ypad.py index eab9120464..1a35b7ae82 100644 --- a/plotly/validators/barpolar/marker/colorbar/_ypad.py +++ b/plotly/validators/barpolar/marker/colorbar/_ypad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/barpolar/marker/colorbar/_yref.py b/plotly/validators/barpolar/marker/colorbar/_yref.py index a0d8f83c02..6583ab7685 100644 --- a/plotly/validators/barpolar/marker/colorbar/_yref.py +++ b/plotly/validators/barpolar/marker/colorbar/_yref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/barpolar/marker/colorbar/tickfont/__init__.py b/plotly/validators/barpolar/marker/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/barpolar/marker/colorbar/tickfont/__init__.py +++ b/plotly/validators/barpolar/marker/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/barpolar/marker/colorbar/tickfont/_color.py b/plotly/validators/barpolar/marker/colorbar/tickfont/_color.py index 398cbf9410..a44caa24b2 100644 --- a/plotly/validators/barpolar/marker/colorbar/tickfont/_color.py +++ b/plotly/validators/barpolar/marker/colorbar/tickfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/colorbar/tickfont/_family.py b/plotly/validators/barpolar/marker/colorbar/tickfont/_family.py index bd87b5330b..240b3f486a 100644 --- a/plotly/validators/barpolar/marker/colorbar/tickfont/_family.py +++ b/plotly/validators/barpolar/marker/colorbar/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/barpolar/marker/colorbar/tickfont/_lineposition.py b/plotly/validators/barpolar/marker/colorbar/tickfont/_lineposition.py index 00ceec2d25..c38253afbb 100644 --- a/plotly/validators/barpolar/marker/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/barpolar/marker/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/barpolar/marker/colorbar/tickfont/_shadow.py b/plotly/validators/barpolar/marker/colorbar/tickfont/_shadow.py index e21a4ea4cc..202a2ff73a 100644 --- a/plotly/validators/barpolar/marker/colorbar/tickfont/_shadow.py +++ b/plotly/validators/barpolar/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/colorbar/tickfont/_size.py b/plotly/validators/barpolar/marker/colorbar/tickfont/_size.py index 34f7a7e957..d022c68be8 100644 --- a/plotly/validators/barpolar/marker/colorbar/tickfont/_size.py +++ b/plotly/validators/barpolar/marker/colorbar/tickfont/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/barpolar/marker/colorbar/tickfont/_style.py b/plotly/validators/barpolar/marker/colorbar/tickfont/_style.py index c5913ebf0c..f2345e3c80 100644 --- a/plotly/validators/barpolar/marker/colorbar/tickfont/_style.py +++ b/plotly/validators/barpolar/marker/colorbar/tickfont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/barpolar/marker/colorbar/tickfont/_textcase.py b/plotly/validators/barpolar/marker/colorbar/tickfont/_textcase.py index a24c36d995..9dbf09314e 100644 --- a/plotly/validators/barpolar/marker/colorbar/tickfont/_textcase.py +++ b/plotly/validators/barpolar/marker/colorbar/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/barpolar/marker/colorbar/tickfont/_variant.py b/plotly/validators/barpolar/marker/colorbar/tickfont/_variant.py index b569936339..4ac1526c09 100644 --- a/plotly/validators/barpolar/marker/colorbar/tickfont/_variant.py +++ b/plotly/validators/barpolar/marker/colorbar/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/barpolar/marker/colorbar/tickfont/_weight.py b/plotly/validators/barpolar/marker/colorbar/tickfont/_weight.py index 37eceb0c6d..61007f0bf7 100644 --- a/plotly/validators/barpolar/marker/colorbar/tickfont/_weight.py +++ b/plotly/validators/barpolar/marker/colorbar/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/barpolar/marker/colorbar/tickformatstop/__init__.py b/plotly/validators/barpolar/marker/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/barpolar/marker/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/barpolar/marker/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/barpolar/marker/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/barpolar/marker/colorbar/tickformatstop/_dtickrange.py index 1de66adfa5..bbd49f1af2 100644 --- a/plotly/validators/barpolar/marker/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/barpolar/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( "items", diff --git a/plotly/validators/barpolar/marker/colorbar/tickformatstop/_enabled.py b/plotly/validators/barpolar/marker/colorbar/tickformatstop/_enabled.py index 88b672ee0a..0dca9ddba3 100644 --- a/plotly/validators/barpolar/marker/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/barpolar/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/colorbar/tickformatstop/_name.py b/plotly/validators/barpolar/marker/colorbar/tickformatstop/_name.py index a2755744fa..684c0f4ad9 100644 --- a/plotly/validators/barpolar/marker/colorbar/tickformatstop/_name.py +++ b/plotly/validators/barpolar/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/barpolar/marker/colorbar/tickformatstop/_templateitemname.py index f36c42403a..a8370e968d 100644 --- a/plotly/validators/barpolar/marker/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/barpolar/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/colorbar/tickformatstop/_value.py b/plotly/validators/barpolar/marker/colorbar/tickformatstop/_value.py index 9957697bea..5c42df5416 100644 --- a/plotly/validators/barpolar/marker/colorbar/tickformatstop/_value.py +++ b/plotly/validators/barpolar/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/colorbar/title/__init__.py b/plotly/validators/barpolar/marker/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/barpolar/marker/colorbar/title/__init__.py +++ b/plotly/validators/barpolar/marker/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/barpolar/marker/colorbar/title/_font.py b/plotly/validators/barpolar/marker/colorbar/title/_font.py index 35b1b64844..32736246d5 100644 --- a/plotly/validators/barpolar/marker/colorbar/title/_font.py +++ b/plotly/validators/barpolar/marker/colorbar/title/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/barpolar/marker/colorbar/title/_side.py b/plotly/validators/barpolar/marker/colorbar/title/_side.py index 78d7b65277..83f6e7593b 100644 --- a/plotly/validators/barpolar/marker/colorbar/title/_side.py +++ b/plotly/validators/barpolar/marker/colorbar/title/_side.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/barpolar/marker/colorbar/title/_text.py b/plotly/validators/barpolar/marker/colorbar/title/_text.py index f724467171..e13e5bd383 100644 --- a/plotly/validators/barpolar/marker/colorbar/title/_text.py +++ b/plotly/validators/barpolar/marker/colorbar/title/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/colorbar/title/font/__init__.py b/plotly/validators/barpolar/marker/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/barpolar/marker/colorbar/title/font/__init__.py +++ b/plotly/validators/barpolar/marker/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/barpolar/marker/colorbar/title/font/_color.py b/plotly/validators/barpolar/marker/colorbar/title/font/_color.py index 476732bc40..4567c8fa27 100644 --- a/plotly/validators/barpolar/marker/colorbar/title/font/_color.py +++ b/plotly/validators/barpolar/marker/colorbar/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/colorbar/title/font/_family.py b/plotly/validators/barpolar/marker/colorbar/title/font/_family.py index c01f60828f..40883e80d7 100644 --- a/plotly/validators/barpolar/marker/colorbar/title/font/_family.py +++ b/plotly/validators/barpolar/marker/colorbar/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/barpolar/marker/colorbar/title/font/_lineposition.py b/plotly/validators/barpolar/marker/colorbar/title/font/_lineposition.py index bf1bbfc51f..7f0778df61 100644 --- a/plotly/validators/barpolar/marker/colorbar/title/font/_lineposition.py +++ b/plotly/validators/barpolar/marker/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/barpolar/marker/colorbar/title/font/_shadow.py b/plotly/validators/barpolar/marker/colorbar/title/font/_shadow.py index fceff83879..559c9bfd0c 100644 --- a/plotly/validators/barpolar/marker/colorbar/title/font/_shadow.py +++ b/plotly/validators/barpolar/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/colorbar/title/font/_size.py b/plotly/validators/barpolar/marker/colorbar/title/font/_size.py index 699cc002b6..a6bb2723ce 100644 --- a/plotly/validators/barpolar/marker/colorbar/title/font/_size.py +++ b/plotly/validators/barpolar/marker/colorbar/title/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/barpolar/marker/colorbar/title/font/_style.py b/plotly/validators/barpolar/marker/colorbar/title/font/_style.py index 1bf7646dae..c7b7e8382d 100644 --- a/plotly/validators/barpolar/marker/colorbar/title/font/_style.py +++ b/plotly/validators/barpolar/marker/colorbar/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/barpolar/marker/colorbar/title/font/_textcase.py b/plotly/validators/barpolar/marker/colorbar/title/font/_textcase.py index 4c45cd8ce5..17c2180287 100644 --- a/plotly/validators/barpolar/marker/colorbar/title/font/_textcase.py +++ b/plotly/validators/barpolar/marker/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/barpolar/marker/colorbar/title/font/_variant.py b/plotly/validators/barpolar/marker/colorbar/title/font/_variant.py index beec6b2df5..1f6ec263ed 100644 --- a/plotly/validators/barpolar/marker/colorbar/title/font/_variant.py +++ b/plotly/validators/barpolar/marker/colorbar/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/barpolar/marker/colorbar/title/font/_weight.py b/plotly/validators/barpolar/marker/colorbar/title/font/_weight.py index 4fe7d3c1f3..c2a287eb42 100644 --- a/plotly/validators/barpolar/marker/colorbar/title/font/_weight.py +++ b/plotly/validators/barpolar/marker/colorbar/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/barpolar/marker/line/__init__.py b/plotly/validators/barpolar/marker/line/__init__.py index facbe33f88..4ba3ea340b 100644 --- a/plotly/validators/barpolar/marker/line/__init__.py +++ b/plotly/validators/barpolar/marker/line/__init__.py @@ -1,37 +1,21 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._widthsrc import WidthsrcValidator - from ._width import WidthValidator - from ._reversescale import ReversescaleValidator - from ._colorsrc import ColorsrcValidator - from ._colorscale import ColorscaleValidator - from ._coloraxis import ColoraxisValidator - from ._color import ColorValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/barpolar/marker/line/_autocolorscale.py b/plotly/validators/barpolar/marker/line/_autocolorscale.py index ed8298c09e..99ce576795 100644 --- a/plotly/validators/barpolar/marker/line/_autocolorscale.py +++ b/plotly/validators/barpolar/marker/line/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/barpolar/marker/line/_cauto.py b/plotly/validators/barpolar/marker/line/_cauto.py index 8b54dff990..f1d0bfd2cd 100644 --- a/plotly/validators/barpolar/marker/line/_cauto.py +++ b/plotly/validators/barpolar/marker/line/_cauto.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/barpolar/marker/line/_cmax.py b/plotly/validators/barpolar/marker/line/_cmax.py index bbb781ad4d..81454f972c 100644 --- a/plotly/validators/barpolar/marker/line/_cmax.py +++ b/plotly/validators/barpolar/marker/line/_cmax.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/barpolar/marker/line/_cmid.py b/plotly/validators/barpolar/marker/line/_cmid.py index b8c79ed0cd..c49c5b456e 100644 --- a/plotly/validators/barpolar/marker/line/_cmid.py +++ b/plotly/validators/barpolar/marker/line/_cmid.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/barpolar/marker/line/_cmin.py b/plotly/validators/barpolar/marker/line/_cmin.py index a18d76c246..7a869d8216 100644 --- a/plotly/validators/barpolar/marker/line/_cmin.py +++ b/plotly/validators/barpolar/marker/line/_cmin.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/barpolar/marker/line/_color.py b/plotly/validators/barpolar/marker/line/_color.py index 5f66d2b107..d2597b3ea0 100644 --- a/plotly/validators/barpolar/marker/line/_color.py +++ b/plotly/validators/barpolar/marker/line/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), colorscale_path=kwargs.pop( diff --git a/plotly/validators/barpolar/marker/line/_coloraxis.py b/plotly/validators/barpolar/marker/line/_coloraxis.py index 3e63f02e42..88d324d691 100644 --- a/plotly/validators/barpolar/marker/line/_coloraxis.py +++ b/plotly/validators/barpolar/marker/line/_coloraxis.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/barpolar/marker/line/_colorscale.py b/plotly/validators/barpolar/marker/line/_colorscale.py index f04fdbc442..2ea1afa15b 100644 --- a/plotly/validators/barpolar/marker/line/_colorscale.py +++ b/plotly/validators/barpolar/marker/line/_colorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/barpolar/marker/line/_colorsrc.py b/plotly/validators/barpolar/marker/line/_colorsrc.py index b65b9e33d7..867fa396b3 100644 --- a/plotly/validators/barpolar/marker/line/_colorsrc.py +++ b/plotly/validators/barpolar/marker/line/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/line/_reversescale.py b/plotly/validators/barpolar/marker/line/_reversescale.py index 5faf9e8860..5938a42770 100644 --- a/plotly/validators/barpolar/marker/line/_reversescale.py +++ b/plotly/validators/barpolar/marker/line/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/line/_width.py b/plotly/validators/barpolar/marker/line/_width.py index 0f9b4aa3bd..4f21298cef 100644 --- a/plotly/validators/barpolar/marker/line/_width.py +++ b/plotly/validators/barpolar/marker/line/_width.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/barpolar/marker/line/_widthsrc.py b/plotly/validators/barpolar/marker/line/_widthsrc.py index 055bce41dd..f614801b12 100644 --- a/plotly/validators/barpolar/marker/line/_widthsrc.py +++ b/plotly/validators/barpolar/marker/line/_widthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/pattern/__init__.py b/plotly/validators/barpolar/marker/pattern/__init__.py index e190f962c4..e42ccc4d0f 100644 --- a/plotly/validators/barpolar/marker/pattern/__init__.py +++ b/plotly/validators/barpolar/marker/pattern/__init__.py @@ -1,37 +1,21 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._soliditysrc import SoliditysrcValidator - from ._solidity import SolidityValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shapesrc import ShapesrcValidator - from ._shape import ShapeValidator - from ._fillmode import FillmodeValidator - from ._fgopacity import FgopacityValidator - from ._fgcolorsrc import FgcolorsrcValidator - from ._fgcolor import FgcolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/barpolar/marker/pattern/_bgcolor.py b/plotly/validators/barpolar/marker/pattern/_bgcolor.py index c18cec305d..e4dc3677ed 100644 --- a/plotly/validators/barpolar/marker/pattern/_bgcolor.py +++ b/plotly/validators/barpolar/marker/pattern/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/barpolar/marker/pattern/_bgcolorsrc.py b/plotly/validators/barpolar/marker/pattern/_bgcolorsrc.py index d7a4399481..7fac4f47fb 100644 --- a/plotly/validators/barpolar/marker/pattern/_bgcolorsrc.py +++ b/plotly/validators/barpolar/marker/pattern/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/pattern/_fgcolor.py b/plotly/validators/barpolar/marker/pattern/_fgcolor.py index 13d6c69670..eeabb1fa3d 100644 --- a/plotly/validators/barpolar/marker/pattern/_fgcolor.py +++ b/plotly/validators/barpolar/marker/pattern/_fgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/barpolar/marker/pattern/_fgcolorsrc.py b/plotly/validators/barpolar/marker/pattern/_fgcolorsrc.py index 55503a1f1e..78fe727755 100644 --- a/plotly/validators/barpolar/marker/pattern/_fgcolorsrc.py +++ b/plotly/validators/barpolar/marker/pattern/_fgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/pattern/_fgopacity.py b/plotly/validators/barpolar/marker/pattern/_fgopacity.py index 9a30372b4b..51f34d9646 100644 --- a/plotly/validators/barpolar/marker/pattern/_fgopacity.py +++ b/plotly/validators/barpolar/marker/pattern/_fgopacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FgopacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/barpolar/marker/pattern/_fillmode.py b/plotly/validators/barpolar/marker/pattern/_fillmode.py index 78f32cd378..a22a84e5ae 100644 --- a/plotly/validators/barpolar/marker/pattern/_fillmode.py +++ b/plotly/validators/barpolar/marker/pattern/_fillmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["replace", "overlay"]), **kwargs, diff --git a/plotly/validators/barpolar/marker/pattern/_shape.py b/plotly/validators/barpolar/marker/pattern/_shape.py index de4649413e..055ddd72f6 100644 --- a/plotly/validators/barpolar/marker/pattern/_shape.py +++ b/plotly/validators/barpolar/marker/pattern/_shape.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["", "/", "\\", "x", "-", "|", "+", "."]), diff --git a/plotly/validators/barpolar/marker/pattern/_shapesrc.py b/plotly/validators/barpolar/marker/pattern/_shapesrc.py index a3037c115f..40c7aed035 100644 --- a/plotly/validators/barpolar/marker/pattern/_shapesrc.py +++ b/plotly/validators/barpolar/marker/pattern/_shapesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShapesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/pattern/_size.py b/plotly/validators/barpolar/marker/pattern/_size.py index 84f9477578..82d562987d 100644 --- a/plotly/validators/barpolar/marker/pattern/_size.py +++ b/plotly/validators/barpolar/marker/pattern/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/barpolar/marker/pattern/_sizesrc.py b/plotly/validators/barpolar/marker/pattern/_sizesrc.py index b19de7f1f8..17fdd9ef3c 100644 --- a/plotly/validators/barpolar/marker/pattern/_sizesrc.py +++ b/plotly/validators/barpolar/marker/pattern/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/marker/pattern/_solidity.py b/plotly/validators/barpolar/marker/pattern/_solidity.py index c047af38cb..4ce8ce71ff 100644 --- a/plotly/validators/barpolar/marker/pattern/_solidity.py +++ b/plotly/validators/barpolar/marker/pattern/_solidity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SolidityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), diff --git a/plotly/validators/barpolar/marker/pattern/_soliditysrc.py b/plotly/validators/barpolar/marker/pattern/_soliditysrc.py index 5527c84bfa..f342ab3b78 100644 --- a/plotly/validators/barpolar/marker/pattern/_soliditysrc.py +++ b/plotly/validators/barpolar/marker/pattern/_soliditysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SoliditysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/barpolar/selected/__init__.py b/plotly/validators/barpolar/selected/__init__.py index 3b0aeed383..9d2a313b83 100644 --- a/plotly/validators/barpolar/selected/__init__.py +++ b/plotly/validators/barpolar/selected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] +) diff --git a/plotly/validators/barpolar/selected/_marker.py b/plotly/validators/barpolar/selected/_marker.py index 9e6d8fd6e4..85a2fd1047 100644 --- a/plotly/validators/barpolar/selected/_marker.py +++ b/plotly/validators/barpolar/selected/_marker.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/barpolar/selected/_textfont.py b/plotly/validators/barpolar/selected/_textfont.py index 2888a5aa14..060b6bce45 100644 --- a/plotly/validators/barpolar/selected/_textfont.py +++ b/plotly/validators/barpolar/selected/_textfont.py @@ -1,19 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/barpolar/selected/marker/__init__.py b/plotly/validators/barpolar/selected/marker/__init__.py index d8f31347bf..653e572933 100644 --- a/plotly/validators/barpolar/selected/marker/__init__.py +++ b/plotly/validators/barpolar/selected/marker/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._opacity.OpacityValidator", "._color.ColorValidator"] +) diff --git a/plotly/validators/barpolar/selected/marker/_color.py b/plotly/validators/barpolar/selected/marker/_color.py index 5e0113d377..615fb50f54 100644 --- a/plotly/validators/barpolar/selected/marker/_color.py +++ b/plotly/validators/barpolar/selected/marker/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/barpolar/selected/marker/_opacity.py b/plotly/validators/barpolar/selected/marker/_opacity.py index 810923ba6a..7d302f1798 100644 --- a/plotly/validators/barpolar/selected/marker/_opacity.py +++ b/plotly/validators/barpolar/selected/marker/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/barpolar/selected/textfont/__init__.py b/plotly/validators/barpolar/selected/textfont/__init__.py index a9f087e5af..85a4cc9573 100644 --- a/plotly/validators/barpolar/selected/textfont/__init__.py +++ b/plotly/validators/barpolar/selected/textfont/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._color.ColorValidator"] +) diff --git a/plotly/validators/barpolar/selected/textfont/_color.py b/plotly/validators/barpolar/selected/textfont/_color.py index e17e8b3f2e..a08ff7f382 100644 --- a/plotly/validators/barpolar/selected/textfont/_color.py +++ b/plotly/validators/barpolar/selected/textfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/barpolar/stream/__init__.py b/plotly/validators/barpolar/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/barpolar/stream/__init__.py +++ b/plotly/validators/barpolar/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/barpolar/stream/_maxpoints.py b/plotly/validators/barpolar/stream/_maxpoints.py index af46099704..4df5546e58 100644 --- a/plotly/validators/barpolar/stream/_maxpoints.py +++ b/plotly/validators/barpolar/stream/_maxpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/barpolar/stream/_token.py b/plotly/validators/barpolar/stream/_token.py index f0ce0dd931..4f00d9f76d 100644 --- a/plotly/validators/barpolar/stream/_token.py +++ b/plotly/validators/barpolar/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/barpolar/unselected/__init__.py b/plotly/validators/barpolar/unselected/__init__.py index 3b0aeed383..9d2a313b83 100644 --- a/plotly/validators/barpolar/unselected/__init__.py +++ b/plotly/validators/barpolar/unselected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] +) diff --git a/plotly/validators/barpolar/unselected/_marker.py b/plotly/validators/barpolar/unselected/_marker.py index ba3837c50c..0fd82381f4 100644 --- a/plotly/validators/barpolar/unselected/_marker.py +++ b/plotly/validators/barpolar/unselected/_marker.py @@ -1,23 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/barpolar/unselected/_textfont.py b/plotly/validators/barpolar/unselected/_textfont.py index c59a480113..055f1b7b6d 100644 --- a/plotly/validators/barpolar/unselected/_textfont.py +++ b/plotly/validators/barpolar/unselected/_textfont.py @@ -1,20 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/barpolar/unselected/marker/__init__.py b/plotly/validators/barpolar/unselected/marker/__init__.py index d8f31347bf..653e572933 100644 --- a/plotly/validators/barpolar/unselected/marker/__init__.py +++ b/plotly/validators/barpolar/unselected/marker/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._opacity.OpacityValidator", "._color.ColorValidator"] +) diff --git a/plotly/validators/barpolar/unselected/marker/_color.py b/plotly/validators/barpolar/unselected/marker/_color.py index 358b851a75..e8656649a1 100644 --- a/plotly/validators/barpolar/unselected/marker/_color.py +++ b/plotly/validators/barpolar/unselected/marker/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/barpolar/unselected/marker/_opacity.py b/plotly/validators/barpolar/unselected/marker/_opacity.py index 27c9d779d6..22066d5227 100644 --- a/plotly/validators/barpolar/unselected/marker/_opacity.py +++ b/plotly/validators/barpolar/unselected/marker/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/barpolar/unselected/textfont/__init__.py b/plotly/validators/barpolar/unselected/textfont/__init__.py index a9f087e5af..85a4cc9573 100644 --- a/plotly/validators/barpolar/unselected/textfont/__init__.py +++ b/plotly/validators/barpolar/unselected/textfont/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._color.ColorValidator"] +) diff --git a/plotly/validators/barpolar/unselected/textfont/_color.py b/plotly/validators/barpolar/unselected/textfont/_color.py index 2bd20d6506..39fd27d37e 100644 --- a/plotly/validators/barpolar/unselected/textfont/_color.py +++ b/plotly/validators/barpolar/unselected/textfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/box/__init__.py b/plotly/validators/box/__init__.py index 3970b2cf4b..ccfd18ac33 100644 --- a/plotly/validators/box/__init__.py +++ b/plotly/validators/box/__init__.py @@ -1,185 +1,95 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zorder import ZorderValidator - from ._ysrc import YsrcValidator - from ._yperiodalignment import YperiodalignmentValidator - from ._yperiod0 import Yperiod0Validator - from ._yperiod import YperiodValidator - from ._yhoverformat import YhoverformatValidator - from ._ycalendar import YcalendarValidator - from ._yaxis import YaxisValidator - from ._y0 import Y0Validator - from ._y import YValidator - from ._xsrc import XsrcValidator - from ._xperiodalignment import XperiodalignmentValidator - from ._xperiod0 import Xperiod0Validator - from ._xperiod import XperiodValidator - from ._xhoverformat import XhoverformatValidator - from ._xcalendar import XcalendarValidator - from ._xaxis import XaxisValidator - from ._x0 import X0Validator - from ._x import XValidator - from ._width import WidthValidator - from ._whiskerwidth import WhiskerwidthValidator - from ._visible import VisibleValidator - from ._upperfencesrc import UpperfencesrcValidator - from ._upperfence import UpperfenceValidator - from ._unselected import UnselectedValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._textsrc import TextsrcValidator - from ._text import TextValidator - from ._stream import StreamValidator - from ._sizemode import SizemodeValidator - from ._showwhiskers import ShowwhiskersValidator - from ._showlegend import ShowlegendValidator - from ._selectedpoints import SelectedpointsValidator - from ._selected import SelectedValidator - from ._sdsrc import SdsrcValidator - from ._sdmultiple import SdmultipleValidator - from ._sd import SdValidator - from ._quartilemethod import QuartilemethodValidator - from ._q3src import Q3SrcValidator - from ._q3 import Q3Validator - from ._q1src import Q1SrcValidator - from ._q1 import Q1Validator - from ._pointpos import PointposValidator - from ._orientation import OrientationValidator - from ._opacity import OpacityValidator - from ._offsetgroup import OffsetgroupValidator - from ._notchwidth import NotchwidthValidator - from ._notchspansrc import NotchspansrcValidator - from ._notchspan import NotchspanValidator - from ._notched import NotchedValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._mediansrc import MediansrcValidator - from ._median import MedianValidator - from ._meansrc import MeansrcValidator - from ._mean import MeanValidator - from ._marker import MarkerValidator - from ._lowerfencesrc import LowerfencesrcValidator - from ._lowerfence import LowerfenceValidator - from ._line import LineValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._jitter import JitterValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoveron import HoveronValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._fillcolor import FillcolorValidator - from ._dy import DyValidator - from ._dx import DxValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._boxpoints import BoxpointsValidator - from ._boxmean import BoxmeanValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/box/_alignmentgroup.py b/plotly/validators/box/_alignmentgroup.py index ced7c9d994..895bcd7b1b 100644 --- a/plotly/validators/box/_alignmentgroup.py +++ b/plotly/validators/box/_alignmentgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignmentgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/box/_boxmean.py b/plotly/validators/box/_boxmean.py index 6cf2567dca..fa8b1871ed 100644 --- a/plotly/validators/box/_boxmean.py +++ b/plotly/validators/box/_boxmean.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BoxmeanValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, "sd", False]), **kwargs, diff --git a/plotly/validators/box/_boxpoints.py b/plotly/validators/box/_boxpoints.py index 448f9d16c4..168c86b960 100644 --- a/plotly/validators/box/_boxpoints.py +++ b/plotly/validators/box/_boxpoints.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BoxpointsValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", ["all", "outliers", "suspectedoutliers", False] diff --git a/plotly/validators/box/_customdata.py b/plotly/validators/box/_customdata.py index c6da0ed67f..8f2c8df290 100644 --- a/plotly/validators/box/_customdata.py +++ b/plotly/validators/box/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/box/_customdatasrc.py b/plotly/validators/box/_customdatasrc.py index 5da01e58ba..b66e4c61d0 100644 --- a/plotly/validators/box/_customdatasrc.py +++ b/plotly/validators/box/_customdatasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/box/_dx.py b/plotly/validators/box/_dx.py index ea05c47206..c5526c1024 100644 --- a/plotly/validators/box/_dx.py +++ b/plotly/validators/box/_dx.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/box/_dy.py b/plotly/validators/box/_dy.py index 769e12b145..25cbf5b223 100644 --- a/plotly/validators/box/_dy.py +++ b/plotly/validators/box/_dy.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DyValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/box/_fillcolor.py b/plotly/validators/box/_fillcolor.py index 575d4b2562..cee050cdf2 100644 --- a/plotly/validators/box/_fillcolor.py +++ b/plotly/validators/box/_fillcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/box/_hoverinfo.py b/plotly/validators/box/_hoverinfo.py index aeb3bc8207..4c2110b42b 100644 --- a/plotly/validators/box/_hoverinfo.py +++ b/plotly/validators/box/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/box/_hoverinfosrc.py b/plotly/validators/box/_hoverinfosrc.py index cdb181ade9..ceaf260a9e 100644 --- a/plotly/validators/box/_hoverinfosrc.py +++ b/plotly/validators/box/_hoverinfosrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/box/_hoverlabel.py b/plotly/validators/box/_hoverlabel.py index fdac144a49..d25e0944c4 100644 --- a/plotly/validators/box/_hoverlabel.py +++ b/plotly/validators/box/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/box/_hoveron.py b/plotly/validators/box/_hoveron.py index c06659a204..fefd8715ff 100644 --- a/plotly/validators/box/_hoveron.py +++ b/plotly/validators/box/_hoveron.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoveronValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), flags=kwargs.pop("flags", ["boxes", "points"]), **kwargs, diff --git a/plotly/validators/box/_hovertemplate.py b/plotly/validators/box/_hovertemplate.py index 433ffe3370..2de4ef9bc5 100644 --- a/plotly/validators/box/_hovertemplate.py +++ b/plotly/validators/box/_hovertemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/box/_hovertemplatesrc.py b/plotly/validators/box/_hovertemplatesrc.py index 00962d6e4d..6dc2ecb8fd 100644 --- a/plotly/validators/box/_hovertemplatesrc.py +++ b/plotly/validators/box/_hovertemplatesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/box/_hovertext.py b/plotly/validators/box/_hovertext.py index 95369933b6..15641483ef 100644 --- a/plotly/validators/box/_hovertext.py +++ b/plotly/validators/box/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/box/_hovertextsrc.py b/plotly/validators/box/_hovertextsrc.py index f8c607d2d8..45f725861c 100644 --- a/plotly/validators/box/_hovertextsrc.py +++ b/plotly/validators/box/_hovertextsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/box/_ids.py b/plotly/validators/box/_ids.py index e9f8a69b62..d58e0a1a19 100644 --- a/plotly/validators/box/_ids.py +++ b/plotly/validators/box/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/box/_idssrc.py b/plotly/validators/box/_idssrc.py index ec0c15690a..bbb6cb5f3f 100644 --- a/plotly/validators/box/_idssrc.py +++ b/plotly/validators/box/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/box/_jitter.py b/plotly/validators/box/_jitter.py index 8e0aba4f62..071c9d0f60 100644 --- a/plotly/validators/box/_jitter.py +++ b/plotly/validators/box/_jitter.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class JitterValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/box/_legend.py b/plotly/validators/box/_legend.py index 43533845d8..0c32c9c9d2 100644 --- a/plotly/validators/box/_legend.py +++ b/plotly/validators/box/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/box/_legendgroup.py b/plotly/validators/box/_legendgroup.py index 906ec00bed..47ceb2bb60 100644 --- a/plotly/validators/box/_legendgroup.py +++ b/plotly/validators/box/_legendgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/box/_legendgrouptitle.py b/plotly/validators/box/_legendgrouptitle.py index a296eb102c..597da3514b 100644 --- a/plotly/validators/box/_legendgrouptitle.py +++ b/plotly/validators/box/_legendgrouptitle.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/box/_legendrank.py b/plotly/validators/box/_legendrank.py index 6ea5db74e4..91c09a7723 100644 --- a/plotly/validators/box/_legendrank.py +++ b/plotly/validators/box/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/box/_legendwidth.py b/plotly/validators/box/_legendwidth.py index 299e26e6a8..c7c8178a2f 100644 --- a/plotly/validators/box/_legendwidth.py +++ b/plotly/validators/box/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/box/_line.py b/plotly/validators/box/_line.py index 99579d3c70..76655d8f88 100644 --- a/plotly/validators/box/_line.py +++ b/plotly/validators/box/_line.py @@ -1,20 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/box/_lowerfence.py b/plotly/validators/box/_lowerfence.py index 86103479af..77a42a44c8 100644 --- a/plotly/validators/box/_lowerfence.py +++ b/plotly/validators/box/_lowerfence.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LowerfenceValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/box/_lowerfencesrc.py b/plotly/validators/box/_lowerfencesrc.py index 7f4be5d641..9903d29872 100644 --- a/plotly/validators/box/_lowerfencesrc.py +++ b/plotly/validators/box/_lowerfencesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LowerfencesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/box/_marker.py b/plotly/validators/box/_marker.py index 50d9f7df33..fe5cc949b4 100644 --- a/plotly/validators/box/_marker.py +++ b/plotly/validators/box/_marker.py @@ -1,39 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/box/_mean.py b/plotly/validators/box/_mean.py index d593b4646c..70a20fa64d 100644 --- a/plotly/validators/box/_mean.py +++ b/plotly/validators/box/_mean.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MeanValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/box/_meansrc.py b/plotly/validators/box/_meansrc.py index 1a3d77bb37..64245f4961 100644 --- a/plotly/validators/box/_meansrc.py +++ b/plotly/validators/box/_meansrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MeansrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/box/_median.py b/plotly/validators/box/_median.py index feba0852f7..460f556a9e 100644 --- a/plotly/validators/box/_median.py +++ b/plotly/validators/box/_median.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MedianValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/box/_mediansrc.py b/plotly/validators/box/_mediansrc.py index 4a42d422b3..6cee4ad251 100644 --- a/plotly/validators/box/_mediansrc.py +++ b/plotly/validators/box/_mediansrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MediansrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/box/_meta.py b/plotly/validators/box/_meta.py index fdd345f328..09386bd802 100644 --- a/plotly/validators/box/_meta.py +++ b/plotly/validators/box/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/box/_metasrc.py b/plotly/validators/box/_metasrc.py index 7979c4ccd1..bb3841c626 100644 --- a/plotly/validators/box/_metasrc.py +++ b/plotly/validators/box/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/box/_name.py b/plotly/validators/box/_name.py index 75ce3bd6df..0434833a98 100644 --- a/plotly/validators/box/_name.py +++ b/plotly/validators/box/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/box/_notched.py b/plotly/validators/box/_notched.py index e53fb61542..b324b46944 100644 --- a/plotly/validators/box/_notched.py +++ b/plotly/validators/box/_notched.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NotchedValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/box/_notchspan.py b/plotly/validators/box/_notchspan.py index 57617f3380..900530abee 100644 --- a/plotly/validators/box/_notchspan.py +++ b/plotly/validators/box/_notchspan.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NotchspanValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/box/_notchspansrc.py b/plotly/validators/box/_notchspansrc.py index a26747dcae..7b2330be67 100644 --- a/plotly/validators/box/_notchspansrc.py +++ b/plotly/validators/box/_notchspansrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NotchspansrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/box/_notchwidth.py b/plotly/validators/box/_notchwidth.py index 59b6b21ce1..47412d9b31 100644 --- a/plotly/validators/box/_notchwidth.py +++ b/plotly/validators/box/_notchwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NotchwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 0.5), min=kwargs.pop("min", 0), diff --git a/plotly/validators/box/_offsetgroup.py b/plotly/validators/box/_offsetgroup.py index aff875521c..5e067c0060 100644 --- a/plotly/validators/box/_offsetgroup.py +++ b/plotly/validators/box/_offsetgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OffsetgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/box/_opacity.py b/plotly/validators/box/_opacity.py index 7143e23171..7648fe5dae 100644 --- a/plotly/validators/box/_opacity.py +++ b/plotly/validators/box/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/box/_orientation.py b/plotly/validators/box/_orientation.py index a86b3ff00d..0e8735e1b0 100644 --- a/plotly/validators/box/_orientation.py +++ b/plotly/validators/box/_orientation.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), values=kwargs.pop("values", ["v", "h"]), **kwargs, diff --git a/plotly/validators/box/_pointpos.py b/plotly/validators/box/_pointpos.py index a088c5b4a5..a7a73ab16d 100644 --- a/plotly/validators/box/_pointpos.py +++ b/plotly/validators/box/_pointpos.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PointposValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 2), min=kwargs.pop("min", -2), diff --git a/plotly/validators/box/_q1.py b/plotly/validators/box/_q1.py index 45267966bd..62961c4550 100644 --- a/plotly/validators/box/_q1.py +++ b/plotly/validators/box/_q1.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Q1Validator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/box/_q1src.py b/plotly/validators/box/_q1src.py index 7b097f7f66..a9c930bd13 100644 --- a/plotly/validators/box/_q1src.py +++ b/plotly/validators/box/_q1src.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Q1SrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/box/_q3.py b/plotly/validators/box/_q3.py index bc42bfd882..3cd3155322 100644 --- a/plotly/validators/box/_q3.py +++ b/plotly/validators/box/_q3.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Q3Validator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/box/_q3src.py b/plotly/validators/box/_q3src.py index b9b7ab9608..5c08ed7d03 100644 --- a/plotly/validators/box/_q3src.py +++ b/plotly/validators/box/_q3src.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Q3SrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/box/_quartilemethod.py b/plotly/validators/box/_quartilemethod.py index 59f3c6290c..178547e03b 100644 --- a/plotly/validators/box/_quartilemethod.py +++ b/plotly/validators/box/_quartilemethod.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class QuartilemethodValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["linear", "exclusive", "inclusive"]), **kwargs, diff --git a/plotly/validators/box/_sd.py b/plotly/validators/box/_sd.py index b59d56f52d..7570f2ec85 100644 --- a/plotly/validators/box/_sd.py +++ b/plotly/validators/box/_sd.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SdValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/box/_sdmultiple.py b/plotly/validators/box/_sdmultiple.py index 07d52e0b7f..a50846d3c1 100644 --- a/plotly/validators/box/_sdmultiple.py +++ b/plotly/validators/box/_sdmultiple.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SdmultipleValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/box/_sdsrc.py b/plotly/validators/box/_sdsrc.py index acdc6269d8..b8f8bf6807 100644 --- a/plotly/validators/box/_sdsrc.py +++ b/plotly/validators/box/_sdsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SdsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/box/_selected.py b/plotly/validators/box/_selected.py index 068acc10e9..845c3ed528 100644 --- a/plotly/validators/box/_selected.py +++ b/plotly/validators/box/_selected.py @@ -1,18 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/box/_selectedpoints.py b/plotly/validators/box/_selectedpoints.py index 90c24a218f..fd0c08230f 100644 --- a/plotly/validators/box/_selectedpoints.py +++ b/plotly/validators/box/_selectedpoints.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/box/_showlegend.py b/plotly/validators/box/_showlegend.py index 29c7fe221e..0bed7b322a 100644 --- a/plotly/validators/box/_showlegend.py +++ b/plotly/validators/box/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/box/_showwhiskers.py b/plotly/validators/box/_showwhiskers.py index c4f4f664c2..ac8b284d04 100644 --- a/plotly/validators/box/_showwhiskers.py +++ b/plotly/validators/box/_showwhiskers.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowwhiskersValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/box/_sizemode.py b/plotly/validators/box/_sizemode.py index da6ae123e9..068140bfb0 100644 --- a/plotly/validators/box/_sizemode.py +++ b/plotly/validators/box/_sizemode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["quartiles", "sd"]), **kwargs, diff --git a/plotly/validators/box/_stream.py b/plotly/validators/box/_stream.py index 3a962fb384..9649d0dbcb 100644 --- a/plotly/validators/box/_stream.py +++ b/plotly/validators/box/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/box/_text.py b/plotly/validators/box/_text.py index 322c5add00..1f3f3a5389 100644 --- a/plotly/validators/box/_text.py +++ b/plotly/validators/box/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/box/_textsrc.py b/plotly/validators/box/_textsrc.py index 1d8444ca5d..56a8207243 100644 --- a/plotly/validators/box/_textsrc.py +++ b/plotly/validators/box/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/box/_uid.py b/plotly/validators/box/_uid.py index 8b380346da..9541cfcf74 100644 --- a/plotly/validators/box/_uid.py +++ b/plotly/validators/box/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/box/_uirevision.py b/plotly/validators/box/_uirevision.py index 332c9edb37..27bd9445ad 100644 --- a/plotly/validators/box/_uirevision.py +++ b/plotly/validators/box/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/box/_unselected.py b/plotly/validators/box/_unselected.py index 73be085ef1..68f074b25c 100644 --- a/plotly/validators/box/_unselected.py +++ b/plotly/validators/box/_unselected.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/box/_upperfence.py b/plotly/validators/box/_upperfence.py index febe9470b0..526fd29b4f 100644 --- a/plotly/validators/box/_upperfence.py +++ b/plotly/validators/box/_upperfence.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UpperfenceValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/box/_upperfencesrc.py b/plotly/validators/box/_upperfencesrc.py index fb103b84f8..eadcffdf20 100644 --- a/plotly/validators/box/_upperfencesrc.py +++ b/plotly/validators/box/_upperfencesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UpperfencesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/box/_visible.py b/plotly/validators/box/_visible.py index c6ba2bb6ab..a434a293f8 100644 --- a/plotly/validators/box/_visible.py +++ b/plotly/validators/box/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/box/_whiskerwidth.py b/plotly/validators/box/_whiskerwidth.py index bde5802230..32d088311d 100644 --- a/plotly/validators/box/_whiskerwidth.py +++ b/plotly/validators/box/_whiskerwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WhiskerwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/box/_width.py b/plotly/validators/box/_width.py index 479db4fe82..b5c877922d 100644 --- a/plotly/validators/box/_width.py +++ b/plotly/validators/box/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/box/_x.py b/plotly/validators/box/_x.py index ae2db23717..594e388566 100644 --- a/plotly/validators/box/_x.py +++ b/plotly/validators/box/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/box/_x0.py b/plotly/validators/box/_x0.py index 7a3522b1a4..3287cef827 100644 --- a/plotly/validators/box/_x0.py +++ b/plotly/validators/box/_x0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class X0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/box/_xaxis.py b/plotly/validators/box/_xaxis.py index 1dfe478195..4e2656a309 100644 --- a/plotly/validators/box/_xaxis.py +++ b/plotly/validators/box/_xaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "x"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/box/_xcalendar.py b/plotly/validators/box/_xcalendar.py index 4c6d2c9b3b..790d29467d 100644 --- a/plotly/validators/box/_xcalendar.py +++ b/plotly/validators/box/_xcalendar.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/box/_xhoverformat.py b/plotly/validators/box/_xhoverformat.py index 590afd1c5b..8f24c6ac93 100644 --- a/plotly/validators/box/_xhoverformat.py +++ b/plotly/validators/box/_xhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/box/_xperiod.py b/plotly/validators/box/_xperiod.py index c261a0fed6..aae765846d 100644 --- a/plotly/validators/box/_xperiod.py +++ b/plotly/validators/box/_xperiod.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XperiodValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/box/_xperiod0.py b/plotly/validators/box/_xperiod0.py index 7130a0c523..cac0404df3 100644 --- a/plotly/validators/box/_xperiod0.py +++ b/plotly/validators/box/_xperiod0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Xperiod0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/box/_xperiodalignment.py b/plotly/validators/box/_xperiodalignment.py index 74923b1237..dec5f2041e 100644 --- a/plotly/validators/box/_xperiodalignment.py +++ b/plotly/validators/box/_xperiodalignment.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["start", "middle", "end"]), **kwargs, diff --git a/plotly/validators/box/_xsrc.py b/plotly/validators/box/_xsrc.py index 5313ccb2e1..b894aca7d0 100644 --- a/plotly/validators/box/_xsrc.py +++ b/plotly/validators/box/_xsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/box/_y.py b/plotly/validators/box/_y.py index 5054599dd2..e5193a7982 100644 --- a/plotly/validators/box/_y.py +++ b/plotly/validators/box/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/box/_y0.py b/plotly/validators/box/_y0.py index 8ab218c586..94d5387acd 100644 --- a/plotly/validators/box/_y0.py +++ b/plotly/validators/box/_y0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Y0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/box/_yaxis.py b/plotly/validators/box/_yaxis.py index 1b081a8545..acc4cd30cf 100644 --- a/plotly/validators/box/_yaxis.py +++ b/plotly/validators/box/_yaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "y"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/box/_ycalendar.py b/plotly/validators/box/_ycalendar.py index 65d2a40025..4d2cfaab5f 100644 --- a/plotly/validators/box/_ycalendar.py +++ b/plotly/validators/box/_ycalendar.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/box/_yhoverformat.py b/plotly/validators/box/_yhoverformat.py index da2e1f2751..b4b63ceada 100644 --- a/plotly/validators/box/_yhoverformat.py +++ b/plotly/validators/box/_yhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/box/_yperiod.py b/plotly/validators/box/_yperiod.py index 03a84e4aff..aaf5ae22b2 100644 --- a/plotly/validators/box/_yperiod.py +++ b/plotly/validators/box/_yperiod.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YperiodValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/box/_yperiod0.py b/plotly/validators/box/_yperiod0.py index f8ed1d3892..02acdcba26 100644 --- a/plotly/validators/box/_yperiod0.py +++ b/plotly/validators/box/_yperiod0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Yperiod0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/box/_yperiodalignment.py b/plotly/validators/box/_yperiodalignment.py index 1f7795a211..ac52a43064 100644 --- a/plotly/validators/box/_yperiodalignment.py +++ b/plotly/validators/box/_yperiodalignment.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["start", "middle", "end"]), **kwargs, diff --git a/plotly/validators/box/_ysrc.py b/plotly/validators/box/_ysrc.py index 242d96af5b..49aca54fa1 100644 --- a/plotly/validators/box/_ysrc.py +++ b/plotly/validators/box/_ysrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/box/_zorder.py b/plotly/validators/box/_zorder.py index 87a0623104..4c2e4522a1 100644 --- a/plotly/validators/box/_zorder.py +++ b/plotly/validators/box/_zorder.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZorderValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/box/hoverlabel/__init__.py b/plotly/validators/box/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/box/hoverlabel/__init__.py +++ b/plotly/validators/box/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/box/hoverlabel/_align.py b/plotly/validators/box/hoverlabel/_align.py index d978c54ef9..f5be541ac4 100644 --- a/plotly/validators/box/hoverlabel/_align.py +++ b/plotly/validators/box/hoverlabel/_align.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/box/hoverlabel/_alignsrc.py b/plotly/validators/box/hoverlabel/_alignsrc.py index b62f55c035..093caf4d45 100644 --- a/plotly/validators/box/hoverlabel/_alignsrc.py +++ b/plotly/validators/box/hoverlabel/_alignsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/box/hoverlabel/_bgcolor.py b/plotly/validators/box/hoverlabel/_bgcolor.py index ae3069b690..8195035bc0 100644 --- a/plotly/validators/box/hoverlabel/_bgcolor.py +++ b/plotly/validators/box/hoverlabel/_bgcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/box/hoverlabel/_bgcolorsrc.py b/plotly/validators/box/hoverlabel/_bgcolorsrc.py index f2bd1e329e..7d734900dd 100644 --- a/plotly/validators/box/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/box/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/box/hoverlabel/_bordercolor.py b/plotly/validators/box/hoverlabel/_bordercolor.py index cd10223927..de3f9be151 100644 --- a/plotly/validators/box/hoverlabel/_bordercolor.py +++ b/plotly/validators/box/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/box/hoverlabel/_bordercolorsrc.py b/plotly/validators/box/hoverlabel/_bordercolorsrc.py index e63b525983..0665589b88 100644 --- a/plotly/validators/box/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/box/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/box/hoverlabel/_font.py b/plotly/validators/box/hoverlabel/_font.py index 4710b01d4b..3b8d25f4c8 100644 --- a/plotly/validators/box/hoverlabel/_font.py +++ b/plotly/validators/box/hoverlabel/_font.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/box/hoverlabel/_namelength.py b/plotly/validators/box/hoverlabel/_namelength.py index d1837e9169..90473576a6 100644 --- a/plotly/validators/box/hoverlabel/_namelength.py +++ b/plotly/validators/box/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/box/hoverlabel/_namelengthsrc.py b/plotly/validators/box/hoverlabel/_namelengthsrc.py index c66ff3938b..5ba52c4d9f 100644 --- a/plotly/validators/box/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/box/hoverlabel/_namelengthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/box/hoverlabel/font/__init__.py b/plotly/validators/box/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/box/hoverlabel/font/__init__.py +++ b/plotly/validators/box/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/box/hoverlabel/font/_color.py b/plotly/validators/box/hoverlabel/font/_color.py index 9f2ca27ec1..6804193ee5 100644 --- a/plotly/validators/box/hoverlabel/font/_color.py +++ b/plotly/validators/box/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/box/hoverlabel/font/_colorsrc.py b/plotly/validators/box/hoverlabel/font/_colorsrc.py index 5fc4a7d24d..a06b52b699 100644 --- a/plotly/validators/box/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/box/hoverlabel/font/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/box/hoverlabel/font/_family.py b/plotly/validators/box/hoverlabel/font/_family.py index 31ba24191a..27228a8c88 100644 --- a/plotly/validators/box/hoverlabel/font/_family.py +++ b/plotly/validators/box/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/box/hoverlabel/font/_familysrc.py b/plotly/validators/box/hoverlabel/font/_familysrc.py index 1a73987318..4b6944b6a3 100644 --- a/plotly/validators/box/hoverlabel/font/_familysrc.py +++ b/plotly/validators/box/hoverlabel/font/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/box/hoverlabel/font/_lineposition.py b/plotly/validators/box/hoverlabel/font/_lineposition.py index 6efa962c15..ce0f5b3479 100644 --- a/plotly/validators/box/hoverlabel/font/_lineposition.py +++ b/plotly/validators/box/hoverlabel/font/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/box/hoverlabel/font/_linepositionsrc.py b/plotly/validators/box/hoverlabel/font/_linepositionsrc.py index 9a852f12ef..358246cb53 100644 --- a/plotly/validators/box/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/box/hoverlabel/font/_linepositionsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/box/hoverlabel/font/_shadow.py b/plotly/validators/box/hoverlabel/font/_shadow.py index 28bb8404ea..29e8efc706 100644 --- a/plotly/validators/box/hoverlabel/font/_shadow.py +++ b/plotly/validators/box/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/box/hoverlabel/font/_shadowsrc.py b/plotly/validators/box/hoverlabel/font/_shadowsrc.py index 1b0189b1b9..3655093ab4 100644 --- a/plotly/validators/box/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/box/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/box/hoverlabel/font/_size.py b/plotly/validators/box/hoverlabel/font/_size.py index e2ba458863..05bb505014 100644 --- a/plotly/validators/box/hoverlabel/font/_size.py +++ b/plotly/validators/box/hoverlabel/font/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/box/hoverlabel/font/_sizesrc.py b/plotly/validators/box/hoverlabel/font/_sizesrc.py index 173e4fa679..aa6fd153e9 100644 --- a/plotly/validators/box/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/box/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/box/hoverlabel/font/_style.py b/plotly/validators/box/hoverlabel/font/_style.py index 31fc69bb3e..a9ef69500e 100644 --- a/plotly/validators/box/hoverlabel/font/_style.py +++ b/plotly/validators/box/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/box/hoverlabel/font/_stylesrc.py b/plotly/validators/box/hoverlabel/font/_stylesrc.py index 14462534f7..991c024cd9 100644 --- a/plotly/validators/box/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/box/hoverlabel/font/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/box/hoverlabel/font/_textcase.py b/plotly/validators/box/hoverlabel/font/_textcase.py index 93b0055654..7da0e78a0b 100644 --- a/plotly/validators/box/hoverlabel/font/_textcase.py +++ b/plotly/validators/box/hoverlabel/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/box/hoverlabel/font/_textcasesrc.py b/plotly/validators/box/hoverlabel/font/_textcasesrc.py index 82e4948464..67279c589c 100644 --- a/plotly/validators/box/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/box/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/box/hoverlabel/font/_variant.py b/plotly/validators/box/hoverlabel/font/_variant.py index f196c4496f..232cbe7bec 100644 --- a/plotly/validators/box/hoverlabel/font/_variant.py +++ b/plotly/validators/box/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/box/hoverlabel/font/_variantsrc.py b/plotly/validators/box/hoverlabel/font/_variantsrc.py index be3a298405..74ab23b351 100644 --- a/plotly/validators/box/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/box/hoverlabel/font/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/box/hoverlabel/font/_weight.py b/plotly/validators/box/hoverlabel/font/_weight.py index 5f4cc3aace..b41b60548e 100644 --- a/plotly/validators/box/hoverlabel/font/_weight.py +++ b/plotly/validators/box/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/box/hoverlabel/font/_weightsrc.py b/plotly/validators/box/hoverlabel/font/_weightsrc.py index 06f0d60847..ddf07af23b 100644 --- a/plotly/validators/box/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/box/hoverlabel/font/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/box/legendgrouptitle/__init__.py b/plotly/validators/box/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/box/legendgrouptitle/__init__.py +++ b/plotly/validators/box/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/box/legendgrouptitle/_font.py b/plotly/validators/box/legendgrouptitle/_font.py index c1489caef2..222aa1cc5b 100644 --- a/plotly/validators/box/legendgrouptitle/_font.py +++ b/plotly/validators/box/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/box/legendgrouptitle/_text.py b/plotly/validators/box/legendgrouptitle/_text.py index 9ed226e161..884002e820 100644 --- a/plotly/validators/box/legendgrouptitle/_text.py +++ b/plotly/validators/box/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/box/legendgrouptitle/font/__init__.py b/plotly/validators/box/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/box/legendgrouptitle/font/__init__.py +++ b/plotly/validators/box/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/box/legendgrouptitle/font/_color.py b/plotly/validators/box/legendgrouptitle/font/_color.py index 506ef98a85..eab3a4d348 100644 --- a/plotly/validators/box/legendgrouptitle/font/_color.py +++ b/plotly/validators/box/legendgrouptitle/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/box/legendgrouptitle/font/_family.py b/plotly/validators/box/legendgrouptitle/font/_family.py index 75b138d1e3..5afdb5633f 100644 --- a/plotly/validators/box/legendgrouptitle/font/_family.py +++ b/plotly/validators/box/legendgrouptitle/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/box/legendgrouptitle/font/_lineposition.py b/plotly/validators/box/legendgrouptitle/font/_lineposition.py index cfd688e509..603ca9504f 100644 --- a/plotly/validators/box/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/box/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/box/legendgrouptitle/font/_shadow.py b/plotly/validators/box/legendgrouptitle/font/_shadow.py index 2e642ee86c..f64f02f9e2 100644 --- a/plotly/validators/box/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/box/legendgrouptitle/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/box/legendgrouptitle/font/_size.py b/plotly/validators/box/legendgrouptitle/font/_size.py index 4f67a911cb..46a02a7b31 100644 --- a/plotly/validators/box/legendgrouptitle/font/_size.py +++ b/plotly/validators/box/legendgrouptitle/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/box/legendgrouptitle/font/_style.py b/plotly/validators/box/legendgrouptitle/font/_style.py index 47263ff089..1a3075f258 100644 --- a/plotly/validators/box/legendgrouptitle/font/_style.py +++ b/plotly/validators/box/legendgrouptitle/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/box/legendgrouptitle/font/_textcase.py b/plotly/validators/box/legendgrouptitle/font/_textcase.py index 1faa69bb32..80e9c7b0fe 100644 --- a/plotly/validators/box/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/box/legendgrouptitle/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/box/legendgrouptitle/font/_variant.py b/plotly/validators/box/legendgrouptitle/font/_variant.py index 17c9f79928..7568616fea 100644 --- a/plotly/validators/box/legendgrouptitle/font/_variant.py +++ b/plotly/validators/box/legendgrouptitle/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/box/legendgrouptitle/font/_weight.py b/plotly/validators/box/legendgrouptitle/font/_weight.py index 1085b2e07f..f369c52fbc 100644 --- a/plotly/validators/box/legendgrouptitle/font/_weight.py +++ b/plotly/validators/box/legendgrouptitle/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/box/line/__init__.py b/plotly/validators/box/line/__init__.py index 63a516578b..d49328faac 100644 --- a/plotly/validators/box/line/__init__.py +++ b/plotly/validators/box/line/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._width.WidthValidator", "._color.ColorValidator"] +) diff --git a/plotly/validators/box/line/_color.py b/plotly/validators/box/line/_color.py index e762ea592a..d41ee782d4 100644 --- a/plotly/validators/box/line/_color.py +++ b/plotly/validators/box/line/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/box/line/_width.py b/plotly/validators/box/line/_width.py index 6e61d4e57b..50b53af6c1 100644 --- a/plotly/validators/box/line/_width.py +++ b/plotly/validators/box/line/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/box/marker/__init__.py b/plotly/validators/box/marker/__init__.py index 59cc1848f1..e15653f2f3 100644 --- a/plotly/validators/box/marker/__init__.py +++ b/plotly/validators/box/marker/__init__.py @@ -1,27 +1,16 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._symbol import SymbolValidator - from ._size import SizeValidator - from ._outliercolor import OutliercolorValidator - from ._opacity import OpacityValidator - from ._line import LineValidator - from ._color import ColorValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._symbol.SymbolValidator", + "._size.SizeValidator", + "._outliercolor.OutliercolorValidator", + "._opacity.OpacityValidator", + "._line.LineValidator", + "._color.ColorValidator", + "._angle.AngleValidator", + ], +) diff --git a/plotly/validators/box/marker/_angle.py b/plotly/validators/box/marker/_angle.py index 4e04fbe3d7..19ddf2608a 100644 --- a/plotly/validators/box/marker/_angle.py +++ b/plotly/validators/box/marker/_angle.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AngleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/box/marker/_color.py b/plotly/validators/box/marker/_color.py index eccffc530b..4b7e7f0b64 100644 --- a/plotly/validators/box/marker/_color.py +++ b/plotly/validators/box/marker/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/box/marker/_line.py b/plotly/validators/box/marker/_line.py index c81640f474..8f8bd79f49 100644 --- a/plotly/validators/box/marker/_line.py +++ b/plotly/validators/box/marker/_line.py @@ -1,31 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/box/marker/_opacity.py b/plotly/validators/box/marker/_opacity.py index d5a17b6858..eca9e9c320 100644 --- a/plotly/validators/box/marker/_opacity.py +++ b/plotly/validators/box/marker/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), diff --git a/plotly/validators/box/marker/_outliercolor.py b/plotly/validators/box/marker/_outliercolor.py index e8bdd773c6..2b2c09b846 100644 --- a/plotly/validators/box/marker/_outliercolor.py +++ b/plotly/validators/box/marker/_outliercolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutliercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/box/marker/_size.py b/plotly/validators/box/marker/_size.py index aef23cd6fd..15a4d18994 100644 --- a/plotly/validators/box/marker/_size.py +++ b/plotly/validators/box/marker/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/box/marker/_symbol.py b/plotly/validators/box/marker/_symbol.py index bf3aa141cf..c3dc0704a0 100644 --- a/plotly/validators/box/marker/_symbol.py +++ b/plotly/validators/box/marker/_symbol.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( diff --git a/plotly/validators/box/marker/line/__init__.py b/plotly/validators/box/marker/line/__init__.py index 7778bf581e..e296cd4850 100644 --- a/plotly/validators/box/marker/line/__init__.py +++ b/plotly/validators/box/marker/line/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._width import WidthValidator - from ._outlierwidth import OutlierwidthValidator - from ._outliercolor import OutliercolorValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._width.WidthValidator", + "._outlierwidth.OutlierwidthValidator", + "._outliercolor.OutliercolorValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/box/marker/line/_color.py b/plotly/validators/box/marker/line/_color.py index 5435c5acbb..6297a73fef 100644 --- a/plotly/validators/box/marker/line/_color.py +++ b/plotly/validators/box/marker/line/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/box/marker/line/_outliercolor.py b/plotly/validators/box/marker/line/_outliercolor.py index ee06420559..deb61d73af 100644 --- a/plotly/validators/box/marker/line/_outliercolor.py +++ b/plotly/validators/box/marker/line/_outliercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutliercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/box/marker/line/_outlierwidth.py b/plotly/validators/box/marker/line/_outlierwidth.py index 2f1a9d8b14..c82e4867a0 100644 --- a/plotly/validators/box/marker/line/_outlierwidth.py +++ b/plotly/validators/box/marker/line/_outlierwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlierwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/box/marker/line/_width.py b/plotly/validators/box/marker/line/_width.py index d938bf302e..d0b9634c4c 100644 --- a/plotly/validators/box/marker/line/_width.py +++ b/plotly/validators/box/marker/line/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/box/selected/__init__.py b/plotly/validators/box/selected/__init__.py index e9bdb89f26..20900abc1a 100644 --- a/plotly/validators/box/selected/__init__.py +++ b/plotly/validators/box/selected/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.MarkerValidator"] +) diff --git a/plotly/validators/box/selected/_marker.py b/plotly/validators/box/selected/_marker.py index 35cb47a659..f065d8713a 100644 --- a/plotly/validators/box/selected/_marker.py +++ b/plotly/validators/box/selected/_marker.py @@ -1,21 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/box/selected/marker/__init__.py b/plotly/validators/box/selected/marker/__init__.py index 8c321a38bc..c9c7226fe4 100644 --- a/plotly/validators/box/selected/marker/__init__.py +++ b/plotly/validators/box/selected/marker/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._size.SizeValidator", "._opacity.OpacityValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/box/selected/marker/_color.py b/plotly/validators/box/selected/marker/_color.py index 28b3692ad7..763521431b 100644 --- a/plotly/validators/box/selected/marker/_color.py +++ b/plotly/validators/box/selected/marker/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/box/selected/marker/_opacity.py b/plotly/validators/box/selected/marker/_opacity.py index 7ce8a2dd58..363a33e648 100644 --- a/plotly/validators/box/selected/marker/_opacity.py +++ b/plotly/validators/box/selected/marker/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/box/selected/marker/_size.py b/plotly/validators/box/selected/marker/_size.py index cc58197458..01250f117e 100644 --- a/plotly/validators/box/selected/marker/_size.py +++ b/plotly/validators/box/selected/marker/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/box/stream/__init__.py b/plotly/validators/box/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/box/stream/__init__.py +++ b/plotly/validators/box/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/box/stream/_maxpoints.py b/plotly/validators/box/stream/_maxpoints.py index 874da7def5..8d14821411 100644 --- a/plotly/validators/box/stream/_maxpoints.py +++ b/plotly/validators/box/stream/_maxpoints.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/box/stream/_token.py b/plotly/validators/box/stream/_token.py index 36b10987e4..c1eb950090 100644 --- a/plotly/validators/box/stream/_token.py +++ b/plotly/validators/box/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/box/unselected/__init__.py b/plotly/validators/box/unselected/__init__.py index e9bdb89f26..20900abc1a 100644 --- a/plotly/validators/box/unselected/__init__.py +++ b/plotly/validators/box/unselected/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.MarkerValidator"] +) diff --git a/plotly/validators/box/unselected/_marker.py b/plotly/validators/box/unselected/_marker.py index dff160f815..d19d576df8 100644 --- a/plotly/validators/box/unselected/_marker.py +++ b/plotly/validators/box/unselected/_marker.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/box/unselected/marker/__init__.py b/plotly/validators/box/unselected/marker/__init__.py index 8c321a38bc..c9c7226fe4 100644 --- a/plotly/validators/box/unselected/marker/__init__.py +++ b/plotly/validators/box/unselected/marker/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._size.SizeValidator", "._opacity.OpacityValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/box/unselected/marker/_color.py b/plotly/validators/box/unselected/marker/_color.py index eb7066d46b..1f07241d93 100644 --- a/plotly/validators/box/unselected/marker/_color.py +++ b/plotly/validators/box/unselected/marker/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/box/unselected/marker/_opacity.py b/plotly/validators/box/unselected/marker/_opacity.py index 3773c7044d..ebf310f42a 100644 --- a/plotly/validators/box/unselected/marker/_opacity.py +++ b/plotly/validators/box/unselected/marker/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/box/unselected/marker/_size.py b/plotly/validators/box/unselected/marker/_size.py index cfe9f3a2e0..ace442a988 100644 --- a/plotly/validators/box/unselected/marker/_size.py +++ b/plotly/validators/box/unselected/marker/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/candlestick/__init__.py b/plotly/validators/candlestick/__init__.py index ad4090b7f5..8737b9b824 100644 --- a/plotly/validators/candlestick/__init__.py +++ b/plotly/validators/candlestick/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zorder import ZorderValidator - from ._yhoverformat import YhoverformatValidator - from ._yaxis import YaxisValidator - from ._xsrc import XsrcValidator - from ._xperiodalignment import XperiodalignmentValidator - from ._xperiod0 import Xperiod0Validator - from ._xperiod import XperiodValidator - from ._xhoverformat import XhoverformatValidator - from ._xcalendar import XcalendarValidator - from ._xaxis import XaxisValidator - from ._x import XValidator - from ._whiskerwidth import WhiskerwidthValidator - from ._visible import VisibleValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._textsrc import TextsrcValidator - from ._text import TextValidator - from ._stream import StreamValidator - from ._showlegend import ShowlegendValidator - from ._selectedpoints import SelectedpointsValidator - from ._opensrc import OpensrcValidator - from ._open import OpenValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._lowsrc import LowsrcValidator - from ._low import LowValidator - from ._line import LineValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._increasing import IncreasingValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._highsrc import HighsrcValidator - from ._high import HighValidator - from ._decreasing import DecreasingValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._closesrc import ClosesrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/candlestick/_close.py b/plotly/validators/candlestick/_close.py index aa882c3815..efb367f975 100644 --- a/plotly/validators/candlestick/_close.py +++ b/plotly/validators/candlestick/_close.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CloseValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/candlestick/_closesrc.py b/plotly/validators/candlestick/_closesrc.py index e6b30c635b..ac2c3c3128 100644 --- a/plotly/validators/candlestick/_closesrc.py +++ b/plotly/validators/candlestick/_closesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ClosesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/candlestick/_customdata.py b/plotly/validators/candlestick/_customdata.py index 081b023bea..23f3ec8c65 100644 --- a/plotly/validators/candlestick/_customdata.py +++ b/plotly/validators/candlestick/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/candlestick/_customdatasrc.py b/plotly/validators/candlestick/_customdatasrc.py index 9f1f5962fc..a3f4294d29 100644 --- a/plotly/validators/candlestick/_customdatasrc.py +++ b/plotly/validators/candlestick/_customdatasrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/candlestick/_decreasing.py b/plotly/validators/candlestick/_decreasing.py index bd24046cd3..572fe2f6ce 100644 --- a/plotly/validators/candlestick/_decreasing.py +++ b/plotly/validators/candlestick/_decreasing.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DecreasingValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/candlestick/_high.py b/plotly/validators/candlestick/_high.py index 7875b4ca4a..631c46d1ba 100644 --- a/plotly/validators/candlestick/_high.py +++ b/plotly/validators/candlestick/_high.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HighValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/candlestick/_highsrc.py b/plotly/validators/candlestick/_highsrc.py index cf23bcf8b7..8a71c3a764 100644 --- a/plotly/validators/candlestick/_highsrc.py +++ b/plotly/validators/candlestick/_highsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HighsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/candlestick/_hoverinfo.py b/plotly/validators/candlestick/_hoverinfo.py index 2d674dd6db..1dceac2088 100644 --- a/plotly/validators/candlestick/_hoverinfo.py +++ b/plotly/validators/candlestick/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/candlestick/_hoverinfosrc.py b/plotly/validators/candlestick/_hoverinfosrc.py index 5642695f7c..a82aa03008 100644 --- a/plotly/validators/candlestick/_hoverinfosrc.py +++ b/plotly/validators/candlestick/_hoverinfosrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/candlestick/_hoverlabel.py b/plotly/validators/candlestick/_hoverlabel.py index 274f5c5873..e5a1b4adad 100644 --- a/plotly/validators/candlestick/_hoverlabel.py +++ b/plotly/validators/candlestick/_hoverlabel.py @@ -1,53 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/candlestick/_hovertext.py b/plotly/validators/candlestick/_hovertext.py index 39e7d0b7a4..90ef8e6cfb 100644 --- a/plotly/validators/candlestick/_hovertext.py +++ b/plotly/validators/candlestick/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/candlestick/_hovertextsrc.py b/plotly/validators/candlestick/_hovertextsrc.py index 624a95d843..f6946624bd 100644 --- a/plotly/validators/candlestick/_hovertextsrc.py +++ b/plotly/validators/candlestick/_hovertextsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/candlestick/_ids.py b/plotly/validators/candlestick/_ids.py index 6f32ec6b9b..79f357cf71 100644 --- a/plotly/validators/candlestick/_ids.py +++ b/plotly/validators/candlestick/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/candlestick/_idssrc.py b/plotly/validators/candlestick/_idssrc.py index 2197f6a914..3c94e904ca 100644 --- a/plotly/validators/candlestick/_idssrc.py +++ b/plotly/validators/candlestick/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/candlestick/_increasing.py b/plotly/validators/candlestick/_increasing.py index 7577bd191c..78baf2b91e 100644 --- a/plotly/validators/candlestick/_increasing.py +++ b/plotly/validators/candlestick/_increasing.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IncreasingValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/candlestick/_legend.py b/plotly/validators/candlestick/_legend.py index 899ab2e3f7..5a33393d94 100644 --- a/plotly/validators/candlestick/_legend.py +++ b/plotly/validators/candlestick/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/candlestick/_legendgroup.py b/plotly/validators/candlestick/_legendgroup.py index 849481ed80..1431ab30a7 100644 --- a/plotly/validators/candlestick/_legendgroup.py +++ b/plotly/validators/candlestick/_legendgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/candlestick/_legendgrouptitle.py b/plotly/validators/candlestick/_legendgrouptitle.py index d683367ef3..e7049ddf62 100644 --- a/plotly/validators/candlestick/_legendgrouptitle.py +++ b/plotly/validators/candlestick/_legendgrouptitle.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/candlestick/_legendrank.py b/plotly/validators/candlestick/_legendrank.py index d168f5854b..b62d789e53 100644 --- a/plotly/validators/candlestick/_legendrank.py +++ b/plotly/validators/candlestick/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/candlestick/_legendwidth.py b/plotly/validators/candlestick/_legendwidth.py index f3a6a8ec62..3792283cd9 100644 --- a/plotly/validators/candlestick/_legendwidth.py +++ b/plotly/validators/candlestick/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/candlestick/_line.py b/plotly/validators/candlestick/_line.py index 7f168b6aa5..d719c018ca 100644 --- a/plotly/validators/candlestick/_line.py +++ b/plotly/validators/candlestick/_line.py @@ -1,21 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/candlestick/_low.py b/plotly/validators/candlestick/_low.py index 45a12d0987..6927df9e1b 100644 --- a/plotly/validators/candlestick/_low.py +++ b/plotly/validators/candlestick/_low.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LowValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/candlestick/_lowsrc.py b/plotly/validators/candlestick/_lowsrc.py index 2bdf22746b..0a1ddcfec3 100644 --- a/plotly/validators/candlestick/_lowsrc.py +++ b/plotly/validators/candlestick/_lowsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/candlestick/_meta.py b/plotly/validators/candlestick/_meta.py index b604b85f90..4f181f30b8 100644 --- a/plotly/validators/candlestick/_meta.py +++ b/plotly/validators/candlestick/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/candlestick/_metasrc.py b/plotly/validators/candlestick/_metasrc.py index c33b7e49e1..587bec8a6f 100644 --- a/plotly/validators/candlestick/_metasrc.py +++ b/plotly/validators/candlestick/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/candlestick/_name.py b/plotly/validators/candlestick/_name.py index ae23cc4a5b..239ae39a8a 100644 --- a/plotly/validators/candlestick/_name.py +++ b/plotly/validators/candlestick/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/candlestick/_opacity.py b/plotly/validators/candlestick/_opacity.py index 7ead8254b3..15b2d123d8 100644 --- a/plotly/validators/candlestick/_opacity.py +++ b/plotly/validators/candlestick/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/candlestick/_open.py b/plotly/validators/candlestick/_open.py index d969109af5..3509f9ddae 100644 --- a/plotly/validators/candlestick/_open.py +++ b/plotly/validators/candlestick/_open.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpenValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/candlestick/_opensrc.py b/plotly/validators/candlestick/_opensrc.py index 311dd9633b..a15b901b95 100644 --- a/plotly/validators/candlestick/_opensrc.py +++ b/plotly/validators/candlestick/_opensrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpensrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/candlestick/_selectedpoints.py b/plotly/validators/candlestick/_selectedpoints.py index ec62165565..e85ef59978 100644 --- a/plotly/validators/candlestick/_selectedpoints.py +++ b/plotly/validators/candlestick/_selectedpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/candlestick/_showlegend.py b/plotly/validators/candlestick/_showlegend.py index 7588a298c1..d866ab0c9f 100644 --- a/plotly/validators/candlestick/_showlegend.py +++ b/plotly/validators/candlestick/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/candlestick/_stream.py b/plotly/validators/candlestick/_stream.py index 896c1b9319..cc19790177 100644 --- a/plotly/validators/candlestick/_stream.py +++ b/plotly/validators/candlestick/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/candlestick/_text.py b/plotly/validators/candlestick/_text.py index e5edada321..b03ccf49f4 100644 --- a/plotly/validators/candlestick/_text.py +++ b/plotly/validators/candlestick/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/candlestick/_textsrc.py b/plotly/validators/candlestick/_textsrc.py index 0b76dbf853..cdd9d8fe19 100644 --- a/plotly/validators/candlestick/_textsrc.py +++ b/plotly/validators/candlestick/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/candlestick/_uid.py b/plotly/validators/candlestick/_uid.py index 1668723f08..a937d40620 100644 --- a/plotly/validators/candlestick/_uid.py +++ b/plotly/validators/candlestick/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/candlestick/_uirevision.py b/plotly/validators/candlestick/_uirevision.py index 3c92f0dc6c..756b41ef16 100644 --- a/plotly/validators/candlestick/_uirevision.py +++ b/plotly/validators/candlestick/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/candlestick/_visible.py b/plotly/validators/candlestick/_visible.py index ba9e64239e..e6bf0a7702 100644 --- a/plotly/validators/candlestick/_visible.py +++ b/plotly/validators/candlestick/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/candlestick/_whiskerwidth.py b/plotly/validators/candlestick/_whiskerwidth.py index 3d74487d2c..5734fe75a2 100644 --- a/plotly/validators/candlestick/_whiskerwidth.py +++ b/plotly/validators/candlestick/_whiskerwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WhiskerwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/candlestick/_x.py b/plotly/validators/candlestick/_x.py index e6ebee3138..bca91f0c0b 100644 --- a/plotly/validators/candlestick/_x.py +++ b/plotly/validators/candlestick/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/candlestick/_xaxis.py b/plotly/validators/candlestick/_xaxis.py index 50443d20b9..e22f75f2d9 100644 --- a/plotly/validators/candlestick/_xaxis.py +++ b/plotly/validators/candlestick/_xaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "x"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/candlestick/_xcalendar.py b/plotly/validators/candlestick/_xcalendar.py index 142ec652ac..7c48a6da20 100644 --- a/plotly/validators/candlestick/_xcalendar.py +++ b/plotly/validators/candlestick/_xcalendar.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/candlestick/_xhoverformat.py b/plotly/validators/candlestick/_xhoverformat.py index 2e34c43825..a6100f3e51 100644 --- a/plotly/validators/candlestick/_xhoverformat.py +++ b/plotly/validators/candlestick/_xhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/candlestick/_xperiod.py b/plotly/validators/candlestick/_xperiod.py index 8d3a25fd31..686b83c378 100644 --- a/plotly/validators/candlestick/_xperiod.py +++ b/plotly/validators/candlestick/_xperiod.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XperiodValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/candlestick/_xperiod0.py b/plotly/validators/candlestick/_xperiod0.py index 29e4b848e3..9d6faafe56 100644 --- a/plotly/validators/candlestick/_xperiod0.py +++ b/plotly/validators/candlestick/_xperiod0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Xperiod0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/candlestick/_xperiodalignment.py b/plotly/validators/candlestick/_xperiodalignment.py index 3cd653b2a8..5f9a1fd85b 100644 --- a/plotly/validators/candlestick/_xperiodalignment.py +++ b/plotly/validators/candlestick/_xperiodalignment.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["start", "middle", "end"]), **kwargs, diff --git a/plotly/validators/candlestick/_xsrc.py b/plotly/validators/candlestick/_xsrc.py index acbd1919bb..98513ad9fc 100644 --- a/plotly/validators/candlestick/_xsrc.py +++ b/plotly/validators/candlestick/_xsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/candlestick/_yaxis.py b/plotly/validators/candlestick/_yaxis.py index affd6a4570..625899b5c2 100644 --- a/plotly/validators/candlestick/_yaxis.py +++ b/plotly/validators/candlestick/_yaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "y"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/candlestick/_yhoverformat.py b/plotly/validators/candlestick/_yhoverformat.py index d38420a84d..ed04472586 100644 --- a/plotly/validators/candlestick/_yhoverformat.py +++ b/plotly/validators/candlestick/_yhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/candlestick/_zorder.py b/plotly/validators/candlestick/_zorder.py index cb084aaa50..7fc1fdc6a2 100644 --- a/plotly/validators/candlestick/_zorder.py +++ b/plotly/validators/candlestick/_zorder.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZorderValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/candlestick/decreasing/__init__.py b/plotly/validators/candlestick/decreasing/__init__.py index 07aaa323c2..94446eb305 100644 --- a/plotly/validators/candlestick/decreasing/__init__.py +++ b/plotly/validators/candlestick/decreasing/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._line.LineValidator", "._fillcolor.FillcolorValidator"] +) diff --git a/plotly/validators/candlestick/decreasing/_fillcolor.py b/plotly/validators/candlestick/decreasing/_fillcolor.py index 50f6ac57ab..7258816f1a 100644 --- a/plotly/validators/candlestick/decreasing/_fillcolor.py +++ b/plotly/validators/candlestick/decreasing/_fillcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/candlestick/decreasing/_line.py b/plotly/validators/candlestick/decreasing/_line.py index 1fc4bc295d..796dab7946 100644 --- a/plotly/validators/candlestick/decreasing/_line.py +++ b/plotly/validators/candlestick/decreasing/_line.py @@ -1,22 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/candlestick/decreasing/line/__init__.py b/plotly/validators/candlestick/decreasing/line/__init__.py index 63a516578b..d49328faac 100644 --- a/plotly/validators/candlestick/decreasing/line/__init__.py +++ b/plotly/validators/candlestick/decreasing/line/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._width.WidthValidator", "._color.ColorValidator"] +) diff --git a/plotly/validators/candlestick/decreasing/line/_color.py b/plotly/validators/candlestick/decreasing/line/_color.py index 4a472cba46..19d0f89de3 100644 --- a/plotly/validators/candlestick/decreasing/line/_color.py +++ b/plotly/validators/candlestick/decreasing/line/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/candlestick/decreasing/line/_width.py b/plotly/validators/candlestick/decreasing/line/_width.py index 178378059c..8297c9e09d 100644 --- a/plotly/validators/candlestick/decreasing/line/_width.py +++ b/plotly/validators/candlestick/decreasing/line/_width.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/candlestick/hoverlabel/__init__.py b/plotly/validators/candlestick/hoverlabel/__init__.py index 5504c36e76..f4773f7cdd 100644 --- a/plotly/validators/candlestick/hoverlabel/__init__.py +++ b/plotly/validators/candlestick/hoverlabel/__init__.py @@ -1,33 +1,19 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._split import SplitValidator - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/candlestick/hoverlabel/_align.py b/plotly/validators/candlestick/hoverlabel/_align.py index 9b8e586980..dd4ffa96ca 100644 --- a/plotly/validators/candlestick/hoverlabel/_align.py +++ b/plotly/validators/candlestick/hoverlabel/_align.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/candlestick/hoverlabel/_alignsrc.py b/plotly/validators/candlestick/hoverlabel/_alignsrc.py index ba196f7615..05ec27544d 100644 --- a/plotly/validators/candlestick/hoverlabel/_alignsrc.py +++ b/plotly/validators/candlestick/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/candlestick/hoverlabel/_bgcolor.py b/plotly/validators/candlestick/hoverlabel/_bgcolor.py index ac79bc46a3..90746ff218 100644 --- a/plotly/validators/candlestick/hoverlabel/_bgcolor.py +++ b/plotly/validators/candlestick/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/candlestick/hoverlabel/_bgcolorsrc.py b/plotly/validators/candlestick/hoverlabel/_bgcolorsrc.py index 2fe71ab30b..e5dba111ca 100644 --- a/plotly/validators/candlestick/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/candlestick/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/candlestick/hoverlabel/_bordercolor.py b/plotly/validators/candlestick/hoverlabel/_bordercolor.py index bc694e0ddc..c0be1f467f 100644 --- a/plotly/validators/candlestick/hoverlabel/_bordercolor.py +++ b/plotly/validators/candlestick/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/candlestick/hoverlabel/_bordercolorsrc.py b/plotly/validators/candlestick/hoverlabel/_bordercolorsrc.py index 27ce604d13..51b458dbdf 100644 --- a/plotly/validators/candlestick/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/candlestick/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/candlestick/hoverlabel/_font.py b/plotly/validators/candlestick/hoverlabel/_font.py index 580977fe24..be74f40161 100644 --- a/plotly/validators/candlestick/hoverlabel/_font.py +++ b/plotly/validators/candlestick/hoverlabel/_font.py @@ -1,87 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/candlestick/hoverlabel/_namelength.py b/plotly/validators/candlestick/hoverlabel/_namelength.py index 156b95441a..311ae0c0e6 100644 --- a/plotly/validators/candlestick/hoverlabel/_namelength.py +++ b/plotly/validators/candlestick/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/candlestick/hoverlabel/_namelengthsrc.py b/plotly/validators/candlestick/hoverlabel/_namelengthsrc.py index 1bcb9cffe7..088ab2ead2 100644 --- a/plotly/validators/candlestick/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/candlestick/hoverlabel/_namelengthsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/candlestick/hoverlabel/_split.py b/plotly/validators/candlestick/hoverlabel/_split.py index b8fc33251e..c6eef44249 100644 --- a/plotly/validators/candlestick/hoverlabel/_split.py +++ b/plotly/validators/candlestick/hoverlabel/_split.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SplitValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/candlestick/hoverlabel/font/__init__.py b/plotly/validators/candlestick/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/candlestick/hoverlabel/font/__init__.py +++ b/plotly/validators/candlestick/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/candlestick/hoverlabel/font/_color.py b/plotly/validators/candlestick/hoverlabel/font/_color.py index 596d135e39..9fa4348547 100644 --- a/plotly/validators/candlestick/hoverlabel/font/_color.py +++ b/plotly/validators/candlestick/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/candlestick/hoverlabel/font/_colorsrc.py b/plotly/validators/candlestick/hoverlabel/font/_colorsrc.py index 04bf818a9b..25c565cd94 100644 --- a/plotly/validators/candlestick/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/candlestick/hoverlabel/font/_colorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/candlestick/hoverlabel/font/_family.py b/plotly/validators/candlestick/hoverlabel/font/_family.py index 2c0d989782..62f3d4ee34 100644 --- a/plotly/validators/candlestick/hoverlabel/font/_family.py +++ b/plotly/validators/candlestick/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/candlestick/hoverlabel/font/_familysrc.py b/plotly/validators/candlestick/hoverlabel/font/_familysrc.py index 7aeead762b..5275c98821 100644 --- a/plotly/validators/candlestick/hoverlabel/font/_familysrc.py +++ b/plotly/validators/candlestick/hoverlabel/font/_familysrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/candlestick/hoverlabel/font/_lineposition.py b/plotly/validators/candlestick/hoverlabel/font/_lineposition.py index 68e16a20c7..8a5776ca75 100644 --- a/plotly/validators/candlestick/hoverlabel/font/_lineposition.py +++ b/plotly/validators/candlestick/hoverlabel/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/candlestick/hoverlabel/font/_linepositionsrc.py b/plotly/validators/candlestick/hoverlabel/font/_linepositionsrc.py index b86eab99ae..267be7440f 100644 --- a/plotly/validators/candlestick/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/candlestick/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/candlestick/hoverlabel/font/_shadow.py b/plotly/validators/candlestick/hoverlabel/font/_shadow.py index d959626dc7..977c0fd6df 100644 --- a/plotly/validators/candlestick/hoverlabel/font/_shadow.py +++ b/plotly/validators/candlestick/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/candlestick/hoverlabel/font/_shadowsrc.py b/plotly/validators/candlestick/hoverlabel/font/_shadowsrc.py index 45df55b8c7..7dae932eb0 100644 --- a/plotly/validators/candlestick/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/candlestick/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/candlestick/hoverlabel/font/_size.py b/plotly/validators/candlestick/hoverlabel/font/_size.py index 9e6a1257f3..02c405dbfe 100644 --- a/plotly/validators/candlestick/hoverlabel/font/_size.py +++ b/plotly/validators/candlestick/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/candlestick/hoverlabel/font/_sizesrc.py b/plotly/validators/candlestick/hoverlabel/font/_sizesrc.py index 3c22d6fb15..fe43e35d5e 100644 --- a/plotly/validators/candlestick/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/candlestick/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/candlestick/hoverlabel/font/_style.py b/plotly/validators/candlestick/hoverlabel/font/_style.py index cdfddde345..58a49b7c21 100644 --- a/plotly/validators/candlestick/hoverlabel/font/_style.py +++ b/plotly/validators/candlestick/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/candlestick/hoverlabel/font/_stylesrc.py b/plotly/validators/candlestick/hoverlabel/font/_stylesrc.py index ed3b1c3778..6c08bb3dd2 100644 --- a/plotly/validators/candlestick/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/candlestick/hoverlabel/font/_stylesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/candlestick/hoverlabel/font/_textcase.py b/plotly/validators/candlestick/hoverlabel/font/_textcase.py index a01c4d85a2..9ef6d67703 100644 --- a/plotly/validators/candlestick/hoverlabel/font/_textcase.py +++ b/plotly/validators/candlestick/hoverlabel/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/candlestick/hoverlabel/font/_textcasesrc.py b/plotly/validators/candlestick/hoverlabel/font/_textcasesrc.py index fc566982a5..710dd454f8 100644 --- a/plotly/validators/candlestick/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/candlestick/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/candlestick/hoverlabel/font/_variant.py b/plotly/validators/candlestick/hoverlabel/font/_variant.py index 94dbcf0856..34dd4003c6 100644 --- a/plotly/validators/candlestick/hoverlabel/font/_variant.py +++ b/plotly/validators/candlestick/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/candlestick/hoverlabel/font/_variantsrc.py b/plotly/validators/candlestick/hoverlabel/font/_variantsrc.py index bcb1fd117b..0a48338a9a 100644 --- a/plotly/validators/candlestick/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/candlestick/hoverlabel/font/_variantsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/candlestick/hoverlabel/font/_weight.py b/plotly/validators/candlestick/hoverlabel/font/_weight.py index 7525538684..ca320889cf 100644 --- a/plotly/validators/candlestick/hoverlabel/font/_weight.py +++ b/plotly/validators/candlestick/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/candlestick/hoverlabel/font/_weightsrc.py b/plotly/validators/candlestick/hoverlabel/font/_weightsrc.py index ea7e93201b..e43b13bff2 100644 --- a/plotly/validators/candlestick/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/candlestick/hoverlabel/font/_weightsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/candlestick/increasing/__init__.py b/plotly/validators/candlestick/increasing/__init__.py index 07aaa323c2..94446eb305 100644 --- a/plotly/validators/candlestick/increasing/__init__.py +++ b/plotly/validators/candlestick/increasing/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._line.LineValidator", "._fillcolor.FillcolorValidator"] +) diff --git a/plotly/validators/candlestick/increasing/_fillcolor.py b/plotly/validators/candlestick/increasing/_fillcolor.py index e92c67124c..b7977888bd 100644 --- a/plotly/validators/candlestick/increasing/_fillcolor.py +++ b/plotly/validators/candlestick/increasing/_fillcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/candlestick/increasing/_line.py b/plotly/validators/candlestick/increasing/_line.py index 795d7b268c..9e49c2b5b5 100644 --- a/plotly/validators/candlestick/increasing/_line.py +++ b/plotly/validators/candlestick/increasing/_line.py @@ -1,22 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/candlestick/increasing/line/__init__.py b/plotly/validators/candlestick/increasing/line/__init__.py index 63a516578b..d49328faac 100644 --- a/plotly/validators/candlestick/increasing/line/__init__.py +++ b/plotly/validators/candlestick/increasing/line/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._width.WidthValidator", "._color.ColorValidator"] +) diff --git a/plotly/validators/candlestick/increasing/line/_color.py b/plotly/validators/candlestick/increasing/line/_color.py index 41f12609ab..ad90a994ca 100644 --- a/plotly/validators/candlestick/increasing/line/_color.py +++ b/plotly/validators/candlestick/increasing/line/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/candlestick/increasing/line/_width.py b/plotly/validators/candlestick/increasing/line/_width.py index 81615634b6..da55bc7803 100644 --- a/plotly/validators/candlestick/increasing/line/_width.py +++ b/plotly/validators/candlestick/increasing/line/_width.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/candlestick/legendgrouptitle/__init__.py b/plotly/validators/candlestick/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/candlestick/legendgrouptitle/__init__.py +++ b/plotly/validators/candlestick/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/candlestick/legendgrouptitle/_font.py b/plotly/validators/candlestick/legendgrouptitle/_font.py index 62873f1c2b..e556b327a7 100644 --- a/plotly/validators/candlestick/legendgrouptitle/_font.py +++ b/plotly/validators/candlestick/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/candlestick/legendgrouptitle/_text.py b/plotly/validators/candlestick/legendgrouptitle/_text.py index 0898b7026c..ace330fafc 100644 --- a/plotly/validators/candlestick/legendgrouptitle/_text.py +++ b/plotly/validators/candlestick/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/candlestick/legendgrouptitle/font/__init__.py b/plotly/validators/candlestick/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/candlestick/legendgrouptitle/font/__init__.py +++ b/plotly/validators/candlestick/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/candlestick/legendgrouptitle/font/_color.py b/plotly/validators/candlestick/legendgrouptitle/font/_color.py index 97477e09d6..5a522a5323 100644 --- a/plotly/validators/candlestick/legendgrouptitle/font/_color.py +++ b/plotly/validators/candlestick/legendgrouptitle/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/candlestick/legendgrouptitle/font/_family.py b/plotly/validators/candlestick/legendgrouptitle/font/_family.py index 8ed4dc9a9d..18350214da 100644 --- a/plotly/validators/candlestick/legendgrouptitle/font/_family.py +++ b/plotly/validators/candlestick/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/candlestick/legendgrouptitle/font/_lineposition.py b/plotly/validators/candlestick/legendgrouptitle/font/_lineposition.py index 7abca22903..094b3d6d14 100644 --- a/plotly/validators/candlestick/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/candlestick/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/candlestick/legendgrouptitle/font/_shadow.py b/plotly/validators/candlestick/legendgrouptitle/font/_shadow.py index 0e8d2c3263..43587fd4c6 100644 --- a/plotly/validators/candlestick/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/candlestick/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/candlestick/legendgrouptitle/font/_size.py b/plotly/validators/candlestick/legendgrouptitle/font/_size.py index bef3eea594..eb4891b427 100644 --- a/plotly/validators/candlestick/legendgrouptitle/font/_size.py +++ b/plotly/validators/candlestick/legendgrouptitle/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/candlestick/legendgrouptitle/font/_style.py b/plotly/validators/candlestick/legendgrouptitle/font/_style.py index dc8ae59a18..e6a4ab1e51 100644 --- a/plotly/validators/candlestick/legendgrouptitle/font/_style.py +++ b/plotly/validators/candlestick/legendgrouptitle/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/candlestick/legendgrouptitle/font/_textcase.py b/plotly/validators/candlestick/legendgrouptitle/font/_textcase.py index 19b8710fe1..5861168c7e 100644 --- a/plotly/validators/candlestick/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/candlestick/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/candlestick/legendgrouptitle/font/_variant.py b/plotly/validators/candlestick/legendgrouptitle/font/_variant.py index c785a04e53..4bec3e3c80 100644 --- a/plotly/validators/candlestick/legendgrouptitle/font/_variant.py +++ b/plotly/validators/candlestick/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/candlestick/legendgrouptitle/font/_weight.py b/plotly/validators/candlestick/legendgrouptitle/font/_weight.py index b2eb97d9f5..9108af3658 100644 --- a/plotly/validators/candlestick/legendgrouptitle/font/_weight.py +++ b/plotly/validators/candlestick/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/candlestick/line/__init__.py b/plotly/validators/candlestick/line/__init__.py index 99e75bd271..c61e0d7012 100644 --- a/plotly/validators/candlestick/line/__init__.py +++ b/plotly/validators/candlestick/line/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._width.WidthValidator"] +) diff --git a/plotly/validators/candlestick/line/_width.py b/plotly/validators/candlestick/line/_width.py index c34b2bec85..6b6b672d62 100644 --- a/plotly/validators/candlestick/line/_width.py +++ b/plotly/validators/candlestick/line/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/candlestick/stream/__init__.py b/plotly/validators/candlestick/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/candlestick/stream/__init__.py +++ b/plotly/validators/candlestick/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/candlestick/stream/_maxpoints.py b/plotly/validators/candlestick/stream/_maxpoints.py index 36e63a006b..127d6ab17f 100644 --- a/plotly/validators/candlestick/stream/_maxpoints.py +++ b/plotly/validators/candlestick/stream/_maxpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/candlestick/stream/_token.py b/plotly/validators/candlestick/stream/_token.py index 3f569028c9..2a0a0eeed5 100644 --- a/plotly/validators/candlestick/stream/_token.py +++ b/plotly/validators/candlestick/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/carpet/__init__.py b/plotly/validators/carpet/__init__.py index 93ee44386e..52df60daab 100644 --- a/plotly/validators/carpet/__init__.py +++ b/plotly/validators/carpet/__init__.py @@ -1,87 +1,46 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zorder import ZorderValidator - from ._ysrc import YsrcValidator - from ._yaxis import YaxisValidator - from ._y import YValidator - from ._xsrc import XsrcValidator - from ._xaxis import XaxisValidator - from ._x import XValidator - from ._visible import VisibleValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._stream import StreamValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legend import LegendValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._font import FontValidator - from ._db import DbValidator - from ._da import DaValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._color import ColorValidator - from ._cheaterslope import CheaterslopeValidator - from ._carpet import CarpetValidator - from ._bsrc import BsrcValidator - from ._baxis import BaxisValidator - from ._b0 import B0Validator - from ._b import BValidator - from ._asrc import AsrcValidator - from ._aaxis import AaxisValidator - from ._a0 import A0Validator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/carpet/_a.py b/plotly/validators/carpet/_a.py index f81ae659a9..485820c93c 100644 --- a/plotly/validators/carpet/_a.py +++ b/plotly/validators/carpet/_a.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/_a0.py b/plotly/validators/carpet/_a0.py index 57204e2d74..939f59ee8d 100644 --- a/plotly/validators/carpet/_a0.py +++ b/plotly/validators/carpet/_a0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class A0Validator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/_aaxis.py b/plotly/validators/carpet/_aaxis.py index f482fd8bba..e7e5ffba32 100644 --- a/plotly/validators/carpet/_aaxis.py +++ b/plotly/validators/carpet/_aaxis.py @@ -1,250 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AaxisValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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 - - 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, diff --git a/plotly/validators/carpet/_asrc.py b/plotly/validators/carpet/_asrc.py index f0e213d32f..683ac0cf79 100644 --- a/plotly/validators/carpet/_asrc.py +++ b/plotly/validators/carpet/_asrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/carpet/_b.py b/plotly/validators/carpet/_b.py index 545a72f789..e79d67e730 100644 --- a/plotly/validators/carpet/_b.py +++ b/plotly/validators/carpet/_b.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/_b0.py b/plotly/validators/carpet/_b0.py index 7f6b8166b2..28060745e3 100644 --- a/plotly/validators/carpet/_b0.py +++ b/plotly/validators/carpet/_b0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class B0Validator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/_baxis.py b/plotly/validators/carpet/_baxis.py index dbcc47c632..3573ba11f6 100644 --- a/plotly/validators/carpet/_baxis.py +++ b/plotly/validators/carpet/_baxis.py @@ -1,250 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BaxisValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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 - - 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, diff --git a/plotly/validators/carpet/_bsrc.py b/plotly/validators/carpet/_bsrc.py index f4a216d0fa..b0e192a22b 100644 --- a/plotly/validators/carpet/_bsrc.py +++ b/plotly/validators/carpet/_bsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/carpet/_carpet.py b/plotly/validators/carpet/_carpet.py index e6a2a28435..ebb9810252 100644 --- a/plotly/validators/carpet/_carpet.py +++ b/plotly/validators/carpet/_carpet.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CarpetValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/_cheaterslope.py b/plotly/validators/carpet/_cheaterslope.py index 7b7b726292..cb8b70292b 100644 --- a/plotly/validators/carpet/_cheaterslope.py +++ b/plotly/validators/carpet/_cheaterslope.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CheaterslopeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/_color.py b/plotly/validators/carpet/_color.py index aca2607808..7aea1c13ad 100644 --- a/plotly/validators/carpet/_color.py +++ b/plotly/validators/carpet/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/carpet/_customdata.py b/plotly/validators/carpet/_customdata.py index a52b0e5c34..303c6a760f 100644 --- a/plotly/validators/carpet/_customdata.py +++ b/plotly/validators/carpet/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/_customdatasrc.py b/plotly/validators/carpet/_customdatasrc.py index fba389c4b7..4ccfda785c 100644 --- a/plotly/validators/carpet/_customdatasrc.py +++ b/plotly/validators/carpet/_customdatasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/carpet/_da.py b/plotly/validators/carpet/_da.py index bb81f48428..9d6312203d 100644 --- a/plotly/validators/carpet/_da.py +++ b/plotly/validators/carpet/_da.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DaValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/_db.py b/plotly/validators/carpet/_db.py index 2c8dd15f5d..74663bddb0 100644 --- a/plotly/validators/carpet/_db.py +++ b/plotly/validators/carpet/_db.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DbValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/_font.py b/plotly/validators/carpet/_font.py index 38ec5d817c..07abc3ea6d 100644 --- a/plotly/validators/carpet/_font.py +++ b/plotly/validators/carpet/_font.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/carpet/_ids.py b/plotly/validators/carpet/_ids.py index 76e9824960..27803fe415 100644 --- a/plotly/validators/carpet/_ids.py +++ b/plotly/validators/carpet/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/carpet/_idssrc.py b/plotly/validators/carpet/_idssrc.py index 98e4fb6ae7..3bf23b6fe0 100644 --- a/plotly/validators/carpet/_idssrc.py +++ b/plotly/validators/carpet/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/carpet/_legend.py b/plotly/validators/carpet/_legend.py index 5483d3ce13..5ead9f6670 100644 --- a/plotly/validators/carpet/_legend.py +++ b/plotly/validators/carpet/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/carpet/_legendgrouptitle.py b/plotly/validators/carpet/_legendgrouptitle.py index 6c6a94af66..c53a68df53 100644 --- a/plotly/validators/carpet/_legendgrouptitle.py +++ b/plotly/validators/carpet/_legendgrouptitle.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/carpet/_legendrank.py b/plotly/validators/carpet/_legendrank.py index bbc7fdee7e..8494a64040 100644 --- a/plotly/validators/carpet/_legendrank.py +++ b/plotly/validators/carpet/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/carpet/_legendwidth.py b/plotly/validators/carpet/_legendwidth.py index 76a5fbf857..ccb533ed44 100644 --- a/plotly/validators/carpet/_legendwidth.py +++ b/plotly/validators/carpet/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/carpet/_meta.py b/plotly/validators/carpet/_meta.py index 25296ba83a..1cd78eb8a2 100644 --- a/plotly/validators/carpet/_meta.py +++ b/plotly/validators/carpet/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/carpet/_metasrc.py b/plotly/validators/carpet/_metasrc.py index 441c5d5772..fbac1bdf16 100644 --- a/plotly/validators/carpet/_metasrc.py +++ b/plotly/validators/carpet/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/carpet/_name.py b/plotly/validators/carpet/_name.py index eec35ae608..51e7dbcffa 100644 --- a/plotly/validators/carpet/_name.py +++ b/plotly/validators/carpet/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/carpet/_opacity.py b/plotly/validators/carpet/_opacity.py index bcdb60fee6..11786f0985 100644 --- a/plotly/validators/carpet/_opacity.py +++ b/plotly/validators/carpet/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/carpet/_stream.py b/plotly/validators/carpet/_stream.py index 80138cc999..4a9d1a03d3 100644 --- a/plotly/validators/carpet/_stream.py +++ b/plotly/validators/carpet/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/carpet/_uid.py b/plotly/validators/carpet/_uid.py index c49db6d374..3e1d24f4cf 100644 --- a/plotly/validators/carpet/_uid.py +++ b/plotly/validators/carpet/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/carpet/_uirevision.py b/plotly/validators/carpet/_uirevision.py index a45d4d90a9..86532f001c 100644 --- a/plotly/validators/carpet/_uirevision.py +++ b/plotly/validators/carpet/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/carpet/_visible.py b/plotly/validators/carpet/_visible.py index bc6699a72f..103e447146 100644 --- a/plotly/validators/carpet/_visible.py +++ b/plotly/validators/carpet/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/carpet/_x.py b/plotly/validators/carpet/_x.py index 81e306b227..5425703b32 100644 --- a/plotly/validators/carpet/_x.py +++ b/plotly/validators/carpet/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/carpet/_xaxis.py b/plotly/validators/carpet/_xaxis.py index 22e0c0e934..b801bc9010 100644 --- a/plotly/validators/carpet/_xaxis.py +++ b/plotly/validators/carpet/_xaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "x"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/carpet/_xsrc.py b/plotly/validators/carpet/_xsrc.py index da240ceed3..6cb68e9edc 100644 --- a/plotly/validators/carpet/_xsrc.py +++ b/plotly/validators/carpet/_xsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/carpet/_y.py b/plotly/validators/carpet/_y.py index b626a69ac9..55d33b9b6c 100644 --- a/plotly/validators/carpet/_y.py +++ b/plotly/validators/carpet/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/carpet/_yaxis.py b/plotly/validators/carpet/_yaxis.py index d72408ea60..1acc1a2ec3 100644 --- a/plotly/validators/carpet/_yaxis.py +++ b/plotly/validators/carpet/_yaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "y"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/carpet/_ysrc.py b/plotly/validators/carpet/_ysrc.py index 5f955a124b..b3bc4e9d75 100644 --- a/plotly/validators/carpet/_ysrc.py +++ b/plotly/validators/carpet/_ysrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/carpet/_zorder.py b/plotly/validators/carpet/_zorder.py index 5d719f1f91..8c4936cf98 100644 --- a/plotly/validators/carpet/_zorder.py +++ b/plotly/validators/carpet/_zorder.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZorderValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/__init__.py b/plotly/validators/carpet/aaxis/__init__.py index 5d27db03f9..eb5d615977 100644 --- a/plotly/validators/carpet/aaxis/__init__.py +++ b/plotly/validators/carpet/aaxis/__init__.py @@ -1,129 +1,67 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._type import TypeValidator - from ._title import TitleValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._startlinewidth import StartlinewidthValidator - from ._startlinecolor import StartlinecolorValidator - from ._startline import StartlineValidator - from ._smoothing import SmoothingValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showline import ShowlineValidator - from ._showgrid import ShowgridValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._rangemode import RangemodeValidator - from ._range import RangeValidator - from ._nticks import NticksValidator - from ._minorgridwidth import MinorgridwidthValidator - from ._minorgriddash import MinorgriddashValidator - from ._minorgridcount import MinorgridcountValidator - from ._minorgridcolor import MinorgridcolorValidator - from ._minexponent import MinexponentValidator - from ._linewidth import LinewidthValidator - from ._linecolor import LinecolorValidator - from ._labelsuffix import LabelsuffixValidator - from ._labelprefix import LabelprefixValidator - from ._labelpadding import LabelpaddingValidator - from ._labelalias import LabelaliasValidator - from ._gridwidth import GridwidthValidator - from ._griddash import GriddashValidator - from ._gridcolor import GridcolorValidator - from ._fixedrange import FixedrangeValidator - from ._exponentformat import ExponentformatValidator - from ._endlinewidth import EndlinewidthValidator - from ._endlinecolor import EndlinecolorValidator - from ._endline import EndlineValidator - from ._dtick import DtickValidator - from ._color import ColorValidator - from ._cheatertype import CheatertypeValidator - from ._categoryorder import CategoryorderValidator - from ._categoryarraysrc import CategoryarraysrcValidator - from ._categoryarray import CategoryarrayValidator - from ._autotypenumbers import AutotypenumbersValidator - from ._autorange import AutorangeValidator - from ._arraytick0 import Arraytick0Validator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/carpet/aaxis/_arraydtick.py b/plotly/validators/carpet/aaxis/_arraydtick.py index be8b9e6b66..159d433fe1 100644 --- a/plotly/validators/carpet/aaxis/_arraydtick.py +++ b/plotly/validators/carpet/aaxis/_arraydtick.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArraydtickValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/carpet/aaxis/_arraytick0.py b/plotly/validators/carpet/aaxis/_arraytick0.py index f15e03c5b1..f358b17ea8 100644 --- a/plotly/validators/carpet/aaxis/_arraytick0.py +++ b/plotly/validators/carpet/aaxis/_arraytick0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Arraytick0Validator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/carpet/aaxis/_autorange.py b/plotly/validators/carpet/aaxis/_autorange.py index 642c06f31a..dd45019d24 100644 --- a/plotly/validators/carpet/aaxis/_autorange.py +++ b/plotly/validators/carpet/aaxis/_autorange.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutorangeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "reversed"]), **kwargs, diff --git a/plotly/validators/carpet/aaxis/_autotypenumbers.py b/plotly/validators/carpet/aaxis/_autotypenumbers.py index 9effc861b3..892181edb6 100644 --- a/plotly/validators/carpet/aaxis/_autotypenumbers.py +++ b/plotly/validators/carpet/aaxis/_autotypenumbers.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutotypenumbersValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["convert types", "strict"]), **kwargs, diff --git a/plotly/validators/carpet/aaxis/_categoryarray.py b/plotly/validators/carpet/aaxis/_categoryarray.py index 14ea6b75a7..c7a9f350b7 100644 --- a/plotly/validators/carpet/aaxis/_categoryarray.py +++ b/plotly/validators/carpet/aaxis/_categoryarray.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CategoryarrayValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/_categoryarraysrc.py b/plotly/validators/carpet/aaxis/_categoryarraysrc.py index 1be1defc87..a8b3172373 100644 --- a/plotly/validators/carpet/aaxis/_categoryarraysrc.py +++ b/plotly/validators/carpet/aaxis/_categoryarraysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CategoryarraysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/_categoryorder.py b/plotly/validators/carpet/aaxis/_categoryorder.py index e1f26d06eb..c22c919c45 100644 --- a/plotly/validators/carpet/aaxis/_categoryorder.py +++ b/plotly/validators/carpet/aaxis/_categoryorder.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CategoryorderValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/carpet/aaxis/_cheatertype.py b/plotly/validators/carpet/aaxis/_cheatertype.py index 95fbc67508..349d0d90a5 100644 --- a/plotly/validators/carpet/aaxis/_cheatertype.py +++ b/plotly/validators/carpet/aaxis/_cheatertype.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CheatertypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["index", "value"]), **kwargs, diff --git a/plotly/validators/carpet/aaxis/_color.py b/plotly/validators/carpet/aaxis/_color.py index 7e5daa1100..93c25f7182 100644 --- a/plotly/validators/carpet/aaxis/_color.py +++ b/plotly/validators/carpet/aaxis/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/_dtick.py b/plotly/validators/carpet/aaxis/_dtick.py index c93797800e..9c30f940cc 100644 --- a/plotly/validators/carpet/aaxis/_dtick.py +++ b/plotly/validators/carpet/aaxis/_dtick.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/carpet/aaxis/_endline.py b/plotly/validators/carpet/aaxis/_endline.py index caceb51a63..bb1ab9e44c 100644 --- a/plotly/validators/carpet/aaxis/_endline.py +++ b/plotly/validators/carpet/aaxis/_endline.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EndlineValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/_endlinecolor.py b/plotly/validators/carpet/aaxis/_endlinecolor.py index 4465746c21..39d655e756 100644 --- a/plotly/validators/carpet/aaxis/_endlinecolor.py +++ b/plotly/validators/carpet/aaxis/_endlinecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EndlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/_endlinewidth.py b/plotly/validators/carpet/aaxis/_endlinewidth.py index 90d4ddc754..bc4a53108e 100644 --- a/plotly/validators/carpet/aaxis/_endlinewidth.py +++ b/plotly/validators/carpet/aaxis/_endlinewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EndlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/_exponentformat.py b/plotly/validators/carpet/aaxis/_exponentformat.py index 5ec3f114b0..f761d431eb 100644 --- a/plotly/validators/carpet/aaxis/_exponentformat.py +++ b/plotly/validators/carpet/aaxis/_exponentformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/carpet/aaxis/_fixedrange.py b/plotly/validators/carpet/aaxis/_fixedrange.py index c148da6c80..bf958bde5b 100644 --- a/plotly/validators/carpet/aaxis/_fixedrange.py +++ b/plotly/validators/carpet/aaxis/_fixedrange.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FixedrangeValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/_gridcolor.py b/plotly/validators/carpet/aaxis/_gridcolor.py index fd056931e6..335b99f16c 100644 --- a/plotly/validators/carpet/aaxis/_gridcolor.py +++ b/plotly/validators/carpet/aaxis/_gridcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/_griddash.py b/plotly/validators/carpet/aaxis/_griddash.py index e5aa719beb..c0db341d32 100644 --- a/plotly/validators/carpet/aaxis/_griddash.py +++ b/plotly/validators/carpet/aaxis/_griddash.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GriddashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/carpet/aaxis/_gridwidth.py b/plotly/validators/carpet/aaxis/_gridwidth.py index b5d2199bd6..dc70bbb08e 100644 --- a/plotly/validators/carpet/aaxis/_gridwidth.py +++ b/plotly/validators/carpet/aaxis/_gridwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/carpet/aaxis/_labelalias.py b/plotly/validators/carpet/aaxis/_labelalias.py index 8007dbd5b4..d5aa440850 100644 --- a/plotly/validators/carpet/aaxis/_labelalias.py +++ b/plotly/validators/carpet/aaxis/_labelalias.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/_labelpadding.py b/plotly/validators/carpet/aaxis/_labelpadding.py index 7b5db6ec8a..d9e6a7e102 100644 --- a/plotly/validators/carpet/aaxis/_labelpadding.py +++ b/plotly/validators/carpet/aaxis/_labelpadding.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelpaddingValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/_labelprefix.py b/plotly/validators/carpet/aaxis/_labelprefix.py index c121272d45..ecd8651d61 100644 --- a/plotly/validators/carpet/aaxis/_labelprefix.py +++ b/plotly/validators/carpet/aaxis/_labelprefix.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/_labelsuffix.py b/plotly/validators/carpet/aaxis/_labelsuffix.py index 2d3122cfc1..a824c357ac 100644 --- a/plotly/validators/carpet/aaxis/_labelsuffix.py +++ b/plotly/validators/carpet/aaxis/_labelsuffix.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelsuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/_linecolor.py b/plotly/validators/carpet/aaxis/_linecolor.py index d6df4cf8cd..516c58c109 100644 --- a/plotly/validators/carpet/aaxis/_linecolor.py +++ b/plotly/validators/carpet/aaxis/_linecolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/_linewidth.py b/plotly/validators/carpet/aaxis/_linewidth.py index 79108ec8ba..e881f9ce83 100644 --- a/plotly/validators/carpet/aaxis/_linewidth.py +++ b/plotly/validators/carpet/aaxis/_linewidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/carpet/aaxis/_minexponent.py b/plotly/validators/carpet/aaxis/_minexponent.py index 7b6c5fd267..f3142007a7 100644 --- a/plotly/validators/carpet/aaxis/_minexponent.py +++ b/plotly/validators/carpet/aaxis/_minexponent.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/carpet/aaxis/_minorgridcolor.py b/plotly/validators/carpet/aaxis/_minorgridcolor.py index f15b9cef52..582f0e5910 100644 --- a/plotly/validators/carpet/aaxis/_minorgridcolor.py +++ b/plotly/validators/carpet/aaxis/_minorgridcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinorgridcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/_minorgridcount.py b/plotly/validators/carpet/aaxis/_minorgridcount.py index 2832b1d289..f7ee0b0da3 100644 --- a/plotly/validators/carpet/aaxis/_minorgridcount.py +++ b/plotly/validators/carpet/aaxis/_minorgridcount.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinorgridcountValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/carpet/aaxis/_minorgriddash.py b/plotly/validators/carpet/aaxis/_minorgriddash.py index e6b36727aa..ed03702333 100644 --- a/plotly/validators/carpet/aaxis/_minorgriddash.py +++ b/plotly/validators/carpet/aaxis/_minorgriddash.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinorgriddashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/carpet/aaxis/_minorgridwidth.py b/plotly/validators/carpet/aaxis/_minorgridwidth.py index 938ab1547a..82d550d6c9 100644 --- a/plotly/validators/carpet/aaxis/_minorgridwidth.py +++ b/plotly/validators/carpet/aaxis/_minorgridwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinorgridwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/carpet/aaxis/_nticks.py b/plotly/validators/carpet/aaxis/_nticks.py index 7d2fbca303..2ec4f0b32c 100644 --- a/plotly/validators/carpet/aaxis/_nticks.py +++ b/plotly/validators/carpet/aaxis/_nticks.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/carpet/aaxis/_range.py b/plotly/validators/carpet/aaxis/_range.py index 126ecae738..58f2afec60 100644 --- a/plotly/validators/carpet/aaxis/_range.py +++ b/plotly/validators/carpet/aaxis/_range.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/carpet/aaxis/_rangemode.py b/plotly/validators/carpet/aaxis/_rangemode.py index 8e09dbd3aa..0fdea4d0e3 100644 --- a/plotly/validators/carpet/aaxis/_rangemode.py +++ b/plotly/validators/carpet/aaxis/_rangemode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RangemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "tozero", "nonnegative"]), **kwargs, diff --git a/plotly/validators/carpet/aaxis/_separatethousands.py b/plotly/validators/carpet/aaxis/_separatethousands.py index 50e4d8ad4c..56ae907aa1 100644 --- a/plotly/validators/carpet/aaxis/_separatethousands.py +++ b/plotly/validators/carpet/aaxis/_separatethousands.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/_showexponent.py b/plotly/validators/carpet/aaxis/_showexponent.py index 8085450d39..4b63102d00 100644 --- a/plotly/validators/carpet/aaxis/_showexponent.py +++ b/plotly/validators/carpet/aaxis/_showexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/carpet/aaxis/_showgrid.py b/plotly/validators/carpet/aaxis/_showgrid.py index 0d3587c153..06205ba36a 100644 --- a/plotly/validators/carpet/aaxis/_showgrid.py +++ b/plotly/validators/carpet/aaxis/_showgrid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/_showline.py b/plotly/validators/carpet/aaxis/_showline.py index b94d0f8f93..f5463ceaa7 100644 --- a/plotly/validators/carpet/aaxis/_showline.py +++ b/plotly/validators/carpet/aaxis/_showline.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/_showticklabels.py b/plotly/validators/carpet/aaxis/_showticklabels.py index 64ff3879b4..6e2348acb6 100644 --- a/plotly/validators/carpet/aaxis/_showticklabels.py +++ b/plotly/validators/carpet/aaxis/_showticklabels.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["start", "end", "both", "none"]), **kwargs, diff --git a/plotly/validators/carpet/aaxis/_showtickprefix.py b/plotly/validators/carpet/aaxis/_showtickprefix.py index 1e60df9d88..f2be560b80 100644 --- a/plotly/validators/carpet/aaxis/_showtickprefix.py +++ b/plotly/validators/carpet/aaxis/_showtickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/carpet/aaxis/_showticksuffix.py b/plotly/validators/carpet/aaxis/_showticksuffix.py index 402d700eff..31da99b189 100644 --- a/plotly/validators/carpet/aaxis/_showticksuffix.py +++ b/plotly/validators/carpet/aaxis/_showticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/carpet/aaxis/_smoothing.py b/plotly/validators/carpet/aaxis/_smoothing.py index 1a2fa736ea..2e647b73bd 100644 --- a/plotly/validators/carpet/aaxis/_smoothing.py +++ b/plotly/validators/carpet/aaxis/_smoothing.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SmoothingValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1.3), min=kwargs.pop("min", 0), diff --git a/plotly/validators/carpet/aaxis/_startline.py b/plotly/validators/carpet/aaxis/_startline.py index 285ae6dcb9..086abbc0a8 100644 --- a/plotly/validators/carpet/aaxis/_startline.py +++ b/plotly/validators/carpet/aaxis/_startline.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StartlineValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/_startlinecolor.py b/plotly/validators/carpet/aaxis/_startlinecolor.py index 51db824e77..59751f9f96 100644 --- a/plotly/validators/carpet/aaxis/_startlinecolor.py +++ b/plotly/validators/carpet/aaxis/_startlinecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StartlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/_startlinewidth.py b/plotly/validators/carpet/aaxis/_startlinewidth.py index b1da9a35dc..ab1b9a3856 100644 --- a/plotly/validators/carpet/aaxis/_startlinewidth.py +++ b/plotly/validators/carpet/aaxis/_startlinewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StartlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/_tick0.py b/plotly/validators/carpet/aaxis/_tick0.py index 92306c27b3..fa55295e52 100644 --- a/plotly/validators/carpet/aaxis/_tick0.py +++ b/plotly/validators/carpet/aaxis/_tick0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/carpet/aaxis/_tickangle.py b/plotly/validators/carpet/aaxis/_tickangle.py index 1b01919ce7..755da46dc7 100644 --- a/plotly/validators/carpet/aaxis/_tickangle.py +++ b/plotly/validators/carpet/aaxis/_tickangle.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/_tickfont.py b/plotly/validators/carpet/aaxis/_tickfont.py index 8b1b185788..1247976c89 100644 --- a/plotly/validators/carpet/aaxis/_tickfont.py +++ b/plotly/validators/carpet/aaxis/_tickfont.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/carpet/aaxis/_tickformat.py b/plotly/validators/carpet/aaxis/_tickformat.py index 98c9e26318..b9c8cf93e9 100644 --- a/plotly/validators/carpet/aaxis/_tickformat.py +++ b/plotly/validators/carpet/aaxis/_tickformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/_tickformatstopdefaults.py b/plotly/validators/carpet/aaxis/_tickformatstopdefaults.py index 127edaa141..20bc381ca5 100644 --- a/plotly/validators/carpet/aaxis/_tickformatstopdefaults.py +++ b/plotly/validators/carpet/aaxis/_tickformatstopdefaults.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/carpet/aaxis/_tickformatstops.py b/plotly/validators/carpet/aaxis/_tickformatstops.py index 3ea7958566..6b14e0f8c0 100644 --- a/plotly/validators/carpet/aaxis/_tickformatstops.py +++ b/plotly/validators/carpet/aaxis/_tickformatstops.py @@ -1,50 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/carpet/aaxis/_tickmode.py b/plotly/validators/carpet/aaxis/_tickmode.py index 41e2de0476..dc71d1da02 100644 --- a/plotly/validators/carpet/aaxis/_tickmode.py +++ b/plotly/validators/carpet/aaxis/_tickmode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["linear", "array"]), **kwargs, diff --git a/plotly/validators/carpet/aaxis/_tickprefix.py b/plotly/validators/carpet/aaxis/_tickprefix.py index e574efcb3a..d43d873274 100644 --- a/plotly/validators/carpet/aaxis/_tickprefix.py +++ b/plotly/validators/carpet/aaxis/_tickprefix.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/_ticksuffix.py b/plotly/validators/carpet/aaxis/_ticksuffix.py index 6fe0dc03c9..e7e264e49c 100644 --- a/plotly/validators/carpet/aaxis/_ticksuffix.py +++ b/plotly/validators/carpet/aaxis/_ticksuffix.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/_ticktext.py b/plotly/validators/carpet/aaxis/_ticktext.py index 934224f2a0..00aa7bfb0c 100644 --- a/plotly/validators/carpet/aaxis/_ticktext.py +++ b/plotly/validators/carpet/aaxis/_ticktext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/_ticktextsrc.py b/plotly/validators/carpet/aaxis/_ticktextsrc.py index 1a49ad59d8..6f6076ea6d 100644 --- a/plotly/validators/carpet/aaxis/_ticktextsrc.py +++ b/plotly/validators/carpet/aaxis/_ticktextsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/_tickvals.py b/plotly/validators/carpet/aaxis/_tickvals.py index bd8be33270..79abc5eacb 100644 --- a/plotly/validators/carpet/aaxis/_tickvals.py +++ b/plotly/validators/carpet/aaxis/_tickvals.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/_tickvalssrc.py b/plotly/validators/carpet/aaxis/_tickvalssrc.py index 9d50850b59..1c3f2172b0 100644 --- a/plotly/validators/carpet/aaxis/_tickvalssrc.py +++ b/plotly/validators/carpet/aaxis/_tickvalssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/_title.py b/plotly/validators/carpet/aaxis/_title.py index c8675919df..b6772fb714 100644 --- a/plotly/validators/carpet/aaxis/_title.py +++ b/plotly/validators/carpet/aaxis/_title.py @@ -1,22 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/carpet/aaxis/_type.py b/plotly/validators/carpet/aaxis/_type.py index 4cc5942654..82ae2fb8cb 100644 --- a/plotly/validators/carpet/aaxis/_type.py +++ b/plotly/validators/carpet/aaxis/_type.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["-", "linear", "date", "category"]), **kwargs, diff --git a/plotly/validators/carpet/aaxis/tickfont/__init__.py b/plotly/validators/carpet/aaxis/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/carpet/aaxis/tickfont/__init__.py +++ b/plotly/validators/carpet/aaxis/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/carpet/aaxis/tickfont/_color.py b/plotly/validators/carpet/aaxis/tickfont/_color.py index cf0f227aa3..1429c36751 100644 --- a/plotly/validators/carpet/aaxis/tickfont/_color.py +++ b/plotly/validators/carpet/aaxis/tickfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/tickfont/_family.py b/plotly/validators/carpet/aaxis/tickfont/_family.py index 68eada5366..e9f41c2480 100644 --- a/plotly/validators/carpet/aaxis/tickfont/_family.py +++ b/plotly/validators/carpet/aaxis/tickfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/carpet/aaxis/tickfont/_lineposition.py b/plotly/validators/carpet/aaxis/tickfont/_lineposition.py index 0de8af7229..3920ce5574 100644 --- a/plotly/validators/carpet/aaxis/tickfont/_lineposition.py +++ b/plotly/validators/carpet/aaxis/tickfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/carpet/aaxis/tickfont/_shadow.py b/plotly/validators/carpet/aaxis/tickfont/_shadow.py index e4e8aa733c..6165c95e9b 100644 --- a/plotly/validators/carpet/aaxis/tickfont/_shadow.py +++ b/plotly/validators/carpet/aaxis/tickfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/tickfont/_size.py b/plotly/validators/carpet/aaxis/tickfont/_size.py index cc3022043d..6913912d2f 100644 --- a/plotly/validators/carpet/aaxis/tickfont/_size.py +++ b/plotly/validators/carpet/aaxis/tickfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/carpet/aaxis/tickfont/_style.py b/plotly/validators/carpet/aaxis/tickfont/_style.py index 41cec4af04..4a5161257b 100644 --- a/plotly/validators/carpet/aaxis/tickfont/_style.py +++ b/plotly/validators/carpet/aaxis/tickfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/carpet/aaxis/tickfont/_textcase.py b/plotly/validators/carpet/aaxis/tickfont/_textcase.py index ed3ad9a0d2..da0eae6d54 100644 --- a/plotly/validators/carpet/aaxis/tickfont/_textcase.py +++ b/plotly/validators/carpet/aaxis/tickfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/carpet/aaxis/tickfont/_variant.py b/plotly/validators/carpet/aaxis/tickfont/_variant.py index f5870c35c3..68ac7b4219 100644 --- a/plotly/validators/carpet/aaxis/tickfont/_variant.py +++ b/plotly/validators/carpet/aaxis/tickfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/carpet/aaxis/tickfont/_weight.py b/plotly/validators/carpet/aaxis/tickfont/_weight.py index 6bfafb5029..afb782820d 100644 --- a/plotly/validators/carpet/aaxis/tickfont/_weight.py +++ b/plotly/validators/carpet/aaxis/tickfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/carpet/aaxis/tickformatstop/__init__.py b/plotly/validators/carpet/aaxis/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/carpet/aaxis/tickformatstop/__init__.py +++ b/plotly/validators/carpet/aaxis/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/carpet/aaxis/tickformatstop/_dtickrange.py b/plotly/validators/carpet/aaxis/tickformatstop/_dtickrange.py index 7d0756cf92..2ab1e4d43a 100644 --- a/plotly/validators/carpet/aaxis/tickformatstop/_dtickrange.py +++ b/plotly/validators/carpet/aaxis/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/carpet/aaxis/tickformatstop/_enabled.py b/plotly/validators/carpet/aaxis/tickformatstop/_enabled.py index 428a0d524f..d8c86ff8f9 100644 --- a/plotly/validators/carpet/aaxis/tickformatstop/_enabled.py +++ b/plotly/validators/carpet/aaxis/tickformatstop/_enabled.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/tickformatstop/_name.py b/plotly/validators/carpet/aaxis/tickformatstop/_name.py index 5480115316..edd1ba7ccc 100644 --- a/plotly/validators/carpet/aaxis/tickformatstop/_name.py +++ b/plotly/validators/carpet/aaxis/tickformatstop/_name.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/tickformatstop/_templateitemname.py b/plotly/validators/carpet/aaxis/tickformatstop/_templateitemname.py index 45f098d8aa..f05c855ca7 100644 --- a/plotly/validators/carpet/aaxis/tickformatstop/_templateitemname.py +++ b/plotly/validators/carpet/aaxis/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/tickformatstop/_value.py b/plotly/validators/carpet/aaxis/tickformatstop/_value.py index eba33d8c03..05401d569e 100644 --- a/plotly/validators/carpet/aaxis/tickformatstop/_value.py +++ b/plotly/validators/carpet/aaxis/tickformatstop/_value.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/title/__init__.py b/plotly/validators/carpet/aaxis/title/__init__.py index ff2ee4cb29..5a003b67cd 100644 --- a/plotly/validators/carpet/aaxis/title/__init__.py +++ b/plotly/validators/carpet/aaxis/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._offset.OffsetValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/carpet/aaxis/title/_font.py b/plotly/validators/carpet/aaxis/title/_font.py index 9de2ef7ac5..941b0543ba 100644 --- a/plotly/validators/carpet/aaxis/title/_font.py +++ b/plotly/validators/carpet/aaxis/title/_font.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/carpet/aaxis/title/_offset.py b/plotly/validators/carpet/aaxis/title/_offset.py index e2d8bf052f..9dadffe5b9 100644 --- a/plotly/validators/carpet/aaxis/title/_offset.py +++ b/plotly/validators/carpet/aaxis/title/_offset.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OffsetValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/title/_text.py b/plotly/validators/carpet/aaxis/title/_text.py index 1042ef0d18..a5fb17980b 100644 --- a/plotly/validators/carpet/aaxis/title/_text.py +++ b/plotly/validators/carpet/aaxis/title/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/title/font/__init__.py b/plotly/validators/carpet/aaxis/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/carpet/aaxis/title/font/__init__.py +++ b/plotly/validators/carpet/aaxis/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/carpet/aaxis/title/font/_color.py b/plotly/validators/carpet/aaxis/title/font/_color.py index 39c81ce2c7..64b40f073c 100644 --- a/plotly/validators/carpet/aaxis/title/font/_color.py +++ b/plotly/validators/carpet/aaxis/title/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/title/font/_family.py b/plotly/validators/carpet/aaxis/title/font/_family.py index ba1331070a..526912d999 100644 --- a/plotly/validators/carpet/aaxis/title/font/_family.py +++ b/plotly/validators/carpet/aaxis/title/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/carpet/aaxis/title/font/_lineposition.py b/plotly/validators/carpet/aaxis/title/font/_lineposition.py index 7a128d3ed3..03e7af8957 100644 --- a/plotly/validators/carpet/aaxis/title/font/_lineposition.py +++ b/plotly/validators/carpet/aaxis/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/carpet/aaxis/title/font/_shadow.py b/plotly/validators/carpet/aaxis/title/font/_shadow.py index 1a8dc4aaa9..3e9e3cf137 100644 --- a/plotly/validators/carpet/aaxis/title/font/_shadow.py +++ b/plotly/validators/carpet/aaxis/title/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/aaxis/title/font/_size.py b/plotly/validators/carpet/aaxis/title/font/_size.py index d68e16cea5..4d184c0856 100644 --- a/plotly/validators/carpet/aaxis/title/font/_size.py +++ b/plotly/validators/carpet/aaxis/title/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/carpet/aaxis/title/font/_style.py b/plotly/validators/carpet/aaxis/title/font/_style.py index e164229bd3..300a474e37 100644 --- a/plotly/validators/carpet/aaxis/title/font/_style.py +++ b/plotly/validators/carpet/aaxis/title/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/carpet/aaxis/title/font/_textcase.py b/plotly/validators/carpet/aaxis/title/font/_textcase.py index 456c3db7e4..3724f29cd5 100644 --- a/plotly/validators/carpet/aaxis/title/font/_textcase.py +++ b/plotly/validators/carpet/aaxis/title/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/carpet/aaxis/title/font/_variant.py b/plotly/validators/carpet/aaxis/title/font/_variant.py index 02bd955e89..0db6a43b73 100644 --- a/plotly/validators/carpet/aaxis/title/font/_variant.py +++ b/plotly/validators/carpet/aaxis/title/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/carpet/aaxis/title/font/_weight.py b/plotly/validators/carpet/aaxis/title/font/_weight.py index 24f95f0aae..4671767488 100644 --- a/plotly/validators/carpet/aaxis/title/font/_weight.py +++ b/plotly/validators/carpet/aaxis/title/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/carpet/baxis/__init__.py b/plotly/validators/carpet/baxis/__init__.py index 5d27db03f9..eb5d615977 100644 --- a/plotly/validators/carpet/baxis/__init__.py +++ b/plotly/validators/carpet/baxis/__init__.py @@ -1,129 +1,67 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._type import TypeValidator - from ._title import TitleValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._startlinewidth import StartlinewidthValidator - from ._startlinecolor import StartlinecolorValidator - from ._startline import StartlineValidator - from ._smoothing import SmoothingValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showline import ShowlineValidator - from ._showgrid import ShowgridValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._rangemode import RangemodeValidator - from ._range import RangeValidator - from ._nticks import NticksValidator - from ._minorgridwidth import MinorgridwidthValidator - from ._minorgriddash import MinorgriddashValidator - from ._minorgridcount import MinorgridcountValidator - from ._minorgridcolor import MinorgridcolorValidator - from ._minexponent import MinexponentValidator - from ._linewidth import LinewidthValidator - from ._linecolor import LinecolorValidator - from ._labelsuffix import LabelsuffixValidator - from ._labelprefix import LabelprefixValidator - from ._labelpadding import LabelpaddingValidator - from ._labelalias import LabelaliasValidator - from ._gridwidth import GridwidthValidator - from ._griddash import GriddashValidator - from ._gridcolor import GridcolorValidator - from ._fixedrange import FixedrangeValidator - from ._exponentformat import ExponentformatValidator - from ._endlinewidth import EndlinewidthValidator - from ._endlinecolor import EndlinecolorValidator - from ._endline import EndlineValidator - from ._dtick import DtickValidator - from ._color import ColorValidator - from ._cheatertype import CheatertypeValidator - from ._categoryorder import CategoryorderValidator - from ._categoryarraysrc import CategoryarraysrcValidator - from ._categoryarray import CategoryarrayValidator - from ._autotypenumbers import AutotypenumbersValidator - from ._autorange import AutorangeValidator - from ._arraytick0 import Arraytick0Validator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/carpet/baxis/_arraydtick.py b/plotly/validators/carpet/baxis/_arraydtick.py index 797feb0577..49042cbb34 100644 --- a/plotly/validators/carpet/baxis/_arraydtick.py +++ b/plotly/validators/carpet/baxis/_arraydtick.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArraydtickValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/carpet/baxis/_arraytick0.py b/plotly/validators/carpet/baxis/_arraytick0.py index dbdafa0185..44b800d598 100644 --- a/plotly/validators/carpet/baxis/_arraytick0.py +++ b/plotly/validators/carpet/baxis/_arraytick0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Arraytick0Validator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/carpet/baxis/_autorange.py b/plotly/validators/carpet/baxis/_autorange.py index 51d366028a..74e73a58df 100644 --- a/plotly/validators/carpet/baxis/_autorange.py +++ b/plotly/validators/carpet/baxis/_autorange.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutorangeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "reversed"]), **kwargs, diff --git a/plotly/validators/carpet/baxis/_autotypenumbers.py b/plotly/validators/carpet/baxis/_autotypenumbers.py index 10a7e7613a..76e0a7a4de 100644 --- a/plotly/validators/carpet/baxis/_autotypenumbers.py +++ b/plotly/validators/carpet/baxis/_autotypenumbers.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutotypenumbersValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["convert types", "strict"]), **kwargs, diff --git a/plotly/validators/carpet/baxis/_categoryarray.py b/plotly/validators/carpet/baxis/_categoryarray.py index 7d8cdb5160..3e44bf08af 100644 --- a/plotly/validators/carpet/baxis/_categoryarray.py +++ b/plotly/validators/carpet/baxis/_categoryarray.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CategoryarrayValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/_categoryarraysrc.py b/plotly/validators/carpet/baxis/_categoryarraysrc.py index f44c1ae255..ec5ec053f3 100644 --- a/plotly/validators/carpet/baxis/_categoryarraysrc.py +++ b/plotly/validators/carpet/baxis/_categoryarraysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CategoryarraysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/_categoryorder.py b/plotly/validators/carpet/baxis/_categoryorder.py index f50246bab8..0d45a15677 100644 --- a/plotly/validators/carpet/baxis/_categoryorder.py +++ b/plotly/validators/carpet/baxis/_categoryorder.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CategoryorderValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/carpet/baxis/_cheatertype.py b/plotly/validators/carpet/baxis/_cheatertype.py index 0a72d8e86d..6270879362 100644 --- a/plotly/validators/carpet/baxis/_cheatertype.py +++ b/plotly/validators/carpet/baxis/_cheatertype.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CheatertypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["index", "value"]), **kwargs, diff --git a/plotly/validators/carpet/baxis/_color.py b/plotly/validators/carpet/baxis/_color.py index 3159ac9940..6c9c876c7c 100644 --- a/plotly/validators/carpet/baxis/_color.py +++ b/plotly/validators/carpet/baxis/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/_dtick.py b/plotly/validators/carpet/baxis/_dtick.py index d0b8516dc5..2017aee0d0 100644 --- a/plotly/validators/carpet/baxis/_dtick.py +++ b/plotly/validators/carpet/baxis/_dtick.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/carpet/baxis/_endline.py b/plotly/validators/carpet/baxis/_endline.py index c4bb0d4b54..5ca9766668 100644 --- a/plotly/validators/carpet/baxis/_endline.py +++ b/plotly/validators/carpet/baxis/_endline.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EndlineValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/_endlinecolor.py b/plotly/validators/carpet/baxis/_endlinecolor.py index 0643dd54d1..35d040f123 100644 --- a/plotly/validators/carpet/baxis/_endlinecolor.py +++ b/plotly/validators/carpet/baxis/_endlinecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EndlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/_endlinewidth.py b/plotly/validators/carpet/baxis/_endlinewidth.py index 5f519dbc4e..40fb3b0bd0 100644 --- a/plotly/validators/carpet/baxis/_endlinewidth.py +++ b/plotly/validators/carpet/baxis/_endlinewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EndlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/_exponentformat.py b/plotly/validators/carpet/baxis/_exponentformat.py index c501d567c0..6cf54b2629 100644 --- a/plotly/validators/carpet/baxis/_exponentformat.py +++ b/plotly/validators/carpet/baxis/_exponentformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/carpet/baxis/_fixedrange.py b/plotly/validators/carpet/baxis/_fixedrange.py index 43fb67c7bd..05fd70f9fb 100644 --- a/plotly/validators/carpet/baxis/_fixedrange.py +++ b/plotly/validators/carpet/baxis/_fixedrange.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FixedrangeValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/_gridcolor.py b/plotly/validators/carpet/baxis/_gridcolor.py index 385571f72d..9deb9e74d0 100644 --- a/plotly/validators/carpet/baxis/_gridcolor.py +++ b/plotly/validators/carpet/baxis/_gridcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/_griddash.py b/plotly/validators/carpet/baxis/_griddash.py index da58807f1f..2d7edad0f3 100644 --- a/plotly/validators/carpet/baxis/_griddash.py +++ b/plotly/validators/carpet/baxis/_griddash.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GriddashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/carpet/baxis/_gridwidth.py b/plotly/validators/carpet/baxis/_gridwidth.py index ef1dc87253..6008b3d35d 100644 --- a/plotly/validators/carpet/baxis/_gridwidth.py +++ b/plotly/validators/carpet/baxis/_gridwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/carpet/baxis/_labelalias.py b/plotly/validators/carpet/baxis/_labelalias.py index 053e432e02..d56d355a88 100644 --- a/plotly/validators/carpet/baxis/_labelalias.py +++ b/plotly/validators/carpet/baxis/_labelalias.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/_labelpadding.py b/plotly/validators/carpet/baxis/_labelpadding.py index de9e4dce74..2231c1ad49 100644 --- a/plotly/validators/carpet/baxis/_labelpadding.py +++ b/plotly/validators/carpet/baxis/_labelpadding.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelpaddingValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/_labelprefix.py b/plotly/validators/carpet/baxis/_labelprefix.py index f140983213..4f06a67fa4 100644 --- a/plotly/validators/carpet/baxis/_labelprefix.py +++ b/plotly/validators/carpet/baxis/_labelprefix.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/_labelsuffix.py b/plotly/validators/carpet/baxis/_labelsuffix.py index f23f212fc7..10862f0782 100644 --- a/plotly/validators/carpet/baxis/_labelsuffix.py +++ b/plotly/validators/carpet/baxis/_labelsuffix.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelsuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/_linecolor.py b/plotly/validators/carpet/baxis/_linecolor.py index 4cf436ffe7..37cd7ec294 100644 --- a/plotly/validators/carpet/baxis/_linecolor.py +++ b/plotly/validators/carpet/baxis/_linecolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/_linewidth.py b/plotly/validators/carpet/baxis/_linewidth.py index 5bad47e196..418730e8f1 100644 --- a/plotly/validators/carpet/baxis/_linewidth.py +++ b/plotly/validators/carpet/baxis/_linewidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/carpet/baxis/_minexponent.py b/plotly/validators/carpet/baxis/_minexponent.py index ef9a3223a8..917786c7c3 100644 --- a/plotly/validators/carpet/baxis/_minexponent.py +++ b/plotly/validators/carpet/baxis/_minexponent.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/carpet/baxis/_minorgridcolor.py b/plotly/validators/carpet/baxis/_minorgridcolor.py index 730506ae18..f250d10279 100644 --- a/plotly/validators/carpet/baxis/_minorgridcolor.py +++ b/plotly/validators/carpet/baxis/_minorgridcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinorgridcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/_minorgridcount.py b/plotly/validators/carpet/baxis/_minorgridcount.py index b5cc473f8b..5343813632 100644 --- a/plotly/validators/carpet/baxis/_minorgridcount.py +++ b/plotly/validators/carpet/baxis/_minorgridcount.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinorgridcountValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/carpet/baxis/_minorgriddash.py b/plotly/validators/carpet/baxis/_minorgriddash.py index 2459307360..45e4f57e92 100644 --- a/plotly/validators/carpet/baxis/_minorgriddash.py +++ b/plotly/validators/carpet/baxis/_minorgriddash.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinorgriddashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/carpet/baxis/_minorgridwidth.py b/plotly/validators/carpet/baxis/_minorgridwidth.py index 28d9c866a7..63b0b7b48d 100644 --- a/plotly/validators/carpet/baxis/_minorgridwidth.py +++ b/plotly/validators/carpet/baxis/_minorgridwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinorgridwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/carpet/baxis/_nticks.py b/plotly/validators/carpet/baxis/_nticks.py index a3b1723f55..0ff42a4e8c 100644 --- a/plotly/validators/carpet/baxis/_nticks.py +++ b/plotly/validators/carpet/baxis/_nticks.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/carpet/baxis/_range.py b/plotly/validators/carpet/baxis/_range.py index a7dffc77ac..2ea40a6048 100644 --- a/plotly/validators/carpet/baxis/_range.py +++ b/plotly/validators/carpet/baxis/_range.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/carpet/baxis/_rangemode.py b/plotly/validators/carpet/baxis/_rangemode.py index 9805c78659..a8c1947674 100644 --- a/plotly/validators/carpet/baxis/_rangemode.py +++ b/plotly/validators/carpet/baxis/_rangemode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RangemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "tozero", "nonnegative"]), **kwargs, diff --git a/plotly/validators/carpet/baxis/_separatethousands.py b/plotly/validators/carpet/baxis/_separatethousands.py index 3e9b4b2ccc..d4956bb976 100644 --- a/plotly/validators/carpet/baxis/_separatethousands.py +++ b/plotly/validators/carpet/baxis/_separatethousands.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/_showexponent.py b/plotly/validators/carpet/baxis/_showexponent.py index d1ca370403..1d4a590e57 100644 --- a/plotly/validators/carpet/baxis/_showexponent.py +++ b/plotly/validators/carpet/baxis/_showexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/carpet/baxis/_showgrid.py b/plotly/validators/carpet/baxis/_showgrid.py index 7bf8be4438..c6e87b8833 100644 --- a/plotly/validators/carpet/baxis/_showgrid.py +++ b/plotly/validators/carpet/baxis/_showgrid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/_showline.py b/plotly/validators/carpet/baxis/_showline.py index 3fcbf4b3e8..857d6486c5 100644 --- a/plotly/validators/carpet/baxis/_showline.py +++ b/plotly/validators/carpet/baxis/_showline.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/_showticklabels.py b/plotly/validators/carpet/baxis/_showticklabels.py index 70167b9e12..9b635905cf 100644 --- a/plotly/validators/carpet/baxis/_showticklabels.py +++ b/plotly/validators/carpet/baxis/_showticklabels.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["start", "end", "both", "none"]), **kwargs, diff --git a/plotly/validators/carpet/baxis/_showtickprefix.py b/plotly/validators/carpet/baxis/_showtickprefix.py index 89821be4a4..2f1a7bbe58 100644 --- a/plotly/validators/carpet/baxis/_showtickprefix.py +++ b/plotly/validators/carpet/baxis/_showtickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/carpet/baxis/_showticksuffix.py b/plotly/validators/carpet/baxis/_showticksuffix.py index 8cfdc06068..b640ad7cc7 100644 --- a/plotly/validators/carpet/baxis/_showticksuffix.py +++ b/plotly/validators/carpet/baxis/_showticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/carpet/baxis/_smoothing.py b/plotly/validators/carpet/baxis/_smoothing.py index fb16f9feab..920636e40d 100644 --- a/plotly/validators/carpet/baxis/_smoothing.py +++ b/plotly/validators/carpet/baxis/_smoothing.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SmoothingValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1.3), min=kwargs.pop("min", 0), diff --git a/plotly/validators/carpet/baxis/_startline.py b/plotly/validators/carpet/baxis/_startline.py index 316cc9df94..42c2f1382a 100644 --- a/plotly/validators/carpet/baxis/_startline.py +++ b/plotly/validators/carpet/baxis/_startline.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StartlineValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/_startlinecolor.py b/plotly/validators/carpet/baxis/_startlinecolor.py index bb58d2cbab..48813c0d21 100644 --- a/plotly/validators/carpet/baxis/_startlinecolor.py +++ b/plotly/validators/carpet/baxis/_startlinecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StartlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/_startlinewidth.py b/plotly/validators/carpet/baxis/_startlinewidth.py index 5bf8f68908..9f8851d96a 100644 --- a/plotly/validators/carpet/baxis/_startlinewidth.py +++ b/plotly/validators/carpet/baxis/_startlinewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StartlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/_tick0.py b/plotly/validators/carpet/baxis/_tick0.py index 6a41eb647f..87b0609b7e 100644 --- a/plotly/validators/carpet/baxis/_tick0.py +++ b/plotly/validators/carpet/baxis/_tick0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/carpet/baxis/_tickangle.py b/plotly/validators/carpet/baxis/_tickangle.py index 9131d4fb67..2bcff95fd1 100644 --- a/plotly/validators/carpet/baxis/_tickangle.py +++ b/plotly/validators/carpet/baxis/_tickangle.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/_tickfont.py b/plotly/validators/carpet/baxis/_tickfont.py index 2c9341300a..434c4451ac 100644 --- a/plotly/validators/carpet/baxis/_tickfont.py +++ b/plotly/validators/carpet/baxis/_tickfont.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/carpet/baxis/_tickformat.py b/plotly/validators/carpet/baxis/_tickformat.py index 17090c7528..2b7c1599f7 100644 --- a/plotly/validators/carpet/baxis/_tickformat.py +++ b/plotly/validators/carpet/baxis/_tickformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/_tickformatstopdefaults.py b/plotly/validators/carpet/baxis/_tickformatstopdefaults.py index 615da496d3..0c00137013 100644 --- a/plotly/validators/carpet/baxis/_tickformatstopdefaults.py +++ b/plotly/validators/carpet/baxis/_tickformatstopdefaults.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/carpet/baxis/_tickformatstops.py b/plotly/validators/carpet/baxis/_tickformatstops.py index 9ef98d4f38..282a3f7edc 100644 --- a/plotly/validators/carpet/baxis/_tickformatstops.py +++ b/plotly/validators/carpet/baxis/_tickformatstops.py @@ -1,50 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/carpet/baxis/_tickmode.py b/plotly/validators/carpet/baxis/_tickmode.py index 3c87ec2af7..d3d8d7b1f9 100644 --- a/plotly/validators/carpet/baxis/_tickmode.py +++ b/plotly/validators/carpet/baxis/_tickmode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["linear", "array"]), **kwargs, diff --git a/plotly/validators/carpet/baxis/_tickprefix.py b/plotly/validators/carpet/baxis/_tickprefix.py index e578f01f94..6c464b831d 100644 --- a/plotly/validators/carpet/baxis/_tickprefix.py +++ b/plotly/validators/carpet/baxis/_tickprefix.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/_ticksuffix.py b/plotly/validators/carpet/baxis/_ticksuffix.py index 27b78432f5..9db9d13f72 100644 --- a/plotly/validators/carpet/baxis/_ticksuffix.py +++ b/plotly/validators/carpet/baxis/_ticksuffix.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/_ticktext.py b/plotly/validators/carpet/baxis/_ticktext.py index 42b5bf4be4..11731a4196 100644 --- a/plotly/validators/carpet/baxis/_ticktext.py +++ b/plotly/validators/carpet/baxis/_ticktext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/_ticktextsrc.py b/plotly/validators/carpet/baxis/_ticktextsrc.py index 5dd8343f8c..462b29baeb 100644 --- a/plotly/validators/carpet/baxis/_ticktextsrc.py +++ b/plotly/validators/carpet/baxis/_ticktextsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/_tickvals.py b/plotly/validators/carpet/baxis/_tickvals.py index 170741e75b..58b8ae2f86 100644 --- a/plotly/validators/carpet/baxis/_tickvals.py +++ b/plotly/validators/carpet/baxis/_tickvals.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/_tickvalssrc.py b/plotly/validators/carpet/baxis/_tickvalssrc.py index f1a22cb086..a7999338ea 100644 --- a/plotly/validators/carpet/baxis/_tickvalssrc.py +++ b/plotly/validators/carpet/baxis/_tickvalssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/_title.py b/plotly/validators/carpet/baxis/_title.py index 6f31f8636a..0bb701ecec 100644 --- a/plotly/validators/carpet/baxis/_title.py +++ b/plotly/validators/carpet/baxis/_title.py @@ -1,22 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/carpet/baxis/_type.py b/plotly/validators/carpet/baxis/_type.py index 35b43e57ce..18de4b4dd2 100644 --- a/plotly/validators/carpet/baxis/_type.py +++ b/plotly/validators/carpet/baxis/_type.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["-", "linear", "date", "category"]), **kwargs, diff --git a/plotly/validators/carpet/baxis/tickfont/__init__.py b/plotly/validators/carpet/baxis/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/carpet/baxis/tickfont/__init__.py +++ b/plotly/validators/carpet/baxis/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/carpet/baxis/tickfont/_color.py b/plotly/validators/carpet/baxis/tickfont/_color.py index 525a291ec1..dcd3fd675f 100644 --- a/plotly/validators/carpet/baxis/tickfont/_color.py +++ b/plotly/validators/carpet/baxis/tickfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/tickfont/_family.py b/plotly/validators/carpet/baxis/tickfont/_family.py index c5d4421c5d..df905e680e 100644 --- a/plotly/validators/carpet/baxis/tickfont/_family.py +++ b/plotly/validators/carpet/baxis/tickfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/carpet/baxis/tickfont/_lineposition.py b/plotly/validators/carpet/baxis/tickfont/_lineposition.py index 68d145c64f..7acc4db51e 100644 --- a/plotly/validators/carpet/baxis/tickfont/_lineposition.py +++ b/plotly/validators/carpet/baxis/tickfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/carpet/baxis/tickfont/_shadow.py b/plotly/validators/carpet/baxis/tickfont/_shadow.py index 41c9fe6336..6a53c2fce5 100644 --- a/plotly/validators/carpet/baxis/tickfont/_shadow.py +++ b/plotly/validators/carpet/baxis/tickfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/tickfont/_size.py b/plotly/validators/carpet/baxis/tickfont/_size.py index 61dab17944..85e70ae3ec 100644 --- a/plotly/validators/carpet/baxis/tickfont/_size.py +++ b/plotly/validators/carpet/baxis/tickfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/carpet/baxis/tickfont/_style.py b/plotly/validators/carpet/baxis/tickfont/_style.py index f503eda879..6aa5481cc8 100644 --- a/plotly/validators/carpet/baxis/tickfont/_style.py +++ b/plotly/validators/carpet/baxis/tickfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/carpet/baxis/tickfont/_textcase.py b/plotly/validators/carpet/baxis/tickfont/_textcase.py index 99140e3bdb..18d60a223d 100644 --- a/plotly/validators/carpet/baxis/tickfont/_textcase.py +++ b/plotly/validators/carpet/baxis/tickfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/carpet/baxis/tickfont/_variant.py b/plotly/validators/carpet/baxis/tickfont/_variant.py index e6623e9a58..bf77395205 100644 --- a/plotly/validators/carpet/baxis/tickfont/_variant.py +++ b/plotly/validators/carpet/baxis/tickfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/carpet/baxis/tickfont/_weight.py b/plotly/validators/carpet/baxis/tickfont/_weight.py index 5a0fb30b48..c590fc061f 100644 --- a/plotly/validators/carpet/baxis/tickfont/_weight.py +++ b/plotly/validators/carpet/baxis/tickfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/carpet/baxis/tickformatstop/__init__.py b/plotly/validators/carpet/baxis/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/carpet/baxis/tickformatstop/__init__.py +++ b/plotly/validators/carpet/baxis/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/carpet/baxis/tickformatstop/_dtickrange.py b/plotly/validators/carpet/baxis/tickformatstop/_dtickrange.py index 275e262922..6c21126ff2 100644 --- a/plotly/validators/carpet/baxis/tickformatstop/_dtickrange.py +++ b/plotly/validators/carpet/baxis/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/carpet/baxis/tickformatstop/_enabled.py b/plotly/validators/carpet/baxis/tickformatstop/_enabled.py index 49fb95e877..10e2470846 100644 --- a/plotly/validators/carpet/baxis/tickformatstop/_enabled.py +++ b/plotly/validators/carpet/baxis/tickformatstop/_enabled.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/tickformatstop/_name.py b/plotly/validators/carpet/baxis/tickformatstop/_name.py index 1cb60593bd..161c3b1308 100644 --- a/plotly/validators/carpet/baxis/tickformatstop/_name.py +++ b/plotly/validators/carpet/baxis/tickformatstop/_name.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/tickformatstop/_templateitemname.py b/plotly/validators/carpet/baxis/tickformatstop/_templateitemname.py index 41778e1101..e59950e4e6 100644 --- a/plotly/validators/carpet/baxis/tickformatstop/_templateitemname.py +++ b/plotly/validators/carpet/baxis/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/tickformatstop/_value.py b/plotly/validators/carpet/baxis/tickformatstop/_value.py index 5243b87035..1d2194b89f 100644 --- a/plotly/validators/carpet/baxis/tickformatstop/_value.py +++ b/plotly/validators/carpet/baxis/tickformatstop/_value.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/title/__init__.py b/plotly/validators/carpet/baxis/title/__init__.py index ff2ee4cb29..5a003b67cd 100644 --- a/plotly/validators/carpet/baxis/title/__init__.py +++ b/plotly/validators/carpet/baxis/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._offset.OffsetValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/carpet/baxis/title/_font.py b/plotly/validators/carpet/baxis/title/_font.py index f8bef608e1..420bd7e1c5 100644 --- a/plotly/validators/carpet/baxis/title/_font.py +++ b/plotly/validators/carpet/baxis/title/_font.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/carpet/baxis/title/_offset.py b/plotly/validators/carpet/baxis/title/_offset.py index ffb2d5c011..cd97291715 100644 --- a/plotly/validators/carpet/baxis/title/_offset.py +++ b/plotly/validators/carpet/baxis/title/_offset.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OffsetValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/title/_text.py b/plotly/validators/carpet/baxis/title/_text.py index 5fdc11173a..f284b39190 100644 --- a/plotly/validators/carpet/baxis/title/_text.py +++ b/plotly/validators/carpet/baxis/title/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/title/font/__init__.py b/plotly/validators/carpet/baxis/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/carpet/baxis/title/font/__init__.py +++ b/plotly/validators/carpet/baxis/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/carpet/baxis/title/font/_color.py b/plotly/validators/carpet/baxis/title/font/_color.py index 27dc892115..34bc735a83 100644 --- a/plotly/validators/carpet/baxis/title/font/_color.py +++ b/plotly/validators/carpet/baxis/title/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/title/font/_family.py b/plotly/validators/carpet/baxis/title/font/_family.py index c798648c92..b2ba24f31d 100644 --- a/plotly/validators/carpet/baxis/title/font/_family.py +++ b/plotly/validators/carpet/baxis/title/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/carpet/baxis/title/font/_lineposition.py b/plotly/validators/carpet/baxis/title/font/_lineposition.py index 2e16204496..12e7a39e60 100644 --- a/plotly/validators/carpet/baxis/title/font/_lineposition.py +++ b/plotly/validators/carpet/baxis/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/carpet/baxis/title/font/_shadow.py b/plotly/validators/carpet/baxis/title/font/_shadow.py index 4bc9e72813..fa39328081 100644 --- a/plotly/validators/carpet/baxis/title/font/_shadow.py +++ b/plotly/validators/carpet/baxis/title/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/baxis/title/font/_size.py b/plotly/validators/carpet/baxis/title/font/_size.py index abf8c48cb0..7f56c731f5 100644 --- a/plotly/validators/carpet/baxis/title/font/_size.py +++ b/plotly/validators/carpet/baxis/title/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/carpet/baxis/title/font/_style.py b/plotly/validators/carpet/baxis/title/font/_style.py index dee9f02479..0507b8ffec 100644 --- a/plotly/validators/carpet/baxis/title/font/_style.py +++ b/plotly/validators/carpet/baxis/title/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/carpet/baxis/title/font/_textcase.py b/plotly/validators/carpet/baxis/title/font/_textcase.py index 7662aa30a3..bcdfd36ee7 100644 --- a/plotly/validators/carpet/baxis/title/font/_textcase.py +++ b/plotly/validators/carpet/baxis/title/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/carpet/baxis/title/font/_variant.py b/plotly/validators/carpet/baxis/title/font/_variant.py index ff18b7eceb..b4c6adb545 100644 --- a/plotly/validators/carpet/baxis/title/font/_variant.py +++ b/plotly/validators/carpet/baxis/title/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/carpet/baxis/title/font/_weight.py b/plotly/validators/carpet/baxis/title/font/_weight.py index 8a04fcf852..977e8f6896 100644 --- a/plotly/validators/carpet/baxis/title/font/_weight.py +++ b/plotly/validators/carpet/baxis/title/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/carpet/font/__init__.py b/plotly/validators/carpet/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/carpet/font/__init__.py +++ b/plotly/validators/carpet/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/carpet/font/_color.py b/plotly/validators/carpet/font/_color.py index 20190ce0bc..d65ebda156 100644 --- a/plotly/validators/carpet/font/_color.py +++ b/plotly/validators/carpet/font/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/font/_family.py b/plotly/validators/carpet/font/_family.py index b504547d66..7cede99fbc 100644 --- a/plotly/validators/carpet/font/_family.py +++ b/plotly/validators/carpet/font/_family.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/carpet/font/_lineposition.py b/plotly/validators/carpet/font/_lineposition.py index 62357f2ebf..f32e968e8c 100644 --- a/plotly/validators/carpet/font/_lineposition.py +++ b/plotly/validators/carpet/font/_lineposition.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/carpet/font/_shadow.py b/plotly/validators/carpet/font/_shadow.py index a81eacbaa2..285b1f92d1 100644 --- a/plotly/validators/carpet/font/_shadow.py +++ b/plotly/validators/carpet/font/_shadow.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/carpet/font/_size.py b/plotly/validators/carpet/font/_size.py index 7095055981..99c0f724a9 100644 --- a/plotly/validators/carpet/font/_size.py +++ b/plotly/validators/carpet/font/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/carpet/font/_style.py b/plotly/validators/carpet/font/_style.py index f980b6392e..706b284caf 100644 --- a/plotly/validators/carpet/font/_style.py +++ b/plotly/validators/carpet/font/_style.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/carpet/font/_textcase.py b/plotly/validators/carpet/font/_textcase.py index 4458271444..e0ca7ddf61 100644 --- a/plotly/validators/carpet/font/_textcase.py +++ b/plotly/validators/carpet/font/_textcase.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/carpet/font/_variant.py b/plotly/validators/carpet/font/_variant.py index 0645ee8f57..16cab2dfc5 100644 --- a/plotly/validators/carpet/font/_variant.py +++ b/plotly/validators/carpet/font/_variant.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/carpet/font/_weight.py b/plotly/validators/carpet/font/_weight.py index 6d7afe2e75..bebd5ec976 100644 --- a/plotly/validators/carpet/font/_weight.py +++ b/plotly/validators/carpet/font/_weight.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/carpet/legendgrouptitle/__init__.py b/plotly/validators/carpet/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/carpet/legendgrouptitle/__init__.py +++ b/plotly/validators/carpet/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/carpet/legendgrouptitle/_font.py b/plotly/validators/carpet/legendgrouptitle/_font.py index 7f67ac14d7..7579d0a716 100644 --- a/plotly/validators/carpet/legendgrouptitle/_font.py +++ b/plotly/validators/carpet/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/carpet/legendgrouptitle/_text.py b/plotly/validators/carpet/legendgrouptitle/_text.py index cc369a17f6..095e7c5a90 100644 --- a/plotly/validators/carpet/legendgrouptitle/_text.py +++ b/plotly/validators/carpet/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/carpet/legendgrouptitle/font/__init__.py b/plotly/validators/carpet/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/carpet/legendgrouptitle/font/__init__.py +++ b/plotly/validators/carpet/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/carpet/legendgrouptitle/font/_color.py b/plotly/validators/carpet/legendgrouptitle/font/_color.py index d229c68863..f9c18745fb 100644 --- a/plotly/validators/carpet/legendgrouptitle/font/_color.py +++ b/plotly/validators/carpet/legendgrouptitle/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/carpet/legendgrouptitle/font/_family.py b/plotly/validators/carpet/legendgrouptitle/font/_family.py index bc59037f1e..4cbeac7a85 100644 --- a/plotly/validators/carpet/legendgrouptitle/font/_family.py +++ b/plotly/validators/carpet/legendgrouptitle/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/carpet/legendgrouptitle/font/_lineposition.py b/plotly/validators/carpet/legendgrouptitle/font/_lineposition.py index 24fe20738f..515f4b3492 100644 --- a/plotly/validators/carpet/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/carpet/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/carpet/legendgrouptitle/font/_shadow.py b/plotly/validators/carpet/legendgrouptitle/font/_shadow.py index 17477c2fdc..995e2523ff 100644 --- a/plotly/validators/carpet/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/carpet/legendgrouptitle/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/carpet/legendgrouptitle/font/_size.py b/plotly/validators/carpet/legendgrouptitle/font/_size.py index 3ab7fbae18..b40729f78e 100644 --- a/plotly/validators/carpet/legendgrouptitle/font/_size.py +++ b/plotly/validators/carpet/legendgrouptitle/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/carpet/legendgrouptitle/font/_style.py b/plotly/validators/carpet/legendgrouptitle/font/_style.py index 967552352d..ba260c9a13 100644 --- a/plotly/validators/carpet/legendgrouptitle/font/_style.py +++ b/plotly/validators/carpet/legendgrouptitle/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/carpet/legendgrouptitle/font/_textcase.py b/plotly/validators/carpet/legendgrouptitle/font/_textcase.py index 74dc63c316..23c2863110 100644 --- a/plotly/validators/carpet/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/carpet/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/carpet/legendgrouptitle/font/_variant.py b/plotly/validators/carpet/legendgrouptitle/font/_variant.py index 74c321bc29..685d1e2715 100644 --- a/plotly/validators/carpet/legendgrouptitle/font/_variant.py +++ b/plotly/validators/carpet/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/carpet/legendgrouptitle/font/_weight.py b/plotly/validators/carpet/legendgrouptitle/font/_weight.py index 4ac56dd83f..1e14502dd9 100644 --- a/plotly/validators/carpet/legendgrouptitle/font/_weight.py +++ b/plotly/validators/carpet/legendgrouptitle/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/carpet/stream/__init__.py b/plotly/validators/carpet/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/carpet/stream/__init__.py +++ b/plotly/validators/carpet/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/carpet/stream/_maxpoints.py b/plotly/validators/carpet/stream/_maxpoints.py index 264c6f4d69..0b6d3394ea 100644 --- a/plotly/validators/carpet/stream/_maxpoints.py +++ b/plotly/validators/carpet/stream/_maxpoints.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/carpet/stream/_token.py b/plotly/validators/carpet/stream/_token.py index a668906119..baa58152e2 100644 --- a/plotly/validators/carpet/stream/_token.py +++ b/plotly/validators/carpet/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/choropleth/__init__.py b/plotly/validators/choropleth/__init__.py index b1f72cd16e..f988bf1cc8 100644 --- a/plotly/validators/choropleth/__init__.py +++ b/plotly/validators/choropleth/__init__.py @@ -1,109 +1,57 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zsrc import ZsrcValidator - from ._zmin import ZminValidator - from ._zmid import ZmidValidator - from ._zmax import ZmaxValidator - from ._zauto import ZautoValidator - from ._z import ZValidator - from ._visible import VisibleValidator - from ._unselected import UnselectedValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._textsrc import TextsrcValidator - from ._text import TextValidator - from ._stream import StreamValidator - from ._showscale import ShowscaleValidator - from ._showlegend import ShowlegendValidator - from ._selectedpoints import SelectedpointsValidator - from ._selected import SelectedValidator - from ._reversescale import ReversescaleValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._marker import MarkerValidator - from ._locationssrc import LocationssrcValidator - from ._locations import LocationsValidator - from ._locationmode import LocationmodeValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._geojson import GeojsonValidator - from ._geo import GeoValidator - from ._featureidkey import FeatureidkeyValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/choropleth/_autocolorscale.py b/plotly/validators/choropleth/_autocolorscale.py index 3bc74402a2..11039428b3 100644 --- a/plotly/validators/choropleth/_autocolorscale.py +++ b/plotly/validators/choropleth/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/choropleth/_coloraxis.py b/plotly/validators/choropleth/_coloraxis.py index 472db6a709..a17b90f61e 100644 --- a/plotly/validators/choropleth/_coloraxis.py +++ b/plotly/validators/choropleth/_coloraxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/choropleth/_colorbar.py b/plotly/validators/choropleth/_colorbar.py index b696d78d6b..b657e5435a 100644 --- a/plotly/validators/choropleth/_colorbar.py +++ b/plotly/validators/choropleth/_colorbar.py @@ -1,278 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choropleth/_colorscale.py b/plotly/validators/choropleth/_colorscale.py index 0756b0b1d5..9d4600c9a0 100644 --- a/plotly/validators/choropleth/_colorscale.py +++ b/plotly/validators/choropleth/_colorscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/choropleth/_customdata.py b/plotly/validators/choropleth/_customdata.py index 2de9dea3e9..63e5c073bf 100644 --- a/plotly/validators/choropleth/_customdata.py +++ b/plotly/validators/choropleth/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/choropleth/_customdatasrc.py b/plotly/validators/choropleth/_customdatasrc.py index 151d7ddaac..43bd8d3a4b 100644 --- a/plotly/validators/choropleth/_customdatasrc.py +++ b/plotly/validators/choropleth/_customdatasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choropleth/_featureidkey.py b/plotly/validators/choropleth/_featureidkey.py index d1efbb9a16..1a6b8ffe92 100644 --- a/plotly/validators/choropleth/_featureidkey.py +++ b/plotly/validators/choropleth/_featureidkey.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FeatureidkeyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/choropleth/_geo.py b/plotly/validators/choropleth/_geo.py index b963fd008f..855d81f5b9 100644 --- a/plotly/validators/choropleth/_geo.py +++ b/plotly/validators/choropleth/_geo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GeoValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "geo"), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/choropleth/_geojson.py b/plotly/validators/choropleth/_geojson.py index 71a69a7a80..526993193c 100644 --- a/plotly/validators/choropleth/_geojson.py +++ b/plotly/validators/choropleth/_geojson.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GeojsonValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/choropleth/_hoverinfo.py b/plotly/validators/choropleth/_hoverinfo.py index 42c37ee22f..d0b16d3ba9 100644 --- a/plotly/validators/choropleth/_hoverinfo.py +++ b/plotly/validators/choropleth/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/choropleth/_hoverinfosrc.py b/plotly/validators/choropleth/_hoverinfosrc.py index 4318e56413..ed37288f9e 100644 --- a/plotly/validators/choropleth/_hoverinfosrc.py +++ b/plotly/validators/choropleth/_hoverinfosrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choropleth/_hoverlabel.py b/plotly/validators/choropleth/_hoverlabel.py index 8896657cd6..51453ece4f 100644 --- a/plotly/validators/choropleth/_hoverlabel.py +++ b/plotly/validators/choropleth/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choropleth/_hovertemplate.py b/plotly/validators/choropleth/_hovertemplate.py index d8c40630c6..1261059f93 100644 --- a/plotly/validators/choropleth/_hovertemplate.py +++ b/plotly/validators/choropleth/_hovertemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/choropleth/_hovertemplatesrc.py b/plotly/validators/choropleth/_hovertemplatesrc.py index 1e99bfd0bf..b41bc6ba7d 100644 --- a/plotly/validators/choropleth/_hovertemplatesrc.py +++ b/plotly/validators/choropleth/_hovertemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choropleth/_hovertext.py b/plotly/validators/choropleth/_hovertext.py index 8f59d47dbf..d337ba8147 100644 --- a/plotly/validators/choropleth/_hovertext.py +++ b/plotly/validators/choropleth/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/choropleth/_hovertextsrc.py b/plotly/validators/choropleth/_hovertextsrc.py index a2babf8d61..1cf09ff1d2 100644 --- a/plotly/validators/choropleth/_hovertextsrc.py +++ b/plotly/validators/choropleth/_hovertextsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choropleth/_ids.py b/plotly/validators/choropleth/_ids.py index e6c741fffe..6dc3753eec 100644 --- a/plotly/validators/choropleth/_ids.py +++ b/plotly/validators/choropleth/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/choropleth/_idssrc.py b/plotly/validators/choropleth/_idssrc.py index ed22d7d409..5f67c0f0cd 100644 --- a/plotly/validators/choropleth/_idssrc.py +++ b/plotly/validators/choropleth/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choropleth/_legend.py b/plotly/validators/choropleth/_legend.py index 04273e21ef..8d84bd01ff 100644 --- a/plotly/validators/choropleth/_legend.py +++ b/plotly/validators/choropleth/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/choropleth/_legendgroup.py b/plotly/validators/choropleth/_legendgroup.py index 4711ae2d62..d372da243d 100644 --- a/plotly/validators/choropleth/_legendgroup.py +++ b/plotly/validators/choropleth/_legendgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/choropleth/_legendgrouptitle.py b/plotly/validators/choropleth/_legendgrouptitle.py index 72f53c248d..e05b8ae643 100644 --- a/plotly/validators/choropleth/_legendgrouptitle.py +++ b/plotly/validators/choropleth/_legendgrouptitle.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choropleth/_legendrank.py b/plotly/validators/choropleth/_legendrank.py index 7c24c40c35..0cf9113287 100644 --- a/plotly/validators/choropleth/_legendrank.py +++ b/plotly/validators/choropleth/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/choropleth/_legendwidth.py b/plotly/validators/choropleth/_legendwidth.py index b8d8b752db..4649981014 100644 --- a/plotly/validators/choropleth/_legendwidth.py +++ b/plotly/validators/choropleth/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/choropleth/_locationmode.py b/plotly/validators/choropleth/_locationmode.py index afe54f8b3d..c45e74caff 100644 --- a/plotly/validators/choropleth/_locationmode.py +++ b/plotly/validators/choropleth/_locationmode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LocationmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", ["ISO-3", "USA-states", "country names", "geojson-id"] diff --git a/plotly/validators/choropleth/_locations.py b/plotly/validators/choropleth/_locations.py index 85335eb35f..953c8810e0 100644 --- a/plotly/validators/choropleth/_locations.py +++ b/plotly/validators/choropleth/_locations.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LocationsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/choropleth/_locationssrc.py b/plotly/validators/choropleth/_locationssrc.py index 9bf200c9c5..97c8437594 100644 --- a/plotly/validators/choropleth/_locationssrc.py +++ b/plotly/validators/choropleth/_locationssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LocationssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choropleth/_marker.py b/plotly/validators/choropleth/_marker.py index 1cb088f8a5..4623d461e3 100644 --- a/plotly/validators/choropleth/_marker.py +++ b/plotly/validators/choropleth/_marker.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choropleth/_meta.py b/plotly/validators/choropleth/_meta.py index 9f6ade45f7..940135c1b7 100644 --- a/plotly/validators/choropleth/_meta.py +++ b/plotly/validators/choropleth/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/choropleth/_metasrc.py b/plotly/validators/choropleth/_metasrc.py index ef4bc3d80d..70cab102a5 100644 --- a/plotly/validators/choropleth/_metasrc.py +++ b/plotly/validators/choropleth/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choropleth/_name.py b/plotly/validators/choropleth/_name.py index e7e6e91d8c..ecf8c6b009 100644 --- a/plotly/validators/choropleth/_name.py +++ b/plotly/validators/choropleth/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/choropleth/_reversescale.py b/plotly/validators/choropleth/_reversescale.py index eaddd60af0..4fc8ed9190 100644 --- a/plotly/validators/choropleth/_reversescale.py +++ b/plotly/validators/choropleth/_reversescale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/choropleth/_selected.py b/plotly/validators/choropleth/_selected.py index ef83768b61..e3ac9feea6 100644 --- a/plotly/validators/choropleth/_selected.py +++ b/plotly/validators/choropleth/_selected.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choropleth/_selectedpoints.py b/plotly/validators/choropleth/_selectedpoints.py index 0797dc3752..bafac1a03c 100644 --- a/plotly/validators/choropleth/_selectedpoints.py +++ b/plotly/validators/choropleth/_selectedpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/choropleth/_showlegend.py b/plotly/validators/choropleth/_showlegend.py index 9f6d2144ee..02290f33a2 100644 --- a/plotly/validators/choropleth/_showlegend.py +++ b/plotly/validators/choropleth/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/choropleth/_showscale.py b/plotly/validators/choropleth/_showscale.py index 91c6b290ad..7d7742a1fe 100644 --- a/plotly/validators/choropleth/_showscale.py +++ b/plotly/validators/choropleth/_showscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/choropleth/_stream.py b/plotly/validators/choropleth/_stream.py index 28f58af6e8..3e1d9db6a9 100644 --- a/plotly/validators/choropleth/_stream.py +++ b/plotly/validators/choropleth/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choropleth/_text.py b/plotly/validators/choropleth/_text.py index 8b89687d23..a20ad6cfb6 100644 --- a/plotly/validators/choropleth/_text.py +++ b/plotly/validators/choropleth/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/choropleth/_textsrc.py b/plotly/validators/choropleth/_textsrc.py index f4afc915d0..2bd40b4357 100644 --- a/plotly/validators/choropleth/_textsrc.py +++ b/plotly/validators/choropleth/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choropleth/_uid.py b/plotly/validators/choropleth/_uid.py index 4fdb25e0de..60e75099ac 100644 --- a/plotly/validators/choropleth/_uid.py +++ b/plotly/validators/choropleth/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/choropleth/_uirevision.py b/plotly/validators/choropleth/_uirevision.py index 07a6238f97..e9becb2442 100644 --- a/plotly/validators/choropleth/_uirevision.py +++ b/plotly/validators/choropleth/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choropleth/_unselected.py b/plotly/validators/choropleth/_unselected.py index 86808ffde7..a6efafb2b7 100644 --- a/plotly/validators/choropleth/_unselected.py +++ b/plotly/validators/choropleth/_unselected.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choropleth/_visible.py b/plotly/validators/choropleth/_visible.py index d7998697a8..6b4aa2a2d1 100644 --- a/plotly/validators/choropleth/_visible.py +++ b/plotly/validators/choropleth/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/choropleth/_z.py b/plotly/validators/choropleth/_z.py index 51d611f024..25c168f87d 100644 --- a/plotly/validators/choropleth/_z.py +++ b/plotly/validators/choropleth/_z.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/choropleth/_zauto.py b/plotly/validators/choropleth/_zauto.py index 1ea1a26f01..50b9fad957 100644 --- a/plotly/validators/choropleth/_zauto.py +++ b/plotly/validators/choropleth/_zauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/choropleth/_zmax.py b/plotly/validators/choropleth/_zmax.py index e8335ee71f..2330efd541 100644 --- a/plotly/validators/choropleth/_zmax.py +++ b/plotly/validators/choropleth/_zmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"zauto": False}), **kwargs, diff --git a/plotly/validators/choropleth/_zmid.py b/plotly/validators/choropleth/_zmid.py index 15d1dd8dee..ebb751393b 100644 --- a/plotly/validators/choropleth/_zmid.py +++ b/plotly/validators/choropleth/_zmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/choropleth/_zmin.py b/plotly/validators/choropleth/_zmin.py index 16b4b4f12c..918e2a8b3f 100644 --- a/plotly/validators/choropleth/_zmin.py +++ b/plotly/validators/choropleth/_zmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"zauto": False}), **kwargs, diff --git a/plotly/validators/choropleth/_zsrc.py b/plotly/validators/choropleth/_zsrc.py index 76db7f1718..35db613334 100644 --- a/plotly/validators/choropleth/_zsrc.py +++ b/plotly/validators/choropleth/_zsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choropleth/colorbar/__init__.py b/plotly/validators/choropleth/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/choropleth/colorbar/__init__.py +++ b/plotly/validators/choropleth/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/choropleth/colorbar/_bgcolor.py b/plotly/validators/choropleth/colorbar/_bgcolor.py index 3c9fbd793f..043a6f44c7 100644 --- a/plotly/validators/choropleth/colorbar/_bgcolor.py +++ b/plotly/validators/choropleth/colorbar/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choropleth/colorbar/_bordercolor.py b/plotly/validators/choropleth/colorbar/_bordercolor.py index 21c06b7e3e..36ec69823c 100644 --- a/plotly/validators/choropleth/colorbar/_bordercolor.py +++ b/plotly/validators/choropleth/colorbar/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choropleth/colorbar/_borderwidth.py b/plotly/validators/choropleth/colorbar/_borderwidth.py index be6d033cc6..a97a869fc1 100644 --- a/plotly/validators/choropleth/colorbar/_borderwidth.py +++ b/plotly/validators/choropleth/colorbar/_borderwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/choropleth/colorbar/_dtick.py b/plotly/validators/choropleth/colorbar/_dtick.py index a1ad58a5e8..2c466180a7 100644 --- a/plotly/validators/choropleth/colorbar/_dtick.py +++ b/plotly/validators/choropleth/colorbar/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/choropleth/colorbar/_exponentformat.py b/plotly/validators/choropleth/colorbar/_exponentformat.py index 11a19c541f..f71719ec4a 100644 --- a/plotly/validators/choropleth/colorbar/_exponentformat.py +++ b/plotly/validators/choropleth/colorbar/_exponentformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/choropleth/colorbar/_labelalias.py b/plotly/validators/choropleth/colorbar/_labelalias.py index fc52785dba..d3910c981e 100644 --- a/plotly/validators/choropleth/colorbar/_labelalias.py +++ b/plotly/validators/choropleth/colorbar/_labelalias.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choropleth/colorbar/_len.py b/plotly/validators/choropleth/colorbar/_len.py index eee3c960c5..fa25222559 100644 --- a/plotly/validators/choropleth/colorbar/_len.py +++ b/plotly/validators/choropleth/colorbar/_len.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/choropleth/colorbar/_lenmode.py b/plotly/validators/choropleth/colorbar/_lenmode.py index 4dd0b085bf..e758e08925 100644 --- a/plotly/validators/choropleth/colorbar/_lenmode.py +++ b/plotly/validators/choropleth/colorbar/_lenmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/choropleth/colorbar/_minexponent.py b/plotly/validators/choropleth/colorbar/_minexponent.py index c3f49d5802..c9908b2c40 100644 --- a/plotly/validators/choropleth/colorbar/_minexponent.py +++ b/plotly/validators/choropleth/colorbar/_minexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/choropleth/colorbar/_nticks.py b/plotly/validators/choropleth/colorbar/_nticks.py index b620eb0b9d..4becc487e6 100644 --- a/plotly/validators/choropleth/colorbar/_nticks.py +++ b/plotly/validators/choropleth/colorbar/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/choropleth/colorbar/_orientation.py b/plotly/validators/choropleth/colorbar/_orientation.py index 18cb0412ea..de05a5b0a1 100644 --- a/plotly/validators/choropleth/colorbar/_orientation.py +++ b/plotly/validators/choropleth/colorbar/_orientation.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/choropleth/colorbar/_outlinecolor.py b/plotly/validators/choropleth/colorbar/_outlinecolor.py index c3820715c1..31ce4439fc 100644 --- a/plotly/validators/choropleth/colorbar/_outlinecolor.py +++ b/plotly/validators/choropleth/colorbar/_outlinecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choropleth/colorbar/_outlinewidth.py b/plotly/validators/choropleth/colorbar/_outlinewidth.py index 5c77227b07..b5af423a51 100644 --- a/plotly/validators/choropleth/colorbar/_outlinewidth.py +++ b/plotly/validators/choropleth/colorbar/_outlinewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/choropleth/colorbar/_separatethousands.py b/plotly/validators/choropleth/colorbar/_separatethousands.py index 874e38e0ac..ec9b844309 100644 --- a/plotly/validators/choropleth/colorbar/_separatethousands.py +++ b/plotly/validators/choropleth/colorbar/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choropleth/colorbar/_showexponent.py b/plotly/validators/choropleth/colorbar/_showexponent.py index 309539996e..916fdfa342 100644 --- a/plotly/validators/choropleth/colorbar/_showexponent.py +++ b/plotly/validators/choropleth/colorbar/_showexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/choropleth/colorbar/_showticklabels.py b/plotly/validators/choropleth/colorbar/_showticklabels.py index 6638ccba73..4a1cd952a4 100644 --- a/plotly/validators/choropleth/colorbar/_showticklabels.py +++ b/plotly/validators/choropleth/colorbar/_showticklabels.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choropleth/colorbar/_showtickprefix.py b/plotly/validators/choropleth/colorbar/_showtickprefix.py index f382c87e5c..9bfc5db610 100644 --- a/plotly/validators/choropleth/colorbar/_showtickprefix.py +++ b/plotly/validators/choropleth/colorbar/_showtickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/choropleth/colorbar/_showticksuffix.py b/plotly/validators/choropleth/colorbar/_showticksuffix.py index 04d3bc5b4f..6ff085d60a 100644 --- a/plotly/validators/choropleth/colorbar/_showticksuffix.py +++ b/plotly/validators/choropleth/colorbar/_showticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/choropleth/colorbar/_thickness.py b/plotly/validators/choropleth/colorbar/_thickness.py index f6395f1b62..6d07538aec 100644 --- a/plotly/validators/choropleth/colorbar/_thickness.py +++ b/plotly/validators/choropleth/colorbar/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/choropleth/colorbar/_thicknessmode.py b/plotly/validators/choropleth/colorbar/_thicknessmode.py index 3572839993..bfd0c76407 100644 --- a/plotly/validators/choropleth/colorbar/_thicknessmode.py +++ b/plotly/validators/choropleth/colorbar/_thicknessmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/choropleth/colorbar/_tick0.py b/plotly/validators/choropleth/colorbar/_tick0.py index 45ca3fc875..adad9c484b 100644 --- a/plotly/validators/choropleth/colorbar/_tick0.py +++ b/plotly/validators/choropleth/colorbar/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/choropleth/colorbar/_tickangle.py b/plotly/validators/choropleth/colorbar/_tickangle.py index 311fd67e1b..a03abb90a5 100644 --- a/plotly/validators/choropleth/colorbar/_tickangle.py +++ b/plotly/validators/choropleth/colorbar/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choropleth/colorbar/_tickcolor.py b/plotly/validators/choropleth/colorbar/_tickcolor.py index a612c449e6..fe4f9a87a5 100644 --- a/plotly/validators/choropleth/colorbar/_tickcolor.py +++ b/plotly/validators/choropleth/colorbar/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choropleth/colorbar/_tickfont.py b/plotly/validators/choropleth/colorbar/_tickfont.py index 209724d606..636ea2928c 100644 --- a/plotly/validators/choropleth/colorbar/_tickfont.py +++ b/plotly/validators/choropleth/colorbar/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/choropleth/colorbar/_tickformat.py b/plotly/validators/choropleth/colorbar/_tickformat.py index 8482fc84e5..d218e50f58 100644 --- a/plotly/validators/choropleth/colorbar/_tickformat.py +++ b/plotly/validators/choropleth/colorbar/_tickformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choropleth/colorbar/_tickformatstopdefaults.py b/plotly/validators/choropleth/colorbar/_tickformatstopdefaults.py index 0e4f78c1a8..abb508eb58 100644 --- a/plotly/validators/choropleth/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/choropleth/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/choropleth/colorbar/_tickformatstops.py b/plotly/validators/choropleth/colorbar/_tickformatstops.py index 888481e60d..a1cdbe59cf 100644 --- a/plotly/validators/choropleth/colorbar/_tickformatstops.py +++ b/plotly/validators/choropleth/colorbar/_tickformatstops.py @@ -1,50 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choropleth/colorbar/_ticklabeloverflow.py b/plotly/validators/choropleth/colorbar/_ticklabeloverflow.py index c8d6c4344a..438b5fb742 100644 --- a/plotly/validators/choropleth/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/choropleth/colorbar/_ticklabeloverflow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/choropleth/colorbar/_ticklabelposition.py b/plotly/validators/choropleth/colorbar/_ticklabelposition.py index 14f303e94b..37aff9f16a 100644 --- a/plotly/validators/choropleth/colorbar/_ticklabelposition.py +++ b/plotly/validators/choropleth/colorbar/_ticklabelposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/choropleth/colorbar/_ticklabelstep.py b/plotly/validators/choropleth/colorbar/_ticklabelstep.py index 78e8af8739..5d1e0f3a89 100644 --- a/plotly/validators/choropleth/colorbar/_ticklabelstep.py +++ b/plotly/validators/choropleth/colorbar/_ticklabelstep.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/choropleth/colorbar/_ticklen.py b/plotly/validators/choropleth/colorbar/_ticklen.py index 836a76caf8..cdcf9d4d36 100644 --- a/plotly/validators/choropleth/colorbar/_ticklen.py +++ b/plotly/validators/choropleth/colorbar/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/choropleth/colorbar/_tickmode.py b/plotly/validators/choropleth/colorbar/_tickmode.py index 9828a93634..fb7a4e31ee 100644 --- a/plotly/validators/choropleth/colorbar/_tickmode.py +++ b/plotly/validators/choropleth/colorbar/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/choropleth/colorbar/_tickprefix.py b/plotly/validators/choropleth/colorbar/_tickprefix.py index 1ae52f1551..9cdad479e3 100644 --- a/plotly/validators/choropleth/colorbar/_tickprefix.py +++ b/plotly/validators/choropleth/colorbar/_tickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choropleth/colorbar/_ticks.py b/plotly/validators/choropleth/colorbar/_ticks.py index 421cc3c7fe..90aa9e8aeb 100644 --- a/plotly/validators/choropleth/colorbar/_ticks.py +++ b/plotly/validators/choropleth/colorbar/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/choropleth/colorbar/_ticksuffix.py b/plotly/validators/choropleth/colorbar/_ticksuffix.py index aea6550992..f3697ed93d 100644 --- a/plotly/validators/choropleth/colorbar/_ticksuffix.py +++ b/plotly/validators/choropleth/colorbar/_ticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choropleth/colorbar/_ticktext.py b/plotly/validators/choropleth/colorbar/_ticktext.py index 318924a28a..6a76e62d1a 100644 --- a/plotly/validators/choropleth/colorbar/_ticktext.py +++ b/plotly/validators/choropleth/colorbar/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choropleth/colorbar/_ticktextsrc.py b/plotly/validators/choropleth/colorbar/_ticktextsrc.py index f544556654..14ef714593 100644 --- a/plotly/validators/choropleth/colorbar/_ticktextsrc.py +++ b/plotly/validators/choropleth/colorbar/_ticktextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choropleth/colorbar/_tickvals.py b/plotly/validators/choropleth/colorbar/_tickvals.py index 4be520f819..912a73e2ef 100644 --- a/plotly/validators/choropleth/colorbar/_tickvals.py +++ b/plotly/validators/choropleth/colorbar/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choropleth/colorbar/_tickvalssrc.py b/plotly/validators/choropleth/colorbar/_tickvalssrc.py index 3e2fcb31ad..f83fb401f2 100644 --- a/plotly/validators/choropleth/colorbar/_tickvalssrc.py +++ b/plotly/validators/choropleth/colorbar/_tickvalssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choropleth/colorbar/_tickwidth.py b/plotly/validators/choropleth/colorbar/_tickwidth.py index 0a317a9490..9f78cb2422 100644 --- a/plotly/validators/choropleth/colorbar/_tickwidth.py +++ b/plotly/validators/choropleth/colorbar/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/choropleth/colorbar/_title.py b/plotly/validators/choropleth/colorbar/_title.py index ddefb78154..bc3b65c0d6 100644 --- a/plotly/validators/choropleth/colorbar/_title.py +++ b/plotly/validators/choropleth/colorbar/_title.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choropleth/colorbar/_x.py b/plotly/validators/choropleth/colorbar/_x.py index 38bdf123d8..70ff836adf 100644 --- a/plotly/validators/choropleth/colorbar/_x.py +++ b/plotly/validators/choropleth/colorbar/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choropleth/colorbar/_xanchor.py b/plotly/validators/choropleth/colorbar/_xanchor.py index 29b64c1ac3..679e387f18 100644 --- a/plotly/validators/choropleth/colorbar/_xanchor.py +++ b/plotly/validators/choropleth/colorbar/_xanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/choropleth/colorbar/_xpad.py b/plotly/validators/choropleth/colorbar/_xpad.py index 156d72b09d..2a03b6255d 100644 --- a/plotly/validators/choropleth/colorbar/_xpad.py +++ b/plotly/validators/choropleth/colorbar/_xpad.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/choropleth/colorbar/_xref.py b/plotly/validators/choropleth/colorbar/_xref.py index 38dfbb2c5b..4a3760b1f1 100644 --- a/plotly/validators/choropleth/colorbar/_xref.py +++ b/plotly/validators/choropleth/colorbar/_xref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/choropleth/colorbar/_y.py b/plotly/validators/choropleth/colorbar/_y.py index 1e75127902..f70fc3df2a 100644 --- a/plotly/validators/choropleth/colorbar/_y.py +++ b/plotly/validators/choropleth/colorbar/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choropleth/colorbar/_yanchor.py b/plotly/validators/choropleth/colorbar/_yanchor.py index 8431e52e9b..98cbd7fbaf 100644 --- a/plotly/validators/choropleth/colorbar/_yanchor.py +++ b/plotly/validators/choropleth/colorbar/_yanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/choropleth/colorbar/_ypad.py b/plotly/validators/choropleth/colorbar/_ypad.py index 09309a5ac6..3188ef0cd3 100644 --- a/plotly/validators/choropleth/colorbar/_ypad.py +++ b/plotly/validators/choropleth/colorbar/_ypad.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/choropleth/colorbar/_yref.py b/plotly/validators/choropleth/colorbar/_yref.py index fad04acf62..c597764660 100644 --- a/plotly/validators/choropleth/colorbar/_yref.py +++ b/plotly/validators/choropleth/colorbar/_yref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/choropleth/colorbar/tickfont/__init__.py b/plotly/validators/choropleth/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/choropleth/colorbar/tickfont/__init__.py +++ b/plotly/validators/choropleth/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/choropleth/colorbar/tickfont/_color.py b/plotly/validators/choropleth/colorbar/tickfont/_color.py index 25ed1bd9e9..fc3002fc8d 100644 --- a/plotly/validators/choropleth/colorbar/tickfont/_color.py +++ b/plotly/validators/choropleth/colorbar/tickfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choropleth/colorbar/tickfont/_family.py b/plotly/validators/choropleth/colorbar/tickfont/_family.py index ddd3ae57bd..b2476a317f 100644 --- a/plotly/validators/choropleth/colorbar/tickfont/_family.py +++ b/plotly/validators/choropleth/colorbar/tickfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/choropleth/colorbar/tickfont/_lineposition.py b/plotly/validators/choropleth/colorbar/tickfont/_lineposition.py index 07bd241c3f..df290a59de 100644 --- a/plotly/validators/choropleth/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/choropleth/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/choropleth/colorbar/tickfont/_shadow.py b/plotly/validators/choropleth/colorbar/tickfont/_shadow.py index 1751424594..f50d70c53f 100644 --- a/plotly/validators/choropleth/colorbar/tickfont/_shadow.py +++ b/plotly/validators/choropleth/colorbar/tickfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choropleth/colorbar/tickfont/_size.py b/plotly/validators/choropleth/colorbar/tickfont/_size.py index fdb57e1f89..2a7c9bc850 100644 --- a/plotly/validators/choropleth/colorbar/tickfont/_size.py +++ b/plotly/validators/choropleth/colorbar/tickfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/choropleth/colorbar/tickfont/_style.py b/plotly/validators/choropleth/colorbar/tickfont/_style.py index b6c1c895c8..8f5e87369e 100644 --- a/plotly/validators/choropleth/colorbar/tickfont/_style.py +++ b/plotly/validators/choropleth/colorbar/tickfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/choropleth/colorbar/tickfont/_textcase.py b/plotly/validators/choropleth/colorbar/tickfont/_textcase.py index 721f1e6e0b..cf86a658dd 100644 --- a/plotly/validators/choropleth/colorbar/tickfont/_textcase.py +++ b/plotly/validators/choropleth/colorbar/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/choropleth/colorbar/tickfont/_variant.py b/plotly/validators/choropleth/colorbar/tickfont/_variant.py index 45bce1fd8a..98599a2f22 100644 --- a/plotly/validators/choropleth/colorbar/tickfont/_variant.py +++ b/plotly/validators/choropleth/colorbar/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/choropleth/colorbar/tickfont/_weight.py b/plotly/validators/choropleth/colorbar/tickfont/_weight.py index 6fa5bd9452..03dc2515bd 100644 --- a/plotly/validators/choropleth/colorbar/tickfont/_weight.py +++ b/plotly/validators/choropleth/colorbar/tickfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/choropleth/colorbar/tickformatstop/__init__.py b/plotly/validators/choropleth/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/choropleth/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/choropleth/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/choropleth/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/choropleth/colorbar/tickformatstop/_dtickrange.py index a61712ab78..29cb54bd4d 100644 --- a/plotly/validators/choropleth/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/choropleth/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( "items", diff --git a/plotly/validators/choropleth/colorbar/tickformatstop/_enabled.py b/plotly/validators/choropleth/colorbar/tickformatstop/_enabled.py index d105887cc7..4d3e8de8da 100644 --- a/plotly/validators/choropleth/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/choropleth/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choropleth/colorbar/tickformatstop/_name.py b/plotly/validators/choropleth/colorbar/tickformatstop/_name.py index 2d666fb1d6..57844d819c 100644 --- a/plotly/validators/choropleth/colorbar/tickformatstop/_name.py +++ b/plotly/validators/choropleth/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choropleth/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/choropleth/colorbar/tickformatstop/_templateitemname.py index 94098b0448..a795415563 100644 --- a/plotly/validators/choropleth/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/choropleth/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choropleth/colorbar/tickformatstop/_value.py b/plotly/validators/choropleth/colorbar/tickformatstop/_value.py index a036c49c85..e9797892dc 100644 --- a/plotly/validators/choropleth/colorbar/tickformatstop/_value.py +++ b/plotly/validators/choropleth/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choropleth/colorbar/title/__init__.py b/plotly/validators/choropleth/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/choropleth/colorbar/title/__init__.py +++ b/plotly/validators/choropleth/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/choropleth/colorbar/title/_font.py b/plotly/validators/choropleth/colorbar/title/_font.py index 69eb73980e..d8eec7324d 100644 --- a/plotly/validators/choropleth/colorbar/title/_font.py +++ b/plotly/validators/choropleth/colorbar/title/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/choropleth/colorbar/title/_side.py b/plotly/validators/choropleth/colorbar/title/_side.py index 366984329c..8522854117 100644 --- a/plotly/validators/choropleth/colorbar/title/_side.py +++ b/plotly/validators/choropleth/colorbar/title/_side.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/choropleth/colorbar/title/_text.py b/plotly/validators/choropleth/colorbar/title/_text.py index 9efb61a753..1bcfffee10 100644 --- a/plotly/validators/choropleth/colorbar/title/_text.py +++ b/plotly/validators/choropleth/colorbar/title/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choropleth/colorbar/title/font/__init__.py b/plotly/validators/choropleth/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/choropleth/colorbar/title/font/__init__.py +++ b/plotly/validators/choropleth/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/choropleth/colorbar/title/font/_color.py b/plotly/validators/choropleth/colorbar/title/font/_color.py index b31e89d5fc..756248c8ad 100644 --- a/plotly/validators/choropleth/colorbar/title/font/_color.py +++ b/plotly/validators/choropleth/colorbar/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choropleth/colorbar/title/font/_family.py b/plotly/validators/choropleth/colorbar/title/font/_family.py index 04fb50e0d1..448ca821fb 100644 --- a/plotly/validators/choropleth/colorbar/title/font/_family.py +++ b/plotly/validators/choropleth/colorbar/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/choropleth/colorbar/title/font/_lineposition.py b/plotly/validators/choropleth/colorbar/title/font/_lineposition.py index 011a4da477..bf0d882113 100644 --- a/plotly/validators/choropleth/colorbar/title/font/_lineposition.py +++ b/plotly/validators/choropleth/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/choropleth/colorbar/title/font/_shadow.py b/plotly/validators/choropleth/colorbar/title/font/_shadow.py index 818744b2c8..fb3b48cf60 100644 --- a/plotly/validators/choropleth/colorbar/title/font/_shadow.py +++ b/plotly/validators/choropleth/colorbar/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choropleth/colorbar/title/font/_size.py b/plotly/validators/choropleth/colorbar/title/font/_size.py index 40c6789a1c..c96c37a099 100644 --- a/plotly/validators/choropleth/colorbar/title/font/_size.py +++ b/plotly/validators/choropleth/colorbar/title/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/choropleth/colorbar/title/font/_style.py b/plotly/validators/choropleth/colorbar/title/font/_style.py index 6a2b690957..c95c05db69 100644 --- a/plotly/validators/choropleth/colorbar/title/font/_style.py +++ b/plotly/validators/choropleth/colorbar/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/choropleth/colorbar/title/font/_textcase.py b/plotly/validators/choropleth/colorbar/title/font/_textcase.py index 699580a416..11b070c540 100644 --- a/plotly/validators/choropleth/colorbar/title/font/_textcase.py +++ b/plotly/validators/choropleth/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/choropleth/colorbar/title/font/_variant.py b/plotly/validators/choropleth/colorbar/title/font/_variant.py index e5eddd36b5..1304442860 100644 --- a/plotly/validators/choropleth/colorbar/title/font/_variant.py +++ b/plotly/validators/choropleth/colorbar/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/choropleth/colorbar/title/font/_weight.py b/plotly/validators/choropleth/colorbar/title/font/_weight.py index 7a9fd5f71f..f09367fb26 100644 --- a/plotly/validators/choropleth/colorbar/title/font/_weight.py +++ b/plotly/validators/choropleth/colorbar/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/choropleth/hoverlabel/__init__.py b/plotly/validators/choropleth/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/choropleth/hoverlabel/__init__.py +++ b/plotly/validators/choropleth/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/choropleth/hoverlabel/_align.py b/plotly/validators/choropleth/hoverlabel/_align.py index 7a49989309..cf5d78422f 100644 --- a/plotly/validators/choropleth/hoverlabel/_align.py +++ b/plotly/validators/choropleth/hoverlabel/_align.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/choropleth/hoverlabel/_alignsrc.py b/plotly/validators/choropleth/hoverlabel/_alignsrc.py index 4616498547..b4ac275353 100644 --- a/plotly/validators/choropleth/hoverlabel/_alignsrc.py +++ b/plotly/validators/choropleth/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choropleth/hoverlabel/_bgcolor.py b/plotly/validators/choropleth/hoverlabel/_bgcolor.py index 41377530fe..89988a03d4 100644 --- a/plotly/validators/choropleth/hoverlabel/_bgcolor.py +++ b/plotly/validators/choropleth/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/choropleth/hoverlabel/_bgcolorsrc.py b/plotly/validators/choropleth/hoverlabel/_bgcolorsrc.py index f8104c1384..29b4a19cac 100644 --- a/plotly/validators/choropleth/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/choropleth/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choropleth/hoverlabel/_bordercolor.py b/plotly/validators/choropleth/hoverlabel/_bordercolor.py index 83da7cdb3c..47c2603d1c 100644 --- a/plotly/validators/choropleth/hoverlabel/_bordercolor.py +++ b/plotly/validators/choropleth/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/choropleth/hoverlabel/_bordercolorsrc.py b/plotly/validators/choropleth/hoverlabel/_bordercolorsrc.py index d9d08a0e26..7be6a31145 100644 --- a/plotly/validators/choropleth/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/choropleth/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choropleth/hoverlabel/_font.py b/plotly/validators/choropleth/hoverlabel/_font.py index 60c62f076f..5a032709b3 100644 --- a/plotly/validators/choropleth/hoverlabel/_font.py +++ b/plotly/validators/choropleth/hoverlabel/_font.py @@ -1,87 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/choropleth/hoverlabel/_namelength.py b/plotly/validators/choropleth/hoverlabel/_namelength.py index 250baa5eba..64a74c7a5b 100644 --- a/plotly/validators/choropleth/hoverlabel/_namelength.py +++ b/plotly/validators/choropleth/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/choropleth/hoverlabel/_namelengthsrc.py b/plotly/validators/choropleth/hoverlabel/_namelengthsrc.py index 8bf1c0d704..6892257ef7 100644 --- a/plotly/validators/choropleth/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/choropleth/hoverlabel/_namelengthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choropleth/hoverlabel/font/__init__.py b/plotly/validators/choropleth/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/choropleth/hoverlabel/font/__init__.py +++ b/plotly/validators/choropleth/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/choropleth/hoverlabel/font/_color.py b/plotly/validators/choropleth/hoverlabel/font/_color.py index ab7144e019..205e9a209b 100644 --- a/plotly/validators/choropleth/hoverlabel/font/_color.py +++ b/plotly/validators/choropleth/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/choropleth/hoverlabel/font/_colorsrc.py b/plotly/validators/choropleth/hoverlabel/font/_colorsrc.py index 43d9bd9a03..91178382d0 100644 --- a/plotly/validators/choropleth/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/choropleth/hoverlabel/font/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choropleth/hoverlabel/font/_family.py b/plotly/validators/choropleth/hoverlabel/font/_family.py index baa4bbe2c7..d8eee8fd45 100644 --- a/plotly/validators/choropleth/hoverlabel/font/_family.py +++ b/plotly/validators/choropleth/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/choropleth/hoverlabel/font/_familysrc.py b/plotly/validators/choropleth/hoverlabel/font/_familysrc.py index b34fe45177..95c1e48f3e 100644 --- a/plotly/validators/choropleth/hoverlabel/font/_familysrc.py +++ b/plotly/validators/choropleth/hoverlabel/font/_familysrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choropleth/hoverlabel/font/_lineposition.py b/plotly/validators/choropleth/hoverlabel/font/_lineposition.py index 2c9a32d0aa..72918118b2 100644 --- a/plotly/validators/choropleth/hoverlabel/font/_lineposition.py +++ b/plotly/validators/choropleth/hoverlabel/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/choropleth/hoverlabel/font/_linepositionsrc.py b/plotly/validators/choropleth/hoverlabel/font/_linepositionsrc.py index 3c75a8d0dc..b9c8932138 100644 --- a/plotly/validators/choropleth/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/choropleth/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choropleth/hoverlabel/font/_shadow.py b/plotly/validators/choropleth/hoverlabel/font/_shadow.py index 21f410d145..7378a2ed47 100644 --- a/plotly/validators/choropleth/hoverlabel/font/_shadow.py +++ b/plotly/validators/choropleth/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/choropleth/hoverlabel/font/_shadowsrc.py b/plotly/validators/choropleth/hoverlabel/font/_shadowsrc.py index 01073e1357..7ab99dfb93 100644 --- a/plotly/validators/choropleth/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/choropleth/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choropleth/hoverlabel/font/_size.py b/plotly/validators/choropleth/hoverlabel/font/_size.py index a30f27bd5f..b61650c510 100644 --- a/plotly/validators/choropleth/hoverlabel/font/_size.py +++ b/plotly/validators/choropleth/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/choropleth/hoverlabel/font/_sizesrc.py b/plotly/validators/choropleth/hoverlabel/font/_sizesrc.py index 9df299a3bc..7b49ddba50 100644 --- a/plotly/validators/choropleth/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/choropleth/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choropleth/hoverlabel/font/_style.py b/plotly/validators/choropleth/hoverlabel/font/_style.py index 36ad00ae59..6615e93873 100644 --- a/plotly/validators/choropleth/hoverlabel/font/_style.py +++ b/plotly/validators/choropleth/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/choropleth/hoverlabel/font/_stylesrc.py b/plotly/validators/choropleth/hoverlabel/font/_stylesrc.py index ed102052e7..e73d3d4f57 100644 --- a/plotly/validators/choropleth/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/choropleth/hoverlabel/font/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choropleth/hoverlabel/font/_textcase.py b/plotly/validators/choropleth/hoverlabel/font/_textcase.py index 2d9539318f..614d1ef8f5 100644 --- a/plotly/validators/choropleth/hoverlabel/font/_textcase.py +++ b/plotly/validators/choropleth/hoverlabel/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/choropleth/hoverlabel/font/_textcasesrc.py b/plotly/validators/choropleth/hoverlabel/font/_textcasesrc.py index a0f205eba6..f6cad8b4af 100644 --- a/plotly/validators/choropleth/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/choropleth/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choropleth/hoverlabel/font/_variant.py b/plotly/validators/choropleth/hoverlabel/font/_variant.py index 700d8f8b38..e0b7bb2281 100644 --- a/plotly/validators/choropleth/hoverlabel/font/_variant.py +++ b/plotly/validators/choropleth/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/choropleth/hoverlabel/font/_variantsrc.py b/plotly/validators/choropleth/hoverlabel/font/_variantsrc.py index c03ef9d191..393b36eb01 100644 --- a/plotly/validators/choropleth/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/choropleth/hoverlabel/font/_variantsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choropleth/hoverlabel/font/_weight.py b/plotly/validators/choropleth/hoverlabel/font/_weight.py index 428fa8413b..99c14c115e 100644 --- a/plotly/validators/choropleth/hoverlabel/font/_weight.py +++ b/plotly/validators/choropleth/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/choropleth/hoverlabel/font/_weightsrc.py b/plotly/validators/choropleth/hoverlabel/font/_weightsrc.py index 2775bc49b3..c5bbcb4d81 100644 --- a/plotly/validators/choropleth/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/choropleth/hoverlabel/font/_weightsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choropleth/legendgrouptitle/__init__.py b/plotly/validators/choropleth/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/choropleth/legendgrouptitle/__init__.py +++ b/plotly/validators/choropleth/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/choropleth/legendgrouptitle/_font.py b/plotly/validators/choropleth/legendgrouptitle/_font.py index b0adf30906..3f057f0163 100644 --- a/plotly/validators/choropleth/legendgrouptitle/_font.py +++ b/plotly/validators/choropleth/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/choropleth/legendgrouptitle/_text.py b/plotly/validators/choropleth/legendgrouptitle/_text.py index dfb456a15f..d7ae813c2c 100644 --- a/plotly/validators/choropleth/legendgrouptitle/_text.py +++ b/plotly/validators/choropleth/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/choropleth/legendgrouptitle/font/__init__.py b/plotly/validators/choropleth/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/choropleth/legendgrouptitle/font/__init__.py +++ b/plotly/validators/choropleth/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/choropleth/legendgrouptitle/font/_color.py b/plotly/validators/choropleth/legendgrouptitle/font/_color.py index c86bb9862e..0d2c0075cb 100644 --- a/plotly/validators/choropleth/legendgrouptitle/font/_color.py +++ b/plotly/validators/choropleth/legendgrouptitle/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/choropleth/legendgrouptitle/font/_family.py b/plotly/validators/choropleth/legendgrouptitle/font/_family.py index 2becb0c7ea..17818237dd 100644 --- a/plotly/validators/choropleth/legendgrouptitle/font/_family.py +++ b/plotly/validators/choropleth/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/choropleth/legendgrouptitle/font/_lineposition.py b/plotly/validators/choropleth/legendgrouptitle/font/_lineposition.py index 11338b6396..222b133502 100644 --- a/plotly/validators/choropleth/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/choropleth/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/choropleth/legendgrouptitle/font/_shadow.py b/plotly/validators/choropleth/legendgrouptitle/font/_shadow.py index 2686892d74..8b39219f7f 100644 --- a/plotly/validators/choropleth/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/choropleth/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/choropleth/legendgrouptitle/font/_size.py b/plotly/validators/choropleth/legendgrouptitle/font/_size.py index ecdb4eaf5d..3d5f96fe86 100644 --- a/plotly/validators/choropleth/legendgrouptitle/font/_size.py +++ b/plotly/validators/choropleth/legendgrouptitle/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/choropleth/legendgrouptitle/font/_style.py b/plotly/validators/choropleth/legendgrouptitle/font/_style.py index e67a564072..05434cbfce 100644 --- a/plotly/validators/choropleth/legendgrouptitle/font/_style.py +++ b/plotly/validators/choropleth/legendgrouptitle/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/choropleth/legendgrouptitle/font/_textcase.py b/plotly/validators/choropleth/legendgrouptitle/font/_textcase.py index 1929650daa..63477eb7aa 100644 --- a/plotly/validators/choropleth/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/choropleth/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/choropleth/legendgrouptitle/font/_variant.py b/plotly/validators/choropleth/legendgrouptitle/font/_variant.py index c1f15750c5..d557404eeb 100644 --- a/plotly/validators/choropleth/legendgrouptitle/font/_variant.py +++ b/plotly/validators/choropleth/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/choropleth/legendgrouptitle/font/_weight.py b/plotly/validators/choropleth/legendgrouptitle/font/_weight.py index 258a65f2de..75daadf13c 100644 --- a/plotly/validators/choropleth/legendgrouptitle/font/_weight.py +++ b/plotly/validators/choropleth/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/choropleth/marker/__init__.py b/plotly/validators/choropleth/marker/__init__.py index 711bedd189..3f0890dec8 100644 --- a/plotly/validators/choropleth/marker/__init__.py +++ b/plotly/validators/choropleth/marker/__init__.py @@ -1,19 +1,12 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._opacitysrc.OpacitysrcValidator", + "._opacity.OpacityValidator", + "._line.LineValidator", + ], +) diff --git a/plotly/validators/choropleth/marker/_line.py b/plotly/validators/choropleth/marker/_line.py index 547bad0e28..643ec71d06 100644 --- a/plotly/validators/choropleth/marker/_line.py +++ b/plotly/validators/choropleth/marker/_line.py @@ -1,31 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choropleth/marker/_opacity.py b/plotly/validators/choropleth/marker/_opacity.py index 4df13693bc..f5aecc074e 100644 --- a/plotly/validators/choropleth/marker/_opacity.py +++ b/plotly/validators/choropleth/marker/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), diff --git a/plotly/validators/choropleth/marker/_opacitysrc.py b/plotly/validators/choropleth/marker/_opacitysrc.py index 9771883a88..b6e3ed4e87 100644 --- a/plotly/validators/choropleth/marker/_opacitysrc.py +++ b/plotly/validators/choropleth/marker/_opacitysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choropleth/marker/line/__init__.py b/plotly/validators/choropleth/marker/line/__init__.py index a2b9e1ae50..ca6d32f725 100644 --- a/plotly/validators/choropleth/marker/line/__init__.py +++ b/plotly/validators/choropleth/marker/line/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._widthsrc import WidthsrcValidator - from ._width import WidthValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._widthsrc.WidthsrcValidator", + "._width.WidthValidator", + "._colorsrc.ColorsrcValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/choropleth/marker/line/_color.py b/plotly/validators/choropleth/marker/line/_color.py index 3a3924f1de..da820a12eb 100644 --- a/plotly/validators/choropleth/marker/line/_color.py +++ b/plotly/validators/choropleth/marker/line/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/choropleth/marker/line/_colorsrc.py b/plotly/validators/choropleth/marker/line/_colorsrc.py index cfa763bed7..8d097cbbb9 100644 --- a/plotly/validators/choropleth/marker/line/_colorsrc.py +++ b/plotly/validators/choropleth/marker/line/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choropleth/marker/line/_width.py b/plotly/validators/choropleth/marker/line/_width.py index 2cbdfbb624..e605c69058 100644 --- a/plotly/validators/choropleth/marker/line/_width.py +++ b/plotly/validators/choropleth/marker/line/_width.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/choropleth/marker/line/_widthsrc.py b/plotly/validators/choropleth/marker/line/_widthsrc.py index 0d9d7dc919..6d4a5077c7 100644 --- a/plotly/validators/choropleth/marker/line/_widthsrc.py +++ b/plotly/validators/choropleth/marker/line/_widthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choropleth/selected/__init__.py b/plotly/validators/choropleth/selected/__init__.py index e9bdb89f26..20900abc1a 100644 --- a/plotly/validators/choropleth/selected/__init__.py +++ b/plotly/validators/choropleth/selected/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.MarkerValidator"] +) diff --git a/plotly/validators/choropleth/selected/_marker.py b/plotly/validators/choropleth/selected/_marker.py index 48a15eec4d..74ccfa0bb7 100644 --- a/plotly/validators/choropleth/selected/_marker.py +++ b/plotly/validators/choropleth/selected/_marker.py @@ -1,19 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choropleth/selected/marker/__init__.py b/plotly/validators/choropleth/selected/marker/__init__.py index 049134a716..ea80a8a0f0 100644 --- a/plotly/validators/choropleth/selected/marker/__init__.py +++ b/plotly/validators/choropleth/selected/marker/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._opacity.OpacityValidator"] +) diff --git a/plotly/validators/choropleth/selected/marker/_opacity.py b/plotly/validators/choropleth/selected/marker/_opacity.py index 0b98e257f8..86750ed001 100644 --- a/plotly/validators/choropleth/selected/marker/_opacity.py +++ b/plotly/validators/choropleth/selected/marker/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/choropleth/stream/__init__.py b/plotly/validators/choropleth/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/choropleth/stream/__init__.py +++ b/plotly/validators/choropleth/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/choropleth/stream/_maxpoints.py b/plotly/validators/choropleth/stream/_maxpoints.py index 5035673027..a03110203c 100644 --- a/plotly/validators/choropleth/stream/_maxpoints.py +++ b/plotly/validators/choropleth/stream/_maxpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/choropleth/stream/_token.py b/plotly/validators/choropleth/stream/_token.py index b3fab49246..4ab2a92920 100644 --- a/plotly/validators/choropleth/stream/_token.py +++ b/plotly/validators/choropleth/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/choropleth/unselected/__init__.py b/plotly/validators/choropleth/unselected/__init__.py index e9bdb89f26..20900abc1a 100644 --- a/plotly/validators/choropleth/unselected/__init__.py +++ b/plotly/validators/choropleth/unselected/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.MarkerValidator"] +) diff --git a/plotly/validators/choropleth/unselected/_marker.py b/plotly/validators/choropleth/unselected/_marker.py index 059e7cf4fc..cc5cd1e9fb 100644 --- a/plotly/validators/choropleth/unselected/_marker.py +++ b/plotly/validators/choropleth/unselected/_marker.py @@ -1,20 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choropleth/unselected/marker/__init__.py b/plotly/validators/choropleth/unselected/marker/__init__.py index 049134a716..ea80a8a0f0 100644 --- a/plotly/validators/choropleth/unselected/marker/__init__.py +++ b/plotly/validators/choropleth/unselected/marker/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._opacity.OpacityValidator"] +) diff --git a/plotly/validators/choropleth/unselected/marker/_opacity.py b/plotly/validators/choropleth/unselected/marker/_opacity.py index 3146f089ad..895b38167e 100644 --- a/plotly/validators/choropleth/unselected/marker/_opacity.py +++ b/plotly/validators/choropleth/unselected/marker/_opacity.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/choroplethmap/__init__.py b/plotly/validators/choroplethmap/__init__.py index 7fe8fbdc42..6cc11beb49 100644 --- a/plotly/validators/choroplethmap/__init__.py +++ b/plotly/validators/choroplethmap/__init__.py @@ -1,109 +1,57 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zsrc import ZsrcValidator - from ._zmin import ZminValidator - from ._zmid import ZmidValidator - from ._zmax import ZmaxValidator - from ._zauto import ZautoValidator - from ._z import ZValidator - from ._visible import VisibleValidator - from ._unselected import UnselectedValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._textsrc import TextsrcValidator - from ._text import TextValidator - from ._subplot import SubplotValidator - from ._stream import StreamValidator - from ._showscale import ShowscaleValidator - from ._showlegend import ShowlegendValidator - from ._selectedpoints import SelectedpointsValidator - from ._selected import SelectedValidator - from ._reversescale import ReversescaleValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._marker import MarkerValidator - from ._locationssrc import LocationssrcValidator - from ._locations import LocationsValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._geojson import GeojsonValidator - from ._featureidkey import FeatureidkeyValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._below import BelowValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/choroplethmap/_autocolorscale.py b/plotly/validators/choroplethmap/_autocolorscale.py index ebc1688f03..66010128bb 100644 --- a/plotly/validators/choroplethmap/_autocolorscale.py +++ b/plotly/validators/choroplethmap/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/choroplethmap/_below.py b/plotly/validators/choroplethmap/_below.py index 2f4097e7b8..65515f8a28 100644 --- a/plotly/validators/choroplethmap/_below.py +++ b/plotly/validators/choroplethmap/_below.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BelowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/_coloraxis.py b/plotly/validators/choroplethmap/_coloraxis.py index d5acd98233..7b713b0ec6 100644 --- a/plotly/validators/choroplethmap/_coloraxis.py +++ b/plotly/validators/choroplethmap/_coloraxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/choroplethmap/_colorbar.py b/plotly/validators/choroplethmap/_colorbar.py index 8ca58b0793..1d87993c6b 100644 --- a/plotly/validators/choroplethmap/_colorbar.py +++ b/plotly/validators/choroplethmap/_colorbar.py @@ -1,279 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choroplethmap/_colorscale.py b/plotly/validators/choroplethmap/_colorscale.py index e0fb5b49ae..150cdd1d81 100644 --- a/plotly/validators/choroplethmap/_colorscale.py +++ b/plotly/validators/choroplethmap/_colorscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/choroplethmap/_customdata.py b/plotly/validators/choroplethmap/_customdata.py index caa9f53299..03b0db72e3 100644 --- a/plotly/validators/choroplethmap/_customdata.py +++ b/plotly/validators/choroplethmap/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/_customdatasrc.py b/plotly/validators/choroplethmap/_customdatasrc.py index d5fc207ccb..4f0d58962c 100644 --- a/plotly/validators/choroplethmap/_customdatasrc.py +++ b/plotly/validators/choroplethmap/_customdatasrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/_featureidkey.py b/plotly/validators/choroplethmap/_featureidkey.py index 01f865fe1d..5b0c8ca47c 100644 --- a/plotly/validators/choroplethmap/_featureidkey.py +++ b/plotly/validators/choroplethmap/_featureidkey.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FeatureidkeyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/_geojson.py b/plotly/validators/choroplethmap/_geojson.py index 9b557fae03..bde48c2a79 100644 --- a/plotly/validators/choroplethmap/_geojson.py +++ b/plotly/validators/choroplethmap/_geojson.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GeojsonValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/_hoverinfo.py b/plotly/validators/choroplethmap/_hoverinfo.py index 0d3c691c0f..fec344013e 100644 --- a/plotly/validators/choroplethmap/_hoverinfo.py +++ b/plotly/validators/choroplethmap/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/choroplethmap/_hoverinfosrc.py b/plotly/validators/choroplethmap/_hoverinfosrc.py index 850589f59f..1f3e43bdf9 100644 --- a/plotly/validators/choroplethmap/_hoverinfosrc.py +++ b/plotly/validators/choroplethmap/_hoverinfosrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/_hoverlabel.py b/plotly/validators/choroplethmap/_hoverlabel.py index 72cb56cbca..6f10d65939 100644 --- a/plotly/validators/choroplethmap/_hoverlabel.py +++ b/plotly/validators/choroplethmap/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choroplethmap/_hovertemplate.py b/plotly/validators/choroplethmap/_hovertemplate.py index a59b0cea05..2d9e150733 100644 --- a/plotly/validators/choroplethmap/_hovertemplate.py +++ b/plotly/validators/choroplethmap/_hovertemplate.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/choroplethmap/_hovertemplatesrc.py b/plotly/validators/choroplethmap/_hovertemplatesrc.py index 962b2d24fd..3b31573611 100644 --- a/plotly/validators/choroplethmap/_hovertemplatesrc.py +++ b/plotly/validators/choroplethmap/_hovertemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/_hovertext.py b/plotly/validators/choroplethmap/_hovertext.py index 12edaf97e1..45adee469b 100644 --- a/plotly/validators/choroplethmap/_hovertext.py +++ b/plotly/validators/choroplethmap/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/choroplethmap/_hovertextsrc.py b/plotly/validators/choroplethmap/_hovertextsrc.py index 90c373d001..ba446b009e 100644 --- a/plotly/validators/choroplethmap/_hovertextsrc.py +++ b/plotly/validators/choroplethmap/_hovertextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/_ids.py b/plotly/validators/choroplethmap/_ids.py index a5ef2862bf..6b62671edb 100644 --- a/plotly/validators/choroplethmap/_ids.py +++ b/plotly/validators/choroplethmap/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/_idssrc.py b/plotly/validators/choroplethmap/_idssrc.py index 4b9d03020d..2014251a75 100644 --- a/plotly/validators/choroplethmap/_idssrc.py +++ b/plotly/validators/choroplethmap/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/_legend.py b/plotly/validators/choroplethmap/_legend.py index 64129d0a7e..482009ea54 100644 --- a/plotly/validators/choroplethmap/_legend.py +++ b/plotly/validators/choroplethmap/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/choroplethmap/_legendgroup.py b/plotly/validators/choroplethmap/_legendgroup.py index c7e157f35e..13d2659cea 100644 --- a/plotly/validators/choroplethmap/_legendgroup.py +++ b/plotly/validators/choroplethmap/_legendgroup.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/_legendgrouptitle.py b/plotly/validators/choroplethmap/_legendgrouptitle.py index 8516009ff5..368f88d33f 100644 --- a/plotly/validators/choroplethmap/_legendgrouptitle.py +++ b/plotly/validators/choroplethmap/_legendgrouptitle.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choroplethmap/_legendrank.py b/plotly/validators/choroplethmap/_legendrank.py index 4a98688346..931929be7a 100644 --- a/plotly/validators/choroplethmap/_legendrank.py +++ b/plotly/validators/choroplethmap/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/_legendwidth.py b/plotly/validators/choroplethmap/_legendwidth.py index 756a339486..1261cdecb6 100644 --- a/plotly/validators/choroplethmap/_legendwidth.py +++ b/plotly/validators/choroplethmap/_legendwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/choroplethmap/_locations.py b/plotly/validators/choroplethmap/_locations.py index ccf3870cb4..8bc41f323a 100644 --- a/plotly/validators/choroplethmap/_locations.py +++ b/plotly/validators/choroplethmap/_locations.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LocationsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/_locationssrc.py b/plotly/validators/choroplethmap/_locationssrc.py index 7c393b055d..b1e9b3dae7 100644 --- a/plotly/validators/choroplethmap/_locationssrc.py +++ b/plotly/validators/choroplethmap/_locationssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LocationssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/_marker.py b/plotly/validators/choroplethmap/_marker.py index 50210d93eb..8865322f78 100644 --- a/plotly/validators/choroplethmap/_marker.py +++ b/plotly/validators/choroplethmap/_marker.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choroplethmap/_meta.py b/plotly/validators/choroplethmap/_meta.py index e62758e024..dfa78d89d2 100644 --- a/plotly/validators/choroplethmap/_meta.py +++ b/plotly/validators/choroplethmap/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/choroplethmap/_metasrc.py b/plotly/validators/choroplethmap/_metasrc.py index 83646e8303..699d2739f8 100644 --- a/plotly/validators/choroplethmap/_metasrc.py +++ b/plotly/validators/choroplethmap/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/_name.py b/plotly/validators/choroplethmap/_name.py index bd72135c23..6a5703ff49 100644 --- a/plotly/validators/choroplethmap/_name.py +++ b/plotly/validators/choroplethmap/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/_reversescale.py b/plotly/validators/choroplethmap/_reversescale.py index 6801b5302b..10f31e2275 100644 --- a/plotly/validators/choroplethmap/_reversescale.py +++ b/plotly/validators/choroplethmap/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/_selected.py b/plotly/validators/choroplethmap/_selected.py index 49c67ef10f..dfe084a51a 100644 --- a/plotly/validators/choroplethmap/_selected.py +++ b/plotly/validators/choroplethmap/_selected.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choroplethmap/_selectedpoints.py b/plotly/validators/choroplethmap/_selectedpoints.py index 2b825a6ed1..d1ffc5c96f 100644 --- a/plotly/validators/choroplethmap/_selectedpoints.py +++ b/plotly/validators/choroplethmap/_selectedpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/_showlegend.py b/plotly/validators/choroplethmap/_showlegend.py index 5db21dfbe4..c1bfafeb22 100644 --- a/plotly/validators/choroplethmap/_showlegend.py +++ b/plotly/validators/choroplethmap/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/_showscale.py b/plotly/validators/choroplethmap/_showscale.py index 78ca26be3b..5da8995bd4 100644 --- a/plotly/validators/choroplethmap/_showscale.py +++ b/plotly/validators/choroplethmap/_showscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/_stream.py b/plotly/validators/choroplethmap/_stream.py index 96caf2388d..d4a41fa7ca 100644 --- a/plotly/validators/choroplethmap/_stream.py +++ b/plotly/validators/choroplethmap/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choroplethmap/_subplot.py b/plotly/validators/choroplethmap/_subplot.py index 8bf094f983..2837bf2bc2 100644 --- a/plotly/validators/choroplethmap/_subplot.py +++ b/plotly/validators/choroplethmap/_subplot.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SubplotValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "map"), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/choroplethmap/_text.py b/plotly/validators/choroplethmap/_text.py index f45483bba0..b8d2f18680 100644 --- a/plotly/validators/choroplethmap/_text.py +++ b/plotly/validators/choroplethmap/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/choroplethmap/_textsrc.py b/plotly/validators/choroplethmap/_textsrc.py index 096ecac752..063db276bb 100644 --- a/plotly/validators/choroplethmap/_textsrc.py +++ b/plotly/validators/choroplethmap/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/_uid.py b/plotly/validators/choroplethmap/_uid.py index fb06eaebcf..20ffb10227 100644 --- a/plotly/validators/choroplethmap/_uid.py +++ b/plotly/validators/choroplethmap/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/_uirevision.py b/plotly/validators/choroplethmap/_uirevision.py index 6852a67ae6..817f2ca302 100644 --- a/plotly/validators/choroplethmap/_uirevision.py +++ b/plotly/validators/choroplethmap/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/_unselected.py b/plotly/validators/choroplethmap/_unselected.py index b020b7a9b1..b8597627a0 100644 --- a/plotly/validators/choroplethmap/_unselected.py +++ b/plotly/validators/choroplethmap/_unselected.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choroplethmap/_visible.py b/plotly/validators/choroplethmap/_visible.py index 52812d21f1..a4e16cd884 100644 --- a/plotly/validators/choroplethmap/_visible.py +++ b/plotly/validators/choroplethmap/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/choroplethmap/_z.py b/plotly/validators/choroplethmap/_z.py index 6ad9ebe532..819e88c76c 100644 --- a/plotly/validators/choroplethmap/_z.py +++ b/plotly/validators/choroplethmap/_z.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/_zauto.py b/plotly/validators/choroplethmap/_zauto.py index 1f99ccda3b..a5ae981a15 100644 --- a/plotly/validators/choroplethmap/_zauto.py +++ b/plotly/validators/choroplethmap/_zauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/choroplethmap/_zmax.py b/plotly/validators/choroplethmap/_zmax.py index 1928457587..6f59a243ac 100644 --- a/plotly/validators/choroplethmap/_zmax.py +++ b/plotly/validators/choroplethmap/_zmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"zauto": False}), **kwargs, diff --git a/plotly/validators/choroplethmap/_zmid.py b/plotly/validators/choroplethmap/_zmid.py index b7126f60ff..7b0d931dba 100644 --- a/plotly/validators/choroplethmap/_zmid.py +++ b/plotly/validators/choroplethmap/_zmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/choroplethmap/_zmin.py b/plotly/validators/choroplethmap/_zmin.py index 9e6949622c..b74fd1ea7c 100644 --- a/plotly/validators/choroplethmap/_zmin.py +++ b/plotly/validators/choroplethmap/_zmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"zauto": False}), **kwargs, diff --git a/plotly/validators/choroplethmap/_zsrc.py b/plotly/validators/choroplethmap/_zsrc.py index 2f134025da..4e8f800308 100644 --- a/plotly/validators/choroplethmap/_zsrc.py +++ b/plotly/validators/choroplethmap/_zsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/colorbar/__init__.py b/plotly/validators/choroplethmap/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/choroplethmap/colorbar/__init__.py +++ b/plotly/validators/choroplethmap/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/choroplethmap/colorbar/_bgcolor.py b/plotly/validators/choroplethmap/colorbar/_bgcolor.py index df726700db..9103a80d96 100644 --- a/plotly/validators/choroplethmap/colorbar/_bgcolor.py +++ b/plotly/validators/choroplethmap/colorbar/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/colorbar/_bordercolor.py b/plotly/validators/choroplethmap/colorbar/_bordercolor.py index ae42bcce83..ee380eb95f 100644 --- a/plotly/validators/choroplethmap/colorbar/_bordercolor.py +++ b/plotly/validators/choroplethmap/colorbar/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/colorbar/_borderwidth.py b/plotly/validators/choroplethmap/colorbar/_borderwidth.py index 15b47d8e69..2cbddaeec7 100644 --- a/plotly/validators/choroplethmap/colorbar/_borderwidth.py +++ b/plotly/validators/choroplethmap/colorbar/_borderwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/choroplethmap/colorbar/_dtick.py b/plotly/validators/choroplethmap/colorbar/_dtick.py index 5668ced91a..13d66f7625 100644 --- a/plotly/validators/choroplethmap/colorbar/_dtick.py +++ b/plotly/validators/choroplethmap/colorbar/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/choroplethmap/colorbar/_exponentformat.py b/plotly/validators/choroplethmap/colorbar/_exponentformat.py index e278237f30..ffd679d20a 100644 --- a/plotly/validators/choroplethmap/colorbar/_exponentformat.py +++ b/plotly/validators/choroplethmap/colorbar/_exponentformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/choroplethmap/colorbar/_labelalias.py b/plotly/validators/choroplethmap/colorbar/_labelalias.py index 8b17bb9cf6..154f7a2e11 100644 --- a/plotly/validators/choroplethmap/colorbar/_labelalias.py +++ b/plotly/validators/choroplethmap/colorbar/_labelalias.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/colorbar/_len.py b/plotly/validators/choroplethmap/colorbar/_len.py index f5076680b9..9b78d3d17f 100644 --- a/plotly/validators/choroplethmap/colorbar/_len.py +++ b/plotly/validators/choroplethmap/colorbar/_len.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/choroplethmap/colorbar/_lenmode.py b/plotly/validators/choroplethmap/colorbar/_lenmode.py index 6a6ea32593..bc5ea08695 100644 --- a/plotly/validators/choroplethmap/colorbar/_lenmode.py +++ b/plotly/validators/choroplethmap/colorbar/_lenmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/choroplethmap/colorbar/_minexponent.py b/plotly/validators/choroplethmap/colorbar/_minexponent.py index f74f6267d9..635761ad2b 100644 --- a/plotly/validators/choroplethmap/colorbar/_minexponent.py +++ b/plotly/validators/choroplethmap/colorbar/_minexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/choroplethmap/colorbar/_nticks.py b/plotly/validators/choroplethmap/colorbar/_nticks.py index ece4fb4ccc..423be98ac0 100644 --- a/plotly/validators/choroplethmap/colorbar/_nticks.py +++ b/plotly/validators/choroplethmap/colorbar/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/choroplethmap/colorbar/_orientation.py b/plotly/validators/choroplethmap/colorbar/_orientation.py index feff3920bc..100bae23a7 100644 --- a/plotly/validators/choroplethmap/colorbar/_orientation.py +++ b/plotly/validators/choroplethmap/colorbar/_orientation.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/choroplethmap/colorbar/_outlinecolor.py b/plotly/validators/choroplethmap/colorbar/_outlinecolor.py index 8db948e0c7..0de7d84d54 100644 --- a/plotly/validators/choroplethmap/colorbar/_outlinecolor.py +++ b/plotly/validators/choroplethmap/colorbar/_outlinecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/colorbar/_outlinewidth.py b/plotly/validators/choroplethmap/colorbar/_outlinewidth.py index 6bee1ad281..04d4844848 100644 --- a/plotly/validators/choroplethmap/colorbar/_outlinewidth.py +++ b/plotly/validators/choroplethmap/colorbar/_outlinewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/choroplethmap/colorbar/_separatethousands.py b/plotly/validators/choroplethmap/colorbar/_separatethousands.py index a319758bb6..48e13b303c 100644 --- a/plotly/validators/choroplethmap/colorbar/_separatethousands.py +++ b/plotly/validators/choroplethmap/colorbar/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/colorbar/_showexponent.py b/plotly/validators/choroplethmap/colorbar/_showexponent.py index 2804d8e6f5..208e228156 100644 --- a/plotly/validators/choroplethmap/colorbar/_showexponent.py +++ b/plotly/validators/choroplethmap/colorbar/_showexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/choroplethmap/colorbar/_showticklabels.py b/plotly/validators/choroplethmap/colorbar/_showticklabels.py index 1bb1a56577..42be828b39 100644 --- a/plotly/validators/choroplethmap/colorbar/_showticklabels.py +++ b/plotly/validators/choroplethmap/colorbar/_showticklabels.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/colorbar/_showtickprefix.py b/plotly/validators/choroplethmap/colorbar/_showtickprefix.py index 4faedc00f3..6548258609 100644 --- a/plotly/validators/choroplethmap/colorbar/_showtickprefix.py +++ b/plotly/validators/choroplethmap/colorbar/_showtickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/choroplethmap/colorbar/_showticksuffix.py b/plotly/validators/choroplethmap/colorbar/_showticksuffix.py index bb1186be83..c8de677346 100644 --- a/plotly/validators/choroplethmap/colorbar/_showticksuffix.py +++ b/plotly/validators/choroplethmap/colorbar/_showticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/choroplethmap/colorbar/_thickness.py b/plotly/validators/choroplethmap/colorbar/_thickness.py index bd92180faa..ec3268dbe3 100644 --- a/plotly/validators/choroplethmap/colorbar/_thickness.py +++ b/plotly/validators/choroplethmap/colorbar/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/choroplethmap/colorbar/_thicknessmode.py b/plotly/validators/choroplethmap/colorbar/_thicknessmode.py index 7ca21d6b6e..a3fe9a07e2 100644 --- a/plotly/validators/choroplethmap/colorbar/_thicknessmode.py +++ b/plotly/validators/choroplethmap/colorbar/_thicknessmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/choroplethmap/colorbar/_tick0.py b/plotly/validators/choroplethmap/colorbar/_tick0.py index f0fa73390f..3595afda52 100644 --- a/plotly/validators/choroplethmap/colorbar/_tick0.py +++ b/plotly/validators/choroplethmap/colorbar/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/choroplethmap/colorbar/_tickangle.py b/plotly/validators/choroplethmap/colorbar/_tickangle.py index 2b81833c61..ba9ce89edf 100644 --- a/plotly/validators/choroplethmap/colorbar/_tickangle.py +++ b/plotly/validators/choroplethmap/colorbar/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/colorbar/_tickcolor.py b/plotly/validators/choroplethmap/colorbar/_tickcolor.py index 9f393f9c9a..62046885c4 100644 --- a/plotly/validators/choroplethmap/colorbar/_tickcolor.py +++ b/plotly/validators/choroplethmap/colorbar/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/colorbar/_tickfont.py b/plotly/validators/choroplethmap/colorbar/_tickfont.py index c44c26b6f1..21aad2b484 100644 --- a/plotly/validators/choroplethmap/colorbar/_tickfont.py +++ b/plotly/validators/choroplethmap/colorbar/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/choroplethmap/colorbar/_tickformat.py b/plotly/validators/choroplethmap/colorbar/_tickformat.py index dd268512fd..7ac7c8d538 100644 --- a/plotly/validators/choroplethmap/colorbar/_tickformat.py +++ b/plotly/validators/choroplethmap/colorbar/_tickformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/colorbar/_tickformatstopdefaults.py b/plotly/validators/choroplethmap/colorbar/_tickformatstopdefaults.py index afce1b37d9..31fbd3618d 100644 --- a/plotly/validators/choroplethmap/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/choroplethmap/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/choroplethmap/colorbar/_tickformatstops.py b/plotly/validators/choroplethmap/colorbar/_tickformatstops.py index 249ae2b384..93314ca621 100644 --- a/plotly/validators/choroplethmap/colorbar/_tickformatstops.py +++ b/plotly/validators/choroplethmap/colorbar/_tickformatstops.py @@ -1,53 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choroplethmap/colorbar/_ticklabeloverflow.py b/plotly/validators/choroplethmap/colorbar/_ticklabeloverflow.py index a51335a5e9..c26d72a609 100644 --- a/plotly/validators/choroplethmap/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/choroplethmap/colorbar/_ticklabeloverflow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/choroplethmap/colorbar/_ticklabelposition.py b/plotly/validators/choroplethmap/colorbar/_ticklabelposition.py index 5e53a6b0a0..111bcf381a 100644 --- a/plotly/validators/choroplethmap/colorbar/_ticklabelposition.py +++ b/plotly/validators/choroplethmap/colorbar/_ticklabelposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/choroplethmap/colorbar/_ticklabelstep.py b/plotly/validators/choroplethmap/colorbar/_ticklabelstep.py index 2514fac94c..4af5f452c0 100644 --- a/plotly/validators/choroplethmap/colorbar/_ticklabelstep.py +++ b/plotly/validators/choroplethmap/colorbar/_ticklabelstep.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/choroplethmap/colorbar/_ticklen.py b/plotly/validators/choroplethmap/colorbar/_ticklen.py index 5f5334905c..14b6c4939b 100644 --- a/plotly/validators/choroplethmap/colorbar/_ticklen.py +++ b/plotly/validators/choroplethmap/colorbar/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/choroplethmap/colorbar/_tickmode.py b/plotly/validators/choroplethmap/colorbar/_tickmode.py index 9f988e6423..49e9996857 100644 --- a/plotly/validators/choroplethmap/colorbar/_tickmode.py +++ b/plotly/validators/choroplethmap/colorbar/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/choroplethmap/colorbar/_tickprefix.py b/plotly/validators/choroplethmap/colorbar/_tickprefix.py index 52b93dc3d9..edb67c071f 100644 --- a/plotly/validators/choroplethmap/colorbar/_tickprefix.py +++ b/plotly/validators/choroplethmap/colorbar/_tickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/colorbar/_ticks.py b/plotly/validators/choroplethmap/colorbar/_ticks.py index 4e843ee5eb..942de138e5 100644 --- a/plotly/validators/choroplethmap/colorbar/_ticks.py +++ b/plotly/validators/choroplethmap/colorbar/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/choroplethmap/colorbar/_ticksuffix.py b/plotly/validators/choroplethmap/colorbar/_ticksuffix.py index f7242b0cff..1b0b8e02d4 100644 --- a/plotly/validators/choroplethmap/colorbar/_ticksuffix.py +++ b/plotly/validators/choroplethmap/colorbar/_ticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/colorbar/_ticktext.py b/plotly/validators/choroplethmap/colorbar/_ticktext.py index 3d923ed603..0a2137518c 100644 --- a/plotly/validators/choroplethmap/colorbar/_ticktext.py +++ b/plotly/validators/choroplethmap/colorbar/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/colorbar/_ticktextsrc.py b/plotly/validators/choroplethmap/colorbar/_ticktextsrc.py index 280426204b..e76a9ef0c4 100644 --- a/plotly/validators/choroplethmap/colorbar/_ticktextsrc.py +++ b/plotly/validators/choroplethmap/colorbar/_ticktextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/colorbar/_tickvals.py b/plotly/validators/choroplethmap/colorbar/_tickvals.py index c470da7532..6b8c57cf77 100644 --- a/plotly/validators/choroplethmap/colorbar/_tickvals.py +++ b/plotly/validators/choroplethmap/colorbar/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/colorbar/_tickvalssrc.py b/plotly/validators/choroplethmap/colorbar/_tickvalssrc.py index 524c84cecf..85bd9f30be 100644 --- a/plotly/validators/choroplethmap/colorbar/_tickvalssrc.py +++ b/plotly/validators/choroplethmap/colorbar/_tickvalssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/colorbar/_tickwidth.py b/plotly/validators/choroplethmap/colorbar/_tickwidth.py index 6edd12e931..a6a452b779 100644 --- a/plotly/validators/choroplethmap/colorbar/_tickwidth.py +++ b/plotly/validators/choroplethmap/colorbar/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/choroplethmap/colorbar/_title.py b/plotly/validators/choroplethmap/colorbar/_title.py index d8d7945bb4..a9ee7117ea 100644 --- a/plotly/validators/choroplethmap/colorbar/_title.py +++ b/plotly/validators/choroplethmap/colorbar/_title.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choroplethmap/colorbar/_x.py b/plotly/validators/choroplethmap/colorbar/_x.py index 322e53a07a..1fe5744c8a 100644 --- a/plotly/validators/choroplethmap/colorbar/_x.py +++ b/plotly/validators/choroplethmap/colorbar/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/colorbar/_xanchor.py b/plotly/validators/choroplethmap/colorbar/_xanchor.py index e7c8569630..d617135ed5 100644 --- a/plotly/validators/choroplethmap/colorbar/_xanchor.py +++ b/plotly/validators/choroplethmap/colorbar/_xanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/choroplethmap/colorbar/_xpad.py b/plotly/validators/choroplethmap/colorbar/_xpad.py index c0b4b74419..5c7a83d420 100644 --- a/plotly/validators/choroplethmap/colorbar/_xpad.py +++ b/plotly/validators/choroplethmap/colorbar/_xpad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/choroplethmap/colorbar/_xref.py b/plotly/validators/choroplethmap/colorbar/_xref.py index 35860db609..41c1d76035 100644 --- a/plotly/validators/choroplethmap/colorbar/_xref.py +++ b/plotly/validators/choroplethmap/colorbar/_xref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/choroplethmap/colorbar/_y.py b/plotly/validators/choroplethmap/colorbar/_y.py index 264b02436e..031ade396a 100644 --- a/plotly/validators/choroplethmap/colorbar/_y.py +++ b/plotly/validators/choroplethmap/colorbar/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/colorbar/_yanchor.py b/plotly/validators/choroplethmap/colorbar/_yanchor.py index 775e308c68..6d6296303e 100644 --- a/plotly/validators/choroplethmap/colorbar/_yanchor.py +++ b/plotly/validators/choroplethmap/colorbar/_yanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/choroplethmap/colorbar/_ypad.py b/plotly/validators/choroplethmap/colorbar/_ypad.py index e4bd5a0376..482d3d5929 100644 --- a/plotly/validators/choroplethmap/colorbar/_ypad.py +++ b/plotly/validators/choroplethmap/colorbar/_ypad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/choroplethmap/colorbar/_yref.py b/plotly/validators/choroplethmap/colorbar/_yref.py index 6b1f48879d..acba7133d2 100644 --- a/plotly/validators/choroplethmap/colorbar/_yref.py +++ b/plotly/validators/choroplethmap/colorbar/_yref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/choroplethmap/colorbar/tickfont/__init__.py b/plotly/validators/choroplethmap/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/choroplethmap/colorbar/tickfont/__init__.py +++ b/plotly/validators/choroplethmap/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/choroplethmap/colorbar/tickfont/_color.py b/plotly/validators/choroplethmap/colorbar/tickfont/_color.py index 2cb4bb06bd..f83ae334e7 100644 --- a/plotly/validators/choroplethmap/colorbar/tickfont/_color.py +++ b/plotly/validators/choroplethmap/colorbar/tickfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/colorbar/tickfont/_family.py b/plotly/validators/choroplethmap/colorbar/tickfont/_family.py index 5770789e29..6770d77aa0 100644 --- a/plotly/validators/choroplethmap/colorbar/tickfont/_family.py +++ b/plotly/validators/choroplethmap/colorbar/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/choroplethmap/colorbar/tickfont/_lineposition.py b/plotly/validators/choroplethmap/colorbar/tickfont/_lineposition.py index 1a730691b2..8f0f63b539 100644 --- a/plotly/validators/choroplethmap/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/choroplethmap/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/choroplethmap/colorbar/tickfont/_shadow.py b/plotly/validators/choroplethmap/colorbar/tickfont/_shadow.py index 24dd884d76..115a8e743a 100644 --- a/plotly/validators/choroplethmap/colorbar/tickfont/_shadow.py +++ b/plotly/validators/choroplethmap/colorbar/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/colorbar/tickfont/_size.py b/plotly/validators/choroplethmap/colorbar/tickfont/_size.py index 33854bfb4e..7bfaf519ba 100644 --- a/plotly/validators/choroplethmap/colorbar/tickfont/_size.py +++ b/plotly/validators/choroplethmap/colorbar/tickfont/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/choroplethmap/colorbar/tickfont/_style.py b/plotly/validators/choroplethmap/colorbar/tickfont/_style.py index 7f76437bbf..982a076059 100644 --- a/plotly/validators/choroplethmap/colorbar/tickfont/_style.py +++ b/plotly/validators/choroplethmap/colorbar/tickfont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/choroplethmap/colorbar/tickfont/_textcase.py b/plotly/validators/choroplethmap/colorbar/tickfont/_textcase.py index 488b7b49b2..2831ade672 100644 --- a/plotly/validators/choroplethmap/colorbar/tickfont/_textcase.py +++ b/plotly/validators/choroplethmap/colorbar/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/choroplethmap/colorbar/tickfont/_variant.py b/plotly/validators/choroplethmap/colorbar/tickfont/_variant.py index fa4e8c751b..34cabcfd57 100644 --- a/plotly/validators/choroplethmap/colorbar/tickfont/_variant.py +++ b/plotly/validators/choroplethmap/colorbar/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/choroplethmap/colorbar/tickfont/_weight.py b/plotly/validators/choroplethmap/colorbar/tickfont/_weight.py index 7b9654c231..7bf74c6887 100644 --- a/plotly/validators/choroplethmap/colorbar/tickfont/_weight.py +++ b/plotly/validators/choroplethmap/colorbar/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/choroplethmap/colorbar/tickformatstop/__init__.py b/plotly/validators/choroplethmap/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/choroplethmap/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/choroplethmap/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/choroplethmap/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/choroplethmap/colorbar/tickformatstop/_dtickrange.py index 2762d6e49d..4c0d62f6f9 100644 --- a/plotly/validators/choroplethmap/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/choroplethmap/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( "items", diff --git a/plotly/validators/choroplethmap/colorbar/tickformatstop/_enabled.py b/plotly/validators/choroplethmap/colorbar/tickformatstop/_enabled.py index 055162254a..746889a9c5 100644 --- a/plotly/validators/choroplethmap/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/choroplethmap/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/colorbar/tickformatstop/_name.py b/plotly/validators/choroplethmap/colorbar/tickformatstop/_name.py index 5e6ad9d1bb..b2029a3b7c 100644 --- a/plotly/validators/choroplethmap/colorbar/tickformatstop/_name.py +++ b/plotly/validators/choroplethmap/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/choroplethmap/colorbar/tickformatstop/_templateitemname.py index 4a51c9fb50..058e7d644e 100644 --- a/plotly/validators/choroplethmap/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/choroplethmap/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/colorbar/tickformatstop/_value.py b/plotly/validators/choroplethmap/colorbar/tickformatstop/_value.py index e88fea5f54..2456456da1 100644 --- a/plotly/validators/choroplethmap/colorbar/tickformatstop/_value.py +++ b/plotly/validators/choroplethmap/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/colorbar/title/__init__.py b/plotly/validators/choroplethmap/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/choroplethmap/colorbar/title/__init__.py +++ b/plotly/validators/choroplethmap/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/choroplethmap/colorbar/title/_font.py b/plotly/validators/choroplethmap/colorbar/title/_font.py index 0a3722c295..9ba611ab08 100644 --- a/plotly/validators/choroplethmap/colorbar/title/_font.py +++ b/plotly/validators/choroplethmap/colorbar/title/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/choroplethmap/colorbar/title/_side.py b/plotly/validators/choroplethmap/colorbar/title/_side.py index a31a0993ae..a69d3a9eed 100644 --- a/plotly/validators/choroplethmap/colorbar/title/_side.py +++ b/plotly/validators/choroplethmap/colorbar/title/_side.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/choroplethmap/colorbar/title/_text.py b/plotly/validators/choroplethmap/colorbar/title/_text.py index fb6f397b88..9c09da6693 100644 --- a/plotly/validators/choroplethmap/colorbar/title/_text.py +++ b/plotly/validators/choroplethmap/colorbar/title/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/colorbar/title/font/__init__.py b/plotly/validators/choroplethmap/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/choroplethmap/colorbar/title/font/__init__.py +++ b/plotly/validators/choroplethmap/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/choroplethmap/colorbar/title/font/_color.py b/plotly/validators/choroplethmap/colorbar/title/font/_color.py index 8a245cae6d..9e4da030f4 100644 --- a/plotly/validators/choroplethmap/colorbar/title/font/_color.py +++ b/plotly/validators/choroplethmap/colorbar/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/colorbar/title/font/_family.py b/plotly/validators/choroplethmap/colorbar/title/font/_family.py index f9203387d1..b63a2a3de1 100644 --- a/plotly/validators/choroplethmap/colorbar/title/font/_family.py +++ b/plotly/validators/choroplethmap/colorbar/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/choroplethmap/colorbar/title/font/_lineposition.py b/plotly/validators/choroplethmap/colorbar/title/font/_lineposition.py index 4e33846f21..c30f831d31 100644 --- a/plotly/validators/choroplethmap/colorbar/title/font/_lineposition.py +++ b/plotly/validators/choroplethmap/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/choroplethmap/colorbar/title/font/_shadow.py b/plotly/validators/choroplethmap/colorbar/title/font/_shadow.py index 591d3eccd1..aa45748481 100644 --- a/plotly/validators/choroplethmap/colorbar/title/font/_shadow.py +++ b/plotly/validators/choroplethmap/colorbar/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/colorbar/title/font/_size.py b/plotly/validators/choroplethmap/colorbar/title/font/_size.py index 37864d5f7f..9d3e096c65 100644 --- a/plotly/validators/choroplethmap/colorbar/title/font/_size.py +++ b/plotly/validators/choroplethmap/colorbar/title/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/choroplethmap/colorbar/title/font/_style.py b/plotly/validators/choroplethmap/colorbar/title/font/_style.py index d82b117014..1df3249aaa 100644 --- a/plotly/validators/choroplethmap/colorbar/title/font/_style.py +++ b/plotly/validators/choroplethmap/colorbar/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/choroplethmap/colorbar/title/font/_textcase.py b/plotly/validators/choroplethmap/colorbar/title/font/_textcase.py index ee6548aeed..34c16fce55 100644 --- a/plotly/validators/choroplethmap/colorbar/title/font/_textcase.py +++ b/plotly/validators/choroplethmap/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/choroplethmap/colorbar/title/font/_variant.py b/plotly/validators/choroplethmap/colorbar/title/font/_variant.py index e43268cbe1..7ad639d4e9 100644 --- a/plotly/validators/choroplethmap/colorbar/title/font/_variant.py +++ b/plotly/validators/choroplethmap/colorbar/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/choroplethmap/colorbar/title/font/_weight.py b/plotly/validators/choroplethmap/colorbar/title/font/_weight.py index dec306bb0c..b8ca5d48ab 100644 --- a/plotly/validators/choroplethmap/colorbar/title/font/_weight.py +++ b/plotly/validators/choroplethmap/colorbar/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/choroplethmap/hoverlabel/__init__.py b/plotly/validators/choroplethmap/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/choroplethmap/hoverlabel/__init__.py +++ b/plotly/validators/choroplethmap/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/choroplethmap/hoverlabel/_align.py b/plotly/validators/choroplethmap/hoverlabel/_align.py index a08d98c2f1..8f6193fa4d 100644 --- a/plotly/validators/choroplethmap/hoverlabel/_align.py +++ b/plotly/validators/choroplethmap/hoverlabel/_align.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/choroplethmap/hoverlabel/_alignsrc.py b/plotly/validators/choroplethmap/hoverlabel/_alignsrc.py index 63e447fbbd..82c92678ef 100644 --- a/plotly/validators/choroplethmap/hoverlabel/_alignsrc.py +++ b/plotly/validators/choroplethmap/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/hoverlabel/_bgcolor.py b/plotly/validators/choroplethmap/hoverlabel/_bgcolor.py index d691048361..a5243e86cc 100644 --- a/plotly/validators/choroplethmap/hoverlabel/_bgcolor.py +++ b/plotly/validators/choroplethmap/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/choroplethmap/hoverlabel/_bgcolorsrc.py b/plotly/validators/choroplethmap/hoverlabel/_bgcolorsrc.py index f9fd747f1a..e5cb64a6fb 100644 --- a/plotly/validators/choroplethmap/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/choroplethmap/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/hoverlabel/_bordercolor.py b/plotly/validators/choroplethmap/hoverlabel/_bordercolor.py index adda912438..e10ad8a8b5 100644 --- a/plotly/validators/choroplethmap/hoverlabel/_bordercolor.py +++ b/plotly/validators/choroplethmap/hoverlabel/_bordercolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/choroplethmap/hoverlabel/_bordercolorsrc.py b/plotly/validators/choroplethmap/hoverlabel/_bordercolorsrc.py index e8c8389420..db8d7dec08 100644 --- a/plotly/validators/choroplethmap/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/choroplethmap/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/hoverlabel/_font.py b/plotly/validators/choroplethmap/hoverlabel/_font.py index 25e18797bf..23b278db6f 100644 --- a/plotly/validators/choroplethmap/hoverlabel/_font.py +++ b/plotly/validators/choroplethmap/hoverlabel/_font.py @@ -1,87 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/choroplethmap/hoverlabel/_namelength.py b/plotly/validators/choroplethmap/hoverlabel/_namelength.py index 4f55c65694..0e1ffffb05 100644 --- a/plotly/validators/choroplethmap/hoverlabel/_namelength.py +++ b/plotly/validators/choroplethmap/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/choroplethmap/hoverlabel/_namelengthsrc.py b/plotly/validators/choroplethmap/hoverlabel/_namelengthsrc.py index 1f1daa5ce7..6fab67d6c2 100644 --- a/plotly/validators/choroplethmap/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/choroplethmap/hoverlabel/_namelengthsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/hoverlabel/font/__init__.py b/plotly/validators/choroplethmap/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/choroplethmap/hoverlabel/font/__init__.py +++ b/plotly/validators/choroplethmap/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/choroplethmap/hoverlabel/font/_color.py b/plotly/validators/choroplethmap/hoverlabel/font/_color.py index c6c6741fed..c2a85cf93f 100644 --- a/plotly/validators/choroplethmap/hoverlabel/font/_color.py +++ b/plotly/validators/choroplethmap/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/choroplethmap/hoverlabel/font/_colorsrc.py b/plotly/validators/choroplethmap/hoverlabel/font/_colorsrc.py index d5cd012c0e..458369e2b2 100644 --- a/plotly/validators/choroplethmap/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/choroplethmap/hoverlabel/font/_colorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/hoverlabel/font/_family.py b/plotly/validators/choroplethmap/hoverlabel/font/_family.py index 0e83ec6746..adb85b2522 100644 --- a/plotly/validators/choroplethmap/hoverlabel/font/_family.py +++ b/plotly/validators/choroplethmap/hoverlabel/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/choroplethmap/hoverlabel/font/_familysrc.py b/plotly/validators/choroplethmap/hoverlabel/font/_familysrc.py index cb0f11cef8..25fdb6ffce 100644 --- a/plotly/validators/choroplethmap/hoverlabel/font/_familysrc.py +++ b/plotly/validators/choroplethmap/hoverlabel/font/_familysrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/hoverlabel/font/_lineposition.py b/plotly/validators/choroplethmap/hoverlabel/font/_lineposition.py index b84c4baa78..25402a6f4c 100644 --- a/plotly/validators/choroplethmap/hoverlabel/font/_lineposition.py +++ b/plotly/validators/choroplethmap/hoverlabel/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/choroplethmap/hoverlabel/font/_linepositionsrc.py b/plotly/validators/choroplethmap/hoverlabel/font/_linepositionsrc.py index 0779913198..13943fc6a4 100644 --- a/plotly/validators/choroplethmap/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/choroplethmap/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/hoverlabel/font/_shadow.py b/plotly/validators/choroplethmap/hoverlabel/font/_shadow.py index 5bb7c0fb8d..ebee63ac7c 100644 --- a/plotly/validators/choroplethmap/hoverlabel/font/_shadow.py +++ b/plotly/validators/choroplethmap/hoverlabel/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/choroplethmap/hoverlabel/font/_shadowsrc.py b/plotly/validators/choroplethmap/hoverlabel/font/_shadowsrc.py index d00c8eb5e9..9340246b5d 100644 --- a/plotly/validators/choroplethmap/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/choroplethmap/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/hoverlabel/font/_size.py b/plotly/validators/choroplethmap/hoverlabel/font/_size.py index 630d7bc439..2a501186e1 100644 --- a/plotly/validators/choroplethmap/hoverlabel/font/_size.py +++ b/plotly/validators/choroplethmap/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/choroplethmap/hoverlabel/font/_sizesrc.py b/plotly/validators/choroplethmap/hoverlabel/font/_sizesrc.py index ba124a4e3f..18b3a33291 100644 --- a/plotly/validators/choroplethmap/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/choroplethmap/hoverlabel/font/_sizesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/hoverlabel/font/_style.py b/plotly/validators/choroplethmap/hoverlabel/font/_style.py index 8a65fc04f7..ad730f20fa 100644 --- a/plotly/validators/choroplethmap/hoverlabel/font/_style.py +++ b/plotly/validators/choroplethmap/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/choroplethmap/hoverlabel/font/_stylesrc.py b/plotly/validators/choroplethmap/hoverlabel/font/_stylesrc.py index d070807285..b4f0a53a13 100644 --- a/plotly/validators/choroplethmap/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/choroplethmap/hoverlabel/font/_stylesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/hoverlabel/font/_textcase.py b/plotly/validators/choroplethmap/hoverlabel/font/_textcase.py index e26a80a088..46097af4f3 100644 --- a/plotly/validators/choroplethmap/hoverlabel/font/_textcase.py +++ b/plotly/validators/choroplethmap/hoverlabel/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/choroplethmap/hoverlabel/font/_textcasesrc.py b/plotly/validators/choroplethmap/hoverlabel/font/_textcasesrc.py index 04da50d657..9fbb45699f 100644 --- a/plotly/validators/choroplethmap/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/choroplethmap/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/hoverlabel/font/_variant.py b/plotly/validators/choroplethmap/hoverlabel/font/_variant.py index 4af5a45af9..653423993a 100644 --- a/plotly/validators/choroplethmap/hoverlabel/font/_variant.py +++ b/plotly/validators/choroplethmap/hoverlabel/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/choroplethmap/hoverlabel/font/_variantsrc.py b/plotly/validators/choroplethmap/hoverlabel/font/_variantsrc.py index 8c115b6c7f..c9265b8727 100644 --- a/plotly/validators/choroplethmap/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/choroplethmap/hoverlabel/font/_variantsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/hoverlabel/font/_weight.py b/plotly/validators/choroplethmap/hoverlabel/font/_weight.py index 9466523ff7..f2d8c65e84 100644 --- a/plotly/validators/choroplethmap/hoverlabel/font/_weight.py +++ b/plotly/validators/choroplethmap/hoverlabel/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/choroplethmap/hoverlabel/font/_weightsrc.py b/plotly/validators/choroplethmap/hoverlabel/font/_weightsrc.py index d362c1e2c3..fb0354282a 100644 --- a/plotly/validators/choroplethmap/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/choroplethmap/hoverlabel/font/_weightsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/legendgrouptitle/__init__.py b/plotly/validators/choroplethmap/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/choroplethmap/legendgrouptitle/__init__.py +++ b/plotly/validators/choroplethmap/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/choroplethmap/legendgrouptitle/_font.py b/plotly/validators/choroplethmap/legendgrouptitle/_font.py index d42f9cba57..fbf5c90ff1 100644 --- a/plotly/validators/choroplethmap/legendgrouptitle/_font.py +++ b/plotly/validators/choroplethmap/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/choroplethmap/legendgrouptitle/_text.py b/plotly/validators/choroplethmap/legendgrouptitle/_text.py index 5ad8e2f7e6..6c7c9325a3 100644 --- a/plotly/validators/choroplethmap/legendgrouptitle/_text.py +++ b/plotly/validators/choroplethmap/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/legendgrouptitle/font/__init__.py b/plotly/validators/choroplethmap/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/choroplethmap/legendgrouptitle/font/__init__.py +++ b/plotly/validators/choroplethmap/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/choroplethmap/legendgrouptitle/font/_color.py b/plotly/validators/choroplethmap/legendgrouptitle/font/_color.py index 50311a20f8..da36f7c813 100644 --- a/plotly/validators/choroplethmap/legendgrouptitle/font/_color.py +++ b/plotly/validators/choroplethmap/legendgrouptitle/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/legendgrouptitle/font/_family.py b/plotly/validators/choroplethmap/legendgrouptitle/font/_family.py index 5ad43c5895..9c9dcf213e 100644 --- a/plotly/validators/choroplethmap/legendgrouptitle/font/_family.py +++ b/plotly/validators/choroplethmap/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/choroplethmap/legendgrouptitle/font/_lineposition.py b/plotly/validators/choroplethmap/legendgrouptitle/font/_lineposition.py index d1a4c7c9fe..c9828c97f4 100644 --- a/plotly/validators/choroplethmap/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/choroplethmap/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/choroplethmap/legendgrouptitle/font/_shadow.py b/plotly/validators/choroplethmap/legendgrouptitle/font/_shadow.py index f85b590bcc..1614fd5417 100644 --- a/plotly/validators/choroplethmap/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/choroplethmap/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/legendgrouptitle/font/_size.py b/plotly/validators/choroplethmap/legendgrouptitle/font/_size.py index 2093f3ec23..fcdc20bff0 100644 --- a/plotly/validators/choroplethmap/legendgrouptitle/font/_size.py +++ b/plotly/validators/choroplethmap/legendgrouptitle/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/choroplethmap/legendgrouptitle/font/_style.py b/plotly/validators/choroplethmap/legendgrouptitle/font/_style.py index d47d455058..c355251fd9 100644 --- a/plotly/validators/choroplethmap/legendgrouptitle/font/_style.py +++ b/plotly/validators/choroplethmap/legendgrouptitle/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/choroplethmap/legendgrouptitle/font/_textcase.py b/plotly/validators/choroplethmap/legendgrouptitle/font/_textcase.py index 972e6f77b9..097e3f3d9e 100644 --- a/plotly/validators/choroplethmap/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/choroplethmap/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/choroplethmap/legendgrouptitle/font/_variant.py b/plotly/validators/choroplethmap/legendgrouptitle/font/_variant.py index 29faeacc5c..8d07c8904c 100644 --- a/plotly/validators/choroplethmap/legendgrouptitle/font/_variant.py +++ b/plotly/validators/choroplethmap/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/choroplethmap/legendgrouptitle/font/_weight.py b/plotly/validators/choroplethmap/legendgrouptitle/font/_weight.py index 2d6abe7060..0576dfddb6 100644 --- a/plotly/validators/choroplethmap/legendgrouptitle/font/_weight.py +++ b/plotly/validators/choroplethmap/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/choroplethmap/marker/__init__.py b/plotly/validators/choroplethmap/marker/__init__.py index 711bedd189..3f0890dec8 100644 --- a/plotly/validators/choroplethmap/marker/__init__.py +++ b/plotly/validators/choroplethmap/marker/__init__.py @@ -1,19 +1,12 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._opacitysrc.OpacitysrcValidator", + "._opacity.OpacityValidator", + "._line.LineValidator", + ], +) diff --git a/plotly/validators/choroplethmap/marker/_line.py b/plotly/validators/choroplethmap/marker/_line.py index 00ea39a850..c757ec798d 100644 --- a/plotly/validators/choroplethmap/marker/_line.py +++ b/plotly/validators/choroplethmap/marker/_line.py @@ -1,33 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choroplethmap/marker/_opacity.py b/plotly/validators/choroplethmap/marker/_opacity.py index f939eb7a53..fa599bac8b 100644 --- a/plotly/validators/choroplethmap/marker/_opacity.py +++ b/plotly/validators/choroplethmap/marker/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), max=kwargs.pop("max", 1), diff --git a/plotly/validators/choroplethmap/marker/_opacitysrc.py b/plotly/validators/choroplethmap/marker/_opacitysrc.py index ecb9b792f9..0f980058b3 100644 --- a/plotly/validators/choroplethmap/marker/_opacitysrc.py +++ b/plotly/validators/choroplethmap/marker/_opacitysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/marker/line/__init__.py b/plotly/validators/choroplethmap/marker/line/__init__.py index a2b9e1ae50..ca6d32f725 100644 --- a/plotly/validators/choroplethmap/marker/line/__init__.py +++ b/plotly/validators/choroplethmap/marker/line/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._widthsrc import WidthsrcValidator - from ._width import WidthValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._widthsrc.WidthsrcValidator", + "._width.WidthValidator", + "._colorsrc.ColorsrcValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/choroplethmap/marker/line/_color.py b/plotly/validators/choroplethmap/marker/line/_color.py index 606ea6c37a..d83e364a5d 100644 --- a/plotly/validators/choroplethmap/marker/line/_color.py +++ b/plotly/validators/choroplethmap/marker/line/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/choroplethmap/marker/line/_colorsrc.py b/plotly/validators/choroplethmap/marker/line/_colorsrc.py index d35b6eb7a3..241cc58b76 100644 --- a/plotly/validators/choroplethmap/marker/line/_colorsrc.py +++ b/plotly/validators/choroplethmap/marker/line/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/marker/line/_width.py b/plotly/validators/choroplethmap/marker/line/_width.py index b80dbfe433..c514e2c0bd 100644 --- a/plotly/validators/choroplethmap/marker/line/_width.py +++ b/plotly/validators/choroplethmap/marker/line/_width.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/choroplethmap/marker/line/_widthsrc.py b/plotly/validators/choroplethmap/marker/line/_widthsrc.py index 68c948070d..4cc2beca9a 100644 --- a/plotly/validators/choroplethmap/marker/line/_widthsrc.py +++ b/plotly/validators/choroplethmap/marker/line/_widthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmap/selected/__init__.py b/plotly/validators/choroplethmap/selected/__init__.py index e9bdb89f26..20900abc1a 100644 --- a/plotly/validators/choroplethmap/selected/__init__.py +++ b/plotly/validators/choroplethmap/selected/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.MarkerValidator"] +) diff --git a/plotly/validators/choroplethmap/selected/_marker.py b/plotly/validators/choroplethmap/selected/_marker.py index 921dda5fcf..bf4d5e2b59 100644 --- a/plotly/validators/choroplethmap/selected/_marker.py +++ b/plotly/validators/choroplethmap/selected/_marker.py @@ -1,19 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choroplethmap/selected/marker/__init__.py b/plotly/validators/choroplethmap/selected/marker/__init__.py index 049134a716..ea80a8a0f0 100644 --- a/plotly/validators/choroplethmap/selected/marker/__init__.py +++ b/plotly/validators/choroplethmap/selected/marker/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._opacity.OpacityValidator"] +) diff --git a/plotly/validators/choroplethmap/selected/marker/_opacity.py b/plotly/validators/choroplethmap/selected/marker/_opacity.py index b5619ccf12..c2632d1486 100644 --- a/plotly/validators/choroplethmap/selected/marker/_opacity.py +++ b/plotly/validators/choroplethmap/selected/marker/_opacity.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/choroplethmap/stream/__init__.py b/plotly/validators/choroplethmap/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/choroplethmap/stream/__init__.py +++ b/plotly/validators/choroplethmap/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/choroplethmap/stream/_maxpoints.py b/plotly/validators/choroplethmap/stream/_maxpoints.py index c530d6c733..2125542ca2 100644 --- a/plotly/validators/choroplethmap/stream/_maxpoints.py +++ b/plotly/validators/choroplethmap/stream/_maxpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/choroplethmap/stream/_token.py b/plotly/validators/choroplethmap/stream/_token.py index 0839381016..828e66d032 100644 --- a/plotly/validators/choroplethmap/stream/_token.py +++ b/plotly/validators/choroplethmap/stream/_token.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/choroplethmap/unselected/__init__.py b/plotly/validators/choroplethmap/unselected/__init__.py index e9bdb89f26..20900abc1a 100644 --- a/plotly/validators/choroplethmap/unselected/__init__.py +++ b/plotly/validators/choroplethmap/unselected/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.MarkerValidator"] +) diff --git a/plotly/validators/choroplethmap/unselected/_marker.py b/plotly/validators/choroplethmap/unselected/_marker.py index 4b639b2885..5ab6d7013b 100644 --- a/plotly/validators/choroplethmap/unselected/_marker.py +++ b/plotly/validators/choroplethmap/unselected/_marker.py @@ -1,20 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choroplethmap/unselected/marker/__init__.py b/plotly/validators/choroplethmap/unselected/marker/__init__.py index 049134a716..ea80a8a0f0 100644 --- a/plotly/validators/choroplethmap/unselected/marker/__init__.py +++ b/plotly/validators/choroplethmap/unselected/marker/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._opacity.OpacityValidator"] +) diff --git a/plotly/validators/choroplethmap/unselected/marker/_opacity.py b/plotly/validators/choroplethmap/unselected/marker/_opacity.py index c8caeb42d6..00c460f4d0 100644 --- a/plotly/validators/choroplethmap/unselected/marker/_opacity.py +++ b/plotly/validators/choroplethmap/unselected/marker/_opacity.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/choroplethmapbox/__init__.py b/plotly/validators/choroplethmapbox/__init__.py index 7fe8fbdc42..6cc11beb49 100644 --- a/plotly/validators/choroplethmapbox/__init__.py +++ b/plotly/validators/choroplethmapbox/__init__.py @@ -1,109 +1,57 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zsrc import ZsrcValidator - from ._zmin import ZminValidator - from ._zmid import ZmidValidator - from ._zmax import ZmaxValidator - from ._zauto import ZautoValidator - from ._z import ZValidator - from ._visible import VisibleValidator - from ._unselected import UnselectedValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._textsrc import TextsrcValidator - from ._text import TextValidator - from ._subplot import SubplotValidator - from ._stream import StreamValidator - from ._showscale import ShowscaleValidator - from ._showlegend import ShowlegendValidator - from ._selectedpoints import SelectedpointsValidator - from ._selected import SelectedValidator - from ._reversescale import ReversescaleValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._marker import MarkerValidator - from ._locationssrc import LocationssrcValidator - from ._locations import LocationsValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._geojson import GeojsonValidator - from ._featureidkey import FeatureidkeyValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._below import BelowValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/choroplethmapbox/_autocolorscale.py b/plotly/validators/choroplethmapbox/_autocolorscale.py index f417a1edc9..d35c5a979a 100644 --- a/plotly/validators/choroplethmapbox/_autocolorscale.py +++ b/plotly/validators/choroplethmapbox/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/choroplethmapbox/_below.py b/plotly/validators/choroplethmapbox/_below.py index 10817e9dea..e36a68f93d 100644 --- a/plotly/validators/choroplethmapbox/_below.py +++ b/plotly/validators/choroplethmapbox/_below.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BelowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/_coloraxis.py b/plotly/validators/choroplethmapbox/_coloraxis.py index 88a3a82580..610b170f38 100644 --- a/plotly/validators/choroplethmapbox/_coloraxis.py +++ b/plotly/validators/choroplethmapbox/_coloraxis.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/choroplethmapbox/_colorbar.py b/plotly/validators/choroplethmapbox/_colorbar.py index 00157f0f71..9f318f148c 100644 --- a/plotly/validators/choroplethmapbox/_colorbar.py +++ b/plotly/validators/choroplethmapbox/_colorbar.py @@ -1,281 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choroplethmapbox/_colorscale.py b/plotly/validators/choroplethmapbox/_colorscale.py index d75a37e199..95f30752e3 100644 --- a/plotly/validators/choroplethmapbox/_colorscale.py +++ b/plotly/validators/choroplethmapbox/_colorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/choroplethmapbox/_customdata.py b/plotly/validators/choroplethmapbox/_customdata.py index e9001026bc..8d7ffc6f8e 100644 --- a/plotly/validators/choroplethmapbox/_customdata.py +++ b/plotly/validators/choroplethmapbox/_customdata.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/_customdatasrc.py b/plotly/validators/choroplethmapbox/_customdatasrc.py index 9d23916eaf..5015887479 100644 --- a/plotly/validators/choroplethmapbox/_customdatasrc.py +++ b/plotly/validators/choroplethmapbox/_customdatasrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/_featureidkey.py b/plotly/validators/choroplethmapbox/_featureidkey.py index b6bb2f692c..209fd071f4 100644 --- a/plotly/validators/choroplethmapbox/_featureidkey.py +++ b/plotly/validators/choroplethmapbox/_featureidkey.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FeatureidkeyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/_geojson.py b/plotly/validators/choroplethmapbox/_geojson.py index 01a619246a..9faa789169 100644 --- a/plotly/validators/choroplethmapbox/_geojson.py +++ b/plotly/validators/choroplethmapbox/_geojson.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GeojsonValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/_hoverinfo.py b/plotly/validators/choroplethmapbox/_hoverinfo.py index 2994f34d2e..51e654afc0 100644 --- a/plotly/validators/choroplethmapbox/_hoverinfo.py +++ b/plotly/validators/choroplethmapbox/_hoverinfo.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/choroplethmapbox/_hoverinfosrc.py b/plotly/validators/choroplethmapbox/_hoverinfosrc.py index 9ef099599b..2da899e0f7 100644 --- a/plotly/validators/choroplethmapbox/_hoverinfosrc.py +++ b/plotly/validators/choroplethmapbox/_hoverinfosrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/_hoverlabel.py b/plotly/validators/choroplethmapbox/_hoverlabel.py index 7e424bb2a6..7058ba2b5d 100644 --- a/plotly/validators/choroplethmapbox/_hoverlabel.py +++ b/plotly/validators/choroplethmapbox/_hoverlabel.py @@ -1,52 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choroplethmapbox/_hovertemplate.py b/plotly/validators/choroplethmapbox/_hovertemplate.py index 1d52384669..52850f2593 100644 --- a/plotly/validators/choroplethmapbox/_hovertemplate.py +++ b/plotly/validators/choroplethmapbox/_hovertemplate.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/choroplethmapbox/_hovertemplatesrc.py b/plotly/validators/choroplethmapbox/_hovertemplatesrc.py index 1522281d2d..26f5494081 100644 --- a/plotly/validators/choroplethmapbox/_hovertemplatesrc.py +++ b/plotly/validators/choroplethmapbox/_hovertemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/_hovertext.py b/plotly/validators/choroplethmapbox/_hovertext.py index 9730982061..123dc6d519 100644 --- a/plotly/validators/choroplethmapbox/_hovertext.py +++ b/plotly/validators/choroplethmapbox/_hovertext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/choroplethmapbox/_hovertextsrc.py b/plotly/validators/choroplethmapbox/_hovertextsrc.py index 2900ca8228..67af7ff413 100644 --- a/plotly/validators/choroplethmapbox/_hovertextsrc.py +++ b/plotly/validators/choroplethmapbox/_hovertextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/_ids.py b/plotly/validators/choroplethmapbox/_ids.py index dacadd033c..b40b84b216 100644 --- a/plotly/validators/choroplethmapbox/_ids.py +++ b/plotly/validators/choroplethmapbox/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/_idssrc.py b/plotly/validators/choroplethmapbox/_idssrc.py index 1a78b60b66..76984fe561 100644 --- a/plotly/validators/choroplethmapbox/_idssrc.py +++ b/plotly/validators/choroplethmapbox/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/_legend.py b/plotly/validators/choroplethmapbox/_legend.py index 77edb93d07..19a76dd7d2 100644 --- a/plotly/validators/choroplethmapbox/_legend.py +++ b/plotly/validators/choroplethmapbox/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/choroplethmapbox/_legendgroup.py b/plotly/validators/choroplethmapbox/_legendgroup.py index 4a800e9553..28547255f1 100644 --- a/plotly/validators/choroplethmapbox/_legendgroup.py +++ b/plotly/validators/choroplethmapbox/_legendgroup.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/_legendgrouptitle.py b/plotly/validators/choroplethmapbox/_legendgrouptitle.py index 4fd8739eb8..d4d10d51da 100644 --- a/plotly/validators/choroplethmapbox/_legendgrouptitle.py +++ b/plotly/validators/choroplethmapbox/_legendgrouptitle.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choroplethmapbox/_legendrank.py b/plotly/validators/choroplethmapbox/_legendrank.py index 1f77eb2ace..f748ebfdd7 100644 --- a/plotly/validators/choroplethmapbox/_legendrank.py +++ b/plotly/validators/choroplethmapbox/_legendrank.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/_legendwidth.py b/plotly/validators/choroplethmapbox/_legendwidth.py index a6f64e2644..d335863257 100644 --- a/plotly/validators/choroplethmapbox/_legendwidth.py +++ b/plotly/validators/choroplethmapbox/_legendwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/choroplethmapbox/_locations.py b/plotly/validators/choroplethmapbox/_locations.py index 00aae1d30b..90ef197f27 100644 --- a/plotly/validators/choroplethmapbox/_locations.py +++ b/plotly/validators/choroplethmapbox/_locations.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LocationsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/_locationssrc.py b/plotly/validators/choroplethmapbox/_locationssrc.py index 40f7990958..74b8b9a41e 100644 --- a/plotly/validators/choroplethmapbox/_locationssrc.py +++ b/plotly/validators/choroplethmapbox/_locationssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LocationssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/_marker.py b/plotly/validators/choroplethmapbox/_marker.py index fe851e1707..18c92bea85 100644 --- a/plotly/validators/choroplethmapbox/_marker.py +++ b/plotly/validators/choroplethmapbox/_marker.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choroplethmapbox/_meta.py b/plotly/validators/choroplethmapbox/_meta.py index 3f8fcb4df8..9ff12bc185 100644 --- a/plotly/validators/choroplethmapbox/_meta.py +++ b/plotly/validators/choroplethmapbox/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/choroplethmapbox/_metasrc.py b/plotly/validators/choroplethmapbox/_metasrc.py index d524c0e0a5..ff1bb1bb79 100644 --- a/plotly/validators/choroplethmapbox/_metasrc.py +++ b/plotly/validators/choroplethmapbox/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/_name.py b/plotly/validators/choroplethmapbox/_name.py index f7c2956ab2..1f99495344 100644 --- a/plotly/validators/choroplethmapbox/_name.py +++ b/plotly/validators/choroplethmapbox/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/_reversescale.py b/plotly/validators/choroplethmapbox/_reversescale.py index bf5fdf5293..c24ba722dd 100644 --- a/plotly/validators/choroplethmapbox/_reversescale.py +++ b/plotly/validators/choroplethmapbox/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/_selected.py b/plotly/validators/choroplethmapbox/_selected.py index 41c73f36de..7a6d12f3ac 100644 --- a/plotly/validators/choroplethmapbox/_selected.py +++ b/plotly/validators/choroplethmapbox/_selected.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choroplethmapbox/_selectedpoints.py b/plotly/validators/choroplethmapbox/_selectedpoints.py index 40818a5ae8..9fc1f3cda3 100644 --- a/plotly/validators/choroplethmapbox/_selectedpoints.py +++ b/plotly/validators/choroplethmapbox/_selectedpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/_showlegend.py b/plotly/validators/choroplethmapbox/_showlegend.py index eb11282839..c6164c2def 100644 --- a/plotly/validators/choroplethmapbox/_showlegend.py +++ b/plotly/validators/choroplethmapbox/_showlegend.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/_showscale.py b/plotly/validators/choroplethmapbox/_showscale.py index fbe91bb804..e1b235f20d 100644 --- a/plotly/validators/choroplethmapbox/_showscale.py +++ b/plotly/validators/choroplethmapbox/_showscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/_stream.py b/plotly/validators/choroplethmapbox/_stream.py index b8802c8a13..636cc466df 100644 --- a/plotly/validators/choroplethmapbox/_stream.py +++ b/plotly/validators/choroplethmapbox/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choroplethmapbox/_subplot.py b/plotly/validators/choroplethmapbox/_subplot.py index a1affd05a0..0d96d3bc1a 100644 --- a/plotly/validators/choroplethmapbox/_subplot.py +++ b/plotly/validators/choroplethmapbox/_subplot.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SubplotValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "mapbox"), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/choroplethmapbox/_text.py b/plotly/validators/choroplethmapbox/_text.py index 51e4c73cad..74c37612bc 100644 --- a/plotly/validators/choroplethmapbox/_text.py +++ b/plotly/validators/choroplethmapbox/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/choroplethmapbox/_textsrc.py b/plotly/validators/choroplethmapbox/_textsrc.py index 4d325ebba1..178d4ea3d4 100644 --- a/plotly/validators/choroplethmapbox/_textsrc.py +++ b/plotly/validators/choroplethmapbox/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/_uid.py b/plotly/validators/choroplethmapbox/_uid.py index 810900f105..f6fdd109b1 100644 --- a/plotly/validators/choroplethmapbox/_uid.py +++ b/plotly/validators/choroplethmapbox/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/_uirevision.py b/plotly/validators/choroplethmapbox/_uirevision.py index 7383568b64..2e65e0f70f 100644 --- a/plotly/validators/choroplethmapbox/_uirevision.py +++ b/plotly/validators/choroplethmapbox/_uirevision.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/_unselected.py b/plotly/validators/choroplethmapbox/_unselected.py index ef2cf3a2a5..0f2262df37 100644 --- a/plotly/validators/choroplethmapbox/_unselected.py +++ b/plotly/validators/choroplethmapbox/_unselected.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choroplethmapbox/_visible.py b/plotly/validators/choroplethmapbox/_visible.py index c75e350312..9822b93be0 100644 --- a/plotly/validators/choroplethmapbox/_visible.py +++ b/plotly/validators/choroplethmapbox/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/choroplethmapbox/_z.py b/plotly/validators/choroplethmapbox/_z.py index 8511fb22e3..f5d3719bf7 100644 --- a/plotly/validators/choroplethmapbox/_z.py +++ b/plotly/validators/choroplethmapbox/_z.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/_zauto.py b/plotly/validators/choroplethmapbox/_zauto.py index 2ce01a4caf..10360a0135 100644 --- a/plotly/validators/choroplethmapbox/_zauto.py +++ b/plotly/validators/choroplethmapbox/_zauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/choroplethmapbox/_zmax.py b/plotly/validators/choroplethmapbox/_zmax.py index 4cf912d954..ad312597b4 100644 --- a/plotly/validators/choroplethmapbox/_zmax.py +++ b/plotly/validators/choroplethmapbox/_zmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"zauto": False}), **kwargs, diff --git a/plotly/validators/choroplethmapbox/_zmid.py b/plotly/validators/choroplethmapbox/_zmid.py index 3982b10017..cb352d21a6 100644 --- a/plotly/validators/choroplethmapbox/_zmid.py +++ b/plotly/validators/choroplethmapbox/_zmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/choroplethmapbox/_zmin.py b/plotly/validators/choroplethmapbox/_zmin.py index 7ab9b76599..a796a31a40 100644 --- a/plotly/validators/choroplethmapbox/_zmin.py +++ b/plotly/validators/choroplethmapbox/_zmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"zauto": False}), **kwargs, diff --git a/plotly/validators/choroplethmapbox/_zsrc.py b/plotly/validators/choroplethmapbox/_zsrc.py index 5e878d6aea..2be0537a12 100644 --- a/plotly/validators/choroplethmapbox/_zsrc.py +++ b/plotly/validators/choroplethmapbox/_zsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/colorbar/__init__.py b/plotly/validators/choroplethmapbox/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/choroplethmapbox/colorbar/__init__.py +++ b/plotly/validators/choroplethmapbox/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/choroplethmapbox/colorbar/_bgcolor.py b/plotly/validators/choroplethmapbox/colorbar/_bgcolor.py index 7a94b87027..8ac9770811 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_bgcolor.py +++ b/plotly/validators/choroplethmapbox/colorbar/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/colorbar/_bordercolor.py b/plotly/validators/choroplethmapbox/colorbar/_bordercolor.py index 18927babfe..52e1e9bf6f 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_bordercolor.py +++ b/plotly/validators/choroplethmapbox/colorbar/_bordercolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/colorbar/_borderwidth.py b/plotly/validators/choroplethmapbox/colorbar/_borderwidth.py index 5242efc624..705a5d8fc8 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_borderwidth.py +++ b/plotly/validators/choroplethmapbox/colorbar/_borderwidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/choroplethmapbox/colorbar/_dtick.py b/plotly/validators/choroplethmapbox/colorbar/_dtick.py index 8dbe774f76..7346045b15 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_dtick.py +++ b/plotly/validators/choroplethmapbox/colorbar/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/choroplethmapbox/colorbar/_exponentformat.py b/plotly/validators/choroplethmapbox/colorbar/_exponentformat.py index b0a571e639..fd99f0f61f 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_exponentformat.py +++ b/plotly/validators/choroplethmapbox/colorbar/_exponentformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/choroplethmapbox/colorbar/_labelalias.py b/plotly/validators/choroplethmapbox/colorbar/_labelalias.py index 43b4e1e514..4615b89217 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_labelalias.py +++ b/plotly/validators/choroplethmapbox/colorbar/_labelalias.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/colorbar/_len.py b/plotly/validators/choroplethmapbox/colorbar/_len.py index 0acf918744..20d6768e58 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_len.py +++ b/plotly/validators/choroplethmapbox/colorbar/_len.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/choroplethmapbox/colorbar/_lenmode.py b/plotly/validators/choroplethmapbox/colorbar/_lenmode.py index a1903a3dae..4ca907922b 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_lenmode.py +++ b/plotly/validators/choroplethmapbox/colorbar/_lenmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/choroplethmapbox/colorbar/_minexponent.py b/plotly/validators/choroplethmapbox/colorbar/_minexponent.py index cc8afe6bbd..8c666e2d13 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_minexponent.py +++ b/plotly/validators/choroplethmapbox/colorbar/_minexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/choroplethmapbox/colorbar/_nticks.py b/plotly/validators/choroplethmapbox/colorbar/_nticks.py index aa244104dc..e7c19ddb54 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_nticks.py +++ b/plotly/validators/choroplethmapbox/colorbar/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/choroplethmapbox/colorbar/_orientation.py b/plotly/validators/choroplethmapbox/colorbar/_orientation.py index 5d54e3ff89..4367588f28 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_orientation.py +++ b/plotly/validators/choroplethmapbox/colorbar/_orientation.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/choroplethmapbox/colorbar/_outlinecolor.py b/plotly/validators/choroplethmapbox/colorbar/_outlinecolor.py index a92c79a39a..3aed37f52b 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_outlinecolor.py +++ b/plotly/validators/choroplethmapbox/colorbar/_outlinecolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/colorbar/_outlinewidth.py b/plotly/validators/choroplethmapbox/colorbar/_outlinewidth.py index 01367a0b93..326979e4b3 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_outlinewidth.py +++ b/plotly/validators/choroplethmapbox/colorbar/_outlinewidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/choroplethmapbox/colorbar/_separatethousands.py b/plotly/validators/choroplethmapbox/colorbar/_separatethousands.py index 445a896715..cb36464e8f 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_separatethousands.py +++ b/plotly/validators/choroplethmapbox/colorbar/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/colorbar/_showexponent.py b/plotly/validators/choroplethmapbox/colorbar/_showexponent.py index ebcfb6f8f1..c2a7f398e8 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_showexponent.py +++ b/plotly/validators/choroplethmapbox/colorbar/_showexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/choroplethmapbox/colorbar/_showticklabels.py b/plotly/validators/choroplethmapbox/colorbar/_showticklabels.py index 5c0c22fb17..184c9de9c6 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_showticklabels.py +++ b/plotly/validators/choroplethmapbox/colorbar/_showticklabels.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/colorbar/_showtickprefix.py b/plotly/validators/choroplethmapbox/colorbar/_showtickprefix.py index 9c836751d6..5a41b59ade 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_showtickprefix.py +++ b/plotly/validators/choroplethmapbox/colorbar/_showtickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/choroplethmapbox/colorbar/_showticksuffix.py b/plotly/validators/choroplethmapbox/colorbar/_showticksuffix.py index 17866b2499..c18ce65c63 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_showticksuffix.py +++ b/plotly/validators/choroplethmapbox/colorbar/_showticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/choroplethmapbox/colorbar/_thickness.py b/plotly/validators/choroplethmapbox/colorbar/_thickness.py index e956912ba8..f6e0ac8bfb 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_thickness.py +++ b/plotly/validators/choroplethmapbox/colorbar/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/choroplethmapbox/colorbar/_thicknessmode.py b/plotly/validators/choroplethmapbox/colorbar/_thicknessmode.py index 1c03e06e39..55f9fbd9e7 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_thicknessmode.py +++ b/plotly/validators/choroplethmapbox/colorbar/_thicknessmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/choroplethmapbox/colorbar/_tick0.py b/plotly/validators/choroplethmapbox/colorbar/_tick0.py index dfbc8918f5..66b13bbd6b 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_tick0.py +++ b/plotly/validators/choroplethmapbox/colorbar/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/choroplethmapbox/colorbar/_tickangle.py b/plotly/validators/choroplethmapbox/colorbar/_tickangle.py index 8b3292c5ce..fec09087cf 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_tickangle.py +++ b/plotly/validators/choroplethmapbox/colorbar/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/colorbar/_tickcolor.py b/plotly/validators/choroplethmapbox/colorbar/_tickcolor.py index 970bee6ba7..2b737bcf18 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_tickcolor.py +++ b/plotly/validators/choroplethmapbox/colorbar/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/colorbar/_tickfont.py b/plotly/validators/choroplethmapbox/colorbar/_tickfont.py index a24e3fa7f9..eb90572862 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_tickfont.py +++ b/plotly/validators/choroplethmapbox/colorbar/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/choroplethmapbox/colorbar/_tickformat.py b/plotly/validators/choroplethmapbox/colorbar/_tickformat.py index ca847b0e1b..f84633ae5e 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_tickformat.py +++ b/plotly/validators/choroplethmapbox/colorbar/_tickformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/colorbar/_tickformatstopdefaults.py b/plotly/validators/choroplethmapbox/colorbar/_tickformatstopdefaults.py index 342a3b0bda..c549516d20 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/choroplethmapbox/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/choroplethmapbox/colorbar/_tickformatstops.py b/plotly/validators/choroplethmapbox/colorbar/_tickformatstops.py index cf687a600c..85cd37f445 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_tickformatstops.py +++ b/plotly/validators/choroplethmapbox/colorbar/_tickformatstops.py @@ -1,53 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choroplethmapbox/colorbar/_ticklabeloverflow.py b/plotly/validators/choroplethmapbox/colorbar/_ticklabeloverflow.py index 47b5afda2d..0fac19a996 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/choroplethmapbox/colorbar/_ticklabeloverflow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/choroplethmapbox/colorbar/_ticklabelposition.py b/plotly/validators/choroplethmapbox/colorbar/_ticklabelposition.py index 83fef37a19..ebb7029b67 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_ticklabelposition.py +++ b/plotly/validators/choroplethmapbox/colorbar/_ticklabelposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/choroplethmapbox/colorbar/_ticklabelstep.py b/plotly/validators/choroplethmapbox/colorbar/_ticklabelstep.py index a42710a40d..6563d64558 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_ticklabelstep.py +++ b/plotly/validators/choroplethmapbox/colorbar/_ticklabelstep.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/choroplethmapbox/colorbar/_ticklen.py b/plotly/validators/choroplethmapbox/colorbar/_ticklen.py index fd1dd71ab2..7b87666eba 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_ticklen.py +++ b/plotly/validators/choroplethmapbox/colorbar/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/choroplethmapbox/colorbar/_tickmode.py b/plotly/validators/choroplethmapbox/colorbar/_tickmode.py index cbdcad91dc..e2628bea9a 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_tickmode.py +++ b/plotly/validators/choroplethmapbox/colorbar/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/choroplethmapbox/colorbar/_tickprefix.py b/plotly/validators/choroplethmapbox/colorbar/_tickprefix.py index 0d115ad05b..b2f49848ef 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_tickprefix.py +++ b/plotly/validators/choroplethmapbox/colorbar/_tickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/colorbar/_ticks.py b/plotly/validators/choroplethmapbox/colorbar/_ticks.py index 2d21ca4996..5a66b915d2 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_ticks.py +++ b/plotly/validators/choroplethmapbox/colorbar/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/choroplethmapbox/colorbar/_ticksuffix.py b/plotly/validators/choroplethmapbox/colorbar/_ticksuffix.py index 403ab10ae9..539f595cfc 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_ticksuffix.py +++ b/plotly/validators/choroplethmapbox/colorbar/_ticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/colorbar/_ticktext.py b/plotly/validators/choroplethmapbox/colorbar/_ticktext.py index 1e3949e617..ada883a9e1 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_ticktext.py +++ b/plotly/validators/choroplethmapbox/colorbar/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/colorbar/_ticktextsrc.py b/plotly/validators/choroplethmapbox/colorbar/_ticktextsrc.py index 03ec18e361..1b4c0bf3fc 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_ticktextsrc.py +++ b/plotly/validators/choroplethmapbox/colorbar/_ticktextsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/colorbar/_tickvals.py b/plotly/validators/choroplethmapbox/colorbar/_tickvals.py index 9d4080e438..acbf26fb3f 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_tickvals.py +++ b/plotly/validators/choroplethmapbox/colorbar/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/colorbar/_tickvalssrc.py b/plotly/validators/choroplethmapbox/colorbar/_tickvalssrc.py index 41d22a3687..a4aa70bdac 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_tickvalssrc.py +++ b/plotly/validators/choroplethmapbox/colorbar/_tickvalssrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/colorbar/_tickwidth.py b/plotly/validators/choroplethmapbox/colorbar/_tickwidth.py index 671231f3a3..b224437364 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_tickwidth.py +++ b/plotly/validators/choroplethmapbox/colorbar/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/choroplethmapbox/colorbar/_title.py b/plotly/validators/choroplethmapbox/colorbar/_title.py index ae0e94e9c9..7b9739d215 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_title.py +++ b/plotly/validators/choroplethmapbox/colorbar/_title.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choroplethmapbox/colorbar/_x.py b/plotly/validators/choroplethmapbox/colorbar/_x.py index 7f97f64a35..e30662b7d9 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_x.py +++ b/plotly/validators/choroplethmapbox/colorbar/_x.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/colorbar/_xanchor.py b/plotly/validators/choroplethmapbox/colorbar/_xanchor.py index 1dd7fab973..3c31a97b1f 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_xanchor.py +++ b/plotly/validators/choroplethmapbox/colorbar/_xanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/choroplethmapbox/colorbar/_xpad.py b/plotly/validators/choroplethmapbox/colorbar/_xpad.py index dcab51716f..0eddcca2e9 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_xpad.py +++ b/plotly/validators/choroplethmapbox/colorbar/_xpad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/choroplethmapbox/colorbar/_xref.py b/plotly/validators/choroplethmapbox/colorbar/_xref.py index 68e6ce93e5..a0f17dac1d 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_xref.py +++ b/plotly/validators/choroplethmapbox/colorbar/_xref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/choroplethmapbox/colorbar/_y.py b/plotly/validators/choroplethmapbox/colorbar/_y.py index 6045065c66..d6afa4e18a 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_y.py +++ b/plotly/validators/choroplethmapbox/colorbar/_y.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/colorbar/_yanchor.py b/plotly/validators/choroplethmapbox/colorbar/_yanchor.py index 5592c4857f..b146b2bb3c 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_yanchor.py +++ b/plotly/validators/choroplethmapbox/colorbar/_yanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/choroplethmapbox/colorbar/_ypad.py b/plotly/validators/choroplethmapbox/colorbar/_ypad.py index 2f3b5ec253..09c086ee0f 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_ypad.py +++ b/plotly/validators/choroplethmapbox/colorbar/_ypad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/choroplethmapbox/colorbar/_yref.py b/plotly/validators/choroplethmapbox/colorbar/_yref.py index dce38598a9..0f88576e24 100644 --- a/plotly/validators/choroplethmapbox/colorbar/_yref.py +++ b/plotly/validators/choroplethmapbox/colorbar/_yref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/choroplethmapbox/colorbar/tickfont/__init__.py b/plotly/validators/choroplethmapbox/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/choroplethmapbox/colorbar/tickfont/__init__.py +++ b/plotly/validators/choroplethmapbox/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/choroplethmapbox/colorbar/tickfont/_color.py b/plotly/validators/choroplethmapbox/colorbar/tickfont/_color.py index 21e8d444c6..6c112a5733 100644 --- a/plotly/validators/choroplethmapbox/colorbar/tickfont/_color.py +++ b/plotly/validators/choroplethmapbox/colorbar/tickfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/colorbar/tickfont/_family.py b/plotly/validators/choroplethmapbox/colorbar/tickfont/_family.py index e4f20bcbf6..f174fca833 100644 --- a/plotly/validators/choroplethmapbox/colorbar/tickfont/_family.py +++ b/plotly/validators/choroplethmapbox/colorbar/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/choroplethmapbox/colorbar/tickfont/_lineposition.py b/plotly/validators/choroplethmapbox/colorbar/tickfont/_lineposition.py index 56bc389d21..aea69204a5 100644 --- a/plotly/validators/choroplethmapbox/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/choroplethmapbox/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/choroplethmapbox/colorbar/tickfont/_shadow.py b/plotly/validators/choroplethmapbox/colorbar/tickfont/_shadow.py index 1096ea6776..c008e84509 100644 --- a/plotly/validators/choroplethmapbox/colorbar/tickfont/_shadow.py +++ b/plotly/validators/choroplethmapbox/colorbar/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/colorbar/tickfont/_size.py b/plotly/validators/choroplethmapbox/colorbar/tickfont/_size.py index d5315bef5a..a983a7f489 100644 --- a/plotly/validators/choroplethmapbox/colorbar/tickfont/_size.py +++ b/plotly/validators/choroplethmapbox/colorbar/tickfont/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/choroplethmapbox/colorbar/tickfont/_style.py b/plotly/validators/choroplethmapbox/colorbar/tickfont/_style.py index 22ef4d6c67..6f98a2002b 100644 --- a/plotly/validators/choroplethmapbox/colorbar/tickfont/_style.py +++ b/plotly/validators/choroplethmapbox/colorbar/tickfont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/choroplethmapbox/colorbar/tickfont/_textcase.py b/plotly/validators/choroplethmapbox/colorbar/tickfont/_textcase.py index 99b6da10c6..fc6ecbc1e2 100644 --- a/plotly/validators/choroplethmapbox/colorbar/tickfont/_textcase.py +++ b/plotly/validators/choroplethmapbox/colorbar/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/choroplethmapbox/colorbar/tickfont/_variant.py b/plotly/validators/choroplethmapbox/colorbar/tickfont/_variant.py index f30724b5be..6addb94b8d 100644 --- a/plotly/validators/choroplethmapbox/colorbar/tickfont/_variant.py +++ b/plotly/validators/choroplethmapbox/colorbar/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/choroplethmapbox/colorbar/tickfont/_weight.py b/plotly/validators/choroplethmapbox/colorbar/tickfont/_weight.py index ecb0fcb989..dbc54b2982 100644 --- a/plotly/validators/choroplethmapbox/colorbar/tickfont/_weight.py +++ b/plotly/validators/choroplethmapbox/colorbar/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/choroplethmapbox/colorbar/tickformatstop/__init__.py b/plotly/validators/choroplethmapbox/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/choroplethmapbox/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/choroplethmapbox/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_dtickrange.py index 767b80f91d..94314ce238 100644 --- a/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( "items", diff --git a/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_enabled.py b/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_enabled.py index a9f8012ed9..171b491c6f 100644 --- a/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_name.py b/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_name.py index 04acf77c21..d7eb63c785 100644 --- a/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_name.py +++ b/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_templateitemname.py index 0b693444e2..9ee32a1d1c 100644 --- a/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_value.py b/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_value.py index 302d0e03a9..398e382181 100644 --- a/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_value.py +++ b/plotly/validators/choroplethmapbox/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/colorbar/title/__init__.py b/plotly/validators/choroplethmapbox/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/choroplethmapbox/colorbar/title/__init__.py +++ b/plotly/validators/choroplethmapbox/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/choroplethmapbox/colorbar/title/_font.py b/plotly/validators/choroplethmapbox/colorbar/title/_font.py index 0380452190..cad7efbc8a 100644 --- a/plotly/validators/choroplethmapbox/colorbar/title/_font.py +++ b/plotly/validators/choroplethmapbox/colorbar/title/_font.py @@ -1,63 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/choroplethmapbox/colorbar/title/_side.py b/plotly/validators/choroplethmapbox/colorbar/title/_side.py index 5818896f14..3bdc64dab9 100644 --- a/plotly/validators/choroplethmapbox/colorbar/title/_side.py +++ b/plotly/validators/choroplethmapbox/colorbar/title/_side.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/choroplethmapbox/colorbar/title/_text.py b/plotly/validators/choroplethmapbox/colorbar/title/_text.py index 154af5382c..dbdc4cb6b2 100644 --- a/plotly/validators/choroplethmapbox/colorbar/title/_text.py +++ b/plotly/validators/choroplethmapbox/colorbar/title/_text.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/colorbar/title/font/__init__.py b/plotly/validators/choroplethmapbox/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/choroplethmapbox/colorbar/title/font/__init__.py +++ b/plotly/validators/choroplethmapbox/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/choroplethmapbox/colorbar/title/font/_color.py b/plotly/validators/choroplethmapbox/colorbar/title/font/_color.py index 5eed83b481..ad3e1bbe26 100644 --- a/plotly/validators/choroplethmapbox/colorbar/title/font/_color.py +++ b/plotly/validators/choroplethmapbox/colorbar/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/colorbar/title/font/_family.py b/plotly/validators/choroplethmapbox/colorbar/title/font/_family.py index 0736688c28..d7e067119d 100644 --- a/plotly/validators/choroplethmapbox/colorbar/title/font/_family.py +++ b/plotly/validators/choroplethmapbox/colorbar/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/choroplethmapbox/colorbar/title/font/_lineposition.py b/plotly/validators/choroplethmapbox/colorbar/title/font/_lineposition.py index fcaf4ad41e..0a186b818d 100644 --- a/plotly/validators/choroplethmapbox/colorbar/title/font/_lineposition.py +++ b/plotly/validators/choroplethmapbox/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/choroplethmapbox/colorbar/title/font/_shadow.py b/plotly/validators/choroplethmapbox/colorbar/title/font/_shadow.py index de87c8e4fa..608e8a79f6 100644 --- a/plotly/validators/choroplethmapbox/colorbar/title/font/_shadow.py +++ b/plotly/validators/choroplethmapbox/colorbar/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/colorbar/title/font/_size.py b/plotly/validators/choroplethmapbox/colorbar/title/font/_size.py index 0eecaff9d3..fa1aaa3dab 100644 --- a/plotly/validators/choroplethmapbox/colorbar/title/font/_size.py +++ b/plotly/validators/choroplethmapbox/colorbar/title/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/choroplethmapbox/colorbar/title/font/_style.py b/plotly/validators/choroplethmapbox/colorbar/title/font/_style.py index 69ab357620..b4b5dabe99 100644 --- a/plotly/validators/choroplethmapbox/colorbar/title/font/_style.py +++ b/plotly/validators/choroplethmapbox/colorbar/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/choroplethmapbox/colorbar/title/font/_textcase.py b/plotly/validators/choroplethmapbox/colorbar/title/font/_textcase.py index 210550f3e8..6b9c2d1050 100644 --- a/plotly/validators/choroplethmapbox/colorbar/title/font/_textcase.py +++ b/plotly/validators/choroplethmapbox/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/choroplethmapbox/colorbar/title/font/_variant.py b/plotly/validators/choroplethmapbox/colorbar/title/font/_variant.py index 9991fa25f8..e6547d8220 100644 --- a/plotly/validators/choroplethmapbox/colorbar/title/font/_variant.py +++ b/plotly/validators/choroplethmapbox/colorbar/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/choroplethmapbox/colorbar/title/font/_weight.py b/plotly/validators/choroplethmapbox/colorbar/title/font/_weight.py index 6797a9ca1f..4200ef8c0e 100644 --- a/plotly/validators/choroplethmapbox/colorbar/title/font/_weight.py +++ b/plotly/validators/choroplethmapbox/colorbar/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/choroplethmapbox/hoverlabel/__init__.py b/plotly/validators/choroplethmapbox/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/choroplethmapbox/hoverlabel/__init__.py +++ b/plotly/validators/choroplethmapbox/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/choroplethmapbox/hoverlabel/_align.py b/plotly/validators/choroplethmapbox/hoverlabel/_align.py index 0e7ff425f5..13313aab0c 100644 --- a/plotly/validators/choroplethmapbox/hoverlabel/_align.py +++ b/plotly/validators/choroplethmapbox/hoverlabel/_align.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/choroplethmapbox/hoverlabel/_alignsrc.py b/plotly/validators/choroplethmapbox/hoverlabel/_alignsrc.py index 3d4cf0b79e..72c49a78a8 100644 --- a/plotly/validators/choroplethmapbox/hoverlabel/_alignsrc.py +++ b/plotly/validators/choroplethmapbox/hoverlabel/_alignsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/hoverlabel/_bgcolor.py b/plotly/validators/choroplethmapbox/hoverlabel/_bgcolor.py index 17f61a20f8..bd221b6e9e 100644 --- a/plotly/validators/choroplethmapbox/hoverlabel/_bgcolor.py +++ b/plotly/validators/choroplethmapbox/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/choroplethmapbox/hoverlabel/_bgcolorsrc.py b/plotly/validators/choroplethmapbox/hoverlabel/_bgcolorsrc.py index 6908196697..b176344241 100644 --- a/plotly/validators/choroplethmapbox/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/choroplethmapbox/hoverlabel/_bgcolorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/hoverlabel/_bordercolor.py b/plotly/validators/choroplethmapbox/hoverlabel/_bordercolor.py index c7cc32e16b..16efad990e 100644 --- a/plotly/validators/choroplethmapbox/hoverlabel/_bordercolor.py +++ b/plotly/validators/choroplethmapbox/hoverlabel/_bordercolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/choroplethmapbox/hoverlabel/_bordercolorsrc.py b/plotly/validators/choroplethmapbox/hoverlabel/_bordercolorsrc.py index 0c49731774..0caf8fec4a 100644 --- a/plotly/validators/choroplethmapbox/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/choroplethmapbox/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/hoverlabel/_font.py b/plotly/validators/choroplethmapbox/hoverlabel/_font.py index deb78cfa03..623df9ba5f 100644 --- a/plotly/validators/choroplethmapbox/hoverlabel/_font.py +++ b/plotly/validators/choroplethmapbox/hoverlabel/_font.py @@ -1,87 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/choroplethmapbox/hoverlabel/_namelength.py b/plotly/validators/choroplethmapbox/hoverlabel/_namelength.py index 9eab58415b..307a4fa9b5 100644 --- a/plotly/validators/choroplethmapbox/hoverlabel/_namelength.py +++ b/plotly/validators/choroplethmapbox/hoverlabel/_namelength.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/choroplethmapbox/hoverlabel/_namelengthsrc.py b/plotly/validators/choroplethmapbox/hoverlabel/_namelengthsrc.py index b0173b3e2c..67c4d54578 100644 --- a/plotly/validators/choroplethmapbox/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/choroplethmapbox/hoverlabel/_namelengthsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/hoverlabel/font/__init__.py b/plotly/validators/choroplethmapbox/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/choroplethmapbox/hoverlabel/font/__init__.py +++ b/plotly/validators/choroplethmapbox/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/choroplethmapbox/hoverlabel/font/_color.py b/plotly/validators/choroplethmapbox/hoverlabel/font/_color.py index f941246c81..30cbdb7c2c 100644 --- a/plotly/validators/choroplethmapbox/hoverlabel/font/_color.py +++ b/plotly/validators/choroplethmapbox/hoverlabel/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/choroplethmapbox/hoverlabel/font/_colorsrc.py b/plotly/validators/choroplethmapbox/hoverlabel/font/_colorsrc.py index c6e0a26de3..e33cdfc79e 100644 --- a/plotly/validators/choroplethmapbox/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/choroplethmapbox/hoverlabel/font/_colorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/hoverlabel/font/_family.py b/plotly/validators/choroplethmapbox/hoverlabel/font/_family.py index 9789a2ee34..bed84734c8 100644 --- a/plotly/validators/choroplethmapbox/hoverlabel/font/_family.py +++ b/plotly/validators/choroplethmapbox/hoverlabel/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/choroplethmapbox/hoverlabel/font/_familysrc.py b/plotly/validators/choroplethmapbox/hoverlabel/font/_familysrc.py index ef9f61756d..5181f5287b 100644 --- a/plotly/validators/choroplethmapbox/hoverlabel/font/_familysrc.py +++ b/plotly/validators/choroplethmapbox/hoverlabel/font/_familysrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/hoverlabel/font/_lineposition.py b/plotly/validators/choroplethmapbox/hoverlabel/font/_lineposition.py index 4cd48b565b..2785b7364c 100644 --- a/plotly/validators/choroplethmapbox/hoverlabel/font/_lineposition.py +++ b/plotly/validators/choroplethmapbox/hoverlabel/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/choroplethmapbox/hoverlabel/font/_linepositionsrc.py b/plotly/validators/choroplethmapbox/hoverlabel/font/_linepositionsrc.py index 50bcb9d786..180360ce48 100644 --- a/plotly/validators/choroplethmapbox/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/choroplethmapbox/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/hoverlabel/font/_shadow.py b/plotly/validators/choroplethmapbox/hoverlabel/font/_shadow.py index 2e00f0af83..b067137df9 100644 --- a/plotly/validators/choroplethmapbox/hoverlabel/font/_shadow.py +++ b/plotly/validators/choroplethmapbox/hoverlabel/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/choroplethmapbox/hoverlabel/font/_shadowsrc.py b/plotly/validators/choroplethmapbox/hoverlabel/font/_shadowsrc.py index 4439ad22a3..31f9c05396 100644 --- a/plotly/validators/choroplethmapbox/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/choroplethmapbox/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/hoverlabel/font/_size.py b/plotly/validators/choroplethmapbox/hoverlabel/font/_size.py index 4387553527..809f6d29b8 100644 --- a/plotly/validators/choroplethmapbox/hoverlabel/font/_size.py +++ b/plotly/validators/choroplethmapbox/hoverlabel/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/choroplethmapbox/hoverlabel/font/_sizesrc.py b/plotly/validators/choroplethmapbox/hoverlabel/font/_sizesrc.py index fc25b80b0e..191858a3a0 100644 --- a/plotly/validators/choroplethmapbox/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/choroplethmapbox/hoverlabel/font/_sizesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/hoverlabel/font/_style.py b/plotly/validators/choroplethmapbox/hoverlabel/font/_style.py index 817df04ef9..7593dfc829 100644 --- a/plotly/validators/choroplethmapbox/hoverlabel/font/_style.py +++ b/plotly/validators/choroplethmapbox/hoverlabel/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/choroplethmapbox/hoverlabel/font/_stylesrc.py b/plotly/validators/choroplethmapbox/hoverlabel/font/_stylesrc.py index d6d3d50305..687d347f3e 100644 --- a/plotly/validators/choroplethmapbox/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/choroplethmapbox/hoverlabel/font/_stylesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/hoverlabel/font/_textcase.py b/plotly/validators/choroplethmapbox/hoverlabel/font/_textcase.py index 355ddc941c..1fdd794ca8 100644 --- a/plotly/validators/choroplethmapbox/hoverlabel/font/_textcase.py +++ b/plotly/validators/choroplethmapbox/hoverlabel/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/choroplethmapbox/hoverlabel/font/_textcasesrc.py b/plotly/validators/choroplethmapbox/hoverlabel/font/_textcasesrc.py index c376a96d44..3945f64e18 100644 --- a/plotly/validators/choroplethmapbox/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/choroplethmapbox/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/hoverlabel/font/_variant.py b/plotly/validators/choroplethmapbox/hoverlabel/font/_variant.py index d24fe6cfc3..2c4f21c9c6 100644 --- a/plotly/validators/choroplethmapbox/hoverlabel/font/_variant.py +++ b/plotly/validators/choroplethmapbox/hoverlabel/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/choroplethmapbox/hoverlabel/font/_variantsrc.py b/plotly/validators/choroplethmapbox/hoverlabel/font/_variantsrc.py index f0cf771c3e..f06a8e99cf 100644 --- a/plotly/validators/choroplethmapbox/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/choroplethmapbox/hoverlabel/font/_variantsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/hoverlabel/font/_weight.py b/plotly/validators/choroplethmapbox/hoverlabel/font/_weight.py index aaec3d4a94..ec12db7f29 100644 --- a/plotly/validators/choroplethmapbox/hoverlabel/font/_weight.py +++ b/plotly/validators/choroplethmapbox/hoverlabel/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/choroplethmapbox/hoverlabel/font/_weightsrc.py b/plotly/validators/choroplethmapbox/hoverlabel/font/_weightsrc.py index c64b572736..6e38e6f041 100644 --- a/plotly/validators/choroplethmapbox/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/choroplethmapbox/hoverlabel/font/_weightsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/legendgrouptitle/__init__.py b/plotly/validators/choroplethmapbox/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/choroplethmapbox/legendgrouptitle/__init__.py +++ b/plotly/validators/choroplethmapbox/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/choroplethmapbox/legendgrouptitle/_font.py b/plotly/validators/choroplethmapbox/legendgrouptitle/_font.py index fcade545c9..178f89da03 100644 --- a/plotly/validators/choroplethmapbox/legendgrouptitle/_font.py +++ b/plotly/validators/choroplethmapbox/legendgrouptitle/_font.py @@ -1,63 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/choroplethmapbox/legendgrouptitle/_text.py b/plotly/validators/choroplethmapbox/legendgrouptitle/_text.py index 583705963c..9559dbf95a 100644 --- a/plotly/validators/choroplethmapbox/legendgrouptitle/_text.py +++ b/plotly/validators/choroplethmapbox/legendgrouptitle/_text.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/legendgrouptitle/font/__init__.py b/plotly/validators/choroplethmapbox/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/choroplethmapbox/legendgrouptitle/font/__init__.py +++ b/plotly/validators/choroplethmapbox/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/choroplethmapbox/legendgrouptitle/font/_color.py b/plotly/validators/choroplethmapbox/legendgrouptitle/font/_color.py index 3387953587..59356c3299 100644 --- a/plotly/validators/choroplethmapbox/legendgrouptitle/font/_color.py +++ b/plotly/validators/choroplethmapbox/legendgrouptitle/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/legendgrouptitle/font/_family.py b/plotly/validators/choroplethmapbox/legendgrouptitle/font/_family.py index ac4c21c0cd..515eae4630 100644 --- a/plotly/validators/choroplethmapbox/legendgrouptitle/font/_family.py +++ b/plotly/validators/choroplethmapbox/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/choroplethmapbox/legendgrouptitle/font/_lineposition.py b/plotly/validators/choroplethmapbox/legendgrouptitle/font/_lineposition.py index 97910b5a94..db62a3c4b5 100644 --- a/plotly/validators/choroplethmapbox/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/choroplethmapbox/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/choroplethmapbox/legendgrouptitle/font/_shadow.py b/plotly/validators/choroplethmapbox/legendgrouptitle/font/_shadow.py index 2a619f712e..c6e4c945f0 100644 --- a/plotly/validators/choroplethmapbox/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/choroplethmapbox/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/legendgrouptitle/font/_size.py b/plotly/validators/choroplethmapbox/legendgrouptitle/font/_size.py index 72ead375c5..186364b054 100644 --- a/plotly/validators/choroplethmapbox/legendgrouptitle/font/_size.py +++ b/plotly/validators/choroplethmapbox/legendgrouptitle/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/choroplethmapbox/legendgrouptitle/font/_style.py b/plotly/validators/choroplethmapbox/legendgrouptitle/font/_style.py index e0178f19eb..ce565294e3 100644 --- a/plotly/validators/choroplethmapbox/legendgrouptitle/font/_style.py +++ b/plotly/validators/choroplethmapbox/legendgrouptitle/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/choroplethmapbox/legendgrouptitle/font/_textcase.py b/plotly/validators/choroplethmapbox/legendgrouptitle/font/_textcase.py index 79780f5748..1e1953f3ea 100644 --- a/plotly/validators/choroplethmapbox/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/choroplethmapbox/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/choroplethmapbox/legendgrouptitle/font/_variant.py b/plotly/validators/choroplethmapbox/legendgrouptitle/font/_variant.py index a863b5f895..43d822290b 100644 --- a/plotly/validators/choroplethmapbox/legendgrouptitle/font/_variant.py +++ b/plotly/validators/choroplethmapbox/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/choroplethmapbox/legendgrouptitle/font/_weight.py b/plotly/validators/choroplethmapbox/legendgrouptitle/font/_weight.py index d05ccd5152..09f54ccb56 100644 --- a/plotly/validators/choroplethmapbox/legendgrouptitle/font/_weight.py +++ b/plotly/validators/choroplethmapbox/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/choroplethmapbox/marker/__init__.py b/plotly/validators/choroplethmapbox/marker/__init__.py index 711bedd189..3f0890dec8 100644 --- a/plotly/validators/choroplethmapbox/marker/__init__.py +++ b/plotly/validators/choroplethmapbox/marker/__init__.py @@ -1,19 +1,12 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._opacitysrc.OpacitysrcValidator", + "._opacity.OpacityValidator", + "._line.LineValidator", + ], +) diff --git a/plotly/validators/choroplethmapbox/marker/_line.py b/plotly/validators/choroplethmapbox/marker/_line.py index e65e9449ef..8a1932fe82 100644 --- a/plotly/validators/choroplethmapbox/marker/_line.py +++ b/plotly/validators/choroplethmapbox/marker/_line.py @@ -1,33 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choroplethmapbox/marker/_opacity.py b/plotly/validators/choroplethmapbox/marker/_opacity.py index 261c3edca8..11b177a572 100644 --- a/plotly/validators/choroplethmapbox/marker/_opacity.py +++ b/plotly/validators/choroplethmapbox/marker/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), max=kwargs.pop("max", 1), diff --git a/plotly/validators/choroplethmapbox/marker/_opacitysrc.py b/plotly/validators/choroplethmapbox/marker/_opacitysrc.py index 3c6e04b19d..fdff29488b 100644 --- a/plotly/validators/choroplethmapbox/marker/_opacitysrc.py +++ b/plotly/validators/choroplethmapbox/marker/_opacitysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/marker/line/__init__.py b/plotly/validators/choroplethmapbox/marker/line/__init__.py index a2b9e1ae50..ca6d32f725 100644 --- a/plotly/validators/choroplethmapbox/marker/line/__init__.py +++ b/plotly/validators/choroplethmapbox/marker/line/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._widthsrc import WidthsrcValidator - from ._width import WidthValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._widthsrc.WidthsrcValidator", + "._width.WidthValidator", + "._colorsrc.ColorsrcValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/choroplethmapbox/marker/line/_color.py b/plotly/validators/choroplethmapbox/marker/line/_color.py index ca9c031f3f..a358d2a99e 100644 --- a/plotly/validators/choroplethmapbox/marker/line/_color.py +++ b/plotly/validators/choroplethmapbox/marker/line/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/choroplethmapbox/marker/line/_colorsrc.py b/plotly/validators/choroplethmapbox/marker/line/_colorsrc.py index 6d1dc7538d..b5a11ae972 100644 --- a/plotly/validators/choroplethmapbox/marker/line/_colorsrc.py +++ b/plotly/validators/choroplethmapbox/marker/line/_colorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/marker/line/_width.py b/plotly/validators/choroplethmapbox/marker/line/_width.py index 3753f152d7..6200f0a49f 100644 --- a/plotly/validators/choroplethmapbox/marker/line/_width.py +++ b/plotly/validators/choroplethmapbox/marker/line/_width.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/choroplethmapbox/marker/line/_widthsrc.py b/plotly/validators/choroplethmapbox/marker/line/_widthsrc.py index a7af1a0717..73cf09c2f4 100644 --- a/plotly/validators/choroplethmapbox/marker/line/_widthsrc.py +++ b/plotly/validators/choroplethmapbox/marker/line/_widthsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/choroplethmapbox/selected/__init__.py b/plotly/validators/choroplethmapbox/selected/__init__.py index e9bdb89f26..20900abc1a 100644 --- a/plotly/validators/choroplethmapbox/selected/__init__.py +++ b/plotly/validators/choroplethmapbox/selected/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.MarkerValidator"] +) diff --git a/plotly/validators/choroplethmapbox/selected/_marker.py b/plotly/validators/choroplethmapbox/selected/_marker.py index f66f7181a6..055957163d 100644 --- a/plotly/validators/choroplethmapbox/selected/_marker.py +++ b/plotly/validators/choroplethmapbox/selected/_marker.py @@ -1,19 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choroplethmapbox/selected/marker/__init__.py b/plotly/validators/choroplethmapbox/selected/marker/__init__.py index 049134a716..ea80a8a0f0 100644 --- a/plotly/validators/choroplethmapbox/selected/marker/__init__.py +++ b/plotly/validators/choroplethmapbox/selected/marker/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._opacity.OpacityValidator"] +) diff --git a/plotly/validators/choroplethmapbox/selected/marker/_opacity.py b/plotly/validators/choroplethmapbox/selected/marker/_opacity.py index 9cf9d8c1c8..dc831e2610 100644 --- a/plotly/validators/choroplethmapbox/selected/marker/_opacity.py +++ b/plotly/validators/choroplethmapbox/selected/marker/_opacity.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/choroplethmapbox/stream/__init__.py b/plotly/validators/choroplethmapbox/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/choroplethmapbox/stream/__init__.py +++ b/plotly/validators/choroplethmapbox/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/choroplethmapbox/stream/_maxpoints.py b/plotly/validators/choroplethmapbox/stream/_maxpoints.py index 13ea5763ae..41550f8fcb 100644 --- a/plotly/validators/choroplethmapbox/stream/_maxpoints.py +++ b/plotly/validators/choroplethmapbox/stream/_maxpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/choroplethmapbox/stream/_token.py b/plotly/validators/choroplethmapbox/stream/_token.py index 2da96f5db7..e3f4f0b96a 100644 --- a/plotly/validators/choroplethmapbox/stream/_token.py +++ b/plotly/validators/choroplethmapbox/stream/_token.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/choroplethmapbox/unselected/__init__.py b/plotly/validators/choroplethmapbox/unselected/__init__.py index e9bdb89f26..20900abc1a 100644 --- a/plotly/validators/choroplethmapbox/unselected/__init__.py +++ b/plotly/validators/choroplethmapbox/unselected/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.MarkerValidator"] +) diff --git a/plotly/validators/choroplethmapbox/unselected/_marker.py b/plotly/validators/choroplethmapbox/unselected/_marker.py index 10ae2f9cb7..b81b543b91 100644 --- a/plotly/validators/choroplethmapbox/unselected/_marker.py +++ b/plotly/validators/choroplethmapbox/unselected/_marker.py @@ -1,20 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/choroplethmapbox/unselected/marker/__init__.py b/plotly/validators/choroplethmapbox/unselected/marker/__init__.py index 049134a716..ea80a8a0f0 100644 --- a/plotly/validators/choroplethmapbox/unselected/marker/__init__.py +++ b/plotly/validators/choroplethmapbox/unselected/marker/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._opacity.OpacityValidator"] +) diff --git a/plotly/validators/choroplethmapbox/unselected/marker/_opacity.py b/plotly/validators/choroplethmapbox/unselected/marker/_opacity.py index ae1ad27234..46fca2ee77 100644 --- a/plotly/validators/choroplethmapbox/unselected/marker/_opacity.py +++ b/plotly/validators/choroplethmapbox/unselected/marker/_opacity.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/cone/__init__.py b/plotly/validators/cone/__init__.py index 4d36d20a24..7d1632100c 100644 --- a/plotly/validators/cone/__init__.py +++ b/plotly/validators/cone/__init__.py @@ -1,135 +1,70 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zsrc import ZsrcValidator - from ._zhoverformat import ZhoverformatValidator - from ._z import ZValidator - from ._ysrc import YsrcValidator - from ._yhoverformat import YhoverformatValidator - from ._y import YValidator - from ._xsrc import XsrcValidator - from ._xhoverformat import XhoverformatValidator - from ._x import XValidator - from ._wsrc import WsrcValidator - from ._whoverformat import WhoverformatValidator - from ._w import WValidator - from ._vsrc import VsrcValidator - from ._visible import VisibleValidator - from ._vhoverformat import VhoverformatValidator - from ._v import VValidator - from ._usrc import UsrcValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._uhoverformat import UhoverformatValidator - from ._u import UValidator - from ._textsrc import TextsrcValidator - from ._text import TextValidator - from ._stream import StreamValidator - from ._sizeref import SizerefValidator - from ._sizemode import SizemodeValidator - from ._showscale import ShowscaleValidator - from ._showlegend import ShowlegendValidator - from ._scene import SceneValidator - from ._reversescale import ReversescaleValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._lightposition import LightpositionValidator - from ._lighting import LightingValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - from ._autocolorscale import AutocolorscaleValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/cone/_anchor.py b/plotly/validators/cone/_anchor.py index d7f0e0d12e..dc53f7e2f6 100644 --- a/plotly/validators/cone/_anchor.py +++ b/plotly/validators/cone/_anchor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AnchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["tip", "tail", "cm", "center"]), **kwargs, diff --git a/plotly/validators/cone/_autocolorscale.py b/plotly/validators/cone/_autocolorscale.py index 6f1d4c685c..28e6548401 100644 --- a/plotly/validators/cone/_autocolorscale.py +++ b/plotly/validators/cone/_autocolorscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/cone/_cauto.py b/plotly/validators/cone/_cauto.py index 55a5e5a0af..a00cd1cd51 100644 --- a/plotly/validators/cone/_cauto.py +++ b/plotly/validators/cone/_cauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/cone/_cmax.py b/plotly/validators/cone/_cmax.py index 2d7c0b69bb..afc7a04601 100644 --- a/plotly/validators/cone/_cmax.py +++ b/plotly/validators/cone/_cmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/cone/_cmid.py b/plotly/validators/cone/_cmid.py index 3e2ebf00b7..6a15e56e6b 100644 --- a/plotly/validators/cone/_cmid.py +++ b/plotly/validators/cone/_cmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/cone/_cmin.py b/plotly/validators/cone/_cmin.py index 896207d567..0efc5dc03b 100644 --- a/plotly/validators/cone/_cmin.py +++ b/plotly/validators/cone/_cmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/cone/_coloraxis.py b/plotly/validators/cone/_coloraxis.py index 17cc8e488b..51e50cad60 100644 --- a/plotly/validators/cone/_coloraxis.py +++ b/plotly/validators/cone/_coloraxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/cone/_colorbar.py b/plotly/validators/cone/_colorbar.py index 4c962146ae..68dcf5002e 100644 --- a/plotly/validators/cone/_colorbar.py +++ b/plotly/validators/cone/_colorbar.py @@ -1,277 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/cone/_colorscale.py b/plotly/validators/cone/_colorscale.py index 02802b4c3e..2e7dc8f64c 100644 --- a/plotly/validators/cone/_colorscale.py +++ b/plotly/validators/cone/_colorscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/cone/_customdata.py b/plotly/validators/cone/_customdata.py index d4c111ce8c..1711cd98a8 100644 --- a/plotly/validators/cone/_customdata.py +++ b/plotly/validators/cone/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/cone/_customdatasrc.py b/plotly/validators/cone/_customdatasrc.py index b9f520f54f..4a45b90347 100644 --- a/plotly/validators/cone/_customdatasrc.py +++ b/plotly/validators/cone/_customdatasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/cone/_hoverinfo.py b/plotly/validators/cone/_hoverinfo.py index 37a7fd5f02..58e919011d 100644 --- a/plotly/validators/cone/_hoverinfo.py +++ b/plotly/validators/cone/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/cone/_hoverinfosrc.py b/plotly/validators/cone/_hoverinfosrc.py index 48110ff964..a3cb7d0f7f 100644 --- a/plotly/validators/cone/_hoverinfosrc.py +++ b/plotly/validators/cone/_hoverinfosrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/cone/_hoverlabel.py b/plotly/validators/cone/_hoverlabel.py index 7105913c5e..72149765de 100644 --- a/plotly/validators/cone/_hoverlabel.py +++ b/plotly/validators/cone/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/cone/_hovertemplate.py b/plotly/validators/cone/_hovertemplate.py index aa0bcd6ad2..11cdc39210 100644 --- a/plotly/validators/cone/_hovertemplate.py +++ b/plotly/validators/cone/_hovertemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/cone/_hovertemplatesrc.py b/plotly/validators/cone/_hovertemplatesrc.py index 9ec2ca4864..65d2deb3c1 100644 --- a/plotly/validators/cone/_hovertemplatesrc.py +++ b/plotly/validators/cone/_hovertemplatesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/cone/_hovertext.py b/plotly/validators/cone/_hovertext.py index 4e714a3585..b533d5ed76 100644 --- a/plotly/validators/cone/_hovertext.py +++ b/plotly/validators/cone/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/cone/_hovertextsrc.py b/plotly/validators/cone/_hovertextsrc.py index f7393f6de5..b1c6679116 100644 --- a/plotly/validators/cone/_hovertextsrc.py +++ b/plotly/validators/cone/_hovertextsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/cone/_ids.py b/plotly/validators/cone/_ids.py index 3d0741f375..251d7b5151 100644 --- a/plotly/validators/cone/_ids.py +++ b/plotly/validators/cone/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/cone/_idssrc.py b/plotly/validators/cone/_idssrc.py index f8fa113c33..b6ca302d3e 100644 --- a/plotly/validators/cone/_idssrc.py +++ b/plotly/validators/cone/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/cone/_legend.py b/plotly/validators/cone/_legend.py index 9093a9caa2..98d8edabbf 100644 --- a/plotly/validators/cone/_legend.py +++ b/plotly/validators/cone/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/cone/_legendgroup.py b/plotly/validators/cone/_legendgroup.py index 1031225875..a2229ae7b5 100644 --- a/plotly/validators/cone/_legendgroup.py +++ b/plotly/validators/cone/_legendgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/cone/_legendgrouptitle.py b/plotly/validators/cone/_legendgrouptitle.py index 891c1ef85e..8313154bc8 100644 --- a/plotly/validators/cone/_legendgrouptitle.py +++ b/plotly/validators/cone/_legendgrouptitle.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/cone/_legendrank.py b/plotly/validators/cone/_legendrank.py index b5507d457f..8c83c584bc 100644 --- a/plotly/validators/cone/_legendrank.py +++ b/plotly/validators/cone/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/cone/_legendwidth.py b/plotly/validators/cone/_legendwidth.py index 5fe9fbfa85..a2ca36f13c 100644 --- a/plotly/validators/cone/_legendwidth.py +++ b/plotly/validators/cone/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/cone/_lighting.py b/plotly/validators/cone/_lighting.py index a6897f1cf0..32224b2a65 100644 --- a/plotly/validators/cone/_lighting.py +++ b/plotly/validators/cone/_lighting.py @@ -1,39 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LightingValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/cone/_lightposition.py b/plotly/validators/cone/_lightposition.py index 88c04133b3..1dc589146d 100644 --- a/plotly/validators/cone/_lightposition.py +++ b/plotly/validators/cone/_lightposition.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LightpositionValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/cone/_meta.py b/plotly/validators/cone/_meta.py index e38247aa6d..17ef4c47d3 100644 --- a/plotly/validators/cone/_meta.py +++ b/plotly/validators/cone/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/cone/_metasrc.py b/plotly/validators/cone/_metasrc.py index 30fb8dd092..46245808ac 100644 --- a/plotly/validators/cone/_metasrc.py +++ b/plotly/validators/cone/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/cone/_name.py b/plotly/validators/cone/_name.py index 3e7fd95b72..e8cf962647 100644 --- a/plotly/validators/cone/_name.py +++ b/plotly/validators/cone/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/cone/_opacity.py b/plotly/validators/cone/_opacity.py index 344823463a..f102eb88b6 100644 --- a/plotly/validators/cone/_opacity.py +++ b/plotly/validators/cone/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/cone/_reversescale.py b/plotly/validators/cone/_reversescale.py index dcfaeb579b..f7a3e11eed 100644 --- a/plotly/validators/cone/_reversescale.py +++ b/plotly/validators/cone/_reversescale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/cone/_scene.py b/plotly/validators/cone/_scene.py index f7a60f764b..441a5fd12c 100644 --- a/plotly/validators/cone/_scene.py +++ b/plotly/validators/cone/_scene.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SceneValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "scene"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/cone/_showlegend.py b/plotly/validators/cone/_showlegend.py index d928c8388a..2152be0c26 100644 --- a/plotly/validators/cone/_showlegend.py +++ b/plotly/validators/cone/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/cone/_showscale.py b/plotly/validators/cone/_showscale.py index e9efe817de..b98e3401ad 100644 --- a/plotly/validators/cone/_showscale.py +++ b/plotly/validators/cone/_showscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/cone/_sizemode.py b/plotly/validators/cone/_sizemode.py index 5bfc57b487..ac4813fbff 100644 --- a/plotly/validators/cone/_sizemode.py +++ b/plotly/validators/cone/_sizemode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["scaled", "absolute", "raw"]), **kwargs, diff --git a/plotly/validators/cone/_sizeref.py b/plotly/validators/cone/_sizeref.py index 6f5f60e84b..6ea4807bef 100644 --- a/plotly/validators/cone/_sizeref.py +++ b/plotly/validators/cone/_sizeref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/cone/_stream.py b/plotly/validators/cone/_stream.py index 7dc54c095a..34a9479212 100644 --- a/plotly/validators/cone/_stream.py +++ b/plotly/validators/cone/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/cone/_text.py b/plotly/validators/cone/_text.py index c8d15062cf..265d66969b 100644 --- a/plotly/validators/cone/_text.py +++ b/plotly/validators/cone/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/cone/_textsrc.py b/plotly/validators/cone/_textsrc.py index 721fa8c210..e41bde3894 100644 --- a/plotly/validators/cone/_textsrc.py +++ b/plotly/validators/cone/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/cone/_u.py b/plotly/validators/cone/_u.py index e1276f326b..49586eadba 100644 --- a/plotly/validators/cone/_u.py +++ b/plotly/validators/cone/_u.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/cone/_uhoverformat.py b/plotly/validators/cone/_uhoverformat.py index 7434944295..d53bbc1397 100644 --- a/plotly/validators/cone/_uhoverformat.py +++ b/plotly/validators/cone/_uhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/cone/_uid.py b/plotly/validators/cone/_uid.py index 5f6884653d..fae16d0aa6 100644 --- a/plotly/validators/cone/_uid.py +++ b/plotly/validators/cone/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/cone/_uirevision.py b/plotly/validators/cone/_uirevision.py index 8962d8d3a0..12175c0f75 100644 --- a/plotly/validators/cone/_uirevision.py +++ b/plotly/validators/cone/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/cone/_usrc.py b/plotly/validators/cone/_usrc.py index b3f75fb6fa..a30df3cb22 100644 --- a/plotly/validators/cone/_usrc.py +++ b/plotly/validators/cone/_usrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/cone/_v.py b/plotly/validators/cone/_v.py index 645be3a8f5..4ca6eb6495 100644 --- a/plotly/validators/cone/_v.py +++ b/plotly/validators/cone/_v.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/cone/_vhoverformat.py b/plotly/validators/cone/_vhoverformat.py index 1dff27e9f6..04ae4293e0 100644 --- a/plotly/validators/cone/_vhoverformat.py +++ b/plotly/validators/cone/_vhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/cone/_visible.py b/plotly/validators/cone/_visible.py index 5b057de862..6774e905d0 100644 --- a/plotly/validators/cone/_visible.py +++ b/plotly/validators/cone/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/cone/_vsrc.py b/plotly/validators/cone/_vsrc.py index ff49a98f48..731bd02cf5 100644 --- a/plotly/validators/cone/_vsrc.py +++ b/plotly/validators/cone/_vsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/cone/_w.py b/plotly/validators/cone/_w.py index 71826dd0d1..f99b41efb0 100644 --- a/plotly/validators/cone/_w.py +++ b/plotly/validators/cone/_w.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/cone/_whoverformat.py b/plotly/validators/cone/_whoverformat.py index 9100d456aa..6f309a85d4 100644 --- a/plotly/validators/cone/_whoverformat.py +++ b/plotly/validators/cone/_whoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/cone/_wsrc.py b/plotly/validators/cone/_wsrc.py index b15e963237..0bf2e715ae 100644 --- a/plotly/validators/cone/_wsrc.py +++ b/plotly/validators/cone/_wsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/cone/_x.py b/plotly/validators/cone/_x.py index 79bb35931a..1c94470ced 100644 --- a/plotly/validators/cone/_x.py +++ b/plotly/validators/cone/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/cone/_xhoverformat.py b/plotly/validators/cone/_xhoverformat.py index 3259493d34..ba43933cc8 100644 --- a/plotly/validators/cone/_xhoverformat.py +++ b/plotly/validators/cone/_xhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/cone/_xsrc.py b/plotly/validators/cone/_xsrc.py index 5f167d6648..37c8f665b3 100644 --- a/plotly/validators/cone/_xsrc.py +++ b/plotly/validators/cone/_xsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/cone/_y.py b/plotly/validators/cone/_y.py index 6e6bc31c36..c0e8983f88 100644 --- a/plotly/validators/cone/_y.py +++ b/plotly/validators/cone/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/cone/_yhoverformat.py b/plotly/validators/cone/_yhoverformat.py index 93fd8c5418..90c19c3658 100644 --- a/plotly/validators/cone/_yhoverformat.py +++ b/plotly/validators/cone/_yhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/cone/_ysrc.py b/plotly/validators/cone/_ysrc.py index e61aa0c8f5..1336480572 100644 --- a/plotly/validators/cone/_ysrc.py +++ b/plotly/validators/cone/_ysrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/cone/_z.py b/plotly/validators/cone/_z.py index a7f8870627..ff24b3a1ac 100644 --- a/plotly/validators/cone/_z.py +++ b/plotly/validators/cone/_z.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/cone/_zhoverformat.py b/plotly/validators/cone/_zhoverformat.py index 4a3bc5550b..5a32e2d153 100644 --- a/plotly/validators/cone/_zhoverformat.py +++ b/plotly/validators/cone/_zhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/cone/_zsrc.py b/plotly/validators/cone/_zsrc.py index b6db12b6fe..fc1f3902bb 100644 --- a/plotly/validators/cone/_zsrc.py +++ b/plotly/validators/cone/_zsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/cone/colorbar/__init__.py b/plotly/validators/cone/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/cone/colorbar/__init__.py +++ b/plotly/validators/cone/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/cone/colorbar/_bgcolor.py b/plotly/validators/cone/colorbar/_bgcolor.py index 6fed1233d5..f9afbe3724 100644 --- a/plotly/validators/cone/colorbar/_bgcolor.py +++ b/plotly/validators/cone/colorbar/_bgcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/cone/colorbar/_bordercolor.py b/plotly/validators/cone/colorbar/_bordercolor.py index c24694ee80..70a529121f 100644 --- a/plotly/validators/cone/colorbar/_bordercolor.py +++ b/plotly/validators/cone/colorbar/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/cone/colorbar/_borderwidth.py b/plotly/validators/cone/colorbar/_borderwidth.py index 668b0050d4..88e784340a 100644 --- a/plotly/validators/cone/colorbar/_borderwidth.py +++ b/plotly/validators/cone/colorbar/_borderwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/cone/colorbar/_dtick.py b/plotly/validators/cone/colorbar/_dtick.py index 3154c463de..8983478760 100644 --- a/plotly/validators/cone/colorbar/_dtick.py +++ b/plotly/validators/cone/colorbar/_dtick.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/cone/colorbar/_exponentformat.py b/plotly/validators/cone/colorbar/_exponentformat.py index f0bd7ca5c1..841b9d2967 100644 --- a/plotly/validators/cone/colorbar/_exponentformat.py +++ b/plotly/validators/cone/colorbar/_exponentformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/cone/colorbar/_labelalias.py b/plotly/validators/cone/colorbar/_labelalias.py index 8adec2edbb..dcd7986767 100644 --- a/plotly/validators/cone/colorbar/_labelalias.py +++ b/plotly/validators/cone/colorbar/_labelalias.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/cone/colorbar/_len.py b/plotly/validators/cone/colorbar/_len.py index d7eef61297..0228ee5c1a 100644 --- a/plotly/validators/cone/colorbar/_len.py +++ b/plotly/validators/cone/colorbar/_len.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/cone/colorbar/_lenmode.py b/plotly/validators/cone/colorbar/_lenmode.py index 8d9ba761e8..b494fe0074 100644 --- a/plotly/validators/cone/colorbar/_lenmode.py +++ b/plotly/validators/cone/colorbar/_lenmode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/cone/colorbar/_minexponent.py b/plotly/validators/cone/colorbar/_minexponent.py index abe8e359a8..0929e635a6 100644 --- a/plotly/validators/cone/colorbar/_minexponent.py +++ b/plotly/validators/cone/colorbar/_minexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/cone/colorbar/_nticks.py b/plotly/validators/cone/colorbar/_nticks.py index fd679c0575..125852bc11 100644 --- a/plotly/validators/cone/colorbar/_nticks.py +++ b/plotly/validators/cone/colorbar/_nticks.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/cone/colorbar/_orientation.py b/plotly/validators/cone/colorbar/_orientation.py index cb6fdf9f53..4774a87e6e 100644 --- a/plotly/validators/cone/colorbar/_orientation.py +++ b/plotly/validators/cone/colorbar/_orientation.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/cone/colorbar/_outlinecolor.py b/plotly/validators/cone/colorbar/_outlinecolor.py index 503686174f..33b005e42e 100644 --- a/plotly/validators/cone/colorbar/_outlinecolor.py +++ b/plotly/validators/cone/colorbar/_outlinecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/cone/colorbar/_outlinewidth.py b/plotly/validators/cone/colorbar/_outlinewidth.py index 1806fa7c21..5c18c42e65 100644 --- a/plotly/validators/cone/colorbar/_outlinewidth.py +++ b/plotly/validators/cone/colorbar/_outlinewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/cone/colorbar/_separatethousands.py b/plotly/validators/cone/colorbar/_separatethousands.py index 2753c95abc..56313ada16 100644 --- a/plotly/validators/cone/colorbar/_separatethousands.py +++ b/plotly/validators/cone/colorbar/_separatethousands.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/cone/colorbar/_showexponent.py b/plotly/validators/cone/colorbar/_showexponent.py index 54c039e677..8da064ed1a 100644 --- a/plotly/validators/cone/colorbar/_showexponent.py +++ b/plotly/validators/cone/colorbar/_showexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/cone/colorbar/_showticklabels.py b/plotly/validators/cone/colorbar/_showticklabels.py index de068b090a..6d26a2df02 100644 --- a/plotly/validators/cone/colorbar/_showticklabels.py +++ b/plotly/validators/cone/colorbar/_showticklabels.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/cone/colorbar/_showtickprefix.py b/plotly/validators/cone/colorbar/_showtickprefix.py index e1cca43434..32b4a6029c 100644 --- a/plotly/validators/cone/colorbar/_showtickprefix.py +++ b/plotly/validators/cone/colorbar/_showtickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/cone/colorbar/_showticksuffix.py b/plotly/validators/cone/colorbar/_showticksuffix.py index c99bc63088..72e13a0ac3 100644 --- a/plotly/validators/cone/colorbar/_showticksuffix.py +++ b/plotly/validators/cone/colorbar/_showticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/cone/colorbar/_thickness.py b/plotly/validators/cone/colorbar/_thickness.py index f6e8f94260..c4c2e76a69 100644 --- a/plotly/validators/cone/colorbar/_thickness.py +++ b/plotly/validators/cone/colorbar/_thickness.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/cone/colorbar/_thicknessmode.py b/plotly/validators/cone/colorbar/_thicknessmode.py index c816d61845..39d585974b 100644 --- a/plotly/validators/cone/colorbar/_thicknessmode.py +++ b/plotly/validators/cone/colorbar/_thicknessmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/cone/colorbar/_tick0.py b/plotly/validators/cone/colorbar/_tick0.py index fa9984713c..5329c68574 100644 --- a/plotly/validators/cone/colorbar/_tick0.py +++ b/plotly/validators/cone/colorbar/_tick0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/cone/colorbar/_tickangle.py b/plotly/validators/cone/colorbar/_tickangle.py index c560c4dab4..981c090986 100644 --- a/plotly/validators/cone/colorbar/_tickangle.py +++ b/plotly/validators/cone/colorbar/_tickangle.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/cone/colorbar/_tickcolor.py b/plotly/validators/cone/colorbar/_tickcolor.py index 8f4ecc4b09..a7436e58d7 100644 --- a/plotly/validators/cone/colorbar/_tickcolor.py +++ b/plotly/validators/cone/colorbar/_tickcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/cone/colorbar/_tickfont.py b/plotly/validators/cone/colorbar/_tickfont.py index 63b0705c0b..3e818f0aca 100644 --- a/plotly/validators/cone/colorbar/_tickfont.py +++ b/plotly/validators/cone/colorbar/_tickfont.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/cone/colorbar/_tickformat.py b/plotly/validators/cone/colorbar/_tickformat.py index ffa59ed694..08d65fae8f 100644 --- a/plotly/validators/cone/colorbar/_tickformat.py +++ b/plotly/validators/cone/colorbar/_tickformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/cone/colorbar/_tickformatstopdefaults.py b/plotly/validators/cone/colorbar/_tickformatstopdefaults.py index b261028238..ec565a051e 100644 --- a/plotly/validators/cone/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/cone/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/cone/colorbar/_tickformatstops.py b/plotly/validators/cone/colorbar/_tickformatstops.py index 8beb6215b7..e3c1a87c49 100644 --- a/plotly/validators/cone/colorbar/_tickformatstops.py +++ b/plotly/validators/cone/colorbar/_tickformatstops.py @@ -1,50 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/cone/colorbar/_ticklabeloverflow.py b/plotly/validators/cone/colorbar/_ticklabeloverflow.py index 743a4710b2..d3b402eda0 100644 --- a/plotly/validators/cone/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/cone/colorbar/_ticklabeloverflow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/cone/colorbar/_ticklabelposition.py b/plotly/validators/cone/colorbar/_ticklabelposition.py index b775411670..62e7d758ad 100644 --- a/plotly/validators/cone/colorbar/_ticklabelposition.py +++ b/plotly/validators/cone/colorbar/_ticklabelposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/cone/colorbar/_ticklabelstep.py b/plotly/validators/cone/colorbar/_ticklabelstep.py index d09c1e0352..d21af34f4b 100644 --- a/plotly/validators/cone/colorbar/_ticklabelstep.py +++ b/plotly/validators/cone/colorbar/_ticklabelstep.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/cone/colorbar/_ticklen.py b/plotly/validators/cone/colorbar/_ticklen.py index 4aa67153ba..698ad93250 100644 --- a/plotly/validators/cone/colorbar/_ticklen.py +++ b/plotly/validators/cone/colorbar/_ticklen.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/cone/colorbar/_tickmode.py b/plotly/validators/cone/colorbar/_tickmode.py index b9330a163b..247dc1ccae 100644 --- a/plotly/validators/cone/colorbar/_tickmode.py +++ b/plotly/validators/cone/colorbar/_tickmode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/cone/colorbar/_tickprefix.py b/plotly/validators/cone/colorbar/_tickprefix.py index 45c98c4a6d..3fa44b2463 100644 --- a/plotly/validators/cone/colorbar/_tickprefix.py +++ b/plotly/validators/cone/colorbar/_tickprefix.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/cone/colorbar/_ticks.py b/plotly/validators/cone/colorbar/_ticks.py index 318892131c..ebfd7ff5c6 100644 --- a/plotly/validators/cone/colorbar/_ticks.py +++ b/plotly/validators/cone/colorbar/_ticks.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/cone/colorbar/_ticksuffix.py b/plotly/validators/cone/colorbar/_ticksuffix.py index e5d0d20c7a..43782faa16 100644 --- a/plotly/validators/cone/colorbar/_ticksuffix.py +++ b/plotly/validators/cone/colorbar/_ticksuffix.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/cone/colorbar/_ticktext.py b/plotly/validators/cone/colorbar/_ticktext.py index 229bb43070..a31dcc9b1f 100644 --- a/plotly/validators/cone/colorbar/_ticktext.py +++ b/plotly/validators/cone/colorbar/_ticktext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/cone/colorbar/_ticktextsrc.py b/plotly/validators/cone/colorbar/_ticktextsrc.py index 1f358445b0..b9195479c1 100644 --- a/plotly/validators/cone/colorbar/_ticktextsrc.py +++ b/plotly/validators/cone/colorbar/_ticktextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/cone/colorbar/_tickvals.py b/plotly/validators/cone/colorbar/_tickvals.py index 445c886c03..02b6cd1be9 100644 --- a/plotly/validators/cone/colorbar/_tickvals.py +++ b/plotly/validators/cone/colorbar/_tickvals.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/cone/colorbar/_tickvalssrc.py b/plotly/validators/cone/colorbar/_tickvalssrc.py index bf933b0ad1..660b375f7b 100644 --- a/plotly/validators/cone/colorbar/_tickvalssrc.py +++ b/plotly/validators/cone/colorbar/_tickvalssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/cone/colorbar/_tickwidth.py b/plotly/validators/cone/colorbar/_tickwidth.py index 0197320095..d650d4096b 100644 --- a/plotly/validators/cone/colorbar/_tickwidth.py +++ b/plotly/validators/cone/colorbar/_tickwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/cone/colorbar/_title.py b/plotly/validators/cone/colorbar/_title.py index 4cd3a2d97f..5f8710a25b 100644 --- a/plotly/validators/cone/colorbar/_title.py +++ b/plotly/validators/cone/colorbar/_title.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/cone/colorbar/_x.py b/plotly/validators/cone/colorbar/_x.py index 7bbe61e2a5..0324ae25de 100644 --- a/plotly/validators/cone/colorbar/_x.py +++ b/plotly/validators/cone/colorbar/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/cone/colorbar/_xanchor.py b/plotly/validators/cone/colorbar/_xanchor.py index 699aa52fe4..dffdcb3488 100644 --- a/plotly/validators/cone/colorbar/_xanchor.py +++ b/plotly/validators/cone/colorbar/_xanchor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/cone/colorbar/_xpad.py b/plotly/validators/cone/colorbar/_xpad.py index dc764b089d..070bcba8d4 100644 --- a/plotly/validators/cone/colorbar/_xpad.py +++ b/plotly/validators/cone/colorbar/_xpad.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/cone/colorbar/_xref.py b/plotly/validators/cone/colorbar/_xref.py index 00ba2cb199..ff67c790c1 100644 --- a/plotly/validators/cone/colorbar/_xref.py +++ b/plotly/validators/cone/colorbar/_xref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/cone/colorbar/_y.py b/plotly/validators/cone/colorbar/_y.py index 4a5626878b..124b7ba4c1 100644 --- a/plotly/validators/cone/colorbar/_y.py +++ b/plotly/validators/cone/colorbar/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/cone/colorbar/_yanchor.py b/plotly/validators/cone/colorbar/_yanchor.py index 2628b83d43..7ccb7fc605 100644 --- a/plotly/validators/cone/colorbar/_yanchor.py +++ b/plotly/validators/cone/colorbar/_yanchor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/cone/colorbar/_ypad.py b/plotly/validators/cone/colorbar/_ypad.py index 754e53f9af..de910d016a 100644 --- a/plotly/validators/cone/colorbar/_ypad.py +++ b/plotly/validators/cone/colorbar/_ypad.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/cone/colorbar/_yref.py b/plotly/validators/cone/colorbar/_yref.py index 27ba8d53ee..d5ec1317a8 100644 --- a/plotly/validators/cone/colorbar/_yref.py +++ b/plotly/validators/cone/colorbar/_yref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/cone/colorbar/tickfont/__init__.py b/plotly/validators/cone/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/cone/colorbar/tickfont/__init__.py +++ b/plotly/validators/cone/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/cone/colorbar/tickfont/_color.py b/plotly/validators/cone/colorbar/tickfont/_color.py index fc7bec275a..f62f59d590 100644 --- a/plotly/validators/cone/colorbar/tickfont/_color.py +++ b/plotly/validators/cone/colorbar/tickfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/cone/colorbar/tickfont/_family.py b/plotly/validators/cone/colorbar/tickfont/_family.py index 8b8e236c49..149f7f914c 100644 --- a/plotly/validators/cone/colorbar/tickfont/_family.py +++ b/plotly/validators/cone/colorbar/tickfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/cone/colorbar/tickfont/_lineposition.py b/plotly/validators/cone/colorbar/tickfont/_lineposition.py index 2138c049a5..64abef6714 100644 --- a/plotly/validators/cone/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/cone/colorbar/tickfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/cone/colorbar/tickfont/_shadow.py b/plotly/validators/cone/colorbar/tickfont/_shadow.py index 064ecede9b..995e9bec7f 100644 --- a/plotly/validators/cone/colorbar/tickfont/_shadow.py +++ b/plotly/validators/cone/colorbar/tickfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/cone/colorbar/tickfont/_size.py b/plotly/validators/cone/colorbar/tickfont/_size.py index 9cc8826f89..13144daa51 100644 --- a/plotly/validators/cone/colorbar/tickfont/_size.py +++ b/plotly/validators/cone/colorbar/tickfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/cone/colorbar/tickfont/_style.py b/plotly/validators/cone/colorbar/tickfont/_style.py index a22317659d..00f095cdd0 100644 --- a/plotly/validators/cone/colorbar/tickfont/_style.py +++ b/plotly/validators/cone/colorbar/tickfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/cone/colorbar/tickfont/_textcase.py b/plotly/validators/cone/colorbar/tickfont/_textcase.py index d0514f821f..bc6d064485 100644 --- a/plotly/validators/cone/colorbar/tickfont/_textcase.py +++ b/plotly/validators/cone/colorbar/tickfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/cone/colorbar/tickfont/_variant.py b/plotly/validators/cone/colorbar/tickfont/_variant.py index 39dece837b..ed82f5d3b8 100644 --- a/plotly/validators/cone/colorbar/tickfont/_variant.py +++ b/plotly/validators/cone/colorbar/tickfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/cone/colorbar/tickfont/_weight.py b/plotly/validators/cone/colorbar/tickfont/_weight.py index d402c58647..abd58da86e 100644 --- a/plotly/validators/cone/colorbar/tickfont/_weight.py +++ b/plotly/validators/cone/colorbar/tickfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/cone/colorbar/tickformatstop/__init__.py b/plotly/validators/cone/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/cone/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/cone/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/cone/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/cone/colorbar/tickformatstop/_dtickrange.py index 0dcc9a39ce..94b3d5bdf7 100644 --- a/plotly/validators/cone/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/cone/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( "items", diff --git a/plotly/validators/cone/colorbar/tickformatstop/_enabled.py b/plotly/validators/cone/colorbar/tickformatstop/_enabled.py index 667502b107..fa70222573 100644 --- a/plotly/validators/cone/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/cone/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/cone/colorbar/tickformatstop/_name.py b/plotly/validators/cone/colorbar/tickformatstop/_name.py index 3192cd7260..feff55c8a2 100644 --- a/plotly/validators/cone/colorbar/tickformatstop/_name.py +++ b/plotly/validators/cone/colorbar/tickformatstop/_name.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/cone/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/cone/colorbar/tickformatstop/_templateitemname.py index 5f3f3abb48..408f432509 100644 --- a/plotly/validators/cone/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/cone/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/cone/colorbar/tickformatstop/_value.py b/plotly/validators/cone/colorbar/tickformatstop/_value.py index e74bb51601..a09d706637 100644 --- a/plotly/validators/cone/colorbar/tickformatstop/_value.py +++ b/plotly/validators/cone/colorbar/tickformatstop/_value.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/cone/colorbar/title/__init__.py b/plotly/validators/cone/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/cone/colorbar/title/__init__.py +++ b/plotly/validators/cone/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/cone/colorbar/title/_font.py b/plotly/validators/cone/colorbar/title/_font.py index a9fdeb6733..438232f6d6 100644 --- a/plotly/validators/cone/colorbar/title/_font.py +++ b/plotly/validators/cone/colorbar/title/_font.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/cone/colorbar/title/_side.py b/plotly/validators/cone/colorbar/title/_side.py index 2a706bbb30..9a15769123 100644 --- a/plotly/validators/cone/colorbar/title/_side.py +++ b/plotly/validators/cone/colorbar/title/_side.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/cone/colorbar/title/_text.py b/plotly/validators/cone/colorbar/title/_text.py index be76a31059..9871149427 100644 --- a/plotly/validators/cone/colorbar/title/_text.py +++ b/plotly/validators/cone/colorbar/title/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/cone/colorbar/title/font/__init__.py b/plotly/validators/cone/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/cone/colorbar/title/font/__init__.py +++ b/plotly/validators/cone/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/cone/colorbar/title/font/_color.py b/plotly/validators/cone/colorbar/title/font/_color.py index cfa7ce647d..b96f546177 100644 --- a/plotly/validators/cone/colorbar/title/font/_color.py +++ b/plotly/validators/cone/colorbar/title/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/cone/colorbar/title/font/_family.py b/plotly/validators/cone/colorbar/title/font/_family.py index c44378c199..021109c507 100644 --- a/plotly/validators/cone/colorbar/title/font/_family.py +++ b/plotly/validators/cone/colorbar/title/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/cone/colorbar/title/font/_lineposition.py b/plotly/validators/cone/colorbar/title/font/_lineposition.py index a43100a993..105768f74f 100644 --- a/plotly/validators/cone/colorbar/title/font/_lineposition.py +++ b/plotly/validators/cone/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/cone/colorbar/title/font/_shadow.py b/plotly/validators/cone/colorbar/title/font/_shadow.py index 9fdb8c184f..58c66cfdd0 100644 --- a/plotly/validators/cone/colorbar/title/font/_shadow.py +++ b/plotly/validators/cone/colorbar/title/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/cone/colorbar/title/font/_size.py b/plotly/validators/cone/colorbar/title/font/_size.py index 553454414e..72d2698cd1 100644 --- a/plotly/validators/cone/colorbar/title/font/_size.py +++ b/plotly/validators/cone/colorbar/title/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/cone/colorbar/title/font/_style.py b/plotly/validators/cone/colorbar/title/font/_style.py index ac59a8317a..b835d076eb 100644 --- a/plotly/validators/cone/colorbar/title/font/_style.py +++ b/plotly/validators/cone/colorbar/title/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/cone/colorbar/title/font/_textcase.py b/plotly/validators/cone/colorbar/title/font/_textcase.py index a40098bcca..2fbc858028 100644 --- a/plotly/validators/cone/colorbar/title/font/_textcase.py +++ b/plotly/validators/cone/colorbar/title/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/cone/colorbar/title/font/_variant.py b/plotly/validators/cone/colorbar/title/font/_variant.py index ef9b7285d9..af61325ec7 100644 --- a/plotly/validators/cone/colorbar/title/font/_variant.py +++ b/plotly/validators/cone/colorbar/title/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/cone/colorbar/title/font/_weight.py b/plotly/validators/cone/colorbar/title/font/_weight.py index 781473b656..4f627e3e51 100644 --- a/plotly/validators/cone/colorbar/title/font/_weight.py +++ b/plotly/validators/cone/colorbar/title/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/cone/hoverlabel/__init__.py b/plotly/validators/cone/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/cone/hoverlabel/__init__.py +++ b/plotly/validators/cone/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/cone/hoverlabel/_align.py b/plotly/validators/cone/hoverlabel/_align.py index 11f1153b67..394b77d910 100644 --- a/plotly/validators/cone/hoverlabel/_align.py +++ b/plotly/validators/cone/hoverlabel/_align.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/cone/hoverlabel/_alignsrc.py b/plotly/validators/cone/hoverlabel/_alignsrc.py index 0055eeef54..a89da963c1 100644 --- a/plotly/validators/cone/hoverlabel/_alignsrc.py +++ b/plotly/validators/cone/hoverlabel/_alignsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/cone/hoverlabel/_bgcolor.py b/plotly/validators/cone/hoverlabel/_bgcolor.py index 2831a4b482..a32c49389a 100644 --- a/plotly/validators/cone/hoverlabel/_bgcolor.py +++ b/plotly/validators/cone/hoverlabel/_bgcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/cone/hoverlabel/_bgcolorsrc.py b/plotly/validators/cone/hoverlabel/_bgcolorsrc.py index d1d605e30d..cbfe4285db 100644 --- a/plotly/validators/cone/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/cone/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/cone/hoverlabel/_bordercolor.py b/plotly/validators/cone/hoverlabel/_bordercolor.py index a053819ec3..42b5e7aa07 100644 --- a/plotly/validators/cone/hoverlabel/_bordercolor.py +++ b/plotly/validators/cone/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/cone/hoverlabel/_bordercolorsrc.py b/plotly/validators/cone/hoverlabel/_bordercolorsrc.py index 6ac1cf6bc2..ece6448599 100644 --- a/plotly/validators/cone/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/cone/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/cone/hoverlabel/_font.py b/plotly/validators/cone/hoverlabel/_font.py index 1235a36d8f..993909db55 100644 --- a/plotly/validators/cone/hoverlabel/_font.py +++ b/plotly/validators/cone/hoverlabel/_font.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/cone/hoverlabel/_namelength.py b/plotly/validators/cone/hoverlabel/_namelength.py index 75eb9875d8..bfb464c789 100644 --- a/plotly/validators/cone/hoverlabel/_namelength.py +++ b/plotly/validators/cone/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/cone/hoverlabel/_namelengthsrc.py b/plotly/validators/cone/hoverlabel/_namelengthsrc.py index ca35a9f458..4f4d610078 100644 --- a/plotly/validators/cone/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/cone/hoverlabel/_namelengthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/cone/hoverlabel/font/__init__.py b/plotly/validators/cone/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/cone/hoverlabel/font/__init__.py +++ b/plotly/validators/cone/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/cone/hoverlabel/font/_color.py b/plotly/validators/cone/hoverlabel/font/_color.py index 31bd6d1097..4c374ce477 100644 --- a/plotly/validators/cone/hoverlabel/font/_color.py +++ b/plotly/validators/cone/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/cone/hoverlabel/font/_colorsrc.py b/plotly/validators/cone/hoverlabel/font/_colorsrc.py index 8fcdaef169..4541874f88 100644 --- a/plotly/validators/cone/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/cone/hoverlabel/font/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/cone/hoverlabel/font/_family.py b/plotly/validators/cone/hoverlabel/font/_family.py index b42f6ecee1..fb331e5ff2 100644 --- a/plotly/validators/cone/hoverlabel/font/_family.py +++ b/plotly/validators/cone/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/cone/hoverlabel/font/_familysrc.py b/plotly/validators/cone/hoverlabel/font/_familysrc.py index e5338219a0..a5dd2c54e3 100644 --- a/plotly/validators/cone/hoverlabel/font/_familysrc.py +++ b/plotly/validators/cone/hoverlabel/font/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/cone/hoverlabel/font/_lineposition.py b/plotly/validators/cone/hoverlabel/font/_lineposition.py index 1a969cc12c..c0a78c9084 100644 --- a/plotly/validators/cone/hoverlabel/font/_lineposition.py +++ b/plotly/validators/cone/hoverlabel/font/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/cone/hoverlabel/font/_linepositionsrc.py b/plotly/validators/cone/hoverlabel/font/_linepositionsrc.py index 69a65125af..d75b5d4ec9 100644 --- a/plotly/validators/cone/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/cone/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/cone/hoverlabel/font/_shadow.py b/plotly/validators/cone/hoverlabel/font/_shadow.py index c1a9b2353a..06a08fe122 100644 --- a/plotly/validators/cone/hoverlabel/font/_shadow.py +++ b/plotly/validators/cone/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/cone/hoverlabel/font/_shadowsrc.py b/plotly/validators/cone/hoverlabel/font/_shadowsrc.py index 1d218d02ca..73035f4941 100644 --- a/plotly/validators/cone/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/cone/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/cone/hoverlabel/font/_size.py b/plotly/validators/cone/hoverlabel/font/_size.py index 2fd64080c4..7504ee892e 100644 --- a/plotly/validators/cone/hoverlabel/font/_size.py +++ b/plotly/validators/cone/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/cone/hoverlabel/font/_sizesrc.py b/plotly/validators/cone/hoverlabel/font/_sizesrc.py index 35351a87c3..6587b77c45 100644 --- a/plotly/validators/cone/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/cone/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/cone/hoverlabel/font/_style.py b/plotly/validators/cone/hoverlabel/font/_style.py index dd2b0d3ca7..504fbe624f 100644 --- a/plotly/validators/cone/hoverlabel/font/_style.py +++ b/plotly/validators/cone/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/cone/hoverlabel/font/_stylesrc.py b/plotly/validators/cone/hoverlabel/font/_stylesrc.py index 57367e9701..fa0115baba 100644 --- a/plotly/validators/cone/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/cone/hoverlabel/font/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/cone/hoverlabel/font/_textcase.py b/plotly/validators/cone/hoverlabel/font/_textcase.py index 3a1581f706..4bbf0850eb 100644 --- a/plotly/validators/cone/hoverlabel/font/_textcase.py +++ b/plotly/validators/cone/hoverlabel/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/cone/hoverlabel/font/_textcasesrc.py b/plotly/validators/cone/hoverlabel/font/_textcasesrc.py index 486d4259a5..043cf7f0c4 100644 --- a/plotly/validators/cone/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/cone/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/cone/hoverlabel/font/_variant.py b/plotly/validators/cone/hoverlabel/font/_variant.py index 960385ac92..74461a6206 100644 --- a/plotly/validators/cone/hoverlabel/font/_variant.py +++ b/plotly/validators/cone/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/cone/hoverlabel/font/_variantsrc.py b/plotly/validators/cone/hoverlabel/font/_variantsrc.py index dfbe3e645a..144d36de7a 100644 --- a/plotly/validators/cone/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/cone/hoverlabel/font/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/cone/hoverlabel/font/_weight.py b/plotly/validators/cone/hoverlabel/font/_weight.py index 2c9930f70d..371a16446e 100644 --- a/plotly/validators/cone/hoverlabel/font/_weight.py +++ b/plotly/validators/cone/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/cone/hoverlabel/font/_weightsrc.py b/plotly/validators/cone/hoverlabel/font/_weightsrc.py index 928d9dd843..a407a191ae 100644 --- a/plotly/validators/cone/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/cone/hoverlabel/font/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/cone/legendgrouptitle/__init__.py b/plotly/validators/cone/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/cone/legendgrouptitle/__init__.py +++ b/plotly/validators/cone/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/cone/legendgrouptitle/_font.py b/plotly/validators/cone/legendgrouptitle/_font.py index a466b34904..0f8be6c98a 100644 --- a/plotly/validators/cone/legendgrouptitle/_font.py +++ b/plotly/validators/cone/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/cone/legendgrouptitle/_text.py b/plotly/validators/cone/legendgrouptitle/_text.py index b90f511ec1..7801619b33 100644 --- a/plotly/validators/cone/legendgrouptitle/_text.py +++ b/plotly/validators/cone/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/cone/legendgrouptitle/font/__init__.py b/plotly/validators/cone/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/cone/legendgrouptitle/font/__init__.py +++ b/plotly/validators/cone/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/cone/legendgrouptitle/font/_color.py b/plotly/validators/cone/legendgrouptitle/font/_color.py index d5758d4bcf..3a208ca51c 100644 --- a/plotly/validators/cone/legendgrouptitle/font/_color.py +++ b/plotly/validators/cone/legendgrouptitle/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/cone/legendgrouptitle/font/_family.py b/plotly/validators/cone/legendgrouptitle/font/_family.py index 5d1fc66538..8c28a4547b 100644 --- a/plotly/validators/cone/legendgrouptitle/font/_family.py +++ b/plotly/validators/cone/legendgrouptitle/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/cone/legendgrouptitle/font/_lineposition.py b/plotly/validators/cone/legendgrouptitle/font/_lineposition.py index c598e3c69c..d51498183a 100644 --- a/plotly/validators/cone/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/cone/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/cone/legendgrouptitle/font/_shadow.py b/plotly/validators/cone/legendgrouptitle/font/_shadow.py index 8442b3db2a..548b766c94 100644 --- a/plotly/validators/cone/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/cone/legendgrouptitle/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/cone/legendgrouptitle/font/_size.py b/plotly/validators/cone/legendgrouptitle/font/_size.py index 4509f85e29..7b9d5524dd 100644 --- a/plotly/validators/cone/legendgrouptitle/font/_size.py +++ b/plotly/validators/cone/legendgrouptitle/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/cone/legendgrouptitle/font/_style.py b/plotly/validators/cone/legendgrouptitle/font/_style.py index 0ada8ad7f7..330985d16b 100644 --- a/plotly/validators/cone/legendgrouptitle/font/_style.py +++ b/plotly/validators/cone/legendgrouptitle/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/cone/legendgrouptitle/font/_textcase.py b/plotly/validators/cone/legendgrouptitle/font/_textcase.py index 85cd37860a..567977dcb7 100644 --- a/plotly/validators/cone/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/cone/legendgrouptitle/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/cone/legendgrouptitle/font/_variant.py b/plotly/validators/cone/legendgrouptitle/font/_variant.py index 6579aa827c..9c1b2ab761 100644 --- a/plotly/validators/cone/legendgrouptitle/font/_variant.py +++ b/plotly/validators/cone/legendgrouptitle/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/cone/legendgrouptitle/font/_weight.py b/plotly/validators/cone/legendgrouptitle/font/_weight.py index adaaf6c26e..88b121f1c8 100644 --- a/plotly/validators/cone/legendgrouptitle/font/_weight.py +++ b/plotly/validators/cone/legendgrouptitle/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/cone/lighting/__init__.py b/plotly/validators/cone/lighting/__init__.py index 028351f35d..1f11e1b86f 100644 --- a/plotly/validators/cone/lighting/__init__.py +++ b/plotly/validators/cone/lighting/__init__.py @@ -1,27 +1,16 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._vertexnormalsepsilon import VertexnormalsepsilonValidator - from ._specular import SpecularValidator - from ._roughness import RoughnessValidator - from ._fresnel import FresnelValidator - from ._facenormalsepsilon import FacenormalsepsilonValidator - from ._diffuse import DiffuseValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._vertexnormalsepsilon.VertexnormalsepsilonValidator", + "._specular.SpecularValidator", + "._roughness.RoughnessValidator", + "._fresnel.FresnelValidator", + "._facenormalsepsilon.FacenormalsepsilonValidator", + "._diffuse.DiffuseValidator", + "._ambient.AmbientValidator", + ], +) diff --git a/plotly/validators/cone/lighting/_ambient.py b/plotly/validators/cone/lighting/_ambient.py index c653d51a80..0a9e9a39ef 100644 --- a/plotly/validators/cone/lighting/_ambient.py +++ b/plotly/validators/cone/lighting/_ambient.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AmbientValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/cone/lighting/_diffuse.py b/plotly/validators/cone/lighting/_diffuse.py index 4e29e0da1c..87b02785d5 100644 --- a/plotly/validators/cone/lighting/_diffuse.py +++ b/plotly/validators/cone/lighting/_diffuse.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DiffuseValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/cone/lighting/_facenormalsepsilon.py b/plotly/validators/cone/lighting/_facenormalsepsilon.py index cf70d9e603..d0818468ca 100644 --- a/plotly/validators/cone/lighting/_facenormalsepsilon.py +++ b/plotly/validators/cone/lighting/_facenormalsepsilon.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FacenormalsepsilonValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/cone/lighting/_fresnel.py b/plotly/validators/cone/lighting/_fresnel.py index 09589f6564..b67c151b14 100644 --- a/plotly/validators/cone/lighting/_fresnel.py +++ b/plotly/validators/cone/lighting/_fresnel.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FresnelValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 5), min=kwargs.pop("min", 0), diff --git a/plotly/validators/cone/lighting/_roughness.py b/plotly/validators/cone/lighting/_roughness.py index fb5e25f590..b8324495a7 100644 --- a/plotly/validators/cone/lighting/_roughness.py +++ b/plotly/validators/cone/lighting/_roughness.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RoughnessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/cone/lighting/_specular.py b/plotly/validators/cone/lighting/_specular.py index 807808f499..fd5cf49baa 100644 --- a/plotly/validators/cone/lighting/_specular.py +++ b/plotly/validators/cone/lighting/_specular.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SpecularValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 2), min=kwargs.pop("min", 0), diff --git a/plotly/validators/cone/lighting/_vertexnormalsepsilon.py b/plotly/validators/cone/lighting/_vertexnormalsepsilon.py index acceaa00b7..5ca8452691 100644 --- a/plotly/validators/cone/lighting/_vertexnormalsepsilon.py +++ b/plotly/validators/cone/lighting/_vertexnormalsepsilon.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VertexnormalsepsilonValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/cone/lightposition/__init__.py b/plotly/validators/cone/lightposition/__init__.py index 52779f59bc..8c47d2db5f 100644 --- a/plotly/validators/cone/lightposition/__init__.py +++ b/plotly/validators/cone/lightposition/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] +) diff --git a/plotly/validators/cone/lightposition/_x.py b/plotly/validators/cone/lightposition/_x.py index 1f3e4123f7..082fa0d5ae 100644 --- a/plotly/validators/cone/lightposition/_x.py +++ b/plotly/validators/cone/lightposition/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 100000), min=kwargs.pop("min", -100000), diff --git a/plotly/validators/cone/lightposition/_y.py b/plotly/validators/cone/lightposition/_y.py index 0a09973d3b..81e74aefae 100644 --- a/plotly/validators/cone/lightposition/_y.py +++ b/plotly/validators/cone/lightposition/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 100000), min=kwargs.pop("min", -100000), diff --git a/plotly/validators/cone/lightposition/_z.py b/plotly/validators/cone/lightposition/_z.py index 8798d2e718..c9a3d1e43d 100644 --- a/plotly/validators/cone/lightposition/_z.py +++ b/plotly/validators/cone/lightposition/_z.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 100000), min=kwargs.pop("min", -100000), diff --git a/plotly/validators/cone/stream/__init__.py b/plotly/validators/cone/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/cone/stream/__init__.py +++ b/plotly/validators/cone/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/cone/stream/_maxpoints.py b/plotly/validators/cone/stream/_maxpoints.py index 8cee99162d..8b79eec512 100644 --- a/plotly/validators/cone/stream/_maxpoints.py +++ b/plotly/validators/cone/stream/_maxpoints.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/cone/stream/_token.py b/plotly/validators/cone/stream/_token.py index effbe3d849..a94ba2a6d4 100644 --- a/plotly/validators/cone/stream/_token.py +++ b/plotly/validators/cone/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/contour/__init__.py b/plotly/validators/contour/__init__.py index 23cad4b2bf..a6dc766c99 100644 --- a/plotly/validators/contour/__init__.py +++ b/plotly/validators/contour/__init__.py @@ -1,159 +1,82 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zsrc import ZsrcValidator - from ._zorder import ZorderValidator - from ._zmin import ZminValidator - from ._zmid import ZmidValidator - from ._zmax import ZmaxValidator - from ._zhoverformat import ZhoverformatValidator - from ._zauto import ZautoValidator - from ._z import ZValidator - from ._ytype import YtypeValidator - from ._ysrc import YsrcValidator - from ._yperiodalignment import YperiodalignmentValidator - from ._yperiod0 import Yperiod0Validator - from ._yperiod import YperiodValidator - from ._yhoverformat import YhoverformatValidator - from ._ycalendar import YcalendarValidator - from ._yaxis import YaxisValidator - from ._y0 import Y0Validator - from ._y import YValidator - from ._xtype import XtypeValidator - from ._xsrc import XsrcValidator - from ._xperiodalignment import XperiodalignmentValidator - from ._xperiod0 import Xperiod0Validator - from ._xperiod import XperiodValidator - from ._xhoverformat import XhoverformatValidator - from ._xcalendar import XcalendarValidator - from ._xaxis import XaxisValidator - from ._x0 import X0Validator - from ._x import XValidator - from ._visible import VisibleValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._transpose import TransposeValidator - from ._texttemplate import TexttemplateValidator - from ._textsrc import TextsrcValidator - from ._textfont import TextfontValidator - from ._text import TextValidator - from ._stream import StreamValidator - from ._showscale import ShowscaleValidator - from ._showlegend import ShowlegendValidator - from ._reversescale import ReversescaleValidator - from ._opacity import OpacityValidator - from ._ncontours import NcontoursValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._line import LineValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoverongaps import HoverongapsValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._fillcolor import FillcolorValidator - from ._dy import DyValidator - from ._dx import DxValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._contours import ContoursValidator - from ._connectgaps import ConnectgapsValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._autocontour import AutocontourValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/contour/_autocolorscale.py b/plotly/validators/contour/_autocolorscale.py index 1cb777393a..f83aa4e9a0 100644 --- a/plotly/validators/contour/_autocolorscale.py +++ b/plotly/validators/contour/_autocolorscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/contour/_autocontour.py b/plotly/validators/contour/_autocontour.py index e350a10b9a..afabadbfca 100644 --- a/plotly/validators/contour/_autocontour.py +++ b/plotly/validators/contour/_autocontour.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocontourValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/contour/_coloraxis.py b/plotly/validators/contour/_coloraxis.py index 420af58bf0..602c8478d8 100644 --- a/plotly/validators/contour/_coloraxis.py +++ b/plotly/validators/contour/_coloraxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/contour/_colorbar.py b/plotly/validators/contour/_colorbar.py index cab8477632..89f1ebffdb 100644 --- a/plotly/validators/contour/_colorbar.py +++ b/plotly/validators/contour/_colorbar.py @@ -1,278 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/contour/_colorscale.py b/plotly/validators/contour/_colorscale.py index f507719895..3dab890a1e 100644 --- a/plotly/validators/contour/_colorscale.py +++ b/plotly/validators/contour/_colorscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/contour/_connectgaps.py b/plotly/validators/contour/_connectgaps.py index 96a4520d59..a22a23892c 100644 --- a/plotly/validators/contour/_connectgaps.py +++ b/plotly/validators/contour/_connectgaps.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/contour/_contours.py b/plotly/validators/contour/_contours.py index 7171016089..68779fe435 100644 --- a/plotly/validators/contour/_contours.py +++ b/plotly/validators/contour/_contours.py @@ -1,78 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ContoursValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/contour/_customdata.py b/plotly/validators/contour/_customdata.py index 1947da3af6..e9f92c4beb 100644 --- a/plotly/validators/contour/_customdata.py +++ b/plotly/validators/contour/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/contour/_customdatasrc.py b/plotly/validators/contour/_customdatasrc.py index 527b97972d..3aa40c7fdc 100644 --- a/plotly/validators/contour/_customdatasrc.py +++ b/plotly/validators/contour/_customdatasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contour/_dx.py b/plotly/validators/contour/_dx.py index 4aeaae3353..d5c9b18647 100644 --- a/plotly/validators/contour/_dx.py +++ b/plotly/validators/contour/_dx.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"xtype": "scaled"}), **kwargs, diff --git a/plotly/validators/contour/_dy.py b/plotly/validators/contour/_dy.py index 777d093310..f60000dfb8 100644 --- a/plotly/validators/contour/_dy.py +++ b/plotly/validators/contour/_dy.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DyValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"ytype": "scaled"}), **kwargs, diff --git a/plotly/validators/contour/_fillcolor.py b/plotly/validators/contour/_fillcolor.py index 140afdba72..b0701aeeb2 100644 --- a/plotly/validators/contour/_fillcolor.py +++ b/plotly/validators/contour/_fillcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), colorscale_path=kwargs.pop("colorscale_path", "contour.colorscale"), **kwargs, diff --git a/plotly/validators/contour/_hoverinfo.py b/plotly/validators/contour/_hoverinfo.py index 86a56e0bb7..4c931ec4f5 100644 --- a/plotly/validators/contour/_hoverinfo.py +++ b/plotly/validators/contour/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/contour/_hoverinfosrc.py b/plotly/validators/contour/_hoverinfosrc.py index 2e607565e9..c8a9f623f9 100644 --- a/plotly/validators/contour/_hoverinfosrc.py +++ b/plotly/validators/contour/_hoverinfosrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contour/_hoverlabel.py b/plotly/validators/contour/_hoverlabel.py index 09aa013906..a9adcb58b9 100644 --- a/plotly/validators/contour/_hoverlabel.py +++ b/plotly/validators/contour/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/contour/_hoverongaps.py b/plotly/validators/contour/_hoverongaps.py index 78bfd06243..2a2298774c 100644 --- a/plotly/validators/contour/_hoverongaps.py +++ b/plotly/validators/contour/_hoverongaps.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverongapsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contour/_hovertemplate.py b/plotly/validators/contour/_hovertemplate.py index d756ca1cad..3977cc2621 100644 --- a/plotly/validators/contour/_hovertemplate.py +++ b/plotly/validators/contour/_hovertemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/contour/_hovertemplatesrc.py b/plotly/validators/contour/_hovertemplatesrc.py index c4cc56de80..de66d26a5f 100644 --- a/plotly/validators/contour/_hovertemplatesrc.py +++ b/plotly/validators/contour/_hovertemplatesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contour/_hovertext.py b/plotly/validators/contour/_hovertext.py index 98cfdc3187..b375ecec5a 100644 --- a/plotly/validators/contour/_hovertext.py +++ b/plotly/validators/contour/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/contour/_hovertextsrc.py b/plotly/validators/contour/_hovertextsrc.py index 43e665d354..b5b62d64ec 100644 --- a/plotly/validators/contour/_hovertextsrc.py +++ b/plotly/validators/contour/_hovertextsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contour/_ids.py b/plotly/validators/contour/_ids.py index 66c18871f2..1542ac72f9 100644 --- a/plotly/validators/contour/_ids.py +++ b/plotly/validators/contour/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/contour/_idssrc.py b/plotly/validators/contour/_idssrc.py index c1b35a13d4..b15f200a57 100644 --- a/plotly/validators/contour/_idssrc.py +++ b/plotly/validators/contour/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contour/_legend.py b/plotly/validators/contour/_legend.py index 83c2484961..9835815509 100644 --- a/plotly/validators/contour/_legend.py +++ b/plotly/validators/contour/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/contour/_legendgroup.py b/plotly/validators/contour/_legendgroup.py index 51690bbb5d..4052a836d2 100644 --- a/plotly/validators/contour/_legendgroup.py +++ b/plotly/validators/contour/_legendgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/contour/_legendgrouptitle.py b/plotly/validators/contour/_legendgrouptitle.py index 8a5353fc4e..ad851eb8ed 100644 --- a/plotly/validators/contour/_legendgrouptitle.py +++ b/plotly/validators/contour/_legendgrouptitle.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/contour/_legendrank.py b/plotly/validators/contour/_legendrank.py index 6711ed5976..2d5c86c245 100644 --- a/plotly/validators/contour/_legendrank.py +++ b/plotly/validators/contour/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/contour/_legendwidth.py b/plotly/validators/contour/_legendwidth.py index f46e609e6a..1786c3f362 100644 --- a/plotly/validators/contour/_legendwidth.py +++ b/plotly/validators/contour/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/contour/_line.py b/plotly/validators/contour/_line.py index c7dbbb7a64..aaed049b77 100644 --- a/plotly/validators/contour/_line.py +++ b/plotly/validators/contour/_line.py @@ -1,32 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/contour/_meta.py b/plotly/validators/contour/_meta.py index 099ddb2ff6..1761e7cc99 100644 --- a/plotly/validators/contour/_meta.py +++ b/plotly/validators/contour/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/contour/_metasrc.py b/plotly/validators/contour/_metasrc.py index 8d304a07ba..bf97a50853 100644 --- a/plotly/validators/contour/_metasrc.py +++ b/plotly/validators/contour/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contour/_name.py b/plotly/validators/contour/_name.py index e63bf63d15..bdabbe7e2a 100644 --- a/plotly/validators/contour/_name.py +++ b/plotly/validators/contour/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/contour/_ncontours.py b/plotly/validators/contour/_ncontours.py index d5ab9bcb07..c35d26e26b 100644 --- a/plotly/validators/contour/_ncontours.py +++ b/plotly/validators/contour/_ncontours.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NcontoursValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/contour/_opacity.py b/plotly/validators/contour/_opacity.py index 17c0c3aee5..67a64990cc 100644 --- a/plotly/validators/contour/_opacity.py +++ b/plotly/validators/contour/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/contour/_reversescale.py b/plotly/validators/contour/_reversescale.py index c6581da732..4b4d73950f 100644 --- a/plotly/validators/contour/_reversescale.py +++ b/plotly/validators/contour/_reversescale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/contour/_showlegend.py b/plotly/validators/contour/_showlegend.py index 196a29fa77..f44a8e3efb 100644 --- a/plotly/validators/contour/_showlegend.py +++ b/plotly/validators/contour/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/contour/_showscale.py b/plotly/validators/contour/_showscale.py index c3a7cd5e7b..6129bcb006 100644 --- a/plotly/validators/contour/_showscale.py +++ b/plotly/validators/contour/_showscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/contour/_stream.py b/plotly/validators/contour/_stream.py index 5500337ec5..3b08e649d7 100644 --- a/plotly/validators/contour/_stream.py +++ b/plotly/validators/contour/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/contour/_text.py b/plotly/validators/contour/_text.py index 20d0400c3a..ca0bcadcfc 100644 --- a/plotly/validators/contour/_text.py +++ b/plotly/validators/contour/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/contour/_textfont.py b/plotly/validators/contour/_textfont.py index efb0de5f6b..b2a9a7b0f8 100644 --- a/plotly/validators/contour/_textfont.py +++ b/plotly/validators/contour/_textfont.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/contour/_textsrc.py b/plotly/validators/contour/_textsrc.py index d829326fa2..7b727f6f3e 100644 --- a/plotly/validators/contour/_textsrc.py +++ b/plotly/validators/contour/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contour/_texttemplate.py b/plotly/validators/contour/_texttemplate.py index e1bc5d1302..5dcfe36f66 100644 --- a/plotly/validators/contour/_texttemplate.py +++ b/plotly/validators/contour/_texttemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/contour/_transpose.py b/plotly/validators/contour/_transpose.py index 6e8205cc0d..c4861ad781 100644 --- a/plotly/validators/contour/_transpose.py +++ b/plotly/validators/contour/_transpose.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TransposeValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/contour/_uid.py b/plotly/validators/contour/_uid.py index 2a4796ed66..c8321d0ae5 100644 --- a/plotly/validators/contour/_uid.py +++ b/plotly/validators/contour/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/contour/_uirevision.py b/plotly/validators/contour/_uirevision.py index ed006a7fc5..830a2ff5ba 100644 --- a/plotly/validators/contour/_uirevision.py +++ b/plotly/validators/contour/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contour/_visible.py b/plotly/validators/contour/_visible.py index 0df9c93d61..481297a325 100644 --- a/plotly/validators/contour/_visible.py +++ b/plotly/validators/contour/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/contour/_x.py b/plotly/validators/contour/_x.py index 81d723ee86..407a22887f 100644 --- a/plotly/validators/contour/_x.py +++ b/plotly/validators/contour/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), implied_edits=kwargs.pop("implied_edits", {"xtype": "array"}), **kwargs, diff --git a/plotly/validators/contour/_x0.py b/plotly/validators/contour/_x0.py index c26910c0b8..fefe63d0d8 100644 --- a/plotly/validators/contour/_x0.py +++ b/plotly/validators/contour/_x0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class X0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), implied_edits=kwargs.pop("implied_edits", {"xtype": "scaled"}), **kwargs, diff --git a/plotly/validators/contour/_xaxis.py b/plotly/validators/contour/_xaxis.py index 87546e8b8d..40ac46fc0a 100644 --- a/plotly/validators/contour/_xaxis.py +++ b/plotly/validators/contour/_xaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "x"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/contour/_xcalendar.py b/plotly/validators/contour/_xcalendar.py index aef1d40047..68aa8b67c4 100644 --- a/plotly/validators/contour/_xcalendar.py +++ b/plotly/validators/contour/_xcalendar.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/contour/_xhoverformat.py b/plotly/validators/contour/_xhoverformat.py index f11f561fc5..4632259967 100644 --- a/plotly/validators/contour/_xhoverformat.py +++ b/plotly/validators/contour/_xhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contour/_xperiod.py b/plotly/validators/contour/_xperiod.py index e8e280e16c..7693727c89 100644 --- a/plotly/validators/contour/_xperiod.py +++ b/plotly/validators/contour/_xperiod.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XperiodValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"xtype": "scaled"}), **kwargs, diff --git a/plotly/validators/contour/_xperiod0.py b/plotly/validators/contour/_xperiod0.py index d5feeaf8d9..e0f7a668c0 100644 --- a/plotly/validators/contour/_xperiod0.py +++ b/plotly/validators/contour/_xperiod0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Xperiod0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/contour/_xperiodalignment.py b/plotly/validators/contour/_xperiodalignment.py index eb42d53861..4abc43bd7a 100644 --- a/plotly/validators/contour/_xperiodalignment.py +++ b/plotly/validators/contour/_xperiodalignment.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/contour/_xsrc.py b/plotly/validators/contour/_xsrc.py index c3e3e736f0..e365b8d4aa 100644 --- a/plotly/validators/contour/_xsrc.py +++ b/plotly/validators/contour/_xsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contour/_xtype.py b/plotly/validators/contour/_xtype.py index e7fe7fff16..f4daca2c0a 100644 --- a/plotly/validators/contour/_xtype.py +++ b/plotly/validators/contour/_xtype.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XtypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), values=kwargs.pop("values", ["array", "scaled"]), **kwargs, diff --git a/plotly/validators/contour/_y.py b/plotly/validators/contour/_y.py index 8dafa69a0b..49d652733d 100644 --- a/plotly/validators/contour/_y.py +++ b/plotly/validators/contour/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), implied_edits=kwargs.pop("implied_edits", {"ytype": "array"}), **kwargs, diff --git a/plotly/validators/contour/_y0.py b/plotly/validators/contour/_y0.py index 22c0250cf0..38179d58c8 100644 --- a/plotly/validators/contour/_y0.py +++ b/plotly/validators/contour/_y0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Y0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), implied_edits=kwargs.pop("implied_edits", {"ytype": "scaled"}), **kwargs, diff --git a/plotly/validators/contour/_yaxis.py b/plotly/validators/contour/_yaxis.py index c5d5bf40f2..79c0cb5776 100644 --- a/plotly/validators/contour/_yaxis.py +++ b/plotly/validators/contour/_yaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "y"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/contour/_ycalendar.py b/plotly/validators/contour/_ycalendar.py index 2e89b1e691..de475d0aa5 100644 --- a/plotly/validators/contour/_ycalendar.py +++ b/plotly/validators/contour/_ycalendar.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/contour/_yhoverformat.py b/plotly/validators/contour/_yhoverformat.py index 67b279c9b8..fbe14090b1 100644 --- a/plotly/validators/contour/_yhoverformat.py +++ b/plotly/validators/contour/_yhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contour/_yperiod.py b/plotly/validators/contour/_yperiod.py index 2b1562efb7..aedeb60cec 100644 --- a/plotly/validators/contour/_yperiod.py +++ b/plotly/validators/contour/_yperiod.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YperiodValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"ytype": "scaled"}), **kwargs, diff --git a/plotly/validators/contour/_yperiod0.py b/plotly/validators/contour/_yperiod0.py index 07196dd168..13ecacbe4b 100644 --- a/plotly/validators/contour/_yperiod0.py +++ b/plotly/validators/contour/_yperiod0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Yperiod0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/contour/_yperiodalignment.py b/plotly/validators/contour/_yperiodalignment.py index 4b9b05c842..789f6aad54 100644 --- a/plotly/validators/contour/_yperiodalignment.py +++ b/plotly/validators/contour/_yperiodalignment.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/contour/_ysrc.py b/plotly/validators/contour/_ysrc.py index 30d4f68498..b44cbf5887 100644 --- a/plotly/validators/contour/_ysrc.py +++ b/plotly/validators/contour/_ysrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contour/_ytype.py b/plotly/validators/contour/_ytype.py index 5814a57ee9..9cb41384be 100644 --- a/plotly/validators/contour/_ytype.py +++ b/plotly/validators/contour/_ytype.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YtypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), values=kwargs.pop("values", ["array", "scaled"]), **kwargs, diff --git a/plotly/validators/contour/_z.py b/plotly/validators/contour/_z.py index e48921dc63..58c2579993 100644 --- a/plotly/validators/contour/_z.py +++ b/plotly/validators/contour/_z.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/contour/_zauto.py b/plotly/validators/contour/_zauto.py index fe6f3ccadc..0323a0e098 100644 --- a/plotly/validators/contour/_zauto.py +++ b/plotly/validators/contour/_zauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/contour/_zhoverformat.py b/plotly/validators/contour/_zhoverformat.py index 5c9fe29236..f05a38d409 100644 --- a/plotly/validators/contour/_zhoverformat.py +++ b/plotly/validators/contour/_zhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contour/_zmax.py b/plotly/validators/contour/_zmax.py index ffe267c85a..7dd490162b 100644 --- a/plotly/validators/contour/_zmax.py +++ b/plotly/validators/contour/_zmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"zauto": False}), **kwargs, diff --git a/plotly/validators/contour/_zmid.py b/plotly/validators/contour/_zmid.py index 106c741327..88bc812c3d 100644 --- a/plotly/validators/contour/_zmid.py +++ b/plotly/validators/contour/_zmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/contour/_zmin.py b/plotly/validators/contour/_zmin.py index bb41915fcd..dbb6c939dc 100644 --- a/plotly/validators/contour/_zmin.py +++ b/plotly/validators/contour/_zmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"zauto": False}), **kwargs, diff --git a/plotly/validators/contour/_zorder.py b/plotly/validators/contour/_zorder.py index d6fc961821..f234665ca0 100644 --- a/plotly/validators/contour/_zorder.py +++ b/plotly/validators/contour/_zorder.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZorderValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/contour/_zsrc.py b/plotly/validators/contour/_zsrc.py index 5b411451e3..fdd6e376d9 100644 --- a/plotly/validators/contour/_zsrc.py +++ b/plotly/validators/contour/_zsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contour/colorbar/__init__.py b/plotly/validators/contour/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/contour/colorbar/__init__.py +++ b/plotly/validators/contour/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/contour/colorbar/_bgcolor.py b/plotly/validators/contour/colorbar/_bgcolor.py index 4ff5b75d63..e51d47279b 100644 --- a/plotly/validators/contour/colorbar/_bgcolor.py +++ b/plotly/validators/contour/colorbar/_bgcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contour/colorbar/_bordercolor.py b/plotly/validators/contour/colorbar/_bordercolor.py index bd1b8df9f9..237e472289 100644 --- a/plotly/validators/contour/colorbar/_bordercolor.py +++ b/plotly/validators/contour/colorbar/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contour/colorbar/_borderwidth.py b/plotly/validators/contour/colorbar/_borderwidth.py index 650329372a..0c020a0ed7 100644 --- a/plotly/validators/contour/colorbar/_borderwidth.py +++ b/plotly/validators/contour/colorbar/_borderwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/contour/colorbar/_dtick.py b/plotly/validators/contour/colorbar/_dtick.py index e218c51378..8a3d3e691a 100644 --- a/plotly/validators/contour/colorbar/_dtick.py +++ b/plotly/validators/contour/colorbar/_dtick.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/contour/colorbar/_exponentformat.py b/plotly/validators/contour/colorbar/_exponentformat.py index 12dc458063..a473a34636 100644 --- a/plotly/validators/contour/colorbar/_exponentformat.py +++ b/plotly/validators/contour/colorbar/_exponentformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/contour/colorbar/_labelalias.py b/plotly/validators/contour/colorbar/_labelalias.py index 4256b62021..a652b49849 100644 --- a/plotly/validators/contour/colorbar/_labelalias.py +++ b/plotly/validators/contour/colorbar/_labelalias.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contour/colorbar/_len.py b/plotly/validators/contour/colorbar/_len.py index 49818908bc..8a5a22bf5b 100644 --- a/plotly/validators/contour/colorbar/_len.py +++ b/plotly/validators/contour/colorbar/_len.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/contour/colorbar/_lenmode.py b/plotly/validators/contour/colorbar/_lenmode.py index fcc0f28c5e..d7f149ff41 100644 --- a/plotly/validators/contour/colorbar/_lenmode.py +++ b/plotly/validators/contour/colorbar/_lenmode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/contour/colorbar/_minexponent.py b/plotly/validators/contour/colorbar/_minexponent.py index 4be592d32d..25ab76630f 100644 --- a/plotly/validators/contour/colorbar/_minexponent.py +++ b/plotly/validators/contour/colorbar/_minexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/contour/colorbar/_nticks.py b/plotly/validators/contour/colorbar/_nticks.py index e4af2c6665..69e6b71573 100644 --- a/plotly/validators/contour/colorbar/_nticks.py +++ b/plotly/validators/contour/colorbar/_nticks.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/contour/colorbar/_orientation.py b/plotly/validators/contour/colorbar/_orientation.py index b76a564fac..1549bca307 100644 --- a/plotly/validators/contour/colorbar/_orientation.py +++ b/plotly/validators/contour/colorbar/_orientation.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/contour/colorbar/_outlinecolor.py b/plotly/validators/contour/colorbar/_outlinecolor.py index 803cc63f1a..dd71cb6699 100644 --- a/plotly/validators/contour/colorbar/_outlinecolor.py +++ b/plotly/validators/contour/colorbar/_outlinecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contour/colorbar/_outlinewidth.py b/plotly/validators/contour/colorbar/_outlinewidth.py index 221eaaec1a..d679e47c21 100644 --- a/plotly/validators/contour/colorbar/_outlinewidth.py +++ b/plotly/validators/contour/colorbar/_outlinewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/contour/colorbar/_separatethousands.py b/plotly/validators/contour/colorbar/_separatethousands.py index fdf0c4c618..a0dc1acba2 100644 --- a/plotly/validators/contour/colorbar/_separatethousands.py +++ b/plotly/validators/contour/colorbar/_separatethousands.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contour/colorbar/_showexponent.py b/plotly/validators/contour/colorbar/_showexponent.py index 797d4d9248..2fc2947921 100644 --- a/plotly/validators/contour/colorbar/_showexponent.py +++ b/plotly/validators/contour/colorbar/_showexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/contour/colorbar/_showticklabels.py b/plotly/validators/contour/colorbar/_showticklabels.py index 1870a2b3c6..852b0dbc34 100644 --- a/plotly/validators/contour/colorbar/_showticklabels.py +++ b/plotly/validators/contour/colorbar/_showticklabels.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contour/colorbar/_showtickprefix.py b/plotly/validators/contour/colorbar/_showtickprefix.py index 1d9c8877f9..2b10ef1209 100644 --- a/plotly/validators/contour/colorbar/_showtickprefix.py +++ b/plotly/validators/contour/colorbar/_showtickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/contour/colorbar/_showticksuffix.py b/plotly/validators/contour/colorbar/_showticksuffix.py index 868d7816a8..49fa123e55 100644 --- a/plotly/validators/contour/colorbar/_showticksuffix.py +++ b/plotly/validators/contour/colorbar/_showticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/contour/colorbar/_thickness.py b/plotly/validators/contour/colorbar/_thickness.py index 714d1fe650..1e2eaef973 100644 --- a/plotly/validators/contour/colorbar/_thickness.py +++ b/plotly/validators/contour/colorbar/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/contour/colorbar/_thicknessmode.py b/plotly/validators/contour/colorbar/_thicknessmode.py index 82ed54bf14..9bcd560211 100644 --- a/plotly/validators/contour/colorbar/_thicknessmode.py +++ b/plotly/validators/contour/colorbar/_thicknessmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/contour/colorbar/_tick0.py b/plotly/validators/contour/colorbar/_tick0.py index 63689b0999..c76ca6b500 100644 --- a/plotly/validators/contour/colorbar/_tick0.py +++ b/plotly/validators/contour/colorbar/_tick0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/contour/colorbar/_tickangle.py b/plotly/validators/contour/colorbar/_tickangle.py index 34a2d4cbfd..a33fe50ef5 100644 --- a/plotly/validators/contour/colorbar/_tickangle.py +++ b/plotly/validators/contour/colorbar/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contour/colorbar/_tickcolor.py b/plotly/validators/contour/colorbar/_tickcolor.py index cdb0194206..21d099b774 100644 --- a/plotly/validators/contour/colorbar/_tickcolor.py +++ b/plotly/validators/contour/colorbar/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contour/colorbar/_tickfont.py b/plotly/validators/contour/colorbar/_tickfont.py index b14c60b87d..d2193fb4cd 100644 --- a/plotly/validators/contour/colorbar/_tickfont.py +++ b/plotly/validators/contour/colorbar/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/contour/colorbar/_tickformat.py b/plotly/validators/contour/colorbar/_tickformat.py index a40ecebf2a..5a118bbf93 100644 --- a/plotly/validators/contour/colorbar/_tickformat.py +++ b/plotly/validators/contour/colorbar/_tickformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contour/colorbar/_tickformatstopdefaults.py b/plotly/validators/contour/colorbar/_tickformatstopdefaults.py index 63c88800e3..e057d2bf35 100644 --- a/plotly/validators/contour/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/contour/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/contour/colorbar/_tickformatstops.py b/plotly/validators/contour/colorbar/_tickformatstops.py index cf3e26b504..f334937b5e 100644 --- a/plotly/validators/contour/colorbar/_tickformatstops.py +++ b/plotly/validators/contour/colorbar/_tickformatstops.py @@ -1,50 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/contour/colorbar/_ticklabeloverflow.py b/plotly/validators/contour/colorbar/_ticklabeloverflow.py index 791ecd374f..8bd628f2d8 100644 --- a/plotly/validators/contour/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/contour/colorbar/_ticklabeloverflow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/contour/colorbar/_ticklabelposition.py b/plotly/validators/contour/colorbar/_ticklabelposition.py index a46bb1f367..b61daaa433 100644 --- a/plotly/validators/contour/colorbar/_ticklabelposition.py +++ b/plotly/validators/contour/colorbar/_ticklabelposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/contour/colorbar/_ticklabelstep.py b/plotly/validators/contour/colorbar/_ticklabelstep.py index 5307e27ea2..770020f657 100644 --- a/plotly/validators/contour/colorbar/_ticklabelstep.py +++ b/plotly/validators/contour/colorbar/_ticklabelstep.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/contour/colorbar/_ticklen.py b/plotly/validators/contour/colorbar/_ticklen.py index 6c58ed26ac..ee5c858d05 100644 --- a/plotly/validators/contour/colorbar/_ticklen.py +++ b/plotly/validators/contour/colorbar/_ticklen.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/contour/colorbar/_tickmode.py b/plotly/validators/contour/colorbar/_tickmode.py index ae1c534ad5..39ee27acf1 100644 --- a/plotly/validators/contour/colorbar/_tickmode.py +++ b/plotly/validators/contour/colorbar/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/contour/colorbar/_tickprefix.py b/plotly/validators/contour/colorbar/_tickprefix.py index adb0fd5ee8..0e3bf69d40 100644 --- a/plotly/validators/contour/colorbar/_tickprefix.py +++ b/plotly/validators/contour/colorbar/_tickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contour/colorbar/_ticks.py b/plotly/validators/contour/colorbar/_ticks.py index 590cc07f81..cc01ac06cb 100644 --- a/plotly/validators/contour/colorbar/_ticks.py +++ b/plotly/validators/contour/colorbar/_ticks.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/contour/colorbar/_ticksuffix.py b/plotly/validators/contour/colorbar/_ticksuffix.py index 8fd31ffe09..26b5a77203 100644 --- a/plotly/validators/contour/colorbar/_ticksuffix.py +++ b/plotly/validators/contour/colorbar/_ticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contour/colorbar/_ticktext.py b/plotly/validators/contour/colorbar/_ticktext.py index c544e96f49..8c171d0ece 100644 --- a/plotly/validators/contour/colorbar/_ticktext.py +++ b/plotly/validators/contour/colorbar/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contour/colorbar/_ticktextsrc.py b/plotly/validators/contour/colorbar/_ticktextsrc.py index 7cb99e0ef8..1b139a7c6d 100644 --- a/plotly/validators/contour/colorbar/_ticktextsrc.py +++ b/plotly/validators/contour/colorbar/_ticktextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contour/colorbar/_tickvals.py b/plotly/validators/contour/colorbar/_tickvals.py index f8879bbed2..1672026493 100644 --- a/plotly/validators/contour/colorbar/_tickvals.py +++ b/plotly/validators/contour/colorbar/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contour/colorbar/_tickvalssrc.py b/plotly/validators/contour/colorbar/_tickvalssrc.py index dedf91edb6..c3b949ed59 100644 --- a/plotly/validators/contour/colorbar/_tickvalssrc.py +++ b/plotly/validators/contour/colorbar/_tickvalssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contour/colorbar/_tickwidth.py b/plotly/validators/contour/colorbar/_tickwidth.py index 334eda2215..77ca32f35e 100644 --- a/plotly/validators/contour/colorbar/_tickwidth.py +++ b/plotly/validators/contour/colorbar/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/contour/colorbar/_title.py b/plotly/validators/contour/colorbar/_title.py index cae0cab743..2e477feeca 100644 --- a/plotly/validators/contour/colorbar/_title.py +++ b/plotly/validators/contour/colorbar/_title.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/contour/colorbar/_x.py b/plotly/validators/contour/colorbar/_x.py index 0f90f06f59..2ca93bc7cb 100644 --- a/plotly/validators/contour/colorbar/_x.py +++ b/plotly/validators/contour/colorbar/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contour/colorbar/_xanchor.py b/plotly/validators/contour/colorbar/_xanchor.py index 6110944ed4..f09f7bd386 100644 --- a/plotly/validators/contour/colorbar/_xanchor.py +++ b/plotly/validators/contour/colorbar/_xanchor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/contour/colorbar/_xpad.py b/plotly/validators/contour/colorbar/_xpad.py index f319d6a55f..8b1248f71d 100644 --- a/plotly/validators/contour/colorbar/_xpad.py +++ b/plotly/validators/contour/colorbar/_xpad.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/contour/colorbar/_xref.py b/plotly/validators/contour/colorbar/_xref.py index 67439b019f..241a6ff5a2 100644 --- a/plotly/validators/contour/colorbar/_xref.py +++ b/plotly/validators/contour/colorbar/_xref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/contour/colorbar/_y.py b/plotly/validators/contour/colorbar/_y.py index 5b46f99b06..00bda52b9c 100644 --- a/plotly/validators/contour/colorbar/_y.py +++ b/plotly/validators/contour/colorbar/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contour/colorbar/_yanchor.py b/plotly/validators/contour/colorbar/_yanchor.py index f90780548d..b86940f993 100644 --- a/plotly/validators/contour/colorbar/_yanchor.py +++ b/plotly/validators/contour/colorbar/_yanchor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/contour/colorbar/_ypad.py b/plotly/validators/contour/colorbar/_ypad.py index a451e01553..64b4af670a 100644 --- a/plotly/validators/contour/colorbar/_ypad.py +++ b/plotly/validators/contour/colorbar/_ypad.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/contour/colorbar/_yref.py b/plotly/validators/contour/colorbar/_yref.py index 138459baf6..acedd7b0c2 100644 --- a/plotly/validators/contour/colorbar/_yref.py +++ b/plotly/validators/contour/colorbar/_yref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/contour/colorbar/tickfont/__init__.py b/plotly/validators/contour/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/contour/colorbar/tickfont/__init__.py +++ b/plotly/validators/contour/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/contour/colorbar/tickfont/_color.py b/plotly/validators/contour/colorbar/tickfont/_color.py index a009f0e59b..080b8050ab 100644 --- a/plotly/validators/contour/colorbar/tickfont/_color.py +++ b/plotly/validators/contour/colorbar/tickfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contour/colorbar/tickfont/_family.py b/plotly/validators/contour/colorbar/tickfont/_family.py index 252abd6fda..1355e9a5b7 100644 --- a/plotly/validators/contour/colorbar/tickfont/_family.py +++ b/plotly/validators/contour/colorbar/tickfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/contour/colorbar/tickfont/_lineposition.py b/plotly/validators/contour/colorbar/tickfont/_lineposition.py index dc05c70d8a..7048feeba1 100644 --- a/plotly/validators/contour/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/contour/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/contour/colorbar/tickfont/_shadow.py b/plotly/validators/contour/colorbar/tickfont/_shadow.py index 02f96f444e..6c4bb3dc84 100644 --- a/plotly/validators/contour/colorbar/tickfont/_shadow.py +++ b/plotly/validators/contour/colorbar/tickfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contour/colorbar/tickfont/_size.py b/plotly/validators/contour/colorbar/tickfont/_size.py index 4a4f6553f0..deaadfd35a 100644 --- a/plotly/validators/contour/colorbar/tickfont/_size.py +++ b/plotly/validators/contour/colorbar/tickfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/contour/colorbar/tickfont/_style.py b/plotly/validators/contour/colorbar/tickfont/_style.py index e9c699c84f..48420557b8 100644 --- a/plotly/validators/contour/colorbar/tickfont/_style.py +++ b/plotly/validators/contour/colorbar/tickfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/contour/colorbar/tickfont/_textcase.py b/plotly/validators/contour/colorbar/tickfont/_textcase.py index ea2405d095..0c6b3e7eb1 100644 --- a/plotly/validators/contour/colorbar/tickfont/_textcase.py +++ b/plotly/validators/contour/colorbar/tickfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/contour/colorbar/tickfont/_variant.py b/plotly/validators/contour/colorbar/tickfont/_variant.py index 0573ab1be5..177d940b71 100644 --- a/plotly/validators/contour/colorbar/tickfont/_variant.py +++ b/plotly/validators/contour/colorbar/tickfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/contour/colorbar/tickfont/_weight.py b/plotly/validators/contour/colorbar/tickfont/_weight.py index e6ce1bcf8a..2e5cd7d102 100644 --- a/plotly/validators/contour/colorbar/tickfont/_weight.py +++ b/plotly/validators/contour/colorbar/tickfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/contour/colorbar/tickformatstop/__init__.py b/plotly/validators/contour/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/contour/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/contour/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/contour/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/contour/colorbar/tickformatstop/_dtickrange.py index e1bc16160f..126d511d0c 100644 --- a/plotly/validators/contour/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/contour/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( "items", diff --git a/plotly/validators/contour/colorbar/tickformatstop/_enabled.py b/plotly/validators/contour/colorbar/tickformatstop/_enabled.py index bdc7f52040..7ec27a88ca 100644 --- a/plotly/validators/contour/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/contour/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contour/colorbar/tickformatstop/_name.py b/plotly/validators/contour/colorbar/tickformatstop/_name.py index 8fa6c671ab..fafdf9ab84 100644 --- a/plotly/validators/contour/colorbar/tickformatstop/_name.py +++ b/plotly/validators/contour/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contour/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/contour/colorbar/tickformatstop/_templateitemname.py index 0ad2276357..d150418db5 100644 --- a/plotly/validators/contour/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/contour/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contour/colorbar/tickformatstop/_value.py b/plotly/validators/contour/colorbar/tickformatstop/_value.py index cd2694801e..3454027ecb 100644 --- a/plotly/validators/contour/colorbar/tickformatstop/_value.py +++ b/plotly/validators/contour/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contour/colorbar/title/__init__.py b/plotly/validators/contour/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/contour/colorbar/title/__init__.py +++ b/plotly/validators/contour/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/contour/colorbar/title/_font.py b/plotly/validators/contour/colorbar/title/_font.py index 1ec7acef88..0e1887cb6d 100644 --- a/plotly/validators/contour/colorbar/title/_font.py +++ b/plotly/validators/contour/colorbar/title/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/contour/colorbar/title/_side.py b/plotly/validators/contour/colorbar/title/_side.py index dfc9a5a774..54fc336809 100644 --- a/plotly/validators/contour/colorbar/title/_side.py +++ b/plotly/validators/contour/colorbar/title/_side.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/contour/colorbar/title/_text.py b/plotly/validators/contour/colorbar/title/_text.py index edbc184aae..04c12b98c9 100644 --- a/plotly/validators/contour/colorbar/title/_text.py +++ b/plotly/validators/contour/colorbar/title/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contour/colorbar/title/font/__init__.py b/plotly/validators/contour/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/contour/colorbar/title/font/__init__.py +++ b/plotly/validators/contour/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/contour/colorbar/title/font/_color.py b/plotly/validators/contour/colorbar/title/font/_color.py index 6a2bd296c5..a917a53118 100644 --- a/plotly/validators/contour/colorbar/title/font/_color.py +++ b/plotly/validators/contour/colorbar/title/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contour/colorbar/title/font/_family.py b/plotly/validators/contour/colorbar/title/font/_family.py index 9b29805272..0cf575cc4a 100644 --- a/plotly/validators/contour/colorbar/title/font/_family.py +++ b/plotly/validators/contour/colorbar/title/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/contour/colorbar/title/font/_lineposition.py b/plotly/validators/contour/colorbar/title/font/_lineposition.py index 0a0ac5c2dd..ce5c799a79 100644 --- a/plotly/validators/contour/colorbar/title/font/_lineposition.py +++ b/plotly/validators/contour/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/contour/colorbar/title/font/_shadow.py b/plotly/validators/contour/colorbar/title/font/_shadow.py index 67318cf1bc..f3f2a085bd 100644 --- a/plotly/validators/contour/colorbar/title/font/_shadow.py +++ b/plotly/validators/contour/colorbar/title/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contour/colorbar/title/font/_size.py b/plotly/validators/contour/colorbar/title/font/_size.py index 8eac286601..f27fc14e9e 100644 --- a/plotly/validators/contour/colorbar/title/font/_size.py +++ b/plotly/validators/contour/colorbar/title/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/contour/colorbar/title/font/_style.py b/plotly/validators/contour/colorbar/title/font/_style.py index 1104b4d9c2..4592f5c9ee 100644 --- a/plotly/validators/contour/colorbar/title/font/_style.py +++ b/plotly/validators/contour/colorbar/title/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/contour/colorbar/title/font/_textcase.py b/plotly/validators/contour/colorbar/title/font/_textcase.py index 98d04bfe7d..6ff62b9f14 100644 --- a/plotly/validators/contour/colorbar/title/font/_textcase.py +++ b/plotly/validators/contour/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/contour/colorbar/title/font/_variant.py b/plotly/validators/contour/colorbar/title/font/_variant.py index bae3322109..fc3b6d8348 100644 --- a/plotly/validators/contour/colorbar/title/font/_variant.py +++ b/plotly/validators/contour/colorbar/title/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/contour/colorbar/title/font/_weight.py b/plotly/validators/contour/colorbar/title/font/_weight.py index 5babb767e5..13ed19b0c5 100644 --- a/plotly/validators/contour/colorbar/title/font/_weight.py +++ b/plotly/validators/contour/colorbar/title/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/contour/contours/__init__.py b/plotly/validators/contour/contours/__init__.py index 0650ad574b..230a907cd7 100644 --- a/plotly/validators/contour/contours/__init__.py +++ b/plotly/validators/contour/contours/__init__.py @@ -1,35 +1,20 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._type import TypeValidator - from ._start import StartValidator - from ._size import SizeValidator - from ._showlines import ShowlinesValidator - from ._showlabels import ShowlabelsValidator - from ._operation import OperationValidator - from ._labelformat import LabelformatValidator - from ._labelfont import LabelfontValidator - from ._end import EndValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/contour/contours/_coloring.py b/plotly/validators/contour/contours/_coloring.py index 254052570d..bd5b5998ff 100644 --- a/plotly/validators/contour/contours/_coloring.py +++ b/plotly/validators/contour/contours/_coloring.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoringValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["fill", "heatmap", "lines", "none"]), **kwargs, diff --git a/plotly/validators/contour/contours/_end.py b/plotly/validators/contour/contours/_end.py index 00db7cee58..8f2d7eff2d 100644 --- a/plotly/validators/contour/contours/_end.py +++ b/plotly/validators/contour/contours/_end.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EndValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"^autocontour": False}), **kwargs, diff --git a/plotly/validators/contour/contours/_labelfont.py b/plotly/validators/contour/contours/_labelfont.py index bae317ba88..44ee913d15 100644 --- a/plotly/validators/contour/contours/_labelfont.py +++ b/plotly/validators/contour/contours/_labelfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Labelfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/contour/contours/_labelformat.py b/plotly/validators/contour/contours/_labelformat.py index 62baa0432d..f76138c63a 100644 --- a/plotly/validators/contour/contours/_labelformat.py +++ b/plotly/validators/contour/contours/_labelformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/contour/contours/_operation.py b/plotly/validators/contour/contours/_operation.py index fe0fe4ea82..0029098881 100644 --- a/plotly/validators/contour/contours/_operation.py +++ b/plotly/validators/contour/contours/_operation.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OperationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/contour/contours/_showlabels.py b/plotly/validators/contour/contours/_showlabels.py index e1650f5e8f..437b8843e1 100644 --- a/plotly/validators/contour/contours/_showlabels.py +++ b/plotly/validators/contour/contours/_showlabels.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/contour/contours/_showlines.py b/plotly/validators/contour/contours/_showlines.py index e10c89a100..6c66896f37 100644 --- a/plotly/validators/contour/contours/_showlines.py +++ b/plotly/validators/contour/contours/_showlines.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlinesValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/contour/contours/_size.py b/plotly/validators/contour/contours/_size.py index aa43586f82..e07c4e04d0 100644 --- a/plotly/validators/contour/contours/_size.py +++ b/plotly/validators/contour/contours/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"^autocontour": False}), min=kwargs.pop("min", 0), diff --git a/plotly/validators/contour/contours/_start.py b/plotly/validators/contour/contours/_start.py index 2a2b3f0851..b428f95e24 100644 --- a/plotly/validators/contour/contours/_start.py +++ b/plotly/validators/contour/contours/_start.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StartValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"^autocontour": False}), **kwargs, diff --git a/plotly/validators/contour/contours/_type.py b/plotly/validators/contour/contours/_type.py index 87ba2189dd..ea32cedd79 100644 --- a/plotly/validators/contour/contours/_type.py +++ b/plotly/validators/contour/contours/_type.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["levels", "constraint"]), **kwargs, diff --git a/plotly/validators/contour/contours/_value.py b/plotly/validators/contour/contours/_value.py index 64e6942be3..fbecdb9157 100644 --- a/plotly/validators/contour/contours/_value.py +++ b/plotly/validators/contour/contours/_value.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/contour/contours/labelfont/__init__.py b/plotly/validators/contour/contours/labelfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/contour/contours/labelfont/__init__.py +++ b/plotly/validators/contour/contours/labelfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/contour/contours/labelfont/_color.py b/plotly/validators/contour/contours/labelfont/_color.py index 6fb8366097..a91340394f 100644 --- a/plotly/validators/contour/contours/labelfont/_color.py +++ b/plotly/validators/contour/contours/labelfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/contour/contours/labelfont/_family.py b/plotly/validators/contour/contours/labelfont/_family.py index ac10b66e65..2d664c3cee 100644 --- a/plotly/validators/contour/contours/labelfont/_family.py +++ b/plotly/validators/contour/contours/labelfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/contour/contours/labelfont/_lineposition.py b/plotly/validators/contour/contours/labelfont/_lineposition.py index 9dd602d3ea..0f61d941b9 100644 --- a/plotly/validators/contour/contours/labelfont/_lineposition.py +++ b/plotly/validators/contour/contours/labelfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/contour/contours/labelfont/_shadow.py b/plotly/validators/contour/contours/labelfont/_shadow.py index e5817a3636..68c24d92fe 100644 --- a/plotly/validators/contour/contours/labelfont/_shadow.py +++ b/plotly/validators/contour/contours/labelfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/contour/contours/labelfont/_size.py b/plotly/validators/contour/contours/labelfont/_size.py index d365c15aaa..908edb7a6b 100644 --- a/plotly/validators/contour/contours/labelfont/_size.py +++ b/plotly/validators/contour/contours/labelfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/contour/contours/labelfont/_style.py b/plotly/validators/contour/contours/labelfont/_style.py index b95da8b6b0..e1502e9aad 100644 --- a/plotly/validators/contour/contours/labelfont/_style.py +++ b/plotly/validators/contour/contours/labelfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/contour/contours/labelfont/_textcase.py b/plotly/validators/contour/contours/labelfont/_textcase.py index 4bb59970fb..70d172521c 100644 --- a/plotly/validators/contour/contours/labelfont/_textcase.py +++ b/plotly/validators/contour/contours/labelfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/contour/contours/labelfont/_variant.py b/plotly/validators/contour/contours/labelfont/_variant.py index 1c5a8056a2..e1c7c1f53f 100644 --- a/plotly/validators/contour/contours/labelfont/_variant.py +++ b/plotly/validators/contour/contours/labelfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/contour/contours/labelfont/_weight.py b/plotly/validators/contour/contours/labelfont/_weight.py index 3a1289c5ee..c73eb0d85b 100644 --- a/plotly/validators/contour/contours/labelfont/_weight.py +++ b/plotly/validators/contour/contours/labelfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/contour/hoverlabel/__init__.py b/plotly/validators/contour/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/contour/hoverlabel/__init__.py +++ b/plotly/validators/contour/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/contour/hoverlabel/_align.py b/plotly/validators/contour/hoverlabel/_align.py index 316d217282..05b6918a50 100644 --- a/plotly/validators/contour/hoverlabel/_align.py +++ b/plotly/validators/contour/hoverlabel/_align.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/contour/hoverlabel/_alignsrc.py b/plotly/validators/contour/hoverlabel/_alignsrc.py index 0b7ddaa372..a4b777c256 100644 --- a/plotly/validators/contour/hoverlabel/_alignsrc.py +++ b/plotly/validators/contour/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contour/hoverlabel/_bgcolor.py b/plotly/validators/contour/hoverlabel/_bgcolor.py index d5ec7ab604..5f76dafe2c 100644 --- a/plotly/validators/contour/hoverlabel/_bgcolor.py +++ b/plotly/validators/contour/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/contour/hoverlabel/_bgcolorsrc.py b/plotly/validators/contour/hoverlabel/_bgcolorsrc.py index 2be3067538..eda99ebe50 100644 --- a/plotly/validators/contour/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/contour/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contour/hoverlabel/_bordercolor.py b/plotly/validators/contour/hoverlabel/_bordercolor.py index 69ab9b4202..4ff1d001b0 100644 --- a/plotly/validators/contour/hoverlabel/_bordercolor.py +++ b/plotly/validators/contour/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/contour/hoverlabel/_bordercolorsrc.py b/plotly/validators/contour/hoverlabel/_bordercolorsrc.py index 75780f6fda..9e8714f335 100644 --- a/plotly/validators/contour/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/contour/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contour/hoverlabel/_font.py b/plotly/validators/contour/hoverlabel/_font.py index b29c19615a..d1c8db12d5 100644 --- a/plotly/validators/contour/hoverlabel/_font.py +++ b/plotly/validators/contour/hoverlabel/_font.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/contour/hoverlabel/_namelength.py b/plotly/validators/contour/hoverlabel/_namelength.py index c26fc4813f..ae8773871e 100644 --- a/plotly/validators/contour/hoverlabel/_namelength.py +++ b/plotly/validators/contour/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/contour/hoverlabel/_namelengthsrc.py b/plotly/validators/contour/hoverlabel/_namelengthsrc.py index d45f4b334e..b4be756d6e 100644 --- a/plotly/validators/contour/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/contour/hoverlabel/_namelengthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contour/hoverlabel/font/__init__.py b/plotly/validators/contour/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/contour/hoverlabel/font/__init__.py +++ b/plotly/validators/contour/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/contour/hoverlabel/font/_color.py b/plotly/validators/contour/hoverlabel/font/_color.py index 3ed213f92e..f2a98870a7 100644 --- a/plotly/validators/contour/hoverlabel/font/_color.py +++ b/plotly/validators/contour/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/contour/hoverlabel/font/_colorsrc.py b/plotly/validators/contour/hoverlabel/font/_colorsrc.py index ca5b75f598..6660e46786 100644 --- a/plotly/validators/contour/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/contour/hoverlabel/font/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contour/hoverlabel/font/_family.py b/plotly/validators/contour/hoverlabel/font/_family.py index a8d4e36043..cd44c860de 100644 --- a/plotly/validators/contour/hoverlabel/font/_family.py +++ b/plotly/validators/contour/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/contour/hoverlabel/font/_familysrc.py b/plotly/validators/contour/hoverlabel/font/_familysrc.py index 2a48489048..683b10e198 100644 --- a/plotly/validators/contour/hoverlabel/font/_familysrc.py +++ b/plotly/validators/contour/hoverlabel/font/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contour/hoverlabel/font/_lineposition.py b/plotly/validators/contour/hoverlabel/font/_lineposition.py index a3ede01fc2..08baaeab80 100644 --- a/plotly/validators/contour/hoverlabel/font/_lineposition.py +++ b/plotly/validators/contour/hoverlabel/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/contour/hoverlabel/font/_linepositionsrc.py b/plotly/validators/contour/hoverlabel/font/_linepositionsrc.py index 07b256f171..40b58e2c50 100644 --- a/plotly/validators/contour/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/contour/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contour/hoverlabel/font/_shadow.py b/plotly/validators/contour/hoverlabel/font/_shadow.py index d006168692..af5cf13814 100644 --- a/plotly/validators/contour/hoverlabel/font/_shadow.py +++ b/plotly/validators/contour/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/contour/hoverlabel/font/_shadowsrc.py b/plotly/validators/contour/hoverlabel/font/_shadowsrc.py index b9c1bd5f20..07d6d34a93 100644 --- a/plotly/validators/contour/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/contour/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contour/hoverlabel/font/_size.py b/plotly/validators/contour/hoverlabel/font/_size.py index 973ab1d788..1e0d17e43e 100644 --- a/plotly/validators/contour/hoverlabel/font/_size.py +++ b/plotly/validators/contour/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/contour/hoverlabel/font/_sizesrc.py b/plotly/validators/contour/hoverlabel/font/_sizesrc.py index 9ba5407254..1b2dd4442f 100644 --- a/plotly/validators/contour/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/contour/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contour/hoverlabel/font/_style.py b/plotly/validators/contour/hoverlabel/font/_style.py index a8dc82235a..5f0b5acc77 100644 --- a/plotly/validators/contour/hoverlabel/font/_style.py +++ b/plotly/validators/contour/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/contour/hoverlabel/font/_stylesrc.py b/plotly/validators/contour/hoverlabel/font/_stylesrc.py index 4a436fdeb4..0d81011e4f 100644 --- a/plotly/validators/contour/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/contour/hoverlabel/font/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contour/hoverlabel/font/_textcase.py b/plotly/validators/contour/hoverlabel/font/_textcase.py index ecb8d01a04..c05ce89ecc 100644 --- a/plotly/validators/contour/hoverlabel/font/_textcase.py +++ b/plotly/validators/contour/hoverlabel/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/contour/hoverlabel/font/_textcasesrc.py b/plotly/validators/contour/hoverlabel/font/_textcasesrc.py index f3d406f722..8b9c2a766d 100644 --- a/plotly/validators/contour/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/contour/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contour/hoverlabel/font/_variant.py b/plotly/validators/contour/hoverlabel/font/_variant.py index 0c40e8b4a6..fa5196974b 100644 --- a/plotly/validators/contour/hoverlabel/font/_variant.py +++ b/plotly/validators/contour/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/contour/hoverlabel/font/_variantsrc.py b/plotly/validators/contour/hoverlabel/font/_variantsrc.py index 95e6cf234e..48c691d555 100644 --- a/plotly/validators/contour/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/contour/hoverlabel/font/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contour/hoverlabel/font/_weight.py b/plotly/validators/contour/hoverlabel/font/_weight.py index d2cfa94962..3b5ba17d26 100644 --- a/plotly/validators/contour/hoverlabel/font/_weight.py +++ b/plotly/validators/contour/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/contour/hoverlabel/font/_weightsrc.py b/plotly/validators/contour/hoverlabel/font/_weightsrc.py index f24fbe0d59..5166a7b210 100644 --- a/plotly/validators/contour/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/contour/hoverlabel/font/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contour/legendgrouptitle/__init__.py b/plotly/validators/contour/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/contour/legendgrouptitle/__init__.py +++ b/plotly/validators/contour/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/contour/legendgrouptitle/_font.py b/plotly/validators/contour/legendgrouptitle/_font.py index 52dce93bf0..bc8c6b249c 100644 --- a/plotly/validators/contour/legendgrouptitle/_font.py +++ b/plotly/validators/contour/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/contour/legendgrouptitle/_text.py b/plotly/validators/contour/legendgrouptitle/_text.py index edabd90267..aeb2e617cb 100644 --- a/plotly/validators/contour/legendgrouptitle/_text.py +++ b/plotly/validators/contour/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/contour/legendgrouptitle/font/__init__.py b/plotly/validators/contour/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/contour/legendgrouptitle/font/__init__.py +++ b/plotly/validators/contour/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/contour/legendgrouptitle/font/_color.py b/plotly/validators/contour/legendgrouptitle/font/_color.py index a3386cc231..c44e0ec2cc 100644 --- a/plotly/validators/contour/legendgrouptitle/font/_color.py +++ b/plotly/validators/contour/legendgrouptitle/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/contour/legendgrouptitle/font/_family.py b/plotly/validators/contour/legendgrouptitle/font/_family.py index 2cfce30355..e70e4b3fa4 100644 --- a/plotly/validators/contour/legendgrouptitle/font/_family.py +++ b/plotly/validators/contour/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/contour/legendgrouptitle/font/_lineposition.py b/plotly/validators/contour/legendgrouptitle/font/_lineposition.py index 271e0256d8..50939fe8d0 100644 --- a/plotly/validators/contour/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/contour/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/contour/legendgrouptitle/font/_shadow.py b/plotly/validators/contour/legendgrouptitle/font/_shadow.py index e51c4b4249..733b3e80d3 100644 --- a/plotly/validators/contour/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/contour/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/contour/legendgrouptitle/font/_size.py b/plotly/validators/contour/legendgrouptitle/font/_size.py index 339b6ea13a..189e30d69c 100644 --- a/plotly/validators/contour/legendgrouptitle/font/_size.py +++ b/plotly/validators/contour/legendgrouptitle/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/contour/legendgrouptitle/font/_style.py b/plotly/validators/contour/legendgrouptitle/font/_style.py index 4563d55c28..5482e2bebd 100644 --- a/plotly/validators/contour/legendgrouptitle/font/_style.py +++ b/plotly/validators/contour/legendgrouptitle/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/contour/legendgrouptitle/font/_textcase.py b/plotly/validators/contour/legendgrouptitle/font/_textcase.py index 52f9e805ca..354d1b4a5e 100644 --- a/plotly/validators/contour/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/contour/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/contour/legendgrouptitle/font/_variant.py b/plotly/validators/contour/legendgrouptitle/font/_variant.py index 7d6239066f..a29d159088 100644 --- a/plotly/validators/contour/legendgrouptitle/font/_variant.py +++ b/plotly/validators/contour/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/contour/legendgrouptitle/font/_weight.py b/plotly/validators/contour/legendgrouptitle/font/_weight.py index 9bdf25210e..b634a7c191 100644 --- a/plotly/validators/contour/legendgrouptitle/font/_weight.py +++ b/plotly/validators/contour/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/contour/line/__init__.py b/plotly/validators/contour/line/__init__.py index cc28ee67fe..13c597bfd2 100644 --- a/plotly/validators/contour/line/__init__.py +++ b/plotly/validators/contour/line/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._width import WidthValidator - from ._smoothing import SmoothingValidator - from ._dash import DashValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._width.WidthValidator", + "._smoothing.SmoothingValidator", + "._dash.DashValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/contour/line/_color.py b/plotly/validators/contour/line/_color.py index f3006bc32e..501e9db6f0 100644 --- a/plotly/validators/contour/line/_color.py +++ b/plotly/validators/contour/line/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style+colorbars"), **kwargs, ) diff --git a/plotly/validators/contour/line/_dash.py b/plotly/validators/contour/line/_dash.py index f1aeac4922..e009ec2e03 100644 --- a/plotly/validators/contour/line/_dash.py +++ b/plotly/validators/contour/line/_dash.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/contour/line/_smoothing.py b/plotly/validators/contour/line/_smoothing.py index 22a9a7184f..530c20a54f 100644 --- a/plotly/validators/contour/line/_smoothing.py +++ b/plotly/validators/contour/line/_smoothing.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SmoothingValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), max=kwargs.pop("max", 1.3), min=kwargs.pop("min", 0), diff --git a/plotly/validators/contour/line/_width.py b/plotly/validators/contour/line/_width.py index e20ee1cd35..c90c8f2d7b 100644 --- a/plotly/validators/contour/line/_width.py +++ b/plotly/validators/contour/line/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style+colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/contour/stream/__init__.py b/plotly/validators/contour/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/contour/stream/__init__.py +++ b/plotly/validators/contour/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/contour/stream/_maxpoints.py b/plotly/validators/contour/stream/_maxpoints.py index 91660db059..e4af3d245a 100644 --- a/plotly/validators/contour/stream/_maxpoints.py +++ b/plotly/validators/contour/stream/_maxpoints.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/contour/stream/_token.py b/plotly/validators/contour/stream/_token.py index a9acbffc72..f5b4a46109 100644 --- a/plotly/validators/contour/stream/_token.py +++ b/plotly/validators/contour/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/contour/textfont/__init__.py b/plotly/validators/contour/textfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/contour/textfont/__init__.py +++ b/plotly/validators/contour/textfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/contour/textfont/_color.py b/plotly/validators/contour/textfont/_color.py index f92b9c2686..33152d74a7 100644 --- a/plotly/validators/contour/textfont/_color.py +++ b/plotly/validators/contour/textfont/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/contour/textfont/_family.py b/plotly/validators/contour/textfont/_family.py index b75da91bf0..41b3b33061 100644 --- a/plotly/validators/contour/textfont/_family.py +++ b/plotly/validators/contour/textfont/_family.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/contour/textfont/_lineposition.py b/plotly/validators/contour/textfont/_lineposition.py index cd62b8e50f..35f9ee4d09 100644 --- a/plotly/validators/contour/textfont/_lineposition.py +++ b/plotly/validators/contour/textfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/contour/textfont/_shadow.py b/plotly/validators/contour/textfont/_shadow.py index 5ad71bce1f..5317343d06 100644 --- a/plotly/validators/contour/textfont/_shadow.py +++ b/plotly/validators/contour/textfont/_shadow.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/contour/textfont/_size.py b/plotly/validators/contour/textfont/_size.py index 3e392b2dce..154f67b3cc 100644 --- a/plotly/validators/contour/textfont/_size.py +++ b/plotly/validators/contour/textfont/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/contour/textfont/_style.py b/plotly/validators/contour/textfont/_style.py index e510ea2130..a7cf9ce441 100644 --- a/plotly/validators/contour/textfont/_style.py +++ b/plotly/validators/contour/textfont/_style.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/contour/textfont/_textcase.py b/plotly/validators/contour/textfont/_textcase.py index 6d18978100..8bde751a03 100644 --- a/plotly/validators/contour/textfont/_textcase.py +++ b/plotly/validators/contour/textfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/contour/textfont/_variant.py b/plotly/validators/contour/textfont/_variant.py index d991fc820c..ddbb9559c9 100644 --- a/plotly/validators/contour/textfont/_variant.py +++ b/plotly/validators/contour/textfont/_variant.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/contour/textfont/_weight.py b/plotly/validators/contour/textfont/_weight.py index 19a8d50bef..716d8c42b6 100644 --- a/plotly/validators/contour/textfont/_weight.py +++ b/plotly/validators/contour/textfont/_weight.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/contourcarpet/__init__.py b/plotly/validators/contourcarpet/__init__.py index b65146b937..549ec31e25 100644 --- a/plotly/validators/contourcarpet/__init__.py +++ b/plotly/validators/contourcarpet/__init__.py @@ -1,121 +1,63 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zsrc import ZsrcValidator - from ._zorder import ZorderValidator - from ._zmin import ZminValidator - from ._zmid import ZmidValidator - from ._zmax import ZmaxValidator - from ._zauto import ZautoValidator - from ._z import ZValidator - from ._yaxis import YaxisValidator - from ._xaxis import XaxisValidator - from ._visible import VisibleValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._transpose import TransposeValidator - from ._textsrc import TextsrcValidator - from ._text import TextValidator - from ._stream import StreamValidator - from ._showscale import ShowscaleValidator - from ._showlegend import ShowlegendValidator - from ._reversescale import ReversescaleValidator - from ._opacity import OpacityValidator - from ._ncontours import NcontoursValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._line import LineValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._fillcolor import FillcolorValidator - from ._db import DbValidator - from ._da import DaValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._contours import ContoursValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._carpet import CarpetValidator - from ._btype import BtypeValidator - from ._bsrc import BsrcValidator - from ._b0 import B0Validator - from ._b import BValidator - from ._autocontour import AutocontourValidator - from ._autocolorscale import AutocolorscaleValidator - from ._atype import AtypeValidator - from ._asrc import AsrcValidator - from ._a0 import A0Validator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/contourcarpet/_a.py b/plotly/validators/contourcarpet/_a.py index ba419ae44e..95799da49a 100644 --- a/plotly/validators/contourcarpet/_a.py +++ b/plotly/validators/contourcarpet/_a.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), implied_edits=kwargs.pop("implied_edits", {"xtype": "array"}), **kwargs, diff --git a/plotly/validators/contourcarpet/_a0.py b/plotly/validators/contourcarpet/_a0.py index b868e35b95..9e86337a69 100644 --- a/plotly/validators/contourcarpet/_a0.py +++ b/plotly/validators/contourcarpet/_a0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class A0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), implied_edits=kwargs.pop("implied_edits", {"xtype": "scaled"}), **kwargs, diff --git a/plotly/validators/contourcarpet/_asrc.py b/plotly/validators/contourcarpet/_asrc.py index 272956a54e..ac2fdebaec 100644 --- a/plotly/validators/contourcarpet/_asrc.py +++ b/plotly/validators/contourcarpet/_asrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/_atype.py b/plotly/validators/contourcarpet/_atype.py index 685e958e43..32fbd469a2 100644 --- a/plotly/validators/contourcarpet/_atype.py +++ b/plotly/validators/contourcarpet/_atype.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AtypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), values=kwargs.pop("values", ["array", "scaled"]), **kwargs, diff --git a/plotly/validators/contourcarpet/_autocolorscale.py b/plotly/validators/contourcarpet/_autocolorscale.py index b765176121..ecefb71f14 100644 --- a/plotly/validators/contourcarpet/_autocolorscale.py +++ b/plotly/validators/contourcarpet/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/contourcarpet/_autocontour.py b/plotly/validators/contourcarpet/_autocontour.py index c17015efe7..7d758a1c6c 100644 --- a/plotly/validators/contourcarpet/_autocontour.py +++ b/plotly/validators/contourcarpet/_autocontour.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocontourValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/contourcarpet/_b.py b/plotly/validators/contourcarpet/_b.py index c18760716e..d3a3eaae73 100644 --- a/plotly/validators/contourcarpet/_b.py +++ b/plotly/validators/contourcarpet/_b.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), implied_edits=kwargs.pop("implied_edits", {"ytype": "array"}), **kwargs, diff --git a/plotly/validators/contourcarpet/_b0.py b/plotly/validators/contourcarpet/_b0.py index 46e7656569..a1bc4b5ce9 100644 --- a/plotly/validators/contourcarpet/_b0.py +++ b/plotly/validators/contourcarpet/_b0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class B0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), implied_edits=kwargs.pop("implied_edits", {"ytype": "scaled"}), **kwargs, diff --git a/plotly/validators/contourcarpet/_bsrc.py b/plotly/validators/contourcarpet/_bsrc.py index cece078ee0..7964dd97be 100644 --- a/plotly/validators/contourcarpet/_bsrc.py +++ b/plotly/validators/contourcarpet/_bsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/_btype.py b/plotly/validators/contourcarpet/_btype.py index 4c2b716c73..9818849783 100644 --- a/plotly/validators/contourcarpet/_btype.py +++ b/plotly/validators/contourcarpet/_btype.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BtypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), values=kwargs.pop("values", ["array", "scaled"]), **kwargs, diff --git a/plotly/validators/contourcarpet/_carpet.py b/plotly/validators/contourcarpet/_carpet.py index 38bc54ab4e..2ad3cf79e5 100644 --- a/plotly/validators/contourcarpet/_carpet.py +++ b/plotly/validators/contourcarpet/_carpet.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CarpetValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/_coloraxis.py b/plotly/validators/contourcarpet/_coloraxis.py index 5bb9807e87..cb131c142b 100644 --- a/plotly/validators/contourcarpet/_coloraxis.py +++ b/plotly/validators/contourcarpet/_coloraxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/contourcarpet/_colorbar.py b/plotly/validators/contourcarpet/_colorbar.py index 998e515856..a4f934abf7 100644 --- a/plotly/validators/contourcarpet/_colorbar.py +++ b/plotly/validators/contourcarpet/_colorbar.py @@ -1,279 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/contourcarpet/_colorscale.py b/plotly/validators/contourcarpet/_colorscale.py index 00798421c5..7bbf859298 100644 --- a/plotly/validators/contourcarpet/_colorscale.py +++ b/plotly/validators/contourcarpet/_colorscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/contourcarpet/_contours.py b/plotly/validators/contourcarpet/_contours.py index 96c3e6f06b..353c2f901a 100644 --- a/plotly/validators/contourcarpet/_contours.py +++ b/plotly/validators/contourcarpet/_contours.py @@ -1,76 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ContoursValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/contourcarpet/_customdata.py b/plotly/validators/contourcarpet/_customdata.py index 45e1f33765..1f195ba203 100644 --- a/plotly/validators/contourcarpet/_customdata.py +++ b/plotly/validators/contourcarpet/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/_customdatasrc.py b/plotly/validators/contourcarpet/_customdatasrc.py index 1622e92c76..096e2efd60 100644 --- a/plotly/validators/contourcarpet/_customdatasrc.py +++ b/plotly/validators/contourcarpet/_customdatasrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/_da.py b/plotly/validators/contourcarpet/_da.py index 3cb5e641fe..74da9882f4 100644 --- a/plotly/validators/contourcarpet/_da.py +++ b/plotly/validators/contourcarpet/_da.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DaValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"xtype": "scaled"}), **kwargs, diff --git a/plotly/validators/contourcarpet/_db.py b/plotly/validators/contourcarpet/_db.py index 849bcb4304..d70b1d092d 100644 --- a/plotly/validators/contourcarpet/_db.py +++ b/plotly/validators/contourcarpet/_db.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DbValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"ytype": "scaled"}), **kwargs, diff --git a/plotly/validators/contourcarpet/_fillcolor.py b/plotly/validators/contourcarpet/_fillcolor.py index 311cb221f8..0971c364a6 100644 --- a/plotly/validators/contourcarpet/_fillcolor.py +++ b/plotly/validators/contourcarpet/_fillcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), colorscale_path=kwargs.pop("colorscale_path", "contourcarpet.colorscale"), **kwargs, diff --git a/plotly/validators/contourcarpet/_hovertext.py b/plotly/validators/contourcarpet/_hovertext.py index f96971d7f4..11298dc443 100644 --- a/plotly/validators/contourcarpet/_hovertext.py +++ b/plotly/validators/contourcarpet/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/_hovertextsrc.py b/plotly/validators/contourcarpet/_hovertextsrc.py index ca71455294..167d4c7d26 100644 --- a/plotly/validators/contourcarpet/_hovertextsrc.py +++ b/plotly/validators/contourcarpet/_hovertextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/_ids.py b/plotly/validators/contourcarpet/_ids.py index b9e45d342c..27ebb5b01f 100644 --- a/plotly/validators/contourcarpet/_ids.py +++ b/plotly/validators/contourcarpet/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/_idssrc.py b/plotly/validators/contourcarpet/_idssrc.py index 3c9b151907..b0d3dcc4fe 100644 --- a/plotly/validators/contourcarpet/_idssrc.py +++ b/plotly/validators/contourcarpet/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/_legend.py b/plotly/validators/contourcarpet/_legend.py index 6389d68618..8c43fe1ad4 100644 --- a/plotly/validators/contourcarpet/_legend.py +++ b/plotly/validators/contourcarpet/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/contourcarpet/_legendgroup.py b/plotly/validators/contourcarpet/_legendgroup.py index 7f9759f92a..d7c0a0d4c5 100644 --- a/plotly/validators/contourcarpet/_legendgroup.py +++ b/plotly/validators/contourcarpet/_legendgroup.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/_legendgrouptitle.py b/plotly/validators/contourcarpet/_legendgrouptitle.py index 51cbe98b69..ed07251ce3 100644 --- a/plotly/validators/contourcarpet/_legendgrouptitle.py +++ b/plotly/validators/contourcarpet/_legendgrouptitle.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/contourcarpet/_legendrank.py b/plotly/validators/contourcarpet/_legendrank.py index 060fe935cf..15055e9dfb 100644 --- a/plotly/validators/contourcarpet/_legendrank.py +++ b/plotly/validators/contourcarpet/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/_legendwidth.py b/plotly/validators/contourcarpet/_legendwidth.py index 5e9eddfe2a..453e4827e0 100644 --- a/plotly/validators/contourcarpet/_legendwidth.py +++ b/plotly/validators/contourcarpet/_legendwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/contourcarpet/_line.py b/plotly/validators/contourcarpet/_line.py index 819e39661c..a9b1bd99d7 100644 --- a/plotly/validators/contourcarpet/_line.py +++ b/plotly/validators/contourcarpet/_line.py @@ -1,32 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/contourcarpet/_meta.py b/plotly/validators/contourcarpet/_meta.py index ba6e325495..1e8868c559 100644 --- a/plotly/validators/contourcarpet/_meta.py +++ b/plotly/validators/contourcarpet/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/contourcarpet/_metasrc.py b/plotly/validators/contourcarpet/_metasrc.py index 8a510c8c91..ee45f0a61d 100644 --- a/plotly/validators/contourcarpet/_metasrc.py +++ b/plotly/validators/contourcarpet/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/_name.py b/plotly/validators/contourcarpet/_name.py index 3aa0b8bac6..49eef8d764 100644 --- a/plotly/validators/contourcarpet/_name.py +++ b/plotly/validators/contourcarpet/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/_ncontours.py b/plotly/validators/contourcarpet/_ncontours.py index 7e9fc47bc7..0c2a06c609 100644 --- a/plotly/validators/contourcarpet/_ncontours.py +++ b/plotly/validators/contourcarpet/_ncontours.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NcontoursValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/contourcarpet/_opacity.py b/plotly/validators/contourcarpet/_opacity.py index 290ae96401..7588dfdc6e 100644 --- a/plotly/validators/contourcarpet/_opacity.py +++ b/plotly/validators/contourcarpet/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/contourcarpet/_reversescale.py b/plotly/validators/contourcarpet/_reversescale.py index 4ad64ce8de..8a56e3b01d 100644 --- a/plotly/validators/contourcarpet/_reversescale.py +++ b/plotly/validators/contourcarpet/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/_showlegend.py b/plotly/validators/contourcarpet/_showlegend.py index a3ae37af56..4d4ffe0ef1 100644 --- a/plotly/validators/contourcarpet/_showlegend.py +++ b/plotly/validators/contourcarpet/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/_showscale.py b/plotly/validators/contourcarpet/_showscale.py index 4139ed3d85..07eeb180c4 100644 --- a/plotly/validators/contourcarpet/_showscale.py +++ b/plotly/validators/contourcarpet/_showscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/_stream.py b/plotly/validators/contourcarpet/_stream.py index 0ac5aaf6b3..cdcdcf8f16 100644 --- a/plotly/validators/contourcarpet/_stream.py +++ b/plotly/validators/contourcarpet/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/contourcarpet/_text.py b/plotly/validators/contourcarpet/_text.py index dd9087fa3f..e743e162d1 100644 --- a/plotly/validators/contourcarpet/_text.py +++ b/plotly/validators/contourcarpet/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/_textsrc.py b/plotly/validators/contourcarpet/_textsrc.py index 528c04f14c..3f3025ec13 100644 --- a/plotly/validators/contourcarpet/_textsrc.py +++ b/plotly/validators/contourcarpet/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/_transpose.py b/plotly/validators/contourcarpet/_transpose.py index bdba4b91b0..e12523d5e5 100644 --- a/plotly/validators/contourcarpet/_transpose.py +++ b/plotly/validators/contourcarpet/_transpose.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TransposeValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/_uid.py b/plotly/validators/contourcarpet/_uid.py index e7a45e0aa5..b84418134d 100644 --- a/plotly/validators/contourcarpet/_uid.py +++ b/plotly/validators/contourcarpet/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/_uirevision.py b/plotly/validators/contourcarpet/_uirevision.py index e69f03b7f0..f8936f3c66 100644 --- a/plotly/validators/contourcarpet/_uirevision.py +++ b/plotly/validators/contourcarpet/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/_visible.py b/plotly/validators/contourcarpet/_visible.py index 96d54ba8ec..e1d119d024 100644 --- a/plotly/validators/contourcarpet/_visible.py +++ b/plotly/validators/contourcarpet/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/contourcarpet/_xaxis.py b/plotly/validators/contourcarpet/_xaxis.py index e585163e25..a9998d61b8 100644 --- a/plotly/validators/contourcarpet/_xaxis.py +++ b/plotly/validators/contourcarpet/_xaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "x"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/contourcarpet/_yaxis.py b/plotly/validators/contourcarpet/_yaxis.py index c92598bffb..7b21f9ac90 100644 --- a/plotly/validators/contourcarpet/_yaxis.py +++ b/plotly/validators/contourcarpet/_yaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "y"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/contourcarpet/_z.py b/plotly/validators/contourcarpet/_z.py index 857f9c9a3e..0c4eb6819a 100644 --- a/plotly/validators/contourcarpet/_z.py +++ b/plotly/validators/contourcarpet/_z.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/_zauto.py b/plotly/validators/contourcarpet/_zauto.py index 865dc31c9c..d547d7aaf8 100644 --- a/plotly/validators/contourcarpet/_zauto.py +++ b/plotly/validators/contourcarpet/_zauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/contourcarpet/_zmax.py b/plotly/validators/contourcarpet/_zmax.py index 3380d90b4c..0604747418 100644 --- a/plotly/validators/contourcarpet/_zmax.py +++ b/plotly/validators/contourcarpet/_zmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"zauto": False}), **kwargs, diff --git a/plotly/validators/contourcarpet/_zmid.py b/plotly/validators/contourcarpet/_zmid.py index e830931e79..f0ac666022 100644 --- a/plotly/validators/contourcarpet/_zmid.py +++ b/plotly/validators/contourcarpet/_zmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/contourcarpet/_zmin.py b/plotly/validators/contourcarpet/_zmin.py index 313d4c589a..db5f254608 100644 --- a/plotly/validators/contourcarpet/_zmin.py +++ b/plotly/validators/contourcarpet/_zmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"zauto": False}), **kwargs, diff --git a/plotly/validators/contourcarpet/_zorder.py b/plotly/validators/contourcarpet/_zorder.py index 8b8d3fa67b..99f1f16caf 100644 --- a/plotly/validators/contourcarpet/_zorder.py +++ b/plotly/validators/contourcarpet/_zorder.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZorderValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/_zsrc.py b/plotly/validators/contourcarpet/_zsrc.py index 1cd2a5925e..092baa1010 100644 --- a/plotly/validators/contourcarpet/_zsrc.py +++ b/plotly/validators/contourcarpet/_zsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/colorbar/__init__.py b/plotly/validators/contourcarpet/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/contourcarpet/colorbar/__init__.py +++ b/plotly/validators/contourcarpet/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/contourcarpet/colorbar/_bgcolor.py b/plotly/validators/contourcarpet/colorbar/_bgcolor.py index 66e53aa1f7..17ebacbad9 100644 --- a/plotly/validators/contourcarpet/colorbar/_bgcolor.py +++ b/plotly/validators/contourcarpet/colorbar/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/colorbar/_bordercolor.py b/plotly/validators/contourcarpet/colorbar/_bordercolor.py index 8208951bb5..d044f95e36 100644 --- a/plotly/validators/contourcarpet/colorbar/_bordercolor.py +++ b/plotly/validators/contourcarpet/colorbar/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/colorbar/_borderwidth.py b/plotly/validators/contourcarpet/colorbar/_borderwidth.py index fe47d05ca8..e8d2a21214 100644 --- a/plotly/validators/contourcarpet/colorbar/_borderwidth.py +++ b/plotly/validators/contourcarpet/colorbar/_borderwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/contourcarpet/colorbar/_dtick.py b/plotly/validators/contourcarpet/colorbar/_dtick.py index f3b4117780..a4680a51d3 100644 --- a/plotly/validators/contourcarpet/colorbar/_dtick.py +++ b/plotly/validators/contourcarpet/colorbar/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/contourcarpet/colorbar/_exponentformat.py b/plotly/validators/contourcarpet/colorbar/_exponentformat.py index 67b1086ffd..92b6c6af8d 100644 --- a/plotly/validators/contourcarpet/colorbar/_exponentformat.py +++ b/plotly/validators/contourcarpet/colorbar/_exponentformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/contourcarpet/colorbar/_labelalias.py b/plotly/validators/contourcarpet/colorbar/_labelalias.py index a4d489147d..645a30a8f3 100644 --- a/plotly/validators/contourcarpet/colorbar/_labelalias.py +++ b/plotly/validators/contourcarpet/colorbar/_labelalias.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/colorbar/_len.py b/plotly/validators/contourcarpet/colorbar/_len.py index 513013ad21..8ea1d9a658 100644 --- a/plotly/validators/contourcarpet/colorbar/_len.py +++ b/plotly/validators/contourcarpet/colorbar/_len.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/contourcarpet/colorbar/_lenmode.py b/plotly/validators/contourcarpet/colorbar/_lenmode.py index c7ae6bdad3..959915cf8e 100644 --- a/plotly/validators/contourcarpet/colorbar/_lenmode.py +++ b/plotly/validators/contourcarpet/colorbar/_lenmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/contourcarpet/colorbar/_minexponent.py b/plotly/validators/contourcarpet/colorbar/_minexponent.py index 9f3a84e182..b39b71f8b4 100644 --- a/plotly/validators/contourcarpet/colorbar/_minexponent.py +++ b/plotly/validators/contourcarpet/colorbar/_minexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/contourcarpet/colorbar/_nticks.py b/plotly/validators/contourcarpet/colorbar/_nticks.py index ae55266d5e..f285e81d21 100644 --- a/plotly/validators/contourcarpet/colorbar/_nticks.py +++ b/plotly/validators/contourcarpet/colorbar/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/contourcarpet/colorbar/_orientation.py b/plotly/validators/contourcarpet/colorbar/_orientation.py index 7a42e3c6a2..550dbba258 100644 --- a/plotly/validators/contourcarpet/colorbar/_orientation.py +++ b/plotly/validators/contourcarpet/colorbar/_orientation.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/contourcarpet/colorbar/_outlinecolor.py b/plotly/validators/contourcarpet/colorbar/_outlinecolor.py index 8ec398f85c..35c47d4102 100644 --- a/plotly/validators/contourcarpet/colorbar/_outlinecolor.py +++ b/plotly/validators/contourcarpet/colorbar/_outlinecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/colorbar/_outlinewidth.py b/plotly/validators/contourcarpet/colorbar/_outlinewidth.py index cd25e5faf2..141f5c97b9 100644 --- a/plotly/validators/contourcarpet/colorbar/_outlinewidth.py +++ b/plotly/validators/contourcarpet/colorbar/_outlinewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/contourcarpet/colorbar/_separatethousands.py b/plotly/validators/contourcarpet/colorbar/_separatethousands.py index d663314dfe..266e638fc8 100644 --- a/plotly/validators/contourcarpet/colorbar/_separatethousands.py +++ b/plotly/validators/contourcarpet/colorbar/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/colorbar/_showexponent.py b/plotly/validators/contourcarpet/colorbar/_showexponent.py index 6f546bcc31..a65b4fcfe9 100644 --- a/plotly/validators/contourcarpet/colorbar/_showexponent.py +++ b/plotly/validators/contourcarpet/colorbar/_showexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/contourcarpet/colorbar/_showticklabels.py b/plotly/validators/contourcarpet/colorbar/_showticklabels.py index 5e3bf7f8ec..c7a8275a7d 100644 --- a/plotly/validators/contourcarpet/colorbar/_showticklabels.py +++ b/plotly/validators/contourcarpet/colorbar/_showticklabels.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/colorbar/_showtickprefix.py b/plotly/validators/contourcarpet/colorbar/_showtickprefix.py index 0439dcf6f6..1227d876c2 100644 --- a/plotly/validators/contourcarpet/colorbar/_showtickprefix.py +++ b/plotly/validators/contourcarpet/colorbar/_showtickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/contourcarpet/colorbar/_showticksuffix.py b/plotly/validators/contourcarpet/colorbar/_showticksuffix.py index e05583ee18..e58e0dc6b5 100644 --- a/plotly/validators/contourcarpet/colorbar/_showticksuffix.py +++ b/plotly/validators/contourcarpet/colorbar/_showticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/contourcarpet/colorbar/_thickness.py b/plotly/validators/contourcarpet/colorbar/_thickness.py index 8df1b34e40..396322af56 100644 --- a/plotly/validators/contourcarpet/colorbar/_thickness.py +++ b/plotly/validators/contourcarpet/colorbar/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/contourcarpet/colorbar/_thicknessmode.py b/plotly/validators/contourcarpet/colorbar/_thicknessmode.py index 6f5ec4118a..44dc271eb5 100644 --- a/plotly/validators/contourcarpet/colorbar/_thicknessmode.py +++ b/plotly/validators/contourcarpet/colorbar/_thicknessmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/contourcarpet/colorbar/_tick0.py b/plotly/validators/contourcarpet/colorbar/_tick0.py index 0e4c016067..f23c91be50 100644 --- a/plotly/validators/contourcarpet/colorbar/_tick0.py +++ b/plotly/validators/contourcarpet/colorbar/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/contourcarpet/colorbar/_tickangle.py b/plotly/validators/contourcarpet/colorbar/_tickangle.py index ef2f769b63..c1ff988b9b 100644 --- a/plotly/validators/contourcarpet/colorbar/_tickangle.py +++ b/plotly/validators/contourcarpet/colorbar/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/colorbar/_tickcolor.py b/plotly/validators/contourcarpet/colorbar/_tickcolor.py index 6eb99c539a..927f50547c 100644 --- a/plotly/validators/contourcarpet/colorbar/_tickcolor.py +++ b/plotly/validators/contourcarpet/colorbar/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/colorbar/_tickfont.py b/plotly/validators/contourcarpet/colorbar/_tickfont.py index 006b590461..89e3504d26 100644 --- a/plotly/validators/contourcarpet/colorbar/_tickfont.py +++ b/plotly/validators/contourcarpet/colorbar/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/contourcarpet/colorbar/_tickformat.py b/plotly/validators/contourcarpet/colorbar/_tickformat.py index 139b461d4f..05aa366a47 100644 --- a/plotly/validators/contourcarpet/colorbar/_tickformat.py +++ b/plotly/validators/contourcarpet/colorbar/_tickformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/colorbar/_tickformatstopdefaults.py b/plotly/validators/contourcarpet/colorbar/_tickformatstopdefaults.py index 2ff0759855..e942c9d38f 100644 --- a/plotly/validators/contourcarpet/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/contourcarpet/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/contourcarpet/colorbar/_tickformatstops.py b/plotly/validators/contourcarpet/colorbar/_tickformatstops.py index c437c9f7ed..94e5bc7633 100644 --- a/plotly/validators/contourcarpet/colorbar/_tickformatstops.py +++ b/plotly/validators/contourcarpet/colorbar/_tickformatstops.py @@ -1,53 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/contourcarpet/colorbar/_ticklabeloverflow.py b/plotly/validators/contourcarpet/colorbar/_ticklabeloverflow.py index d8c8e22682..b986755db1 100644 --- a/plotly/validators/contourcarpet/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/contourcarpet/colorbar/_ticklabeloverflow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/contourcarpet/colorbar/_ticklabelposition.py b/plotly/validators/contourcarpet/colorbar/_ticklabelposition.py index 0f3201f3ac..1d74098cce 100644 --- a/plotly/validators/contourcarpet/colorbar/_ticklabelposition.py +++ b/plotly/validators/contourcarpet/colorbar/_ticklabelposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/contourcarpet/colorbar/_ticklabelstep.py b/plotly/validators/contourcarpet/colorbar/_ticklabelstep.py index ab140acf34..d435429373 100644 --- a/plotly/validators/contourcarpet/colorbar/_ticklabelstep.py +++ b/plotly/validators/contourcarpet/colorbar/_ticklabelstep.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/contourcarpet/colorbar/_ticklen.py b/plotly/validators/contourcarpet/colorbar/_ticklen.py index 4a8304b1bd..fb058df30f 100644 --- a/plotly/validators/contourcarpet/colorbar/_ticklen.py +++ b/plotly/validators/contourcarpet/colorbar/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/contourcarpet/colorbar/_tickmode.py b/plotly/validators/contourcarpet/colorbar/_tickmode.py index 6f055103b0..163babdb9f 100644 --- a/plotly/validators/contourcarpet/colorbar/_tickmode.py +++ b/plotly/validators/contourcarpet/colorbar/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/contourcarpet/colorbar/_tickprefix.py b/plotly/validators/contourcarpet/colorbar/_tickprefix.py index 9f956d7508..1598da1f61 100644 --- a/plotly/validators/contourcarpet/colorbar/_tickprefix.py +++ b/plotly/validators/contourcarpet/colorbar/_tickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/colorbar/_ticks.py b/plotly/validators/contourcarpet/colorbar/_ticks.py index 7c5e6f8255..97649c07d3 100644 --- a/plotly/validators/contourcarpet/colorbar/_ticks.py +++ b/plotly/validators/contourcarpet/colorbar/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/contourcarpet/colorbar/_ticksuffix.py b/plotly/validators/contourcarpet/colorbar/_ticksuffix.py index aad6a41c39..2ebc7b852c 100644 --- a/plotly/validators/contourcarpet/colorbar/_ticksuffix.py +++ b/plotly/validators/contourcarpet/colorbar/_ticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/colorbar/_ticktext.py b/plotly/validators/contourcarpet/colorbar/_ticktext.py index 7bb0fab9d2..1ecbfb63cc 100644 --- a/plotly/validators/contourcarpet/colorbar/_ticktext.py +++ b/plotly/validators/contourcarpet/colorbar/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/colorbar/_ticktextsrc.py b/plotly/validators/contourcarpet/colorbar/_ticktextsrc.py index e6f3f5d730..5a7ce02d05 100644 --- a/plotly/validators/contourcarpet/colorbar/_ticktextsrc.py +++ b/plotly/validators/contourcarpet/colorbar/_ticktextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/colorbar/_tickvals.py b/plotly/validators/contourcarpet/colorbar/_tickvals.py index 27d527ac84..0588a0ec9e 100644 --- a/plotly/validators/contourcarpet/colorbar/_tickvals.py +++ b/plotly/validators/contourcarpet/colorbar/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/colorbar/_tickvalssrc.py b/plotly/validators/contourcarpet/colorbar/_tickvalssrc.py index 7e2233363b..b9dd825590 100644 --- a/plotly/validators/contourcarpet/colorbar/_tickvalssrc.py +++ b/plotly/validators/contourcarpet/colorbar/_tickvalssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/colorbar/_tickwidth.py b/plotly/validators/contourcarpet/colorbar/_tickwidth.py index 3f57a1c6c6..dce1d25564 100644 --- a/plotly/validators/contourcarpet/colorbar/_tickwidth.py +++ b/plotly/validators/contourcarpet/colorbar/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/contourcarpet/colorbar/_title.py b/plotly/validators/contourcarpet/colorbar/_title.py index c7b29ac4eb..ffcd5e7079 100644 --- a/plotly/validators/contourcarpet/colorbar/_title.py +++ b/plotly/validators/contourcarpet/colorbar/_title.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/contourcarpet/colorbar/_x.py b/plotly/validators/contourcarpet/colorbar/_x.py index 11beaef6fc..a30b11ecf3 100644 --- a/plotly/validators/contourcarpet/colorbar/_x.py +++ b/plotly/validators/contourcarpet/colorbar/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/colorbar/_xanchor.py b/plotly/validators/contourcarpet/colorbar/_xanchor.py index 9ad4ab1923..45807d45fc 100644 --- a/plotly/validators/contourcarpet/colorbar/_xanchor.py +++ b/plotly/validators/contourcarpet/colorbar/_xanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/contourcarpet/colorbar/_xpad.py b/plotly/validators/contourcarpet/colorbar/_xpad.py index 5a5d104d3b..cea70cd211 100644 --- a/plotly/validators/contourcarpet/colorbar/_xpad.py +++ b/plotly/validators/contourcarpet/colorbar/_xpad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/contourcarpet/colorbar/_xref.py b/plotly/validators/contourcarpet/colorbar/_xref.py index ce2aa8e02c..9b1085b27d 100644 --- a/plotly/validators/contourcarpet/colorbar/_xref.py +++ b/plotly/validators/contourcarpet/colorbar/_xref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/contourcarpet/colorbar/_y.py b/plotly/validators/contourcarpet/colorbar/_y.py index d602f4e7cf..6a92263d76 100644 --- a/plotly/validators/contourcarpet/colorbar/_y.py +++ b/plotly/validators/contourcarpet/colorbar/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/colorbar/_yanchor.py b/plotly/validators/contourcarpet/colorbar/_yanchor.py index b1be18aa30..3bc1804477 100644 --- a/plotly/validators/contourcarpet/colorbar/_yanchor.py +++ b/plotly/validators/contourcarpet/colorbar/_yanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/contourcarpet/colorbar/_ypad.py b/plotly/validators/contourcarpet/colorbar/_ypad.py index 53b745ad8e..cc358984e1 100644 --- a/plotly/validators/contourcarpet/colorbar/_ypad.py +++ b/plotly/validators/contourcarpet/colorbar/_ypad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/contourcarpet/colorbar/_yref.py b/plotly/validators/contourcarpet/colorbar/_yref.py index a7703fd899..9bd6166ef0 100644 --- a/plotly/validators/contourcarpet/colorbar/_yref.py +++ b/plotly/validators/contourcarpet/colorbar/_yref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/contourcarpet/colorbar/tickfont/__init__.py b/plotly/validators/contourcarpet/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/contourcarpet/colorbar/tickfont/__init__.py +++ b/plotly/validators/contourcarpet/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/contourcarpet/colorbar/tickfont/_color.py b/plotly/validators/contourcarpet/colorbar/tickfont/_color.py index 8de80d7fbd..4c22cfdeed 100644 --- a/plotly/validators/contourcarpet/colorbar/tickfont/_color.py +++ b/plotly/validators/contourcarpet/colorbar/tickfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/colorbar/tickfont/_family.py b/plotly/validators/contourcarpet/colorbar/tickfont/_family.py index 3e0f23b0aa..eb8df57159 100644 --- a/plotly/validators/contourcarpet/colorbar/tickfont/_family.py +++ b/plotly/validators/contourcarpet/colorbar/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/contourcarpet/colorbar/tickfont/_lineposition.py b/plotly/validators/contourcarpet/colorbar/tickfont/_lineposition.py index 1f3e5f9bd2..2feb430db8 100644 --- a/plotly/validators/contourcarpet/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/contourcarpet/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/contourcarpet/colorbar/tickfont/_shadow.py b/plotly/validators/contourcarpet/colorbar/tickfont/_shadow.py index 88feba0562..faf46af1e2 100644 --- a/plotly/validators/contourcarpet/colorbar/tickfont/_shadow.py +++ b/plotly/validators/contourcarpet/colorbar/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/colorbar/tickfont/_size.py b/plotly/validators/contourcarpet/colorbar/tickfont/_size.py index 64215008bd..ce89622144 100644 --- a/plotly/validators/contourcarpet/colorbar/tickfont/_size.py +++ b/plotly/validators/contourcarpet/colorbar/tickfont/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/contourcarpet/colorbar/tickfont/_style.py b/plotly/validators/contourcarpet/colorbar/tickfont/_style.py index e0f5b4f60f..6977bec134 100644 --- a/plotly/validators/contourcarpet/colorbar/tickfont/_style.py +++ b/plotly/validators/contourcarpet/colorbar/tickfont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/contourcarpet/colorbar/tickfont/_textcase.py b/plotly/validators/contourcarpet/colorbar/tickfont/_textcase.py index a5731b9f83..65c506c2cc 100644 --- a/plotly/validators/contourcarpet/colorbar/tickfont/_textcase.py +++ b/plotly/validators/contourcarpet/colorbar/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/contourcarpet/colorbar/tickfont/_variant.py b/plotly/validators/contourcarpet/colorbar/tickfont/_variant.py index e0bac200ff..d8c2198a31 100644 --- a/plotly/validators/contourcarpet/colorbar/tickfont/_variant.py +++ b/plotly/validators/contourcarpet/colorbar/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/contourcarpet/colorbar/tickfont/_weight.py b/plotly/validators/contourcarpet/colorbar/tickfont/_weight.py index 18f3315ab0..e924b3575b 100644 --- a/plotly/validators/contourcarpet/colorbar/tickfont/_weight.py +++ b/plotly/validators/contourcarpet/colorbar/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/contourcarpet/colorbar/tickformatstop/__init__.py b/plotly/validators/contourcarpet/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/contourcarpet/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/contourcarpet/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/contourcarpet/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/contourcarpet/colorbar/tickformatstop/_dtickrange.py index 0f76729b10..4dde868d93 100644 --- a/plotly/validators/contourcarpet/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/contourcarpet/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( "items", diff --git a/plotly/validators/contourcarpet/colorbar/tickformatstop/_enabled.py b/plotly/validators/contourcarpet/colorbar/tickformatstop/_enabled.py index e0f35977c1..c4f05113b6 100644 --- a/plotly/validators/contourcarpet/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/contourcarpet/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/colorbar/tickformatstop/_name.py b/plotly/validators/contourcarpet/colorbar/tickformatstop/_name.py index c3afd39b9f..3628367104 100644 --- a/plotly/validators/contourcarpet/colorbar/tickformatstop/_name.py +++ b/plotly/validators/contourcarpet/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/contourcarpet/colorbar/tickformatstop/_templateitemname.py index 60cad1da79..35e1e1963f 100644 --- a/plotly/validators/contourcarpet/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/contourcarpet/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/colorbar/tickformatstop/_value.py b/plotly/validators/contourcarpet/colorbar/tickformatstop/_value.py index 0697bd13d7..9e1b5d8a13 100644 --- a/plotly/validators/contourcarpet/colorbar/tickformatstop/_value.py +++ b/plotly/validators/contourcarpet/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/colorbar/title/__init__.py b/plotly/validators/contourcarpet/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/contourcarpet/colorbar/title/__init__.py +++ b/plotly/validators/contourcarpet/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/contourcarpet/colorbar/title/_font.py b/plotly/validators/contourcarpet/colorbar/title/_font.py index 436b69259b..d0b068633c 100644 --- a/plotly/validators/contourcarpet/colorbar/title/_font.py +++ b/plotly/validators/contourcarpet/colorbar/title/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/contourcarpet/colorbar/title/_side.py b/plotly/validators/contourcarpet/colorbar/title/_side.py index c4f507575a..18450b08ec 100644 --- a/plotly/validators/contourcarpet/colorbar/title/_side.py +++ b/plotly/validators/contourcarpet/colorbar/title/_side.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/contourcarpet/colorbar/title/_text.py b/plotly/validators/contourcarpet/colorbar/title/_text.py index d90f44b009..544f8160b9 100644 --- a/plotly/validators/contourcarpet/colorbar/title/_text.py +++ b/plotly/validators/contourcarpet/colorbar/title/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/colorbar/title/font/__init__.py b/plotly/validators/contourcarpet/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/contourcarpet/colorbar/title/font/__init__.py +++ b/plotly/validators/contourcarpet/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/contourcarpet/colorbar/title/font/_color.py b/plotly/validators/contourcarpet/colorbar/title/font/_color.py index 881dd461cf..5260f5eff3 100644 --- a/plotly/validators/contourcarpet/colorbar/title/font/_color.py +++ b/plotly/validators/contourcarpet/colorbar/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/colorbar/title/font/_family.py b/plotly/validators/contourcarpet/colorbar/title/font/_family.py index df4c72aa3d..96892f2c67 100644 --- a/plotly/validators/contourcarpet/colorbar/title/font/_family.py +++ b/plotly/validators/contourcarpet/colorbar/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/contourcarpet/colorbar/title/font/_lineposition.py b/plotly/validators/contourcarpet/colorbar/title/font/_lineposition.py index e4d02dc5ad..968eaa7f91 100644 --- a/plotly/validators/contourcarpet/colorbar/title/font/_lineposition.py +++ b/plotly/validators/contourcarpet/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/contourcarpet/colorbar/title/font/_shadow.py b/plotly/validators/contourcarpet/colorbar/title/font/_shadow.py index 4c04ba56eb..6287284d5d 100644 --- a/plotly/validators/contourcarpet/colorbar/title/font/_shadow.py +++ b/plotly/validators/contourcarpet/colorbar/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/colorbar/title/font/_size.py b/plotly/validators/contourcarpet/colorbar/title/font/_size.py index cce9ef4d71..372feaeaef 100644 --- a/plotly/validators/contourcarpet/colorbar/title/font/_size.py +++ b/plotly/validators/contourcarpet/colorbar/title/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/contourcarpet/colorbar/title/font/_style.py b/plotly/validators/contourcarpet/colorbar/title/font/_style.py index 12dfb435aa..76ccec0749 100644 --- a/plotly/validators/contourcarpet/colorbar/title/font/_style.py +++ b/plotly/validators/contourcarpet/colorbar/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/contourcarpet/colorbar/title/font/_textcase.py b/plotly/validators/contourcarpet/colorbar/title/font/_textcase.py index 49c59ae2a3..f5713e68c0 100644 --- a/plotly/validators/contourcarpet/colorbar/title/font/_textcase.py +++ b/plotly/validators/contourcarpet/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/contourcarpet/colorbar/title/font/_variant.py b/plotly/validators/contourcarpet/colorbar/title/font/_variant.py index 36414e27ac..4dd0e5a600 100644 --- a/plotly/validators/contourcarpet/colorbar/title/font/_variant.py +++ b/plotly/validators/contourcarpet/colorbar/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/contourcarpet/colorbar/title/font/_weight.py b/plotly/validators/contourcarpet/colorbar/title/font/_weight.py index 1f5db3de70..78fdda5f43 100644 --- a/plotly/validators/contourcarpet/colorbar/title/font/_weight.py +++ b/plotly/validators/contourcarpet/colorbar/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/contourcarpet/contours/__init__.py b/plotly/validators/contourcarpet/contours/__init__.py index 0650ad574b..230a907cd7 100644 --- a/plotly/validators/contourcarpet/contours/__init__.py +++ b/plotly/validators/contourcarpet/contours/__init__.py @@ -1,35 +1,20 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._type import TypeValidator - from ._start import StartValidator - from ._size import SizeValidator - from ._showlines import ShowlinesValidator - from ._showlabels import ShowlabelsValidator - from ._operation import OperationValidator - from ._labelformat import LabelformatValidator - from ._labelfont import LabelfontValidator - from ._end import EndValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/contourcarpet/contours/_coloring.py b/plotly/validators/contourcarpet/contours/_coloring.py index 029a8a7ef5..152815b4d6 100644 --- a/plotly/validators/contourcarpet/contours/_coloring.py +++ b/plotly/validators/contourcarpet/contours/_coloring.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoringValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["fill", "lines", "none"]), **kwargs, diff --git a/plotly/validators/contourcarpet/contours/_end.py b/plotly/validators/contourcarpet/contours/_end.py index 900f906cd0..09134545ae 100644 --- a/plotly/validators/contourcarpet/contours/_end.py +++ b/plotly/validators/contourcarpet/contours/_end.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EndValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"^autocontour": False}), **kwargs, diff --git a/plotly/validators/contourcarpet/contours/_labelfont.py b/plotly/validators/contourcarpet/contours/_labelfont.py index 19a5e5ffb4..36e0b71b37 100644 --- a/plotly/validators/contourcarpet/contours/_labelfont.py +++ b/plotly/validators/contourcarpet/contours/_labelfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Labelfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/contourcarpet/contours/_labelformat.py b/plotly/validators/contourcarpet/contours/_labelformat.py index a6c5ae42ec..ea8dee25f6 100644 --- a/plotly/validators/contourcarpet/contours/_labelformat.py +++ b/plotly/validators/contourcarpet/contours/_labelformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/contours/_operation.py b/plotly/validators/contourcarpet/contours/_operation.py index 0c7dc8ceb0..db59358d57 100644 --- a/plotly/validators/contourcarpet/contours/_operation.py +++ b/plotly/validators/contourcarpet/contours/_operation.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OperationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/contourcarpet/contours/_showlabels.py b/plotly/validators/contourcarpet/contours/_showlabels.py index ae47fa1e2c..7a1fe9ee21 100644 --- a/plotly/validators/contourcarpet/contours/_showlabels.py +++ b/plotly/validators/contourcarpet/contours/_showlabels.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/contours/_showlines.py b/plotly/validators/contourcarpet/contours/_showlines.py index 0fb013b64a..d83381768d 100644 --- a/plotly/validators/contourcarpet/contours/_showlines.py +++ b/plotly/validators/contourcarpet/contours/_showlines.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlinesValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/contours/_size.py b/plotly/validators/contourcarpet/contours/_size.py index 5b6ba1b5e7..81d928cf0a 100644 --- a/plotly/validators/contourcarpet/contours/_size.py +++ b/plotly/validators/contourcarpet/contours/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"^autocontour": False}), min=kwargs.pop("min", 0), diff --git a/plotly/validators/contourcarpet/contours/_start.py b/plotly/validators/contourcarpet/contours/_start.py index 3782b69a7d..b6a664d90d 100644 --- a/plotly/validators/contourcarpet/contours/_start.py +++ b/plotly/validators/contourcarpet/contours/_start.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StartValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"^autocontour": False}), **kwargs, diff --git a/plotly/validators/contourcarpet/contours/_type.py b/plotly/validators/contourcarpet/contours/_type.py index 787a9475a9..bd59af36c1 100644 --- a/plotly/validators/contourcarpet/contours/_type.py +++ b/plotly/validators/contourcarpet/contours/_type.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["levels", "constraint"]), **kwargs, diff --git a/plotly/validators/contourcarpet/contours/_value.py b/plotly/validators/contourcarpet/contours/_value.py index af740acacb..a883f54f95 100644 --- a/plotly/validators/contourcarpet/contours/_value.py +++ b/plotly/validators/contourcarpet/contours/_value.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/contours/labelfont/__init__.py b/plotly/validators/contourcarpet/contours/labelfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/contourcarpet/contours/labelfont/__init__.py +++ b/plotly/validators/contourcarpet/contours/labelfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/contourcarpet/contours/labelfont/_color.py b/plotly/validators/contourcarpet/contours/labelfont/_color.py index ece189cc3e..8b2a50fa1f 100644 --- a/plotly/validators/contourcarpet/contours/labelfont/_color.py +++ b/plotly/validators/contourcarpet/contours/labelfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/contours/labelfont/_family.py b/plotly/validators/contourcarpet/contours/labelfont/_family.py index 6263bcd069..a194a9c443 100644 --- a/plotly/validators/contourcarpet/contours/labelfont/_family.py +++ b/plotly/validators/contourcarpet/contours/labelfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/contourcarpet/contours/labelfont/_lineposition.py b/plotly/validators/contourcarpet/contours/labelfont/_lineposition.py index 58948a2486..439a9edcc9 100644 --- a/plotly/validators/contourcarpet/contours/labelfont/_lineposition.py +++ b/plotly/validators/contourcarpet/contours/labelfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/contourcarpet/contours/labelfont/_shadow.py b/plotly/validators/contourcarpet/contours/labelfont/_shadow.py index 149ef23611..7e87ed2266 100644 --- a/plotly/validators/contourcarpet/contours/labelfont/_shadow.py +++ b/plotly/validators/contourcarpet/contours/labelfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/contours/labelfont/_size.py b/plotly/validators/contourcarpet/contours/labelfont/_size.py index 01ccf5ca6d..a19be98f44 100644 --- a/plotly/validators/contourcarpet/contours/labelfont/_size.py +++ b/plotly/validators/contourcarpet/contours/labelfont/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/contourcarpet/contours/labelfont/_style.py b/plotly/validators/contourcarpet/contours/labelfont/_style.py index 31278931eb..15afcfedf7 100644 --- a/plotly/validators/contourcarpet/contours/labelfont/_style.py +++ b/plotly/validators/contourcarpet/contours/labelfont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/contourcarpet/contours/labelfont/_textcase.py b/plotly/validators/contourcarpet/contours/labelfont/_textcase.py index 2cfd9859e1..f097687b56 100644 --- a/plotly/validators/contourcarpet/contours/labelfont/_textcase.py +++ b/plotly/validators/contourcarpet/contours/labelfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/contourcarpet/contours/labelfont/_variant.py b/plotly/validators/contourcarpet/contours/labelfont/_variant.py index 4fcadb543f..927cc58ca7 100644 --- a/plotly/validators/contourcarpet/contours/labelfont/_variant.py +++ b/plotly/validators/contourcarpet/contours/labelfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/contourcarpet/contours/labelfont/_weight.py b/plotly/validators/contourcarpet/contours/labelfont/_weight.py index 62bd65c01f..bba292d417 100644 --- a/plotly/validators/contourcarpet/contours/labelfont/_weight.py +++ b/plotly/validators/contourcarpet/contours/labelfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/contourcarpet/legendgrouptitle/__init__.py b/plotly/validators/contourcarpet/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/contourcarpet/legendgrouptitle/__init__.py +++ b/plotly/validators/contourcarpet/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/contourcarpet/legendgrouptitle/_font.py b/plotly/validators/contourcarpet/legendgrouptitle/_font.py index 97a78ffaa1..edde2eae64 100644 --- a/plotly/validators/contourcarpet/legendgrouptitle/_font.py +++ b/plotly/validators/contourcarpet/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/contourcarpet/legendgrouptitle/_text.py b/plotly/validators/contourcarpet/legendgrouptitle/_text.py index d7583625ed..e1980d0e0e 100644 --- a/plotly/validators/contourcarpet/legendgrouptitle/_text.py +++ b/plotly/validators/contourcarpet/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/legendgrouptitle/font/__init__.py b/plotly/validators/contourcarpet/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/contourcarpet/legendgrouptitle/font/__init__.py +++ b/plotly/validators/contourcarpet/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/contourcarpet/legendgrouptitle/font/_color.py b/plotly/validators/contourcarpet/legendgrouptitle/font/_color.py index c63b7692e5..13872b8080 100644 --- a/plotly/validators/contourcarpet/legendgrouptitle/font/_color.py +++ b/plotly/validators/contourcarpet/legendgrouptitle/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/legendgrouptitle/font/_family.py b/plotly/validators/contourcarpet/legendgrouptitle/font/_family.py index b3e79d2b08..d0f60a42e0 100644 --- a/plotly/validators/contourcarpet/legendgrouptitle/font/_family.py +++ b/plotly/validators/contourcarpet/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/contourcarpet/legendgrouptitle/font/_lineposition.py b/plotly/validators/contourcarpet/legendgrouptitle/font/_lineposition.py index 1fd1f9e1f7..682582692e 100644 --- a/plotly/validators/contourcarpet/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/contourcarpet/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/contourcarpet/legendgrouptitle/font/_shadow.py b/plotly/validators/contourcarpet/legendgrouptitle/font/_shadow.py index 1db76b29c7..e5c6f3381e 100644 --- a/plotly/validators/contourcarpet/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/contourcarpet/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/legendgrouptitle/font/_size.py b/plotly/validators/contourcarpet/legendgrouptitle/font/_size.py index ef03e97be5..74f3c4f513 100644 --- a/plotly/validators/contourcarpet/legendgrouptitle/font/_size.py +++ b/plotly/validators/contourcarpet/legendgrouptitle/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/contourcarpet/legendgrouptitle/font/_style.py b/plotly/validators/contourcarpet/legendgrouptitle/font/_style.py index c1879d06c8..288e61baa0 100644 --- a/plotly/validators/contourcarpet/legendgrouptitle/font/_style.py +++ b/plotly/validators/contourcarpet/legendgrouptitle/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/contourcarpet/legendgrouptitle/font/_textcase.py b/plotly/validators/contourcarpet/legendgrouptitle/font/_textcase.py index ceba88c475..9e5fce3936 100644 --- a/plotly/validators/contourcarpet/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/contourcarpet/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/contourcarpet/legendgrouptitle/font/_variant.py b/plotly/validators/contourcarpet/legendgrouptitle/font/_variant.py index b35caa60cd..649d7b04bc 100644 --- a/plotly/validators/contourcarpet/legendgrouptitle/font/_variant.py +++ b/plotly/validators/contourcarpet/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/contourcarpet/legendgrouptitle/font/_weight.py b/plotly/validators/contourcarpet/legendgrouptitle/font/_weight.py index d695aec4bd..42eaddbd48 100644 --- a/plotly/validators/contourcarpet/legendgrouptitle/font/_weight.py +++ b/plotly/validators/contourcarpet/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/contourcarpet/line/__init__.py b/plotly/validators/contourcarpet/line/__init__.py index cc28ee67fe..13c597bfd2 100644 --- a/plotly/validators/contourcarpet/line/__init__.py +++ b/plotly/validators/contourcarpet/line/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._width import WidthValidator - from ._smoothing import SmoothingValidator - from ._dash import DashValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._width.WidthValidator", + "._smoothing.SmoothingValidator", + "._dash.DashValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/contourcarpet/line/_color.py b/plotly/validators/contourcarpet/line/_color.py index 51c153b830..9f41146b6c 100644 --- a/plotly/validators/contourcarpet/line/_color.py +++ b/plotly/validators/contourcarpet/line/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style+colorbars"), **kwargs, ) diff --git a/plotly/validators/contourcarpet/line/_dash.py b/plotly/validators/contourcarpet/line/_dash.py index 35ce25b3d7..9e39c83f4c 100644 --- a/plotly/validators/contourcarpet/line/_dash.py +++ b/plotly/validators/contourcarpet/line/_dash.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/contourcarpet/line/_smoothing.py b/plotly/validators/contourcarpet/line/_smoothing.py index 8f24171fca..3e8768c696 100644 --- a/plotly/validators/contourcarpet/line/_smoothing.py +++ b/plotly/validators/contourcarpet/line/_smoothing.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SmoothingValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), max=kwargs.pop("max", 1.3), min=kwargs.pop("min", 0), diff --git a/plotly/validators/contourcarpet/line/_width.py b/plotly/validators/contourcarpet/line/_width.py index b54bb20a0e..7b1a0d051d 100644 --- a/plotly/validators/contourcarpet/line/_width.py +++ b/plotly/validators/contourcarpet/line/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style+colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/contourcarpet/stream/__init__.py b/plotly/validators/contourcarpet/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/contourcarpet/stream/__init__.py +++ b/plotly/validators/contourcarpet/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/contourcarpet/stream/_maxpoints.py b/plotly/validators/contourcarpet/stream/_maxpoints.py index 174cbbb3d4..75a5af03ba 100644 --- a/plotly/validators/contourcarpet/stream/_maxpoints.py +++ b/plotly/validators/contourcarpet/stream/_maxpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/contourcarpet/stream/_token.py b/plotly/validators/contourcarpet/stream/_token.py index 3d57ec4533..828e56c90b 100644 --- a/plotly/validators/contourcarpet/stream/_token.py +++ b/plotly/validators/contourcarpet/stream/_token.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/densitymap/__init__.py b/plotly/validators/densitymap/__init__.py index 20b2797e60..7ccb6f0042 100644 --- a/plotly/validators/densitymap/__init__.py +++ b/plotly/validators/densitymap/__init__.py @@ -1,107 +1,56 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zsrc import ZsrcValidator - from ._zmin import ZminValidator - from ._zmid import ZmidValidator - from ._zmax import ZmaxValidator - from ._zauto import ZautoValidator - from ._z import ZValidator - from ._visible import VisibleValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._textsrc import TextsrcValidator - from ._text import TextValidator - from ._subplot import SubplotValidator - from ._stream import StreamValidator - from ._showscale import ShowscaleValidator - from ._showlegend import ShowlegendValidator - from ._reversescale import ReversescaleValidator - from ._radiussrc import RadiussrcValidator - from ._radius import RadiusValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._lonsrc import LonsrcValidator - from ._lon import LonValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._latsrc import LatsrcValidator - from ._lat import LatValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._below import BelowValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/densitymap/_autocolorscale.py b/plotly/validators/densitymap/_autocolorscale.py index 261792b192..3f199cd0cd 100644 --- a/plotly/validators/densitymap/_autocolorscale.py +++ b/plotly/validators/densitymap/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/densitymap/_below.py b/plotly/validators/densitymap/_below.py index fdc875efe6..5f635391e7 100644 --- a/plotly/validators/densitymap/_below.py +++ b/plotly/validators/densitymap/_below.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BelowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/densitymap/_coloraxis.py b/plotly/validators/densitymap/_coloraxis.py index 65ea5618ec..34d9c26526 100644 --- a/plotly/validators/densitymap/_coloraxis.py +++ b/plotly/validators/densitymap/_coloraxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/densitymap/_colorbar.py b/plotly/validators/densitymap/_colorbar.py index 9ce1d184c0..78e9256f2b 100644 --- a/plotly/validators/densitymap/_colorbar.py +++ b/plotly/validators/densitymap/_colorbar.py @@ -1,278 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/densitymap/_colorscale.py b/plotly/validators/densitymap/_colorscale.py index de43b33c77..1a82d1c1c0 100644 --- a/plotly/validators/densitymap/_colorscale.py +++ b/plotly/validators/densitymap/_colorscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/densitymap/_customdata.py b/plotly/validators/densitymap/_customdata.py index 3888bc7f3d..485c395a1d 100644 --- a/plotly/validators/densitymap/_customdata.py +++ b/plotly/validators/densitymap/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/densitymap/_customdatasrc.py b/plotly/validators/densitymap/_customdatasrc.py index 226f1e56fe..6fcc5e5799 100644 --- a/plotly/validators/densitymap/_customdatasrc.py +++ b/plotly/validators/densitymap/_customdatasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymap/_hoverinfo.py b/plotly/validators/densitymap/_hoverinfo.py index cc43e269e6..71577d1965 100644 --- a/plotly/validators/densitymap/_hoverinfo.py +++ b/plotly/validators/densitymap/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/densitymap/_hoverinfosrc.py b/plotly/validators/densitymap/_hoverinfosrc.py index 7be3e5cc46..794a23ca00 100644 --- a/plotly/validators/densitymap/_hoverinfosrc.py +++ b/plotly/validators/densitymap/_hoverinfosrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymap/_hoverlabel.py b/plotly/validators/densitymap/_hoverlabel.py index 378d347c95..103d3fb24c 100644 --- a/plotly/validators/densitymap/_hoverlabel.py +++ b/plotly/validators/densitymap/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/densitymap/_hovertemplate.py b/plotly/validators/densitymap/_hovertemplate.py index 1b5faa6295..b6d8d66916 100644 --- a/plotly/validators/densitymap/_hovertemplate.py +++ b/plotly/validators/densitymap/_hovertemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/densitymap/_hovertemplatesrc.py b/plotly/validators/densitymap/_hovertemplatesrc.py index f7aa78f2de..7503d00e8b 100644 --- a/plotly/validators/densitymap/_hovertemplatesrc.py +++ b/plotly/validators/densitymap/_hovertemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymap/_hovertext.py b/plotly/validators/densitymap/_hovertext.py index db4426160e..0466ae2d31 100644 --- a/plotly/validators/densitymap/_hovertext.py +++ b/plotly/validators/densitymap/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/densitymap/_hovertextsrc.py b/plotly/validators/densitymap/_hovertextsrc.py index df48a20638..b2c2097e95 100644 --- a/plotly/validators/densitymap/_hovertextsrc.py +++ b/plotly/validators/densitymap/_hovertextsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymap/_ids.py b/plotly/validators/densitymap/_ids.py index a43157ae9d..f32d377735 100644 --- a/plotly/validators/densitymap/_ids.py +++ b/plotly/validators/densitymap/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/densitymap/_idssrc.py b/plotly/validators/densitymap/_idssrc.py index d0a668c4c8..653c4fcf6f 100644 --- a/plotly/validators/densitymap/_idssrc.py +++ b/plotly/validators/densitymap/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymap/_lat.py b/plotly/validators/densitymap/_lat.py index 661ecd8801..aa79af139f 100644 --- a/plotly/validators/densitymap/_lat.py +++ b/plotly/validators/densitymap/_lat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LatValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/densitymap/_latsrc.py b/plotly/validators/densitymap/_latsrc.py index c529788ce0..463ab46f9a 100644 --- a/plotly/validators/densitymap/_latsrc.py +++ b/plotly/validators/densitymap/_latsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LatsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymap/_legend.py b/plotly/validators/densitymap/_legend.py index af6a2fa50f..eee7fde86e 100644 --- a/plotly/validators/densitymap/_legend.py +++ b/plotly/validators/densitymap/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/densitymap/_legendgroup.py b/plotly/validators/densitymap/_legendgroup.py index 20ded0e45e..b2c22b9a9f 100644 --- a/plotly/validators/densitymap/_legendgroup.py +++ b/plotly/validators/densitymap/_legendgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/densitymap/_legendgrouptitle.py b/plotly/validators/densitymap/_legendgrouptitle.py index cf0424fed8..dd2e651ec5 100644 --- a/plotly/validators/densitymap/_legendgrouptitle.py +++ b/plotly/validators/densitymap/_legendgrouptitle.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/densitymap/_legendrank.py b/plotly/validators/densitymap/_legendrank.py index 49c77ac745..7ee1e5314c 100644 --- a/plotly/validators/densitymap/_legendrank.py +++ b/plotly/validators/densitymap/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/densitymap/_legendwidth.py b/plotly/validators/densitymap/_legendwidth.py index 7feb521cae..95de5c5f98 100644 --- a/plotly/validators/densitymap/_legendwidth.py +++ b/plotly/validators/densitymap/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/densitymap/_lon.py b/plotly/validators/densitymap/_lon.py index efe517c5e7..c59e118c86 100644 --- a/plotly/validators/densitymap/_lon.py +++ b/plotly/validators/densitymap/_lon.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LonValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/densitymap/_lonsrc.py b/plotly/validators/densitymap/_lonsrc.py index 11054034f3..1d73fcaf33 100644 --- a/plotly/validators/densitymap/_lonsrc.py +++ b/plotly/validators/densitymap/_lonsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LonsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymap/_meta.py b/plotly/validators/densitymap/_meta.py index dd3e68c27b..c00719acbd 100644 --- a/plotly/validators/densitymap/_meta.py +++ b/plotly/validators/densitymap/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/densitymap/_metasrc.py b/plotly/validators/densitymap/_metasrc.py index 9865267ced..fca19c2f0d 100644 --- a/plotly/validators/densitymap/_metasrc.py +++ b/plotly/validators/densitymap/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymap/_name.py b/plotly/validators/densitymap/_name.py index ef4f0cc26b..d78b62dbd3 100644 --- a/plotly/validators/densitymap/_name.py +++ b/plotly/validators/densitymap/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/densitymap/_opacity.py b/plotly/validators/densitymap/_opacity.py index 087e4dc1e8..cd524de6d3 100644 --- a/plotly/validators/densitymap/_opacity.py +++ b/plotly/validators/densitymap/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/densitymap/_radius.py b/plotly/validators/densitymap/_radius.py index 3813194af9..ea31d79afa 100644 --- a/plotly/validators/densitymap/_radius.py +++ b/plotly/validators/densitymap/_radius.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RadiusValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/densitymap/_radiussrc.py b/plotly/validators/densitymap/_radiussrc.py index 67d4a956fd..5f780e55aa 100644 --- a/plotly/validators/densitymap/_radiussrc.py +++ b/plotly/validators/densitymap/_radiussrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RadiussrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymap/_reversescale.py b/plotly/validators/densitymap/_reversescale.py index 0c19b8acc1..d597d3965a 100644 --- a/plotly/validators/densitymap/_reversescale.py +++ b/plotly/validators/densitymap/_reversescale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/densitymap/_showlegend.py b/plotly/validators/densitymap/_showlegend.py index 54e25741fe..aa9ba04033 100644 --- a/plotly/validators/densitymap/_showlegend.py +++ b/plotly/validators/densitymap/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/densitymap/_showscale.py b/plotly/validators/densitymap/_showscale.py index bc81449920..6d5d3aa1eb 100644 --- a/plotly/validators/densitymap/_showscale.py +++ b/plotly/validators/densitymap/_showscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/densitymap/_stream.py b/plotly/validators/densitymap/_stream.py index 8e15d6df3c..c22c269a49 100644 --- a/plotly/validators/densitymap/_stream.py +++ b/plotly/validators/densitymap/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/densitymap/_subplot.py b/plotly/validators/densitymap/_subplot.py index e07727d382..d766b38d97 100644 --- a/plotly/validators/densitymap/_subplot.py +++ b/plotly/validators/densitymap/_subplot.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SubplotValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "map"), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/densitymap/_text.py b/plotly/validators/densitymap/_text.py index d077706f19..146e71472f 100644 --- a/plotly/validators/densitymap/_text.py +++ b/plotly/validators/densitymap/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/densitymap/_textsrc.py b/plotly/validators/densitymap/_textsrc.py index 8360be2ef3..c7b04eeff4 100644 --- a/plotly/validators/densitymap/_textsrc.py +++ b/plotly/validators/densitymap/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymap/_uid.py b/plotly/validators/densitymap/_uid.py index 5838e2b906..3c51478fc4 100644 --- a/plotly/validators/densitymap/_uid.py +++ b/plotly/validators/densitymap/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/densitymap/_uirevision.py b/plotly/validators/densitymap/_uirevision.py index 09644b9f3b..76aee801d6 100644 --- a/plotly/validators/densitymap/_uirevision.py +++ b/plotly/validators/densitymap/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymap/_visible.py b/plotly/validators/densitymap/_visible.py index aa7b0baa41..ca0bb02a65 100644 --- a/plotly/validators/densitymap/_visible.py +++ b/plotly/validators/densitymap/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/densitymap/_z.py b/plotly/validators/densitymap/_z.py index d1425e8d8e..bbe108ce92 100644 --- a/plotly/validators/densitymap/_z.py +++ b/plotly/validators/densitymap/_z.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/densitymap/_zauto.py b/plotly/validators/densitymap/_zauto.py index 3e7aa4c368..21e10c9236 100644 --- a/plotly/validators/densitymap/_zauto.py +++ b/plotly/validators/densitymap/_zauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/densitymap/_zmax.py b/plotly/validators/densitymap/_zmax.py index 3a1845d114..aa1841afd6 100644 --- a/plotly/validators/densitymap/_zmax.py +++ b/plotly/validators/densitymap/_zmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"zauto": False}), **kwargs, diff --git a/plotly/validators/densitymap/_zmid.py b/plotly/validators/densitymap/_zmid.py index 03412b87ae..b6c507029b 100644 --- a/plotly/validators/densitymap/_zmid.py +++ b/plotly/validators/densitymap/_zmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/densitymap/_zmin.py b/plotly/validators/densitymap/_zmin.py index b693157220..d27b0726d2 100644 --- a/plotly/validators/densitymap/_zmin.py +++ b/plotly/validators/densitymap/_zmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"zauto": False}), **kwargs, diff --git a/plotly/validators/densitymap/_zsrc.py b/plotly/validators/densitymap/_zsrc.py index 9a5cd92830..8d0c20346d 100644 --- a/plotly/validators/densitymap/_zsrc.py +++ b/plotly/validators/densitymap/_zsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymap/colorbar/__init__.py b/plotly/validators/densitymap/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/densitymap/colorbar/__init__.py +++ b/plotly/validators/densitymap/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/densitymap/colorbar/_bgcolor.py b/plotly/validators/densitymap/colorbar/_bgcolor.py index 474ebf7e6f..64487b7cb9 100644 --- a/plotly/validators/densitymap/colorbar/_bgcolor.py +++ b/plotly/validators/densitymap/colorbar/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymap/colorbar/_bordercolor.py b/plotly/validators/densitymap/colorbar/_bordercolor.py index 6ed5052c28..86dce87070 100644 --- a/plotly/validators/densitymap/colorbar/_bordercolor.py +++ b/plotly/validators/densitymap/colorbar/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymap/colorbar/_borderwidth.py b/plotly/validators/densitymap/colorbar/_borderwidth.py index 7e7307e856..9386d96dec 100644 --- a/plotly/validators/densitymap/colorbar/_borderwidth.py +++ b/plotly/validators/densitymap/colorbar/_borderwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/densitymap/colorbar/_dtick.py b/plotly/validators/densitymap/colorbar/_dtick.py index 9a44573873..2ec01a3bbc 100644 --- a/plotly/validators/densitymap/colorbar/_dtick.py +++ b/plotly/validators/densitymap/colorbar/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/densitymap/colorbar/_exponentformat.py b/plotly/validators/densitymap/colorbar/_exponentformat.py index 33744f718d..b69036b9a1 100644 --- a/plotly/validators/densitymap/colorbar/_exponentformat.py +++ b/plotly/validators/densitymap/colorbar/_exponentformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/densitymap/colorbar/_labelalias.py b/plotly/validators/densitymap/colorbar/_labelalias.py index e9cdf09b75..f544d8a25b 100644 --- a/plotly/validators/densitymap/colorbar/_labelalias.py +++ b/plotly/validators/densitymap/colorbar/_labelalias.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymap/colorbar/_len.py b/plotly/validators/densitymap/colorbar/_len.py index 881d5181d3..69f4412a26 100644 --- a/plotly/validators/densitymap/colorbar/_len.py +++ b/plotly/validators/densitymap/colorbar/_len.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/densitymap/colorbar/_lenmode.py b/plotly/validators/densitymap/colorbar/_lenmode.py index 8ef47c6161..5aa684d90c 100644 --- a/plotly/validators/densitymap/colorbar/_lenmode.py +++ b/plotly/validators/densitymap/colorbar/_lenmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/densitymap/colorbar/_minexponent.py b/plotly/validators/densitymap/colorbar/_minexponent.py index c42b183174..8e7a115556 100644 --- a/plotly/validators/densitymap/colorbar/_minexponent.py +++ b/plotly/validators/densitymap/colorbar/_minexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/densitymap/colorbar/_nticks.py b/plotly/validators/densitymap/colorbar/_nticks.py index d57b3960b6..0a7c5f7251 100644 --- a/plotly/validators/densitymap/colorbar/_nticks.py +++ b/plotly/validators/densitymap/colorbar/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/densitymap/colorbar/_orientation.py b/plotly/validators/densitymap/colorbar/_orientation.py index 26a8e2bffc..9a00e8a28a 100644 --- a/plotly/validators/densitymap/colorbar/_orientation.py +++ b/plotly/validators/densitymap/colorbar/_orientation.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/densitymap/colorbar/_outlinecolor.py b/plotly/validators/densitymap/colorbar/_outlinecolor.py index 76c7824255..8752cffc4c 100644 --- a/plotly/validators/densitymap/colorbar/_outlinecolor.py +++ b/plotly/validators/densitymap/colorbar/_outlinecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymap/colorbar/_outlinewidth.py b/plotly/validators/densitymap/colorbar/_outlinewidth.py index 916e443630..9265942dee 100644 --- a/plotly/validators/densitymap/colorbar/_outlinewidth.py +++ b/plotly/validators/densitymap/colorbar/_outlinewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/densitymap/colorbar/_separatethousands.py b/plotly/validators/densitymap/colorbar/_separatethousands.py index 1b9f8889eb..1ae1929da1 100644 --- a/plotly/validators/densitymap/colorbar/_separatethousands.py +++ b/plotly/validators/densitymap/colorbar/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymap/colorbar/_showexponent.py b/plotly/validators/densitymap/colorbar/_showexponent.py index 67ed532dbb..f86abf6999 100644 --- a/plotly/validators/densitymap/colorbar/_showexponent.py +++ b/plotly/validators/densitymap/colorbar/_showexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/densitymap/colorbar/_showticklabels.py b/plotly/validators/densitymap/colorbar/_showticklabels.py index 37c40a7a02..c11f24cc65 100644 --- a/plotly/validators/densitymap/colorbar/_showticklabels.py +++ b/plotly/validators/densitymap/colorbar/_showticklabels.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymap/colorbar/_showtickprefix.py b/plotly/validators/densitymap/colorbar/_showtickprefix.py index 487e4e7c8f..687a5499bd 100644 --- a/plotly/validators/densitymap/colorbar/_showtickprefix.py +++ b/plotly/validators/densitymap/colorbar/_showtickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/densitymap/colorbar/_showticksuffix.py b/plotly/validators/densitymap/colorbar/_showticksuffix.py index e53b962bc9..20b6705314 100644 --- a/plotly/validators/densitymap/colorbar/_showticksuffix.py +++ b/plotly/validators/densitymap/colorbar/_showticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/densitymap/colorbar/_thickness.py b/plotly/validators/densitymap/colorbar/_thickness.py index c2afb93dfd..1ba563671c 100644 --- a/plotly/validators/densitymap/colorbar/_thickness.py +++ b/plotly/validators/densitymap/colorbar/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/densitymap/colorbar/_thicknessmode.py b/plotly/validators/densitymap/colorbar/_thicknessmode.py index 1ab2bd4cba..cf6f252c3b 100644 --- a/plotly/validators/densitymap/colorbar/_thicknessmode.py +++ b/plotly/validators/densitymap/colorbar/_thicknessmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/densitymap/colorbar/_tick0.py b/plotly/validators/densitymap/colorbar/_tick0.py index c3344c9a98..24e44fb11c 100644 --- a/plotly/validators/densitymap/colorbar/_tick0.py +++ b/plotly/validators/densitymap/colorbar/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/densitymap/colorbar/_tickangle.py b/plotly/validators/densitymap/colorbar/_tickangle.py index 24be0c8fed..71c84a42fd 100644 --- a/plotly/validators/densitymap/colorbar/_tickangle.py +++ b/plotly/validators/densitymap/colorbar/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymap/colorbar/_tickcolor.py b/plotly/validators/densitymap/colorbar/_tickcolor.py index 299312b593..c0c6ad3e99 100644 --- a/plotly/validators/densitymap/colorbar/_tickcolor.py +++ b/plotly/validators/densitymap/colorbar/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymap/colorbar/_tickfont.py b/plotly/validators/densitymap/colorbar/_tickfont.py index b3814429fb..b2f211b1e3 100644 --- a/plotly/validators/densitymap/colorbar/_tickfont.py +++ b/plotly/validators/densitymap/colorbar/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/densitymap/colorbar/_tickformat.py b/plotly/validators/densitymap/colorbar/_tickformat.py index 8f6468d175..b7365a0436 100644 --- a/plotly/validators/densitymap/colorbar/_tickformat.py +++ b/plotly/validators/densitymap/colorbar/_tickformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymap/colorbar/_tickformatstopdefaults.py b/plotly/validators/densitymap/colorbar/_tickformatstopdefaults.py index 9f15487cc2..2970733548 100644 --- a/plotly/validators/densitymap/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/densitymap/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/densitymap/colorbar/_tickformatstops.py b/plotly/validators/densitymap/colorbar/_tickformatstops.py index 246540bd7a..8a1933f3bc 100644 --- a/plotly/validators/densitymap/colorbar/_tickformatstops.py +++ b/plotly/validators/densitymap/colorbar/_tickformatstops.py @@ -1,50 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/densitymap/colorbar/_ticklabeloverflow.py b/plotly/validators/densitymap/colorbar/_ticklabeloverflow.py index 8343e947d6..4e2cd5d778 100644 --- a/plotly/validators/densitymap/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/densitymap/colorbar/_ticklabeloverflow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/densitymap/colorbar/_ticklabelposition.py b/plotly/validators/densitymap/colorbar/_ticklabelposition.py index 4dafbd4dd1..5093194c0a 100644 --- a/plotly/validators/densitymap/colorbar/_ticklabelposition.py +++ b/plotly/validators/densitymap/colorbar/_ticklabelposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/densitymap/colorbar/_ticklabelstep.py b/plotly/validators/densitymap/colorbar/_ticklabelstep.py index bbc9831a01..0e065b0a39 100644 --- a/plotly/validators/densitymap/colorbar/_ticklabelstep.py +++ b/plotly/validators/densitymap/colorbar/_ticklabelstep.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/densitymap/colorbar/_ticklen.py b/plotly/validators/densitymap/colorbar/_ticklen.py index 788f23f715..f3a75260a0 100644 --- a/plotly/validators/densitymap/colorbar/_ticklen.py +++ b/plotly/validators/densitymap/colorbar/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/densitymap/colorbar/_tickmode.py b/plotly/validators/densitymap/colorbar/_tickmode.py index c367bdfd41..53390e1cad 100644 --- a/plotly/validators/densitymap/colorbar/_tickmode.py +++ b/plotly/validators/densitymap/colorbar/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/densitymap/colorbar/_tickprefix.py b/plotly/validators/densitymap/colorbar/_tickprefix.py index ec26278d17..df2b3e28ad 100644 --- a/plotly/validators/densitymap/colorbar/_tickprefix.py +++ b/plotly/validators/densitymap/colorbar/_tickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymap/colorbar/_ticks.py b/plotly/validators/densitymap/colorbar/_ticks.py index 5285b1d292..9cdab010f3 100644 --- a/plotly/validators/densitymap/colorbar/_ticks.py +++ b/plotly/validators/densitymap/colorbar/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/densitymap/colorbar/_ticksuffix.py b/plotly/validators/densitymap/colorbar/_ticksuffix.py index 0b0c4e7526..cddedb6453 100644 --- a/plotly/validators/densitymap/colorbar/_ticksuffix.py +++ b/plotly/validators/densitymap/colorbar/_ticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymap/colorbar/_ticktext.py b/plotly/validators/densitymap/colorbar/_ticktext.py index f0aeb9a37c..1740dc0ba9 100644 --- a/plotly/validators/densitymap/colorbar/_ticktext.py +++ b/plotly/validators/densitymap/colorbar/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymap/colorbar/_ticktextsrc.py b/plotly/validators/densitymap/colorbar/_ticktextsrc.py index c9de006369..85d956c5a2 100644 --- a/plotly/validators/densitymap/colorbar/_ticktextsrc.py +++ b/plotly/validators/densitymap/colorbar/_ticktextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymap/colorbar/_tickvals.py b/plotly/validators/densitymap/colorbar/_tickvals.py index f97c6b748d..28bc44c602 100644 --- a/plotly/validators/densitymap/colorbar/_tickvals.py +++ b/plotly/validators/densitymap/colorbar/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymap/colorbar/_tickvalssrc.py b/plotly/validators/densitymap/colorbar/_tickvalssrc.py index 8fa1374b29..4168e9681a 100644 --- a/plotly/validators/densitymap/colorbar/_tickvalssrc.py +++ b/plotly/validators/densitymap/colorbar/_tickvalssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymap/colorbar/_tickwidth.py b/plotly/validators/densitymap/colorbar/_tickwidth.py index 7e6611586a..6691cf4cce 100644 --- a/plotly/validators/densitymap/colorbar/_tickwidth.py +++ b/plotly/validators/densitymap/colorbar/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/densitymap/colorbar/_title.py b/plotly/validators/densitymap/colorbar/_title.py index eced743943..6c8941c460 100644 --- a/plotly/validators/densitymap/colorbar/_title.py +++ b/plotly/validators/densitymap/colorbar/_title.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/densitymap/colorbar/_x.py b/plotly/validators/densitymap/colorbar/_x.py index 00862d02e3..54b3e8ecb2 100644 --- a/plotly/validators/densitymap/colorbar/_x.py +++ b/plotly/validators/densitymap/colorbar/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymap/colorbar/_xanchor.py b/plotly/validators/densitymap/colorbar/_xanchor.py index edadd67920..6719d2628e 100644 --- a/plotly/validators/densitymap/colorbar/_xanchor.py +++ b/plotly/validators/densitymap/colorbar/_xanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/densitymap/colorbar/_xpad.py b/plotly/validators/densitymap/colorbar/_xpad.py index 7246fbc49e..b0504715a5 100644 --- a/plotly/validators/densitymap/colorbar/_xpad.py +++ b/plotly/validators/densitymap/colorbar/_xpad.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/densitymap/colorbar/_xref.py b/plotly/validators/densitymap/colorbar/_xref.py index 6c6ff5d826..7bcd374fe9 100644 --- a/plotly/validators/densitymap/colorbar/_xref.py +++ b/plotly/validators/densitymap/colorbar/_xref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/densitymap/colorbar/_y.py b/plotly/validators/densitymap/colorbar/_y.py index 6572920295..50826c4124 100644 --- a/plotly/validators/densitymap/colorbar/_y.py +++ b/plotly/validators/densitymap/colorbar/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymap/colorbar/_yanchor.py b/plotly/validators/densitymap/colorbar/_yanchor.py index 9699046c25..95a4820b55 100644 --- a/plotly/validators/densitymap/colorbar/_yanchor.py +++ b/plotly/validators/densitymap/colorbar/_yanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/densitymap/colorbar/_ypad.py b/plotly/validators/densitymap/colorbar/_ypad.py index 6adf689286..8b9143d70a 100644 --- a/plotly/validators/densitymap/colorbar/_ypad.py +++ b/plotly/validators/densitymap/colorbar/_ypad.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/densitymap/colorbar/_yref.py b/plotly/validators/densitymap/colorbar/_yref.py index 32367f3943..edaa7cb53d 100644 --- a/plotly/validators/densitymap/colorbar/_yref.py +++ b/plotly/validators/densitymap/colorbar/_yref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/densitymap/colorbar/tickfont/__init__.py b/plotly/validators/densitymap/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/densitymap/colorbar/tickfont/__init__.py +++ b/plotly/validators/densitymap/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/densitymap/colorbar/tickfont/_color.py b/plotly/validators/densitymap/colorbar/tickfont/_color.py index d61f0e619b..5fc1c826eb 100644 --- a/plotly/validators/densitymap/colorbar/tickfont/_color.py +++ b/plotly/validators/densitymap/colorbar/tickfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymap/colorbar/tickfont/_family.py b/plotly/validators/densitymap/colorbar/tickfont/_family.py index bcc40f7e99..ec7c9f77c5 100644 --- a/plotly/validators/densitymap/colorbar/tickfont/_family.py +++ b/plotly/validators/densitymap/colorbar/tickfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/densitymap/colorbar/tickfont/_lineposition.py b/plotly/validators/densitymap/colorbar/tickfont/_lineposition.py index b50c31850c..2c47bc37b2 100644 --- a/plotly/validators/densitymap/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/densitymap/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/densitymap/colorbar/tickfont/_shadow.py b/plotly/validators/densitymap/colorbar/tickfont/_shadow.py index 816b4c10d3..d945f2c0b4 100644 --- a/plotly/validators/densitymap/colorbar/tickfont/_shadow.py +++ b/plotly/validators/densitymap/colorbar/tickfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymap/colorbar/tickfont/_size.py b/plotly/validators/densitymap/colorbar/tickfont/_size.py index 0c52100daa..cee6486044 100644 --- a/plotly/validators/densitymap/colorbar/tickfont/_size.py +++ b/plotly/validators/densitymap/colorbar/tickfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/densitymap/colorbar/tickfont/_style.py b/plotly/validators/densitymap/colorbar/tickfont/_style.py index 4b5b2e5e0c..8c84e79bc9 100644 --- a/plotly/validators/densitymap/colorbar/tickfont/_style.py +++ b/plotly/validators/densitymap/colorbar/tickfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/densitymap/colorbar/tickfont/_textcase.py b/plotly/validators/densitymap/colorbar/tickfont/_textcase.py index b117fd97e3..6dbd34641f 100644 --- a/plotly/validators/densitymap/colorbar/tickfont/_textcase.py +++ b/plotly/validators/densitymap/colorbar/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/densitymap/colorbar/tickfont/_variant.py b/plotly/validators/densitymap/colorbar/tickfont/_variant.py index 43d5429a7b..e8826e4869 100644 --- a/plotly/validators/densitymap/colorbar/tickfont/_variant.py +++ b/plotly/validators/densitymap/colorbar/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/densitymap/colorbar/tickfont/_weight.py b/plotly/validators/densitymap/colorbar/tickfont/_weight.py index bc52448f2e..94e195c8f9 100644 --- a/plotly/validators/densitymap/colorbar/tickfont/_weight.py +++ b/plotly/validators/densitymap/colorbar/tickfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/densitymap/colorbar/tickformatstop/__init__.py b/plotly/validators/densitymap/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/densitymap/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/densitymap/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/densitymap/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/densitymap/colorbar/tickformatstop/_dtickrange.py index c9e4d6fa50..d9fc8ad53b 100644 --- a/plotly/validators/densitymap/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/densitymap/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( "items", diff --git a/plotly/validators/densitymap/colorbar/tickformatstop/_enabled.py b/plotly/validators/densitymap/colorbar/tickformatstop/_enabled.py index fe621aaec3..6c634b96de 100644 --- a/plotly/validators/densitymap/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/densitymap/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymap/colorbar/tickformatstop/_name.py b/plotly/validators/densitymap/colorbar/tickformatstop/_name.py index 14dce8d1a9..fb6264dc47 100644 --- a/plotly/validators/densitymap/colorbar/tickformatstop/_name.py +++ b/plotly/validators/densitymap/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymap/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/densitymap/colorbar/tickformatstop/_templateitemname.py index 5f4d3feea1..1f3aa206b4 100644 --- a/plotly/validators/densitymap/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/densitymap/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymap/colorbar/tickformatstop/_value.py b/plotly/validators/densitymap/colorbar/tickformatstop/_value.py index c91b6ecfcc..8b70ab4cf4 100644 --- a/plotly/validators/densitymap/colorbar/tickformatstop/_value.py +++ b/plotly/validators/densitymap/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymap/colorbar/title/__init__.py b/plotly/validators/densitymap/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/densitymap/colorbar/title/__init__.py +++ b/plotly/validators/densitymap/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/densitymap/colorbar/title/_font.py b/plotly/validators/densitymap/colorbar/title/_font.py index 9cde88d8c4..496e5e2bf6 100644 --- a/plotly/validators/densitymap/colorbar/title/_font.py +++ b/plotly/validators/densitymap/colorbar/title/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/densitymap/colorbar/title/_side.py b/plotly/validators/densitymap/colorbar/title/_side.py index 73df2d1a16..4b2c370b4e 100644 --- a/plotly/validators/densitymap/colorbar/title/_side.py +++ b/plotly/validators/densitymap/colorbar/title/_side.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/densitymap/colorbar/title/_text.py b/plotly/validators/densitymap/colorbar/title/_text.py index 753d2f41eb..6e29d7143f 100644 --- a/plotly/validators/densitymap/colorbar/title/_text.py +++ b/plotly/validators/densitymap/colorbar/title/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymap/colorbar/title/font/__init__.py b/plotly/validators/densitymap/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/densitymap/colorbar/title/font/__init__.py +++ b/plotly/validators/densitymap/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/densitymap/colorbar/title/font/_color.py b/plotly/validators/densitymap/colorbar/title/font/_color.py index 4afb7138fe..84bf0ea844 100644 --- a/plotly/validators/densitymap/colorbar/title/font/_color.py +++ b/plotly/validators/densitymap/colorbar/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymap/colorbar/title/font/_family.py b/plotly/validators/densitymap/colorbar/title/font/_family.py index 9251fc4f03..e1ad77c8b8 100644 --- a/plotly/validators/densitymap/colorbar/title/font/_family.py +++ b/plotly/validators/densitymap/colorbar/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/densitymap/colorbar/title/font/_lineposition.py b/plotly/validators/densitymap/colorbar/title/font/_lineposition.py index ea261c1b14..662d335787 100644 --- a/plotly/validators/densitymap/colorbar/title/font/_lineposition.py +++ b/plotly/validators/densitymap/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/densitymap/colorbar/title/font/_shadow.py b/plotly/validators/densitymap/colorbar/title/font/_shadow.py index 546dc2c25a..1d3919c4cd 100644 --- a/plotly/validators/densitymap/colorbar/title/font/_shadow.py +++ b/plotly/validators/densitymap/colorbar/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymap/colorbar/title/font/_size.py b/plotly/validators/densitymap/colorbar/title/font/_size.py index f35c3053a9..6e2078ccd2 100644 --- a/plotly/validators/densitymap/colorbar/title/font/_size.py +++ b/plotly/validators/densitymap/colorbar/title/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/densitymap/colorbar/title/font/_style.py b/plotly/validators/densitymap/colorbar/title/font/_style.py index aa7ede87d0..e09c9e5a0d 100644 --- a/plotly/validators/densitymap/colorbar/title/font/_style.py +++ b/plotly/validators/densitymap/colorbar/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/densitymap/colorbar/title/font/_textcase.py b/plotly/validators/densitymap/colorbar/title/font/_textcase.py index 84ac4e7be3..c810f61622 100644 --- a/plotly/validators/densitymap/colorbar/title/font/_textcase.py +++ b/plotly/validators/densitymap/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/densitymap/colorbar/title/font/_variant.py b/plotly/validators/densitymap/colorbar/title/font/_variant.py index 2241dc14f5..01b1c64d57 100644 --- a/plotly/validators/densitymap/colorbar/title/font/_variant.py +++ b/plotly/validators/densitymap/colorbar/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/densitymap/colorbar/title/font/_weight.py b/plotly/validators/densitymap/colorbar/title/font/_weight.py index a3d3468060..bc7c0008e3 100644 --- a/plotly/validators/densitymap/colorbar/title/font/_weight.py +++ b/plotly/validators/densitymap/colorbar/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/densitymap/hoverlabel/__init__.py b/plotly/validators/densitymap/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/densitymap/hoverlabel/__init__.py +++ b/plotly/validators/densitymap/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/densitymap/hoverlabel/_align.py b/plotly/validators/densitymap/hoverlabel/_align.py index 359e176743..b4476587dd 100644 --- a/plotly/validators/densitymap/hoverlabel/_align.py +++ b/plotly/validators/densitymap/hoverlabel/_align.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/densitymap/hoverlabel/_alignsrc.py b/plotly/validators/densitymap/hoverlabel/_alignsrc.py index aa540fe66e..5c0aca302b 100644 --- a/plotly/validators/densitymap/hoverlabel/_alignsrc.py +++ b/plotly/validators/densitymap/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymap/hoverlabel/_bgcolor.py b/plotly/validators/densitymap/hoverlabel/_bgcolor.py index 01e692e74b..4ecf471b9b 100644 --- a/plotly/validators/densitymap/hoverlabel/_bgcolor.py +++ b/plotly/validators/densitymap/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/densitymap/hoverlabel/_bgcolorsrc.py b/plotly/validators/densitymap/hoverlabel/_bgcolorsrc.py index 3fc15c1053..d29799d7b0 100644 --- a/plotly/validators/densitymap/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/densitymap/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymap/hoverlabel/_bordercolor.py b/plotly/validators/densitymap/hoverlabel/_bordercolor.py index 0e74815829..94dd3c42b7 100644 --- a/plotly/validators/densitymap/hoverlabel/_bordercolor.py +++ b/plotly/validators/densitymap/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/densitymap/hoverlabel/_bordercolorsrc.py b/plotly/validators/densitymap/hoverlabel/_bordercolorsrc.py index 3a9b87e42b..ce614be348 100644 --- a/plotly/validators/densitymap/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/densitymap/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymap/hoverlabel/_font.py b/plotly/validators/densitymap/hoverlabel/_font.py index 690ffd3388..22ee07fbef 100644 --- a/plotly/validators/densitymap/hoverlabel/_font.py +++ b/plotly/validators/densitymap/hoverlabel/_font.py @@ -1,87 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/densitymap/hoverlabel/_namelength.py b/plotly/validators/densitymap/hoverlabel/_namelength.py index 3986a3c52f..4aeb4bc55b 100644 --- a/plotly/validators/densitymap/hoverlabel/_namelength.py +++ b/plotly/validators/densitymap/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/densitymap/hoverlabel/_namelengthsrc.py b/plotly/validators/densitymap/hoverlabel/_namelengthsrc.py index 28e48464e3..ad19e3ba6b 100644 --- a/plotly/validators/densitymap/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/densitymap/hoverlabel/_namelengthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymap/hoverlabel/font/__init__.py b/plotly/validators/densitymap/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/densitymap/hoverlabel/font/__init__.py +++ b/plotly/validators/densitymap/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/densitymap/hoverlabel/font/_color.py b/plotly/validators/densitymap/hoverlabel/font/_color.py index 7ec0b1a0a9..3aa64fb0c2 100644 --- a/plotly/validators/densitymap/hoverlabel/font/_color.py +++ b/plotly/validators/densitymap/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/densitymap/hoverlabel/font/_colorsrc.py b/plotly/validators/densitymap/hoverlabel/font/_colorsrc.py index f91f30a5c6..3cbc96e727 100644 --- a/plotly/validators/densitymap/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/densitymap/hoverlabel/font/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymap/hoverlabel/font/_family.py b/plotly/validators/densitymap/hoverlabel/font/_family.py index 778fe05497..bf1c9ac306 100644 --- a/plotly/validators/densitymap/hoverlabel/font/_family.py +++ b/plotly/validators/densitymap/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/densitymap/hoverlabel/font/_familysrc.py b/plotly/validators/densitymap/hoverlabel/font/_familysrc.py index e75bacb3de..40843c30f1 100644 --- a/plotly/validators/densitymap/hoverlabel/font/_familysrc.py +++ b/plotly/validators/densitymap/hoverlabel/font/_familysrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymap/hoverlabel/font/_lineposition.py b/plotly/validators/densitymap/hoverlabel/font/_lineposition.py index ea43d328fe..3783cbc01e 100644 --- a/plotly/validators/densitymap/hoverlabel/font/_lineposition.py +++ b/plotly/validators/densitymap/hoverlabel/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/densitymap/hoverlabel/font/_linepositionsrc.py b/plotly/validators/densitymap/hoverlabel/font/_linepositionsrc.py index fa4ce56101..cf4ad6fbdd 100644 --- a/plotly/validators/densitymap/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/densitymap/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymap/hoverlabel/font/_shadow.py b/plotly/validators/densitymap/hoverlabel/font/_shadow.py index d640ac3414..df86d6f80e 100644 --- a/plotly/validators/densitymap/hoverlabel/font/_shadow.py +++ b/plotly/validators/densitymap/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/densitymap/hoverlabel/font/_shadowsrc.py b/plotly/validators/densitymap/hoverlabel/font/_shadowsrc.py index 62bdb504ee..2f0636ff44 100644 --- a/plotly/validators/densitymap/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/densitymap/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymap/hoverlabel/font/_size.py b/plotly/validators/densitymap/hoverlabel/font/_size.py index 9c53691c1b..0df4e479c5 100644 --- a/plotly/validators/densitymap/hoverlabel/font/_size.py +++ b/plotly/validators/densitymap/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/densitymap/hoverlabel/font/_sizesrc.py b/plotly/validators/densitymap/hoverlabel/font/_sizesrc.py index 6f223e4af5..a9a1579cac 100644 --- a/plotly/validators/densitymap/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/densitymap/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymap/hoverlabel/font/_style.py b/plotly/validators/densitymap/hoverlabel/font/_style.py index 35d781b48f..2e93cfcc00 100644 --- a/plotly/validators/densitymap/hoverlabel/font/_style.py +++ b/plotly/validators/densitymap/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/densitymap/hoverlabel/font/_stylesrc.py b/plotly/validators/densitymap/hoverlabel/font/_stylesrc.py index 4393cf9db1..b2af37f6db 100644 --- a/plotly/validators/densitymap/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/densitymap/hoverlabel/font/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymap/hoverlabel/font/_textcase.py b/plotly/validators/densitymap/hoverlabel/font/_textcase.py index 353e46d6a0..2ea9eec13e 100644 --- a/plotly/validators/densitymap/hoverlabel/font/_textcase.py +++ b/plotly/validators/densitymap/hoverlabel/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/densitymap/hoverlabel/font/_textcasesrc.py b/plotly/validators/densitymap/hoverlabel/font/_textcasesrc.py index df358681b2..f2c7217776 100644 --- a/plotly/validators/densitymap/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/densitymap/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymap/hoverlabel/font/_variant.py b/plotly/validators/densitymap/hoverlabel/font/_variant.py index 05d9e4c1dc..e7b8e12905 100644 --- a/plotly/validators/densitymap/hoverlabel/font/_variant.py +++ b/plotly/validators/densitymap/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/densitymap/hoverlabel/font/_variantsrc.py b/plotly/validators/densitymap/hoverlabel/font/_variantsrc.py index 91cc995be3..8d4ffea1df 100644 --- a/plotly/validators/densitymap/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/densitymap/hoverlabel/font/_variantsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymap/hoverlabel/font/_weight.py b/plotly/validators/densitymap/hoverlabel/font/_weight.py index 2be30a42cc..f3be32e2fb 100644 --- a/plotly/validators/densitymap/hoverlabel/font/_weight.py +++ b/plotly/validators/densitymap/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/densitymap/hoverlabel/font/_weightsrc.py b/plotly/validators/densitymap/hoverlabel/font/_weightsrc.py index 7ca2aac513..7da329437e 100644 --- a/plotly/validators/densitymap/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/densitymap/hoverlabel/font/_weightsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymap/legendgrouptitle/__init__.py b/plotly/validators/densitymap/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/densitymap/legendgrouptitle/__init__.py +++ b/plotly/validators/densitymap/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/densitymap/legendgrouptitle/_font.py b/plotly/validators/densitymap/legendgrouptitle/_font.py index 5c7f7dcbbe..1220e60dff 100644 --- a/plotly/validators/densitymap/legendgrouptitle/_font.py +++ b/plotly/validators/densitymap/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/densitymap/legendgrouptitle/_text.py b/plotly/validators/densitymap/legendgrouptitle/_text.py index 4273c02211..268e6cdb0f 100644 --- a/plotly/validators/densitymap/legendgrouptitle/_text.py +++ b/plotly/validators/densitymap/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/densitymap/legendgrouptitle/font/__init__.py b/plotly/validators/densitymap/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/densitymap/legendgrouptitle/font/__init__.py +++ b/plotly/validators/densitymap/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/densitymap/legendgrouptitle/font/_color.py b/plotly/validators/densitymap/legendgrouptitle/font/_color.py index 0cc306f484..c9a038ee62 100644 --- a/plotly/validators/densitymap/legendgrouptitle/font/_color.py +++ b/plotly/validators/densitymap/legendgrouptitle/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/densitymap/legendgrouptitle/font/_family.py b/plotly/validators/densitymap/legendgrouptitle/font/_family.py index 1802968fd6..f8ac233165 100644 --- a/plotly/validators/densitymap/legendgrouptitle/font/_family.py +++ b/plotly/validators/densitymap/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/densitymap/legendgrouptitle/font/_lineposition.py b/plotly/validators/densitymap/legendgrouptitle/font/_lineposition.py index 79f1dae8f3..07a52010dc 100644 --- a/plotly/validators/densitymap/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/densitymap/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/densitymap/legendgrouptitle/font/_shadow.py b/plotly/validators/densitymap/legendgrouptitle/font/_shadow.py index 52b6e4823f..522c1b48d2 100644 --- a/plotly/validators/densitymap/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/densitymap/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/densitymap/legendgrouptitle/font/_size.py b/plotly/validators/densitymap/legendgrouptitle/font/_size.py index 8af2043b59..b19adb8984 100644 --- a/plotly/validators/densitymap/legendgrouptitle/font/_size.py +++ b/plotly/validators/densitymap/legendgrouptitle/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/densitymap/legendgrouptitle/font/_style.py b/plotly/validators/densitymap/legendgrouptitle/font/_style.py index 5501d3f784..1ae0fc9e8e 100644 --- a/plotly/validators/densitymap/legendgrouptitle/font/_style.py +++ b/plotly/validators/densitymap/legendgrouptitle/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/densitymap/legendgrouptitle/font/_textcase.py b/plotly/validators/densitymap/legendgrouptitle/font/_textcase.py index 07ae804b72..84a655d044 100644 --- a/plotly/validators/densitymap/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/densitymap/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/densitymap/legendgrouptitle/font/_variant.py b/plotly/validators/densitymap/legendgrouptitle/font/_variant.py index 413ca16990..9b6e18d704 100644 --- a/plotly/validators/densitymap/legendgrouptitle/font/_variant.py +++ b/plotly/validators/densitymap/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/densitymap/legendgrouptitle/font/_weight.py b/plotly/validators/densitymap/legendgrouptitle/font/_weight.py index d2d0117204..1dc67eaf9e 100644 --- a/plotly/validators/densitymap/legendgrouptitle/font/_weight.py +++ b/plotly/validators/densitymap/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/densitymap/stream/__init__.py b/plotly/validators/densitymap/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/densitymap/stream/__init__.py +++ b/plotly/validators/densitymap/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/densitymap/stream/_maxpoints.py b/plotly/validators/densitymap/stream/_maxpoints.py index d7526879af..5d32d77c2a 100644 --- a/plotly/validators/densitymap/stream/_maxpoints.py +++ b/plotly/validators/densitymap/stream/_maxpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/densitymap/stream/_token.py b/plotly/validators/densitymap/stream/_token.py index 4563462b95..09408ad3d7 100644 --- a/plotly/validators/densitymap/stream/_token.py +++ b/plotly/validators/densitymap/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/densitymapbox/__init__.py b/plotly/validators/densitymapbox/__init__.py index 20b2797e60..7ccb6f0042 100644 --- a/plotly/validators/densitymapbox/__init__.py +++ b/plotly/validators/densitymapbox/__init__.py @@ -1,107 +1,56 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zsrc import ZsrcValidator - from ._zmin import ZminValidator - from ._zmid import ZmidValidator - from ._zmax import ZmaxValidator - from ._zauto import ZautoValidator - from ._z import ZValidator - from ._visible import VisibleValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._textsrc import TextsrcValidator - from ._text import TextValidator - from ._subplot import SubplotValidator - from ._stream import StreamValidator - from ._showscale import ShowscaleValidator - from ._showlegend import ShowlegendValidator - from ._reversescale import ReversescaleValidator - from ._radiussrc import RadiussrcValidator - from ._radius import RadiusValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._lonsrc import LonsrcValidator - from ._lon import LonValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._latsrc import LatsrcValidator - from ._lat import LatValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._below import BelowValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/densitymapbox/_autocolorscale.py b/plotly/validators/densitymapbox/_autocolorscale.py index cc0f8db697..c6492b0f4a 100644 --- a/plotly/validators/densitymapbox/_autocolorscale.py +++ b/plotly/validators/densitymapbox/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/densitymapbox/_below.py b/plotly/validators/densitymapbox/_below.py index 7dd09f3fb6..43d17c3f3f 100644 --- a/plotly/validators/densitymapbox/_below.py +++ b/plotly/validators/densitymapbox/_below.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BelowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/_coloraxis.py b/plotly/validators/densitymapbox/_coloraxis.py index 73dfea234f..15b4e8189e 100644 --- a/plotly/validators/densitymapbox/_coloraxis.py +++ b/plotly/validators/densitymapbox/_coloraxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/densitymapbox/_colorbar.py b/plotly/validators/densitymapbox/_colorbar.py index 7bbd65717b..f3d25c7303 100644 --- a/plotly/validators/densitymapbox/_colorbar.py +++ b/plotly/validators/densitymapbox/_colorbar.py @@ -1,279 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/densitymapbox/_colorscale.py b/plotly/validators/densitymapbox/_colorscale.py index 5d7535f55d..b54a8edcdd 100644 --- a/plotly/validators/densitymapbox/_colorscale.py +++ b/plotly/validators/densitymapbox/_colorscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/densitymapbox/_customdata.py b/plotly/validators/densitymapbox/_customdata.py index 274fc49055..a6bf23e939 100644 --- a/plotly/validators/densitymapbox/_customdata.py +++ b/plotly/validators/densitymapbox/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/_customdatasrc.py b/plotly/validators/densitymapbox/_customdatasrc.py index 61393d074b..478a86c9af 100644 --- a/plotly/validators/densitymapbox/_customdatasrc.py +++ b/plotly/validators/densitymapbox/_customdatasrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/_hoverinfo.py b/plotly/validators/densitymapbox/_hoverinfo.py index 950a686ff0..ff146955f3 100644 --- a/plotly/validators/densitymapbox/_hoverinfo.py +++ b/plotly/validators/densitymapbox/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/densitymapbox/_hoverinfosrc.py b/plotly/validators/densitymapbox/_hoverinfosrc.py index 2ec6a83a2f..ae420ff09c 100644 --- a/plotly/validators/densitymapbox/_hoverinfosrc.py +++ b/plotly/validators/densitymapbox/_hoverinfosrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/_hoverlabel.py b/plotly/validators/densitymapbox/_hoverlabel.py index 80a44a2d72..1f195ad3f1 100644 --- a/plotly/validators/densitymapbox/_hoverlabel.py +++ b/plotly/validators/densitymapbox/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/densitymapbox/_hovertemplate.py b/plotly/validators/densitymapbox/_hovertemplate.py index 670a727a94..37159f7692 100644 --- a/plotly/validators/densitymapbox/_hovertemplate.py +++ b/plotly/validators/densitymapbox/_hovertemplate.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/densitymapbox/_hovertemplatesrc.py b/plotly/validators/densitymapbox/_hovertemplatesrc.py index 7319e1fbd6..34c7f60874 100644 --- a/plotly/validators/densitymapbox/_hovertemplatesrc.py +++ b/plotly/validators/densitymapbox/_hovertemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/_hovertext.py b/plotly/validators/densitymapbox/_hovertext.py index 94c85df884..4e200ca922 100644 --- a/plotly/validators/densitymapbox/_hovertext.py +++ b/plotly/validators/densitymapbox/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/densitymapbox/_hovertextsrc.py b/plotly/validators/densitymapbox/_hovertextsrc.py index f20201a7c8..1965381999 100644 --- a/plotly/validators/densitymapbox/_hovertextsrc.py +++ b/plotly/validators/densitymapbox/_hovertextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/_ids.py b/plotly/validators/densitymapbox/_ids.py index d19a5317af..1809c4d657 100644 --- a/plotly/validators/densitymapbox/_ids.py +++ b/plotly/validators/densitymapbox/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/_idssrc.py b/plotly/validators/densitymapbox/_idssrc.py index 9c96bec1a0..505d259c5c 100644 --- a/plotly/validators/densitymapbox/_idssrc.py +++ b/plotly/validators/densitymapbox/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/_lat.py b/plotly/validators/densitymapbox/_lat.py index 870fdd8cda..540eb113e7 100644 --- a/plotly/validators/densitymapbox/_lat.py +++ b/plotly/validators/densitymapbox/_lat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LatValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/_latsrc.py b/plotly/validators/densitymapbox/_latsrc.py index ede2490b48..9540d968c1 100644 --- a/plotly/validators/densitymapbox/_latsrc.py +++ b/plotly/validators/densitymapbox/_latsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LatsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/_legend.py b/plotly/validators/densitymapbox/_legend.py index 16bb454f7b..f538cad728 100644 --- a/plotly/validators/densitymapbox/_legend.py +++ b/plotly/validators/densitymapbox/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/densitymapbox/_legendgroup.py b/plotly/validators/densitymapbox/_legendgroup.py index 77d3e23edd..d25b11f01e 100644 --- a/plotly/validators/densitymapbox/_legendgroup.py +++ b/plotly/validators/densitymapbox/_legendgroup.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/_legendgrouptitle.py b/plotly/validators/densitymapbox/_legendgrouptitle.py index e882330a10..5bdb25810b 100644 --- a/plotly/validators/densitymapbox/_legendgrouptitle.py +++ b/plotly/validators/densitymapbox/_legendgrouptitle.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/densitymapbox/_legendrank.py b/plotly/validators/densitymapbox/_legendrank.py index 516ceabc88..534ebcb5f6 100644 --- a/plotly/validators/densitymapbox/_legendrank.py +++ b/plotly/validators/densitymapbox/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/_legendwidth.py b/plotly/validators/densitymapbox/_legendwidth.py index 83b4780333..9c02db5210 100644 --- a/plotly/validators/densitymapbox/_legendwidth.py +++ b/plotly/validators/densitymapbox/_legendwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/densitymapbox/_lon.py b/plotly/validators/densitymapbox/_lon.py index a0a05d0f82..bb2b479b59 100644 --- a/plotly/validators/densitymapbox/_lon.py +++ b/plotly/validators/densitymapbox/_lon.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LonValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/_lonsrc.py b/plotly/validators/densitymapbox/_lonsrc.py index 8036846101..95238c460a 100644 --- a/plotly/validators/densitymapbox/_lonsrc.py +++ b/plotly/validators/densitymapbox/_lonsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LonsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/_meta.py b/plotly/validators/densitymapbox/_meta.py index 5921decaab..cea6e0bb74 100644 --- a/plotly/validators/densitymapbox/_meta.py +++ b/plotly/validators/densitymapbox/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/densitymapbox/_metasrc.py b/plotly/validators/densitymapbox/_metasrc.py index efab519384..7a8ffd9bd7 100644 --- a/plotly/validators/densitymapbox/_metasrc.py +++ b/plotly/validators/densitymapbox/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/_name.py b/plotly/validators/densitymapbox/_name.py index 28577c0d0c..3250b3f7cc 100644 --- a/plotly/validators/densitymapbox/_name.py +++ b/plotly/validators/densitymapbox/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/_opacity.py b/plotly/validators/densitymapbox/_opacity.py index 2d1c529090..480f926ae9 100644 --- a/plotly/validators/densitymapbox/_opacity.py +++ b/plotly/validators/densitymapbox/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/densitymapbox/_radius.py b/plotly/validators/densitymapbox/_radius.py index 7ae95d91f0..552d9179bc 100644 --- a/plotly/validators/densitymapbox/_radius.py +++ b/plotly/validators/densitymapbox/_radius.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RadiusValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/densitymapbox/_radiussrc.py b/plotly/validators/densitymapbox/_radiussrc.py index f459449272..ae4f109898 100644 --- a/plotly/validators/densitymapbox/_radiussrc.py +++ b/plotly/validators/densitymapbox/_radiussrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RadiussrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/_reversescale.py b/plotly/validators/densitymapbox/_reversescale.py index d8d4b6f411..fbabb35025 100644 --- a/plotly/validators/densitymapbox/_reversescale.py +++ b/plotly/validators/densitymapbox/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/_showlegend.py b/plotly/validators/densitymapbox/_showlegend.py index e78a59ac7b..20adf51454 100644 --- a/plotly/validators/densitymapbox/_showlegend.py +++ b/plotly/validators/densitymapbox/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/_showscale.py b/plotly/validators/densitymapbox/_showscale.py index 033a7f4fc3..7e3c69355e 100644 --- a/plotly/validators/densitymapbox/_showscale.py +++ b/plotly/validators/densitymapbox/_showscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/_stream.py b/plotly/validators/densitymapbox/_stream.py index d7a2abfa90..cb951b5b91 100644 --- a/plotly/validators/densitymapbox/_stream.py +++ b/plotly/validators/densitymapbox/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/densitymapbox/_subplot.py b/plotly/validators/densitymapbox/_subplot.py index 42db8813e4..ad5088f57c 100644 --- a/plotly/validators/densitymapbox/_subplot.py +++ b/plotly/validators/densitymapbox/_subplot.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SubplotValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "mapbox"), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/densitymapbox/_text.py b/plotly/validators/densitymapbox/_text.py index 2bcf5c6cee..f0352e6695 100644 --- a/plotly/validators/densitymapbox/_text.py +++ b/plotly/validators/densitymapbox/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/densitymapbox/_textsrc.py b/plotly/validators/densitymapbox/_textsrc.py index 641eba0681..5bc6511724 100644 --- a/plotly/validators/densitymapbox/_textsrc.py +++ b/plotly/validators/densitymapbox/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/_uid.py b/plotly/validators/densitymapbox/_uid.py index afd1c30eff..6a3bd7d19f 100644 --- a/plotly/validators/densitymapbox/_uid.py +++ b/plotly/validators/densitymapbox/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/_uirevision.py b/plotly/validators/densitymapbox/_uirevision.py index ed627de7bc..913e2c9c9e 100644 --- a/plotly/validators/densitymapbox/_uirevision.py +++ b/plotly/validators/densitymapbox/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/_visible.py b/plotly/validators/densitymapbox/_visible.py index 915b04b8e2..53ca65ddce 100644 --- a/plotly/validators/densitymapbox/_visible.py +++ b/plotly/validators/densitymapbox/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/densitymapbox/_z.py b/plotly/validators/densitymapbox/_z.py index d2aa22219a..cb68ed0e0b 100644 --- a/plotly/validators/densitymapbox/_z.py +++ b/plotly/validators/densitymapbox/_z.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/_zauto.py b/plotly/validators/densitymapbox/_zauto.py index e095394f99..c27bb5ad0b 100644 --- a/plotly/validators/densitymapbox/_zauto.py +++ b/plotly/validators/densitymapbox/_zauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/densitymapbox/_zmax.py b/plotly/validators/densitymapbox/_zmax.py index ac4aaa28c0..557043d93d 100644 --- a/plotly/validators/densitymapbox/_zmax.py +++ b/plotly/validators/densitymapbox/_zmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"zauto": False}), **kwargs, diff --git a/plotly/validators/densitymapbox/_zmid.py b/plotly/validators/densitymapbox/_zmid.py index 394824e2c5..471d50b748 100644 --- a/plotly/validators/densitymapbox/_zmid.py +++ b/plotly/validators/densitymapbox/_zmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/densitymapbox/_zmin.py b/plotly/validators/densitymapbox/_zmin.py index e95a5582ce..c87fa5c684 100644 --- a/plotly/validators/densitymapbox/_zmin.py +++ b/plotly/validators/densitymapbox/_zmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"zauto": False}), **kwargs, diff --git a/plotly/validators/densitymapbox/_zsrc.py b/plotly/validators/densitymapbox/_zsrc.py index d05f51ff27..7bbcd889b6 100644 --- a/plotly/validators/densitymapbox/_zsrc.py +++ b/plotly/validators/densitymapbox/_zsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/colorbar/__init__.py b/plotly/validators/densitymapbox/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/densitymapbox/colorbar/__init__.py +++ b/plotly/validators/densitymapbox/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/densitymapbox/colorbar/_bgcolor.py b/plotly/validators/densitymapbox/colorbar/_bgcolor.py index 38f9891808..87790629f5 100644 --- a/plotly/validators/densitymapbox/colorbar/_bgcolor.py +++ b/plotly/validators/densitymapbox/colorbar/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/colorbar/_bordercolor.py b/plotly/validators/densitymapbox/colorbar/_bordercolor.py index ca48a911c6..37288b1c88 100644 --- a/plotly/validators/densitymapbox/colorbar/_bordercolor.py +++ b/plotly/validators/densitymapbox/colorbar/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/colorbar/_borderwidth.py b/plotly/validators/densitymapbox/colorbar/_borderwidth.py index a2bdeb9322..0664b99ce6 100644 --- a/plotly/validators/densitymapbox/colorbar/_borderwidth.py +++ b/plotly/validators/densitymapbox/colorbar/_borderwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/densitymapbox/colorbar/_dtick.py b/plotly/validators/densitymapbox/colorbar/_dtick.py index c0339fdeb8..3f5d6b8e26 100644 --- a/plotly/validators/densitymapbox/colorbar/_dtick.py +++ b/plotly/validators/densitymapbox/colorbar/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/densitymapbox/colorbar/_exponentformat.py b/plotly/validators/densitymapbox/colorbar/_exponentformat.py index 447c583d69..51590104e0 100644 --- a/plotly/validators/densitymapbox/colorbar/_exponentformat.py +++ b/plotly/validators/densitymapbox/colorbar/_exponentformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/densitymapbox/colorbar/_labelalias.py b/plotly/validators/densitymapbox/colorbar/_labelalias.py index 49c84fa0fe..32beabeef8 100644 --- a/plotly/validators/densitymapbox/colorbar/_labelalias.py +++ b/plotly/validators/densitymapbox/colorbar/_labelalias.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/colorbar/_len.py b/plotly/validators/densitymapbox/colorbar/_len.py index 80a292f201..1fc8fee574 100644 --- a/plotly/validators/densitymapbox/colorbar/_len.py +++ b/plotly/validators/densitymapbox/colorbar/_len.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/densitymapbox/colorbar/_lenmode.py b/plotly/validators/densitymapbox/colorbar/_lenmode.py index a6c5bcdcd5..602e7f12d6 100644 --- a/plotly/validators/densitymapbox/colorbar/_lenmode.py +++ b/plotly/validators/densitymapbox/colorbar/_lenmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/densitymapbox/colorbar/_minexponent.py b/plotly/validators/densitymapbox/colorbar/_minexponent.py index 9cb34db3cf..b08ff478d4 100644 --- a/plotly/validators/densitymapbox/colorbar/_minexponent.py +++ b/plotly/validators/densitymapbox/colorbar/_minexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/densitymapbox/colorbar/_nticks.py b/plotly/validators/densitymapbox/colorbar/_nticks.py index 792c2ae258..f33d769419 100644 --- a/plotly/validators/densitymapbox/colorbar/_nticks.py +++ b/plotly/validators/densitymapbox/colorbar/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/densitymapbox/colorbar/_orientation.py b/plotly/validators/densitymapbox/colorbar/_orientation.py index 6994d992b3..83ad8d6985 100644 --- a/plotly/validators/densitymapbox/colorbar/_orientation.py +++ b/plotly/validators/densitymapbox/colorbar/_orientation.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/densitymapbox/colorbar/_outlinecolor.py b/plotly/validators/densitymapbox/colorbar/_outlinecolor.py index adb140cd1d..c18b780196 100644 --- a/plotly/validators/densitymapbox/colorbar/_outlinecolor.py +++ b/plotly/validators/densitymapbox/colorbar/_outlinecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/colorbar/_outlinewidth.py b/plotly/validators/densitymapbox/colorbar/_outlinewidth.py index 0c6f0a72b4..b82914ab07 100644 --- a/plotly/validators/densitymapbox/colorbar/_outlinewidth.py +++ b/plotly/validators/densitymapbox/colorbar/_outlinewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/densitymapbox/colorbar/_separatethousands.py b/plotly/validators/densitymapbox/colorbar/_separatethousands.py index 71a02998ae..f9cf7cd025 100644 --- a/plotly/validators/densitymapbox/colorbar/_separatethousands.py +++ b/plotly/validators/densitymapbox/colorbar/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/colorbar/_showexponent.py b/plotly/validators/densitymapbox/colorbar/_showexponent.py index 7f75a5b53c..d28c5c6881 100644 --- a/plotly/validators/densitymapbox/colorbar/_showexponent.py +++ b/plotly/validators/densitymapbox/colorbar/_showexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/densitymapbox/colorbar/_showticklabels.py b/plotly/validators/densitymapbox/colorbar/_showticklabels.py index eb968b241b..a094b10dd9 100644 --- a/plotly/validators/densitymapbox/colorbar/_showticklabels.py +++ b/plotly/validators/densitymapbox/colorbar/_showticklabels.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/colorbar/_showtickprefix.py b/plotly/validators/densitymapbox/colorbar/_showtickprefix.py index 12855ca20f..9cae89f769 100644 --- a/plotly/validators/densitymapbox/colorbar/_showtickprefix.py +++ b/plotly/validators/densitymapbox/colorbar/_showtickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/densitymapbox/colorbar/_showticksuffix.py b/plotly/validators/densitymapbox/colorbar/_showticksuffix.py index 6dde31ab69..11beefa86a 100644 --- a/plotly/validators/densitymapbox/colorbar/_showticksuffix.py +++ b/plotly/validators/densitymapbox/colorbar/_showticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/densitymapbox/colorbar/_thickness.py b/plotly/validators/densitymapbox/colorbar/_thickness.py index e843e66e5d..4d84cdef51 100644 --- a/plotly/validators/densitymapbox/colorbar/_thickness.py +++ b/plotly/validators/densitymapbox/colorbar/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/densitymapbox/colorbar/_thicknessmode.py b/plotly/validators/densitymapbox/colorbar/_thicknessmode.py index bf2f329664..25c9fc60e0 100644 --- a/plotly/validators/densitymapbox/colorbar/_thicknessmode.py +++ b/plotly/validators/densitymapbox/colorbar/_thicknessmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/densitymapbox/colorbar/_tick0.py b/plotly/validators/densitymapbox/colorbar/_tick0.py index dfe2340a6d..31f15c8587 100644 --- a/plotly/validators/densitymapbox/colorbar/_tick0.py +++ b/plotly/validators/densitymapbox/colorbar/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/densitymapbox/colorbar/_tickangle.py b/plotly/validators/densitymapbox/colorbar/_tickangle.py index 19d4186963..5eb5366421 100644 --- a/plotly/validators/densitymapbox/colorbar/_tickangle.py +++ b/plotly/validators/densitymapbox/colorbar/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/colorbar/_tickcolor.py b/plotly/validators/densitymapbox/colorbar/_tickcolor.py index b97e1d1134..2d42d154f7 100644 --- a/plotly/validators/densitymapbox/colorbar/_tickcolor.py +++ b/plotly/validators/densitymapbox/colorbar/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/colorbar/_tickfont.py b/plotly/validators/densitymapbox/colorbar/_tickfont.py index eda90788df..89108d96e2 100644 --- a/plotly/validators/densitymapbox/colorbar/_tickfont.py +++ b/plotly/validators/densitymapbox/colorbar/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/densitymapbox/colorbar/_tickformat.py b/plotly/validators/densitymapbox/colorbar/_tickformat.py index 8acdd345f7..4672cf7e83 100644 --- a/plotly/validators/densitymapbox/colorbar/_tickformat.py +++ b/plotly/validators/densitymapbox/colorbar/_tickformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/colorbar/_tickformatstopdefaults.py b/plotly/validators/densitymapbox/colorbar/_tickformatstopdefaults.py index 81208ad347..c119c5f4f8 100644 --- a/plotly/validators/densitymapbox/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/densitymapbox/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/densitymapbox/colorbar/_tickformatstops.py b/plotly/validators/densitymapbox/colorbar/_tickformatstops.py index 10da5cf9cc..4f0a33264f 100644 --- a/plotly/validators/densitymapbox/colorbar/_tickformatstops.py +++ b/plotly/validators/densitymapbox/colorbar/_tickformatstops.py @@ -1,53 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/densitymapbox/colorbar/_ticklabeloverflow.py b/plotly/validators/densitymapbox/colorbar/_ticklabeloverflow.py index 738c8f594e..ad117532c7 100644 --- a/plotly/validators/densitymapbox/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/densitymapbox/colorbar/_ticklabeloverflow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/densitymapbox/colorbar/_ticklabelposition.py b/plotly/validators/densitymapbox/colorbar/_ticklabelposition.py index ea380a2278..16577c796b 100644 --- a/plotly/validators/densitymapbox/colorbar/_ticklabelposition.py +++ b/plotly/validators/densitymapbox/colorbar/_ticklabelposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/densitymapbox/colorbar/_ticklabelstep.py b/plotly/validators/densitymapbox/colorbar/_ticklabelstep.py index 1cacbd85f3..496ca62259 100644 --- a/plotly/validators/densitymapbox/colorbar/_ticklabelstep.py +++ b/plotly/validators/densitymapbox/colorbar/_ticklabelstep.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/densitymapbox/colorbar/_ticklen.py b/plotly/validators/densitymapbox/colorbar/_ticklen.py index d748c1574c..1858b07a58 100644 --- a/plotly/validators/densitymapbox/colorbar/_ticklen.py +++ b/plotly/validators/densitymapbox/colorbar/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/densitymapbox/colorbar/_tickmode.py b/plotly/validators/densitymapbox/colorbar/_tickmode.py index 0a87945e60..65810821f2 100644 --- a/plotly/validators/densitymapbox/colorbar/_tickmode.py +++ b/plotly/validators/densitymapbox/colorbar/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/densitymapbox/colorbar/_tickprefix.py b/plotly/validators/densitymapbox/colorbar/_tickprefix.py index 23919e22af..8fd0051592 100644 --- a/plotly/validators/densitymapbox/colorbar/_tickprefix.py +++ b/plotly/validators/densitymapbox/colorbar/_tickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/colorbar/_ticks.py b/plotly/validators/densitymapbox/colorbar/_ticks.py index 7d309de59d..b9c56abeb2 100644 --- a/plotly/validators/densitymapbox/colorbar/_ticks.py +++ b/plotly/validators/densitymapbox/colorbar/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/densitymapbox/colorbar/_ticksuffix.py b/plotly/validators/densitymapbox/colorbar/_ticksuffix.py index 9d7bd9a238..9004cfbac6 100644 --- a/plotly/validators/densitymapbox/colorbar/_ticksuffix.py +++ b/plotly/validators/densitymapbox/colorbar/_ticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/colorbar/_ticktext.py b/plotly/validators/densitymapbox/colorbar/_ticktext.py index cbca06f74c..3fdab76b52 100644 --- a/plotly/validators/densitymapbox/colorbar/_ticktext.py +++ b/plotly/validators/densitymapbox/colorbar/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/colorbar/_ticktextsrc.py b/plotly/validators/densitymapbox/colorbar/_ticktextsrc.py index 0b0315550e..d111873b26 100644 --- a/plotly/validators/densitymapbox/colorbar/_ticktextsrc.py +++ b/plotly/validators/densitymapbox/colorbar/_ticktextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/colorbar/_tickvals.py b/plotly/validators/densitymapbox/colorbar/_tickvals.py index 072534e43a..ee8522ea37 100644 --- a/plotly/validators/densitymapbox/colorbar/_tickvals.py +++ b/plotly/validators/densitymapbox/colorbar/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/colorbar/_tickvalssrc.py b/plotly/validators/densitymapbox/colorbar/_tickvalssrc.py index 23f65191ff..0fcfd4e67c 100644 --- a/plotly/validators/densitymapbox/colorbar/_tickvalssrc.py +++ b/plotly/validators/densitymapbox/colorbar/_tickvalssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/colorbar/_tickwidth.py b/plotly/validators/densitymapbox/colorbar/_tickwidth.py index 08f5254526..df54489085 100644 --- a/plotly/validators/densitymapbox/colorbar/_tickwidth.py +++ b/plotly/validators/densitymapbox/colorbar/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/densitymapbox/colorbar/_title.py b/plotly/validators/densitymapbox/colorbar/_title.py index f7b14ed2b4..f52f5a629c 100644 --- a/plotly/validators/densitymapbox/colorbar/_title.py +++ b/plotly/validators/densitymapbox/colorbar/_title.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/densitymapbox/colorbar/_x.py b/plotly/validators/densitymapbox/colorbar/_x.py index ed1cd46aa2..c0bd223f07 100644 --- a/plotly/validators/densitymapbox/colorbar/_x.py +++ b/plotly/validators/densitymapbox/colorbar/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/colorbar/_xanchor.py b/plotly/validators/densitymapbox/colorbar/_xanchor.py index 24fa481d7e..a3981b8706 100644 --- a/plotly/validators/densitymapbox/colorbar/_xanchor.py +++ b/plotly/validators/densitymapbox/colorbar/_xanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/densitymapbox/colorbar/_xpad.py b/plotly/validators/densitymapbox/colorbar/_xpad.py index c170e013a2..b1610ed68d 100644 --- a/plotly/validators/densitymapbox/colorbar/_xpad.py +++ b/plotly/validators/densitymapbox/colorbar/_xpad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/densitymapbox/colorbar/_xref.py b/plotly/validators/densitymapbox/colorbar/_xref.py index faceafa65b..35593443cb 100644 --- a/plotly/validators/densitymapbox/colorbar/_xref.py +++ b/plotly/validators/densitymapbox/colorbar/_xref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/densitymapbox/colorbar/_y.py b/plotly/validators/densitymapbox/colorbar/_y.py index 9f9c139d06..b33bbdb6ac 100644 --- a/plotly/validators/densitymapbox/colorbar/_y.py +++ b/plotly/validators/densitymapbox/colorbar/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/colorbar/_yanchor.py b/plotly/validators/densitymapbox/colorbar/_yanchor.py index 1e3e73b813..1d805dc065 100644 --- a/plotly/validators/densitymapbox/colorbar/_yanchor.py +++ b/plotly/validators/densitymapbox/colorbar/_yanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/densitymapbox/colorbar/_ypad.py b/plotly/validators/densitymapbox/colorbar/_ypad.py index d8cd2ce40c..1b6253cd54 100644 --- a/plotly/validators/densitymapbox/colorbar/_ypad.py +++ b/plotly/validators/densitymapbox/colorbar/_ypad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/densitymapbox/colorbar/_yref.py b/plotly/validators/densitymapbox/colorbar/_yref.py index c8072680f9..1c6ce3e4c0 100644 --- a/plotly/validators/densitymapbox/colorbar/_yref.py +++ b/plotly/validators/densitymapbox/colorbar/_yref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/densitymapbox/colorbar/tickfont/__init__.py b/plotly/validators/densitymapbox/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/densitymapbox/colorbar/tickfont/__init__.py +++ b/plotly/validators/densitymapbox/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/densitymapbox/colorbar/tickfont/_color.py b/plotly/validators/densitymapbox/colorbar/tickfont/_color.py index 1086ca7d84..a8544cd8a1 100644 --- a/plotly/validators/densitymapbox/colorbar/tickfont/_color.py +++ b/plotly/validators/densitymapbox/colorbar/tickfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/colorbar/tickfont/_family.py b/plotly/validators/densitymapbox/colorbar/tickfont/_family.py index 1aa2c013a0..a5b2fd5314 100644 --- a/plotly/validators/densitymapbox/colorbar/tickfont/_family.py +++ b/plotly/validators/densitymapbox/colorbar/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/densitymapbox/colorbar/tickfont/_lineposition.py b/plotly/validators/densitymapbox/colorbar/tickfont/_lineposition.py index 4a254bdafb..8697c552f1 100644 --- a/plotly/validators/densitymapbox/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/densitymapbox/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/densitymapbox/colorbar/tickfont/_shadow.py b/plotly/validators/densitymapbox/colorbar/tickfont/_shadow.py index 8ec7d25c92..fc0b2cb3f8 100644 --- a/plotly/validators/densitymapbox/colorbar/tickfont/_shadow.py +++ b/plotly/validators/densitymapbox/colorbar/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/colorbar/tickfont/_size.py b/plotly/validators/densitymapbox/colorbar/tickfont/_size.py index 9bbe27933d..8867c1fcc2 100644 --- a/plotly/validators/densitymapbox/colorbar/tickfont/_size.py +++ b/plotly/validators/densitymapbox/colorbar/tickfont/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/densitymapbox/colorbar/tickfont/_style.py b/plotly/validators/densitymapbox/colorbar/tickfont/_style.py index 36313413ab..fc1126da22 100644 --- a/plotly/validators/densitymapbox/colorbar/tickfont/_style.py +++ b/plotly/validators/densitymapbox/colorbar/tickfont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/densitymapbox/colorbar/tickfont/_textcase.py b/plotly/validators/densitymapbox/colorbar/tickfont/_textcase.py index 0802a6dc63..25e22931bc 100644 --- a/plotly/validators/densitymapbox/colorbar/tickfont/_textcase.py +++ b/plotly/validators/densitymapbox/colorbar/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/densitymapbox/colorbar/tickfont/_variant.py b/plotly/validators/densitymapbox/colorbar/tickfont/_variant.py index 3f52f1e1c6..17e4e99e80 100644 --- a/plotly/validators/densitymapbox/colorbar/tickfont/_variant.py +++ b/plotly/validators/densitymapbox/colorbar/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/densitymapbox/colorbar/tickfont/_weight.py b/plotly/validators/densitymapbox/colorbar/tickfont/_weight.py index 78a0a80b2a..5d71d064a5 100644 --- a/plotly/validators/densitymapbox/colorbar/tickfont/_weight.py +++ b/plotly/validators/densitymapbox/colorbar/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/densitymapbox/colorbar/tickformatstop/__init__.py b/plotly/validators/densitymapbox/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/densitymapbox/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/densitymapbox/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/densitymapbox/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/densitymapbox/colorbar/tickformatstop/_dtickrange.py index 35cac42d44..78eb5bd2ac 100644 --- a/plotly/validators/densitymapbox/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/densitymapbox/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( "items", diff --git a/plotly/validators/densitymapbox/colorbar/tickformatstop/_enabled.py b/plotly/validators/densitymapbox/colorbar/tickformatstop/_enabled.py index a9401037fa..a37db37333 100644 --- a/plotly/validators/densitymapbox/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/densitymapbox/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/colorbar/tickformatstop/_name.py b/plotly/validators/densitymapbox/colorbar/tickformatstop/_name.py index 2219b97b16..2af2042f48 100644 --- a/plotly/validators/densitymapbox/colorbar/tickformatstop/_name.py +++ b/plotly/validators/densitymapbox/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/densitymapbox/colorbar/tickformatstop/_templateitemname.py index 827c5cce9d..06e7dfe635 100644 --- a/plotly/validators/densitymapbox/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/densitymapbox/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/colorbar/tickformatstop/_value.py b/plotly/validators/densitymapbox/colorbar/tickformatstop/_value.py index 31de4f49ef..328b8638eb 100644 --- a/plotly/validators/densitymapbox/colorbar/tickformatstop/_value.py +++ b/plotly/validators/densitymapbox/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/colorbar/title/__init__.py b/plotly/validators/densitymapbox/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/densitymapbox/colorbar/title/__init__.py +++ b/plotly/validators/densitymapbox/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/densitymapbox/colorbar/title/_font.py b/plotly/validators/densitymapbox/colorbar/title/_font.py index e9c0275620..5794e9e8bc 100644 --- a/plotly/validators/densitymapbox/colorbar/title/_font.py +++ b/plotly/validators/densitymapbox/colorbar/title/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/densitymapbox/colorbar/title/_side.py b/plotly/validators/densitymapbox/colorbar/title/_side.py index ea9f3b4d00..31601aa0b3 100644 --- a/plotly/validators/densitymapbox/colorbar/title/_side.py +++ b/plotly/validators/densitymapbox/colorbar/title/_side.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/densitymapbox/colorbar/title/_text.py b/plotly/validators/densitymapbox/colorbar/title/_text.py index c8ee982214..b6f8ccddd4 100644 --- a/plotly/validators/densitymapbox/colorbar/title/_text.py +++ b/plotly/validators/densitymapbox/colorbar/title/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/colorbar/title/font/__init__.py b/plotly/validators/densitymapbox/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/densitymapbox/colorbar/title/font/__init__.py +++ b/plotly/validators/densitymapbox/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/densitymapbox/colorbar/title/font/_color.py b/plotly/validators/densitymapbox/colorbar/title/font/_color.py index 48e65250ae..c03c3ba489 100644 --- a/plotly/validators/densitymapbox/colorbar/title/font/_color.py +++ b/plotly/validators/densitymapbox/colorbar/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/colorbar/title/font/_family.py b/plotly/validators/densitymapbox/colorbar/title/font/_family.py index 71d52e9aae..7c800117bf 100644 --- a/plotly/validators/densitymapbox/colorbar/title/font/_family.py +++ b/plotly/validators/densitymapbox/colorbar/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/densitymapbox/colorbar/title/font/_lineposition.py b/plotly/validators/densitymapbox/colorbar/title/font/_lineposition.py index a3ee0a98d4..4725465b92 100644 --- a/plotly/validators/densitymapbox/colorbar/title/font/_lineposition.py +++ b/plotly/validators/densitymapbox/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/densitymapbox/colorbar/title/font/_shadow.py b/plotly/validators/densitymapbox/colorbar/title/font/_shadow.py index ce68c7b276..bed5588e15 100644 --- a/plotly/validators/densitymapbox/colorbar/title/font/_shadow.py +++ b/plotly/validators/densitymapbox/colorbar/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/colorbar/title/font/_size.py b/plotly/validators/densitymapbox/colorbar/title/font/_size.py index fe3d46e3fa..20b4323035 100644 --- a/plotly/validators/densitymapbox/colorbar/title/font/_size.py +++ b/plotly/validators/densitymapbox/colorbar/title/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/densitymapbox/colorbar/title/font/_style.py b/plotly/validators/densitymapbox/colorbar/title/font/_style.py index b43ed8f1e1..40ddfd48bd 100644 --- a/plotly/validators/densitymapbox/colorbar/title/font/_style.py +++ b/plotly/validators/densitymapbox/colorbar/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/densitymapbox/colorbar/title/font/_textcase.py b/plotly/validators/densitymapbox/colorbar/title/font/_textcase.py index f919f97e47..a45c5c6f8b 100644 --- a/plotly/validators/densitymapbox/colorbar/title/font/_textcase.py +++ b/plotly/validators/densitymapbox/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/densitymapbox/colorbar/title/font/_variant.py b/plotly/validators/densitymapbox/colorbar/title/font/_variant.py index bbc8d7c505..d96baee254 100644 --- a/plotly/validators/densitymapbox/colorbar/title/font/_variant.py +++ b/plotly/validators/densitymapbox/colorbar/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/densitymapbox/colorbar/title/font/_weight.py b/plotly/validators/densitymapbox/colorbar/title/font/_weight.py index cb807db589..ad1b6417ed 100644 --- a/plotly/validators/densitymapbox/colorbar/title/font/_weight.py +++ b/plotly/validators/densitymapbox/colorbar/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/densitymapbox/hoverlabel/__init__.py b/plotly/validators/densitymapbox/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/densitymapbox/hoverlabel/__init__.py +++ b/plotly/validators/densitymapbox/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/densitymapbox/hoverlabel/_align.py b/plotly/validators/densitymapbox/hoverlabel/_align.py index a86abc49bf..e5f5e1e758 100644 --- a/plotly/validators/densitymapbox/hoverlabel/_align.py +++ b/plotly/validators/densitymapbox/hoverlabel/_align.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/densitymapbox/hoverlabel/_alignsrc.py b/plotly/validators/densitymapbox/hoverlabel/_alignsrc.py index 10d7d4ec95..3e5ef56811 100644 --- a/plotly/validators/densitymapbox/hoverlabel/_alignsrc.py +++ b/plotly/validators/densitymapbox/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/hoverlabel/_bgcolor.py b/plotly/validators/densitymapbox/hoverlabel/_bgcolor.py index 9edbe78340..982caefd9d 100644 --- a/plotly/validators/densitymapbox/hoverlabel/_bgcolor.py +++ b/plotly/validators/densitymapbox/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/densitymapbox/hoverlabel/_bgcolorsrc.py b/plotly/validators/densitymapbox/hoverlabel/_bgcolorsrc.py index 87fcb8236f..030314d712 100644 --- a/plotly/validators/densitymapbox/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/densitymapbox/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/hoverlabel/_bordercolor.py b/plotly/validators/densitymapbox/hoverlabel/_bordercolor.py index b627047eec..e4736b2429 100644 --- a/plotly/validators/densitymapbox/hoverlabel/_bordercolor.py +++ b/plotly/validators/densitymapbox/hoverlabel/_bordercolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/densitymapbox/hoverlabel/_bordercolorsrc.py b/plotly/validators/densitymapbox/hoverlabel/_bordercolorsrc.py index ad5cbc6de2..a8bb9afd46 100644 --- a/plotly/validators/densitymapbox/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/densitymapbox/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/hoverlabel/_font.py b/plotly/validators/densitymapbox/hoverlabel/_font.py index fc32d07df4..d354bd5243 100644 --- a/plotly/validators/densitymapbox/hoverlabel/_font.py +++ b/plotly/validators/densitymapbox/hoverlabel/_font.py @@ -1,87 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/densitymapbox/hoverlabel/_namelength.py b/plotly/validators/densitymapbox/hoverlabel/_namelength.py index 9046eb5eb6..ff57b91a07 100644 --- a/plotly/validators/densitymapbox/hoverlabel/_namelength.py +++ b/plotly/validators/densitymapbox/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/densitymapbox/hoverlabel/_namelengthsrc.py b/plotly/validators/densitymapbox/hoverlabel/_namelengthsrc.py index 7d3efc6452..d7307eca2b 100644 --- a/plotly/validators/densitymapbox/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/densitymapbox/hoverlabel/_namelengthsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/hoverlabel/font/__init__.py b/plotly/validators/densitymapbox/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/densitymapbox/hoverlabel/font/__init__.py +++ b/plotly/validators/densitymapbox/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/densitymapbox/hoverlabel/font/_color.py b/plotly/validators/densitymapbox/hoverlabel/font/_color.py index 5e50473755..46f95ddf56 100644 --- a/plotly/validators/densitymapbox/hoverlabel/font/_color.py +++ b/plotly/validators/densitymapbox/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/densitymapbox/hoverlabel/font/_colorsrc.py b/plotly/validators/densitymapbox/hoverlabel/font/_colorsrc.py index 7c416090ee..c1735d1049 100644 --- a/plotly/validators/densitymapbox/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/densitymapbox/hoverlabel/font/_colorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/hoverlabel/font/_family.py b/plotly/validators/densitymapbox/hoverlabel/font/_family.py index cec0b2dcc9..f9356b8db5 100644 --- a/plotly/validators/densitymapbox/hoverlabel/font/_family.py +++ b/plotly/validators/densitymapbox/hoverlabel/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/densitymapbox/hoverlabel/font/_familysrc.py b/plotly/validators/densitymapbox/hoverlabel/font/_familysrc.py index f9bcfa260b..682e78d8d0 100644 --- a/plotly/validators/densitymapbox/hoverlabel/font/_familysrc.py +++ b/plotly/validators/densitymapbox/hoverlabel/font/_familysrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/hoverlabel/font/_lineposition.py b/plotly/validators/densitymapbox/hoverlabel/font/_lineposition.py index ff46063cff..0db7257bb9 100644 --- a/plotly/validators/densitymapbox/hoverlabel/font/_lineposition.py +++ b/plotly/validators/densitymapbox/hoverlabel/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/densitymapbox/hoverlabel/font/_linepositionsrc.py b/plotly/validators/densitymapbox/hoverlabel/font/_linepositionsrc.py index 27c7fe32b6..acba5335e6 100644 --- a/plotly/validators/densitymapbox/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/densitymapbox/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/hoverlabel/font/_shadow.py b/plotly/validators/densitymapbox/hoverlabel/font/_shadow.py index e2ab26b034..d14d4f615e 100644 --- a/plotly/validators/densitymapbox/hoverlabel/font/_shadow.py +++ b/plotly/validators/densitymapbox/hoverlabel/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/densitymapbox/hoverlabel/font/_shadowsrc.py b/plotly/validators/densitymapbox/hoverlabel/font/_shadowsrc.py index f4990fa48c..8016d6a977 100644 --- a/plotly/validators/densitymapbox/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/densitymapbox/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/hoverlabel/font/_size.py b/plotly/validators/densitymapbox/hoverlabel/font/_size.py index 55ba87c47e..b0d883bf97 100644 --- a/plotly/validators/densitymapbox/hoverlabel/font/_size.py +++ b/plotly/validators/densitymapbox/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/densitymapbox/hoverlabel/font/_sizesrc.py b/plotly/validators/densitymapbox/hoverlabel/font/_sizesrc.py index 9fcdeecc1d..b48d419f22 100644 --- a/plotly/validators/densitymapbox/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/densitymapbox/hoverlabel/font/_sizesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/hoverlabel/font/_style.py b/plotly/validators/densitymapbox/hoverlabel/font/_style.py index ac23a1cbac..13a7de53b5 100644 --- a/plotly/validators/densitymapbox/hoverlabel/font/_style.py +++ b/plotly/validators/densitymapbox/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/densitymapbox/hoverlabel/font/_stylesrc.py b/plotly/validators/densitymapbox/hoverlabel/font/_stylesrc.py index 7cd8ec9777..8d9bcecfdd 100644 --- a/plotly/validators/densitymapbox/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/densitymapbox/hoverlabel/font/_stylesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/hoverlabel/font/_textcase.py b/plotly/validators/densitymapbox/hoverlabel/font/_textcase.py index 8cbbbe016f..41c1f6d424 100644 --- a/plotly/validators/densitymapbox/hoverlabel/font/_textcase.py +++ b/plotly/validators/densitymapbox/hoverlabel/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/densitymapbox/hoverlabel/font/_textcasesrc.py b/plotly/validators/densitymapbox/hoverlabel/font/_textcasesrc.py index 82fa3546ce..c41f875433 100644 --- a/plotly/validators/densitymapbox/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/densitymapbox/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/hoverlabel/font/_variant.py b/plotly/validators/densitymapbox/hoverlabel/font/_variant.py index df60391d75..5fb4f79871 100644 --- a/plotly/validators/densitymapbox/hoverlabel/font/_variant.py +++ b/plotly/validators/densitymapbox/hoverlabel/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/densitymapbox/hoverlabel/font/_variantsrc.py b/plotly/validators/densitymapbox/hoverlabel/font/_variantsrc.py index 7a9a592faf..dba6bcd205 100644 --- a/plotly/validators/densitymapbox/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/densitymapbox/hoverlabel/font/_variantsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/hoverlabel/font/_weight.py b/plotly/validators/densitymapbox/hoverlabel/font/_weight.py index 671055a7af..c039079601 100644 --- a/plotly/validators/densitymapbox/hoverlabel/font/_weight.py +++ b/plotly/validators/densitymapbox/hoverlabel/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/densitymapbox/hoverlabel/font/_weightsrc.py b/plotly/validators/densitymapbox/hoverlabel/font/_weightsrc.py index 3e70e0bc2f..58b2893b02 100644 --- a/plotly/validators/densitymapbox/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/densitymapbox/hoverlabel/font/_weightsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/legendgrouptitle/__init__.py b/plotly/validators/densitymapbox/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/densitymapbox/legendgrouptitle/__init__.py +++ b/plotly/validators/densitymapbox/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/densitymapbox/legendgrouptitle/_font.py b/plotly/validators/densitymapbox/legendgrouptitle/_font.py index a1ed90a8a7..d83f75b012 100644 --- a/plotly/validators/densitymapbox/legendgrouptitle/_font.py +++ b/plotly/validators/densitymapbox/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/densitymapbox/legendgrouptitle/_text.py b/plotly/validators/densitymapbox/legendgrouptitle/_text.py index f213fc5a38..33d2f603a0 100644 --- a/plotly/validators/densitymapbox/legendgrouptitle/_text.py +++ b/plotly/validators/densitymapbox/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/legendgrouptitle/font/__init__.py b/plotly/validators/densitymapbox/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/densitymapbox/legendgrouptitle/font/__init__.py +++ b/plotly/validators/densitymapbox/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/densitymapbox/legendgrouptitle/font/_color.py b/plotly/validators/densitymapbox/legendgrouptitle/font/_color.py index da9fe0d0af..c58d9e6746 100644 --- a/plotly/validators/densitymapbox/legendgrouptitle/font/_color.py +++ b/plotly/validators/densitymapbox/legendgrouptitle/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/legendgrouptitle/font/_family.py b/plotly/validators/densitymapbox/legendgrouptitle/font/_family.py index 5d00da65c0..ebd4b2451b 100644 --- a/plotly/validators/densitymapbox/legendgrouptitle/font/_family.py +++ b/plotly/validators/densitymapbox/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/densitymapbox/legendgrouptitle/font/_lineposition.py b/plotly/validators/densitymapbox/legendgrouptitle/font/_lineposition.py index e1cc78ad78..c3a90eedb2 100644 --- a/plotly/validators/densitymapbox/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/densitymapbox/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/densitymapbox/legendgrouptitle/font/_shadow.py b/plotly/validators/densitymapbox/legendgrouptitle/font/_shadow.py index 018d8957f5..7b1b527fbc 100644 --- a/plotly/validators/densitymapbox/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/densitymapbox/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/densitymapbox/legendgrouptitle/font/_size.py b/plotly/validators/densitymapbox/legendgrouptitle/font/_size.py index 506317e98c..10aeff9288 100644 --- a/plotly/validators/densitymapbox/legendgrouptitle/font/_size.py +++ b/plotly/validators/densitymapbox/legendgrouptitle/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/densitymapbox/legendgrouptitle/font/_style.py b/plotly/validators/densitymapbox/legendgrouptitle/font/_style.py index 4c84ca3cee..da32767273 100644 --- a/plotly/validators/densitymapbox/legendgrouptitle/font/_style.py +++ b/plotly/validators/densitymapbox/legendgrouptitle/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/densitymapbox/legendgrouptitle/font/_textcase.py b/plotly/validators/densitymapbox/legendgrouptitle/font/_textcase.py index fc05c6588a..2d14a0b7c4 100644 --- a/plotly/validators/densitymapbox/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/densitymapbox/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/densitymapbox/legendgrouptitle/font/_variant.py b/plotly/validators/densitymapbox/legendgrouptitle/font/_variant.py index 234a13231b..45d01bbde2 100644 --- a/plotly/validators/densitymapbox/legendgrouptitle/font/_variant.py +++ b/plotly/validators/densitymapbox/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/densitymapbox/legendgrouptitle/font/_weight.py b/plotly/validators/densitymapbox/legendgrouptitle/font/_weight.py index 14f58fdcbe..746ddfce87 100644 --- a/plotly/validators/densitymapbox/legendgrouptitle/font/_weight.py +++ b/plotly/validators/densitymapbox/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/densitymapbox/stream/__init__.py b/plotly/validators/densitymapbox/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/densitymapbox/stream/__init__.py +++ b/plotly/validators/densitymapbox/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/densitymapbox/stream/_maxpoints.py b/plotly/validators/densitymapbox/stream/_maxpoints.py index c89d0c32d6..316f0d1f5f 100644 --- a/plotly/validators/densitymapbox/stream/_maxpoints.py +++ b/plotly/validators/densitymapbox/stream/_maxpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/densitymapbox/stream/_token.py b/plotly/validators/densitymapbox/stream/_token.py index 3a14de6674..2660a02a1c 100644 --- a/plotly/validators/densitymapbox/stream/_token.py +++ b/plotly/validators/densitymapbox/stream/_token.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/frame/__init__.py b/plotly/validators/frame/__init__.py index 447e302627..b7de62afa7 100644 --- a/plotly/validators/frame/__init__.py +++ b/plotly/validators/frame/__init__.py @@ -1,25 +1,15 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._traces import TracesValidator - from ._name import NameValidator - from ._layout import LayoutValidator - from ._group import GroupValidator - from ._data import DataValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._traces.TracesValidator", + "._name.NameValidator", + "._layout.LayoutValidator", + "._group.GroupValidator", + "._data.DataValidator", + "._baseframe.BaseframeValidator", + ], +) diff --git a/plotly/validators/frame/_baseframe.py b/plotly/validators/frame/_baseframe.py index e205b0282b..f73b0ed51d 100644 --- a/plotly/validators/frame/_baseframe.py +++ b/plotly/validators/frame/_baseframe.py @@ -1,8 +1,9 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BaseframeValidator(_plotly_utils.basevalidators.StringValidator): + +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 - ) + super().__init__(plotly_name, parent_name, **kwargs) diff --git a/plotly/validators/frame/_data.py b/plotly/validators/frame/_data.py index b44c421387..72d3677368 100644 --- a/plotly/validators/frame/_data.py +++ b/plotly/validators/frame/_data.py @@ -1,8 +1,9 @@ -import plotly.validators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import plotly.validators as _bv -class DataValidator(plotly.validators.DataValidator): + +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 - ) + super().__init__(plotly_name, parent_name, **kwargs) diff --git a/plotly/validators/frame/_group.py b/plotly/validators/frame/_group.py index f3885f16ae..7d34c917d2 100644 --- a/plotly/validators/frame/_group.py +++ b/plotly/validators/frame/_group.py @@ -1,8 +1,9 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GroupValidator(_plotly_utils.basevalidators.StringValidator): + +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 - ) + super().__init__(plotly_name, parent_name, **kwargs) diff --git a/plotly/validators/frame/_layout.py b/plotly/validators/frame/_layout.py index 56ea4aa01e..1c4895a0ad 100644 --- a/plotly/validators/frame/_layout.py +++ b/plotly/validators/frame/_layout.py @@ -1,8 +1,9 @@ -import plotly.validators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import plotly.validators as _bv -class LayoutValidator(plotly.validators.LayoutValidator): + +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 - ) + super().__init__(plotly_name, parent_name, **kwargs) diff --git a/plotly/validators/frame/_name.py b/plotly/validators/frame/_name.py index dbad612831..efd03a1e17 100644 --- a/plotly/validators/frame/_name.py +++ b/plotly/validators/frame/_name.py @@ -1,8 +1,9 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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 - ) + super().__init__(plotly_name, parent_name, **kwargs) diff --git a/plotly/validators/frame/_traces.py b/plotly/validators/frame/_traces.py index 62ab82eaa6..1dec007b08 100644 --- a/plotly/validators/frame/_traces.py +++ b/plotly/validators/frame/_traces.py @@ -1,8 +1,9 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TracesValidator(_plotly_utils.basevalidators.AnyValidator): + +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 - ) + super().__init__(plotly_name, parent_name, **kwargs) diff --git a/plotly/validators/funnel/__init__.py b/plotly/validators/funnel/__init__.py index b1419916a7..dc46db3e25 100644 --- a/plotly/validators/funnel/__init__.py +++ b/plotly/validators/funnel/__init__.py @@ -1,145 +1,75 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zorder import ZorderValidator - from ._ysrc import YsrcValidator - from ._yperiodalignment import YperiodalignmentValidator - from ._yperiod0 import Yperiod0Validator - from ._yperiod import YperiodValidator - from ._yhoverformat import YhoverformatValidator - from ._yaxis import YaxisValidator - from ._y0 import Y0Validator - from ._y import YValidator - from ._xsrc import XsrcValidator - from ._xperiodalignment import XperiodalignmentValidator - from ._xperiod0 import Xperiod0Validator - from ._xperiod import XperiodValidator - from ._xhoverformat import XhoverformatValidator - from ._xaxis import XaxisValidator - from ._x0 import X0Validator - from ._x import XValidator - from ._width import WidthValidator - from ._visible import VisibleValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._texttemplatesrc import TexttemplatesrcValidator - from ._texttemplate import TexttemplateValidator - from ._textsrc import TextsrcValidator - from ._textpositionsrc import TextpositionsrcValidator - from ._textposition import TextpositionValidator - from ._textinfo import TextinfoValidator - from ._textfont import TextfontValidator - from ._textangle import TextangleValidator - from ._text import TextValidator - from ._stream import StreamValidator - from ._showlegend import ShowlegendValidator - from ._selectedpoints import SelectedpointsValidator - from ._outsidetextfont import OutsidetextfontValidator - from ._orientation import OrientationValidator - from ._opacity import OpacityValidator - from ._offsetgroup import OffsetgroupValidator - from ._offset import OffsetValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._marker import MarkerValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._insidetextfont import InsidetextfontValidator - from ._insidetextanchor import InsidetextanchorValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._dy import DyValidator - from ._dx import DxValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._constraintext import ConstraintextValidator - from ._connector import ConnectorValidator - from ._cliponaxis import CliponaxisValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/funnel/_alignmentgroup.py b/plotly/validators/funnel/_alignmentgroup.py index 24d02b9cc4..ff87d70029 100644 --- a/plotly/validators/funnel/_alignmentgroup.py +++ b/plotly/validators/funnel/_alignmentgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignmentgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/funnel/_cliponaxis.py b/plotly/validators/funnel/_cliponaxis.py index 782dd82532..1a94564fbd 100644 --- a/plotly/validators/funnel/_cliponaxis.py +++ b/plotly/validators/funnel/_cliponaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CliponaxisValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/funnel/_connector.py b/plotly/validators/funnel/_connector.py index dcfae74a8e..eddc64bdc1 100644 --- a/plotly/validators/funnel/_connector.py +++ b/plotly/validators/funnel/_connector.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ConnectorValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/funnel/_constraintext.py b/plotly/validators/funnel/_constraintext.py index b9c504172a..3d7b415c64 100644 --- a/plotly/validators/funnel/_constraintext.py +++ b/plotly/validators/funnel/_constraintext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ConstraintextValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["inside", "outside", "both", "none"]), **kwargs, diff --git a/plotly/validators/funnel/_customdata.py b/plotly/validators/funnel/_customdata.py index 18d87b1b23..b66000a454 100644 --- a/plotly/validators/funnel/_customdata.py +++ b/plotly/validators/funnel/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/funnel/_customdatasrc.py b/plotly/validators/funnel/_customdatasrc.py index b417537aa1..cf1777d0e5 100644 --- a/plotly/validators/funnel/_customdatasrc.py +++ b/plotly/validators/funnel/_customdatasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/_dx.py b/plotly/validators/funnel/_dx.py index f7eac3eabb..33cfe60868 100644 --- a/plotly/validators/funnel/_dx.py +++ b/plotly/validators/funnel/_dx.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/funnel/_dy.py b/plotly/validators/funnel/_dy.py index 87e3db91f5..7f7fcd8260 100644 --- a/plotly/validators/funnel/_dy.py +++ b/plotly/validators/funnel/_dy.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DyValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/funnel/_hoverinfo.py b/plotly/validators/funnel/_hoverinfo.py index c234a2398c..ce3680a4df 100644 --- a/plotly/validators/funnel/_hoverinfo.py +++ b/plotly/validators/funnel/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/funnel/_hoverinfosrc.py b/plotly/validators/funnel/_hoverinfosrc.py index f7497e22ec..5f9a5a0d8d 100644 --- a/plotly/validators/funnel/_hoverinfosrc.py +++ b/plotly/validators/funnel/_hoverinfosrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/_hoverlabel.py b/plotly/validators/funnel/_hoverlabel.py index 4ce89b79e7..0087d0d857 100644 --- a/plotly/validators/funnel/_hoverlabel.py +++ b/plotly/validators/funnel/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/funnel/_hovertemplate.py b/plotly/validators/funnel/_hovertemplate.py index 647fcbf654..263a58e91f 100644 --- a/plotly/validators/funnel/_hovertemplate.py +++ b/plotly/validators/funnel/_hovertemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/funnel/_hovertemplatesrc.py b/plotly/validators/funnel/_hovertemplatesrc.py index 4e797b08e5..908cad6830 100644 --- a/plotly/validators/funnel/_hovertemplatesrc.py +++ b/plotly/validators/funnel/_hovertemplatesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/_hovertext.py b/plotly/validators/funnel/_hovertext.py index b08f4031db..786b616f32 100644 --- a/plotly/validators/funnel/_hovertext.py +++ b/plotly/validators/funnel/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/funnel/_hovertextsrc.py b/plotly/validators/funnel/_hovertextsrc.py index 9b690df937..a5c44c3495 100644 --- a/plotly/validators/funnel/_hovertextsrc.py +++ b/plotly/validators/funnel/_hovertextsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/_ids.py b/plotly/validators/funnel/_ids.py index ffda10bed5..2bf0d37bbf 100644 --- a/plotly/validators/funnel/_ids.py +++ b/plotly/validators/funnel/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/funnel/_idssrc.py b/plotly/validators/funnel/_idssrc.py index 9cdfed9e49..86dcbf28f5 100644 --- a/plotly/validators/funnel/_idssrc.py +++ b/plotly/validators/funnel/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/_insidetextanchor.py b/plotly/validators/funnel/_insidetextanchor.py index 7902fe0e81..f54682eacd 100644 --- a/plotly/validators/funnel/_insidetextanchor.py +++ b/plotly/validators/funnel/_insidetextanchor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class InsidetextanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["end", "middle", "start"]), **kwargs, diff --git a/plotly/validators/funnel/_insidetextfont.py b/plotly/validators/funnel/_insidetextfont.py index f20bb91ac5..6cdcb3d05f 100644 --- a/plotly/validators/funnel/_insidetextfont.py +++ b/plotly/validators/funnel/_insidetextfont.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class InsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Insidetextfont"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/funnel/_legend.py b/plotly/validators/funnel/_legend.py index 44b53d5a1c..8974f6ec69 100644 --- a/plotly/validators/funnel/_legend.py +++ b/plotly/validators/funnel/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/funnel/_legendgroup.py b/plotly/validators/funnel/_legendgroup.py index 6105b1693b..7c2f3c93e6 100644 --- a/plotly/validators/funnel/_legendgroup.py +++ b/plotly/validators/funnel/_legendgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/funnel/_legendgrouptitle.py b/plotly/validators/funnel/_legendgrouptitle.py index c98e089a7e..f47c4a8959 100644 --- a/plotly/validators/funnel/_legendgrouptitle.py +++ b/plotly/validators/funnel/_legendgrouptitle.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/funnel/_legendrank.py b/plotly/validators/funnel/_legendrank.py index 57202f2670..4b6a7f94f3 100644 --- a/plotly/validators/funnel/_legendrank.py +++ b/plotly/validators/funnel/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/funnel/_legendwidth.py b/plotly/validators/funnel/_legendwidth.py index fedb0ccf64..810d139ea2 100644 --- a/plotly/validators/funnel/_legendwidth.py +++ b/plotly/validators/funnel/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/funnel/_marker.py b/plotly/validators/funnel/_marker.py index daee497c33..4fdc868a79 100644 --- a/plotly/validators/funnel/_marker.py +++ b/plotly/validators/funnel/_marker.py @@ -1,110 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/funnel/_meta.py b/plotly/validators/funnel/_meta.py index 5391c67330..0baee96cd8 100644 --- a/plotly/validators/funnel/_meta.py +++ b/plotly/validators/funnel/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/funnel/_metasrc.py b/plotly/validators/funnel/_metasrc.py index 816255d84b..6784edf5d4 100644 --- a/plotly/validators/funnel/_metasrc.py +++ b/plotly/validators/funnel/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/_name.py b/plotly/validators/funnel/_name.py index bd6f7cd8b9..59f20a2ab4 100644 --- a/plotly/validators/funnel/_name.py +++ b/plotly/validators/funnel/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/funnel/_offset.py b/plotly/validators/funnel/_offset.py index 32304632b4..06f21aae1a 100644 --- a/plotly/validators/funnel/_offset.py +++ b/plotly/validators/funnel/_offset.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OffsetValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/funnel/_offsetgroup.py b/plotly/validators/funnel/_offsetgroup.py index fa7e6fe6fb..4c1971961a 100644 --- a/plotly/validators/funnel/_offsetgroup.py +++ b/plotly/validators/funnel/_offsetgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OffsetgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/funnel/_opacity.py b/plotly/validators/funnel/_opacity.py index e55a8c6088..8ad53435e7 100644 --- a/plotly/validators/funnel/_opacity.py +++ b/plotly/validators/funnel/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/funnel/_orientation.py b/plotly/validators/funnel/_orientation.py index a2702c1bcb..9f92565662 100644 --- a/plotly/validators/funnel/_orientation.py +++ b/plotly/validators/funnel/_orientation.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), values=kwargs.pop("values", ["v", "h"]), **kwargs, diff --git a/plotly/validators/funnel/_outsidetextfont.py b/plotly/validators/funnel/_outsidetextfont.py index 809be87ae6..bb490f7aa5 100644 --- a/plotly/validators/funnel/_outsidetextfont.py +++ b/plotly/validators/funnel/_outsidetextfont.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Outsidetextfont"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/funnel/_selectedpoints.py b/plotly/validators/funnel/_selectedpoints.py index f7e58cde44..cf6c64cb77 100644 --- a/plotly/validators/funnel/_selectedpoints.py +++ b/plotly/validators/funnel/_selectedpoints.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/funnel/_showlegend.py b/plotly/validators/funnel/_showlegend.py index d8decff8e3..5a70468a38 100644 --- a/plotly/validators/funnel/_showlegend.py +++ b/plotly/validators/funnel/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/funnel/_stream.py b/plotly/validators/funnel/_stream.py index fc34904fda..649b2087a4 100644 --- a/plotly/validators/funnel/_stream.py +++ b/plotly/validators/funnel/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/funnel/_text.py b/plotly/validators/funnel/_text.py index 0cf076e98e..73fa093baf 100644 --- a/plotly/validators/funnel/_text.py +++ b/plotly/validators/funnel/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/funnel/_textangle.py b/plotly/validators/funnel/_textangle.py index 331e22077c..7138a691d2 100644 --- a/plotly/validators/funnel/_textangle.py +++ b/plotly/validators/funnel/_textangle.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/funnel/_textfont.py b/plotly/validators/funnel/_textfont.py index 8b9e2dfaee..5abb586489 100644 --- a/plotly/validators/funnel/_textfont.py +++ b/plotly/validators/funnel/_textfont.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/funnel/_textinfo.py b/plotly/validators/funnel/_textinfo.py index 7931d3e4bb..8fc859fb43 100644 --- a/plotly/validators/funnel/_textinfo.py +++ b/plotly/validators/funnel/_textinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/funnel/_textposition.py b/plotly/validators/funnel/_textposition.py index 5c31777eaa..8dd83ff28d 100644 --- a/plotly/validators/funnel/_textposition.py +++ b/plotly/validators/funnel/_textposition.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/funnel/_textpositionsrc.py b/plotly/validators/funnel/_textpositionsrc.py index a6d94989d2..7edc46a1b4 100644 --- a/plotly/validators/funnel/_textpositionsrc.py +++ b/plotly/validators/funnel/_textpositionsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/_textsrc.py b/plotly/validators/funnel/_textsrc.py index 032c812700..82f52957e3 100644 --- a/plotly/validators/funnel/_textsrc.py +++ b/plotly/validators/funnel/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/_texttemplate.py b/plotly/validators/funnel/_texttemplate.py index 3f5ea520be..e43893947a 100644 --- a/plotly/validators/funnel/_texttemplate.py +++ b/plotly/validators/funnel/_texttemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/funnel/_texttemplatesrc.py b/plotly/validators/funnel/_texttemplatesrc.py index 32f40e2baa..936281f6ee 100644 --- a/plotly/validators/funnel/_texttemplatesrc.py +++ b/plotly/validators/funnel/_texttemplatesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/_uid.py b/plotly/validators/funnel/_uid.py index 6658bc6823..456aea8b32 100644 --- a/plotly/validators/funnel/_uid.py +++ b/plotly/validators/funnel/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/funnel/_uirevision.py b/plotly/validators/funnel/_uirevision.py index 8a0c44d507..24dc44f68b 100644 --- a/plotly/validators/funnel/_uirevision.py +++ b/plotly/validators/funnel/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/_visible.py b/plotly/validators/funnel/_visible.py index 4215a2cb63..74dfd24109 100644 --- a/plotly/validators/funnel/_visible.py +++ b/plotly/validators/funnel/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/funnel/_width.py b/plotly/validators/funnel/_width.py index e37747e15d..fa171bd627 100644 --- a/plotly/validators/funnel/_width.py +++ b/plotly/validators/funnel/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/funnel/_x.py b/plotly/validators/funnel/_x.py index 096d75b61d..0589c0b33c 100644 --- a/plotly/validators/funnel/_x.py +++ b/plotly/validators/funnel/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/funnel/_x0.py b/plotly/validators/funnel/_x0.py index 1210b81714..6309f2acf4 100644 --- a/plotly/validators/funnel/_x0.py +++ b/plotly/validators/funnel/_x0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class X0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/funnel/_xaxis.py b/plotly/validators/funnel/_xaxis.py index 25241092ec..6078fcccc3 100644 --- a/plotly/validators/funnel/_xaxis.py +++ b/plotly/validators/funnel/_xaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "x"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/funnel/_xhoverformat.py b/plotly/validators/funnel/_xhoverformat.py index cd454d0b86..8ab258a983 100644 --- a/plotly/validators/funnel/_xhoverformat.py +++ b/plotly/validators/funnel/_xhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/_xperiod.py b/plotly/validators/funnel/_xperiod.py index ec89b5c743..a5f615e369 100644 --- a/plotly/validators/funnel/_xperiod.py +++ b/plotly/validators/funnel/_xperiod.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XperiodValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/funnel/_xperiod0.py b/plotly/validators/funnel/_xperiod0.py index 6a10271918..9cc88d9826 100644 --- a/plotly/validators/funnel/_xperiod0.py +++ b/plotly/validators/funnel/_xperiod0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Xperiod0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/funnel/_xperiodalignment.py b/plotly/validators/funnel/_xperiodalignment.py index 21e9bfff78..a3b933b212 100644 --- a/plotly/validators/funnel/_xperiodalignment.py +++ b/plotly/validators/funnel/_xperiodalignment.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["start", "middle", "end"]), **kwargs, diff --git a/plotly/validators/funnel/_xsrc.py b/plotly/validators/funnel/_xsrc.py index 6ea7e1691a..8175be7b90 100644 --- a/plotly/validators/funnel/_xsrc.py +++ b/plotly/validators/funnel/_xsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/_y.py b/plotly/validators/funnel/_y.py index ea1d2d34bb..b5dc917abf 100644 --- a/plotly/validators/funnel/_y.py +++ b/plotly/validators/funnel/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/funnel/_y0.py b/plotly/validators/funnel/_y0.py index eca2d44430..b3cf204fd5 100644 --- a/plotly/validators/funnel/_y0.py +++ b/plotly/validators/funnel/_y0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Y0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/funnel/_yaxis.py b/plotly/validators/funnel/_yaxis.py index 435f2f58d8..468740fc02 100644 --- a/plotly/validators/funnel/_yaxis.py +++ b/plotly/validators/funnel/_yaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "y"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/funnel/_yhoverformat.py b/plotly/validators/funnel/_yhoverformat.py index b345b8fd2b..f1d7881517 100644 --- a/plotly/validators/funnel/_yhoverformat.py +++ b/plotly/validators/funnel/_yhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/_yperiod.py b/plotly/validators/funnel/_yperiod.py index 4d4acd7015..c36687fae7 100644 --- a/plotly/validators/funnel/_yperiod.py +++ b/plotly/validators/funnel/_yperiod.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YperiodValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/funnel/_yperiod0.py b/plotly/validators/funnel/_yperiod0.py index f385d9d406..c0edca1d6f 100644 --- a/plotly/validators/funnel/_yperiod0.py +++ b/plotly/validators/funnel/_yperiod0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Yperiod0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/funnel/_yperiodalignment.py b/plotly/validators/funnel/_yperiodalignment.py index 426f9b735e..0167e45bb6 100644 --- a/plotly/validators/funnel/_yperiodalignment.py +++ b/plotly/validators/funnel/_yperiodalignment.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["start", "middle", "end"]), **kwargs, diff --git a/plotly/validators/funnel/_ysrc.py b/plotly/validators/funnel/_ysrc.py index d8b47119b8..e552c2e92f 100644 --- a/plotly/validators/funnel/_ysrc.py +++ b/plotly/validators/funnel/_ysrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/_zorder.py b/plotly/validators/funnel/_zorder.py index 87ecc16c1a..6acb86aecf 100644 --- a/plotly/validators/funnel/_zorder.py +++ b/plotly/validators/funnel/_zorder.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZorderValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/funnel/connector/__init__.py b/plotly/validators/funnel/connector/__init__.py index bdf63f319c..2e910a4ea5 100644 --- a/plotly/validators/funnel/connector/__init__.py +++ b/plotly/validators/funnel/connector/__init__.py @@ -1,19 +1,12 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._visible.VisibleValidator", + "._line.LineValidator", + "._fillcolor.FillcolorValidator", + ], +) diff --git a/plotly/validators/funnel/connector/_fillcolor.py b/plotly/validators/funnel/connector/_fillcolor.py index 6ec434238c..65c9967c42 100644 --- a/plotly/validators/funnel/connector/_fillcolor.py +++ b/plotly/validators/funnel/connector/_fillcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/funnel/connector/_line.py b/plotly/validators/funnel/connector/_line.py index f4a61501b0..24bf63b65c 100644 --- a/plotly/validators/funnel/connector/_line.py +++ b/plotly/validators/funnel/connector/_line.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/funnel/connector/_visible.py b/plotly/validators/funnel/connector/_visible.py index 6210b0b1fe..6b1124a179 100644 --- a/plotly/validators/funnel/connector/_visible.py +++ b/plotly/validators/funnel/connector/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/funnel/connector/line/__init__.py b/plotly/validators/funnel/connector/line/__init__.py index cff4146651..c5140ef758 100644 --- a/plotly/validators/funnel/connector/line/__init__.py +++ b/plotly/validators/funnel/connector/line/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._width.WidthValidator", "._dash.DashValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/funnel/connector/line/_color.py b/plotly/validators/funnel/connector/line/_color.py index 8f31ff90b7..c09f33aa4f 100644 --- a/plotly/validators/funnel/connector/line/_color.py +++ b/plotly/validators/funnel/connector/line/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/funnel/connector/line/_dash.py b/plotly/validators/funnel/connector/line/_dash.py index ade52e5070..f9a207ce05 100644 --- a/plotly/validators/funnel/connector/line/_dash.py +++ b/plotly/validators/funnel/connector/line/_dash.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/funnel/connector/line/_width.py b/plotly/validators/funnel/connector/line/_width.py index 3cf198a009..961a77aca5 100644 --- a/plotly/validators/funnel/connector/line/_width.py +++ b/plotly/validators/funnel/connector/line/_width.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/funnel/hoverlabel/__init__.py b/plotly/validators/funnel/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/funnel/hoverlabel/__init__.py +++ b/plotly/validators/funnel/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/funnel/hoverlabel/_align.py b/plotly/validators/funnel/hoverlabel/_align.py index d6b9395922..0f9502fac2 100644 --- a/plotly/validators/funnel/hoverlabel/_align.py +++ b/plotly/validators/funnel/hoverlabel/_align.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/funnel/hoverlabel/_alignsrc.py b/plotly/validators/funnel/hoverlabel/_alignsrc.py index 5e6126824f..aff4bf0963 100644 --- a/plotly/validators/funnel/hoverlabel/_alignsrc.py +++ b/plotly/validators/funnel/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/hoverlabel/_bgcolor.py b/plotly/validators/funnel/hoverlabel/_bgcolor.py index f8d3cc5813..f92451511c 100644 --- a/plotly/validators/funnel/hoverlabel/_bgcolor.py +++ b/plotly/validators/funnel/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/funnel/hoverlabel/_bgcolorsrc.py b/plotly/validators/funnel/hoverlabel/_bgcolorsrc.py index 63595fc3d6..df1d3bbf54 100644 --- a/plotly/validators/funnel/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/funnel/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/hoverlabel/_bordercolor.py b/plotly/validators/funnel/hoverlabel/_bordercolor.py index 75fdace141..c4bf952a5a 100644 --- a/plotly/validators/funnel/hoverlabel/_bordercolor.py +++ b/plotly/validators/funnel/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/funnel/hoverlabel/_bordercolorsrc.py b/plotly/validators/funnel/hoverlabel/_bordercolorsrc.py index 2444253abf..d223ca6294 100644 --- a/plotly/validators/funnel/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/funnel/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/hoverlabel/_font.py b/plotly/validators/funnel/hoverlabel/_font.py index e5ddeeb75d..2eac401dad 100644 --- a/plotly/validators/funnel/hoverlabel/_font.py +++ b/plotly/validators/funnel/hoverlabel/_font.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/funnel/hoverlabel/_namelength.py b/plotly/validators/funnel/hoverlabel/_namelength.py index fcd607c1bb..f77e6b47c5 100644 --- a/plotly/validators/funnel/hoverlabel/_namelength.py +++ b/plotly/validators/funnel/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/funnel/hoverlabel/_namelengthsrc.py b/plotly/validators/funnel/hoverlabel/_namelengthsrc.py index e7373d4fad..ae88524d60 100644 --- a/plotly/validators/funnel/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/funnel/hoverlabel/_namelengthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/hoverlabel/font/__init__.py b/plotly/validators/funnel/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/funnel/hoverlabel/font/__init__.py +++ b/plotly/validators/funnel/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/funnel/hoverlabel/font/_color.py b/plotly/validators/funnel/hoverlabel/font/_color.py index d01fb78fdd..f83d7ae588 100644 --- a/plotly/validators/funnel/hoverlabel/font/_color.py +++ b/plotly/validators/funnel/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/funnel/hoverlabel/font/_colorsrc.py b/plotly/validators/funnel/hoverlabel/font/_colorsrc.py index 56910e140d..1dc46cd095 100644 --- a/plotly/validators/funnel/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/funnel/hoverlabel/font/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/hoverlabel/font/_family.py b/plotly/validators/funnel/hoverlabel/font/_family.py index af699127b7..a6e367a9c7 100644 --- a/plotly/validators/funnel/hoverlabel/font/_family.py +++ b/plotly/validators/funnel/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/funnel/hoverlabel/font/_familysrc.py b/plotly/validators/funnel/hoverlabel/font/_familysrc.py index 28c77ffa37..e03449f15d 100644 --- a/plotly/validators/funnel/hoverlabel/font/_familysrc.py +++ b/plotly/validators/funnel/hoverlabel/font/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/hoverlabel/font/_lineposition.py b/plotly/validators/funnel/hoverlabel/font/_lineposition.py index d2a8a3380e..b29a3639d3 100644 --- a/plotly/validators/funnel/hoverlabel/font/_lineposition.py +++ b/plotly/validators/funnel/hoverlabel/font/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/funnel/hoverlabel/font/_linepositionsrc.py b/plotly/validators/funnel/hoverlabel/font/_linepositionsrc.py index a1b1679e0a..aa9686c077 100644 --- a/plotly/validators/funnel/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/funnel/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/hoverlabel/font/_shadow.py b/plotly/validators/funnel/hoverlabel/font/_shadow.py index b7db191e25..cc6f55bdfd 100644 --- a/plotly/validators/funnel/hoverlabel/font/_shadow.py +++ b/plotly/validators/funnel/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/funnel/hoverlabel/font/_shadowsrc.py b/plotly/validators/funnel/hoverlabel/font/_shadowsrc.py index 9f85f9b20e..1b748278e9 100644 --- a/plotly/validators/funnel/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/funnel/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/hoverlabel/font/_size.py b/plotly/validators/funnel/hoverlabel/font/_size.py index 08be9ea71e..86f6fb6ed0 100644 --- a/plotly/validators/funnel/hoverlabel/font/_size.py +++ b/plotly/validators/funnel/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/funnel/hoverlabel/font/_sizesrc.py b/plotly/validators/funnel/hoverlabel/font/_sizesrc.py index e3b66273fe..84fa51a569 100644 --- a/plotly/validators/funnel/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/funnel/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/hoverlabel/font/_style.py b/plotly/validators/funnel/hoverlabel/font/_style.py index 5570714b63..4e4712d459 100644 --- a/plotly/validators/funnel/hoverlabel/font/_style.py +++ b/plotly/validators/funnel/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/funnel/hoverlabel/font/_stylesrc.py b/plotly/validators/funnel/hoverlabel/font/_stylesrc.py index 38a4f118cb..218f0aa834 100644 --- a/plotly/validators/funnel/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/funnel/hoverlabel/font/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/hoverlabel/font/_textcase.py b/plotly/validators/funnel/hoverlabel/font/_textcase.py index 877a61174f..183b620b14 100644 --- a/plotly/validators/funnel/hoverlabel/font/_textcase.py +++ b/plotly/validators/funnel/hoverlabel/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/funnel/hoverlabel/font/_textcasesrc.py b/plotly/validators/funnel/hoverlabel/font/_textcasesrc.py index b266fa6844..08b9900257 100644 --- a/plotly/validators/funnel/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/funnel/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/hoverlabel/font/_variant.py b/plotly/validators/funnel/hoverlabel/font/_variant.py index 3a201945aa..e5a0788a2a 100644 --- a/plotly/validators/funnel/hoverlabel/font/_variant.py +++ b/plotly/validators/funnel/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/funnel/hoverlabel/font/_variantsrc.py b/plotly/validators/funnel/hoverlabel/font/_variantsrc.py index 4f3a4ad4fc..b7f6d92f10 100644 --- a/plotly/validators/funnel/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/funnel/hoverlabel/font/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/hoverlabel/font/_weight.py b/plotly/validators/funnel/hoverlabel/font/_weight.py index 60d07bead5..a7e53ea090 100644 --- a/plotly/validators/funnel/hoverlabel/font/_weight.py +++ b/plotly/validators/funnel/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/funnel/hoverlabel/font/_weightsrc.py b/plotly/validators/funnel/hoverlabel/font/_weightsrc.py index 37e4dd28b9..e1866ccf50 100644 --- a/plotly/validators/funnel/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/funnel/hoverlabel/font/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/insidetextfont/__init__.py b/plotly/validators/funnel/insidetextfont/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/funnel/insidetextfont/__init__.py +++ b/plotly/validators/funnel/insidetextfont/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/funnel/insidetextfont/_color.py b/plotly/validators/funnel/insidetextfont/_color.py index 54d5e05583..37e834d462 100644 --- a/plotly/validators/funnel/insidetextfont/_color.py +++ b/plotly/validators/funnel/insidetextfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/funnel/insidetextfont/_colorsrc.py b/plotly/validators/funnel/insidetextfont/_colorsrc.py index 55ebdda24f..038ea6fc27 100644 --- a/plotly/validators/funnel/insidetextfont/_colorsrc.py +++ b/plotly/validators/funnel/insidetextfont/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/insidetextfont/_family.py b/plotly/validators/funnel/insidetextfont/_family.py index 3da355fd9e..fb92eb720a 100644 --- a/plotly/validators/funnel/insidetextfont/_family.py +++ b/plotly/validators/funnel/insidetextfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/funnel/insidetextfont/_familysrc.py b/plotly/validators/funnel/insidetextfont/_familysrc.py index c93b3427c4..d6ec13ef94 100644 --- a/plotly/validators/funnel/insidetextfont/_familysrc.py +++ b/plotly/validators/funnel/insidetextfont/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/insidetextfont/_lineposition.py b/plotly/validators/funnel/insidetextfont/_lineposition.py index 5b569e0ad8..bf11ac8690 100644 --- a/plotly/validators/funnel/insidetextfont/_lineposition.py +++ b/plotly/validators/funnel/insidetextfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/funnel/insidetextfont/_linepositionsrc.py b/plotly/validators/funnel/insidetextfont/_linepositionsrc.py index fbcc2800d3..0e8d4c63cb 100644 --- a/plotly/validators/funnel/insidetextfont/_linepositionsrc.py +++ b/plotly/validators/funnel/insidetextfont/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/insidetextfont/_shadow.py b/plotly/validators/funnel/insidetextfont/_shadow.py index 56cce12dd3..1dca4d429e 100644 --- a/plotly/validators/funnel/insidetextfont/_shadow.py +++ b/plotly/validators/funnel/insidetextfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/funnel/insidetextfont/_shadowsrc.py b/plotly/validators/funnel/insidetextfont/_shadowsrc.py index 69d76bfa04..8de684fbe3 100644 --- a/plotly/validators/funnel/insidetextfont/_shadowsrc.py +++ b/plotly/validators/funnel/insidetextfont/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/insidetextfont/_size.py b/plotly/validators/funnel/insidetextfont/_size.py index b9f387d7c9..931a7402a2 100644 --- a/plotly/validators/funnel/insidetextfont/_size.py +++ b/plotly/validators/funnel/insidetextfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/funnel/insidetextfont/_sizesrc.py b/plotly/validators/funnel/insidetextfont/_sizesrc.py index 35d5184c53..edfb550f31 100644 --- a/plotly/validators/funnel/insidetextfont/_sizesrc.py +++ b/plotly/validators/funnel/insidetextfont/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/insidetextfont/_style.py b/plotly/validators/funnel/insidetextfont/_style.py index 0b37a49206..72ef0e680b 100644 --- a/plotly/validators/funnel/insidetextfont/_style.py +++ b/plotly/validators/funnel/insidetextfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/funnel/insidetextfont/_stylesrc.py b/plotly/validators/funnel/insidetextfont/_stylesrc.py index 17f24ed368..b9fe137143 100644 --- a/plotly/validators/funnel/insidetextfont/_stylesrc.py +++ b/plotly/validators/funnel/insidetextfont/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/insidetextfont/_textcase.py b/plotly/validators/funnel/insidetextfont/_textcase.py index aab0c482d5..8f595d19bd 100644 --- a/plotly/validators/funnel/insidetextfont/_textcase.py +++ b/plotly/validators/funnel/insidetextfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/funnel/insidetextfont/_textcasesrc.py b/plotly/validators/funnel/insidetextfont/_textcasesrc.py index 88c9e81d4c..b204a415c5 100644 --- a/plotly/validators/funnel/insidetextfont/_textcasesrc.py +++ b/plotly/validators/funnel/insidetextfont/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/insidetextfont/_variant.py b/plotly/validators/funnel/insidetextfont/_variant.py index f6c8324854..48af056206 100644 --- a/plotly/validators/funnel/insidetextfont/_variant.py +++ b/plotly/validators/funnel/insidetextfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( diff --git a/plotly/validators/funnel/insidetextfont/_variantsrc.py b/plotly/validators/funnel/insidetextfont/_variantsrc.py index b2351c3c84..d85eae2698 100644 --- a/plotly/validators/funnel/insidetextfont/_variantsrc.py +++ b/plotly/validators/funnel/insidetextfont/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/insidetextfont/_weight.py b/plotly/validators/funnel/insidetextfont/_weight.py index 8af1deacd1..d3e710102f 100644 --- a/plotly/validators/funnel/insidetextfont/_weight.py +++ b/plotly/validators/funnel/insidetextfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/funnel/insidetextfont/_weightsrc.py b/plotly/validators/funnel/insidetextfont/_weightsrc.py index 39f6aa90f1..c9c4746b0d 100644 --- a/plotly/validators/funnel/insidetextfont/_weightsrc.py +++ b/plotly/validators/funnel/insidetextfont/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/legendgrouptitle/__init__.py b/plotly/validators/funnel/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/funnel/legendgrouptitle/__init__.py +++ b/plotly/validators/funnel/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/funnel/legendgrouptitle/_font.py b/plotly/validators/funnel/legendgrouptitle/_font.py index 0afba14bfa..0a95c1b56c 100644 --- a/plotly/validators/funnel/legendgrouptitle/_font.py +++ b/plotly/validators/funnel/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/funnel/legendgrouptitle/_text.py b/plotly/validators/funnel/legendgrouptitle/_text.py index 81e0e984c9..ab22175729 100644 --- a/plotly/validators/funnel/legendgrouptitle/_text.py +++ b/plotly/validators/funnel/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/funnel/legendgrouptitle/font/__init__.py b/plotly/validators/funnel/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/funnel/legendgrouptitle/font/__init__.py +++ b/plotly/validators/funnel/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/funnel/legendgrouptitle/font/_color.py b/plotly/validators/funnel/legendgrouptitle/font/_color.py index 23bffa398b..66b540a923 100644 --- a/plotly/validators/funnel/legendgrouptitle/font/_color.py +++ b/plotly/validators/funnel/legendgrouptitle/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/funnel/legendgrouptitle/font/_family.py b/plotly/validators/funnel/legendgrouptitle/font/_family.py index b206ee853d..e5812e7d79 100644 --- a/plotly/validators/funnel/legendgrouptitle/font/_family.py +++ b/plotly/validators/funnel/legendgrouptitle/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/funnel/legendgrouptitle/font/_lineposition.py b/plotly/validators/funnel/legendgrouptitle/font/_lineposition.py index 38a7cbf4ac..817f560e61 100644 --- a/plotly/validators/funnel/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/funnel/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/funnel/legendgrouptitle/font/_shadow.py b/plotly/validators/funnel/legendgrouptitle/font/_shadow.py index dc1c429b40..f0f1849e1c 100644 --- a/plotly/validators/funnel/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/funnel/legendgrouptitle/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/funnel/legendgrouptitle/font/_size.py b/plotly/validators/funnel/legendgrouptitle/font/_size.py index 1f885ea446..e685b7c9e2 100644 --- a/plotly/validators/funnel/legendgrouptitle/font/_size.py +++ b/plotly/validators/funnel/legendgrouptitle/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/funnel/legendgrouptitle/font/_style.py b/plotly/validators/funnel/legendgrouptitle/font/_style.py index 95a058837a..26a2bda6a6 100644 --- a/plotly/validators/funnel/legendgrouptitle/font/_style.py +++ b/plotly/validators/funnel/legendgrouptitle/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/funnel/legendgrouptitle/font/_textcase.py b/plotly/validators/funnel/legendgrouptitle/font/_textcase.py index ea9f8d77d1..ab54a19e07 100644 --- a/plotly/validators/funnel/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/funnel/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/funnel/legendgrouptitle/font/_variant.py b/plotly/validators/funnel/legendgrouptitle/font/_variant.py index 162184ef86..c99969a928 100644 --- a/plotly/validators/funnel/legendgrouptitle/font/_variant.py +++ b/plotly/validators/funnel/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/funnel/legendgrouptitle/font/_weight.py b/plotly/validators/funnel/legendgrouptitle/font/_weight.py index d6e67034b7..5776335ccb 100644 --- a/plotly/validators/funnel/legendgrouptitle/font/_weight.py +++ b/plotly/validators/funnel/legendgrouptitle/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/funnel/marker/__init__.py b/plotly/validators/funnel/marker/__init__.py index 045be1eae4..b6d36f3fe6 100644 --- a/plotly/validators/funnel/marker/__init__.py +++ b/plotly/validators/funnel/marker/__init__.py @@ -1,43 +1,24 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._showscale import ShowscaleValidator - from ._reversescale import ReversescaleValidator - from ._opacitysrc import OpacitysrcValidator - from ._opacity import OpacityValidator - from ._line import LineValidator - from ._colorsrc import ColorsrcValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._color import ColorValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/funnel/marker/_autocolorscale.py b/plotly/validators/funnel/marker/_autocolorscale.py index 90588188d2..7bb6a6a869 100644 --- a/plotly/validators/funnel/marker/_autocolorscale.py +++ b/plotly/validators/funnel/marker/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/funnel/marker/_cauto.py b/plotly/validators/funnel/marker/_cauto.py index 5c442a6df5..18f4ada354 100644 --- a/plotly/validators/funnel/marker/_cauto.py +++ b/plotly/validators/funnel/marker/_cauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/funnel/marker/_cmax.py b/plotly/validators/funnel/marker/_cmax.py index f8a81fe743..ad775447de 100644 --- a/plotly/validators/funnel/marker/_cmax.py +++ b/plotly/validators/funnel/marker/_cmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/funnel/marker/_cmid.py b/plotly/validators/funnel/marker/_cmid.py index bdf42152e1..abc60ad598 100644 --- a/plotly/validators/funnel/marker/_cmid.py +++ b/plotly/validators/funnel/marker/_cmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/funnel/marker/_cmin.py b/plotly/validators/funnel/marker/_cmin.py index f6142665aa..7abf39e6be 100644 --- a/plotly/validators/funnel/marker/_cmin.py +++ b/plotly/validators/funnel/marker/_cmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/funnel/marker/_color.py b/plotly/validators/funnel/marker/_color.py index 3029a69495..ebd2aee430 100644 --- a/plotly/validators/funnel/marker/_color.py +++ b/plotly/validators/funnel/marker/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_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"), diff --git a/plotly/validators/funnel/marker/_coloraxis.py b/plotly/validators/funnel/marker/_coloraxis.py index ec3f5445c7..abaa8e41dd 100644 --- a/plotly/validators/funnel/marker/_coloraxis.py +++ b/plotly/validators/funnel/marker/_coloraxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/funnel/marker/_colorbar.py b/plotly/validators/funnel/marker/_colorbar.py index 7a865fe874..a4b5377c02 100644 --- a/plotly/validators/funnel/marker/_colorbar.py +++ b/plotly/validators/funnel/marker/_colorbar.py @@ -1,279 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/funnel/marker/_colorscale.py b/plotly/validators/funnel/marker/_colorscale.py index c27a95d4ec..593e1e5d51 100644 --- a/plotly/validators/funnel/marker/_colorscale.py +++ b/plotly/validators/funnel/marker/_colorscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/funnel/marker/_colorsrc.py b/plotly/validators/funnel/marker/_colorsrc.py index b47a0223f6..7474b61f3e 100644 --- a/plotly/validators/funnel/marker/_colorsrc.py +++ b/plotly/validators/funnel/marker/_colorsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/marker/_line.py b/plotly/validators/funnel/marker/_line.py index 97a761091a..edcc645c0d 100644 --- a/plotly/validators/funnel/marker/_line.py +++ b/plotly/validators/funnel/marker/_line.py @@ -1,104 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/funnel/marker/_opacity.py b/plotly/validators/funnel/marker/_opacity.py index 4a64726077..fda6cff923 100644 --- a/plotly/validators/funnel/marker/_opacity.py +++ b/plotly/validators/funnel/marker/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), diff --git a/plotly/validators/funnel/marker/_opacitysrc.py b/plotly/validators/funnel/marker/_opacitysrc.py index 51d6af7fee..418230ba96 100644 --- a/plotly/validators/funnel/marker/_opacitysrc.py +++ b/plotly/validators/funnel/marker/_opacitysrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/marker/_reversescale.py b/plotly/validators/funnel/marker/_reversescale.py index 81299ad36a..f848089e5c 100644 --- a/plotly/validators/funnel/marker/_reversescale.py +++ b/plotly/validators/funnel/marker/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/funnel/marker/_showscale.py b/plotly/validators/funnel/marker/_showscale.py index acc10966dc..b5e554d6b5 100644 --- a/plotly/validators/funnel/marker/_showscale.py +++ b/plotly/validators/funnel/marker/_showscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/funnel/marker/colorbar/__init__.py b/plotly/validators/funnel/marker/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/funnel/marker/colorbar/__init__.py +++ b/plotly/validators/funnel/marker/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/funnel/marker/colorbar/_bgcolor.py b/plotly/validators/funnel/marker/colorbar/_bgcolor.py index cf3b40be1b..ad295a6b4b 100644 --- a/plotly/validators/funnel/marker/colorbar/_bgcolor.py +++ b/plotly/validators/funnel/marker/colorbar/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/funnel/marker/colorbar/_bordercolor.py b/plotly/validators/funnel/marker/colorbar/_bordercolor.py index 8ae1ef4106..2bd46c620d 100644 --- a/plotly/validators/funnel/marker/colorbar/_bordercolor.py +++ b/plotly/validators/funnel/marker/colorbar/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/funnel/marker/colorbar/_borderwidth.py b/plotly/validators/funnel/marker/colorbar/_borderwidth.py index dc730dbc27..d641d0fc09 100644 --- a/plotly/validators/funnel/marker/colorbar/_borderwidth.py +++ b/plotly/validators/funnel/marker/colorbar/_borderwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/funnel/marker/colorbar/_dtick.py b/plotly/validators/funnel/marker/colorbar/_dtick.py index dc438e7f62..17e78bca23 100644 --- a/plotly/validators/funnel/marker/colorbar/_dtick.py +++ b/plotly/validators/funnel/marker/colorbar/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/funnel/marker/colorbar/_exponentformat.py b/plotly/validators/funnel/marker/colorbar/_exponentformat.py index 024e71354f..a2c2293e78 100644 --- a/plotly/validators/funnel/marker/colorbar/_exponentformat.py +++ b/plotly/validators/funnel/marker/colorbar/_exponentformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/funnel/marker/colorbar/_labelalias.py b/plotly/validators/funnel/marker/colorbar/_labelalias.py index f47cd56ad2..7b63915efb 100644 --- a/plotly/validators/funnel/marker/colorbar/_labelalias.py +++ b/plotly/validators/funnel/marker/colorbar/_labelalias.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/funnel/marker/colorbar/_len.py b/plotly/validators/funnel/marker/colorbar/_len.py index eccba11e00..d62fd6620e 100644 --- a/plotly/validators/funnel/marker/colorbar/_len.py +++ b/plotly/validators/funnel/marker/colorbar/_len.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/funnel/marker/colorbar/_lenmode.py b/plotly/validators/funnel/marker/colorbar/_lenmode.py index 184ff1f128..e7c9831fb1 100644 --- a/plotly/validators/funnel/marker/colorbar/_lenmode.py +++ b/plotly/validators/funnel/marker/colorbar/_lenmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/funnel/marker/colorbar/_minexponent.py b/plotly/validators/funnel/marker/colorbar/_minexponent.py index 82b3361aee..7c1191d333 100644 --- a/plotly/validators/funnel/marker/colorbar/_minexponent.py +++ b/plotly/validators/funnel/marker/colorbar/_minexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/funnel/marker/colorbar/_nticks.py b/plotly/validators/funnel/marker/colorbar/_nticks.py index 14ce7707f3..341cbb410b 100644 --- a/plotly/validators/funnel/marker/colorbar/_nticks.py +++ b/plotly/validators/funnel/marker/colorbar/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/funnel/marker/colorbar/_orientation.py b/plotly/validators/funnel/marker/colorbar/_orientation.py index 952e94ec4d..b3b7c1be92 100644 --- a/plotly/validators/funnel/marker/colorbar/_orientation.py +++ b/plotly/validators/funnel/marker/colorbar/_orientation.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/funnel/marker/colorbar/_outlinecolor.py b/plotly/validators/funnel/marker/colorbar/_outlinecolor.py index 0b5c42a8da..fcf16b464f 100644 --- a/plotly/validators/funnel/marker/colorbar/_outlinecolor.py +++ b/plotly/validators/funnel/marker/colorbar/_outlinecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/funnel/marker/colorbar/_outlinewidth.py b/plotly/validators/funnel/marker/colorbar/_outlinewidth.py index 17ee0d297a..331136ed9a 100644 --- a/plotly/validators/funnel/marker/colorbar/_outlinewidth.py +++ b/plotly/validators/funnel/marker/colorbar/_outlinewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/funnel/marker/colorbar/_separatethousands.py b/plotly/validators/funnel/marker/colorbar/_separatethousands.py index 2e8f44fb44..5eec202298 100644 --- a/plotly/validators/funnel/marker/colorbar/_separatethousands.py +++ b/plotly/validators/funnel/marker/colorbar/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/funnel/marker/colorbar/_showexponent.py b/plotly/validators/funnel/marker/colorbar/_showexponent.py index 3a6669fea7..0abf6cb528 100644 --- a/plotly/validators/funnel/marker/colorbar/_showexponent.py +++ b/plotly/validators/funnel/marker/colorbar/_showexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/funnel/marker/colorbar/_showticklabels.py b/plotly/validators/funnel/marker/colorbar/_showticklabels.py index 0197156bf3..d246b2730a 100644 --- a/plotly/validators/funnel/marker/colorbar/_showticklabels.py +++ b/plotly/validators/funnel/marker/colorbar/_showticklabels.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/funnel/marker/colorbar/_showtickprefix.py b/plotly/validators/funnel/marker/colorbar/_showtickprefix.py index 625baf33c4..5eecbfef45 100644 --- a/plotly/validators/funnel/marker/colorbar/_showtickprefix.py +++ b/plotly/validators/funnel/marker/colorbar/_showtickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/funnel/marker/colorbar/_showticksuffix.py b/plotly/validators/funnel/marker/colorbar/_showticksuffix.py index 27ff0cbdd6..4902f6fac5 100644 --- a/plotly/validators/funnel/marker/colorbar/_showticksuffix.py +++ b/plotly/validators/funnel/marker/colorbar/_showticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/funnel/marker/colorbar/_thickness.py b/plotly/validators/funnel/marker/colorbar/_thickness.py index 2722689fc8..451cc2fced 100644 --- a/plotly/validators/funnel/marker/colorbar/_thickness.py +++ b/plotly/validators/funnel/marker/colorbar/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/funnel/marker/colorbar/_thicknessmode.py b/plotly/validators/funnel/marker/colorbar/_thicknessmode.py index 404c653149..35c6a64d3f 100644 --- a/plotly/validators/funnel/marker/colorbar/_thicknessmode.py +++ b/plotly/validators/funnel/marker/colorbar/_thicknessmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/funnel/marker/colorbar/_tick0.py b/plotly/validators/funnel/marker/colorbar/_tick0.py index 99cfa5e2c8..9e6632463a 100644 --- a/plotly/validators/funnel/marker/colorbar/_tick0.py +++ b/plotly/validators/funnel/marker/colorbar/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/funnel/marker/colorbar/_tickangle.py b/plotly/validators/funnel/marker/colorbar/_tickangle.py index f5c2de47a3..8677e39c89 100644 --- a/plotly/validators/funnel/marker/colorbar/_tickangle.py +++ b/plotly/validators/funnel/marker/colorbar/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/funnel/marker/colorbar/_tickcolor.py b/plotly/validators/funnel/marker/colorbar/_tickcolor.py index a403b39de5..c06a46ceed 100644 --- a/plotly/validators/funnel/marker/colorbar/_tickcolor.py +++ b/plotly/validators/funnel/marker/colorbar/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/funnel/marker/colorbar/_tickfont.py b/plotly/validators/funnel/marker/colorbar/_tickfont.py index 53a8f4a905..482e9fb045 100644 --- a/plotly/validators/funnel/marker/colorbar/_tickfont.py +++ b/plotly/validators/funnel/marker/colorbar/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/funnel/marker/colorbar/_tickformat.py b/plotly/validators/funnel/marker/colorbar/_tickformat.py index 72a1fba87a..1ffa719c0e 100644 --- a/plotly/validators/funnel/marker/colorbar/_tickformat.py +++ b/plotly/validators/funnel/marker/colorbar/_tickformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/funnel/marker/colorbar/_tickformatstopdefaults.py b/plotly/validators/funnel/marker/colorbar/_tickformatstopdefaults.py index 8dd34616b7..a159eb906c 100644 --- a/plotly/validators/funnel/marker/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/funnel/marker/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/funnel/marker/colorbar/_tickformatstops.py b/plotly/validators/funnel/marker/colorbar/_tickformatstops.py index b8ecd5491e..c7a0c8f6ac 100644 --- a/plotly/validators/funnel/marker/colorbar/_tickformatstops.py +++ b/plotly/validators/funnel/marker/colorbar/_tickformatstops.py @@ -1,53 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/funnel/marker/colorbar/_ticklabeloverflow.py b/plotly/validators/funnel/marker/colorbar/_ticklabeloverflow.py index b8526c7be1..b1ab4bec1a 100644 --- a/plotly/validators/funnel/marker/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/funnel/marker/colorbar/_ticklabeloverflow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/funnel/marker/colorbar/_ticklabelposition.py b/plotly/validators/funnel/marker/colorbar/_ticklabelposition.py index d713b83cca..4014f31452 100644 --- a/plotly/validators/funnel/marker/colorbar/_ticklabelposition.py +++ b/plotly/validators/funnel/marker/colorbar/_ticklabelposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/funnel/marker/colorbar/_ticklabelstep.py b/plotly/validators/funnel/marker/colorbar/_ticklabelstep.py index 8353a9ce85..24027e065d 100644 --- a/plotly/validators/funnel/marker/colorbar/_ticklabelstep.py +++ b/plotly/validators/funnel/marker/colorbar/_ticklabelstep.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/funnel/marker/colorbar/_ticklen.py b/plotly/validators/funnel/marker/colorbar/_ticklen.py index 0878e830fa..327113e3a5 100644 --- a/plotly/validators/funnel/marker/colorbar/_ticklen.py +++ b/plotly/validators/funnel/marker/colorbar/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/funnel/marker/colorbar/_tickmode.py b/plotly/validators/funnel/marker/colorbar/_tickmode.py index d880beec0f..e9a4c57c95 100644 --- a/plotly/validators/funnel/marker/colorbar/_tickmode.py +++ b/plotly/validators/funnel/marker/colorbar/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/funnel/marker/colorbar/_tickprefix.py b/plotly/validators/funnel/marker/colorbar/_tickprefix.py index faccff6e04..d9a7a45346 100644 --- a/plotly/validators/funnel/marker/colorbar/_tickprefix.py +++ b/plotly/validators/funnel/marker/colorbar/_tickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/funnel/marker/colorbar/_ticks.py b/plotly/validators/funnel/marker/colorbar/_ticks.py index 0d38fb6407..f0c52250f9 100644 --- a/plotly/validators/funnel/marker/colorbar/_ticks.py +++ b/plotly/validators/funnel/marker/colorbar/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/funnel/marker/colorbar/_ticksuffix.py b/plotly/validators/funnel/marker/colorbar/_ticksuffix.py index 9dc395f0dc..9559e9f183 100644 --- a/plotly/validators/funnel/marker/colorbar/_ticksuffix.py +++ b/plotly/validators/funnel/marker/colorbar/_ticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/funnel/marker/colorbar/_ticktext.py b/plotly/validators/funnel/marker/colorbar/_ticktext.py index 44f7d1467f..bd76e543b2 100644 --- a/plotly/validators/funnel/marker/colorbar/_ticktext.py +++ b/plotly/validators/funnel/marker/colorbar/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/funnel/marker/colorbar/_ticktextsrc.py b/plotly/validators/funnel/marker/colorbar/_ticktextsrc.py index f112f01faa..74103914a5 100644 --- a/plotly/validators/funnel/marker/colorbar/_ticktextsrc.py +++ b/plotly/validators/funnel/marker/colorbar/_ticktextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/marker/colorbar/_tickvals.py b/plotly/validators/funnel/marker/colorbar/_tickvals.py index a97f713b49..8254b2fb63 100644 --- a/plotly/validators/funnel/marker/colorbar/_tickvals.py +++ b/plotly/validators/funnel/marker/colorbar/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/funnel/marker/colorbar/_tickvalssrc.py b/plotly/validators/funnel/marker/colorbar/_tickvalssrc.py index a88a0e4d00..ad3e03c8c6 100644 --- a/plotly/validators/funnel/marker/colorbar/_tickvalssrc.py +++ b/plotly/validators/funnel/marker/colorbar/_tickvalssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/marker/colorbar/_tickwidth.py b/plotly/validators/funnel/marker/colorbar/_tickwidth.py index 3aeac08dad..ce3b7c0037 100644 --- a/plotly/validators/funnel/marker/colorbar/_tickwidth.py +++ b/plotly/validators/funnel/marker/colorbar/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/funnel/marker/colorbar/_title.py b/plotly/validators/funnel/marker/colorbar/_title.py index 2ee3292cab..0e25d6ee42 100644 --- a/plotly/validators/funnel/marker/colorbar/_title.py +++ b/plotly/validators/funnel/marker/colorbar/_title.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/funnel/marker/colorbar/_x.py b/plotly/validators/funnel/marker/colorbar/_x.py index 9b672ee07d..57a90323fb 100644 --- a/plotly/validators/funnel/marker/colorbar/_x.py +++ b/plotly/validators/funnel/marker/colorbar/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/funnel/marker/colorbar/_xanchor.py b/plotly/validators/funnel/marker/colorbar/_xanchor.py index 360738a808..9494d83c3a 100644 --- a/plotly/validators/funnel/marker/colorbar/_xanchor.py +++ b/plotly/validators/funnel/marker/colorbar/_xanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/funnel/marker/colorbar/_xpad.py b/plotly/validators/funnel/marker/colorbar/_xpad.py index 4b9ac0239a..c22411a6d7 100644 --- a/plotly/validators/funnel/marker/colorbar/_xpad.py +++ b/plotly/validators/funnel/marker/colorbar/_xpad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/funnel/marker/colorbar/_xref.py b/plotly/validators/funnel/marker/colorbar/_xref.py index 31e43cc3d1..d943a9d431 100644 --- a/plotly/validators/funnel/marker/colorbar/_xref.py +++ b/plotly/validators/funnel/marker/colorbar/_xref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/funnel/marker/colorbar/_y.py b/plotly/validators/funnel/marker/colorbar/_y.py index 979316ea1a..9b1e38ae3f 100644 --- a/plotly/validators/funnel/marker/colorbar/_y.py +++ b/plotly/validators/funnel/marker/colorbar/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/funnel/marker/colorbar/_yanchor.py b/plotly/validators/funnel/marker/colorbar/_yanchor.py index 94d2be5eef..0fd598dd69 100644 --- a/plotly/validators/funnel/marker/colorbar/_yanchor.py +++ b/plotly/validators/funnel/marker/colorbar/_yanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/funnel/marker/colorbar/_ypad.py b/plotly/validators/funnel/marker/colorbar/_ypad.py index 532ffe1ca2..be540b94fc 100644 --- a/plotly/validators/funnel/marker/colorbar/_ypad.py +++ b/plotly/validators/funnel/marker/colorbar/_ypad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/funnel/marker/colorbar/_yref.py b/plotly/validators/funnel/marker/colorbar/_yref.py index 7d37f1fc9a..52b5ae1b03 100644 --- a/plotly/validators/funnel/marker/colorbar/_yref.py +++ b/plotly/validators/funnel/marker/colorbar/_yref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/funnel/marker/colorbar/tickfont/__init__.py b/plotly/validators/funnel/marker/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/funnel/marker/colorbar/tickfont/__init__.py +++ b/plotly/validators/funnel/marker/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/funnel/marker/colorbar/tickfont/_color.py b/plotly/validators/funnel/marker/colorbar/tickfont/_color.py index 3e18885ee2..58b61577c4 100644 --- a/plotly/validators/funnel/marker/colorbar/tickfont/_color.py +++ b/plotly/validators/funnel/marker/colorbar/tickfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/funnel/marker/colorbar/tickfont/_family.py b/plotly/validators/funnel/marker/colorbar/tickfont/_family.py index c741d272aa..ab2ee92440 100644 --- a/plotly/validators/funnel/marker/colorbar/tickfont/_family.py +++ b/plotly/validators/funnel/marker/colorbar/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/funnel/marker/colorbar/tickfont/_lineposition.py b/plotly/validators/funnel/marker/colorbar/tickfont/_lineposition.py index 348d48e415..6789ca5f1e 100644 --- a/plotly/validators/funnel/marker/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/funnel/marker/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/funnel/marker/colorbar/tickfont/_shadow.py b/plotly/validators/funnel/marker/colorbar/tickfont/_shadow.py index 729e103009..b266d5a5b4 100644 --- a/plotly/validators/funnel/marker/colorbar/tickfont/_shadow.py +++ b/plotly/validators/funnel/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/funnel/marker/colorbar/tickfont/_size.py b/plotly/validators/funnel/marker/colorbar/tickfont/_size.py index c3d5f1c98c..004ab0705c 100644 --- a/plotly/validators/funnel/marker/colorbar/tickfont/_size.py +++ b/plotly/validators/funnel/marker/colorbar/tickfont/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/funnel/marker/colorbar/tickfont/_style.py b/plotly/validators/funnel/marker/colorbar/tickfont/_style.py index 15629ac8c0..fbdb9c794a 100644 --- a/plotly/validators/funnel/marker/colorbar/tickfont/_style.py +++ b/plotly/validators/funnel/marker/colorbar/tickfont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/funnel/marker/colorbar/tickfont/_textcase.py b/plotly/validators/funnel/marker/colorbar/tickfont/_textcase.py index 40e50c764b..431348cfc8 100644 --- a/plotly/validators/funnel/marker/colorbar/tickfont/_textcase.py +++ b/plotly/validators/funnel/marker/colorbar/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/funnel/marker/colorbar/tickfont/_variant.py b/plotly/validators/funnel/marker/colorbar/tickfont/_variant.py index 7913c8cf42..77a9d1aef0 100644 --- a/plotly/validators/funnel/marker/colorbar/tickfont/_variant.py +++ b/plotly/validators/funnel/marker/colorbar/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/funnel/marker/colorbar/tickfont/_weight.py b/plotly/validators/funnel/marker/colorbar/tickfont/_weight.py index 0576b165aa..1d3de48e68 100644 --- a/plotly/validators/funnel/marker/colorbar/tickfont/_weight.py +++ b/plotly/validators/funnel/marker/colorbar/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/funnel/marker/colorbar/tickformatstop/__init__.py b/plotly/validators/funnel/marker/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/funnel/marker/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/funnel/marker/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/funnel/marker/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/funnel/marker/colorbar/tickformatstop/_dtickrange.py index 61c42e1be3..ed41cd9962 100644 --- a/plotly/validators/funnel/marker/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/funnel/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( "items", diff --git a/plotly/validators/funnel/marker/colorbar/tickformatstop/_enabled.py b/plotly/validators/funnel/marker/colorbar/tickformatstop/_enabled.py index e4bf249f88..2168de6d5a 100644 --- a/plotly/validators/funnel/marker/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/funnel/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/funnel/marker/colorbar/tickformatstop/_name.py b/plotly/validators/funnel/marker/colorbar/tickformatstop/_name.py index d9c0cf9c9d..8c8240119c 100644 --- a/plotly/validators/funnel/marker/colorbar/tickformatstop/_name.py +++ b/plotly/validators/funnel/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/funnel/marker/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/funnel/marker/colorbar/tickformatstop/_templateitemname.py index a61b9d7c6d..cbaeccf236 100644 --- a/plotly/validators/funnel/marker/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/funnel/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/funnel/marker/colorbar/tickformatstop/_value.py b/plotly/validators/funnel/marker/colorbar/tickformatstop/_value.py index 4cf82f9c3c..29a41e0689 100644 --- a/plotly/validators/funnel/marker/colorbar/tickformatstop/_value.py +++ b/plotly/validators/funnel/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/funnel/marker/colorbar/title/__init__.py b/plotly/validators/funnel/marker/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/funnel/marker/colorbar/title/__init__.py +++ b/plotly/validators/funnel/marker/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/funnel/marker/colorbar/title/_font.py b/plotly/validators/funnel/marker/colorbar/title/_font.py index 0edfce7cc8..e2cc17820c 100644 --- a/plotly/validators/funnel/marker/colorbar/title/_font.py +++ b/plotly/validators/funnel/marker/colorbar/title/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/funnel/marker/colorbar/title/_side.py b/plotly/validators/funnel/marker/colorbar/title/_side.py index 88bd1b7048..835dd3b93a 100644 --- a/plotly/validators/funnel/marker/colorbar/title/_side.py +++ b/plotly/validators/funnel/marker/colorbar/title/_side.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/funnel/marker/colorbar/title/_text.py b/plotly/validators/funnel/marker/colorbar/title/_text.py index a1d2b0b227..774f662b12 100644 --- a/plotly/validators/funnel/marker/colorbar/title/_text.py +++ b/plotly/validators/funnel/marker/colorbar/title/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/funnel/marker/colorbar/title/font/__init__.py b/plotly/validators/funnel/marker/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/funnel/marker/colorbar/title/font/__init__.py +++ b/plotly/validators/funnel/marker/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/funnel/marker/colorbar/title/font/_color.py b/plotly/validators/funnel/marker/colorbar/title/font/_color.py index 520e1bccac..8c4bd33eeb 100644 --- a/plotly/validators/funnel/marker/colorbar/title/font/_color.py +++ b/plotly/validators/funnel/marker/colorbar/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/funnel/marker/colorbar/title/font/_family.py b/plotly/validators/funnel/marker/colorbar/title/font/_family.py index a2fa7c5ca7..07ed1d3c54 100644 --- a/plotly/validators/funnel/marker/colorbar/title/font/_family.py +++ b/plotly/validators/funnel/marker/colorbar/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/funnel/marker/colorbar/title/font/_lineposition.py b/plotly/validators/funnel/marker/colorbar/title/font/_lineposition.py index 61f6a2ad88..86f26d12dd 100644 --- a/plotly/validators/funnel/marker/colorbar/title/font/_lineposition.py +++ b/plotly/validators/funnel/marker/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/funnel/marker/colorbar/title/font/_shadow.py b/plotly/validators/funnel/marker/colorbar/title/font/_shadow.py index cf675316f3..fbb66f8793 100644 --- a/plotly/validators/funnel/marker/colorbar/title/font/_shadow.py +++ b/plotly/validators/funnel/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/funnel/marker/colorbar/title/font/_size.py b/plotly/validators/funnel/marker/colorbar/title/font/_size.py index 9f3f0cd058..75c5335718 100644 --- a/plotly/validators/funnel/marker/colorbar/title/font/_size.py +++ b/plotly/validators/funnel/marker/colorbar/title/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/funnel/marker/colorbar/title/font/_style.py b/plotly/validators/funnel/marker/colorbar/title/font/_style.py index 5def13e178..7b0b629942 100644 --- a/plotly/validators/funnel/marker/colorbar/title/font/_style.py +++ b/plotly/validators/funnel/marker/colorbar/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/funnel/marker/colorbar/title/font/_textcase.py b/plotly/validators/funnel/marker/colorbar/title/font/_textcase.py index 5d1e709181..531a294f2b 100644 --- a/plotly/validators/funnel/marker/colorbar/title/font/_textcase.py +++ b/plotly/validators/funnel/marker/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/funnel/marker/colorbar/title/font/_variant.py b/plotly/validators/funnel/marker/colorbar/title/font/_variant.py index 820e405b6c..ed5e70424b 100644 --- a/plotly/validators/funnel/marker/colorbar/title/font/_variant.py +++ b/plotly/validators/funnel/marker/colorbar/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/funnel/marker/colorbar/title/font/_weight.py b/plotly/validators/funnel/marker/colorbar/title/font/_weight.py index 00ed3955db..63d636bc5f 100644 --- a/plotly/validators/funnel/marker/colorbar/title/font/_weight.py +++ b/plotly/validators/funnel/marker/colorbar/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/funnel/marker/line/__init__.py b/plotly/validators/funnel/marker/line/__init__.py index facbe33f88..4ba3ea340b 100644 --- a/plotly/validators/funnel/marker/line/__init__.py +++ b/plotly/validators/funnel/marker/line/__init__.py @@ -1,37 +1,21 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._widthsrc import WidthsrcValidator - from ._width import WidthValidator - from ._reversescale import ReversescaleValidator - from ._colorsrc import ColorsrcValidator - from ._colorscale import ColorscaleValidator - from ._coloraxis import ColoraxisValidator - from ._color import ColorValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/funnel/marker/line/_autocolorscale.py b/plotly/validators/funnel/marker/line/_autocolorscale.py index f0cf3ef32d..f4f148562c 100644 --- a/plotly/validators/funnel/marker/line/_autocolorscale.py +++ b/plotly/validators/funnel/marker/line/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/funnel/marker/line/_cauto.py b/plotly/validators/funnel/marker/line/_cauto.py index 45487fc401..58f7f2832c 100644 --- a/plotly/validators/funnel/marker/line/_cauto.py +++ b/plotly/validators/funnel/marker/line/_cauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/funnel/marker/line/_cmax.py b/plotly/validators/funnel/marker/line/_cmax.py index 969f92ca90..43fceb2ea8 100644 --- a/plotly/validators/funnel/marker/line/_cmax.py +++ b/plotly/validators/funnel/marker/line/_cmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/funnel/marker/line/_cmid.py b/plotly/validators/funnel/marker/line/_cmid.py index 6bd9de8dc9..44276874e6 100644 --- a/plotly/validators/funnel/marker/line/_cmid.py +++ b/plotly/validators/funnel/marker/line/_cmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/funnel/marker/line/_cmin.py b/plotly/validators/funnel/marker/line/_cmin.py index 14ae7c1b1c..563cdc9b02 100644 --- a/plotly/validators/funnel/marker/line/_cmin.py +++ b/plotly/validators/funnel/marker/line/_cmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/funnel/marker/line/_color.py b/plotly/validators/funnel/marker/line/_color.py index c446f36508..e19d120713 100644 --- a/plotly/validators/funnel/marker/line/_color.py +++ b/plotly/validators/funnel/marker/line/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), colorscale_path=kwargs.pop( diff --git a/plotly/validators/funnel/marker/line/_coloraxis.py b/plotly/validators/funnel/marker/line/_coloraxis.py index a84f5bdfa0..ed5d42ec7d 100644 --- a/plotly/validators/funnel/marker/line/_coloraxis.py +++ b/plotly/validators/funnel/marker/line/_coloraxis.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/funnel/marker/line/_colorscale.py b/plotly/validators/funnel/marker/line/_colorscale.py index b8db389587..5445ca4d7b 100644 --- a/plotly/validators/funnel/marker/line/_colorscale.py +++ b/plotly/validators/funnel/marker/line/_colorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/funnel/marker/line/_colorsrc.py b/plotly/validators/funnel/marker/line/_colorsrc.py index ad567b8234..fe01d98432 100644 --- a/plotly/validators/funnel/marker/line/_colorsrc.py +++ b/plotly/validators/funnel/marker/line/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/marker/line/_reversescale.py b/plotly/validators/funnel/marker/line/_reversescale.py index ac8c98c1ca..43576d328f 100644 --- a/plotly/validators/funnel/marker/line/_reversescale.py +++ b/plotly/validators/funnel/marker/line/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/funnel/marker/line/_width.py b/plotly/validators/funnel/marker/line/_width.py index 568e27ee01..f8eaf617c4 100644 --- a/plotly/validators/funnel/marker/line/_width.py +++ b/plotly/validators/funnel/marker/line/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/funnel/marker/line/_widthsrc.py b/plotly/validators/funnel/marker/line/_widthsrc.py index e71b6d17ab..b818778a95 100644 --- a/plotly/validators/funnel/marker/line/_widthsrc.py +++ b/plotly/validators/funnel/marker/line/_widthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/outsidetextfont/__init__.py b/plotly/validators/funnel/outsidetextfont/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/funnel/outsidetextfont/__init__.py +++ b/plotly/validators/funnel/outsidetextfont/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/funnel/outsidetextfont/_color.py b/plotly/validators/funnel/outsidetextfont/_color.py index 0998f8d7c6..ed0efbda67 100644 --- a/plotly/validators/funnel/outsidetextfont/_color.py +++ b/plotly/validators/funnel/outsidetextfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/funnel/outsidetextfont/_colorsrc.py b/plotly/validators/funnel/outsidetextfont/_colorsrc.py index 8142f9c2c4..478cd2deda 100644 --- a/plotly/validators/funnel/outsidetextfont/_colorsrc.py +++ b/plotly/validators/funnel/outsidetextfont/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/outsidetextfont/_family.py b/plotly/validators/funnel/outsidetextfont/_family.py index bee2f10a0f..406d2b11b8 100644 --- a/plotly/validators/funnel/outsidetextfont/_family.py +++ b/plotly/validators/funnel/outsidetextfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/funnel/outsidetextfont/_familysrc.py b/plotly/validators/funnel/outsidetextfont/_familysrc.py index 3d8a4c52e0..52ec9f3765 100644 --- a/plotly/validators/funnel/outsidetextfont/_familysrc.py +++ b/plotly/validators/funnel/outsidetextfont/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/outsidetextfont/_lineposition.py b/plotly/validators/funnel/outsidetextfont/_lineposition.py index 030702141c..9c92ac63a0 100644 --- a/plotly/validators/funnel/outsidetextfont/_lineposition.py +++ b/plotly/validators/funnel/outsidetextfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/funnel/outsidetextfont/_linepositionsrc.py b/plotly/validators/funnel/outsidetextfont/_linepositionsrc.py index d9f2b8822c..c818eda243 100644 --- a/plotly/validators/funnel/outsidetextfont/_linepositionsrc.py +++ b/plotly/validators/funnel/outsidetextfont/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/outsidetextfont/_shadow.py b/plotly/validators/funnel/outsidetextfont/_shadow.py index 98a4c669ec..4f4b8a6a3d 100644 --- a/plotly/validators/funnel/outsidetextfont/_shadow.py +++ b/plotly/validators/funnel/outsidetextfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/funnel/outsidetextfont/_shadowsrc.py b/plotly/validators/funnel/outsidetextfont/_shadowsrc.py index c1cc6ff2f0..85c0cbf369 100644 --- a/plotly/validators/funnel/outsidetextfont/_shadowsrc.py +++ b/plotly/validators/funnel/outsidetextfont/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/outsidetextfont/_size.py b/plotly/validators/funnel/outsidetextfont/_size.py index e538e65297..fa19692830 100644 --- a/plotly/validators/funnel/outsidetextfont/_size.py +++ b/plotly/validators/funnel/outsidetextfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/funnel/outsidetextfont/_sizesrc.py b/plotly/validators/funnel/outsidetextfont/_sizesrc.py index 7639401e67..c9b797a832 100644 --- a/plotly/validators/funnel/outsidetextfont/_sizesrc.py +++ b/plotly/validators/funnel/outsidetextfont/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/outsidetextfont/_style.py b/plotly/validators/funnel/outsidetextfont/_style.py index eb411ef6b3..3cc6ff4260 100644 --- a/plotly/validators/funnel/outsidetextfont/_style.py +++ b/plotly/validators/funnel/outsidetextfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/funnel/outsidetextfont/_stylesrc.py b/plotly/validators/funnel/outsidetextfont/_stylesrc.py index 14d845faf0..ae77414fda 100644 --- a/plotly/validators/funnel/outsidetextfont/_stylesrc.py +++ b/plotly/validators/funnel/outsidetextfont/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/outsidetextfont/_textcase.py b/plotly/validators/funnel/outsidetextfont/_textcase.py index 5172e37f64..57f7214692 100644 --- a/plotly/validators/funnel/outsidetextfont/_textcase.py +++ b/plotly/validators/funnel/outsidetextfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/funnel/outsidetextfont/_textcasesrc.py b/plotly/validators/funnel/outsidetextfont/_textcasesrc.py index c128527009..d084f2982a 100644 --- a/plotly/validators/funnel/outsidetextfont/_textcasesrc.py +++ b/plotly/validators/funnel/outsidetextfont/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/outsidetextfont/_variant.py b/plotly/validators/funnel/outsidetextfont/_variant.py index dea131c72e..18305d1611 100644 --- a/plotly/validators/funnel/outsidetextfont/_variant.py +++ b/plotly/validators/funnel/outsidetextfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( diff --git a/plotly/validators/funnel/outsidetextfont/_variantsrc.py b/plotly/validators/funnel/outsidetextfont/_variantsrc.py index ac4a879d8b..0f3e1f66b1 100644 --- a/plotly/validators/funnel/outsidetextfont/_variantsrc.py +++ b/plotly/validators/funnel/outsidetextfont/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/outsidetextfont/_weight.py b/plotly/validators/funnel/outsidetextfont/_weight.py index e99e36c74b..28018bc6db 100644 --- a/plotly/validators/funnel/outsidetextfont/_weight.py +++ b/plotly/validators/funnel/outsidetextfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/funnel/outsidetextfont/_weightsrc.py b/plotly/validators/funnel/outsidetextfont/_weightsrc.py index 90c9a41c03..72f0611bbc 100644 --- a/plotly/validators/funnel/outsidetextfont/_weightsrc.py +++ b/plotly/validators/funnel/outsidetextfont/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/stream/__init__.py b/plotly/validators/funnel/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/funnel/stream/__init__.py +++ b/plotly/validators/funnel/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/funnel/stream/_maxpoints.py b/plotly/validators/funnel/stream/_maxpoints.py index c7f45224b3..d3b985b23e 100644 --- a/plotly/validators/funnel/stream/_maxpoints.py +++ b/plotly/validators/funnel/stream/_maxpoints.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/funnel/stream/_token.py b/plotly/validators/funnel/stream/_token.py index b32b0c3893..8cea205656 100644 --- a/plotly/validators/funnel/stream/_token.py +++ b/plotly/validators/funnel/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/funnel/textfont/__init__.py b/plotly/validators/funnel/textfont/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/funnel/textfont/__init__.py +++ b/plotly/validators/funnel/textfont/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/funnel/textfont/_color.py b/plotly/validators/funnel/textfont/_color.py index 64fb753b22..44339f9e34 100644 --- a/plotly/validators/funnel/textfont/_color.py +++ b/plotly/validators/funnel/textfont/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/funnel/textfont/_colorsrc.py b/plotly/validators/funnel/textfont/_colorsrc.py index b769ab0751..646baae533 100644 --- a/plotly/validators/funnel/textfont/_colorsrc.py +++ b/plotly/validators/funnel/textfont/_colorsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/textfont/_family.py b/plotly/validators/funnel/textfont/_family.py index 2465bce324..18eef0a123 100644 --- a/plotly/validators/funnel/textfont/_family.py +++ b/plotly/validators/funnel/textfont/_family.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/funnel/textfont/_familysrc.py b/plotly/validators/funnel/textfont/_familysrc.py index 2a4ceb17c6..8b3e938674 100644 --- a/plotly/validators/funnel/textfont/_familysrc.py +++ b/plotly/validators/funnel/textfont/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/textfont/_lineposition.py b/plotly/validators/funnel/textfont/_lineposition.py index a1be521b61..9ab5b4defc 100644 --- a/plotly/validators/funnel/textfont/_lineposition.py +++ b/plotly/validators/funnel/textfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/funnel/textfont/_linepositionsrc.py b/plotly/validators/funnel/textfont/_linepositionsrc.py index 737d1f4b9d..6ce0f00eaf 100644 --- a/plotly/validators/funnel/textfont/_linepositionsrc.py +++ b/plotly/validators/funnel/textfont/_linepositionsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/textfont/_shadow.py b/plotly/validators/funnel/textfont/_shadow.py index 7e9933e197..f77984bea2 100644 --- a/plotly/validators/funnel/textfont/_shadow.py +++ b/plotly/validators/funnel/textfont/_shadow.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/funnel/textfont/_shadowsrc.py b/plotly/validators/funnel/textfont/_shadowsrc.py index 3cfa005091..e8727a90ac 100644 --- a/plotly/validators/funnel/textfont/_shadowsrc.py +++ b/plotly/validators/funnel/textfont/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/textfont/_size.py b/plotly/validators/funnel/textfont/_size.py index 772b3630fc..f50ef9b1b6 100644 --- a/plotly/validators/funnel/textfont/_size.py +++ b/plotly/validators/funnel/textfont/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/funnel/textfont/_sizesrc.py b/plotly/validators/funnel/textfont/_sizesrc.py index 7c36df75cd..34a926f011 100644 --- a/plotly/validators/funnel/textfont/_sizesrc.py +++ b/plotly/validators/funnel/textfont/_sizesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/textfont/_style.py b/plotly/validators/funnel/textfont/_style.py index e22451a315..a740c1fbcd 100644 --- a/plotly/validators/funnel/textfont/_style.py +++ b/plotly/validators/funnel/textfont/_style.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/funnel/textfont/_stylesrc.py b/plotly/validators/funnel/textfont/_stylesrc.py index 6c3520feb4..527ac5d522 100644 --- a/plotly/validators/funnel/textfont/_stylesrc.py +++ b/plotly/validators/funnel/textfont/_stylesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/textfont/_textcase.py b/plotly/validators/funnel/textfont/_textcase.py index 123806df8c..a2b3caf8e3 100644 --- a/plotly/validators/funnel/textfont/_textcase.py +++ b/plotly/validators/funnel/textfont/_textcase.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/funnel/textfont/_textcasesrc.py b/plotly/validators/funnel/textfont/_textcasesrc.py index 478f7ee8a1..36ea387a52 100644 --- a/plotly/validators/funnel/textfont/_textcasesrc.py +++ b/plotly/validators/funnel/textfont/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/textfont/_variant.py b/plotly/validators/funnel/textfont/_variant.py index b60eab533f..c87f5a8691 100644 --- a/plotly/validators/funnel/textfont/_variant.py +++ b/plotly/validators/funnel/textfont/_variant.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( diff --git a/plotly/validators/funnel/textfont/_variantsrc.py b/plotly/validators/funnel/textfont/_variantsrc.py index 836e6b54ec..a6d8fde95c 100644 --- a/plotly/validators/funnel/textfont/_variantsrc.py +++ b/plotly/validators/funnel/textfont/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnel/textfont/_weight.py b/plotly/validators/funnel/textfont/_weight.py index 37317b1fb3..55e6a51e12 100644 --- a/plotly/validators/funnel/textfont/_weight.py +++ b/plotly/validators/funnel/textfont/_weight.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/funnel/textfont/_weightsrc.py b/plotly/validators/funnel/textfont/_weightsrc.py index 244a18e443..32a42eefe9 100644 --- a/plotly/validators/funnel/textfont/_weightsrc.py +++ b/plotly/validators/funnel/textfont/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/__init__.py b/plotly/validators/funnelarea/__init__.py index 4ddd3b6c1b..1619cfa1de 100644 --- a/plotly/validators/funnelarea/__init__.py +++ b/plotly/validators/funnelarea/__init__.py @@ -1,105 +1,55 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._visible import VisibleValidator - from ._valuessrc import ValuessrcValidator - from ._values import ValuesValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._title import TitleValidator - from ._texttemplatesrc import TexttemplatesrcValidator - from ._texttemplate import TexttemplateValidator - from ._textsrc import TextsrcValidator - from ._textpositionsrc import TextpositionsrcValidator - from ._textposition import TextpositionValidator - from ._textinfo import TextinfoValidator - from ._textfont import TextfontValidator - from ._text import TextValidator - from ._stream import StreamValidator - from ._showlegend import ShowlegendValidator - from ._scalegroup import ScalegroupValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._marker import MarkerValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._labelssrc import LabelssrcValidator - from ._labels import LabelsValidator - from ._label0 import Label0Validator - from ._insidetextfont import InsidetextfontValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._domain import DomainValidator - from ._dlabel import DlabelValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._baseratio import BaseratioValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/funnelarea/_aspectratio.py b/plotly/validators/funnelarea/_aspectratio.py index 9e73d8fe6b..20bc2856ff 100644 --- a/plotly/validators/funnelarea/_aspectratio.py +++ b/plotly/validators/funnelarea/_aspectratio.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AspectratioValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/funnelarea/_baseratio.py b/plotly/validators/funnelarea/_baseratio.py index b5e5cd77c6..501021f914 100644 --- a/plotly/validators/funnelarea/_baseratio.py +++ b/plotly/validators/funnelarea/_baseratio.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BaseratioValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/funnelarea/_customdata.py b/plotly/validators/funnelarea/_customdata.py index 89e367d3cc..84eb27767d 100644 --- a/plotly/validators/funnelarea/_customdata.py +++ b/plotly/validators/funnelarea/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/funnelarea/_customdatasrc.py b/plotly/validators/funnelarea/_customdatasrc.py index 90c1cd0144..ab49b97b03 100644 --- a/plotly/validators/funnelarea/_customdatasrc.py +++ b/plotly/validators/funnelarea/_customdatasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/_dlabel.py b/plotly/validators/funnelarea/_dlabel.py index 64720732ae..7ec8f401bf 100644 --- a/plotly/validators/funnelarea/_dlabel.py +++ b/plotly/validators/funnelarea/_dlabel.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DlabelValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/funnelarea/_domain.py b/plotly/validators/funnelarea/_domain.py index d917df0e55..bc41a55410 100644 --- a/plotly/validators/funnelarea/_domain.py +++ b/plotly/validators/funnelarea/_domain.py @@ -1,29 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/funnelarea/_hoverinfo.py b/plotly/validators/funnelarea/_hoverinfo.py index 8b783ab292..87e827b91a 100644 --- a/plotly/validators/funnelarea/_hoverinfo.py +++ b/plotly/validators/funnelarea/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/funnelarea/_hoverinfosrc.py b/plotly/validators/funnelarea/_hoverinfosrc.py index 6a3413d1c1..b06f9b09f0 100644 --- a/plotly/validators/funnelarea/_hoverinfosrc.py +++ b/plotly/validators/funnelarea/_hoverinfosrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/_hoverlabel.py b/plotly/validators/funnelarea/_hoverlabel.py index cf11b25b8d..b4a20a6c72 100644 --- a/plotly/validators/funnelarea/_hoverlabel.py +++ b/plotly/validators/funnelarea/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/funnelarea/_hovertemplate.py b/plotly/validators/funnelarea/_hovertemplate.py index 73248ecafc..61a58878fa 100644 --- a/plotly/validators/funnelarea/_hovertemplate.py +++ b/plotly/validators/funnelarea/_hovertemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/funnelarea/_hovertemplatesrc.py b/plotly/validators/funnelarea/_hovertemplatesrc.py index c0d020c9ef..85088377d4 100644 --- a/plotly/validators/funnelarea/_hovertemplatesrc.py +++ b/plotly/validators/funnelarea/_hovertemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/_hovertext.py b/plotly/validators/funnelarea/_hovertext.py index 2efc97f9ee..bcd972ef33 100644 --- a/plotly/validators/funnelarea/_hovertext.py +++ b/plotly/validators/funnelarea/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/funnelarea/_hovertextsrc.py b/plotly/validators/funnelarea/_hovertextsrc.py index a068430d95..a43fac8930 100644 --- a/plotly/validators/funnelarea/_hovertextsrc.py +++ b/plotly/validators/funnelarea/_hovertextsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/_ids.py b/plotly/validators/funnelarea/_ids.py index 11a8a5e357..89ee19af98 100644 --- a/plotly/validators/funnelarea/_ids.py +++ b/plotly/validators/funnelarea/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/funnelarea/_idssrc.py b/plotly/validators/funnelarea/_idssrc.py index 5744d6e312..d50cc6f857 100644 --- a/plotly/validators/funnelarea/_idssrc.py +++ b/plotly/validators/funnelarea/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/_insidetextfont.py b/plotly/validators/funnelarea/_insidetextfont.py index d134ea2389..db2f7d1adc 100644 --- a/plotly/validators/funnelarea/_insidetextfont.py +++ b/plotly/validators/funnelarea/_insidetextfont.py @@ -1,87 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class InsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Insidetextfont"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/funnelarea/_label0.py b/plotly/validators/funnelarea/_label0.py index b80fe58691..301cdc5344 100644 --- a/plotly/validators/funnelarea/_label0.py +++ b/plotly/validators/funnelarea/_label0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Label0Validator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/funnelarea/_labels.py b/plotly/validators/funnelarea/_labels.py index 1f87a8e244..206b64c8d5 100644 --- a/plotly/validators/funnelarea/_labels.py +++ b/plotly/validators/funnelarea/_labels.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/funnelarea/_labelssrc.py b/plotly/validators/funnelarea/_labelssrc.py index 97a19ca7b1..734e1dbf86 100644 --- a/plotly/validators/funnelarea/_labelssrc.py +++ b/plotly/validators/funnelarea/_labelssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/_legend.py b/plotly/validators/funnelarea/_legend.py index 37fdd82875..f0b4758724 100644 --- a/plotly/validators/funnelarea/_legend.py +++ b/plotly/validators/funnelarea/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/funnelarea/_legendgroup.py b/plotly/validators/funnelarea/_legendgroup.py index 803912a5c6..6c0bc9ed1f 100644 --- a/plotly/validators/funnelarea/_legendgroup.py +++ b/plotly/validators/funnelarea/_legendgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/funnelarea/_legendgrouptitle.py b/plotly/validators/funnelarea/_legendgrouptitle.py index 76e1d9f2ba..7b1a2d6a97 100644 --- a/plotly/validators/funnelarea/_legendgrouptitle.py +++ b/plotly/validators/funnelarea/_legendgrouptitle.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/funnelarea/_legendrank.py b/plotly/validators/funnelarea/_legendrank.py index ad96e7452e..c93f5c5fe3 100644 --- a/plotly/validators/funnelarea/_legendrank.py +++ b/plotly/validators/funnelarea/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/funnelarea/_legendwidth.py b/plotly/validators/funnelarea/_legendwidth.py index aa78b60db9..60c8f20bf6 100644 --- a/plotly/validators/funnelarea/_legendwidth.py +++ b/plotly/validators/funnelarea/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/funnelarea/_marker.py b/plotly/validators/funnelarea/_marker.py index 2b16a1057f..9cd7aec66a 100644 --- a/plotly/validators/funnelarea/_marker.py +++ b/plotly/validators/funnelarea/_marker.py @@ -1,28 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/funnelarea/_meta.py b/plotly/validators/funnelarea/_meta.py index 60b2314f3a..388bfafb9c 100644 --- a/plotly/validators/funnelarea/_meta.py +++ b/plotly/validators/funnelarea/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/funnelarea/_metasrc.py b/plotly/validators/funnelarea/_metasrc.py index 79e0c7f693..c63a7f5694 100644 --- a/plotly/validators/funnelarea/_metasrc.py +++ b/plotly/validators/funnelarea/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/_name.py b/plotly/validators/funnelarea/_name.py index 380248af0f..c0255491d9 100644 --- a/plotly/validators/funnelarea/_name.py +++ b/plotly/validators/funnelarea/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/funnelarea/_opacity.py b/plotly/validators/funnelarea/_opacity.py index cdf7cbc019..1a50983e2c 100644 --- a/plotly/validators/funnelarea/_opacity.py +++ b/plotly/validators/funnelarea/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/funnelarea/_scalegroup.py b/plotly/validators/funnelarea/_scalegroup.py index 9bca001684..30a4cf4d45 100644 --- a/plotly/validators/funnelarea/_scalegroup.py +++ b/plotly/validators/funnelarea/_scalegroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ScalegroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/funnelarea/_showlegend.py b/plotly/validators/funnelarea/_showlegend.py index e83bfc19a3..f2de9c87c5 100644 --- a/plotly/validators/funnelarea/_showlegend.py +++ b/plotly/validators/funnelarea/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/funnelarea/_stream.py b/plotly/validators/funnelarea/_stream.py index a25d7caec0..b545cc315d 100644 --- a/plotly/validators/funnelarea/_stream.py +++ b/plotly/validators/funnelarea/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/funnelarea/_text.py b/plotly/validators/funnelarea/_text.py index 7e4d6b125b..8bd41ef1d3 100644 --- a/plotly/validators/funnelarea/_text.py +++ b/plotly/validators/funnelarea/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/funnelarea/_textfont.py b/plotly/validators/funnelarea/_textfont.py index 48dadda625..bc3dd877e8 100644 --- a/plotly/validators/funnelarea/_textfont.py +++ b/plotly/validators/funnelarea/_textfont.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/funnelarea/_textinfo.py b/plotly/validators/funnelarea/_textinfo.py index db22bfe0fe..d36b4711eb 100644 --- a/plotly/validators/funnelarea/_textinfo.py +++ b/plotly/validators/funnelarea/_textinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["label", "text", "value", "percent"]), diff --git a/plotly/validators/funnelarea/_textposition.py b/plotly/validators/funnelarea/_textposition.py index 9b36602566..69f47051ee 100644 --- a/plotly/validators/funnelarea/_textposition.py +++ b/plotly/validators/funnelarea/_textposition.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["inside", "none"]), diff --git a/plotly/validators/funnelarea/_textpositionsrc.py b/plotly/validators/funnelarea/_textpositionsrc.py index 09e27c8241..ea521b9af9 100644 --- a/plotly/validators/funnelarea/_textpositionsrc.py +++ b/plotly/validators/funnelarea/_textpositionsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/_textsrc.py b/plotly/validators/funnelarea/_textsrc.py index 50afe541e8..19f4e48771 100644 --- a/plotly/validators/funnelarea/_textsrc.py +++ b/plotly/validators/funnelarea/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/_texttemplate.py b/plotly/validators/funnelarea/_texttemplate.py index 396f193bc8..026fad7e92 100644 --- a/plotly/validators/funnelarea/_texttemplate.py +++ b/plotly/validators/funnelarea/_texttemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/funnelarea/_texttemplatesrc.py b/plotly/validators/funnelarea/_texttemplatesrc.py index e7dfebbd39..4d587894b7 100644 --- a/plotly/validators/funnelarea/_texttemplatesrc.py +++ b/plotly/validators/funnelarea/_texttemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/_title.py b/plotly/validators/funnelarea/_title.py index 7e29f56d03..28e06293f7 100644 --- a/plotly/validators/funnelarea/_title.py +++ b/plotly/validators/funnelarea/_title.py @@ -1,22 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/funnelarea/_uid.py b/plotly/validators/funnelarea/_uid.py index 6376fa0424..eb59896f79 100644 --- a/plotly/validators/funnelarea/_uid.py +++ b/plotly/validators/funnelarea/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/funnelarea/_uirevision.py b/plotly/validators/funnelarea/_uirevision.py index 8dcdcdd5af..0dc2e92184 100644 --- a/plotly/validators/funnelarea/_uirevision.py +++ b/plotly/validators/funnelarea/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/_values.py b/plotly/validators/funnelarea/_values.py index 1ab9253273..553545dedd 100644 --- a/plotly/validators/funnelarea/_values.py +++ b/plotly/validators/funnelarea/_values.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValuesValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/funnelarea/_valuessrc.py b/plotly/validators/funnelarea/_valuessrc.py index 931c3e72f3..3d81ce5519 100644 --- a/plotly/validators/funnelarea/_valuessrc.py +++ b/plotly/validators/funnelarea/_valuessrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValuessrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/_visible.py b/plotly/validators/funnelarea/_visible.py index fdb9a4aafd..452ff0a616 100644 --- a/plotly/validators/funnelarea/_visible.py +++ b/plotly/validators/funnelarea/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/funnelarea/domain/__init__.py b/plotly/validators/funnelarea/domain/__init__.py index 67de5030d0..42827f1d1e 100644 --- a/plotly/validators/funnelarea/domain/__init__.py +++ b/plotly/validators/funnelarea/domain/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._y import YValidator - from ._x import XValidator - from ._row import RowValidator - from ._column import ColumnValidator -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [], - [ - "._y.YValidator", - "._x.XValidator", - "._row.RowValidator", - "._column.ColumnValidator", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._y.YValidator", + "._x.XValidator", + "._row.RowValidator", + "._column.ColumnValidator", + ], +) diff --git a/plotly/validators/funnelarea/domain/_column.py b/plotly/validators/funnelarea/domain/_column.py index 00811ade79..c0babe5680 100644 --- a/plotly/validators/funnelarea/domain/_column.py +++ b/plotly/validators/funnelarea/domain/_column.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/funnelarea/domain/_row.py b/plotly/validators/funnelarea/domain/_row.py index c121867078..577823a978 100644 --- a/plotly/validators/funnelarea/domain/_row.py +++ b/plotly/validators/funnelarea/domain/_row.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RowValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/funnelarea/domain/_x.py b/plotly/validators/funnelarea/domain/_x.py index de33daa3bd..b851bae16c 100644 --- a/plotly/validators/funnelarea/domain/_x.py +++ b/plotly/validators/funnelarea/domain/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/funnelarea/domain/_y.py b/plotly/validators/funnelarea/domain/_y.py index 80418d4449..f6409fe8bc 100644 --- a/plotly/validators/funnelarea/domain/_y.py +++ b/plotly/validators/funnelarea/domain/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/funnelarea/hoverlabel/__init__.py b/plotly/validators/funnelarea/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/funnelarea/hoverlabel/__init__.py +++ b/plotly/validators/funnelarea/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/funnelarea/hoverlabel/_align.py b/plotly/validators/funnelarea/hoverlabel/_align.py index e76a054b53..4f6695b0e9 100644 --- a/plotly/validators/funnelarea/hoverlabel/_align.py +++ b/plotly/validators/funnelarea/hoverlabel/_align.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/funnelarea/hoverlabel/_alignsrc.py b/plotly/validators/funnelarea/hoverlabel/_alignsrc.py index 5426427997..c55b603769 100644 --- a/plotly/validators/funnelarea/hoverlabel/_alignsrc.py +++ b/plotly/validators/funnelarea/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/hoverlabel/_bgcolor.py b/plotly/validators/funnelarea/hoverlabel/_bgcolor.py index 1b3a72edd4..6fa5f12766 100644 --- a/plotly/validators/funnelarea/hoverlabel/_bgcolor.py +++ b/plotly/validators/funnelarea/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/funnelarea/hoverlabel/_bgcolorsrc.py b/plotly/validators/funnelarea/hoverlabel/_bgcolorsrc.py index a065507327..f8d97fe359 100644 --- a/plotly/validators/funnelarea/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/funnelarea/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/hoverlabel/_bordercolor.py b/plotly/validators/funnelarea/hoverlabel/_bordercolor.py index 27bdd3c9da..5f7f2490e6 100644 --- a/plotly/validators/funnelarea/hoverlabel/_bordercolor.py +++ b/plotly/validators/funnelarea/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/funnelarea/hoverlabel/_bordercolorsrc.py b/plotly/validators/funnelarea/hoverlabel/_bordercolorsrc.py index 8f815e9957..a48949c1fa 100644 --- a/plotly/validators/funnelarea/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/funnelarea/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/hoverlabel/_font.py b/plotly/validators/funnelarea/hoverlabel/_font.py index 21f0c01b95..807197950c 100644 --- a/plotly/validators/funnelarea/hoverlabel/_font.py +++ b/plotly/validators/funnelarea/hoverlabel/_font.py @@ -1,87 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/funnelarea/hoverlabel/_namelength.py b/plotly/validators/funnelarea/hoverlabel/_namelength.py index c9721f4f20..c45cddeb6c 100644 --- a/plotly/validators/funnelarea/hoverlabel/_namelength.py +++ b/plotly/validators/funnelarea/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/funnelarea/hoverlabel/_namelengthsrc.py b/plotly/validators/funnelarea/hoverlabel/_namelengthsrc.py index 67e3aaf540..5c5c9b3f39 100644 --- a/plotly/validators/funnelarea/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/funnelarea/hoverlabel/_namelengthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/hoverlabel/font/__init__.py b/plotly/validators/funnelarea/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/funnelarea/hoverlabel/font/__init__.py +++ b/plotly/validators/funnelarea/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/funnelarea/hoverlabel/font/_color.py b/plotly/validators/funnelarea/hoverlabel/font/_color.py index 05549ca1bc..b18fe30521 100644 --- a/plotly/validators/funnelarea/hoverlabel/font/_color.py +++ b/plotly/validators/funnelarea/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/funnelarea/hoverlabel/font/_colorsrc.py b/plotly/validators/funnelarea/hoverlabel/font/_colorsrc.py index 1ab81da06c..b4a9612e9e 100644 --- a/plotly/validators/funnelarea/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/funnelarea/hoverlabel/font/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/hoverlabel/font/_family.py b/plotly/validators/funnelarea/hoverlabel/font/_family.py index e1ac6519c0..f611b35292 100644 --- a/plotly/validators/funnelarea/hoverlabel/font/_family.py +++ b/plotly/validators/funnelarea/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/funnelarea/hoverlabel/font/_familysrc.py b/plotly/validators/funnelarea/hoverlabel/font/_familysrc.py index 19560648ab..e5594abac2 100644 --- a/plotly/validators/funnelarea/hoverlabel/font/_familysrc.py +++ b/plotly/validators/funnelarea/hoverlabel/font/_familysrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/hoverlabel/font/_lineposition.py b/plotly/validators/funnelarea/hoverlabel/font/_lineposition.py index 105e43e346..46955af0ac 100644 --- a/plotly/validators/funnelarea/hoverlabel/font/_lineposition.py +++ b/plotly/validators/funnelarea/hoverlabel/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/funnelarea/hoverlabel/font/_linepositionsrc.py b/plotly/validators/funnelarea/hoverlabel/font/_linepositionsrc.py index 1cb80d6cbf..2c36e87346 100644 --- a/plotly/validators/funnelarea/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/funnelarea/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/hoverlabel/font/_shadow.py b/plotly/validators/funnelarea/hoverlabel/font/_shadow.py index ae6d665c42..06a514af32 100644 --- a/plotly/validators/funnelarea/hoverlabel/font/_shadow.py +++ b/plotly/validators/funnelarea/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/funnelarea/hoverlabel/font/_shadowsrc.py b/plotly/validators/funnelarea/hoverlabel/font/_shadowsrc.py index a80ab1431c..154603c638 100644 --- a/plotly/validators/funnelarea/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/funnelarea/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/hoverlabel/font/_size.py b/plotly/validators/funnelarea/hoverlabel/font/_size.py index 1ff501f23a..15f2df7ed1 100644 --- a/plotly/validators/funnelarea/hoverlabel/font/_size.py +++ b/plotly/validators/funnelarea/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/funnelarea/hoverlabel/font/_sizesrc.py b/plotly/validators/funnelarea/hoverlabel/font/_sizesrc.py index 7c24bad5aa..86f30b7c50 100644 --- a/plotly/validators/funnelarea/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/funnelarea/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/hoverlabel/font/_style.py b/plotly/validators/funnelarea/hoverlabel/font/_style.py index ee70b84d16..8713e01171 100644 --- a/plotly/validators/funnelarea/hoverlabel/font/_style.py +++ b/plotly/validators/funnelarea/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/funnelarea/hoverlabel/font/_stylesrc.py b/plotly/validators/funnelarea/hoverlabel/font/_stylesrc.py index dada8fa5b7..5b565460e5 100644 --- a/plotly/validators/funnelarea/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/funnelarea/hoverlabel/font/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/hoverlabel/font/_textcase.py b/plotly/validators/funnelarea/hoverlabel/font/_textcase.py index f7fc3fa2c9..e1aafcee7c 100644 --- a/plotly/validators/funnelarea/hoverlabel/font/_textcase.py +++ b/plotly/validators/funnelarea/hoverlabel/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/funnelarea/hoverlabel/font/_textcasesrc.py b/plotly/validators/funnelarea/hoverlabel/font/_textcasesrc.py index 8f74f88bc8..b4893a3b03 100644 --- a/plotly/validators/funnelarea/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/funnelarea/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/hoverlabel/font/_variant.py b/plotly/validators/funnelarea/hoverlabel/font/_variant.py index ce63c66ac6..b3d38e4ba7 100644 --- a/plotly/validators/funnelarea/hoverlabel/font/_variant.py +++ b/plotly/validators/funnelarea/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/funnelarea/hoverlabel/font/_variantsrc.py b/plotly/validators/funnelarea/hoverlabel/font/_variantsrc.py index 2291bba26f..43af2890e5 100644 --- a/plotly/validators/funnelarea/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/funnelarea/hoverlabel/font/_variantsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/hoverlabel/font/_weight.py b/plotly/validators/funnelarea/hoverlabel/font/_weight.py index 79374274dc..d11aaece17 100644 --- a/plotly/validators/funnelarea/hoverlabel/font/_weight.py +++ b/plotly/validators/funnelarea/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/funnelarea/hoverlabel/font/_weightsrc.py b/plotly/validators/funnelarea/hoverlabel/font/_weightsrc.py index 30e8f48ac9..300e649ec6 100644 --- a/plotly/validators/funnelarea/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/funnelarea/hoverlabel/font/_weightsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/insidetextfont/__init__.py b/plotly/validators/funnelarea/insidetextfont/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/funnelarea/insidetextfont/__init__.py +++ b/plotly/validators/funnelarea/insidetextfont/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/funnelarea/insidetextfont/_color.py b/plotly/validators/funnelarea/insidetextfont/_color.py index 42106fb6e3..20328ebd3c 100644 --- a/plotly/validators/funnelarea/insidetextfont/_color.py +++ b/plotly/validators/funnelarea/insidetextfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/funnelarea/insidetextfont/_colorsrc.py b/plotly/validators/funnelarea/insidetextfont/_colorsrc.py index 30a351e8a2..c524d37486 100644 --- a/plotly/validators/funnelarea/insidetextfont/_colorsrc.py +++ b/plotly/validators/funnelarea/insidetextfont/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/insidetextfont/_family.py b/plotly/validators/funnelarea/insidetextfont/_family.py index 44f70c4d06..f7cfd53136 100644 --- a/plotly/validators/funnelarea/insidetextfont/_family.py +++ b/plotly/validators/funnelarea/insidetextfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/funnelarea/insidetextfont/_familysrc.py b/plotly/validators/funnelarea/insidetextfont/_familysrc.py index 324d584387..83b37a48e8 100644 --- a/plotly/validators/funnelarea/insidetextfont/_familysrc.py +++ b/plotly/validators/funnelarea/insidetextfont/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/insidetextfont/_lineposition.py b/plotly/validators/funnelarea/insidetextfont/_lineposition.py index c9e43e890b..635553a327 100644 --- a/plotly/validators/funnelarea/insidetextfont/_lineposition.py +++ b/plotly/validators/funnelarea/insidetextfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/funnelarea/insidetextfont/_linepositionsrc.py b/plotly/validators/funnelarea/insidetextfont/_linepositionsrc.py index baa768531d..9b49b42c3e 100644 --- a/plotly/validators/funnelarea/insidetextfont/_linepositionsrc.py +++ b/plotly/validators/funnelarea/insidetextfont/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/insidetextfont/_shadow.py b/plotly/validators/funnelarea/insidetextfont/_shadow.py index b90b5689ca..77115020ab 100644 --- a/plotly/validators/funnelarea/insidetextfont/_shadow.py +++ b/plotly/validators/funnelarea/insidetextfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/funnelarea/insidetextfont/_shadowsrc.py b/plotly/validators/funnelarea/insidetextfont/_shadowsrc.py index 5871314e23..b95b6a4331 100644 --- a/plotly/validators/funnelarea/insidetextfont/_shadowsrc.py +++ b/plotly/validators/funnelarea/insidetextfont/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/insidetextfont/_size.py b/plotly/validators/funnelarea/insidetextfont/_size.py index 39f0eee96f..ac821b8fa1 100644 --- a/plotly/validators/funnelarea/insidetextfont/_size.py +++ b/plotly/validators/funnelarea/insidetextfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/funnelarea/insidetextfont/_sizesrc.py b/plotly/validators/funnelarea/insidetextfont/_sizesrc.py index 1691cb8ac7..0f2dcc0d55 100644 --- a/plotly/validators/funnelarea/insidetextfont/_sizesrc.py +++ b/plotly/validators/funnelarea/insidetextfont/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/insidetextfont/_style.py b/plotly/validators/funnelarea/insidetextfont/_style.py index 070573cbff..db7303fe11 100644 --- a/plotly/validators/funnelarea/insidetextfont/_style.py +++ b/plotly/validators/funnelarea/insidetextfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/funnelarea/insidetextfont/_stylesrc.py b/plotly/validators/funnelarea/insidetextfont/_stylesrc.py index 6a48193da8..8374d93719 100644 --- a/plotly/validators/funnelarea/insidetextfont/_stylesrc.py +++ b/plotly/validators/funnelarea/insidetextfont/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/insidetextfont/_textcase.py b/plotly/validators/funnelarea/insidetextfont/_textcase.py index 3df78d5013..4d9219a0fb 100644 --- a/plotly/validators/funnelarea/insidetextfont/_textcase.py +++ b/plotly/validators/funnelarea/insidetextfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/funnelarea/insidetextfont/_textcasesrc.py b/plotly/validators/funnelarea/insidetextfont/_textcasesrc.py index 7f9b1ac6bb..6ab7d4a376 100644 --- a/plotly/validators/funnelarea/insidetextfont/_textcasesrc.py +++ b/plotly/validators/funnelarea/insidetextfont/_textcasesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/insidetextfont/_variant.py b/plotly/validators/funnelarea/insidetextfont/_variant.py index 3489086ee1..4d87d0c1d2 100644 --- a/plotly/validators/funnelarea/insidetextfont/_variant.py +++ b/plotly/validators/funnelarea/insidetextfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( diff --git a/plotly/validators/funnelarea/insidetextfont/_variantsrc.py b/plotly/validators/funnelarea/insidetextfont/_variantsrc.py index 1e6d6888a7..67cd1bb44b 100644 --- a/plotly/validators/funnelarea/insidetextfont/_variantsrc.py +++ b/plotly/validators/funnelarea/insidetextfont/_variantsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/insidetextfont/_weight.py b/plotly/validators/funnelarea/insidetextfont/_weight.py index 228c16104b..67b2640c81 100644 --- a/plotly/validators/funnelarea/insidetextfont/_weight.py +++ b/plotly/validators/funnelarea/insidetextfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/funnelarea/insidetextfont/_weightsrc.py b/plotly/validators/funnelarea/insidetextfont/_weightsrc.py index 681c29a7b5..2b43258552 100644 --- a/plotly/validators/funnelarea/insidetextfont/_weightsrc.py +++ b/plotly/validators/funnelarea/insidetextfont/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/legendgrouptitle/__init__.py b/plotly/validators/funnelarea/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/funnelarea/legendgrouptitle/__init__.py +++ b/plotly/validators/funnelarea/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/funnelarea/legendgrouptitle/_font.py b/plotly/validators/funnelarea/legendgrouptitle/_font.py index 8fde9255ae..1935910512 100644 --- a/plotly/validators/funnelarea/legendgrouptitle/_font.py +++ b/plotly/validators/funnelarea/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/funnelarea/legendgrouptitle/_text.py b/plotly/validators/funnelarea/legendgrouptitle/_text.py index 2dafda1dd1..f027d99151 100644 --- a/plotly/validators/funnelarea/legendgrouptitle/_text.py +++ b/plotly/validators/funnelarea/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/funnelarea/legendgrouptitle/font/__init__.py b/plotly/validators/funnelarea/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/funnelarea/legendgrouptitle/font/__init__.py +++ b/plotly/validators/funnelarea/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/funnelarea/legendgrouptitle/font/_color.py b/plotly/validators/funnelarea/legendgrouptitle/font/_color.py index 1f2f2d5800..4b5eecd85e 100644 --- a/plotly/validators/funnelarea/legendgrouptitle/font/_color.py +++ b/plotly/validators/funnelarea/legendgrouptitle/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/funnelarea/legendgrouptitle/font/_family.py b/plotly/validators/funnelarea/legendgrouptitle/font/_family.py index 3ef761def3..c488a4edcd 100644 --- a/plotly/validators/funnelarea/legendgrouptitle/font/_family.py +++ b/plotly/validators/funnelarea/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/funnelarea/legendgrouptitle/font/_lineposition.py b/plotly/validators/funnelarea/legendgrouptitle/font/_lineposition.py index 3f1c48c5da..c3ed4a20e2 100644 --- a/plotly/validators/funnelarea/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/funnelarea/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/funnelarea/legendgrouptitle/font/_shadow.py b/plotly/validators/funnelarea/legendgrouptitle/font/_shadow.py index 1adcfd4f5e..be837b36d1 100644 --- a/plotly/validators/funnelarea/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/funnelarea/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/funnelarea/legendgrouptitle/font/_size.py b/plotly/validators/funnelarea/legendgrouptitle/font/_size.py index a9201d7bb5..3f7aafb1ca 100644 --- a/plotly/validators/funnelarea/legendgrouptitle/font/_size.py +++ b/plotly/validators/funnelarea/legendgrouptitle/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/funnelarea/legendgrouptitle/font/_style.py b/plotly/validators/funnelarea/legendgrouptitle/font/_style.py index 87b7867717..8f276bdaeb 100644 --- a/plotly/validators/funnelarea/legendgrouptitle/font/_style.py +++ b/plotly/validators/funnelarea/legendgrouptitle/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/funnelarea/legendgrouptitle/font/_textcase.py b/plotly/validators/funnelarea/legendgrouptitle/font/_textcase.py index 9441590306..967fbf9e1f 100644 --- a/plotly/validators/funnelarea/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/funnelarea/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/funnelarea/legendgrouptitle/font/_variant.py b/plotly/validators/funnelarea/legendgrouptitle/font/_variant.py index dc3cdc9ea2..93a5a07ec6 100644 --- a/plotly/validators/funnelarea/legendgrouptitle/font/_variant.py +++ b/plotly/validators/funnelarea/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/funnelarea/legendgrouptitle/font/_weight.py b/plotly/validators/funnelarea/legendgrouptitle/font/_weight.py index 6acf0c3792..da9fe1ed91 100644 --- a/plotly/validators/funnelarea/legendgrouptitle/font/_weight.py +++ b/plotly/validators/funnelarea/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/funnelarea/marker/__init__.py b/plotly/validators/funnelarea/marker/__init__.py index aeae3564f6..22860e3333 100644 --- a/plotly/validators/funnelarea/marker/__init__.py +++ b/plotly/validators/funnelarea/marker/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._pattern import PatternValidator - from ._line import LineValidator - from ._colorssrc import ColorssrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._pattern.PatternValidator", + "._line.LineValidator", + "._colorssrc.ColorssrcValidator", + "._colors.ColorsValidator", + ], +) diff --git a/plotly/validators/funnelarea/marker/_colors.py b/plotly/validators/funnelarea/marker/_colors.py index 1be1bc6623..338923384a 100644 --- a/plotly/validators/funnelarea/marker/_colors.py +++ b/plotly/validators/funnelarea/marker/_colors.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/funnelarea/marker/_colorssrc.py b/plotly/validators/funnelarea/marker/_colorssrc.py index 64022dce33..7a9fb01d2f 100644 --- a/plotly/validators/funnelarea/marker/_colorssrc.py +++ b/plotly/validators/funnelarea/marker/_colorssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/marker/_line.py b/plotly/validators/funnelarea/marker/_line.py index b2319683f6..8c8bc4b659 100644 --- a/plotly/validators/funnelarea/marker/_line.py +++ b/plotly/validators/funnelarea/marker/_line.py @@ -1,27 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/funnelarea/marker/_pattern.py b/plotly/validators/funnelarea/marker/_pattern.py index d6a29333eb..df4d632766 100644 --- a/plotly/validators/funnelarea/marker/_pattern.py +++ b/plotly/validators/funnelarea/marker/_pattern.py @@ -1,65 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PatternValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/funnelarea/marker/line/__init__.py b/plotly/validators/funnelarea/marker/line/__init__.py index a2b9e1ae50..ca6d32f725 100644 --- a/plotly/validators/funnelarea/marker/line/__init__.py +++ b/plotly/validators/funnelarea/marker/line/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._widthsrc import WidthsrcValidator - from ._width import WidthValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._widthsrc.WidthsrcValidator", + "._width.WidthValidator", + "._colorsrc.ColorsrcValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/funnelarea/marker/line/_color.py b/plotly/validators/funnelarea/marker/line/_color.py index 823cc11d08..b97961e1b1 100644 --- a/plotly/validators/funnelarea/marker/line/_color.py +++ b/plotly/validators/funnelarea/marker/line/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/funnelarea/marker/line/_colorsrc.py b/plotly/validators/funnelarea/marker/line/_colorsrc.py index 8f19e8dbda..fe713b083c 100644 --- a/plotly/validators/funnelarea/marker/line/_colorsrc.py +++ b/plotly/validators/funnelarea/marker/line/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/marker/line/_width.py b/plotly/validators/funnelarea/marker/line/_width.py index 28a6655e5d..9ee4dd1aad 100644 --- a/plotly/validators/funnelarea/marker/line/_width.py +++ b/plotly/validators/funnelarea/marker/line/_width.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/funnelarea/marker/line/_widthsrc.py b/plotly/validators/funnelarea/marker/line/_widthsrc.py index 0feac95b0c..db325c660d 100644 --- a/plotly/validators/funnelarea/marker/line/_widthsrc.py +++ b/plotly/validators/funnelarea/marker/line/_widthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/marker/pattern/__init__.py b/plotly/validators/funnelarea/marker/pattern/__init__.py index e190f962c4..e42ccc4d0f 100644 --- a/plotly/validators/funnelarea/marker/pattern/__init__.py +++ b/plotly/validators/funnelarea/marker/pattern/__init__.py @@ -1,37 +1,21 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._soliditysrc import SoliditysrcValidator - from ._solidity import SolidityValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shapesrc import ShapesrcValidator - from ._shape import ShapeValidator - from ._fillmode import FillmodeValidator - from ._fgopacity import FgopacityValidator - from ._fgcolorsrc import FgcolorsrcValidator - from ._fgcolor import FgcolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/funnelarea/marker/pattern/_bgcolor.py b/plotly/validators/funnelarea/marker/pattern/_bgcolor.py index 547b77925e..c8a5edf742 100644 --- a/plotly/validators/funnelarea/marker/pattern/_bgcolor.py +++ b/plotly/validators/funnelarea/marker/pattern/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/funnelarea/marker/pattern/_bgcolorsrc.py b/plotly/validators/funnelarea/marker/pattern/_bgcolorsrc.py index 3a96862ac8..e27dcd75bb 100644 --- a/plotly/validators/funnelarea/marker/pattern/_bgcolorsrc.py +++ b/plotly/validators/funnelarea/marker/pattern/_bgcolorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/marker/pattern/_fgcolor.py b/plotly/validators/funnelarea/marker/pattern/_fgcolor.py index 536a51eb75..c3cddebc60 100644 --- a/plotly/validators/funnelarea/marker/pattern/_fgcolor.py +++ b/plotly/validators/funnelarea/marker/pattern/_fgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/funnelarea/marker/pattern/_fgcolorsrc.py b/plotly/validators/funnelarea/marker/pattern/_fgcolorsrc.py index 1a4355f4a6..5c000d0d41 100644 --- a/plotly/validators/funnelarea/marker/pattern/_fgcolorsrc.py +++ b/plotly/validators/funnelarea/marker/pattern/_fgcolorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/marker/pattern/_fgopacity.py b/plotly/validators/funnelarea/marker/pattern/_fgopacity.py index b868a89849..47a922bacc 100644 --- a/plotly/validators/funnelarea/marker/pattern/_fgopacity.py +++ b/plotly/validators/funnelarea/marker/pattern/_fgopacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FgopacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/funnelarea/marker/pattern/_fillmode.py b/plotly/validators/funnelarea/marker/pattern/_fillmode.py index 0cdbb4bea0..36dd30596b 100644 --- a/plotly/validators/funnelarea/marker/pattern/_fillmode.py +++ b/plotly/validators/funnelarea/marker/pattern/_fillmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["replace", "overlay"]), **kwargs, diff --git a/plotly/validators/funnelarea/marker/pattern/_shape.py b/plotly/validators/funnelarea/marker/pattern/_shape.py index 326b04b7b3..210c113412 100644 --- a/plotly/validators/funnelarea/marker/pattern/_shape.py +++ b/plotly/validators/funnelarea/marker/pattern/_shape.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["", "/", "\\", "x", "-", "|", "+", "."]), diff --git a/plotly/validators/funnelarea/marker/pattern/_shapesrc.py b/plotly/validators/funnelarea/marker/pattern/_shapesrc.py index f23896ab79..f9fcad8a6a 100644 --- a/plotly/validators/funnelarea/marker/pattern/_shapesrc.py +++ b/plotly/validators/funnelarea/marker/pattern/_shapesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShapesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/marker/pattern/_size.py b/plotly/validators/funnelarea/marker/pattern/_size.py index def633c999..a610db9fdb 100644 --- a/plotly/validators/funnelarea/marker/pattern/_size.py +++ b/plotly/validators/funnelarea/marker/pattern/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/funnelarea/marker/pattern/_sizesrc.py b/plotly/validators/funnelarea/marker/pattern/_sizesrc.py index 4320434910..efd9d3a461 100644 --- a/plotly/validators/funnelarea/marker/pattern/_sizesrc.py +++ b/plotly/validators/funnelarea/marker/pattern/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/marker/pattern/_solidity.py b/plotly/validators/funnelarea/marker/pattern/_solidity.py index a7fff3113c..196d763946 100644 --- a/plotly/validators/funnelarea/marker/pattern/_solidity.py +++ b/plotly/validators/funnelarea/marker/pattern/_solidity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SolidityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), diff --git a/plotly/validators/funnelarea/marker/pattern/_soliditysrc.py b/plotly/validators/funnelarea/marker/pattern/_soliditysrc.py index 9be2f5b253..8528cf7738 100644 --- a/plotly/validators/funnelarea/marker/pattern/_soliditysrc.py +++ b/plotly/validators/funnelarea/marker/pattern/_soliditysrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SoliditysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/stream/__init__.py b/plotly/validators/funnelarea/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/funnelarea/stream/__init__.py +++ b/plotly/validators/funnelarea/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/funnelarea/stream/_maxpoints.py b/plotly/validators/funnelarea/stream/_maxpoints.py index e081d5afb4..6081be88ab 100644 --- a/plotly/validators/funnelarea/stream/_maxpoints.py +++ b/plotly/validators/funnelarea/stream/_maxpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/funnelarea/stream/_token.py b/plotly/validators/funnelarea/stream/_token.py index 30192e4c76..922f950337 100644 --- a/plotly/validators/funnelarea/stream/_token.py +++ b/plotly/validators/funnelarea/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/funnelarea/textfont/__init__.py b/plotly/validators/funnelarea/textfont/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/funnelarea/textfont/__init__.py +++ b/plotly/validators/funnelarea/textfont/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/funnelarea/textfont/_color.py b/plotly/validators/funnelarea/textfont/_color.py index 27778487a1..f4b95e2b2f 100644 --- a/plotly/validators/funnelarea/textfont/_color.py +++ b/plotly/validators/funnelarea/textfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/funnelarea/textfont/_colorsrc.py b/plotly/validators/funnelarea/textfont/_colorsrc.py index e1f75edf4d..dae54efcc8 100644 --- a/plotly/validators/funnelarea/textfont/_colorsrc.py +++ b/plotly/validators/funnelarea/textfont/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/textfont/_family.py b/plotly/validators/funnelarea/textfont/_family.py index 312a02d5ce..61f65bed3e 100644 --- a/plotly/validators/funnelarea/textfont/_family.py +++ b/plotly/validators/funnelarea/textfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/funnelarea/textfont/_familysrc.py b/plotly/validators/funnelarea/textfont/_familysrc.py index ffaffc41f9..f911105e57 100644 --- a/plotly/validators/funnelarea/textfont/_familysrc.py +++ b/plotly/validators/funnelarea/textfont/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/textfont/_lineposition.py b/plotly/validators/funnelarea/textfont/_lineposition.py index 0027d0a212..2758c00f7d 100644 --- a/plotly/validators/funnelarea/textfont/_lineposition.py +++ b/plotly/validators/funnelarea/textfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/funnelarea/textfont/_linepositionsrc.py b/plotly/validators/funnelarea/textfont/_linepositionsrc.py index 031e35e51f..1f07a07a68 100644 --- a/plotly/validators/funnelarea/textfont/_linepositionsrc.py +++ b/plotly/validators/funnelarea/textfont/_linepositionsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/textfont/_shadow.py b/plotly/validators/funnelarea/textfont/_shadow.py index a4865b260e..6a3a10fc9f 100644 --- a/plotly/validators/funnelarea/textfont/_shadow.py +++ b/plotly/validators/funnelarea/textfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/funnelarea/textfont/_shadowsrc.py b/plotly/validators/funnelarea/textfont/_shadowsrc.py index 51c2258f5a..a549ef0de5 100644 --- a/plotly/validators/funnelarea/textfont/_shadowsrc.py +++ b/plotly/validators/funnelarea/textfont/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/textfont/_size.py b/plotly/validators/funnelarea/textfont/_size.py index edfeb482de..546b47bde7 100644 --- a/plotly/validators/funnelarea/textfont/_size.py +++ b/plotly/validators/funnelarea/textfont/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/funnelarea/textfont/_sizesrc.py b/plotly/validators/funnelarea/textfont/_sizesrc.py index f3aded5297..2ea79a3ab4 100644 --- a/plotly/validators/funnelarea/textfont/_sizesrc.py +++ b/plotly/validators/funnelarea/textfont/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/textfont/_style.py b/plotly/validators/funnelarea/textfont/_style.py index 5ae4be1b43..dc20459d7a 100644 --- a/plotly/validators/funnelarea/textfont/_style.py +++ b/plotly/validators/funnelarea/textfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/funnelarea/textfont/_stylesrc.py b/plotly/validators/funnelarea/textfont/_stylesrc.py index c1e797cab4..8b967d06e6 100644 --- a/plotly/validators/funnelarea/textfont/_stylesrc.py +++ b/plotly/validators/funnelarea/textfont/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/textfont/_textcase.py b/plotly/validators/funnelarea/textfont/_textcase.py index 9e85354e33..91160d0596 100644 --- a/plotly/validators/funnelarea/textfont/_textcase.py +++ b/plotly/validators/funnelarea/textfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/funnelarea/textfont/_textcasesrc.py b/plotly/validators/funnelarea/textfont/_textcasesrc.py index 79b3b6241e..4d357b02dc 100644 --- a/plotly/validators/funnelarea/textfont/_textcasesrc.py +++ b/plotly/validators/funnelarea/textfont/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/textfont/_variant.py b/plotly/validators/funnelarea/textfont/_variant.py index 0138135319..071f30bf79 100644 --- a/plotly/validators/funnelarea/textfont/_variant.py +++ b/plotly/validators/funnelarea/textfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( diff --git a/plotly/validators/funnelarea/textfont/_variantsrc.py b/plotly/validators/funnelarea/textfont/_variantsrc.py index 04e6af971d..44cdd74f12 100644 --- a/plotly/validators/funnelarea/textfont/_variantsrc.py +++ b/plotly/validators/funnelarea/textfont/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/textfont/_weight.py b/plotly/validators/funnelarea/textfont/_weight.py index 1d56af3ef4..130b304312 100644 --- a/plotly/validators/funnelarea/textfont/_weight.py +++ b/plotly/validators/funnelarea/textfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/funnelarea/textfont/_weightsrc.py b/plotly/validators/funnelarea/textfont/_weightsrc.py index a41484018b..489fd43f97 100644 --- a/plotly/validators/funnelarea/textfont/_weightsrc.py +++ b/plotly/validators/funnelarea/textfont/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/title/__init__.py b/plotly/validators/funnelarea/title/__init__.py index bedd4ba176..8d5c91b29e 100644 --- a/plotly/validators/funnelarea/title/__init__.py +++ b/plotly/validators/funnelarea/title/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._position.PositionValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/funnelarea/title/_font.py b/plotly/validators/funnelarea/title/_font.py index 64f90d2171..f0af44e50a 100644 --- a/plotly/validators/funnelarea/title/_font.py +++ b/plotly/validators/funnelarea/title/_font.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/funnelarea/title/_position.py b/plotly/validators/funnelarea/title/_position.py index 06067e6253..cbd861c71f 100644 --- a/plotly/validators/funnelarea/title/_position.py +++ b/plotly/validators/funnelarea/title/_position.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["top left", "top center", "top right"]), **kwargs, diff --git a/plotly/validators/funnelarea/title/_text.py b/plotly/validators/funnelarea/title/_text.py index 81bf53add0..fd9b8938be 100644 --- a/plotly/validators/funnelarea/title/_text.py +++ b/plotly/validators/funnelarea/title/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/funnelarea/title/font/__init__.py b/plotly/validators/funnelarea/title/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/funnelarea/title/font/__init__.py +++ b/plotly/validators/funnelarea/title/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/funnelarea/title/font/_color.py b/plotly/validators/funnelarea/title/font/_color.py index 7a43ae8892..b385d415e7 100644 --- a/plotly/validators/funnelarea/title/font/_color.py +++ b/plotly/validators/funnelarea/title/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/funnelarea/title/font/_colorsrc.py b/plotly/validators/funnelarea/title/font/_colorsrc.py index 568990ff41..1cdc6d1264 100644 --- a/plotly/validators/funnelarea/title/font/_colorsrc.py +++ b/plotly/validators/funnelarea/title/font/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/title/font/_family.py b/plotly/validators/funnelarea/title/font/_family.py index 274b1b8b4c..b987e74f49 100644 --- a/plotly/validators/funnelarea/title/font/_family.py +++ b/plotly/validators/funnelarea/title/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/funnelarea/title/font/_familysrc.py b/plotly/validators/funnelarea/title/font/_familysrc.py index a8de565424..02a1476e70 100644 --- a/plotly/validators/funnelarea/title/font/_familysrc.py +++ b/plotly/validators/funnelarea/title/font/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/title/font/_lineposition.py b/plotly/validators/funnelarea/title/font/_lineposition.py index a8685c308a..5ca2b28c82 100644 --- a/plotly/validators/funnelarea/title/font/_lineposition.py +++ b/plotly/validators/funnelarea/title/font/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/funnelarea/title/font/_linepositionsrc.py b/plotly/validators/funnelarea/title/font/_linepositionsrc.py index 04a5f8c8e6..1e16176817 100644 --- a/plotly/validators/funnelarea/title/font/_linepositionsrc.py +++ b/plotly/validators/funnelarea/title/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/title/font/_shadow.py b/plotly/validators/funnelarea/title/font/_shadow.py index 0707382023..58f4a18d45 100644 --- a/plotly/validators/funnelarea/title/font/_shadow.py +++ b/plotly/validators/funnelarea/title/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/funnelarea/title/font/_shadowsrc.py b/plotly/validators/funnelarea/title/font/_shadowsrc.py index 677b5ffb56..9e6b94da36 100644 --- a/plotly/validators/funnelarea/title/font/_shadowsrc.py +++ b/plotly/validators/funnelarea/title/font/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/title/font/_size.py b/plotly/validators/funnelarea/title/font/_size.py index 230928b31b..e7abbd5f60 100644 --- a/plotly/validators/funnelarea/title/font/_size.py +++ b/plotly/validators/funnelarea/title/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/funnelarea/title/font/_sizesrc.py b/plotly/validators/funnelarea/title/font/_sizesrc.py index cd20c2497f..2fc0b3a9a9 100644 --- a/plotly/validators/funnelarea/title/font/_sizesrc.py +++ b/plotly/validators/funnelarea/title/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/title/font/_style.py b/plotly/validators/funnelarea/title/font/_style.py index a07f81f4d7..f03713529b 100644 --- a/plotly/validators/funnelarea/title/font/_style.py +++ b/plotly/validators/funnelarea/title/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/funnelarea/title/font/_stylesrc.py b/plotly/validators/funnelarea/title/font/_stylesrc.py index 5aa07587db..867c1a0c8d 100644 --- a/plotly/validators/funnelarea/title/font/_stylesrc.py +++ b/plotly/validators/funnelarea/title/font/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/title/font/_textcase.py b/plotly/validators/funnelarea/title/font/_textcase.py index 0ba7eedf25..555f610448 100644 --- a/plotly/validators/funnelarea/title/font/_textcase.py +++ b/plotly/validators/funnelarea/title/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/funnelarea/title/font/_textcasesrc.py b/plotly/validators/funnelarea/title/font/_textcasesrc.py index c00d6aa727..16c98fb0a1 100644 --- a/plotly/validators/funnelarea/title/font/_textcasesrc.py +++ b/plotly/validators/funnelarea/title/font/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/title/font/_variant.py b/plotly/validators/funnelarea/title/font/_variant.py index 11138193de..7f94c099cc 100644 --- a/plotly/validators/funnelarea/title/font/_variant.py +++ b/plotly/validators/funnelarea/title/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( diff --git a/plotly/validators/funnelarea/title/font/_variantsrc.py b/plotly/validators/funnelarea/title/font/_variantsrc.py index a22dbdc2e6..dc174aee73 100644 --- a/plotly/validators/funnelarea/title/font/_variantsrc.py +++ b/plotly/validators/funnelarea/title/font/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/funnelarea/title/font/_weight.py b/plotly/validators/funnelarea/title/font/_weight.py index b146cf917a..2d02b66936 100644 --- a/plotly/validators/funnelarea/title/font/_weight.py +++ b/plotly/validators/funnelarea/title/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/funnelarea/title/font/_weightsrc.py b/plotly/validators/funnelarea/title/font/_weightsrc.py index af8f1166a9..cad1d31fdc 100644 --- a/plotly/validators/funnelarea/title/font/_weightsrc.py +++ b/plotly/validators/funnelarea/title/font/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/heatmap/__init__.py b/plotly/validators/heatmap/__init__.py index 5720a81de3..126790d7d6 100644 --- a/plotly/validators/heatmap/__init__.py +++ b/plotly/validators/heatmap/__init__.py @@ -1,155 +1,80 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zsrc import ZsrcValidator - from ._zsmooth import ZsmoothValidator - from ._zorder import ZorderValidator - from ._zmin import ZminValidator - from ._zmid import ZmidValidator - from ._zmax import ZmaxValidator - from ._zhoverformat import ZhoverformatValidator - from ._zauto import ZautoValidator - from ._z import ZValidator - from ._ytype import YtypeValidator - from ._ysrc import YsrcValidator - from ._yperiodalignment import YperiodalignmentValidator - from ._yperiod0 import Yperiod0Validator - from ._yperiod import YperiodValidator - from ._yhoverformat import YhoverformatValidator - from ._ygap import YgapValidator - from ._ycalendar import YcalendarValidator - from ._yaxis import YaxisValidator - from ._y0 import Y0Validator - from ._y import YValidator - from ._xtype import XtypeValidator - from ._xsrc import XsrcValidator - from ._xperiodalignment import XperiodalignmentValidator - from ._xperiod0 import Xperiod0Validator - from ._xperiod import XperiodValidator - from ._xhoverformat import XhoverformatValidator - from ._xgap import XgapValidator - from ._xcalendar import XcalendarValidator - from ._xaxis import XaxisValidator - from ._x0 import X0Validator - from ._x import XValidator - from ._visible import VisibleValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._transpose import TransposeValidator - from ._texttemplate import TexttemplateValidator - from ._textsrc import TextsrcValidator - from ._textfont import TextfontValidator - from ._text import TextValidator - from ._stream import StreamValidator - from ._showscale import ShowscaleValidator - from ._showlegend import ShowlegendValidator - from ._reversescale import ReversescaleValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoverongaps import HoverongapsValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._dy import DyValidator - from ._dx import DxValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._connectgaps import ConnectgapsValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/heatmap/_autocolorscale.py b/plotly/validators/heatmap/_autocolorscale.py index d409d569b6..b059fb0ac8 100644 --- a/plotly/validators/heatmap/_autocolorscale.py +++ b/plotly/validators/heatmap/_autocolorscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/heatmap/_coloraxis.py b/plotly/validators/heatmap/_coloraxis.py index dde36756fc..f495ef9b32 100644 --- a/plotly/validators/heatmap/_coloraxis.py +++ b/plotly/validators/heatmap/_coloraxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/heatmap/_colorbar.py b/plotly/validators/heatmap/_colorbar.py index e91fd0a6a0..89347a6012 100644 --- a/plotly/validators/heatmap/_colorbar.py +++ b/plotly/validators/heatmap/_colorbar.py @@ -1,278 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/heatmap/_colorscale.py b/plotly/validators/heatmap/_colorscale.py index f8e989e1cf..2276053210 100644 --- a/plotly/validators/heatmap/_colorscale.py +++ b/plotly/validators/heatmap/_colorscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/heatmap/_connectgaps.py b/plotly/validators/heatmap/_connectgaps.py index 3ba1dc5aa1..abf1f55bff 100644 --- a/plotly/validators/heatmap/_connectgaps.py +++ b/plotly/validators/heatmap/_connectgaps.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/heatmap/_customdata.py b/plotly/validators/heatmap/_customdata.py index 0d87ce5ecb..3410f9adac 100644 --- a/plotly/validators/heatmap/_customdata.py +++ b/plotly/validators/heatmap/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/heatmap/_customdatasrc.py b/plotly/validators/heatmap/_customdatasrc.py index 3e267577dd..e27b7a9190 100644 --- a/plotly/validators/heatmap/_customdatasrc.py +++ b/plotly/validators/heatmap/_customdatasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/heatmap/_dx.py b/plotly/validators/heatmap/_dx.py index 7b0402c39f..7f8d958d1f 100644 --- a/plotly/validators/heatmap/_dx.py +++ b/plotly/validators/heatmap/_dx.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"xtype": "scaled"}), **kwargs, diff --git a/plotly/validators/heatmap/_dy.py b/plotly/validators/heatmap/_dy.py index ccb42a16d7..d5cbd8fbe9 100644 --- a/plotly/validators/heatmap/_dy.py +++ b/plotly/validators/heatmap/_dy.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DyValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"ytype": "scaled"}), **kwargs, diff --git a/plotly/validators/heatmap/_hoverinfo.py b/plotly/validators/heatmap/_hoverinfo.py index 796ceb7b87..36901afe61 100644 --- a/plotly/validators/heatmap/_hoverinfo.py +++ b/plotly/validators/heatmap/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/heatmap/_hoverinfosrc.py b/plotly/validators/heatmap/_hoverinfosrc.py index 338bbdb9cc..6e8337d243 100644 --- a/plotly/validators/heatmap/_hoverinfosrc.py +++ b/plotly/validators/heatmap/_hoverinfosrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/heatmap/_hoverlabel.py b/plotly/validators/heatmap/_hoverlabel.py index e2ca30fd2f..18deeac4a7 100644 --- a/plotly/validators/heatmap/_hoverlabel.py +++ b/plotly/validators/heatmap/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/heatmap/_hoverongaps.py b/plotly/validators/heatmap/_hoverongaps.py index 94bd2a8604..aa3edf0b18 100644 --- a/plotly/validators/heatmap/_hoverongaps.py +++ b/plotly/validators/heatmap/_hoverongaps.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverongapsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/heatmap/_hovertemplate.py b/plotly/validators/heatmap/_hovertemplate.py index 2a4ac2190b..bf488c7ca5 100644 --- a/plotly/validators/heatmap/_hovertemplate.py +++ b/plotly/validators/heatmap/_hovertemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/heatmap/_hovertemplatesrc.py b/plotly/validators/heatmap/_hovertemplatesrc.py index 5cc143a451..9e76bd9f4c 100644 --- a/plotly/validators/heatmap/_hovertemplatesrc.py +++ b/plotly/validators/heatmap/_hovertemplatesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/heatmap/_hovertext.py b/plotly/validators/heatmap/_hovertext.py index c1ac0bdf4f..68e1dfefa3 100644 --- a/plotly/validators/heatmap/_hovertext.py +++ b/plotly/validators/heatmap/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/heatmap/_hovertextsrc.py b/plotly/validators/heatmap/_hovertextsrc.py index b6e788a00c..10e1235280 100644 --- a/plotly/validators/heatmap/_hovertextsrc.py +++ b/plotly/validators/heatmap/_hovertextsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/heatmap/_ids.py b/plotly/validators/heatmap/_ids.py index b2dba315b1..c2aba14081 100644 --- a/plotly/validators/heatmap/_ids.py +++ b/plotly/validators/heatmap/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/heatmap/_idssrc.py b/plotly/validators/heatmap/_idssrc.py index 9353997622..bb5d35776f 100644 --- a/plotly/validators/heatmap/_idssrc.py +++ b/plotly/validators/heatmap/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/heatmap/_legend.py b/plotly/validators/heatmap/_legend.py index 0c177c920e..9bd7e4f97c 100644 --- a/plotly/validators/heatmap/_legend.py +++ b/plotly/validators/heatmap/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/heatmap/_legendgroup.py b/plotly/validators/heatmap/_legendgroup.py index 8fb3207d64..ef187dc11d 100644 --- a/plotly/validators/heatmap/_legendgroup.py +++ b/plotly/validators/heatmap/_legendgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/heatmap/_legendgrouptitle.py b/plotly/validators/heatmap/_legendgrouptitle.py index 080953fb82..cfac6ea23e 100644 --- a/plotly/validators/heatmap/_legendgrouptitle.py +++ b/plotly/validators/heatmap/_legendgrouptitle.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/heatmap/_legendrank.py b/plotly/validators/heatmap/_legendrank.py index 3b0333b2a2..30f9fff6c6 100644 --- a/plotly/validators/heatmap/_legendrank.py +++ b/plotly/validators/heatmap/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/heatmap/_legendwidth.py b/plotly/validators/heatmap/_legendwidth.py index 03c65f0038..41742c5a1d 100644 --- a/plotly/validators/heatmap/_legendwidth.py +++ b/plotly/validators/heatmap/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/heatmap/_meta.py b/plotly/validators/heatmap/_meta.py index 1e7e7208ea..d73baf0950 100644 --- a/plotly/validators/heatmap/_meta.py +++ b/plotly/validators/heatmap/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/heatmap/_metasrc.py b/plotly/validators/heatmap/_metasrc.py index 5e07bb0a42..570f1d3fcc 100644 --- a/plotly/validators/heatmap/_metasrc.py +++ b/plotly/validators/heatmap/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/heatmap/_name.py b/plotly/validators/heatmap/_name.py index 6a0a783a09..6c2142fb6a 100644 --- a/plotly/validators/heatmap/_name.py +++ b/plotly/validators/heatmap/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/heatmap/_opacity.py b/plotly/validators/heatmap/_opacity.py index 172bf32c3d..6893d1b6cb 100644 --- a/plotly/validators/heatmap/_opacity.py +++ b/plotly/validators/heatmap/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/heatmap/_reversescale.py b/plotly/validators/heatmap/_reversescale.py index 645582738c..986ac5fd26 100644 --- a/plotly/validators/heatmap/_reversescale.py +++ b/plotly/validators/heatmap/_reversescale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/heatmap/_showlegend.py b/plotly/validators/heatmap/_showlegend.py index 4be0110caa..47b534aab0 100644 --- a/plotly/validators/heatmap/_showlegend.py +++ b/plotly/validators/heatmap/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/heatmap/_showscale.py b/plotly/validators/heatmap/_showscale.py index 238784b899..f98599abe0 100644 --- a/plotly/validators/heatmap/_showscale.py +++ b/plotly/validators/heatmap/_showscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/heatmap/_stream.py b/plotly/validators/heatmap/_stream.py index 5b65c11bbf..502c094a22 100644 --- a/plotly/validators/heatmap/_stream.py +++ b/plotly/validators/heatmap/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/heatmap/_text.py b/plotly/validators/heatmap/_text.py index f65cdc8eb0..0879e581e4 100644 --- a/plotly/validators/heatmap/_text.py +++ b/plotly/validators/heatmap/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/heatmap/_textfont.py b/plotly/validators/heatmap/_textfont.py index 7e1300945b..a7500fcd14 100644 --- a/plotly/validators/heatmap/_textfont.py +++ b/plotly/validators/heatmap/_textfont.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/heatmap/_textsrc.py b/plotly/validators/heatmap/_textsrc.py index 7504a623ae..b0fbcb6932 100644 --- a/plotly/validators/heatmap/_textsrc.py +++ b/plotly/validators/heatmap/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/heatmap/_texttemplate.py b/plotly/validators/heatmap/_texttemplate.py index e35d3490eb..e3d315619c 100644 --- a/plotly/validators/heatmap/_texttemplate.py +++ b/plotly/validators/heatmap/_texttemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/heatmap/_transpose.py b/plotly/validators/heatmap/_transpose.py index 088bcbf394..d5ad7f0c98 100644 --- a/plotly/validators/heatmap/_transpose.py +++ b/plotly/validators/heatmap/_transpose.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TransposeValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/heatmap/_uid.py b/plotly/validators/heatmap/_uid.py index 74539c3812..f4fe0cb0bf 100644 --- a/plotly/validators/heatmap/_uid.py +++ b/plotly/validators/heatmap/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/heatmap/_uirevision.py b/plotly/validators/heatmap/_uirevision.py index 5156312543..9327a20974 100644 --- a/plotly/validators/heatmap/_uirevision.py +++ b/plotly/validators/heatmap/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/heatmap/_visible.py b/plotly/validators/heatmap/_visible.py index 0b0472cd8f..feae4df0c3 100644 --- a/plotly/validators/heatmap/_visible.py +++ b/plotly/validators/heatmap/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/heatmap/_x.py b/plotly/validators/heatmap/_x.py index 71bc7cd592..b9c34044c4 100644 --- a/plotly/validators/heatmap/_x.py +++ b/plotly/validators/heatmap/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), implied_edits=kwargs.pop("implied_edits", {"xtype": "array"}), **kwargs, diff --git a/plotly/validators/heatmap/_x0.py b/plotly/validators/heatmap/_x0.py index 9e9df6fba3..696a8ff07d 100644 --- a/plotly/validators/heatmap/_x0.py +++ b/plotly/validators/heatmap/_x0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class X0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), implied_edits=kwargs.pop("implied_edits", {"xtype": "scaled"}), **kwargs, diff --git a/plotly/validators/heatmap/_xaxis.py b/plotly/validators/heatmap/_xaxis.py index cdbebdb249..2e0a7d0335 100644 --- a/plotly/validators/heatmap/_xaxis.py +++ b/plotly/validators/heatmap/_xaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "x"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/heatmap/_xcalendar.py b/plotly/validators/heatmap/_xcalendar.py index 866cf54be1..c8b0a8b8e9 100644 --- a/plotly/validators/heatmap/_xcalendar.py +++ b/plotly/validators/heatmap/_xcalendar.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/heatmap/_xgap.py b/plotly/validators/heatmap/_xgap.py index 734573ef99..1699f3e01c 100644 --- a/plotly/validators/heatmap/_xgap.py +++ b/plotly/validators/heatmap/_xgap.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XgapValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/heatmap/_xhoverformat.py b/plotly/validators/heatmap/_xhoverformat.py index 815c1bae4b..992bd1083c 100644 --- a/plotly/validators/heatmap/_xhoverformat.py +++ b/plotly/validators/heatmap/_xhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/heatmap/_xperiod.py b/plotly/validators/heatmap/_xperiod.py index a408cfd8dd..7ecb1c0e04 100644 --- a/plotly/validators/heatmap/_xperiod.py +++ b/plotly/validators/heatmap/_xperiod.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XperiodValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"xtype": "scaled"}), **kwargs, diff --git a/plotly/validators/heatmap/_xperiod0.py b/plotly/validators/heatmap/_xperiod0.py index 2fb554304d..fc5bbbf720 100644 --- a/plotly/validators/heatmap/_xperiod0.py +++ b/plotly/validators/heatmap/_xperiod0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Xperiod0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"xtype": "scaled"}), **kwargs, diff --git a/plotly/validators/heatmap/_xperiodalignment.py b/plotly/validators/heatmap/_xperiodalignment.py index 129b29f1ea..18ffd384f3 100644 --- a/plotly/validators/heatmap/_xperiodalignment.py +++ b/plotly/validators/heatmap/_xperiodalignment.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/heatmap/_xsrc.py b/plotly/validators/heatmap/_xsrc.py index 2f296dfbda..b352a0f558 100644 --- a/plotly/validators/heatmap/_xsrc.py +++ b/plotly/validators/heatmap/_xsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/heatmap/_xtype.py b/plotly/validators/heatmap/_xtype.py index 2e4ffbb350..1d6407e930 100644 --- a/plotly/validators/heatmap/_xtype.py +++ b/plotly/validators/heatmap/_xtype.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XtypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), values=kwargs.pop("values", ["array", "scaled"]), **kwargs, diff --git a/plotly/validators/heatmap/_y.py b/plotly/validators/heatmap/_y.py index b666cd2c46..e7c1a99d98 100644 --- a/plotly/validators/heatmap/_y.py +++ b/plotly/validators/heatmap/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), implied_edits=kwargs.pop("implied_edits", {"ytype": "array"}), **kwargs, diff --git a/plotly/validators/heatmap/_y0.py b/plotly/validators/heatmap/_y0.py index 55aa5f4d1f..0dad1b70a5 100644 --- a/plotly/validators/heatmap/_y0.py +++ b/plotly/validators/heatmap/_y0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Y0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), implied_edits=kwargs.pop("implied_edits", {"ytype": "scaled"}), **kwargs, diff --git a/plotly/validators/heatmap/_yaxis.py b/plotly/validators/heatmap/_yaxis.py index 656429380e..df4e6d775d 100644 --- a/plotly/validators/heatmap/_yaxis.py +++ b/plotly/validators/heatmap/_yaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "y"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/heatmap/_ycalendar.py b/plotly/validators/heatmap/_ycalendar.py index 94f2802dba..01e2e5bdbc 100644 --- a/plotly/validators/heatmap/_ycalendar.py +++ b/plotly/validators/heatmap/_ycalendar.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/heatmap/_ygap.py b/plotly/validators/heatmap/_ygap.py index f5bf876087..3e6880bd20 100644 --- a/plotly/validators/heatmap/_ygap.py +++ b/plotly/validators/heatmap/_ygap.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YgapValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/heatmap/_yhoverformat.py b/plotly/validators/heatmap/_yhoverformat.py index c05ec60957..ed9f1b4efe 100644 --- a/plotly/validators/heatmap/_yhoverformat.py +++ b/plotly/validators/heatmap/_yhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/heatmap/_yperiod.py b/plotly/validators/heatmap/_yperiod.py index 6496c7ed15..570ac545fa 100644 --- a/plotly/validators/heatmap/_yperiod.py +++ b/plotly/validators/heatmap/_yperiod.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YperiodValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"ytype": "scaled"}), **kwargs, diff --git a/plotly/validators/heatmap/_yperiod0.py b/plotly/validators/heatmap/_yperiod0.py index 23b3b9f85d..4a3c709c62 100644 --- a/plotly/validators/heatmap/_yperiod0.py +++ b/plotly/validators/heatmap/_yperiod0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Yperiod0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"ytype": "scaled"}), **kwargs, diff --git a/plotly/validators/heatmap/_yperiodalignment.py b/plotly/validators/heatmap/_yperiodalignment.py index 046b687fa3..8bf0e14370 100644 --- a/plotly/validators/heatmap/_yperiodalignment.py +++ b/plotly/validators/heatmap/_yperiodalignment.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/heatmap/_ysrc.py b/plotly/validators/heatmap/_ysrc.py index ca0e06f9fd..1591ab761f 100644 --- a/plotly/validators/heatmap/_ysrc.py +++ b/plotly/validators/heatmap/_ysrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/heatmap/_ytype.py b/plotly/validators/heatmap/_ytype.py index eb8724a780..c6497b2e76 100644 --- a/plotly/validators/heatmap/_ytype.py +++ b/plotly/validators/heatmap/_ytype.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YtypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), values=kwargs.pop("values", ["array", "scaled"]), **kwargs, diff --git a/plotly/validators/heatmap/_z.py b/plotly/validators/heatmap/_z.py index 96cf12216a..75d7373e89 100644 --- a/plotly/validators/heatmap/_z.py +++ b/plotly/validators/heatmap/_z.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/heatmap/_zauto.py b/plotly/validators/heatmap/_zauto.py index f813e26ec2..bd6e6f9380 100644 --- a/plotly/validators/heatmap/_zauto.py +++ b/plotly/validators/heatmap/_zauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/heatmap/_zhoverformat.py b/plotly/validators/heatmap/_zhoverformat.py index bec2e7d576..bdc7c22800 100644 --- a/plotly/validators/heatmap/_zhoverformat.py +++ b/plotly/validators/heatmap/_zhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/heatmap/_zmax.py b/plotly/validators/heatmap/_zmax.py index 3c5f008850..761bece927 100644 --- a/plotly/validators/heatmap/_zmax.py +++ b/plotly/validators/heatmap/_zmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"zauto": False}), **kwargs, diff --git a/plotly/validators/heatmap/_zmid.py b/plotly/validators/heatmap/_zmid.py index 8c4d587d7a..8a783599bf 100644 --- a/plotly/validators/heatmap/_zmid.py +++ b/plotly/validators/heatmap/_zmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/heatmap/_zmin.py b/plotly/validators/heatmap/_zmin.py index ccf2b54b74..ccefe5c072 100644 --- a/plotly/validators/heatmap/_zmin.py +++ b/plotly/validators/heatmap/_zmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"zauto": False}), **kwargs, diff --git a/plotly/validators/heatmap/_zorder.py b/plotly/validators/heatmap/_zorder.py index 5d7073a9d9..a8168b77e7 100644 --- a/plotly/validators/heatmap/_zorder.py +++ b/plotly/validators/heatmap/_zorder.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZorderValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/heatmap/_zsmooth.py b/plotly/validators/heatmap/_zsmooth.py index 8ddc3870db..a3dbd0231b 100644 --- a/plotly/validators/heatmap/_zsmooth.py +++ b/plotly/validators/heatmap/_zsmooth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZsmoothValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["fast", "best", False]), **kwargs, diff --git a/plotly/validators/heatmap/_zsrc.py b/plotly/validators/heatmap/_zsrc.py index a6f8c2076c..8a2708ddda 100644 --- a/plotly/validators/heatmap/_zsrc.py +++ b/plotly/validators/heatmap/_zsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/heatmap/colorbar/__init__.py b/plotly/validators/heatmap/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/heatmap/colorbar/__init__.py +++ b/plotly/validators/heatmap/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/heatmap/colorbar/_bgcolor.py b/plotly/validators/heatmap/colorbar/_bgcolor.py index 1a4875e898..cb0aa4af39 100644 --- a/plotly/validators/heatmap/colorbar/_bgcolor.py +++ b/plotly/validators/heatmap/colorbar/_bgcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/heatmap/colorbar/_bordercolor.py b/plotly/validators/heatmap/colorbar/_bordercolor.py index 10cbf7f7dd..e8c1ea8b9b 100644 --- a/plotly/validators/heatmap/colorbar/_bordercolor.py +++ b/plotly/validators/heatmap/colorbar/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/heatmap/colorbar/_borderwidth.py b/plotly/validators/heatmap/colorbar/_borderwidth.py index 2db34d2622..1433e9ce49 100644 --- a/plotly/validators/heatmap/colorbar/_borderwidth.py +++ b/plotly/validators/heatmap/colorbar/_borderwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/heatmap/colorbar/_dtick.py b/plotly/validators/heatmap/colorbar/_dtick.py index 5eeff0d6fa..ee8b617439 100644 --- a/plotly/validators/heatmap/colorbar/_dtick.py +++ b/plotly/validators/heatmap/colorbar/_dtick.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/heatmap/colorbar/_exponentformat.py b/plotly/validators/heatmap/colorbar/_exponentformat.py index c4a12bd449..96a6a390de 100644 --- a/plotly/validators/heatmap/colorbar/_exponentformat.py +++ b/plotly/validators/heatmap/colorbar/_exponentformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/heatmap/colorbar/_labelalias.py b/plotly/validators/heatmap/colorbar/_labelalias.py index 24cc4b1b99..b62b55c4c4 100644 --- a/plotly/validators/heatmap/colorbar/_labelalias.py +++ b/plotly/validators/heatmap/colorbar/_labelalias.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/heatmap/colorbar/_len.py b/plotly/validators/heatmap/colorbar/_len.py index b71715bf29..1b66316602 100644 --- a/plotly/validators/heatmap/colorbar/_len.py +++ b/plotly/validators/heatmap/colorbar/_len.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/heatmap/colorbar/_lenmode.py b/plotly/validators/heatmap/colorbar/_lenmode.py index ee5e4db026..856a9c3c20 100644 --- a/plotly/validators/heatmap/colorbar/_lenmode.py +++ b/plotly/validators/heatmap/colorbar/_lenmode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/heatmap/colorbar/_minexponent.py b/plotly/validators/heatmap/colorbar/_minexponent.py index 930c56bc1f..289f010640 100644 --- a/plotly/validators/heatmap/colorbar/_minexponent.py +++ b/plotly/validators/heatmap/colorbar/_minexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/heatmap/colorbar/_nticks.py b/plotly/validators/heatmap/colorbar/_nticks.py index cbe572eb80..8d194ceb40 100644 --- a/plotly/validators/heatmap/colorbar/_nticks.py +++ b/plotly/validators/heatmap/colorbar/_nticks.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/heatmap/colorbar/_orientation.py b/plotly/validators/heatmap/colorbar/_orientation.py index 362fe8c79e..9c9842e501 100644 --- a/plotly/validators/heatmap/colorbar/_orientation.py +++ b/plotly/validators/heatmap/colorbar/_orientation.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/heatmap/colorbar/_outlinecolor.py b/plotly/validators/heatmap/colorbar/_outlinecolor.py index d957fc59f9..d8b8d168f6 100644 --- a/plotly/validators/heatmap/colorbar/_outlinecolor.py +++ b/plotly/validators/heatmap/colorbar/_outlinecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/heatmap/colorbar/_outlinewidth.py b/plotly/validators/heatmap/colorbar/_outlinewidth.py index df12eb21c6..347af485e7 100644 --- a/plotly/validators/heatmap/colorbar/_outlinewidth.py +++ b/plotly/validators/heatmap/colorbar/_outlinewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/heatmap/colorbar/_separatethousands.py b/plotly/validators/heatmap/colorbar/_separatethousands.py index e18b90496f..312caac042 100644 --- a/plotly/validators/heatmap/colorbar/_separatethousands.py +++ b/plotly/validators/heatmap/colorbar/_separatethousands.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/heatmap/colorbar/_showexponent.py b/plotly/validators/heatmap/colorbar/_showexponent.py index 9fa86c3e8a..694cf43579 100644 --- a/plotly/validators/heatmap/colorbar/_showexponent.py +++ b/plotly/validators/heatmap/colorbar/_showexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/heatmap/colorbar/_showticklabels.py b/plotly/validators/heatmap/colorbar/_showticklabels.py index b0b604abbb..dcd39e0d9f 100644 --- a/plotly/validators/heatmap/colorbar/_showticklabels.py +++ b/plotly/validators/heatmap/colorbar/_showticklabels.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/heatmap/colorbar/_showtickprefix.py b/plotly/validators/heatmap/colorbar/_showtickprefix.py index 4761c74032..d9a35bedbf 100644 --- a/plotly/validators/heatmap/colorbar/_showtickprefix.py +++ b/plotly/validators/heatmap/colorbar/_showtickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/heatmap/colorbar/_showticksuffix.py b/plotly/validators/heatmap/colorbar/_showticksuffix.py index 684eb088e3..33551ed9ab 100644 --- a/plotly/validators/heatmap/colorbar/_showticksuffix.py +++ b/plotly/validators/heatmap/colorbar/_showticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/heatmap/colorbar/_thickness.py b/plotly/validators/heatmap/colorbar/_thickness.py index 0067804425..1bf7e7817c 100644 --- a/plotly/validators/heatmap/colorbar/_thickness.py +++ b/plotly/validators/heatmap/colorbar/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/heatmap/colorbar/_thicknessmode.py b/plotly/validators/heatmap/colorbar/_thicknessmode.py index 4668f2de33..51f11e1206 100644 --- a/plotly/validators/heatmap/colorbar/_thicknessmode.py +++ b/plotly/validators/heatmap/colorbar/_thicknessmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/heatmap/colorbar/_tick0.py b/plotly/validators/heatmap/colorbar/_tick0.py index 694c6f1dc3..b7c5cc68e9 100644 --- a/plotly/validators/heatmap/colorbar/_tick0.py +++ b/plotly/validators/heatmap/colorbar/_tick0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/heatmap/colorbar/_tickangle.py b/plotly/validators/heatmap/colorbar/_tickangle.py index bf64969740..24301cefa8 100644 --- a/plotly/validators/heatmap/colorbar/_tickangle.py +++ b/plotly/validators/heatmap/colorbar/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/heatmap/colorbar/_tickcolor.py b/plotly/validators/heatmap/colorbar/_tickcolor.py index fa6df4f9da..27943b6fe5 100644 --- a/plotly/validators/heatmap/colorbar/_tickcolor.py +++ b/plotly/validators/heatmap/colorbar/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/heatmap/colorbar/_tickfont.py b/plotly/validators/heatmap/colorbar/_tickfont.py index 13c463f581..587274a7c5 100644 --- a/plotly/validators/heatmap/colorbar/_tickfont.py +++ b/plotly/validators/heatmap/colorbar/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/heatmap/colorbar/_tickformat.py b/plotly/validators/heatmap/colorbar/_tickformat.py index a572930300..a9c4d5a0ff 100644 --- a/plotly/validators/heatmap/colorbar/_tickformat.py +++ b/plotly/validators/heatmap/colorbar/_tickformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/heatmap/colorbar/_tickformatstopdefaults.py b/plotly/validators/heatmap/colorbar/_tickformatstopdefaults.py index 498bb058a9..7ec5bb1471 100644 --- a/plotly/validators/heatmap/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/heatmap/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/heatmap/colorbar/_tickformatstops.py b/plotly/validators/heatmap/colorbar/_tickformatstops.py index 69fce097d9..45d73fd5b6 100644 --- a/plotly/validators/heatmap/colorbar/_tickformatstops.py +++ b/plotly/validators/heatmap/colorbar/_tickformatstops.py @@ -1,50 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/heatmap/colorbar/_ticklabeloverflow.py b/plotly/validators/heatmap/colorbar/_ticklabeloverflow.py index b91bdcfd31..9a4d12315e 100644 --- a/plotly/validators/heatmap/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/heatmap/colorbar/_ticklabeloverflow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/heatmap/colorbar/_ticklabelposition.py b/plotly/validators/heatmap/colorbar/_ticklabelposition.py index cd8459256c..895856eb0e 100644 --- a/plotly/validators/heatmap/colorbar/_ticklabelposition.py +++ b/plotly/validators/heatmap/colorbar/_ticklabelposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/heatmap/colorbar/_ticklabelstep.py b/plotly/validators/heatmap/colorbar/_ticklabelstep.py index d7aea9e48f..f0dfe998e9 100644 --- a/plotly/validators/heatmap/colorbar/_ticklabelstep.py +++ b/plotly/validators/heatmap/colorbar/_ticklabelstep.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/heatmap/colorbar/_ticklen.py b/plotly/validators/heatmap/colorbar/_ticklen.py index 289ce89008..37d9fc13f4 100644 --- a/plotly/validators/heatmap/colorbar/_ticklen.py +++ b/plotly/validators/heatmap/colorbar/_ticklen.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/heatmap/colorbar/_tickmode.py b/plotly/validators/heatmap/colorbar/_tickmode.py index cb6e9034eb..0633abf991 100644 --- a/plotly/validators/heatmap/colorbar/_tickmode.py +++ b/plotly/validators/heatmap/colorbar/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/heatmap/colorbar/_tickprefix.py b/plotly/validators/heatmap/colorbar/_tickprefix.py index 8899abd5c5..e7de8a6213 100644 --- a/plotly/validators/heatmap/colorbar/_tickprefix.py +++ b/plotly/validators/heatmap/colorbar/_tickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/heatmap/colorbar/_ticks.py b/plotly/validators/heatmap/colorbar/_ticks.py index 42ae13ee9f..d114479218 100644 --- a/plotly/validators/heatmap/colorbar/_ticks.py +++ b/plotly/validators/heatmap/colorbar/_ticks.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/heatmap/colorbar/_ticksuffix.py b/plotly/validators/heatmap/colorbar/_ticksuffix.py index 7c57e9e6d3..d2383c7fd3 100644 --- a/plotly/validators/heatmap/colorbar/_ticksuffix.py +++ b/plotly/validators/heatmap/colorbar/_ticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/heatmap/colorbar/_ticktext.py b/plotly/validators/heatmap/colorbar/_ticktext.py index 95b7c4a783..c9156920de 100644 --- a/plotly/validators/heatmap/colorbar/_ticktext.py +++ b/plotly/validators/heatmap/colorbar/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/heatmap/colorbar/_ticktextsrc.py b/plotly/validators/heatmap/colorbar/_ticktextsrc.py index 9e32ce793c..475d8aedd0 100644 --- a/plotly/validators/heatmap/colorbar/_ticktextsrc.py +++ b/plotly/validators/heatmap/colorbar/_ticktextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/heatmap/colorbar/_tickvals.py b/plotly/validators/heatmap/colorbar/_tickvals.py index ea1c42223b..aab5cdbe87 100644 --- a/plotly/validators/heatmap/colorbar/_tickvals.py +++ b/plotly/validators/heatmap/colorbar/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/heatmap/colorbar/_tickvalssrc.py b/plotly/validators/heatmap/colorbar/_tickvalssrc.py index d16a4ebf15..b8f113f27c 100644 --- a/plotly/validators/heatmap/colorbar/_tickvalssrc.py +++ b/plotly/validators/heatmap/colorbar/_tickvalssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/heatmap/colorbar/_tickwidth.py b/plotly/validators/heatmap/colorbar/_tickwidth.py index 00ec752d89..de763b6ef8 100644 --- a/plotly/validators/heatmap/colorbar/_tickwidth.py +++ b/plotly/validators/heatmap/colorbar/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/heatmap/colorbar/_title.py b/plotly/validators/heatmap/colorbar/_title.py index 0b21692cb2..63babc2a54 100644 --- a/plotly/validators/heatmap/colorbar/_title.py +++ b/plotly/validators/heatmap/colorbar/_title.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/heatmap/colorbar/_x.py b/plotly/validators/heatmap/colorbar/_x.py index f2c9b03706..8ba75c7ce4 100644 --- a/plotly/validators/heatmap/colorbar/_x.py +++ b/plotly/validators/heatmap/colorbar/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/heatmap/colorbar/_xanchor.py b/plotly/validators/heatmap/colorbar/_xanchor.py index 127194a4de..4c16b97082 100644 --- a/plotly/validators/heatmap/colorbar/_xanchor.py +++ b/plotly/validators/heatmap/colorbar/_xanchor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/heatmap/colorbar/_xpad.py b/plotly/validators/heatmap/colorbar/_xpad.py index 55289d4726..d6aaefe31e 100644 --- a/plotly/validators/heatmap/colorbar/_xpad.py +++ b/plotly/validators/heatmap/colorbar/_xpad.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/heatmap/colorbar/_xref.py b/plotly/validators/heatmap/colorbar/_xref.py index 64f9e6079b..b71eb6baea 100644 --- a/plotly/validators/heatmap/colorbar/_xref.py +++ b/plotly/validators/heatmap/colorbar/_xref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/heatmap/colorbar/_y.py b/plotly/validators/heatmap/colorbar/_y.py index 673d41178c..c91a97ae47 100644 --- a/plotly/validators/heatmap/colorbar/_y.py +++ b/plotly/validators/heatmap/colorbar/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/heatmap/colorbar/_yanchor.py b/plotly/validators/heatmap/colorbar/_yanchor.py index de0c351cbc..e5092a562e 100644 --- a/plotly/validators/heatmap/colorbar/_yanchor.py +++ b/plotly/validators/heatmap/colorbar/_yanchor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/heatmap/colorbar/_ypad.py b/plotly/validators/heatmap/colorbar/_ypad.py index b2296fbbbe..b53e480b8c 100644 --- a/plotly/validators/heatmap/colorbar/_ypad.py +++ b/plotly/validators/heatmap/colorbar/_ypad.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/heatmap/colorbar/_yref.py b/plotly/validators/heatmap/colorbar/_yref.py index 85b51bd7db..ee145f19e7 100644 --- a/plotly/validators/heatmap/colorbar/_yref.py +++ b/plotly/validators/heatmap/colorbar/_yref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/heatmap/colorbar/tickfont/__init__.py b/plotly/validators/heatmap/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/heatmap/colorbar/tickfont/__init__.py +++ b/plotly/validators/heatmap/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/heatmap/colorbar/tickfont/_color.py b/plotly/validators/heatmap/colorbar/tickfont/_color.py index 642169224b..e790487e89 100644 --- a/plotly/validators/heatmap/colorbar/tickfont/_color.py +++ b/plotly/validators/heatmap/colorbar/tickfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/heatmap/colorbar/tickfont/_family.py b/plotly/validators/heatmap/colorbar/tickfont/_family.py index 594fc7b5e7..306ee3d2cd 100644 --- a/plotly/validators/heatmap/colorbar/tickfont/_family.py +++ b/plotly/validators/heatmap/colorbar/tickfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/heatmap/colorbar/tickfont/_lineposition.py b/plotly/validators/heatmap/colorbar/tickfont/_lineposition.py index e8b801a4b7..6f0b16e73e 100644 --- a/plotly/validators/heatmap/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/heatmap/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/heatmap/colorbar/tickfont/_shadow.py b/plotly/validators/heatmap/colorbar/tickfont/_shadow.py index 21173688ab..8e3b7b3c89 100644 --- a/plotly/validators/heatmap/colorbar/tickfont/_shadow.py +++ b/plotly/validators/heatmap/colorbar/tickfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/heatmap/colorbar/tickfont/_size.py b/plotly/validators/heatmap/colorbar/tickfont/_size.py index e23dac1c18..1eb51b8f0d 100644 --- a/plotly/validators/heatmap/colorbar/tickfont/_size.py +++ b/plotly/validators/heatmap/colorbar/tickfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/heatmap/colorbar/tickfont/_style.py b/plotly/validators/heatmap/colorbar/tickfont/_style.py index d502ab5499..a587a5fedb 100644 --- a/plotly/validators/heatmap/colorbar/tickfont/_style.py +++ b/plotly/validators/heatmap/colorbar/tickfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/heatmap/colorbar/tickfont/_textcase.py b/plotly/validators/heatmap/colorbar/tickfont/_textcase.py index a5bc61581e..eb1ad0167e 100644 --- a/plotly/validators/heatmap/colorbar/tickfont/_textcase.py +++ b/plotly/validators/heatmap/colorbar/tickfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/heatmap/colorbar/tickfont/_variant.py b/plotly/validators/heatmap/colorbar/tickfont/_variant.py index 05697d9ad5..bb1cecf482 100644 --- a/plotly/validators/heatmap/colorbar/tickfont/_variant.py +++ b/plotly/validators/heatmap/colorbar/tickfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/heatmap/colorbar/tickfont/_weight.py b/plotly/validators/heatmap/colorbar/tickfont/_weight.py index a8a92b7f1c..8de19e1528 100644 --- a/plotly/validators/heatmap/colorbar/tickfont/_weight.py +++ b/plotly/validators/heatmap/colorbar/tickfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/heatmap/colorbar/tickformatstop/__init__.py b/plotly/validators/heatmap/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/heatmap/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/heatmap/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/heatmap/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/heatmap/colorbar/tickformatstop/_dtickrange.py index 053d1fbd0a..a73f5d8844 100644 --- a/plotly/validators/heatmap/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/heatmap/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( "items", diff --git a/plotly/validators/heatmap/colorbar/tickformatstop/_enabled.py b/plotly/validators/heatmap/colorbar/tickformatstop/_enabled.py index efc8fa2efc..c78e1531a9 100644 --- a/plotly/validators/heatmap/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/heatmap/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/heatmap/colorbar/tickformatstop/_name.py b/plotly/validators/heatmap/colorbar/tickformatstop/_name.py index 28aa5f798b..587e40546e 100644 --- a/plotly/validators/heatmap/colorbar/tickformatstop/_name.py +++ b/plotly/validators/heatmap/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/heatmap/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/heatmap/colorbar/tickformatstop/_templateitemname.py index 7778d8636a..bf35e406aa 100644 --- a/plotly/validators/heatmap/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/heatmap/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/heatmap/colorbar/tickformatstop/_value.py b/plotly/validators/heatmap/colorbar/tickformatstop/_value.py index 2f8d10168b..64f881d126 100644 --- a/plotly/validators/heatmap/colorbar/tickformatstop/_value.py +++ b/plotly/validators/heatmap/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/heatmap/colorbar/title/__init__.py b/plotly/validators/heatmap/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/heatmap/colorbar/title/__init__.py +++ b/plotly/validators/heatmap/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/heatmap/colorbar/title/_font.py b/plotly/validators/heatmap/colorbar/title/_font.py index cd0bd44fb2..03dbb2890d 100644 --- a/plotly/validators/heatmap/colorbar/title/_font.py +++ b/plotly/validators/heatmap/colorbar/title/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/heatmap/colorbar/title/_side.py b/plotly/validators/heatmap/colorbar/title/_side.py index bb83bb8ab1..70cbdb8b4c 100644 --- a/plotly/validators/heatmap/colorbar/title/_side.py +++ b/plotly/validators/heatmap/colorbar/title/_side.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/heatmap/colorbar/title/_text.py b/plotly/validators/heatmap/colorbar/title/_text.py index afabbf89a2..de8aed052a 100644 --- a/plotly/validators/heatmap/colorbar/title/_text.py +++ b/plotly/validators/heatmap/colorbar/title/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/heatmap/colorbar/title/font/__init__.py b/plotly/validators/heatmap/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/heatmap/colorbar/title/font/__init__.py +++ b/plotly/validators/heatmap/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/heatmap/colorbar/title/font/_color.py b/plotly/validators/heatmap/colorbar/title/font/_color.py index 119469fb4c..adbe8b54bc 100644 --- a/plotly/validators/heatmap/colorbar/title/font/_color.py +++ b/plotly/validators/heatmap/colorbar/title/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/heatmap/colorbar/title/font/_family.py b/plotly/validators/heatmap/colorbar/title/font/_family.py index 77d065df68..7620a3f477 100644 --- a/plotly/validators/heatmap/colorbar/title/font/_family.py +++ b/plotly/validators/heatmap/colorbar/title/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/heatmap/colorbar/title/font/_lineposition.py b/plotly/validators/heatmap/colorbar/title/font/_lineposition.py index 955e17dda0..add16cec6a 100644 --- a/plotly/validators/heatmap/colorbar/title/font/_lineposition.py +++ b/plotly/validators/heatmap/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/heatmap/colorbar/title/font/_shadow.py b/plotly/validators/heatmap/colorbar/title/font/_shadow.py index 438242738b..a9949af0fb 100644 --- a/plotly/validators/heatmap/colorbar/title/font/_shadow.py +++ b/plotly/validators/heatmap/colorbar/title/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/heatmap/colorbar/title/font/_size.py b/plotly/validators/heatmap/colorbar/title/font/_size.py index 10ab76a60f..6014a56c84 100644 --- a/plotly/validators/heatmap/colorbar/title/font/_size.py +++ b/plotly/validators/heatmap/colorbar/title/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/heatmap/colorbar/title/font/_style.py b/plotly/validators/heatmap/colorbar/title/font/_style.py index b145300e11..60dd5f72a5 100644 --- a/plotly/validators/heatmap/colorbar/title/font/_style.py +++ b/plotly/validators/heatmap/colorbar/title/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/heatmap/colorbar/title/font/_textcase.py b/plotly/validators/heatmap/colorbar/title/font/_textcase.py index 9338458da2..def81e8037 100644 --- a/plotly/validators/heatmap/colorbar/title/font/_textcase.py +++ b/plotly/validators/heatmap/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/heatmap/colorbar/title/font/_variant.py b/plotly/validators/heatmap/colorbar/title/font/_variant.py index 107ada4548..cadc9d4df1 100644 --- a/plotly/validators/heatmap/colorbar/title/font/_variant.py +++ b/plotly/validators/heatmap/colorbar/title/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/heatmap/colorbar/title/font/_weight.py b/plotly/validators/heatmap/colorbar/title/font/_weight.py index c1c204c943..6551dbd3a2 100644 --- a/plotly/validators/heatmap/colorbar/title/font/_weight.py +++ b/plotly/validators/heatmap/colorbar/title/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/heatmap/hoverlabel/__init__.py b/plotly/validators/heatmap/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/heatmap/hoverlabel/__init__.py +++ b/plotly/validators/heatmap/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/heatmap/hoverlabel/_align.py b/plotly/validators/heatmap/hoverlabel/_align.py index 28d9abcb1b..6adcae4863 100644 --- a/plotly/validators/heatmap/hoverlabel/_align.py +++ b/plotly/validators/heatmap/hoverlabel/_align.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/heatmap/hoverlabel/_alignsrc.py b/plotly/validators/heatmap/hoverlabel/_alignsrc.py index 24a81636ea..8324cea3ed 100644 --- a/plotly/validators/heatmap/hoverlabel/_alignsrc.py +++ b/plotly/validators/heatmap/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/heatmap/hoverlabel/_bgcolor.py b/plotly/validators/heatmap/hoverlabel/_bgcolor.py index c2d4ec23e2..8343fa6593 100644 --- a/plotly/validators/heatmap/hoverlabel/_bgcolor.py +++ b/plotly/validators/heatmap/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/heatmap/hoverlabel/_bgcolorsrc.py b/plotly/validators/heatmap/hoverlabel/_bgcolorsrc.py index 016aec1f5d..dd71164f7d 100644 --- a/plotly/validators/heatmap/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/heatmap/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/heatmap/hoverlabel/_bordercolor.py b/plotly/validators/heatmap/hoverlabel/_bordercolor.py index 3b383b9d26..3badb979ba 100644 --- a/plotly/validators/heatmap/hoverlabel/_bordercolor.py +++ b/plotly/validators/heatmap/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/heatmap/hoverlabel/_bordercolorsrc.py b/plotly/validators/heatmap/hoverlabel/_bordercolorsrc.py index 01a7fd4353..d670c54832 100644 --- a/plotly/validators/heatmap/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/heatmap/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/heatmap/hoverlabel/_font.py b/plotly/validators/heatmap/hoverlabel/_font.py index a064b50033..4ff00cd76b 100644 --- a/plotly/validators/heatmap/hoverlabel/_font.py +++ b/plotly/validators/heatmap/hoverlabel/_font.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/heatmap/hoverlabel/_namelength.py b/plotly/validators/heatmap/hoverlabel/_namelength.py index 193c8a215f..d12c885661 100644 --- a/plotly/validators/heatmap/hoverlabel/_namelength.py +++ b/plotly/validators/heatmap/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/heatmap/hoverlabel/_namelengthsrc.py b/plotly/validators/heatmap/hoverlabel/_namelengthsrc.py index d148b3a006..5ff6c696e3 100644 --- a/plotly/validators/heatmap/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/heatmap/hoverlabel/_namelengthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/heatmap/hoverlabel/font/__init__.py b/plotly/validators/heatmap/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/heatmap/hoverlabel/font/__init__.py +++ b/plotly/validators/heatmap/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/heatmap/hoverlabel/font/_color.py b/plotly/validators/heatmap/hoverlabel/font/_color.py index 1a12954971..069575b783 100644 --- a/plotly/validators/heatmap/hoverlabel/font/_color.py +++ b/plotly/validators/heatmap/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/heatmap/hoverlabel/font/_colorsrc.py b/plotly/validators/heatmap/hoverlabel/font/_colorsrc.py index c2c353777c..d5b218ee52 100644 --- a/plotly/validators/heatmap/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/heatmap/hoverlabel/font/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/heatmap/hoverlabel/font/_family.py b/plotly/validators/heatmap/hoverlabel/font/_family.py index 907171acbb..ce31c94a16 100644 --- a/plotly/validators/heatmap/hoverlabel/font/_family.py +++ b/plotly/validators/heatmap/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/heatmap/hoverlabel/font/_familysrc.py b/plotly/validators/heatmap/hoverlabel/font/_familysrc.py index 9e2744b00e..873ad32bb9 100644 --- a/plotly/validators/heatmap/hoverlabel/font/_familysrc.py +++ b/plotly/validators/heatmap/hoverlabel/font/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/heatmap/hoverlabel/font/_lineposition.py b/plotly/validators/heatmap/hoverlabel/font/_lineposition.py index cf24fd5495..3d6d130aee 100644 --- a/plotly/validators/heatmap/hoverlabel/font/_lineposition.py +++ b/plotly/validators/heatmap/hoverlabel/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/heatmap/hoverlabel/font/_linepositionsrc.py b/plotly/validators/heatmap/hoverlabel/font/_linepositionsrc.py index 79d4b6e938..922b7032e8 100644 --- a/plotly/validators/heatmap/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/heatmap/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/heatmap/hoverlabel/font/_shadow.py b/plotly/validators/heatmap/hoverlabel/font/_shadow.py index 597bf9fa5b..992404b849 100644 --- a/plotly/validators/heatmap/hoverlabel/font/_shadow.py +++ b/plotly/validators/heatmap/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/heatmap/hoverlabel/font/_shadowsrc.py b/plotly/validators/heatmap/hoverlabel/font/_shadowsrc.py index 6f666c8c73..66d3d6d1c4 100644 --- a/plotly/validators/heatmap/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/heatmap/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/heatmap/hoverlabel/font/_size.py b/plotly/validators/heatmap/hoverlabel/font/_size.py index dab25c2ba1..cb6e610e22 100644 --- a/plotly/validators/heatmap/hoverlabel/font/_size.py +++ b/plotly/validators/heatmap/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/heatmap/hoverlabel/font/_sizesrc.py b/plotly/validators/heatmap/hoverlabel/font/_sizesrc.py index 0c5b97149a..87d21dfaac 100644 --- a/plotly/validators/heatmap/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/heatmap/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/heatmap/hoverlabel/font/_style.py b/plotly/validators/heatmap/hoverlabel/font/_style.py index 0ba2cb95b7..168d33e10c 100644 --- a/plotly/validators/heatmap/hoverlabel/font/_style.py +++ b/plotly/validators/heatmap/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/heatmap/hoverlabel/font/_stylesrc.py b/plotly/validators/heatmap/hoverlabel/font/_stylesrc.py index beaa465b72..cf4c999e52 100644 --- a/plotly/validators/heatmap/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/heatmap/hoverlabel/font/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/heatmap/hoverlabel/font/_textcase.py b/plotly/validators/heatmap/hoverlabel/font/_textcase.py index b774dc7da6..866eec52a2 100644 --- a/plotly/validators/heatmap/hoverlabel/font/_textcase.py +++ b/plotly/validators/heatmap/hoverlabel/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/heatmap/hoverlabel/font/_textcasesrc.py b/plotly/validators/heatmap/hoverlabel/font/_textcasesrc.py index 41f253aaad..c375f4ceb8 100644 --- a/plotly/validators/heatmap/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/heatmap/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/heatmap/hoverlabel/font/_variant.py b/plotly/validators/heatmap/hoverlabel/font/_variant.py index 344321a2be..0644b0a436 100644 --- a/plotly/validators/heatmap/hoverlabel/font/_variant.py +++ b/plotly/validators/heatmap/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/heatmap/hoverlabel/font/_variantsrc.py b/plotly/validators/heatmap/hoverlabel/font/_variantsrc.py index 6d3321a0e8..1c7085c7b1 100644 --- a/plotly/validators/heatmap/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/heatmap/hoverlabel/font/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/heatmap/hoverlabel/font/_weight.py b/plotly/validators/heatmap/hoverlabel/font/_weight.py index 8b29932a39..d5c164bdcc 100644 --- a/plotly/validators/heatmap/hoverlabel/font/_weight.py +++ b/plotly/validators/heatmap/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/heatmap/hoverlabel/font/_weightsrc.py b/plotly/validators/heatmap/hoverlabel/font/_weightsrc.py index 09f4179834..1d3c819cdd 100644 --- a/plotly/validators/heatmap/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/heatmap/hoverlabel/font/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/heatmap/legendgrouptitle/__init__.py b/plotly/validators/heatmap/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/heatmap/legendgrouptitle/__init__.py +++ b/plotly/validators/heatmap/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/heatmap/legendgrouptitle/_font.py b/plotly/validators/heatmap/legendgrouptitle/_font.py index 2b37aedda3..9de209a1c9 100644 --- a/plotly/validators/heatmap/legendgrouptitle/_font.py +++ b/plotly/validators/heatmap/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/heatmap/legendgrouptitle/_text.py b/plotly/validators/heatmap/legendgrouptitle/_text.py index dc447df7e8..9d38f9bf48 100644 --- a/plotly/validators/heatmap/legendgrouptitle/_text.py +++ b/plotly/validators/heatmap/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/heatmap/legendgrouptitle/font/__init__.py b/plotly/validators/heatmap/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/heatmap/legendgrouptitle/font/__init__.py +++ b/plotly/validators/heatmap/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/heatmap/legendgrouptitle/font/_color.py b/plotly/validators/heatmap/legendgrouptitle/font/_color.py index 992adc73b1..ba7507132a 100644 --- a/plotly/validators/heatmap/legendgrouptitle/font/_color.py +++ b/plotly/validators/heatmap/legendgrouptitle/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/heatmap/legendgrouptitle/font/_family.py b/plotly/validators/heatmap/legendgrouptitle/font/_family.py index f0c10a5c55..16c86b00e8 100644 --- a/plotly/validators/heatmap/legendgrouptitle/font/_family.py +++ b/plotly/validators/heatmap/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/heatmap/legendgrouptitle/font/_lineposition.py b/plotly/validators/heatmap/legendgrouptitle/font/_lineposition.py index d4f13671a8..8122190e21 100644 --- a/plotly/validators/heatmap/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/heatmap/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/heatmap/legendgrouptitle/font/_shadow.py b/plotly/validators/heatmap/legendgrouptitle/font/_shadow.py index 49fa2063d1..8f37bdd661 100644 --- a/plotly/validators/heatmap/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/heatmap/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/heatmap/legendgrouptitle/font/_size.py b/plotly/validators/heatmap/legendgrouptitle/font/_size.py index 70b659bc1a..33866824b6 100644 --- a/plotly/validators/heatmap/legendgrouptitle/font/_size.py +++ b/plotly/validators/heatmap/legendgrouptitle/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/heatmap/legendgrouptitle/font/_style.py b/plotly/validators/heatmap/legendgrouptitle/font/_style.py index 5e0a310d61..eb98c38b1f 100644 --- a/plotly/validators/heatmap/legendgrouptitle/font/_style.py +++ b/plotly/validators/heatmap/legendgrouptitle/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/heatmap/legendgrouptitle/font/_textcase.py b/plotly/validators/heatmap/legendgrouptitle/font/_textcase.py index 9733a530e7..9e6b13281f 100644 --- a/plotly/validators/heatmap/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/heatmap/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/heatmap/legendgrouptitle/font/_variant.py b/plotly/validators/heatmap/legendgrouptitle/font/_variant.py index fadd24a102..b5c8d4ad40 100644 --- a/plotly/validators/heatmap/legendgrouptitle/font/_variant.py +++ b/plotly/validators/heatmap/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/heatmap/legendgrouptitle/font/_weight.py b/plotly/validators/heatmap/legendgrouptitle/font/_weight.py index 2009543af4..4ce42a8966 100644 --- a/plotly/validators/heatmap/legendgrouptitle/font/_weight.py +++ b/plotly/validators/heatmap/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/heatmap/stream/__init__.py b/plotly/validators/heatmap/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/heatmap/stream/__init__.py +++ b/plotly/validators/heatmap/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/heatmap/stream/_maxpoints.py b/plotly/validators/heatmap/stream/_maxpoints.py index c5fa4e0d85..eb9a4ca6df 100644 --- a/plotly/validators/heatmap/stream/_maxpoints.py +++ b/plotly/validators/heatmap/stream/_maxpoints.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/heatmap/stream/_token.py b/plotly/validators/heatmap/stream/_token.py index fb250b61f5..0efa7112ff 100644 --- a/plotly/validators/heatmap/stream/_token.py +++ b/plotly/validators/heatmap/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/heatmap/textfont/__init__.py b/plotly/validators/heatmap/textfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/heatmap/textfont/__init__.py +++ b/plotly/validators/heatmap/textfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/heatmap/textfont/_color.py b/plotly/validators/heatmap/textfont/_color.py index 0b08a548a0..aad817ad3b 100644 --- a/plotly/validators/heatmap/textfont/_color.py +++ b/plotly/validators/heatmap/textfont/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/heatmap/textfont/_family.py b/plotly/validators/heatmap/textfont/_family.py index 09e7ca6bbd..dde504c04d 100644 --- a/plotly/validators/heatmap/textfont/_family.py +++ b/plotly/validators/heatmap/textfont/_family.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/heatmap/textfont/_lineposition.py b/plotly/validators/heatmap/textfont/_lineposition.py index 384062e837..fa222de232 100644 --- a/plotly/validators/heatmap/textfont/_lineposition.py +++ b/plotly/validators/heatmap/textfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/heatmap/textfont/_shadow.py b/plotly/validators/heatmap/textfont/_shadow.py index 0b9014fa2d..662f93e5cc 100644 --- a/plotly/validators/heatmap/textfont/_shadow.py +++ b/plotly/validators/heatmap/textfont/_shadow.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/heatmap/textfont/_size.py b/plotly/validators/heatmap/textfont/_size.py index b3612f44c7..d02679140d 100644 --- a/plotly/validators/heatmap/textfont/_size.py +++ b/plotly/validators/heatmap/textfont/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/heatmap/textfont/_style.py b/plotly/validators/heatmap/textfont/_style.py index 7dda60a6e3..ce12369d6c 100644 --- a/plotly/validators/heatmap/textfont/_style.py +++ b/plotly/validators/heatmap/textfont/_style.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/heatmap/textfont/_textcase.py b/plotly/validators/heatmap/textfont/_textcase.py index 006b8c3354..1e786f210e 100644 --- a/plotly/validators/heatmap/textfont/_textcase.py +++ b/plotly/validators/heatmap/textfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/heatmap/textfont/_variant.py b/plotly/validators/heatmap/textfont/_variant.py index d1597573a9..97b8f05e7b 100644 --- a/plotly/validators/heatmap/textfont/_variant.py +++ b/plotly/validators/heatmap/textfont/_variant.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/heatmap/textfont/_weight.py b/plotly/validators/heatmap/textfont/_weight.py index e37fc18d8e..d31eaece1a 100644 --- a/plotly/validators/heatmap/textfont/_weight.py +++ b/plotly/validators/heatmap/textfont/_weight.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/histogram/__init__.py b/plotly/validators/histogram/__init__.py index 7ed88f70d8..2e64a1d30d 100644 --- a/plotly/validators/histogram/__init__.py +++ b/plotly/validators/histogram/__init__.py @@ -1,145 +1,75 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zorder import ZorderValidator - from ._ysrc import YsrcValidator - from ._yhoverformat import YhoverformatValidator - from ._ycalendar import YcalendarValidator - from ._ybins import YbinsValidator - from ._yaxis import YaxisValidator - from ._y import YValidator - from ._xsrc import XsrcValidator - from ._xhoverformat import XhoverformatValidator - from ._xcalendar import XcalendarValidator - from ._xbins import XbinsValidator - from ._xaxis import XaxisValidator - from ._x import XValidator - from ._visible import VisibleValidator - from ._unselected import UnselectedValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._texttemplate import TexttemplateValidator - from ._textsrc import TextsrcValidator - from ._textposition import TextpositionValidator - from ._textfont import TextfontValidator - from ._textangle import TextangleValidator - from ._text import TextValidator - from ._stream import StreamValidator - from ._showlegend import ShowlegendValidator - from ._selectedpoints import SelectedpointsValidator - from ._selected import SelectedValidator - from ._outsidetextfont import OutsidetextfontValidator - from ._orientation import OrientationValidator - from ._opacity import OpacityValidator - from ._offsetgroup import OffsetgroupValidator - from ._nbinsy import NbinsyValidator - from ._nbinsx import NbinsxValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._marker import MarkerValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._insidetextfont import InsidetextfontValidator - from ._insidetextanchor import InsidetextanchorValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._histnorm import HistnormValidator - from ._histfunc import HistfuncValidator - from ._error_y import Error_YValidator - from ._error_x import Error_XValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._cumulative import CumulativeValidator - from ._constraintext import ConstraintextValidator - from ._cliponaxis import CliponaxisValidator - from ._bingroup import BingroupValidator - from ._autobiny import AutobinyValidator - from ._autobinx import AutobinxValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/histogram/_alignmentgroup.py b/plotly/validators/histogram/_alignmentgroup.py index 27c4eb8a45..ff5af537b2 100644 --- a/plotly/validators/histogram/_alignmentgroup.py +++ b/plotly/validators/histogram/_alignmentgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignmentgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram/_autobinx.py b/plotly/validators/histogram/_autobinx.py index 11088efda4..68f7f48092 100644 --- a/plotly/validators/histogram/_autobinx.py +++ b/plotly/validators/histogram/_autobinx.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutobinxValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram/_autobiny.py b/plotly/validators/histogram/_autobiny.py index 7778974909..59b6e925ae 100644 --- a/plotly/validators/histogram/_autobiny.py +++ b/plotly/validators/histogram/_autobiny.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutobinyValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram/_bingroup.py b/plotly/validators/histogram/_bingroup.py index ee6441560a..78f53479cd 100644 --- a/plotly/validators/histogram/_bingroup.py +++ b/plotly/validators/histogram/_bingroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BingroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram/_cliponaxis.py b/plotly/validators/histogram/_cliponaxis.py index e55fcfebf5..1f2c07d40b 100644 --- a/plotly/validators/histogram/_cliponaxis.py +++ b/plotly/validators/histogram/_cliponaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CliponaxisValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/histogram/_constraintext.py b/plotly/validators/histogram/_constraintext.py index eb2230657b..d012cb0b52 100644 --- a/plotly/validators/histogram/_constraintext.py +++ b/plotly/validators/histogram/_constraintext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ConstraintextValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["inside", "outside", "both", "none"]), **kwargs, diff --git a/plotly/validators/histogram/_cumulative.py b/plotly/validators/histogram/_cumulative.py index c115a5eb37..5375b22b08 100644 --- a/plotly/validators/histogram/_cumulative.py +++ b/plotly/validators/histogram/_cumulative.py @@ -1,41 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CumulativeValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram/_customdata.py b/plotly/validators/histogram/_customdata.py index 9485d6adce..acb0179e35 100644 --- a/plotly/validators/histogram/_customdata.py +++ b/plotly/validators/histogram/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram/_customdatasrc.py b/plotly/validators/histogram/_customdatasrc.py index acda4a0253..a083567abf 100644 --- a/plotly/validators/histogram/_customdatasrc.py +++ b/plotly/validators/histogram/_customdatasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/_error_x.py b/plotly/validators/histogram/_error_x.py index d5644cc252..cada6953a0 100644 --- a/plotly/validators/histogram/_error_x.py +++ b/plotly/validators/histogram/_error_x.py @@ -1,72 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Error_XValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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 - - 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, diff --git a/plotly/validators/histogram/_error_y.py b/plotly/validators/histogram/_error_y.py index 2d9da02b40..48b1687b5c 100644 --- a/plotly/validators/histogram/_error_y.py +++ b/plotly/validators/histogram/_error_y.py @@ -1,70 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Error_YValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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 - - 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, diff --git a/plotly/validators/histogram/_histfunc.py b/plotly/validators/histogram/_histfunc.py index 66a299b01b..3697b9f15a 100644 --- a/plotly/validators/histogram/_histfunc.py +++ b/plotly/validators/histogram/_histfunc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HistfuncValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["count", "sum", "avg", "min", "max"]), **kwargs, diff --git a/plotly/validators/histogram/_histnorm.py b/plotly/validators/histogram/_histnorm.py index 99a876d118..e6fd0b2e5e 100644 --- a/plotly/validators/histogram/_histnorm.py +++ b/plotly/validators/histogram/_histnorm.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HistnormValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/histogram/_hoverinfo.py b/plotly/validators/histogram/_hoverinfo.py index 232193161c..9e098d6478 100644 --- a/plotly/validators/histogram/_hoverinfo.py +++ b/plotly/validators/histogram/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/histogram/_hoverinfosrc.py b/plotly/validators/histogram/_hoverinfosrc.py index 184fd7f8de..68dd3388da 100644 --- a/plotly/validators/histogram/_hoverinfosrc.py +++ b/plotly/validators/histogram/_hoverinfosrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/_hoverlabel.py b/plotly/validators/histogram/_hoverlabel.py index a22b12d2d4..38a42cbb5e 100644 --- a/plotly/validators/histogram/_hoverlabel.py +++ b/plotly/validators/histogram/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram/_hovertemplate.py b/plotly/validators/histogram/_hovertemplate.py index 0b96a0d866..3932e5aff7 100644 --- a/plotly/validators/histogram/_hovertemplate.py +++ b/plotly/validators/histogram/_hovertemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/histogram/_hovertemplatesrc.py b/plotly/validators/histogram/_hovertemplatesrc.py index 1d9b17b812..3b2a819386 100644 --- a/plotly/validators/histogram/_hovertemplatesrc.py +++ b/plotly/validators/histogram/_hovertemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/_hovertext.py b/plotly/validators/histogram/_hovertext.py index b037f8a28c..e05d21ff0a 100644 --- a/plotly/validators/histogram/_hovertext.py +++ b/plotly/validators/histogram/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/histogram/_hovertextsrc.py b/plotly/validators/histogram/_hovertextsrc.py index fb62a1d5f1..c525428202 100644 --- a/plotly/validators/histogram/_hovertextsrc.py +++ b/plotly/validators/histogram/_hovertextsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/_ids.py b/plotly/validators/histogram/_ids.py index a42a6f7466..8f170985e1 100644 --- a/plotly/validators/histogram/_ids.py +++ b/plotly/validators/histogram/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram/_idssrc.py b/plotly/validators/histogram/_idssrc.py index df4507bc28..8b609f7faf 100644 --- a/plotly/validators/histogram/_idssrc.py +++ b/plotly/validators/histogram/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/_insidetextanchor.py b/plotly/validators/histogram/_insidetextanchor.py index 5cb6886b1a..8cfc3bfa2c 100644 --- a/plotly/validators/histogram/_insidetextanchor.py +++ b/plotly/validators/histogram/_insidetextanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class InsidetextanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["end", "middle", "start"]), **kwargs, diff --git a/plotly/validators/histogram/_insidetextfont.py b/plotly/validators/histogram/_insidetextfont.py index d04addde11..c2675bce4f 100644 --- a/plotly/validators/histogram/_insidetextfont.py +++ b/plotly/validators/histogram/_insidetextfont.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class InsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Insidetextfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/histogram/_legend.py b/plotly/validators/histogram/_legend.py index 557cfa633d..a718e97129 100644 --- a/plotly/validators/histogram/_legend.py +++ b/plotly/validators/histogram/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/histogram/_legendgroup.py b/plotly/validators/histogram/_legendgroup.py index 314071039d..3f5f138be0 100644 --- a/plotly/validators/histogram/_legendgroup.py +++ b/plotly/validators/histogram/_legendgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/histogram/_legendgrouptitle.py b/plotly/validators/histogram/_legendgrouptitle.py index bf61a8fa45..9020b967b2 100644 --- a/plotly/validators/histogram/_legendgrouptitle.py +++ b/plotly/validators/histogram/_legendgrouptitle.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram/_legendrank.py b/plotly/validators/histogram/_legendrank.py index adb41669c2..82bd1d3b86 100644 --- a/plotly/validators/histogram/_legendrank.py +++ b/plotly/validators/histogram/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/histogram/_legendwidth.py b/plotly/validators/histogram/_legendwidth.py index 16086cd84f..fb913d83e9 100644 --- a/plotly/validators/histogram/_legendwidth.py +++ b/plotly/validators/histogram/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram/_marker.py b/plotly/validators/histogram/_marker.py index ac66136354..b21a652a54 100644 --- a/plotly/validators/histogram/_marker.py +++ b/plotly/validators/histogram/_marker.py @@ -1,120 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram/_meta.py b/plotly/validators/histogram/_meta.py index f9c05de61b..6516f37c0e 100644 --- a/plotly/validators/histogram/_meta.py +++ b/plotly/validators/histogram/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/histogram/_metasrc.py b/plotly/validators/histogram/_metasrc.py index d0836bc0cf..e7234584aa 100644 --- a/plotly/validators/histogram/_metasrc.py +++ b/plotly/validators/histogram/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/_name.py b/plotly/validators/histogram/_name.py index be3f53a874..0c987ba8fa 100644 --- a/plotly/validators/histogram/_name.py +++ b/plotly/validators/histogram/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/histogram/_nbinsx.py b/plotly/validators/histogram/_nbinsx.py index 45ce6fcd4b..7c268370d3 100644 --- a/plotly/validators/histogram/_nbinsx.py +++ b/plotly/validators/histogram/_nbinsx.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NbinsxValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram/_nbinsy.py b/plotly/validators/histogram/_nbinsy.py index 96084ac0ba..6a8ba9d49e 100644 --- a/plotly/validators/histogram/_nbinsy.py +++ b/plotly/validators/histogram/_nbinsy.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NbinsyValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram/_offsetgroup.py b/plotly/validators/histogram/_offsetgroup.py index 2c7b971a76..f1e4f4d08a 100644 --- a/plotly/validators/histogram/_offsetgroup.py +++ b/plotly/validators/histogram/_offsetgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OffsetgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram/_opacity.py b/plotly/validators/histogram/_opacity.py index 9934131e2f..8ef925dde2 100644 --- a/plotly/validators/histogram/_opacity.py +++ b/plotly/validators/histogram/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/histogram/_orientation.py b/plotly/validators/histogram/_orientation.py index 1920c67548..4f5084cd31 100644 --- a/plotly/validators/histogram/_orientation.py +++ b/plotly/validators/histogram/_orientation.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), values=kwargs.pop("values", ["v", "h"]), **kwargs, diff --git a/plotly/validators/histogram/_outsidetextfont.py b/plotly/validators/histogram/_outsidetextfont.py index e95603415b..aa8a317611 100644 --- a/plotly/validators/histogram/_outsidetextfont.py +++ b/plotly/validators/histogram/_outsidetextfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Outsidetextfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/histogram/_selected.py b/plotly/validators/histogram/_selected.py index 6c802ff43c..304fdd3cea 100644 --- a/plotly/validators/histogram/_selected.py +++ b/plotly/validators/histogram/_selected.py @@ -1,23 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram/_selectedpoints.py b/plotly/validators/histogram/_selectedpoints.py index fd6309fccd..4d2a899924 100644 --- a/plotly/validators/histogram/_selectedpoints.py +++ b/plotly/validators/histogram/_selectedpoints.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram/_showlegend.py b/plotly/validators/histogram/_showlegend.py index 4f3f91367a..61e04f8142 100644 --- a/plotly/validators/histogram/_showlegend.py +++ b/plotly/validators/histogram/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/histogram/_stream.py b/plotly/validators/histogram/_stream.py index 45c78b22d1..46e68cf962 100644 --- a/plotly/validators/histogram/_stream.py +++ b/plotly/validators/histogram/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram/_text.py b/plotly/validators/histogram/_text.py index 0da4d138de..a6183b79d6 100644 --- a/plotly/validators/histogram/_text.py +++ b/plotly/validators/histogram/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/histogram/_textangle.py b/plotly/validators/histogram/_textangle.py index 2e983fc4f5..6a9cbd6c45 100644 --- a/plotly/validators/histogram/_textangle.py +++ b/plotly/validators/histogram/_textangle.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/histogram/_textfont.py b/plotly/validators/histogram/_textfont.py index 55d1ffd59a..cbed508168 100644 --- a/plotly/validators/histogram/_textfont.py +++ b/plotly/validators/histogram/_textfont.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/histogram/_textposition.py b/plotly/validators/histogram/_textposition.py index 1b4179823a..1263b4e4e0 100644 --- a/plotly/validators/histogram/_textposition.py +++ b/plotly/validators/histogram/_textposition.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/histogram/_textsrc.py b/plotly/validators/histogram/_textsrc.py index 2f7ff07638..a673116a9e 100644 --- a/plotly/validators/histogram/_textsrc.py +++ b/plotly/validators/histogram/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/_texttemplate.py b/plotly/validators/histogram/_texttemplate.py index 474901b9a3..052a65b15a 100644 --- a/plotly/validators/histogram/_texttemplate.py +++ b/plotly/validators/histogram/_texttemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/histogram/_uid.py b/plotly/validators/histogram/_uid.py index fa1523cb91..2668ed6962 100644 --- a/plotly/validators/histogram/_uid.py +++ b/plotly/validators/histogram/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/histogram/_uirevision.py b/plotly/validators/histogram/_uirevision.py index 755eb564ec..ac09361334 100644 --- a/plotly/validators/histogram/_uirevision.py +++ b/plotly/validators/histogram/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/_unselected.py b/plotly/validators/histogram/_unselected.py index a33fb45964..2627ef5138 100644 --- a/plotly/validators/histogram/_unselected.py +++ b/plotly/validators/histogram/_unselected.py @@ -1,23 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram/_visible.py b/plotly/validators/histogram/_visible.py index 56276c6a6e..2d25f313e6 100644 --- a/plotly/validators/histogram/_visible.py +++ b/plotly/validators/histogram/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/histogram/_x.py b/plotly/validators/histogram/_x.py index a753367563..83207860c7 100644 --- a/plotly/validators/histogram/_x.py +++ b/plotly/validators/histogram/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/histogram/_xaxis.py b/plotly/validators/histogram/_xaxis.py index 34a9a5bf75..89bccd0da5 100644 --- a/plotly/validators/histogram/_xaxis.py +++ b/plotly/validators/histogram/_xaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "x"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/histogram/_xbins.py b/plotly/validators/histogram/_xbins.py index ee4650aa01..0061e26bfe 100644 --- a/plotly/validators/histogram/_xbins.py +++ b/plotly/validators/histogram/_xbins.py @@ -1,59 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XbinsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram/_xcalendar.py b/plotly/validators/histogram/_xcalendar.py index 68ddbb6883..f5028acf0e 100644 --- a/plotly/validators/histogram/_xcalendar.py +++ b/plotly/validators/histogram/_xcalendar.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/histogram/_xhoverformat.py b/plotly/validators/histogram/_xhoverformat.py index 4fc5e8f7c1..d6f3182f32 100644 --- a/plotly/validators/histogram/_xhoverformat.py +++ b/plotly/validators/histogram/_xhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/_xsrc.py b/plotly/validators/histogram/_xsrc.py index 3810b57bb9..17b0de8c9c 100644 --- a/plotly/validators/histogram/_xsrc.py +++ b/plotly/validators/histogram/_xsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/_y.py b/plotly/validators/histogram/_y.py index fc812ec655..c0b9104277 100644 --- a/plotly/validators/histogram/_y.py +++ b/plotly/validators/histogram/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/histogram/_yaxis.py b/plotly/validators/histogram/_yaxis.py index 8232b6eaa1..80714dc97a 100644 --- a/plotly/validators/histogram/_yaxis.py +++ b/plotly/validators/histogram/_yaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "y"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/histogram/_ybins.py b/plotly/validators/histogram/_ybins.py index 8dfab89361..222472d632 100644 --- a/plotly/validators/histogram/_ybins.py +++ b/plotly/validators/histogram/_ybins.py @@ -1,59 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YbinsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram/_ycalendar.py b/plotly/validators/histogram/_ycalendar.py index a0fc87678e..d3bf687342 100644 --- a/plotly/validators/histogram/_ycalendar.py +++ b/plotly/validators/histogram/_ycalendar.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/histogram/_yhoverformat.py b/plotly/validators/histogram/_yhoverformat.py index c1666597bb..8da34f0966 100644 --- a/plotly/validators/histogram/_yhoverformat.py +++ b/plotly/validators/histogram/_yhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/_ysrc.py b/plotly/validators/histogram/_ysrc.py index 15ab69a3d3..e7688a1dbb 100644 --- a/plotly/validators/histogram/_ysrc.py +++ b/plotly/validators/histogram/_ysrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/_zorder.py b/plotly/validators/histogram/_zorder.py index 5b68812efe..3c792a9784 100644 --- a/plotly/validators/histogram/_zorder.py +++ b/plotly/validators/histogram/_zorder.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZorderValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/histogram/cumulative/__init__.py b/plotly/validators/histogram/cumulative/__init__.py index f52e54bee6..b942b99f34 100644 --- a/plotly/validators/histogram/cumulative/__init__.py +++ b/plotly/validators/histogram/cumulative/__init__.py @@ -1,19 +1,12 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._enabled.EnabledValidator", + "._direction.DirectionValidator", + "._currentbin.CurrentbinValidator", + ], +) diff --git a/plotly/validators/histogram/cumulative/_currentbin.py b/plotly/validators/histogram/cumulative/_currentbin.py index a92e00a2fc..dc6dbf90f7 100644 --- a/plotly/validators/histogram/cumulative/_currentbin.py +++ b/plotly/validators/histogram/cumulative/_currentbin.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CurrentbinValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["include", "exclude", "half"]), **kwargs, diff --git a/plotly/validators/histogram/cumulative/_direction.py b/plotly/validators/histogram/cumulative/_direction.py index 98bd3f0bb2..39c765d4d7 100644 --- a/plotly/validators/histogram/cumulative/_direction.py +++ b/plotly/validators/histogram/cumulative/_direction.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DirectionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["increasing", "decreasing"]), **kwargs, diff --git a/plotly/validators/histogram/cumulative/_enabled.py b/plotly/validators/histogram/cumulative/_enabled.py index da1332f001..dc4a9b8e08 100644 --- a/plotly/validators/histogram/cumulative/_enabled.py +++ b/plotly/validators/histogram/cumulative/_enabled.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram/error_x/__init__.py b/plotly/validators/histogram/error_x/__init__.py index 2e3ce59d75..62838bdb73 100644 --- a/plotly/validators/histogram/error_x/__init__.py +++ b/plotly/validators/histogram/error_x/__init__.py @@ -1,43 +1,24 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._width import WidthValidator - from ._visible import VisibleValidator - from ._valueminus import ValueminusValidator - from ._value import ValueValidator - from ._type import TypeValidator - from ._tracerefminus import TracerefminusValidator - from ._traceref import TracerefValidator - from ._thickness import ThicknessValidator - from ._symmetric import SymmetricValidator - from ._copy_ystyle import Copy_YstyleValidator - from ._color import ColorValidator - from ._arraysrc import ArraysrcValidator - from ._arrayminussrc import ArrayminussrcValidator - from ._arrayminus import ArrayminusValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/histogram/error_x/_array.py b/plotly/validators/histogram/error_x/_array.py index f3a99927f4..dbe6c84b60 100644 --- a/plotly/validators/histogram/error_x/_array.py +++ b/plotly/validators/histogram/error_x/_array.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrayValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram/error_x/_arrayminus.py b/plotly/validators/histogram/error_x/_arrayminus.py index 79c95771d7..ab8071811b 100644 --- a/plotly/validators/histogram/error_x/_arrayminus.py +++ b/plotly/validators/histogram/error_x/_arrayminus.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrayminusValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram/error_x/_arrayminussrc.py b/plotly/validators/histogram/error_x/_arrayminussrc.py index 5c64ce43e5..2d0e261057 100644 --- a/plotly/validators/histogram/error_x/_arrayminussrc.py +++ b/plotly/validators/histogram/error_x/_arrayminussrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrayminussrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/error_x/_arraysrc.py b/plotly/validators/histogram/error_x/_arraysrc.py index 1c778358bf..bef828c843 100644 --- a/plotly/validators/histogram/error_x/_arraysrc.py +++ b/plotly/validators/histogram/error_x/_arraysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArraysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/error_x/_color.py b/plotly/validators/histogram/error_x/_color.py index 1a97c491e9..7e70eb612a 100644 --- a/plotly/validators/histogram/error_x/_color.py +++ b/plotly/validators/histogram/error_x/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/histogram/error_x/_copy_ystyle.py b/plotly/validators/histogram/error_x/_copy_ystyle.py index 43170703cb..7bcd58f48b 100644 --- a/plotly/validators/histogram/error_x/_copy_ystyle.py +++ b/plotly/validators/histogram/error_x/_copy_ystyle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Copy_YstyleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/histogram/error_x/_symmetric.py b/plotly/validators/histogram/error_x/_symmetric.py index a32e0cfe53..034cfe8e8b 100644 --- a/plotly/validators/histogram/error_x/_symmetric.py +++ b/plotly/validators/histogram/error_x/_symmetric.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymmetricValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram/error_x/_thickness.py b/plotly/validators/histogram/error_x/_thickness.py index 45b8a95d2e..fb3a82828f 100644 --- a/plotly/validators/histogram/error_x/_thickness.py +++ b/plotly/validators/histogram/error_x/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram/error_x/_traceref.py b/plotly/validators/histogram/error_x/_traceref.py index fed262386a..24f8d5e38d 100644 --- a/plotly/validators/histogram/error_x/_traceref.py +++ b/plotly/validators/histogram/error_x/_traceref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TracerefValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram/error_x/_tracerefminus.py b/plotly/validators/histogram/error_x/_tracerefminus.py index b0afe62fbb..81f3817f6a 100644 --- a/plotly/validators/histogram/error_x/_tracerefminus.py +++ b/plotly/validators/histogram/error_x/_tracerefminus.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TracerefminusValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram/error_x/_type.py b/plotly/validators/histogram/error_x/_type.py index 12941f186f..230ac6d9ea 100644 --- a/plotly/validators/histogram/error_x/_type.py +++ b/plotly/validators/histogram/error_x/_type.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["percent", "constant", "sqrt", "data"]), **kwargs, diff --git a/plotly/validators/histogram/error_x/_value.py b/plotly/validators/histogram/error_x/_value.py index ca63f9cfc5..44fc5bb236 100644 --- a/plotly/validators/histogram/error_x/_value.py +++ b/plotly/validators/histogram/error_x/_value.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram/error_x/_valueminus.py b/plotly/validators/histogram/error_x/_valueminus.py index 1cdc9c98f5..de8cb7a548 100644 --- a/plotly/validators/histogram/error_x/_valueminus.py +++ b/plotly/validators/histogram/error_x/_valueminus.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueminusValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram/error_x/_visible.py b/plotly/validators/histogram/error_x/_visible.py index 609de7cacd..b5c2e7fa1c 100644 --- a/plotly/validators/histogram/error_x/_visible.py +++ b/plotly/validators/histogram/error_x/_visible.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram/error_x/_width.py b/plotly/validators/histogram/error_x/_width.py index 7fa8d26d74..61c6f85e7b 100644 --- a/plotly/validators/histogram/error_x/_width.py +++ b/plotly/validators/histogram/error_x/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram/error_y/__init__.py b/plotly/validators/histogram/error_y/__init__.py index eff09cd6a0..ea49850d5f 100644 --- a/plotly/validators/histogram/error_y/__init__.py +++ b/plotly/validators/histogram/error_y/__init__.py @@ -1,41 +1,23 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._width import WidthValidator - from ._visible import VisibleValidator - from ._valueminus import ValueminusValidator - from ._value import ValueValidator - from ._type import TypeValidator - from ._tracerefminus import TracerefminusValidator - from ._traceref import TracerefValidator - from ._thickness import ThicknessValidator - from ._symmetric import SymmetricValidator - from ._color import ColorValidator - from ._arraysrc import ArraysrcValidator - from ._arrayminussrc import ArrayminussrcValidator - from ._arrayminus import ArrayminusValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/histogram/error_y/_array.py b/plotly/validators/histogram/error_y/_array.py index 7ced110a7d..8974fbfdc4 100644 --- a/plotly/validators/histogram/error_y/_array.py +++ b/plotly/validators/histogram/error_y/_array.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrayValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram/error_y/_arrayminus.py b/plotly/validators/histogram/error_y/_arrayminus.py index e6ec1f998e..bd03dfe3cd 100644 --- a/plotly/validators/histogram/error_y/_arrayminus.py +++ b/plotly/validators/histogram/error_y/_arrayminus.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrayminusValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram/error_y/_arrayminussrc.py b/plotly/validators/histogram/error_y/_arrayminussrc.py index cc4c2e6883..fe27add267 100644 --- a/plotly/validators/histogram/error_y/_arrayminussrc.py +++ b/plotly/validators/histogram/error_y/_arrayminussrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrayminussrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/error_y/_arraysrc.py b/plotly/validators/histogram/error_y/_arraysrc.py index a00ae7ae0b..7b8ebb65f2 100644 --- a/plotly/validators/histogram/error_y/_arraysrc.py +++ b/plotly/validators/histogram/error_y/_arraysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArraysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/error_y/_color.py b/plotly/validators/histogram/error_y/_color.py index c04b181958..cd746426cb 100644 --- a/plotly/validators/histogram/error_y/_color.py +++ b/plotly/validators/histogram/error_y/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/histogram/error_y/_symmetric.py b/plotly/validators/histogram/error_y/_symmetric.py index 2b71b1b8e9..6c17414896 100644 --- a/plotly/validators/histogram/error_y/_symmetric.py +++ b/plotly/validators/histogram/error_y/_symmetric.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymmetricValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram/error_y/_thickness.py b/plotly/validators/histogram/error_y/_thickness.py index c66e2aea1b..53039653de 100644 --- a/plotly/validators/histogram/error_y/_thickness.py +++ b/plotly/validators/histogram/error_y/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram/error_y/_traceref.py b/plotly/validators/histogram/error_y/_traceref.py index 30347a0c2f..fa5774469e 100644 --- a/plotly/validators/histogram/error_y/_traceref.py +++ b/plotly/validators/histogram/error_y/_traceref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TracerefValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram/error_y/_tracerefminus.py b/plotly/validators/histogram/error_y/_tracerefminus.py index dfa53254ba..7b8851ffed 100644 --- a/plotly/validators/histogram/error_y/_tracerefminus.py +++ b/plotly/validators/histogram/error_y/_tracerefminus.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TracerefminusValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram/error_y/_type.py b/plotly/validators/histogram/error_y/_type.py index 981ce78cf3..568537979c 100644 --- a/plotly/validators/histogram/error_y/_type.py +++ b/plotly/validators/histogram/error_y/_type.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["percent", "constant", "sqrt", "data"]), **kwargs, diff --git a/plotly/validators/histogram/error_y/_value.py b/plotly/validators/histogram/error_y/_value.py index ea5d203f6b..89254b175e 100644 --- a/plotly/validators/histogram/error_y/_value.py +++ b/plotly/validators/histogram/error_y/_value.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram/error_y/_valueminus.py b/plotly/validators/histogram/error_y/_valueminus.py index b9f3fce22d..5da283f165 100644 --- a/plotly/validators/histogram/error_y/_valueminus.py +++ b/plotly/validators/histogram/error_y/_valueminus.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueminusValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram/error_y/_visible.py b/plotly/validators/histogram/error_y/_visible.py index 7abf56f772..feaf984462 100644 --- a/plotly/validators/histogram/error_y/_visible.py +++ b/plotly/validators/histogram/error_y/_visible.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram/error_y/_width.py b/plotly/validators/histogram/error_y/_width.py index df54bf2e38..3ea2227b98 100644 --- a/plotly/validators/histogram/error_y/_width.py +++ b/plotly/validators/histogram/error_y/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram/hoverlabel/__init__.py b/plotly/validators/histogram/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/histogram/hoverlabel/__init__.py +++ b/plotly/validators/histogram/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/histogram/hoverlabel/_align.py b/plotly/validators/histogram/hoverlabel/_align.py index e3eab44ad1..2ff56645d5 100644 --- a/plotly/validators/histogram/hoverlabel/_align.py +++ b/plotly/validators/histogram/hoverlabel/_align.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/histogram/hoverlabel/_alignsrc.py b/plotly/validators/histogram/hoverlabel/_alignsrc.py index be4972f1be..6a25fb0b8c 100644 --- a/plotly/validators/histogram/hoverlabel/_alignsrc.py +++ b/plotly/validators/histogram/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/hoverlabel/_bgcolor.py b/plotly/validators/histogram/hoverlabel/_bgcolor.py index 970712dca3..b702925fb6 100644 --- a/plotly/validators/histogram/hoverlabel/_bgcolor.py +++ b/plotly/validators/histogram/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/histogram/hoverlabel/_bgcolorsrc.py b/plotly/validators/histogram/hoverlabel/_bgcolorsrc.py index cb4b4a33cd..ff0ba862cf 100644 --- a/plotly/validators/histogram/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/histogram/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/hoverlabel/_bordercolor.py b/plotly/validators/histogram/hoverlabel/_bordercolor.py index 91c8eecf56..0106097607 100644 --- a/plotly/validators/histogram/hoverlabel/_bordercolor.py +++ b/plotly/validators/histogram/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/histogram/hoverlabel/_bordercolorsrc.py b/plotly/validators/histogram/hoverlabel/_bordercolorsrc.py index c147e0c039..e0e47028d6 100644 --- a/plotly/validators/histogram/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/histogram/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/hoverlabel/_font.py b/plotly/validators/histogram/hoverlabel/_font.py index 156b767eb4..e19f798d0b 100644 --- a/plotly/validators/histogram/hoverlabel/_font.py +++ b/plotly/validators/histogram/hoverlabel/_font.py @@ -1,87 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/histogram/hoverlabel/_namelength.py b/plotly/validators/histogram/hoverlabel/_namelength.py index 39739ec870..50488b0185 100644 --- a/plotly/validators/histogram/hoverlabel/_namelength.py +++ b/plotly/validators/histogram/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/histogram/hoverlabel/_namelengthsrc.py b/plotly/validators/histogram/hoverlabel/_namelengthsrc.py index 6c68132f5e..b7dec0f928 100644 --- a/plotly/validators/histogram/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/histogram/hoverlabel/_namelengthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/hoverlabel/font/__init__.py b/plotly/validators/histogram/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/histogram/hoverlabel/font/__init__.py +++ b/plotly/validators/histogram/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/histogram/hoverlabel/font/_color.py b/plotly/validators/histogram/hoverlabel/font/_color.py index a03e7213de..1f852ca0bb 100644 --- a/plotly/validators/histogram/hoverlabel/font/_color.py +++ b/plotly/validators/histogram/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/histogram/hoverlabel/font/_colorsrc.py b/plotly/validators/histogram/hoverlabel/font/_colorsrc.py index 4961b371b9..a61e29dec0 100644 --- a/plotly/validators/histogram/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/histogram/hoverlabel/font/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/hoverlabel/font/_family.py b/plotly/validators/histogram/hoverlabel/font/_family.py index 5a549a0825..19e5ae2fd0 100644 --- a/plotly/validators/histogram/hoverlabel/font/_family.py +++ b/plotly/validators/histogram/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/histogram/hoverlabel/font/_familysrc.py b/plotly/validators/histogram/hoverlabel/font/_familysrc.py index 15a31f6242..24d4542c71 100644 --- a/plotly/validators/histogram/hoverlabel/font/_familysrc.py +++ b/plotly/validators/histogram/hoverlabel/font/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/hoverlabel/font/_lineposition.py b/plotly/validators/histogram/hoverlabel/font/_lineposition.py index 0ee1ed5aff..518362fd9d 100644 --- a/plotly/validators/histogram/hoverlabel/font/_lineposition.py +++ b/plotly/validators/histogram/hoverlabel/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/histogram/hoverlabel/font/_linepositionsrc.py b/plotly/validators/histogram/hoverlabel/font/_linepositionsrc.py index 19216ea960..3979108fc3 100644 --- a/plotly/validators/histogram/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/histogram/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/hoverlabel/font/_shadow.py b/plotly/validators/histogram/hoverlabel/font/_shadow.py index 3f0018ad62..12dfed2d5b 100644 --- a/plotly/validators/histogram/hoverlabel/font/_shadow.py +++ b/plotly/validators/histogram/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/histogram/hoverlabel/font/_shadowsrc.py b/plotly/validators/histogram/hoverlabel/font/_shadowsrc.py index f964f045a0..b43ca96cd1 100644 --- a/plotly/validators/histogram/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/histogram/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/hoverlabel/font/_size.py b/plotly/validators/histogram/hoverlabel/font/_size.py index 22d23470bc..b52d156521 100644 --- a/plotly/validators/histogram/hoverlabel/font/_size.py +++ b/plotly/validators/histogram/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/histogram/hoverlabel/font/_sizesrc.py b/plotly/validators/histogram/hoverlabel/font/_sizesrc.py index b0a9ccbcd3..269c4a2e6f 100644 --- a/plotly/validators/histogram/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/histogram/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/hoverlabel/font/_style.py b/plotly/validators/histogram/hoverlabel/font/_style.py index 7581194024..d865ab70c5 100644 --- a/plotly/validators/histogram/hoverlabel/font/_style.py +++ b/plotly/validators/histogram/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/histogram/hoverlabel/font/_stylesrc.py b/plotly/validators/histogram/hoverlabel/font/_stylesrc.py index 58dc97505a..09c4a861f7 100644 --- a/plotly/validators/histogram/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/histogram/hoverlabel/font/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/hoverlabel/font/_textcase.py b/plotly/validators/histogram/hoverlabel/font/_textcase.py index 0f611cee98..bd9f3cc3d6 100644 --- a/plotly/validators/histogram/hoverlabel/font/_textcase.py +++ b/plotly/validators/histogram/hoverlabel/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/histogram/hoverlabel/font/_textcasesrc.py b/plotly/validators/histogram/hoverlabel/font/_textcasesrc.py index ea8a593855..73d16b2ff0 100644 --- a/plotly/validators/histogram/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/histogram/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/hoverlabel/font/_variant.py b/plotly/validators/histogram/hoverlabel/font/_variant.py index 4f2ec3980b..d8850fbf62 100644 --- a/plotly/validators/histogram/hoverlabel/font/_variant.py +++ b/plotly/validators/histogram/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/histogram/hoverlabel/font/_variantsrc.py b/plotly/validators/histogram/hoverlabel/font/_variantsrc.py index 75de0e74c4..29e1d785a8 100644 --- a/plotly/validators/histogram/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/histogram/hoverlabel/font/_variantsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/hoverlabel/font/_weight.py b/plotly/validators/histogram/hoverlabel/font/_weight.py index b34218884f..676573460e 100644 --- a/plotly/validators/histogram/hoverlabel/font/_weight.py +++ b/plotly/validators/histogram/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/histogram/hoverlabel/font/_weightsrc.py b/plotly/validators/histogram/hoverlabel/font/_weightsrc.py index 78cf8e9295..d168aa0bb5 100644 --- a/plotly/validators/histogram/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/histogram/hoverlabel/font/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/insidetextfont/__init__.py b/plotly/validators/histogram/insidetextfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/histogram/insidetextfont/__init__.py +++ b/plotly/validators/histogram/insidetextfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/histogram/insidetextfont/_color.py b/plotly/validators/histogram/insidetextfont/_color.py index 65030c2c47..0739b5ed96 100644 --- a/plotly/validators/histogram/insidetextfont/_color.py +++ b/plotly/validators/histogram/insidetextfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/histogram/insidetextfont/_family.py b/plotly/validators/histogram/insidetextfont/_family.py index 8fbdd7688e..566c26146b 100644 --- a/plotly/validators/histogram/insidetextfont/_family.py +++ b/plotly/validators/histogram/insidetextfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/histogram/insidetextfont/_lineposition.py b/plotly/validators/histogram/insidetextfont/_lineposition.py index df80a7b165..4b4fc72772 100644 --- a/plotly/validators/histogram/insidetextfont/_lineposition.py +++ b/plotly/validators/histogram/insidetextfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/histogram/insidetextfont/_shadow.py b/plotly/validators/histogram/insidetextfont/_shadow.py index d62fc7a167..bf1ebef3a7 100644 --- a/plotly/validators/histogram/insidetextfont/_shadow.py +++ b/plotly/validators/histogram/insidetextfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/histogram/insidetextfont/_size.py b/plotly/validators/histogram/insidetextfont/_size.py index f65e369fcf..1e24b1d06d 100644 --- a/plotly/validators/histogram/insidetextfont/_size.py +++ b/plotly/validators/histogram/insidetextfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/histogram/insidetextfont/_style.py b/plotly/validators/histogram/insidetextfont/_style.py index 7d165c6f03..25a69c77e8 100644 --- a/plotly/validators/histogram/insidetextfont/_style.py +++ b/plotly/validators/histogram/insidetextfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/histogram/insidetextfont/_textcase.py b/plotly/validators/histogram/insidetextfont/_textcase.py index 8ee95a7c70..7d8d94d928 100644 --- a/plotly/validators/histogram/insidetextfont/_textcase.py +++ b/plotly/validators/histogram/insidetextfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/histogram/insidetextfont/_variant.py b/plotly/validators/histogram/insidetextfont/_variant.py index 67820554d4..009c4dcbf9 100644 --- a/plotly/validators/histogram/insidetextfont/_variant.py +++ b/plotly/validators/histogram/insidetextfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/histogram/insidetextfont/_weight.py b/plotly/validators/histogram/insidetextfont/_weight.py index dc3db5cfd3..ce88254ebb 100644 --- a/plotly/validators/histogram/insidetextfont/_weight.py +++ b/plotly/validators/histogram/insidetextfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/histogram/legendgrouptitle/__init__.py b/plotly/validators/histogram/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/histogram/legendgrouptitle/__init__.py +++ b/plotly/validators/histogram/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/histogram/legendgrouptitle/_font.py b/plotly/validators/histogram/legendgrouptitle/_font.py index 20e6b44fc7..8dc458274d 100644 --- a/plotly/validators/histogram/legendgrouptitle/_font.py +++ b/plotly/validators/histogram/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/histogram/legendgrouptitle/_text.py b/plotly/validators/histogram/legendgrouptitle/_text.py index f009159a91..0341385e70 100644 --- a/plotly/validators/histogram/legendgrouptitle/_text.py +++ b/plotly/validators/histogram/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/histogram/legendgrouptitle/font/__init__.py b/plotly/validators/histogram/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/histogram/legendgrouptitle/font/__init__.py +++ b/plotly/validators/histogram/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/histogram/legendgrouptitle/font/_color.py b/plotly/validators/histogram/legendgrouptitle/font/_color.py index e7081da9a7..977e13a2a0 100644 --- a/plotly/validators/histogram/legendgrouptitle/font/_color.py +++ b/plotly/validators/histogram/legendgrouptitle/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/histogram/legendgrouptitle/font/_family.py b/plotly/validators/histogram/legendgrouptitle/font/_family.py index 8bb67f6410..4948ad4204 100644 --- a/plotly/validators/histogram/legendgrouptitle/font/_family.py +++ b/plotly/validators/histogram/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/histogram/legendgrouptitle/font/_lineposition.py b/plotly/validators/histogram/legendgrouptitle/font/_lineposition.py index 3580ea8b24..781669748e 100644 --- a/plotly/validators/histogram/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/histogram/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/histogram/legendgrouptitle/font/_shadow.py b/plotly/validators/histogram/legendgrouptitle/font/_shadow.py index 3b0745a9c9..7cf39eab26 100644 --- a/plotly/validators/histogram/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/histogram/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/histogram/legendgrouptitle/font/_size.py b/plotly/validators/histogram/legendgrouptitle/font/_size.py index de12a55d4f..22c02a6490 100644 --- a/plotly/validators/histogram/legendgrouptitle/font/_size.py +++ b/plotly/validators/histogram/legendgrouptitle/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/histogram/legendgrouptitle/font/_style.py b/plotly/validators/histogram/legendgrouptitle/font/_style.py index a430d7224b..14807bb36e 100644 --- a/plotly/validators/histogram/legendgrouptitle/font/_style.py +++ b/plotly/validators/histogram/legendgrouptitle/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/histogram/legendgrouptitle/font/_textcase.py b/plotly/validators/histogram/legendgrouptitle/font/_textcase.py index 8447fedbb6..f97edfbe7b 100644 --- a/plotly/validators/histogram/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/histogram/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/histogram/legendgrouptitle/font/_variant.py b/plotly/validators/histogram/legendgrouptitle/font/_variant.py index b9fd87b9f1..86de3c53cf 100644 --- a/plotly/validators/histogram/legendgrouptitle/font/_variant.py +++ b/plotly/validators/histogram/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/histogram/legendgrouptitle/font/_weight.py b/plotly/validators/histogram/legendgrouptitle/font/_weight.py index c3545dda76..612bb9a477 100644 --- a/plotly/validators/histogram/legendgrouptitle/font/_weight.py +++ b/plotly/validators/histogram/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/histogram/marker/__init__.py b/plotly/validators/histogram/marker/__init__.py index 8f8e3d4a93..69ad877d80 100644 --- a/plotly/validators/histogram/marker/__init__.py +++ b/plotly/validators/histogram/marker/__init__.py @@ -1,47 +1,26 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._showscale import ShowscaleValidator - from ._reversescale import ReversescaleValidator - from ._pattern import PatternValidator - from ._opacitysrc import OpacitysrcValidator - from ._opacity import OpacityValidator - from ._line import LineValidator - from ._cornerradius import CornerradiusValidator - from ._colorsrc import ColorsrcValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._color import ColorValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/histogram/marker/_autocolorscale.py b/plotly/validators/histogram/marker/_autocolorscale.py index 68fb055132..80dee3ff3c 100644 --- a/plotly/validators/histogram/marker/_autocolorscale.py +++ b/plotly/validators/histogram/marker/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/histogram/marker/_cauto.py b/plotly/validators/histogram/marker/_cauto.py index 8141f7101f..f0989f25c2 100644 --- a/plotly/validators/histogram/marker/_cauto.py +++ b/plotly/validators/histogram/marker/_cauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/histogram/marker/_cmax.py b/plotly/validators/histogram/marker/_cmax.py index 7d95863085..2b1733cb25 100644 --- a/plotly/validators/histogram/marker/_cmax.py +++ b/plotly/validators/histogram/marker/_cmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/histogram/marker/_cmid.py b/plotly/validators/histogram/marker/_cmid.py index df400126a9..a2bfb151f3 100644 --- a/plotly/validators/histogram/marker/_cmid.py +++ b/plotly/validators/histogram/marker/_cmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/histogram/marker/_cmin.py b/plotly/validators/histogram/marker/_cmin.py index 8fa8e64f9b..facc39ee6c 100644 --- a/plotly/validators/histogram/marker/_cmin.py +++ b/plotly/validators/histogram/marker/_cmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/histogram/marker/_color.py b/plotly/validators/histogram/marker/_color.py index 3243736e98..405ad67fb3 100644 --- a/plotly/validators/histogram/marker/_color.py +++ b/plotly/validators/histogram/marker/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), colorscale_path=kwargs.pop( diff --git a/plotly/validators/histogram/marker/_coloraxis.py b/plotly/validators/histogram/marker/_coloraxis.py index f0c8f61b0d..a66ae95a9f 100644 --- a/plotly/validators/histogram/marker/_coloraxis.py +++ b/plotly/validators/histogram/marker/_coloraxis.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/histogram/marker/_colorbar.py b/plotly/validators/histogram/marker/_colorbar.py index a577dbd09a..7995bf6a33 100644 --- a/plotly/validators/histogram/marker/_colorbar.py +++ b/plotly/validators/histogram/marker/_colorbar.py @@ -1,281 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram/marker/_colorscale.py b/plotly/validators/histogram/marker/_colorscale.py index 2961c7c435..2b3cebe5e7 100644 --- a/plotly/validators/histogram/marker/_colorscale.py +++ b/plotly/validators/histogram/marker/_colorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/histogram/marker/_colorsrc.py b/plotly/validators/histogram/marker/_colorsrc.py index 6e41a47510..06836895ec 100644 --- a/plotly/validators/histogram/marker/_colorsrc.py +++ b/plotly/validators/histogram/marker/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/_cornerradius.py b/plotly/validators/histogram/marker/_cornerradius.py index 0a3f78d598..7b0b2a7790 100644 --- a/plotly/validators/histogram/marker/_cornerradius.py +++ b/plotly/validators/histogram/marker/_cornerradius.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CornerradiusValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/_line.py b/plotly/validators/histogram/marker/_line.py index e5955f2126..16a789c2e7 100644 --- a/plotly/validators/histogram/marker/_line.py +++ b/plotly/validators/histogram/marker/_line.py @@ -1,104 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram/marker/_opacity.py b/plotly/validators/histogram/marker/_opacity.py index 34ea49aea3..ee22ee4bda 100644 --- a/plotly/validators/histogram/marker/_opacity.py +++ b/plotly/validators/histogram/marker/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), diff --git a/plotly/validators/histogram/marker/_opacitysrc.py b/plotly/validators/histogram/marker/_opacitysrc.py index e3ed643073..dfc675a923 100644 --- a/plotly/validators/histogram/marker/_opacitysrc.py +++ b/plotly/validators/histogram/marker/_opacitysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/_pattern.py b/plotly/validators/histogram/marker/_pattern.py index 43a97f8fba..232d623cdb 100644 --- a/plotly/validators/histogram/marker/_pattern.py +++ b/plotly/validators/histogram/marker/_pattern.py @@ -1,63 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PatternValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram/marker/_reversescale.py b/plotly/validators/histogram/marker/_reversescale.py index a5014da5ea..410a80fe1d 100644 --- a/plotly/validators/histogram/marker/_reversescale.py +++ b/plotly/validators/histogram/marker/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/_showscale.py b/plotly/validators/histogram/marker/_showscale.py index 1009894e95..3b1e76987b 100644 --- a/plotly/validators/histogram/marker/_showscale.py +++ b/plotly/validators/histogram/marker/_showscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/colorbar/__init__.py b/plotly/validators/histogram/marker/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/histogram/marker/colorbar/__init__.py +++ b/plotly/validators/histogram/marker/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/histogram/marker/colorbar/_bgcolor.py b/plotly/validators/histogram/marker/colorbar/_bgcolor.py index 6aba6ba0df..c2376fe1df 100644 --- a/plotly/validators/histogram/marker/colorbar/_bgcolor.py +++ b/plotly/validators/histogram/marker/colorbar/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/colorbar/_bordercolor.py b/plotly/validators/histogram/marker/colorbar/_bordercolor.py index 4e72238324..faf0545274 100644 --- a/plotly/validators/histogram/marker/colorbar/_bordercolor.py +++ b/plotly/validators/histogram/marker/colorbar/_bordercolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/colorbar/_borderwidth.py b/plotly/validators/histogram/marker/colorbar/_borderwidth.py index c24de58539..8a511f2a01 100644 --- a/plotly/validators/histogram/marker/colorbar/_borderwidth.py +++ b/plotly/validators/histogram/marker/colorbar/_borderwidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram/marker/colorbar/_dtick.py b/plotly/validators/histogram/marker/colorbar/_dtick.py index 79ecd42053..f67160052e 100644 --- a/plotly/validators/histogram/marker/colorbar/_dtick.py +++ b/plotly/validators/histogram/marker/colorbar/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/histogram/marker/colorbar/_exponentformat.py b/plotly/validators/histogram/marker/colorbar/_exponentformat.py index 01a7f3d716..19762c6643 100644 --- a/plotly/validators/histogram/marker/colorbar/_exponentformat.py +++ b/plotly/validators/histogram/marker/colorbar/_exponentformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/histogram/marker/colorbar/_labelalias.py b/plotly/validators/histogram/marker/colorbar/_labelalias.py index 86d92fd691..8630665865 100644 --- a/plotly/validators/histogram/marker/colorbar/_labelalias.py +++ b/plotly/validators/histogram/marker/colorbar/_labelalias.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/colorbar/_len.py b/plotly/validators/histogram/marker/colorbar/_len.py index 9362830690..0adfad0e5f 100644 --- a/plotly/validators/histogram/marker/colorbar/_len.py +++ b/plotly/validators/histogram/marker/colorbar/_len.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram/marker/colorbar/_lenmode.py b/plotly/validators/histogram/marker/colorbar/_lenmode.py index 2f38eb782d..372d52e882 100644 --- a/plotly/validators/histogram/marker/colorbar/_lenmode.py +++ b/plotly/validators/histogram/marker/colorbar/_lenmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/histogram/marker/colorbar/_minexponent.py b/plotly/validators/histogram/marker/colorbar/_minexponent.py index 93a853a192..e0c5cabf8e 100644 --- a/plotly/validators/histogram/marker/colorbar/_minexponent.py +++ b/plotly/validators/histogram/marker/colorbar/_minexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram/marker/colorbar/_nticks.py b/plotly/validators/histogram/marker/colorbar/_nticks.py index f6c32ed4af..489d8456e8 100644 --- a/plotly/validators/histogram/marker/colorbar/_nticks.py +++ b/plotly/validators/histogram/marker/colorbar/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram/marker/colorbar/_orientation.py b/plotly/validators/histogram/marker/colorbar/_orientation.py index cf591da3e3..76046c878a 100644 --- a/plotly/validators/histogram/marker/colorbar/_orientation.py +++ b/plotly/validators/histogram/marker/colorbar/_orientation.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/histogram/marker/colorbar/_outlinecolor.py b/plotly/validators/histogram/marker/colorbar/_outlinecolor.py index 3a0b1638f1..53be5c6873 100644 --- a/plotly/validators/histogram/marker/colorbar/_outlinecolor.py +++ b/plotly/validators/histogram/marker/colorbar/_outlinecolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/colorbar/_outlinewidth.py b/plotly/validators/histogram/marker/colorbar/_outlinewidth.py index 1642771bfe..7957901373 100644 --- a/plotly/validators/histogram/marker/colorbar/_outlinewidth.py +++ b/plotly/validators/histogram/marker/colorbar/_outlinewidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram/marker/colorbar/_separatethousands.py b/plotly/validators/histogram/marker/colorbar/_separatethousands.py index 5ad11f5520..94d363a400 100644 --- a/plotly/validators/histogram/marker/colorbar/_separatethousands.py +++ b/plotly/validators/histogram/marker/colorbar/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/colorbar/_showexponent.py b/plotly/validators/histogram/marker/colorbar/_showexponent.py index e1dd35719e..bf0f8822ea 100644 --- a/plotly/validators/histogram/marker/colorbar/_showexponent.py +++ b/plotly/validators/histogram/marker/colorbar/_showexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/histogram/marker/colorbar/_showticklabels.py b/plotly/validators/histogram/marker/colorbar/_showticklabels.py index 026869b4c5..e0bfc0051f 100644 --- a/plotly/validators/histogram/marker/colorbar/_showticklabels.py +++ b/plotly/validators/histogram/marker/colorbar/_showticklabels.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/colorbar/_showtickprefix.py b/plotly/validators/histogram/marker/colorbar/_showtickprefix.py index e0531787bd..7eb759449a 100644 --- a/plotly/validators/histogram/marker/colorbar/_showtickprefix.py +++ b/plotly/validators/histogram/marker/colorbar/_showtickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/histogram/marker/colorbar/_showticksuffix.py b/plotly/validators/histogram/marker/colorbar/_showticksuffix.py index e9e7c15b37..8402aca292 100644 --- a/plotly/validators/histogram/marker/colorbar/_showticksuffix.py +++ b/plotly/validators/histogram/marker/colorbar/_showticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/histogram/marker/colorbar/_thickness.py b/plotly/validators/histogram/marker/colorbar/_thickness.py index 3233a5c479..f11c5caeb8 100644 --- a/plotly/validators/histogram/marker/colorbar/_thickness.py +++ b/plotly/validators/histogram/marker/colorbar/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram/marker/colorbar/_thicknessmode.py b/plotly/validators/histogram/marker/colorbar/_thicknessmode.py index fff31b535a..b387b30d5c 100644 --- a/plotly/validators/histogram/marker/colorbar/_thicknessmode.py +++ b/plotly/validators/histogram/marker/colorbar/_thicknessmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/histogram/marker/colorbar/_tick0.py b/plotly/validators/histogram/marker/colorbar/_tick0.py index 6c753f31e5..76a19351f4 100644 --- a/plotly/validators/histogram/marker/colorbar/_tick0.py +++ b/plotly/validators/histogram/marker/colorbar/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/histogram/marker/colorbar/_tickangle.py b/plotly/validators/histogram/marker/colorbar/_tickangle.py index 7c849b9129..cb1627f52e 100644 --- a/plotly/validators/histogram/marker/colorbar/_tickangle.py +++ b/plotly/validators/histogram/marker/colorbar/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/colorbar/_tickcolor.py b/plotly/validators/histogram/marker/colorbar/_tickcolor.py index 37296b1450..a72cafcbdd 100644 --- a/plotly/validators/histogram/marker/colorbar/_tickcolor.py +++ b/plotly/validators/histogram/marker/colorbar/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/colorbar/_tickfont.py b/plotly/validators/histogram/marker/colorbar/_tickfont.py index 3bbb965b7d..911f69f412 100644 --- a/plotly/validators/histogram/marker/colorbar/_tickfont.py +++ b/plotly/validators/histogram/marker/colorbar/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/histogram/marker/colorbar/_tickformat.py b/plotly/validators/histogram/marker/colorbar/_tickformat.py index e81180fd5c..98fe391372 100644 --- a/plotly/validators/histogram/marker/colorbar/_tickformat.py +++ b/plotly/validators/histogram/marker/colorbar/_tickformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/colorbar/_tickformatstopdefaults.py b/plotly/validators/histogram/marker/colorbar/_tickformatstopdefaults.py index 11d46bb8c2..6a2735d657 100644 --- a/plotly/validators/histogram/marker/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/histogram/marker/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/histogram/marker/colorbar/_tickformatstops.py b/plotly/validators/histogram/marker/colorbar/_tickformatstops.py index 18684c8937..2b23eae690 100644 --- a/plotly/validators/histogram/marker/colorbar/_tickformatstops.py +++ b/plotly/validators/histogram/marker/colorbar/_tickformatstops.py @@ -1,53 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram/marker/colorbar/_ticklabeloverflow.py b/plotly/validators/histogram/marker/colorbar/_ticklabeloverflow.py index 6ee2168b4f..dd9a9f4d04 100644 --- a/plotly/validators/histogram/marker/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/histogram/marker/colorbar/_ticklabeloverflow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/histogram/marker/colorbar/_ticklabelposition.py b/plotly/validators/histogram/marker/colorbar/_ticklabelposition.py index 78f6bdbb20..ff4804e029 100644 --- a/plotly/validators/histogram/marker/colorbar/_ticklabelposition.py +++ b/plotly/validators/histogram/marker/colorbar/_ticklabelposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/histogram/marker/colorbar/_ticklabelstep.py b/plotly/validators/histogram/marker/colorbar/_ticklabelstep.py index fdc4cf7834..6ffea6ab21 100644 --- a/plotly/validators/histogram/marker/colorbar/_ticklabelstep.py +++ b/plotly/validators/histogram/marker/colorbar/_ticklabelstep.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/histogram/marker/colorbar/_ticklen.py b/plotly/validators/histogram/marker/colorbar/_ticklen.py index 500d1c5c49..7c65ee4353 100644 --- a/plotly/validators/histogram/marker/colorbar/_ticklen.py +++ b/plotly/validators/histogram/marker/colorbar/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram/marker/colorbar/_tickmode.py b/plotly/validators/histogram/marker/colorbar/_tickmode.py index a1fb75e110..571ceb534c 100644 --- a/plotly/validators/histogram/marker/colorbar/_tickmode.py +++ b/plotly/validators/histogram/marker/colorbar/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/histogram/marker/colorbar/_tickprefix.py b/plotly/validators/histogram/marker/colorbar/_tickprefix.py index efb4618471..11347d35ea 100644 --- a/plotly/validators/histogram/marker/colorbar/_tickprefix.py +++ b/plotly/validators/histogram/marker/colorbar/_tickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/colorbar/_ticks.py b/plotly/validators/histogram/marker/colorbar/_ticks.py index 1ee66d7f17..96314e2323 100644 --- a/plotly/validators/histogram/marker/colorbar/_ticks.py +++ b/plotly/validators/histogram/marker/colorbar/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/histogram/marker/colorbar/_ticksuffix.py b/plotly/validators/histogram/marker/colorbar/_ticksuffix.py index a6bcb47182..f56948d03a 100644 --- a/plotly/validators/histogram/marker/colorbar/_ticksuffix.py +++ b/plotly/validators/histogram/marker/colorbar/_ticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/colorbar/_ticktext.py b/plotly/validators/histogram/marker/colorbar/_ticktext.py index fe982ca9a1..71c2fee534 100644 --- a/plotly/validators/histogram/marker/colorbar/_ticktext.py +++ b/plotly/validators/histogram/marker/colorbar/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/colorbar/_ticktextsrc.py b/plotly/validators/histogram/marker/colorbar/_ticktextsrc.py index 5d1bf16d59..1f0d7b12f5 100644 --- a/plotly/validators/histogram/marker/colorbar/_ticktextsrc.py +++ b/plotly/validators/histogram/marker/colorbar/_ticktextsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/colorbar/_tickvals.py b/plotly/validators/histogram/marker/colorbar/_tickvals.py index 7c102071cd..c6ddc6b9c9 100644 --- a/plotly/validators/histogram/marker/colorbar/_tickvals.py +++ b/plotly/validators/histogram/marker/colorbar/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/colorbar/_tickvalssrc.py b/plotly/validators/histogram/marker/colorbar/_tickvalssrc.py index 9a7a3d8b4f..c2b1353f7f 100644 --- a/plotly/validators/histogram/marker/colorbar/_tickvalssrc.py +++ b/plotly/validators/histogram/marker/colorbar/_tickvalssrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/colorbar/_tickwidth.py b/plotly/validators/histogram/marker/colorbar/_tickwidth.py index ce97c24b44..d87f4968b1 100644 --- a/plotly/validators/histogram/marker/colorbar/_tickwidth.py +++ b/plotly/validators/histogram/marker/colorbar/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram/marker/colorbar/_title.py b/plotly/validators/histogram/marker/colorbar/_title.py index ff4d90bb88..7b46b875b1 100644 --- a/plotly/validators/histogram/marker/colorbar/_title.py +++ b/plotly/validators/histogram/marker/colorbar/_title.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram/marker/colorbar/_x.py b/plotly/validators/histogram/marker/colorbar/_x.py index 1ae083e806..a00b542a83 100644 --- a/plotly/validators/histogram/marker/colorbar/_x.py +++ b/plotly/validators/histogram/marker/colorbar/_x.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/colorbar/_xanchor.py b/plotly/validators/histogram/marker/colorbar/_xanchor.py index b30c23ad4a..cc9fe37d4a 100644 --- a/plotly/validators/histogram/marker/colorbar/_xanchor.py +++ b/plotly/validators/histogram/marker/colorbar/_xanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/histogram/marker/colorbar/_xpad.py b/plotly/validators/histogram/marker/colorbar/_xpad.py index 1cdd5730e6..6a27944da5 100644 --- a/plotly/validators/histogram/marker/colorbar/_xpad.py +++ b/plotly/validators/histogram/marker/colorbar/_xpad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram/marker/colorbar/_xref.py b/plotly/validators/histogram/marker/colorbar/_xref.py index 121a6d39bc..c185b04c9a 100644 --- a/plotly/validators/histogram/marker/colorbar/_xref.py +++ b/plotly/validators/histogram/marker/colorbar/_xref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/histogram/marker/colorbar/_y.py b/plotly/validators/histogram/marker/colorbar/_y.py index 86cc20a14d..063fbff1b3 100644 --- a/plotly/validators/histogram/marker/colorbar/_y.py +++ b/plotly/validators/histogram/marker/colorbar/_y.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/colorbar/_yanchor.py b/plotly/validators/histogram/marker/colorbar/_yanchor.py index 6cad96e7dd..a2539656b7 100644 --- a/plotly/validators/histogram/marker/colorbar/_yanchor.py +++ b/plotly/validators/histogram/marker/colorbar/_yanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/histogram/marker/colorbar/_ypad.py b/plotly/validators/histogram/marker/colorbar/_ypad.py index 2ce4637ff3..159ccab58b 100644 --- a/plotly/validators/histogram/marker/colorbar/_ypad.py +++ b/plotly/validators/histogram/marker/colorbar/_ypad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram/marker/colorbar/_yref.py b/plotly/validators/histogram/marker/colorbar/_yref.py index 326e18fcf7..89925463a2 100644 --- a/plotly/validators/histogram/marker/colorbar/_yref.py +++ b/plotly/validators/histogram/marker/colorbar/_yref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/histogram/marker/colorbar/tickfont/__init__.py b/plotly/validators/histogram/marker/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/histogram/marker/colorbar/tickfont/__init__.py +++ b/plotly/validators/histogram/marker/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/histogram/marker/colorbar/tickfont/_color.py b/plotly/validators/histogram/marker/colorbar/tickfont/_color.py index 42749c2216..ed87612b51 100644 --- a/plotly/validators/histogram/marker/colorbar/tickfont/_color.py +++ b/plotly/validators/histogram/marker/colorbar/tickfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/colorbar/tickfont/_family.py b/plotly/validators/histogram/marker/colorbar/tickfont/_family.py index e979eff363..c6103196e6 100644 --- a/plotly/validators/histogram/marker/colorbar/tickfont/_family.py +++ b/plotly/validators/histogram/marker/colorbar/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/histogram/marker/colorbar/tickfont/_lineposition.py b/plotly/validators/histogram/marker/colorbar/tickfont/_lineposition.py index e27d87485a..132e7d0631 100644 --- a/plotly/validators/histogram/marker/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/histogram/marker/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/histogram/marker/colorbar/tickfont/_shadow.py b/plotly/validators/histogram/marker/colorbar/tickfont/_shadow.py index 2b7ad4db19..52041e2e87 100644 --- a/plotly/validators/histogram/marker/colorbar/tickfont/_shadow.py +++ b/plotly/validators/histogram/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/colorbar/tickfont/_size.py b/plotly/validators/histogram/marker/colorbar/tickfont/_size.py index b130357518..7a82783f90 100644 --- a/plotly/validators/histogram/marker/colorbar/tickfont/_size.py +++ b/plotly/validators/histogram/marker/colorbar/tickfont/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/histogram/marker/colorbar/tickfont/_style.py b/plotly/validators/histogram/marker/colorbar/tickfont/_style.py index 17b287fbde..e7a3471d95 100644 --- a/plotly/validators/histogram/marker/colorbar/tickfont/_style.py +++ b/plotly/validators/histogram/marker/colorbar/tickfont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/histogram/marker/colorbar/tickfont/_textcase.py b/plotly/validators/histogram/marker/colorbar/tickfont/_textcase.py index ba7d5420e0..89a0352805 100644 --- a/plotly/validators/histogram/marker/colorbar/tickfont/_textcase.py +++ b/plotly/validators/histogram/marker/colorbar/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/histogram/marker/colorbar/tickfont/_variant.py b/plotly/validators/histogram/marker/colorbar/tickfont/_variant.py index d560219779..0a0272ffa8 100644 --- a/plotly/validators/histogram/marker/colorbar/tickfont/_variant.py +++ b/plotly/validators/histogram/marker/colorbar/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/histogram/marker/colorbar/tickfont/_weight.py b/plotly/validators/histogram/marker/colorbar/tickfont/_weight.py index 9c41796a7e..94a1419f0e 100644 --- a/plotly/validators/histogram/marker/colorbar/tickfont/_weight.py +++ b/plotly/validators/histogram/marker/colorbar/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/histogram/marker/colorbar/tickformatstop/__init__.py b/plotly/validators/histogram/marker/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/histogram/marker/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/histogram/marker/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/histogram/marker/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/histogram/marker/colorbar/tickformatstop/_dtickrange.py index 15521f2bff..37684bfc11 100644 --- a/plotly/validators/histogram/marker/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/histogram/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( "items", diff --git a/plotly/validators/histogram/marker/colorbar/tickformatstop/_enabled.py b/plotly/validators/histogram/marker/colorbar/tickformatstop/_enabled.py index 5bea80fea3..1c395b373f 100644 --- a/plotly/validators/histogram/marker/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/histogram/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/colorbar/tickformatstop/_name.py b/plotly/validators/histogram/marker/colorbar/tickformatstop/_name.py index b72006f0cb..455314d640 100644 --- a/plotly/validators/histogram/marker/colorbar/tickformatstop/_name.py +++ b/plotly/validators/histogram/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/histogram/marker/colorbar/tickformatstop/_templateitemname.py index 55c0548d53..9557c98131 100644 --- a/plotly/validators/histogram/marker/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/histogram/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/colorbar/tickformatstop/_value.py b/plotly/validators/histogram/marker/colorbar/tickformatstop/_value.py index 489bb5cbfd..6fbb9470eb 100644 --- a/plotly/validators/histogram/marker/colorbar/tickformatstop/_value.py +++ b/plotly/validators/histogram/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/colorbar/title/__init__.py b/plotly/validators/histogram/marker/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/histogram/marker/colorbar/title/__init__.py +++ b/plotly/validators/histogram/marker/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/histogram/marker/colorbar/title/_font.py b/plotly/validators/histogram/marker/colorbar/title/_font.py index 11acf7f156..6b254e7f6a 100644 --- a/plotly/validators/histogram/marker/colorbar/title/_font.py +++ b/plotly/validators/histogram/marker/colorbar/title/_font.py @@ -1,63 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/histogram/marker/colorbar/title/_side.py b/plotly/validators/histogram/marker/colorbar/title/_side.py index f90500dece..51947b1078 100644 --- a/plotly/validators/histogram/marker/colorbar/title/_side.py +++ b/plotly/validators/histogram/marker/colorbar/title/_side.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/histogram/marker/colorbar/title/_text.py b/plotly/validators/histogram/marker/colorbar/title/_text.py index ab21c95a6f..3b810db894 100644 --- a/plotly/validators/histogram/marker/colorbar/title/_text.py +++ b/plotly/validators/histogram/marker/colorbar/title/_text.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/colorbar/title/font/__init__.py b/plotly/validators/histogram/marker/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/histogram/marker/colorbar/title/font/__init__.py +++ b/plotly/validators/histogram/marker/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/histogram/marker/colorbar/title/font/_color.py b/plotly/validators/histogram/marker/colorbar/title/font/_color.py index 28e8980318..dbdf1abb47 100644 --- a/plotly/validators/histogram/marker/colorbar/title/font/_color.py +++ b/plotly/validators/histogram/marker/colorbar/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/colorbar/title/font/_family.py b/plotly/validators/histogram/marker/colorbar/title/font/_family.py index 3a115abc1a..95ebaccaf8 100644 --- a/plotly/validators/histogram/marker/colorbar/title/font/_family.py +++ b/plotly/validators/histogram/marker/colorbar/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/histogram/marker/colorbar/title/font/_lineposition.py b/plotly/validators/histogram/marker/colorbar/title/font/_lineposition.py index 2be2591c29..750beefaa0 100644 --- a/plotly/validators/histogram/marker/colorbar/title/font/_lineposition.py +++ b/plotly/validators/histogram/marker/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/histogram/marker/colorbar/title/font/_shadow.py b/plotly/validators/histogram/marker/colorbar/title/font/_shadow.py index a1c596c3d5..6b3eb13cee 100644 --- a/plotly/validators/histogram/marker/colorbar/title/font/_shadow.py +++ b/plotly/validators/histogram/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/colorbar/title/font/_size.py b/plotly/validators/histogram/marker/colorbar/title/font/_size.py index fd2ee40971..a728aeed1e 100644 --- a/plotly/validators/histogram/marker/colorbar/title/font/_size.py +++ b/plotly/validators/histogram/marker/colorbar/title/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/histogram/marker/colorbar/title/font/_style.py b/plotly/validators/histogram/marker/colorbar/title/font/_style.py index 8af596ae23..2e871ca230 100644 --- a/plotly/validators/histogram/marker/colorbar/title/font/_style.py +++ b/plotly/validators/histogram/marker/colorbar/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/histogram/marker/colorbar/title/font/_textcase.py b/plotly/validators/histogram/marker/colorbar/title/font/_textcase.py index ee190081ef..634d593dd8 100644 --- a/plotly/validators/histogram/marker/colorbar/title/font/_textcase.py +++ b/plotly/validators/histogram/marker/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/histogram/marker/colorbar/title/font/_variant.py b/plotly/validators/histogram/marker/colorbar/title/font/_variant.py index 4323c91a22..08565d9f49 100644 --- a/plotly/validators/histogram/marker/colorbar/title/font/_variant.py +++ b/plotly/validators/histogram/marker/colorbar/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/histogram/marker/colorbar/title/font/_weight.py b/plotly/validators/histogram/marker/colorbar/title/font/_weight.py index 2c3604bcd4..2f0bc91968 100644 --- a/plotly/validators/histogram/marker/colorbar/title/font/_weight.py +++ b/plotly/validators/histogram/marker/colorbar/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/histogram/marker/line/__init__.py b/plotly/validators/histogram/marker/line/__init__.py index facbe33f88..4ba3ea340b 100644 --- a/plotly/validators/histogram/marker/line/__init__.py +++ b/plotly/validators/histogram/marker/line/__init__.py @@ -1,37 +1,21 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._widthsrc import WidthsrcValidator - from ._width import WidthValidator - from ._reversescale import ReversescaleValidator - from ._colorsrc import ColorsrcValidator - from ._colorscale import ColorscaleValidator - from ._coloraxis import ColoraxisValidator - from ._color import ColorValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/histogram/marker/line/_autocolorscale.py b/plotly/validators/histogram/marker/line/_autocolorscale.py index a147e26524..de694463cb 100644 --- a/plotly/validators/histogram/marker/line/_autocolorscale.py +++ b/plotly/validators/histogram/marker/line/_autocolorscale.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/histogram/marker/line/_cauto.py b/plotly/validators/histogram/marker/line/_cauto.py index d497ce9c42..064b721cb8 100644 --- a/plotly/validators/histogram/marker/line/_cauto.py +++ b/plotly/validators/histogram/marker/line/_cauto.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/histogram/marker/line/_cmax.py b/plotly/validators/histogram/marker/line/_cmax.py index 45edc59ba5..760239a528 100644 --- a/plotly/validators/histogram/marker/line/_cmax.py +++ b/plotly/validators/histogram/marker/line/_cmax.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/histogram/marker/line/_cmid.py b/plotly/validators/histogram/marker/line/_cmid.py index c7b50aedfb..32b81148e3 100644 --- a/plotly/validators/histogram/marker/line/_cmid.py +++ b/plotly/validators/histogram/marker/line/_cmid.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/histogram/marker/line/_cmin.py b/plotly/validators/histogram/marker/line/_cmin.py index 23f42bef4b..24b1cb7948 100644 --- a/plotly/validators/histogram/marker/line/_cmin.py +++ b/plotly/validators/histogram/marker/line/_cmin.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/histogram/marker/line/_color.py b/plotly/validators/histogram/marker/line/_color.py index cf1fc96290..eb5662e917 100644 --- a/plotly/validators/histogram/marker/line/_color.py +++ b/plotly/validators/histogram/marker/line/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), colorscale_path=kwargs.pop( diff --git a/plotly/validators/histogram/marker/line/_coloraxis.py b/plotly/validators/histogram/marker/line/_coloraxis.py index 59beeae23e..ec62e6bd8f 100644 --- a/plotly/validators/histogram/marker/line/_coloraxis.py +++ b/plotly/validators/histogram/marker/line/_coloraxis.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/histogram/marker/line/_colorscale.py b/plotly/validators/histogram/marker/line/_colorscale.py index c87c8a454f..8a2af01ce9 100644 --- a/plotly/validators/histogram/marker/line/_colorscale.py +++ b/plotly/validators/histogram/marker/line/_colorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/histogram/marker/line/_colorsrc.py b/plotly/validators/histogram/marker/line/_colorsrc.py index cde815b6c8..5997f01155 100644 --- a/plotly/validators/histogram/marker/line/_colorsrc.py +++ b/plotly/validators/histogram/marker/line/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/line/_reversescale.py b/plotly/validators/histogram/marker/line/_reversescale.py index 1aeee3928e..ddfbd2a112 100644 --- a/plotly/validators/histogram/marker/line/_reversescale.py +++ b/plotly/validators/histogram/marker/line/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/line/_width.py b/plotly/validators/histogram/marker/line/_width.py index 9c023e3377..63c644d007 100644 --- a/plotly/validators/histogram/marker/line/_width.py +++ b/plotly/validators/histogram/marker/line/_width.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/histogram/marker/line/_widthsrc.py b/plotly/validators/histogram/marker/line/_widthsrc.py index b7adae7fd7..5ab0291d36 100644 --- a/plotly/validators/histogram/marker/line/_widthsrc.py +++ b/plotly/validators/histogram/marker/line/_widthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/pattern/__init__.py b/plotly/validators/histogram/marker/pattern/__init__.py index e190f962c4..e42ccc4d0f 100644 --- a/plotly/validators/histogram/marker/pattern/__init__.py +++ b/plotly/validators/histogram/marker/pattern/__init__.py @@ -1,37 +1,21 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._soliditysrc import SoliditysrcValidator - from ._solidity import SolidityValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shapesrc import ShapesrcValidator - from ._shape import ShapeValidator - from ._fillmode import FillmodeValidator - from ._fgopacity import FgopacityValidator - from ._fgcolorsrc import FgcolorsrcValidator - from ._fgcolor import FgcolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/histogram/marker/pattern/_bgcolor.py b/plotly/validators/histogram/marker/pattern/_bgcolor.py index 010c1f523b..a27efda18f 100644 --- a/plotly/validators/histogram/marker/pattern/_bgcolor.py +++ b/plotly/validators/histogram/marker/pattern/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/histogram/marker/pattern/_bgcolorsrc.py b/plotly/validators/histogram/marker/pattern/_bgcolorsrc.py index c98dada28d..635b32b20f 100644 --- a/plotly/validators/histogram/marker/pattern/_bgcolorsrc.py +++ b/plotly/validators/histogram/marker/pattern/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/pattern/_fgcolor.py b/plotly/validators/histogram/marker/pattern/_fgcolor.py index 2af5dbaf5f..2206e189a2 100644 --- a/plotly/validators/histogram/marker/pattern/_fgcolor.py +++ b/plotly/validators/histogram/marker/pattern/_fgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/histogram/marker/pattern/_fgcolorsrc.py b/plotly/validators/histogram/marker/pattern/_fgcolorsrc.py index 7e83af259c..81b8d28220 100644 --- a/plotly/validators/histogram/marker/pattern/_fgcolorsrc.py +++ b/plotly/validators/histogram/marker/pattern/_fgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/pattern/_fgopacity.py b/plotly/validators/histogram/marker/pattern/_fgopacity.py index 2499e1ca68..619f395bdd 100644 --- a/plotly/validators/histogram/marker/pattern/_fgopacity.py +++ b/plotly/validators/histogram/marker/pattern/_fgopacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FgopacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/histogram/marker/pattern/_fillmode.py b/plotly/validators/histogram/marker/pattern/_fillmode.py index d2cfbd3eb6..7281859f52 100644 --- a/plotly/validators/histogram/marker/pattern/_fillmode.py +++ b/plotly/validators/histogram/marker/pattern/_fillmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["replace", "overlay"]), **kwargs, diff --git a/plotly/validators/histogram/marker/pattern/_shape.py b/plotly/validators/histogram/marker/pattern/_shape.py index aec59060cf..c1bea74565 100644 --- a/plotly/validators/histogram/marker/pattern/_shape.py +++ b/plotly/validators/histogram/marker/pattern/_shape.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["", "/", "\\", "x", "-", "|", "+", "."]), diff --git a/plotly/validators/histogram/marker/pattern/_shapesrc.py b/plotly/validators/histogram/marker/pattern/_shapesrc.py index b495e591de..dd6ca9f787 100644 --- a/plotly/validators/histogram/marker/pattern/_shapesrc.py +++ b/plotly/validators/histogram/marker/pattern/_shapesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShapesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/pattern/_size.py b/plotly/validators/histogram/marker/pattern/_size.py index 014fefb1e2..b7a088b65b 100644 --- a/plotly/validators/histogram/marker/pattern/_size.py +++ b/plotly/validators/histogram/marker/pattern/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/histogram/marker/pattern/_sizesrc.py b/plotly/validators/histogram/marker/pattern/_sizesrc.py index 45cf2b6e67..9dd1ca8cc6 100644 --- a/plotly/validators/histogram/marker/pattern/_sizesrc.py +++ b/plotly/validators/histogram/marker/pattern/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/marker/pattern/_solidity.py b/plotly/validators/histogram/marker/pattern/_solidity.py index 661200abbc..90efa2596a 100644 --- a/plotly/validators/histogram/marker/pattern/_solidity.py +++ b/plotly/validators/histogram/marker/pattern/_solidity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SolidityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), diff --git a/plotly/validators/histogram/marker/pattern/_soliditysrc.py b/plotly/validators/histogram/marker/pattern/_soliditysrc.py index 7834f6a024..1562ca74e4 100644 --- a/plotly/validators/histogram/marker/pattern/_soliditysrc.py +++ b/plotly/validators/histogram/marker/pattern/_soliditysrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SoliditysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram/outsidetextfont/__init__.py b/plotly/validators/histogram/outsidetextfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/histogram/outsidetextfont/__init__.py +++ b/plotly/validators/histogram/outsidetextfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/histogram/outsidetextfont/_color.py b/plotly/validators/histogram/outsidetextfont/_color.py index 64dcf2bf93..bafd9c5b16 100644 --- a/plotly/validators/histogram/outsidetextfont/_color.py +++ b/plotly/validators/histogram/outsidetextfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/histogram/outsidetextfont/_family.py b/plotly/validators/histogram/outsidetextfont/_family.py index 97dd74bb22..331117c920 100644 --- a/plotly/validators/histogram/outsidetextfont/_family.py +++ b/plotly/validators/histogram/outsidetextfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/histogram/outsidetextfont/_lineposition.py b/plotly/validators/histogram/outsidetextfont/_lineposition.py index b812a08038..40f281adf9 100644 --- a/plotly/validators/histogram/outsidetextfont/_lineposition.py +++ b/plotly/validators/histogram/outsidetextfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/histogram/outsidetextfont/_shadow.py b/plotly/validators/histogram/outsidetextfont/_shadow.py index cbbb6ffa1f..026e91c152 100644 --- a/plotly/validators/histogram/outsidetextfont/_shadow.py +++ b/plotly/validators/histogram/outsidetextfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/histogram/outsidetextfont/_size.py b/plotly/validators/histogram/outsidetextfont/_size.py index b3f1ebe370..539d687859 100644 --- a/plotly/validators/histogram/outsidetextfont/_size.py +++ b/plotly/validators/histogram/outsidetextfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/histogram/outsidetextfont/_style.py b/plotly/validators/histogram/outsidetextfont/_style.py index ce5c3d095c..34d8b18bd7 100644 --- a/plotly/validators/histogram/outsidetextfont/_style.py +++ b/plotly/validators/histogram/outsidetextfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/histogram/outsidetextfont/_textcase.py b/plotly/validators/histogram/outsidetextfont/_textcase.py index b7a75a664c..8aed50c321 100644 --- a/plotly/validators/histogram/outsidetextfont/_textcase.py +++ b/plotly/validators/histogram/outsidetextfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/histogram/outsidetextfont/_variant.py b/plotly/validators/histogram/outsidetextfont/_variant.py index 560eb88168..0102766993 100644 --- a/plotly/validators/histogram/outsidetextfont/_variant.py +++ b/plotly/validators/histogram/outsidetextfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/histogram/outsidetextfont/_weight.py b/plotly/validators/histogram/outsidetextfont/_weight.py index efa9f0b80d..f397d1f36a 100644 --- a/plotly/validators/histogram/outsidetextfont/_weight.py +++ b/plotly/validators/histogram/outsidetextfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/histogram/selected/__init__.py b/plotly/validators/histogram/selected/__init__.py index 3b0aeed383..9d2a313b83 100644 --- a/plotly/validators/histogram/selected/__init__.py +++ b/plotly/validators/histogram/selected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] +) diff --git a/plotly/validators/histogram/selected/_marker.py b/plotly/validators/histogram/selected/_marker.py index 8d8dfd38c8..adbb7b3168 100644 --- a/plotly/validators/histogram/selected/_marker.py +++ b/plotly/validators/histogram/selected/_marker.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram/selected/_textfont.py b/plotly/validators/histogram/selected/_textfont.py index bd180f15d6..a4caa9deb6 100644 --- a/plotly/validators/histogram/selected/_textfont.py +++ b/plotly/validators/histogram/selected/_textfont.py @@ -1,19 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram/selected/marker/__init__.py b/plotly/validators/histogram/selected/marker/__init__.py index d8f31347bf..653e572933 100644 --- a/plotly/validators/histogram/selected/marker/__init__.py +++ b/plotly/validators/histogram/selected/marker/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._opacity.OpacityValidator", "._color.ColorValidator"] +) diff --git a/plotly/validators/histogram/selected/marker/_color.py b/plotly/validators/histogram/selected/marker/_color.py index d3c03aacda..a07706094e 100644 --- a/plotly/validators/histogram/selected/marker/_color.py +++ b/plotly/validators/histogram/selected/marker/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/histogram/selected/marker/_opacity.py b/plotly/validators/histogram/selected/marker/_opacity.py index 37fcec0d8d..5a5833846b 100644 --- a/plotly/validators/histogram/selected/marker/_opacity.py +++ b/plotly/validators/histogram/selected/marker/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/histogram/selected/textfont/__init__.py b/plotly/validators/histogram/selected/textfont/__init__.py index a9f087e5af..85a4cc9573 100644 --- a/plotly/validators/histogram/selected/textfont/__init__.py +++ b/plotly/validators/histogram/selected/textfont/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._color.ColorValidator"] +) diff --git a/plotly/validators/histogram/selected/textfont/_color.py b/plotly/validators/histogram/selected/textfont/_color.py index 2cfd81581c..8125986e58 100644 --- a/plotly/validators/histogram/selected/textfont/_color.py +++ b/plotly/validators/histogram/selected/textfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/histogram/stream/__init__.py b/plotly/validators/histogram/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/histogram/stream/__init__.py +++ b/plotly/validators/histogram/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/histogram/stream/_maxpoints.py b/plotly/validators/histogram/stream/_maxpoints.py index c40dfceca8..1071eb9607 100644 --- a/plotly/validators/histogram/stream/_maxpoints.py +++ b/plotly/validators/histogram/stream/_maxpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/histogram/stream/_token.py b/plotly/validators/histogram/stream/_token.py index 4c735675ac..471a806d0b 100644 --- a/plotly/validators/histogram/stream/_token.py +++ b/plotly/validators/histogram/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/histogram/textfont/__init__.py b/plotly/validators/histogram/textfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/histogram/textfont/__init__.py +++ b/plotly/validators/histogram/textfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/histogram/textfont/_color.py b/plotly/validators/histogram/textfont/_color.py index 78a6943e61..7b5b8df815 100644 --- a/plotly/validators/histogram/textfont/_color.py +++ b/plotly/validators/histogram/textfont/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/histogram/textfont/_family.py b/plotly/validators/histogram/textfont/_family.py index 980d11de94..6be54563e7 100644 --- a/plotly/validators/histogram/textfont/_family.py +++ b/plotly/validators/histogram/textfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/histogram/textfont/_lineposition.py b/plotly/validators/histogram/textfont/_lineposition.py index a432cf79f3..0af0da8494 100644 --- a/plotly/validators/histogram/textfont/_lineposition.py +++ b/plotly/validators/histogram/textfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/histogram/textfont/_shadow.py b/plotly/validators/histogram/textfont/_shadow.py index ee99540c46..3cde96716d 100644 --- a/plotly/validators/histogram/textfont/_shadow.py +++ b/plotly/validators/histogram/textfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/histogram/textfont/_size.py b/plotly/validators/histogram/textfont/_size.py index 95f7d44160..877cf2dbe0 100644 --- a/plotly/validators/histogram/textfont/_size.py +++ b/plotly/validators/histogram/textfont/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/histogram/textfont/_style.py b/plotly/validators/histogram/textfont/_style.py index 7ccec71375..0dfeb58efc 100644 --- a/plotly/validators/histogram/textfont/_style.py +++ b/plotly/validators/histogram/textfont/_style.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/histogram/textfont/_textcase.py b/plotly/validators/histogram/textfont/_textcase.py index f9293cacf5..3b607ba365 100644 --- a/plotly/validators/histogram/textfont/_textcase.py +++ b/plotly/validators/histogram/textfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/histogram/textfont/_variant.py b/plotly/validators/histogram/textfont/_variant.py index b036869f1b..8ff6ef7054 100644 --- a/plotly/validators/histogram/textfont/_variant.py +++ b/plotly/validators/histogram/textfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/histogram/textfont/_weight.py b/plotly/validators/histogram/textfont/_weight.py index daebfb1baf..7389722f17 100644 --- a/plotly/validators/histogram/textfont/_weight.py +++ b/plotly/validators/histogram/textfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/histogram/unselected/__init__.py b/plotly/validators/histogram/unselected/__init__.py index 3b0aeed383..9d2a313b83 100644 --- a/plotly/validators/histogram/unselected/__init__.py +++ b/plotly/validators/histogram/unselected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] +) diff --git a/plotly/validators/histogram/unselected/_marker.py b/plotly/validators/histogram/unselected/_marker.py index 6e3faf7c3c..5f916d1c4b 100644 --- a/plotly/validators/histogram/unselected/_marker.py +++ b/plotly/validators/histogram/unselected/_marker.py @@ -1,23 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram/unselected/_textfont.py b/plotly/validators/histogram/unselected/_textfont.py index 26537aacd6..c813b77fce 100644 --- a/plotly/validators/histogram/unselected/_textfont.py +++ b/plotly/validators/histogram/unselected/_textfont.py @@ -1,20 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram/unselected/marker/__init__.py b/plotly/validators/histogram/unselected/marker/__init__.py index d8f31347bf..653e572933 100644 --- a/plotly/validators/histogram/unselected/marker/__init__.py +++ b/plotly/validators/histogram/unselected/marker/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._opacity.OpacityValidator", "._color.ColorValidator"] +) diff --git a/plotly/validators/histogram/unselected/marker/_color.py b/plotly/validators/histogram/unselected/marker/_color.py index 1dfaa9e5ec..d55a9794bf 100644 --- a/plotly/validators/histogram/unselected/marker/_color.py +++ b/plotly/validators/histogram/unselected/marker/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/histogram/unselected/marker/_opacity.py b/plotly/validators/histogram/unselected/marker/_opacity.py index 3e2176bcd2..5241869c43 100644 --- a/plotly/validators/histogram/unselected/marker/_opacity.py +++ b/plotly/validators/histogram/unselected/marker/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/histogram/unselected/textfont/__init__.py b/plotly/validators/histogram/unselected/textfont/__init__.py index a9f087e5af..85a4cc9573 100644 --- a/plotly/validators/histogram/unselected/textfont/__init__.py +++ b/plotly/validators/histogram/unselected/textfont/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._color.ColorValidator"] +) diff --git a/plotly/validators/histogram/unselected/textfont/_color.py b/plotly/validators/histogram/unselected/textfont/_color.py index 3e2c8d1676..5617dd092a 100644 --- a/plotly/validators/histogram/unselected/textfont/_color.py +++ b/plotly/validators/histogram/unselected/textfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/histogram/xbins/__init__.py b/plotly/validators/histogram/xbins/__init__.py index b7d1eaa9fc..462d290b54 100644 --- a/plotly/validators/histogram/xbins/__init__.py +++ b/plotly/validators/histogram/xbins/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._start.StartValidator", "._size.SizeValidator", "._end.EndValidator"], +) diff --git a/plotly/validators/histogram/xbins/_end.py b/plotly/validators/histogram/xbins/_end.py index dc0a8cc6a1..5eb7ede735 100644 --- a/plotly/validators/histogram/xbins/_end.py +++ b/plotly/validators/histogram/xbins/_end.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EndValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram/xbins/_size.py b/plotly/validators/histogram/xbins/_size.py index 4382d51e28..8fd2059da8 100644 --- a/plotly/validators/histogram/xbins/_size.py +++ b/plotly/validators/histogram/xbins/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram/xbins/_start.py b/plotly/validators/histogram/xbins/_start.py index 8092374521..26709d1414 100644 --- a/plotly/validators/histogram/xbins/_start.py +++ b/plotly/validators/histogram/xbins/_start.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StartValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram/ybins/__init__.py b/plotly/validators/histogram/ybins/__init__.py index b7d1eaa9fc..462d290b54 100644 --- a/plotly/validators/histogram/ybins/__init__.py +++ b/plotly/validators/histogram/ybins/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._start.StartValidator", "._size.SizeValidator", "._end.EndValidator"], +) diff --git a/plotly/validators/histogram/ybins/_end.py b/plotly/validators/histogram/ybins/_end.py index d25968beeb..722b77910b 100644 --- a/plotly/validators/histogram/ybins/_end.py +++ b/plotly/validators/histogram/ybins/_end.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EndValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram/ybins/_size.py b/plotly/validators/histogram/ybins/_size.py index 6e27ccf638..79f8a1fb4b 100644 --- a/plotly/validators/histogram/ybins/_size.py +++ b/plotly/validators/histogram/ybins/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram/ybins/_start.py b/plotly/validators/histogram/ybins/_start.py index c84311c5b1..79faebb19a 100644 --- a/plotly/validators/histogram/ybins/_start.py +++ b/plotly/validators/histogram/ybins/_start.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StartValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram2d/__init__.py b/plotly/validators/histogram2d/__init__.py index 8235426b27..89c9072f7c 100644 --- a/plotly/validators/histogram2d/__init__.py +++ b/plotly/validators/histogram2d/__init__.py @@ -1,139 +1,72 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zsrc import ZsrcValidator - from ._zsmooth import ZsmoothValidator - from ._zmin import ZminValidator - from ._zmid import ZmidValidator - from ._zmax import ZmaxValidator - from ._zhoverformat import ZhoverformatValidator - from ._zauto import ZautoValidator - from ._z import ZValidator - from ._ysrc import YsrcValidator - from ._yhoverformat import YhoverformatValidator - from ._ygap import YgapValidator - from ._ycalendar import YcalendarValidator - from ._ybins import YbinsValidator - from ._ybingroup import YbingroupValidator - from ._yaxis import YaxisValidator - from ._y import YValidator - from ._xsrc import XsrcValidator - from ._xhoverformat import XhoverformatValidator - from ._xgap import XgapValidator - from ._xcalendar import XcalendarValidator - from ._xbins import XbinsValidator - from ._xbingroup import XbingroupValidator - from ._xaxis import XaxisValidator - from ._x import XValidator - from ._visible import VisibleValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._texttemplate import TexttemplateValidator - from ._textfont import TextfontValidator - from ._stream import StreamValidator - from ._showscale import ShowscaleValidator - from ._showlegend import ShowlegendValidator - from ._reversescale import ReversescaleValidator - from ._opacity import OpacityValidator - from ._nbinsy import NbinsyValidator - from ._nbinsx import NbinsxValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._marker import MarkerValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._histnorm import HistnormValidator - from ._histfunc import HistfuncValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._bingroup import BingroupValidator - from ._autocolorscale import AutocolorscaleValidator - from ._autobiny import AutobinyValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/histogram2d/_autobinx.py b/plotly/validators/histogram2d/_autobinx.py index cb23f36988..f648197df6 100644 --- a/plotly/validators/histogram2d/_autobinx.py +++ b/plotly/validators/histogram2d/_autobinx.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutobinxValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram2d/_autobiny.py b/plotly/validators/histogram2d/_autobiny.py index 3f27a73c55..d5d4cffba1 100644 --- a/plotly/validators/histogram2d/_autobiny.py +++ b/plotly/validators/histogram2d/_autobiny.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutobinyValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram2d/_autocolorscale.py b/plotly/validators/histogram2d/_autocolorscale.py index 08ce9a1c1c..88c88f685b 100644 --- a/plotly/validators/histogram2d/_autocolorscale.py +++ b/plotly/validators/histogram2d/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/histogram2d/_bingroup.py b/plotly/validators/histogram2d/_bingroup.py index 0f1658fadd..0cc95c246e 100644 --- a/plotly/validators/histogram2d/_bingroup.py +++ b/plotly/validators/histogram2d/_bingroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BingroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram2d/_coloraxis.py b/plotly/validators/histogram2d/_coloraxis.py index 3752d352af..6d86790ccb 100644 --- a/plotly/validators/histogram2d/_coloraxis.py +++ b/plotly/validators/histogram2d/_coloraxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/histogram2d/_colorbar.py b/plotly/validators/histogram2d/_colorbar.py index 34a6015929..a67c891b8f 100644 --- a/plotly/validators/histogram2d/_colorbar.py +++ b/plotly/validators/histogram2d/_colorbar.py @@ -1,279 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram2d/_colorscale.py b/plotly/validators/histogram2d/_colorscale.py index d67e8c17f7..c605fbfc26 100644 --- a/plotly/validators/histogram2d/_colorscale.py +++ b/plotly/validators/histogram2d/_colorscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/histogram2d/_customdata.py b/plotly/validators/histogram2d/_customdata.py index 689d1d6778..5b4f78ae30 100644 --- a/plotly/validators/histogram2d/_customdata.py +++ b/plotly/validators/histogram2d/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram2d/_customdatasrc.py b/plotly/validators/histogram2d/_customdatasrc.py index a4ec9b0e80..2db0fa096c 100644 --- a/plotly/validators/histogram2d/_customdatasrc.py +++ b/plotly/validators/histogram2d/_customdatasrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2d/_histfunc.py b/plotly/validators/histogram2d/_histfunc.py index f1b4fc06ef..aa2dd66a58 100644 --- a/plotly/validators/histogram2d/_histfunc.py +++ b/plotly/validators/histogram2d/_histfunc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HistfuncValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["count", "sum", "avg", "min", "max"]), **kwargs, diff --git a/plotly/validators/histogram2d/_histnorm.py b/plotly/validators/histogram2d/_histnorm.py index 3632922d45..a50987d2a9 100644 --- a/plotly/validators/histogram2d/_histnorm.py +++ b/plotly/validators/histogram2d/_histnorm.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HistnormValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/histogram2d/_hoverinfo.py b/plotly/validators/histogram2d/_hoverinfo.py index d813d25313..dbac30cd6c 100644 --- a/plotly/validators/histogram2d/_hoverinfo.py +++ b/plotly/validators/histogram2d/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/histogram2d/_hoverinfosrc.py b/plotly/validators/histogram2d/_hoverinfosrc.py index 7c93eb9702..1e0110db97 100644 --- a/plotly/validators/histogram2d/_hoverinfosrc.py +++ b/plotly/validators/histogram2d/_hoverinfosrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2d/_hoverlabel.py b/plotly/validators/histogram2d/_hoverlabel.py index 7aa44eec57..de06a6b7c1 100644 --- a/plotly/validators/histogram2d/_hoverlabel.py +++ b/plotly/validators/histogram2d/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram2d/_hovertemplate.py b/plotly/validators/histogram2d/_hovertemplate.py index 6a8dbdbd68..2ae2bc9fee 100644 --- a/plotly/validators/histogram2d/_hovertemplate.py +++ b/plotly/validators/histogram2d/_hovertemplate.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/histogram2d/_hovertemplatesrc.py b/plotly/validators/histogram2d/_hovertemplatesrc.py index 23d374d6f8..81924adef6 100644 --- a/plotly/validators/histogram2d/_hovertemplatesrc.py +++ b/plotly/validators/histogram2d/_hovertemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2d/_ids.py b/plotly/validators/histogram2d/_ids.py index 6731217d87..6199659722 100644 --- a/plotly/validators/histogram2d/_ids.py +++ b/plotly/validators/histogram2d/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram2d/_idssrc.py b/plotly/validators/histogram2d/_idssrc.py index 544a46eda9..67cd477630 100644 --- a/plotly/validators/histogram2d/_idssrc.py +++ b/plotly/validators/histogram2d/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2d/_legend.py b/plotly/validators/histogram2d/_legend.py index cfdc64740e..b9e980c9a1 100644 --- a/plotly/validators/histogram2d/_legend.py +++ b/plotly/validators/histogram2d/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/histogram2d/_legendgroup.py b/plotly/validators/histogram2d/_legendgroup.py index fa13e39d6f..91a287a4a5 100644 --- a/plotly/validators/histogram2d/_legendgroup.py +++ b/plotly/validators/histogram2d/_legendgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/histogram2d/_legendgrouptitle.py b/plotly/validators/histogram2d/_legendgrouptitle.py index cfb798fac0..66966717cb 100644 --- a/plotly/validators/histogram2d/_legendgrouptitle.py +++ b/plotly/validators/histogram2d/_legendgrouptitle.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram2d/_legendrank.py b/plotly/validators/histogram2d/_legendrank.py index 0d6edf3a03..9fe265a5e7 100644 --- a/plotly/validators/histogram2d/_legendrank.py +++ b/plotly/validators/histogram2d/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/histogram2d/_legendwidth.py b/plotly/validators/histogram2d/_legendwidth.py index a130cb3840..66639ca05a 100644 --- a/plotly/validators/histogram2d/_legendwidth.py +++ b/plotly/validators/histogram2d/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram2d/_marker.py b/plotly/validators/histogram2d/_marker.py index d900e420cd..fc7a598270 100644 --- a/plotly/validators/histogram2d/_marker.py +++ b/plotly/validators/histogram2d/_marker.py @@ -1,20 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram2d/_meta.py b/plotly/validators/histogram2d/_meta.py index e33212ed3c..408ce5b39f 100644 --- a/plotly/validators/histogram2d/_meta.py +++ b/plotly/validators/histogram2d/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/histogram2d/_metasrc.py b/plotly/validators/histogram2d/_metasrc.py index 7607c3094d..03082a2cbd 100644 --- a/plotly/validators/histogram2d/_metasrc.py +++ b/plotly/validators/histogram2d/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2d/_name.py b/plotly/validators/histogram2d/_name.py index b29010853f..6f97fe90ed 100644 --- a/plotly/validators/histogram2d/_name.py +++ b/plotly/validators/histogram2d/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/histogram2d/_nbinsx.py b/plotly/validators/histogram2d/_nbinsx.py index a3f712e272..7420c943f4 100644 --- a/plotly/validators/histogram2d/_nbinsx.py +++ b/plotly/validators/histogram2d/_nbinsx.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NbinsxValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram2d/_nbinsy.py b/plotly/validators/histogram2d/_nbinsy.py index 4fc5eb4110..ea374f0741 100644 --- a/plotly/validators/histogram2d/_nbinsy.py +++ b/plotly/validators/histogram2d/_nbinsy.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NbinsyValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram2d/_opacity.py b/plotly/validators/histogram2d/_opacity.py index ec0df2d930..f6df137f57 100644 --- a/plotly/validators/histogram2d/_opacity.py +++ b/plotly/validators/histogram2d/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/histogram2d/_reversescale.py b/plotly/validators/histogram2d/_reversescale.py index 728062aa28..e8258555a1 100644 --- a/plotly/validators/histogram2d/_reversescale.py +++ b/plotly/validators/histogram2d/_reversescale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/histogram2d/_showlegend.py b/plotly/validators/histogram2d/_showlegend.py index 3739c82b2d..144eb02885 100644 --- a/plotly/validators/histogram2d/_showlegend.py +++ b/plotly/validators/histogram2d/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/histogram2d/_showscale.py b/plotly/validators/histogram2d/_showscale.py index ea737065f4..785f25178e 100644 --- a/plotly/validators/histogram2d/_showscale.py +++ b/plotly/validators/histogram2d/_showscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram2d/_stream.py b/plotly/validators/histogram2d/_stream.py index b5039d2d23..2d8be8e01f 100644 --- a/plotly/validators/histogram2d/_stream.py +++ b/plotly/validators/histogram2d/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram2d/_textfont.py b/plotly/validators/histogram2d/_textfont.py index 12df3e7e3c..f908a836de 100644 --- a/plotly/validators/histogram2d/_textfont.py +++ b/plotly/validators/histogram2d/_textfont.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/histogram2d/_texttemplate.py b/plotly/validators/histogram2d/_texttemplate.py index 838ce48564..af23d2cce7 100644 --- a/plotly/validators/histogram2d/_texttemplate.py +++ b/plotly/validators/histogram2d/_texttemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/histogram2d/_uid.py b/plotly/validators/histogram2d/_uid.py index cd718774ec..5ebaccb066 100644 --- a/plotly/validators/histogram2d/_uid.py +++ b/plotly/validators/histogram2d/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/histogram2d/_uirevision.py b/plotly/validators/histogram2d/_uirevision.py index b44559694c..34f87f1616 100644 --- a/plotly/validators/histogram2d/_uirevision.py +++ b/plotly/validators/histogram2d/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2d/_visible.py b/plotly/validators/histogram2d/_visible.py index 9bd7327491..c3d8b99fd4 100644 --- a/plotly/validators/histogram2d/_visible.py +++ b/plotly/validators/histogram2d/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/histogram2d/_x.py b/plotly/validators/histogram2d/_x.py index bb41a430d0..f9ec1cb6eb 100644 --- a/plotly/validators/histogram2d/_x.py +++ b/plotly/validators/histogram2d/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/histogram2d/_xaxis.py b/plotly/validators/histogram2d/_xaxis.py index e7b2913f63..93064526a1 100644 --- a/plotly/validators/histogram2d/_xaxis.py +++ b/plotly/validators/histogram2d/_xaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "x"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/histogram2d/_xbingroup.py b/plotly/validators/histogram2d/_xbingroup.py index bcd1ac76dc..50c5d5b6ec 100644 --- a/plotly/validators/histogram2d/_xbingroup.py +++ b/plotly/validators/histogram2d/_xbingroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XbingroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram2d/_xbins.py b/plotly/validators/histogram2d/_xbins.py index 6af103be43..99168acc20 100644 --- a/plotly/validators/histogram2d/_xbins.py +++ b/plotly/validators/histogram2d/_xbins.py @@ -1,49 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XbinsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram2d/_xcalendar.py b/plotly/validators/histogram2d/_xcalendar.py index 9e3688906b..875bb2394c 100644 --- a/plotly/validators/histogram2d/_xcalendar.py +++ b/plotly/validators/histogram2d/_xcalendar.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/histogram2d/_xgap.py b/plotly/validators/histogram2d/_xgap.py index 7b0306c629..2298bd6067 100644 --- a/plotly/validators/histogram2d/_xgap.py +++ b/plotly/validators/histogram2d/_xgap.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XgapValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram2d/_xhoverformat.py b/plotly/validators/histogram2d/_xhoverformat.py index 798a436176..cfdf28cecc 100644 --- a/plotly/validators/histogram2d/_xhoverformat.py +++ b/plotly/validators/histogram2d/_xhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2d/_xsrc.py b/plotly/validators/histogram2d/_xsrc.py index 4b4d090f3a..8b2706d77c 100644 --- a/plotly/validators/histogram2d/_xsrc.py +++ b/plotly/validators/histogram2d/_xsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2d/_y.py b/plotly/validators/histogram2d/_y.py index 9fe7b86034..c112762f96 100644 --- a/plotly/validators/histogram2d/_y.py +++ b/plotly/validators/histogram2d/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/histogram2d/_yaxis.py b/plotly/validators/histogram2d/_yaxis.py index f4d10f22b3..449e6e69de 100644 --- a/plotly/validators/histogram2d/_yaxis.py +++ b/plotly/validators/histogram2d/_yaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "y"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/histogram2d/_ybingroup.py b/plotly/validators/histogram2d/_ybingroup.py index 0c6a9ccdb0..d528b88806 100644 --- a/plotly/validators/histogram2d/_ybingroup.py +++ b/plotly/validators/histogram2d/_ybingroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YbingroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram2d/_ybins.py b/plotly/validators/histogram2d/_ybins.py index bae9002224..8fc1a18c42 100644 --- a/plotly/validators/histogram2d/_ybins.py +++ b/plotly/validators/histogram2d/_ybins.py @@ -1,49 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YbinsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram2d/_ycalendar.py b/plotly/validators/histogram2d/_ycalendar.py index 8a84822bc4..dce4eabf49 100644 --- a/plotly/validators/histogram2d/_ycalendar.py +++ b/plotly/validators/histogram2d/_ycalendar.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/histogram2d/_ygap.py b/plotly/validators/histogram2d/_ygap.py index ffea1ce013..dbfed1cb1c 100644 --- a/plotly/validators/histogram2d/_ygap.py +++ b/plotly/validators/histogram2d/_ygap.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YgapValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram2d/_yhoverformat.py b/plotly/validators/histogram2d/_yhoverformat.py index 0b98b1b848..14a78e770e 100644 --- a/plotly/validators/histogram2d/_yhoverformat.py +++ b/plotly/validators/histogram2d/_yhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2d/_ysrc.py b/plotly/validators/histogram2d/_ysrc.py index 7ef42b4cd7..7ae2864883 100644 --- a/plotly/validators/histogram2d/_ysrc.py +++ b/plotly/validators/histogram2d/_ysrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2d/_z.py b/plotly/validators/histogram2d/_z.py index 678ab9b59e..1a529fc176 100644 --- a/plotly/validators/histogram2d/_z.py +++ b/plotly/validators/histogram2d/_z.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram2d/_zauto.py b/plotly/validators/histogram2d/_zauto.py index 80d5c0216e..5521f8cfbe 100644 --- a/plotly/validators/histogram2d/_zauto.py +++ b/plotly/validators/histogram2d/_zauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/histogram2d/_zhoverformat.py b/plotly/validators/histogram2d/_zhoverformat.py index abd76b38c5..60c86cf562 100644 --- a/plotly/validators/histogram2d/_zhoverformat.py +++ b/plotly/validators/histogram2d/_zhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2d/_zmax.py b/plotly/validators/histogram2d/_zmax.py index ca7a15d814..d5712a42fc 100644 --- a/plotly/validators/histogram2d/_zmax.py +++ b/plotly/validators/histogram2d/_zmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"zauto": False}), **kwargs, diff --git a/plotly/validators/histogram2d/_zmid.py b/plotly/validators/histogram2d/_zmid.py index 81ff840dd3..7e6ee35ff9 100644 --- a/plotly/validators/histogram2d/_zmid.py +++ b/plotly/validators/histogram2d/_zmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/histogram2d/_zmin.py b/plotly/validators/histogram2d/_zmin.py index 371b3b061d..b4acf888f6 100644 --- a/plotly/validators/histogram2d/_zmin.py +++ b/plotly/validators/histogram2d/_zmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"zauto": False}), **kwargs, diff --git a/plotly/validators/histogram2d/_zsmooth.py b/plotly/validators/histogram2d/_zsmooth.py index 8e14e722c9..bcfee08655 100644 --- a/plotly/validators/histogram2d/_zsmooth.py +++ b/plotly/validators/histogram2d/_zsmooth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZsmoothValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["fast", "best", False]), **kwargs, diff --git a/plotly/validators/histogram2d/_zsrc.py b/plotly/validators/histogram2d/_zsrc.py index 3a0287d50e..92af60a638 100644 --- a/plotly/validators/histogram2d/_zsrc.py +++ b/plotly/validators/histogram2d/_zsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2d/colorbar/__init__.py b/plotly/validators/histogram2d/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/histogram2d/colorbar/__init__.py +++ b/plotly/validators/histogram2d/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/histogram2d/colorbar/_bgcolor.py b/plotly/validators/histogram2d/colorbar/_bgcolor.py index f0a87bb376..d3a97c3389 100644 --- a/plotly/validators/histogram2d/colorbar/_bgcolor.py +++ b/plotly/validators/histogram2d/colorbar/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2d/colorbar/_bordercolor.py b/plotly/validators/histogram2d/colorbar/_bordercolor.py index 9a31968347..089fcb135f 100644 --- a/plotly/validators/histogram2d/colorbar/_bordercolor.py +++ b/plotly/validators/histogram2d/colorbar/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2d/colorbar/_borderwidth.py b/plotly/validators/histogram2d/colorbar/_borderwidth.py index e084d1c396..b39faa7983 100644 --- a/plotly/validators/histogram2d/colorbar/_borderwidth.py +++ b/plotly/validators/histogram2d/colorbar/_borderwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram2d/colorbar/_dtick.py b/plotly/validators/histogram2d/colorbar/_dtick.py index fb54153501..6fe0aade2f 100644 --- a/plotly/validators/histogram2d/colorbar/_dtick.py +++ b/plotly/validators/histogram2d/colorbar/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/histogram2d/colorbar/_exponentformat.py b/plotly/validators/histogram2d/colorbar/_exponentformat.py index 5910c6b714..c6ef2c947c 100644 --- a/plotly/validators/histogram2d/colorbar/_exponentformat.py +++ b/plotly/validators/histogram2d/colorbar/_exponentformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/histogram2d/colorbar/_labelalias.py b/plotly/validators/histogram2d/colorbar/_labelalias.py index 05d6167f3a..6cdce4c01e 100644 --- a/plotly/validators/histogram2d/colorbar/_labelalias.py +++ b/plotly/validators/histogram2d/colorbar/_labelalias.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2d/colorbar/_len.py b/plotly/validators/histogram2d/colorbar/_len.py index 8474837c98..8864276e43 100644 --- a/plotly/validators/histogram2d/colorbar/_len.py +++ b/plotly/validators/histogram2d/colorbar/_len.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram2d/colorbar/_lenmode.py b/plotly/validators/histogram2d/colorbar/_lenmode.py index feb41d9a41..a7b739ae69 100644 --- a/plotly/validators/histogram2d/colorbar/_lenmode.py +++ b/plotly/validators/histogram2d/colorbar/_lenmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/histogram2d/colorbar/_minexponent.py b/plotly/validators/histogram2d/colorbar/_minexponent.py index 5fe6201e4c..bd664a1ed1 100644 --- a/plotly/validators/histogram2d/colorbar/_minexponent.py +++ b/plotly/validators/histogram2d/colorbar/_minexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram2d/colorbar/_nticks.py b/plotly/validators/histogram2d/colorbar/_nticks.py index 0623df6811..28a10ad0f0 100644 --- a/plotly/validators/histogram2d/colorbar/_nticks.py +++ b/plotly/validators/histogram2d/colorbar/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram2d/colorbar/_orientation.py b/plotly/validators/histogram2d/colorbar/_orientation.py index 513cf705f8..dc10c6cb09 100644 --- a/plotly/validators/histogram2d/colorbar/_orientation.py +++ b/plotly/validators/histogram2d/colorbar/_orientation.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/histogram2d/colorbar/_outlinecolor.py b/plotly/validators/histogram2d/colorbar/_outlinecolor.py index 998ba3f3c1..768d68e81a 100644 --- a/plotly/validators/histogram2d/colorbar/_outlinecolor.py +++ b/plotly/validators/histogram2d/colorbar/_outlinecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2d/colorbar/_outlinewidth.py b/plotly/validators/histogram2d/colorbar/_outlinewidth.py index f25a3af09b..4d0df8135f 100644 --- a/plotly/validators/histogram2d/colorbar/_outlinewidth.py +++ b/plotly/validators/histogram2d/colorbar/_outlinewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram2d/colorbar/_separatethousands.py b/plotly/validators/histogram2d/colorbar/_separatethousands.py index 2047d92a70..332795a045 100644 --- a/plotly/validators/histogram2d/colorbar/_separatethousands.py +++ b/plotly/validators/histogram2d/colorbar/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2d/colorbar/_showexponent.py b/plotly/validators/histogram2d/colorbar/_showexponent.py index e79cdc4635..6ba18de144 100644 --- a/plotly/validators/histogram2d/colorbar/_showexponent.py +++ b/plotly/validators/histogram2d/colorbar/_showexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/histogram2d/colorbar/_showticklabels.py b/plotly/validators/histogram2d/colorbar/_showticklabels.py index 001fd9e6e5..f888045a4d 100644 --- a/plotly/validators/histogram2d/colorbar/_showticklabels.py +++ b/plotly/validators/histogram2d/colorbar/_showticklabels.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2d/colorbar/_showtickprefix.py b/plotly/validators/histogram2d/colorbar/_showtickprefix.py index 632202293b..01fcf6d9cf 100644 --- a/plotly/validators/histogram2d/colorbar/_showtickprefix.py +++ b/plotly/validators/histogram2d/colorbar/_showtickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/histogram2d/colorbar/_showticksuffix.py b/plotly/validators/histogram2d/colorbar/_showticksuffix.py index a207879994..81558dff64 100644 --- a/plotly/validators/histogram2d/colorbar/_showticksuffix.py +++ b/plotly/validators/histogram2d/colorbar/_showticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/histogram2d/colorbar/_thickness.py b/plotly/validators/histogram2d/colorbar/_thickness.py index a05feaf35d..494478173e 100644 --- a/plotly/validators/histogram2d/colorbar/_thickness.py +++ b/plotly/validators/histogram2d/colorbar/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram2d/colorbar/_thicknessmode.py b/plotly/validators/histogram2d/colorbar/_thicknessmode.py index 6fe782ed79..07901563ea 100644 --- a/plotly/validators/histogram2d/colorbar/_thicknessmode.py +++ b/plotly/validators/histogram2d/colorbar/_thicknessmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/histogram2d/colorbar/_tick0.py b/plotly/validators/histogram2d/colorbar/_tick0.py index eb35bd6adb..a295292fa2 100644 --- a/plotly/validators/histogram2d/colorbar/_tick0.py +++ b/plotly/validators/histogram2d/colorbar/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/histogram2d/colorbar/_tickangle.py b/plotly/validators/histogram2d/colorbar/_tickangle.py index 7885371d7d..bca4297fc8 100644 --- a/plotly/validators/histogram2d/colorbar/_tickangle.py +++ b/plotly/validators/histogram2d/colorbar/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2d/colorbar/_tickcolor.py b/plotly/validators/histogram2d/colorbar/_tickcolor.py index 66d7df27ae..e525d64c51 100644 --- a/plotly/validators/histogram2d/colorbar/_tickcolor.py +++ b/plotly/validators/histogram2d/colorbar/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2d/colorbar/_tickfont.py b/plotly/validators/histogram2d/colorbar/_tickfont.py index e83e136d26..4b585f42a5 100644 --- a/plotly/validators/histogram2d/colorbar/_tickfont.py +++ b/plotly/validators/histogram2d/colorbar/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/histogram2d/colorbar/_tickformat.py b/plotly/validators/histogram2d/colorbar/_tickformat.py index 5e8f328001..6cecf936e5 100644 --- a/plotly/validators/histogram2d/colorbar/_tickformat.py +++ b/plotly/validators/histogram2d/colorbar/_tickformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2d/colorbar/_tickformatstopdefaults.py b/plotly/validators/histogram2d/colorbar/_tickformatstopdefaults.py index 791798e180..6d7f31d5d8 100644 --- a/plotly/validators/histogram2d/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/histogram2d/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/histogram2d/colorbar/_tickformatstops.py b/plotly/validators/histogram2d/colorbar/_tickformatstops.py index 89aaad2f9b..b80bbc3d09 100644 --- a/plotly/validators/histogram2d/colorbar/_tickformatstops.py +++ b/plotly/validators/histogram2d/colorbar/_tickformatstops.py @@ -1,53 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram2d/colorbar/_ticklabeloverflow.py b/plotly/validators/histogram2d/colorbar/_ticklabeloverflow.py index 59bf93ad10..ca29776e09 100644 --- a/plotly/validators/histogram2d/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/histogram2d/colorbar/_ticklabeloverflow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/histogram2d/colorbar/_ticklabelposition.py b/plotly/validators/histogram2d/colorbar/_ticklabelposition.py index 8d2ea9f8a8..957459f155 100644 --- a/plotly/validators/histogram2d/colorbar/_ticklabelposition.py +++ b/plotly/validators/histogram2d/colorbar/_ticklabelposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/histogram2d/colorbar/_ticklabelstep.py b/plotly/validators/histogram2d/colorbar/_ticklabelstep.py index 330bd84512..0faeda31d8 100644 --- a/plotly/validators/histogram2d/colorbar/_ticklabelstep.py +++ b/plotly/validators/histogram2d/colorbar/_ticklabelstep.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/histogram2d/colorbar/_ticklen.py b/plotly/validators/histogram2d/colorbar/_ticklen.py index 9786c95877..919378930f 100644 --- a/plotly/validators/histogram2d/colorbar/_ticklen.py +++ b/plotly/validators/histogram2d/colorbar/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram2d/colorbar/_tickmode.py b/plotly/validators/histogram2d/colorbar/_tickmode.py index d116c1319e..d1adf76229 100644 --- a/plotly/validators/histogram2d/colorbar/_tickmode.py +++ b/plotly/validators/histogram2d/colorbar/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/histogram2d/colorbar/_tickprefix.py b/plotly/validators/histogram2d/colorbar/_tickprefix.py index 050dcf8084..d47184eaa4 100644 --- a/plotly/validators/histogram2d/colorbar/_tickprefix.py +++ b/plotly/validators/histogram2d/colorbar/_tickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2d/colorbar/_ticks.py b/plotly/validators/histogram2d/colorbar/_ticks.py index a1a8190078..ae7c16c557 100644 --- a/plotly/validators/histogram2d/colorbar/_ticks.py +++ b/plotly/validators/histogram2d/colorbar/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/histogram2d/colorbar/_ticksuffix.py b/plotly/validators/histogram2d/colorbar/_ticksuffix.py index ec5d26c8bd..137c3d84a2 100644 --- a/plotly/validators/histogram2d/colorbar/_ticksuffix.py +++ b/plotly/validators/histogram2d/colorbar/_ticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2d/colorbar/_ticktext.py b/plotly/validators/histogram2d/colorbar/_ticktext.py index 32ab9761b2..8756c28452 100644 --- a/plotly/validators/histogram2d/colorbar/_ticktext.py +++ b/plotly/validators/histogram2d/colorbar/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2d/colorbar/_ticktextsrc.py b/plotly/validators/histogram2d/colorbar/_ticktextsrc.py index f8887ea4aa..d0bc33a215 100644 --- a/plotly/validators/histogram2d/colorbar/_ticktextsrc.py +++ b/plotly/validators/histogram2d/colorbar/_ticktextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2d/colorbar/_tickvals.py b/plotly/validators/histogram2d/colorbar/_tickvals.py index 4e2cd510c0..eb2e4ecaab 100644 --- a/plotly/validators/histogram2d/colorbar/_tickvals.py +++ b/plotly/validators/histogram2d/colorbar/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2d/colorbar/_tickvalssrc.py b/plotly/validators/histogram2d/colorbar/_tickvalssrc.py index 5ebc3da408..25fa75f013 100644 --- a/plotly/validators/histogram2d/colorbar/_tickvalssrc.py +++ b/plotly/validators/histogram2d/colorbar/_tickvalssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2d/colorbar/_tickwidth.py b/plotly/validators/histogram2d/colorbar/_tickwidth.py index c9e036cab3..132f0fc148 100644 --- a/plotly/validators/histogram2d/colorbar/_tickwidth.py +++ b/plotly/validators/histogram2d/colorbar/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram2d/colorbar/_title.py b/plotly/validators/histogram2d/colorbar/_title.py index 60b9de3668..62c700801d 100644 --- a/plotly/validators/histogram2d/colorbar/_title.py +++ b/plotly/validators/histogram2d/colorbar/_title.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram2d/colorbar/_x.py b/plotly/validators/histogram2d/colorbar/_x.py index 6997c4cc6a..59d4a40be8 100644 --- a/plotly/validators/histogram2d/colorbar/_x.py +++ b/plotly/validators/histogram2d/colorbar/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2d/colorbar/_xanchor.py b/plotly/validators/histogram2d/colorbar/_xanchor.py index a3044f64e9..0b50353fbe 100644 --- a/plotly/validators/histogram2d/colorbar/_xanchor.py +++ b/plotly/validators/histogram2d/colorbar/_xanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/histogram2d/colorbar/_xpad.py b/plotly/validators/histogram2d/colorbar/_xpad.py index 85a63d94eb..013c934632 100644 --- a/plotly/validators/histogram2d/colorbar/_xpad.py +++ b/plotly/validators/histogram2d/colorbar/_xpad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram2d/colorbar/_xref.py b/plotly/validators/histogram2d/colorbar/_xref.py index f4b00e2659..af86908e68 100644 --- a/plotly/validators/histogram2d/colorbar/_xref.py +++ b/plotly/validators/histogram2d/colorbar/_xref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/histogram2d/colorbar/_y.py b/plotly/validators/histogram2d/colorbar/_y.py index 83a13511fc..bdd93a97bc 100644 --- a/plotly/validators/histogram2d/colorbar/_y.py +++ b/plotly/validators/histogram2d/colorbar/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2d/colorbar/_yanchor.py b/plotly/validators/histogram2d/colorbar/_yanchor.py index 5cbf00a785..4774f10c81 100644 --- a/plotly/validators/histogram2d/colorbar/_yanchor.py +++ b/plotly/validators/histogram2d/colorbar/_yanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/histogram2d/colorbar/_ypad.py b/plotly/validators/histogram2d/colorbar/_ypad.py index 8a9a5f4dd0..db432919e0 100644 --- a/plotly/validators/histogram2d/colorbar/_ypad.py +++ b/plotly/validators/histogram2d/colorbar/_ypad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram2d/colorbar/_yref.py b/plotly/validators/histogram2d/colorbar/_yref.py index aee34ed34a..b200d7562a 100644 --- a/plotly/validators/histogram2d/colorbar/_yref.py +++ b/plotly/validators/histogram2d/colorbar/_yref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/histogram2d/colorbar/tickfont/__init__.py b/plotly/validators/histogram2d/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/histogram2d/colorbar/tickfont/__init__.py +++ b/plotly/validators/histogram2d/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/histogram2d/colorbar/tickfont/_color.py b/plotly/validators/histogram2d/colorbar/tickfont/_color.py index d4a7790167..df8f30a348 100644 --- a/plotly/validators/histogram2d/colorbar/tickfont/_color.py +++ b/plotly/validators/histogram2d/colorbar/tickfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2d/colorbar/tickfont/_family.py b/plotly/validators/histogram2d/colorbar/tickfont/_family.py index 5b1269e5b6..512f08a2c6 100644 --- a/plotly/validators/histogram2d/colorbar/tickfont/_family.py +++ b/plotly/validators/histogram2d/colorbar/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/histogram2d/colorbar/tickfont/_lineposition.py b/plotly/validators/histogram2d/colorbar/tickfont/_lineposition.py index 73530d2f30..13204132e2 100644 --- a/plotly/validators/histogram2d/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/histogram2d/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/histogram2d/colorbar/tickfont/_shadow.py b/plotly/validators/histogram2d/colorbar/tickfont/_shadow.py index 5b542881e0..6c7b3ac60f 100644 --- a/plotly/validators/histogram2d/colorbar/tickfont/_shadow.py +++ b/plotly/validators/histogram2d/colorbar/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2d/colorbar/tickfont/_size.py b/plotly/validators/histogram2d/colorbar/tickfont/_size.py index e483a9c3c0..8072edc222 100644 --- a/plotly/validators/histogram2d/colorbar/tickfont/_size.py +++ b/plotly/validators/histogram2d/colorbar/tickfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/histogram2d/colorbar/tickfont/_style.py b/plotly/validators/histogram2d/colorbar/tickfont/_style.py index 4d90d50cee..70a0fd59ad 100644 --- a/plotly/validators/histogram2d/colorbar/tickfont/_style.py +++ b/plotly/validators/histogram2d/colorbar/tickfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/histogram2d/colorbar/tickfont/_textcase.py b/plotly/validators/histogram2d/colorbar/tickfont/_textcase.py index 94db851dad..349cd27e1f 100644 --- a/plotly/validators/histogram2d/colorbar/tickfont/_textcase.py +++ b/plotly/validators/histogram2d/colorbar/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/histogram2d/colorbar/tickfont/_variant.py b/plotly/validators/histogram2d/colorbar/tickfont/_variant.py index 0aa0295739..9c58f6e0cc 100644 --- a/plotly/validators/histogram2d/colorbar/tickfont/_variant.py +++ b/plotly/validators/histogram2d/colorbar/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/histogram2d/colorbar/tickfont/_weight.py b/plotly/validators/histogram2d/colorbar/tickfont/_weight.py index 5fed68a4ea..aa0eaaf6e4 100644 --- a/plotly/validators/histogram2d/colorbar/tickfont/_weight.py +++ b/plotly/validators/histogram2d/colorbar/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/histogram2d/colorbar/tickformatstop/__init__.py b/plotly/validators/histogram2d/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/histogram2d/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/histogram2d/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/histogram2d/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/histogram2d/colorbar/tickformatstop/_dtickrange.py index ec76e80138..badf6de262 100644 --- a/plotly/validators/histogram2d/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/histogram2d/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( "items", diff --git a/plotly/validators/histogram2d/colorbar/tickformatstop/_enabled.py b/plotly/validators/histogram2d/colorbar/tickformatstop/_enabled.py index ed777afe61..b33cca3538 100644 --- a/plotly/validators/histogram2d/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/histogram2d/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2d/colorbar/tickformatstop/_name.py b/plotly/validators/histogram2d/colorbar/tickformatstop/_name.py index 150140d81a..006454c75e 100644 --- a/plotly/validators/histogram2d/colorbar/tickformatstop/_name.py +++ b/plotly/validators/histogram2d/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2d/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/histogram2d/colorbar/tickformatstop/_templateitemname.py index cd6bccc85a..8ff6dda1a0 100644 --- a/plotly/validators/histogram2d/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/histogram2d/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2d/colorbar/tickformatstop/_value.py b/plotly/validators/histogram2d/colorbar/tickformatstop/_value.py index 5467103171..4fcdc4c48f 100644 --- a/plotly/validators/histogram2d/colorbar/tickformatstop/_value.py +++ b/plotly/validators/histogram2d/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2d/colorbar/title/__init__.py b/plotly/validators/histogram2d/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/histogram2d/colorbar/title/__init__.py +++ b/plotly/validators/histogram2d/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/histogram2d/colorbar/title/_font.py b/plotly/validators/histogram2d/colorbar/title/_font.py index 9e572b5c29..addbd5c00c 100644 --- a/plotly/validators/histogram2d/colorbar/title/_font.py +++ b/plotly/validators/histogram2d/colorbar/title/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/histogram2d/colorbar/title/_side.py b/plotly/validators/histogram2d/colorbar/title/_side.py index 0fdd651d8f..61d3a1a440 100644 --- a/plotly/validators/histogram2d/colorbar/title/_side.py +++ b/plotly/validators/histogram2d/colorbar/title/_side.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/histogram2d/colorbar/title/_text.py b/plotly/validators/histogram2d/colorbar/title/_text.py index bb38d04089..e69fd30561 100644 --- a/plotly/validators/histogram2d/colorbar/title/_text.py +++ b/plotly/validators/histogram2d/colorbar/title/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2d/colorbar/title/font/__init__.py b/plotly/validators/histogram2d/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/histogram2d/colorbar/title/font/__init__.py +++ b/plotly/validators/histogram2d/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/histogram2d/colorbar/title/font/_color.py b/plotly/validators/histogram2d/colorbar/title/font/_color.py index adbf815045..29e7f46bed 100644 --- a/plotly/validators/histogram2d/colorbar/title/font/_color.py +++ b/plotly/validators/histogram2d/colorbar/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2d/colorbar/title/font/_family.py b/plotly/validators/histogram2d/colorbar/title/font/_family.py index 481e734cdf..5198b13667 100644 --- a/plotly/validators/histogram2d/colorbar/title/font/_family.py +++ b/plotly/validators/histogram2d/colorbar/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/histogram2d/colorbar/title/font/_lineposition.py b/plotly/validators/histogram2d/colorbar/title/font/_lineposition.py index 51c77bf485..42879d720d 100644 --- a/plotly/validators/histogram2d/colorbar/title/font/_lineposition.py +++ b/plotly/validators/histogram2d/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/histogram2d/colorbar/title/font/_shadow.py b/plotly/validators/histogram2d/colorbar/title/font/_shadow.py index 9c02f88f5f..17327ab8d3 100644 --- a/plotly/validators/histogram2d/colorbar/title/font/_shadow.py +++ b/plotly/validators/histogram2d/colorbar/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2d/colorbar/title/font/_size.py b/plotly/validators/histogram2d/colorbar/title/font/_size.py index f3b8f096aa..c86b149f73 100644 --- a/plotly/validators/histogram2d/colorbar/title/font/_size.py +++ b/plotly/validators/histogram2d/colorbar/title/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/histogram2d/colorbar/title/font/_style.py b/plotly/validators/histogram2d/colorbar/title/font/_style.py index 485df62c2d..62f97dd53d 100644 --- a/plotly/validators/histogram2d/colorbar/title/font/_style.py +++ b/plotly/validators/histogram2d/colorbar/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/histogram2d/colorbar/title/font/_textcase.py b/plotly/validators/histogram2d/colorbar/title/font/_textcase.py index aa8a93e54b..49f61d18ec 100644 --- a/plotly/validators/histogram2d/colorbar/title/font/_textcase.py +++ b/plotly/validators/histogram2d/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/histogram2d/colorbar/title/font/_variant.py b/plotly/validators/histogram2d/colorbar/title/font/_variant.py index e43caa77b5..1aca58a8b6 100644 --- a/plotly/validators/histogram2d/colorbar/title/font/_variant.py +++ b/plotly/validators/histogram2d/colorbar/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/histogram2d/colorbar/title/font/_weight.py b/plotly/validators/histogram2d/colorbar/title/font/_weight.py index cd0be71d83..0f51896bc3 100644 --- a/plotly/validators/histogram2d/colorbar/title/font/_weight.py +++ b/plotly/validators/histogram2d/colorbar/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/histogram2d/hoverlabel/__init__.py b/plotly/validators/histogram2d/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/histogram2d/hoverlabel/__init__.py +++ b/plotly/validators/histogram2d/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/histogram2d/hoverlabel/_align.py b/plotly/validators/histogram2d/hoverlabel/_align.py index 0835eae278..fbb795997a 100644 --- a/plotly/validators/histogram2d/hoverlabel/_align.py +++ b/plotly/validators/histogram2d/hoverlabel/_align.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/histogram2d/hoverlabel/_alignsrc.py b/plotly/validators/histogram2d/hoverlabel/_alignsrc.py index 620c000a03..b0dfa6c3ae 100644 --- a/plotly/validators/histogram2d/hoverlabel/_alignsrc.py +++ b/plotly/validators/histogram2d/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2d/hoverlabel/_bgcolor.py b/plotly/validators/histogram2d/hoverlabel/_bgcolor.py index 650fc7feed..954ad054c0 100644 --- a/plotly/validators/histogram2d/hoverlabel/_bgcolor.py +++ b/plotly/validators/histogram2d/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/histogram2d/hoverlabel/_bgcolorsrc.py b/plotly/validators/histogram2d/hoverlabel/_bgcolorsrc.py index ba1968736b..acda64f247 100644 --- a/plotly/validators/histogram2d/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/histogram2d/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2d/hoverlabel/_bordercolor.py b/plotly/validators/histogram2d/hoverlabel/_bordercolor.py index 61a7bf3569..9786fb35de 100644 --- a/plotly/validators/histogram2d/hoverlabel/_bordercolor.py +++ b/plotly/validators/histogram2d/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/histogram2d/hoverlabel/_bordercolorsrc.py b/plotly/validators/histogram2d/hoverlabel/_bordercolorsrc.py index a50f207aaa..ca2c3cc4f0 100644 --- a/plotly/validators/histogram2d/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/histogram2d/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2d/hoverlabel/_font.py b/plotly/validators/histogram2d/hoverlabel/_font.py index 3884343668..94a38266af 100644 --- a/plotly/validators/histogram2d/hoverlabel/_font.py +++ b/plotly/validators/histogram2d/hoverlabel/_font.py @@ -1,87 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/histogram2d/hoverlabel/_namelength.py b/plotly/validators/histogram2d/hoverlabel/_namelength.py index 594f84bdba..96f91c4a4e 100644 --- a/plotly/validators/histogram2d/hoverlabel/_namelength.py +++ b/plotly/validators/histogram2d/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/histogram2d/hoverlabel/_namelengthsrc.py b/plotly/validators/histogram2d/hoverlabel/_namelengthsrc.py index 34a7377c21..3a22601614 100644 --- a/plotly/validators/histogram2d/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/histogram2d/hoverlabel/_namelengthsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2d/hoverlabel/font/__init__.py b/plotly/validators/histogram2d/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/histogram2d/hoverlabel/font/__init__.py +++ b/plotly/validators/histogram2d/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/histogram2d/hoverlabel/font/_color.py b/plotly/validators/histogram2d/hoverlabel/font/_color.py index 949acd6434..5f1db51d91 100644 --- a/plotly/validators/histogram2d/hoverlabel/font/_color.py +++ b/plotly/validators/histogram2d/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/histogram2d/hoverlabel/font/_colorsrc.py b/plotly/validators/histogram2d/hoverlabel/font/_colorsrc.py index a0445246e5..25e9ae9e33 100644 --- a/plotly/validators/histogram2d/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/histogram2d/hoverlabel/font/_colorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2d/hoverlabel/font/_family.py b/plotly/validators/histogram2d/hoverlabel/font/_family.py index e6fbf3edd3..49e75407a5 100644 --- a/plotly/validators/histogram2d/hoverlabel/font/_family.py +++ b/plotly/validators/histogram2d/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/histogram2d/hoverlabel/font/_familysrc.py b/plotly/validators/histogram2d/hoverlabel/font/_familysrc.py index b46dbb18d0..69c4377220 100644 --- a/plotly/validators/histogram2d/hoverlabel/font/_familysrc.py +++ b/plotly/validators/histogram2d/hoverlabel/font/_familysrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2d/hoverlabel/font/_lineposition.py b/plotly/validators/histogram2d/hoverlabel/font/_lineposition.py index d5034992c5..97a39a2e81 100644 --- a/plotly/validators/histogram2d/hoverlabel/font/_lineposition.py +++ b/plotly/validators/histogram2d/hoverlabel/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/histogram2d/hoverlabel/font/_linepositionsrc.py b/plotly/validators/histogram2d/hoverlabel/font/_linepositionsrc.py index 2770f28d01..a0ad3f6f67 100644 --- a/plotly/validators/histogram2d/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/histogram2d/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2d/hoverlabel/font/_shadow.py b/plotly/validators/histogram2d/hoverlabel/font/_shadow.py index 0367d9e6ef..f34e7691da 100644 --- a/plotly/validators/histogram2d/hoverlabel/font/_shadow.py +++ b/plotly/validators/histogram2d/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/histogram2d/hoverlabel/font/_shadowsrc.py b/plotly/validators/histogram2d/hoverlabel/font/_shadowsrc.py index e740248f25..46f489fc96 100644 --- a/plotly/validators/histogram2d/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/histogram2d/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2d/hoverlabel/font/_size.py b/plotly/validators/histogram2d/hoverlabel/font/_size.py index e0a8fa850c..426f861a84 100644 --- a/plotly/validators/histogram2d/hoverlabel/font/_size.py +++ b/plotly/validators/histogram2d/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/histogram2d/hoverlabel/font/_sizesrc.py b/plotly/validators/histogram2d/hoverlabel/font/_sizesrc.py index 8b0e39b5f8..f18ded98f0 100644 --- a/plotly/validators/histogram2d/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/histogram2d/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2d/hoverlabel/font/_style.py b/plotly/validators/histogram2d/hoverlabel/font/_style.py index 90547f9481..8025f0978d 100644 --- a/plotly/validators/histogram2d/hoverlabel/font/_style.py +++ b/plotly/validators/histogram2d/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/histogram2d/hoverlabel/font/_stylesrc.py b/plotly/validators/histogram2d/hoverlabel/font/_stylesrc.py index 965271a064..b6d391677c 100644 --- a/plotly/validators/histogram2d/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/histogram2d/hoverlabel/font/_stylesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2d/hoverlabel/font/_textcase.py b/plotly/validators/histogram2d/hoverlabel/font/_textcase.py index aa12cfca73..4b74d27c18 100644 --- a/plotly/validators/histogram2d/hoverlabel/font/_textcase.py +++ b/plotly/validators/histogram2d/hoverlabel/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/histogram2d/hoverlabel/font/_textcasesrc.py b/plotly/validators/histogram2d/hoverlabel/font/_textcasesrc.py index c21e171941..2b71c3b0aa 100644 --- a/plotly/validators/histogram2d/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/histogram2d/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2d/hoverlabel/font/_variant.py b/plotly/validators/histogram2d/hoverlabel/font/_variant.py index 55113c70da..3163acbf24 100644 --- a/plotly/validators/histogram2d/hoverlabel/font/_variant.py +++ b/plotly/validators/histogram2d/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/histogram2d/hoverlabel/font/_variantsrc.py b/plotly/validators/histogram2d/hoverlabel/font/_variantsrc.py index ba586fd334..c2ba321000 100644 --- a/plotly/validators/histogram2d/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/histogram2d/hoverlabel/font/_variantsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2d/hoverlabel/font/_weight.py b/plotly/validators/histogram2d/hoverlabel/font/_weight.py index 304bc0c101..bd1e090333 100644 --- a/plotly/validators/histogram2d/hoverlabel/font/_weight.py +++ b/plotly/validators/histogram2d/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/histogram2d/hoverlabel/font/_weightsrc.py b/plotly/validators/histogram2d/hoverlabel/font/_weightsrc.py index 914b417288..a1e1e44282 100644 --- a/plotly/validators/histogram2d/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/histogram2d/hoverlabel/font/_weightsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2d/legendgrouptitle/__init__.py b/plotly/validators/histogram2d/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/histogram2d/legendgrouptitle/__init__.py +++ b/plotly/validators/histogram2d/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/histogram2d/legendgrouptitle/_font.py b/plotly/validators/histogram2d/legendgrouptitle/_font.py index 0119c5dff9..7ccbfb41a0 100644 --- a/plotly/validators/histogram2d/legendgrouptitle/_font.py +++ b/plotly/validators/histogram2d/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/histogram2d/legendgrouptitle/_text.py b/plotly/validators/histogram2d/legendgrouptitle/_text.py index 3bcdcf9222..e557f272f3 100644 --- a/plotly/validators/histogram2d/legendgrouptitle/_text.py +++ b/plotly/validators/histogram2d/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/histogram2d/legendgrouptitle/font/__init__.py b/plotly/validators/histogram2d/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/histogram2d/legendgrouptitle/font/__init__.py +++ b/plotly/validators/histogram2d/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/histogram2d/legendgrouptitle/font/_color.py b/plotly/validators/histogram2d/legendgrouptitle/font/_color.py index 34facbaac6..5a4f8ce73c 100644 --- a/plotly/validators/histogram2d/legendgrouptitle/font/_color.py +++ b/plotly/validators/histogram2d/legendgrouptitle/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/histogram2d/legendgrouptitle/font/_family.py b/plotly/validators/histogram2d/legendgrouptitle/font/_family.py index 5ca4464998..283fcd975f 100644 --- a/plotly/validators/histogram2d/legendgrouptitle/font/_family.py +++ b/plotly/validators/histogram2d/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/histogram2d/legendgrouptitle/font/_lineposition.py b/plotly/validators/histogram2d/legendgrouptitle/font/_lineposition.py index 4f1a2196f3..c6330cba77 100644 --- a/plotly/validators/histogram2d/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/histogram2d/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/histogram2d/legendgrouptitle/font/_shadow.py b/plotly/validators/histogram2d/legendgrouptitle/font/_shadow.py index 10174afeb6..8a88076388 100644 --- a/plotly/validators/histogram2d/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/histogram2d/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/histogram2d/legendgrouptitle/font/_size.py b/plotly/validators/histogram2d/legendgrouptitle/font/_size.py index 774cb6d524..b7369d1f4a 100644 --- a/plotly/validators/histogram2d/legendgrouptitle/font/_size.py +++ b/plotly/validators/histogram2d/legendgrouptitle/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/histogram2d/legendgrouptitle/font/_style.py b/plotly/validators/histogram2d/legendgrouptitle/font/_style.py index b9629b6daf..1219c7b62c 100644 --- a/plotly/validators/histogram2d/legendgrouptitle/font/_style.py +++ b/plotly/validators/histogram2d/legendgrouptitle/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/histogram2d/legendgrouptitle/font/_textcase.py b/plotly/validators/histogram2d/legendgrouptitle/font/_textcase.py index c8f17735c8..068e6b251d 100644 --- a/plotly/validators/histogram2d/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/histogram2d/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/histogram2d/legendgrouptitle/font/_variant.py b/plotly/validators/histogram2d/legendgrouptitle/font/_variant.py index 990ff2b944..e147238e8f 100644 --- a/plotly/validators/histogram2d/legendgrouptitle/font/_variant.py +++ b/plotly/validators/histogram2d/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/histogram2d/legendgrouptitle/font/_weight.py b/plotly/validators/histogram2d/legendgrouptitle/font/_weight.py index 73d70e10a2..5753c46876 100644 --- a/plotly/validators/histogram2d/legendgrouptitle/font/_weight.py +++ b/plotly/validators/histogram2d/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/histogram2d/marker/__init__.py b/plotly/validators/histogram2d/marker/__init__.py index 4ca11d9882..8cd95cefa3 100644 --- a/plotly/validators/histogram2d/marker/__init__.py +++ b/plotly/validators/histogram2d/marker/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._colorsrc.ColorsrcValidator", "._color.ColorValidator"] +) diff --git a/plotly/validators/histogram2d/marker/_color.py b/plotly/validators/histogram2d/marker/_color.py index 5912f433b1..a4d24db290 100644 --- a/plotly/validators/histogram2d/marker/_color.py +++ b/plotly/validators/histogram2d/marker/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram2d/marker/_colorsrc.py b/plotly/validators/histogram2d/marker/_colorsrc.py index fce4f02357..609d0d6407 100644 --- a/plotly/validators/histogram2d/marker/_colorsrc.py +++ b/plotly/validators/histogram2d/marker/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2d/stream/__init__.py b/plotly/validators/histogram2d/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/histogram2d/stream/__init__.py +++ b/plotly/validators/histogram2d/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/histogram2d/stream/_maxpoints.py b/plotly/validators/histogram2d/stream/_maxpoints.py index 6c0c9bbdb2..6e4e83f3ee 100644 --- a/plotly/validators/histogram2d/stream/_maxpoints.py +++ b/plotly/validators/histogram2d/stream/_maxpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/histogram2d/stream/_token.py b/plotly/validators/histogram2d/stream/_token.py index 122e606bdd..16dd46423a 100644 --- a/plotly/validators/histogram2d/stream/_token.py +++ b/plotly/validators/histogram2d/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/histogram2d/textfont/__init__.py b/plotly/validators/histogram2d/textfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/histogram2d/textfont/__init__.py +++ b/plotly/validators/histogram2d/textfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/histogram2d/textfont/_color.py b/plotly/validators/histogram2d/textfont/_color.py index c2aadc151c..e75ca9e85f 100644 --- a/plotly/validators/histogram2d/textfont/_color.py +++ b/plotly/validators/histogram2d/textfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/histogram2d/textfont/_family.py b/plotly/validators/histogram2d/textfont/_family.py index 9bb8d6ec15..fd7cd8b8cc 100644 --- a/plotly/validators/histogram2d/textfont/_family.py +++ b/plotly/validators/histogram2d/textfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/histogram2d/textfont/_lineposition.py b/plotly/validators/histogram2d/textfont/_lineposition.py index a0e31c3608..7b51bce0e2 100644 --- a/plotly/validators/histogram2d/textfont/_lineposition.py +++ b/plotly/validators/histogram2d/textfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/histogram2d/textfont/_shadow.py b/plotly/validators/histogram2d/textfont/_shadow.py index 52ccc00399..56a5d5826b 100644 --- a/plotly/validators/histogram2d/textfont/_shadow.py +++ b/plotly/validators/histogram2d/textfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/histogram2d/textfont/_size.py b/plotly/validators/histogram2d/textfont/_size.py index 0de77110ee..15a68e68ea 100644 --- a/plotly/validators/histogram2d/textfont/_size.py +++ b/plotly/validators/histogram2d/textfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/histogram2d/textfont/_style.py b/plotly/validators/histogram2d/textfont/_style.py index 346b6e65df..a56a7e9e26 100644 --- a/plotly/validators/histogram2d/textfont/_style.py +++ b/plotly/validators/histogram2d/textfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/histogram2d/textfont/_textcase.py b/plotly/validators/histogram2d/textfont/_textcase.py index 50a8c7ff98..0e693e3eac 100644 --- a/plotly/validators/histogram2d/textfont/_textcase.py +++ b/plotly/validators/histogram2d/textfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/histogram2d/textfont/_variant.py b/plotly/validators/histogram2d/textfont/_variant.py index 77ccf67cf6..864cc93c00 100644 --- a/plotly/validators/histogram2d/textfont/_variant.py +++ b/plotly/validators/histogram2d/textfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/histogram2d/textfont/_weight.py b/plotly/validators/histogram2d/textfont/_weight.py index 0a0d42d59d..9a8d2fa0dc 100644 --- a/plotly/validators/histogram2d/textfont/_weight.py +++ b/plotly/validators/histogram2d/textfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/histogram2d/xbins/__init__.py b/plotly/validators/histogram2d/xbins/__init__.py index b7d1eaa9fc..462d290b54 100644 --- a/plotly/validators/histogram2d/xbins/__init__.py +++ b/plotly/validators/histogram2d/xbins/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._start.StartValidator", "._size.SizeValidator", "._end.EndValidator"], +) diff --git a/plotly/validators/histogram2d/xbins/_end.py b/plotly/validators/histogram2d/xbins/_end.py index 3605572890..34def5472e 100644 --- a/plotly/validators/histogram2d/xbins/_end.py +++ b/plotly/validators/histogram2d/xbins/_end.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EndValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram2d/xbins/_size.py b/plotly/validators/histogram2d/xbins/_size.py index f6cbc59839..b796a38785 100644 --- a/plotly/validators/histogram2d/xbins/_size.py +++ b/plotly/validators/histogram2d/xbins/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram2d/xbins/_start.py b/plotly/validators/histogram2d/xbins/_start.py index f28c3c4400..b7ef748073 100644 --- a/plotly/validators/histogram2d/xbins/_start.py +++ b/plotly/validators/histogram2d/xbins/_start.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StartValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram2d/ybins/__init__.py b/plotly/validators/histogram2d/ybins/__init__.py index b7d1eaa9fc..462d290b54 100644 --- a/plotly/validators/histogram2d/ybins/__init__.py +++ b/plotly/validators/histogram2d/ybins/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._start.StartValidator", "._size.SizeValidator", "._end.EndValidator"], +) diff --git a/plotly/validators/histogram2d/ybins/_end.py b/plotly/validators/histogram2d/ybins/_end.py index 5cdbc09981..d5b4563670 100644 --- a/plotly/validators/histogram2d/ybins/_end.py +++ b/plotly/validators/histogram2d/ybins/_end.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EndValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram2d/ybins/_size.py b/plotly/validators/histogram2d/ybins/_size.py index a3dcf7de19..71aeae5953 100644 --- a/plotly/validators/histogram2d/ybins/_size.py +++ b/plotly/validators/histogram2d/ybins/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram2d/ybins/_start.py b/plotly/validators/histogram2d/ybins/_start.py index 8d89ed43b9..1418eb4062 100644 --- a/plotly/validators/histogram2d/ybins/_start.py +++ b/plotly/validators/histogram2d/ybins/_start.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StartValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/__init__.py b/plotly/validators/histogram2dcontour/__init__.py index 7d1e7b3dee..8baa4429cb 100644 --- a/plotly/validators/histogram2dcontour/__init__.py +++ b/plotly/validators/histogram2dcontour/__init__.py @@ -1,141 +1,73 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zsrc import ZsrcValidator - from ._zmin import ZminValidator - from ._zmid import ZmidValidator - from ._zmax import ZmaxValidator - from ._zhoverformat import ZhoverformatValidator - from ._zauto import ZautoValidator - from ._z import ZValidator - from ._ysrc import YsrcValidator - from ._yhoverformat import YhoverformatValidator - from ._ycalendar import YcalendarValidator - from ._ybins import YbinsValidator - from ._ybingroup import YbingroupValidator - from ._yaxis import YaxisValidator - from ._y import YValidator - from ._xsrc import XsrcValidator - from ._xhoverformat import XhoverformatValidator - from ._xcalendar import XcalendarValidator - from ._xbins import XbinsValidator - from ._xbingroup import XbingroupValidator - from ._xaxis import XaxisValidator - from ._x import XValidator - from ._visible import VisibleValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._texttemplate import TexttemplateValidator - from ._textfont import TextfontValidator - from ._stream import StreamValidator - from ._showscale import ShowscaleValidator - from ._showlegend import ShowlegendValidator - from ._reversescale import ReversescaleValidator - from ._opacity import OpacityValidator - from ._ncontours import NcontoursValidator - from ._nbinsy import NbinsyValidator - from ._nbinsx import NbinsxValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._marker import MarkerValidator - from ._line import LineValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._histnorm import HistnormValidator - from ._histfunc import HistfuncValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._contours import ContoursValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._bingroup import BingroupValidator - from ._autocontour import AutocontourValidator - from ._autocolorscale import AutocolorscaleValidator - from ._autobiny import AutobinyValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/histogram2dcontour/_autobinx.py b/plotly/validators/histogram2dcontour/_autobinx.py index 3eb7e8c70c..b18d09cf41 100644 --- a/plotly/validators/histogram2dcontour/_autobinx.py +++ b/plotly/validators/histogram2dcontour/_autobinx.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutobinxValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/_autobiny.py b/plotly/validators/histogram2dcontour/_autobiny.py index 0cd0b782c8..b345948b6b 100644 --- a/plotly/validators/histogram2dcontour/_autobiny.py +++ b/plotly/validators/histogram2dcontour/_autobiny.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutobinyValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/_autocolorscale.py b/plotly/validators/histogram2dcontour/_autocolorscale.py index 49797c9838..87fd1ffb91 100644 --- a/plotly/validators/histogram2dcontour/_autocolorscale.py +++ b/plotly/validators/histogram2dcontour/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/histogram2dcontour/_autocontour.py b/plotly/validators/histogram2dcontour/_autocontour.py index 7ce84ff074..8801013f47 100644 --- a/plotly/validators/histogram2dcontour/_autocontour.py +++ b/plotly/validators/histogram2dcontour/_autocontour.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocontourValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/histogram2dcontour/_bingroup.py b/plotly/validators/histogram2dcontour/_bingroup.py index a4fc8cdd40..a153e0b683 100644 --- a/plotly/validators/histogram2dcontour/_bingroup.py +++ b/plotly/validators/histogram2dcontour/_bingroup.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BingroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/_coloraxis.py b/plotly/validators/histogram2dcontour/_coloraxis.py index 584ea1bf72..01a5b483e8 100644 --- a/plotly/validators/histogram2dcontour/_coloraxis.py +++ b/plotly/validators/histogram2dcontour/_coloraxis.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/histogram2dcontour/_colorbar.py b/plotly/validators/histogram2dcontour/_colorbar.py index 06cb9d61f0..5e7967f532 100644 --- a/plotly/validators/histogram2dcontour/_colorbar.py +++ b/plotly/validators/histogram2dcontour/_colorbar.py @@ -1,281 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram2dcontour/_colorscale.py b/plotly/validators/histogram2dcontour/_colorscale.py index a8409d4415..679aa52c41 100644 --- a/plotly/validators/histogram2dcontour/_colorscale.py +++ b/plotly/validators/histogram2dcontour/_colorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/histogram2dcontour/_contours.py b/plotly/validators/histogram2dcontour/_contours.py index 1182263d56..cb80ebb489 100644 --- a/plotly/validators/histogram2dcontour/_contours.py +++ b/plotly/validators/histogram2dcontour/_contours.py @@ -1,80 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ContoursValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram2dcontour/_customdata.py b/plotly/validators/histogram2dcontour/_customdata.py index 4960619ec5..6d1c7139bc 100644 --- a/plotly/validators/histogram2dcontour/_customdata.py +++ b/plotly/validators/histogram2dcontour/_customdata.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/_customdatasrc.py b/plotly/validators/histogram2dcontour/_customdatasrc.py index 065f9e3d26..af702b5966 100644 --- a/plotly/validators/histogram2dcontour/_customdatasrc.py +++ b/plotly/validators/histogram2dcontour/_customdatasrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/_histfunc.py b/plotly/validators/histogram2dcontour/_histfunc.py index 3d75e617db..0bed1f4e32 100644 --- a/plotly/validators/histogram2dcontour/_histfunc.py +++ b/plotly/validators/histogram2dcontour/_histfunc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HistfuncValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["count", "sum", "avg", "min", "max"]), **kwargs, diff --git a/plotly/validators/histogram2dcontour/_histnorm.py b/plotly/validators/histogram2dcontour/_histnorm.py index 4df5894945..3bac7d412e 100644 --- a/plotly/validators/histogram2dcontour/_histnorm.py +++ b/plotly/validators/histogram2dcontour/_histnorm.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HistnormValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/histogram2dcontour/_hoverinfo.py b/plotly/validators/histogram2dcontour/_hoverinfo.py index ff85609cde..8c7849d1fb 100644 --- a/plotly/validators/histogram2dcontour/_hoverinfo.py +++ b/plotly/validators/histogram2dcontour/_hoverinfo.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/histogram2dcontour/_hoverinfosrc.py b/plotly/validators/histogram2dcontour/_hoverinfosrc.py index 1fcc9b7ec5..703cbe53da 100644 --- a/plotly/validators/histogram2dcontour/_hoverinfosrc.py +++ b/plotly/validators/histogram2dcontour/_hoverinfosrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/_hoverlabel.py b/plotly/validators/histogram2dcontour/_hoverlabel.py index fb82b0af8d..9d31111a91 100644 --- a/plotly/validators/histogram2dcontour/_hoverlabel.py +++ b/plotly/validators/histogram2dcontour/_hoverlabel.py @@ -1,52 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram2dcontour/_hovertemplate.py b/plotly/validators/histogram2dcontour/_hovertemplate.py index 15af4c56a9..89b0e746dd 100644 --- a/plotly/validators/histogram2dcontour/_hovertemplate.py +++ b/plotly/validators/histogram2dcontour/_hovertemplate.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/histogram2dcontour/_hovertemplatesrc.py b/plotly/validators/histogram2dcontour/_hovertemplatesrc.py index 9c734b0c6a..ce6aa479a2 100644 --- a/plotly/validators/histogram2dcontour/_hovertemplatesrc.py +++ b/plotly/validators/histogram2dcontour/_hovertemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/_ids.py b/plotly/validators/histogram2dcontour/_ids.py index 23e73984eb..cfa1d2a6e7 100644 --- a/plotly/validators/histogram2dcontour/_ids.py +++ b/plotly/validators/histogram2dcontour/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/_idssrc.py b/plotly/validators/histogram2dcontour/_idssrc.py index bf8aa52876..6c5fb3cd39 100644 --- a/plotly/validators/histogram2dcontour/_idssrc.py +++ b/plotly/validators/histogram2dcontour/_idssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/_legend.py b/plotly/validators/histogram2dcontour/_legend.py index 1e1f9f1a92..235d87b0c3 100644 --- a/plotly/validators/histogram2dcontour/_legend.py +++ b/plotly/validators/histogram2dcontour/_legend.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/histogram2dcontour/_legendgroup.py b/plotly/validators/histogram2dcontour/_legendgroup.py index 63f68f7cac..88ace1850a 100644 --- a/plotly/validators/histogram2dcontour/_legendgroup.py +++ b/plotly/validators/histogram2dcontour/_legendgroup.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/_legendgrouptitle.py b/plotly/validators/histogram2dcontour/_legendgrouptitle.py index 81c5dfe8ba..c6a1a17dff 100644 --- a/plotly/validators/histogram2dcontour/_legendgrouptitle.py +++ b/plotly/validators/histogram2dcontour/_legendgrouptitle.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram2dcontour/_legendrank.py b/plotly/validators/histogram2dcontour/_legendrank.py index 801f392245..66224a9ba8 100644 --- a/plotly/validators/histogram2dcontour/_legendrank.py +++ b/plotly/validators/histogram2dcontour/_legendrank.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/_legendwidth.py b/plotly/validators/histogram2dcontour/_legendwidth.py index 0b2bf6d04f..dc37e882d0 100644 --- a/plotly/validators/histogram2dcontour/_legendwidth.py +++ b/plotly/validators/histogram2dcontour/_legendwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram2dcontour/_line.py b/plotly/validators/histogram2dcontour/_line.py index ad9153df48..1d589ca049 100644 --- a/plotly/validators/histogram2dcontour/_line.py +++ b/plotly/validators/histogram2dcontour/_line.py @@ -1,29 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram2dcontour/_marker.py b/plotly/validators/histogram2dcontour/_marker.py index 7c9d8312ce..4a5cb98b68 100644 --- a/plotly/validators/histogram2dcontour/_marker.py +++ b/plotly/validators/histogram2dcontour/_marker.py @@ -1,22 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram2dcontour/_meta.py b/plotly/validators/histogram2dcontour/_meta.py index c938e355c4..79ebae767d 100644 --- a/plotly/validators/histogram2dcontour/_meta.py +++ b/plotly/validators/histogram2dcontour/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/histogram2dcontour/_metasrc.py b/plotly/validators/histogram2dcontour/_metasrc.py index 88747de24f..b8302c0d23 100644 --- a/plotly/validators/histogram2dcontour/_metasrc.py +++ b/plotly/validators/histogram2dcontour/_metasrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/_name.py b/plotly/validators/histogram2dcontour/_name.py index 0398fb9a97..bbd44e61d8 100644 --- a/plotly/validators/histogram2dcontour/_name.py +++ b/plotly/validators/histogram2dcontour/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/_nbinsx.py b/plotly/validators/histogram2dcontour/_nbinsx.py index 7543e2e3af..5d94e64698 100644 --- a/plotly/validators/histogram2dcontour/_nbinsx.py +++ b/plotly/validators/histogram2dcontour/_nbinsx.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NbinsxValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram2dcontour/_nbinsy.py b/plotly/validators/histogram2dcontour/_nbinsy.py index 4a75c91929..8dd5748344 100644 --- a/plotly/validators/histogram2dcontour/_nbinsy.py +++ b/plotly/validators/histogram2dcontour/_nbinsy.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NbinsyValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram2dcontour/_ncontours.py b/plotly/validators/histogram2dcontour/_ncontours.py index c2fcbcb96f..819b1ab4f7 100644 --- a/plotly/validators/histogram2dcontour/_ncontours.py +++ b/plotly/validators/histogram2dcontour/_ncontours.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NcontoursValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/histogram2dcontour/_opacity.py b/plotly/validators/histogram2dcontour/_opacity.py index 6fbda555b7..29bcd61bd1 100644 --- a/plotly/validators/histogram2dcontour/_opacity.py +++ b/plotly/validators/histogram2dcontour/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/histogram2dcontour/_reversescale.py b/plotly/validators/histogram2dcontour/_reversescale.py index 655af2a40c..4a324579c8 100644 --- a/plotly/validators/histogram2dcontour/_reversescale.py +++ b/plotly/validators/histogram2dcontour/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/_showlegend.py b/plotly/validators/histogram2dcontour/_showlegend.py index 069834617d..b967e84d40 100644 --- a/plotly/validators/histogram2dcontour/_showlegend.py +++ b/plotly/validators/histogram2dcontour/_showlegend.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/_showscale.py b/plotly/validators/histogram2dcontour/_showscale.py index 2293e698c1..608ab8d54c 100644 --- a/plotly/validators/histogram2dcontour/_showscale.py +++ b/plotly/validators/histogram2dcontour/_showscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/_stream.py b/plotly/validators/histogram2dcontour/_stream.py index b2dd891e9d..ffb5b68970 100644 --- a/plotly/validators/histogram2dcontour/_stream.py +++ b/plotly/validators/histogram2dcontour/_stream.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram2dcontour/_textfont.py b/plotly/validators/histogram2dcontour/_textfont.py index bce613f760..c98033119f 100644 --- a/plotly/validators/histogram2dcontour/_textfont.py +++ b/plotly/validators/histogram2dcontour/_textfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/histogram2dcontour/_texttemplate.py b/plotly/validators/histogram2dcontour/_texttemplate.py index 08ef0f1ae6..83dc2d897e 100644 --- a/plotly/validators/histogram2dcontour/_texttemplate.py +++ b/plotly/validators/histogram2dcontour/_texttemplate.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/_uid.py b/plotly/validators/histogram2dcontour/_uid.py index 495927bbdb..56e2962e01 100644 --- a/plotly/validators/histogram2dcontour/_uid.py +++ b/plotly/validators/histogram2dcontour/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/_uirevision.py b/plotly/validators/histogram2dcontour/_uirevision.py index 670b293b95..1273e4b21a 100644 --- a/plotly/validators/histogram2dcontour/_uirevision.py +++ b/plotly/validators/histogram2dcontour/_uirevision.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/_visible.py b/plotly/validators/histogram2dcontour/_visible.py index d90e6689b0..86632294ba 100644 --- a/plotly/validators/histogram2dcontour/_visible.py +++ b/plotly/validators/histogram2dcontour/_visible.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/histogram2dcontour/_x.py b/plotly/validators/histogram2dcontour/_x.py index af2872c3fb..2f9df1cdfc 100644 --- a/plotly/validators/histogram2dcontour/_x.py +++ b/plotly/validators/histogram2dcontour/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/_xaxis.py b/plotly/validators/histogram2dcontour/_xaxis.py index f56b2a51f8..b4f931a2c3 100644 --- a/plotly/validators/histogram2dcontour/_xaxis.py +++ b/plotly/validators/histogram2dcontour/_xaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "x"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/histogram2dcontour/_xbingroup.py b/plotly/validators/histogram2dcontour/_xbingroup.py index 94c501db71..ac301768b0 100644 --- a/plotly/validators/histogram2dcontour/_xbingroup.py +++ b/plotly/validators/histogram2dcontour/_xbingroup.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XbingroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/_xbins.py b/plotly/validators/histogram2dcontour/_xbins.py index 7745097a82..995ed4ca7f 100644 --- a/plotly/validators/histogram2dcontour/_xbins.py +++ b/plotly/validators/histogram2dcontour/_xbins.py @@ -1,49 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XbinsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram2dcontour/_xcalendar.py b/plotly/validators/histogram2dcontour/_xcalendar.py index 5e273c2bf1..92ecc98c70 100644 --- a/plotly/validators/histogram2dcontour/_xcalendar.py +++ b/plotly/validators/histogram2dcontour/_xcalendar.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/histogram2dcontour/_xhoverformat.py b/plotly/validators/histogram2dcontour/_xhoverformat.py index 2cb01c0ae3..4173c22641 100644 --- a/plotly/validators/histogram2dcontour/_xhoverformat.py +++ b/plotly/validators/histogram2dcontour/_xhoverformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/_xsrc.py b/plotly/validators/histogram2dcontour/_xsrc.py index 806ffccc40..4040d6a98e 100644 --- a/plotly/validators/histogram2dcontour/_xsrc.py +++ b/plotly/validators/histogram2dcontour/_xsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/_y.py b/plotly/validators/histogram2dcontour/_y.py index 50b838aa1a..761dfe23a7 100644 --- a/plotly/validators/histogram2dcontour/_y.py +++ b/plotly/validators/histogram2dcontour/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/_yaxis.py b/plotly/validators/histogram2dcontour/_yaxis.py index 7dd3160141..bc111cc0d2 100644 --- a/plotly/validators/histogram2dcontour/_yaxis.py +++ b/plotly/validators/histogram2dcontour/_yaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "y"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/histogram2dcontour/_ybingroup.py b/plotly/validators/histogram2dcontour/_ybingroup.py index fed45d3b54..883faf7d2c 100644 --- a/plotly/validators/histogram2dcontour/_ybingroup.py +++ b/plotly/validators/histogram2dcontour/_ybingroup.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YbingroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/_ybins.py b/plotly/validators/histogram2dcontour/_ybins.py index 1a02fe93c7..9e794ec63e 100644 --- a/plotly/validators/histogram2dcontour/_ybins.py +++ b/plotly/validators/histogram2dcontour/_ybins.py @@ -1,49 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YbinsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram2dcontour/_ycalendar.py b/plotly/validators/histogram2dcontour/_ycalendar.py index 9996d5695a..c6569432a9 100644 --- a/plotly/validators/histogram2dcontour/_ycalendar.py +++ b/plotly/validators/histogram2dcontour/_ycalendar.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/histogram2dcontour/_yhoverformat.py b/plotly/validators/histogram2dcontour/_yhoverformat.py index 67112495ab..e1d625e422 100644 --- a/plotly/validators/histogram2dcontour/_yhoverformat.py +++ b/plotly/validators/histogram2dcontour/_yhoverformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/_ysrc.py b/plotly/validators/histogram2dcontour/_ysrc.py index 9fcdc8fae1..33cf4dffde 100644 --- a/plotly/validators/histogram2dcontour/_ysrc.py +++ b/plotly/validators/histogram2dcontour/_ysrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/_z.py b/plotly/validators/histogram2dcontour/_z.py index 3a41d18a49..7f75150be2 100644 --- a/plotly/validators/histogram2dcontour/_z.py +++ b/plotly/validators/histogram2dcontour/_z.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/_zauto.py b/plotly/validators/histogram2dcontour/_zauto.py index 8fda664394..8881b6ac9d 100644 --- a/plotly/validators/histogram2dcontour/_zauto.py +++ b/plotly/validators/histogram2dcontour/_zauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/histogram2dcontour/_zhoverformat.py b/plotly/validators/histogram2dcontour/_zhoverformat.py index 6b3d8adfc6..9a76581cab 100644 --- a/plotly/validators/histogram2dcontour/_zhoverformat.py +++ b/plotly/validators/histogram2dcontour/_zhoverformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/_zmax.py b/plotly/validators/histogram2dcontour/_zmax.py index 79c67a8e79..ab3a5c66a4 100644 --- a/plotly/validators/histogram2dcontour/_zmax.py +++ b/plotly/validators/histogram2dcontour/_zmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"zauto": False}), **kwargs, diff --git a/plotly/validators/histogram2dcontour/_zmid.py b/plotly/validators/histogram2dcontour/_zmid.py index a056af3ae0..2c32d7cd9c 100644 --- a/plotly/validators/histogram2dcontour/_zmid.py +++ b/plotly/validators/histogram2dcontour/_zmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/histogram2dcontour/_zmin.py b/plotly/validators/histogram2dcontour/_zmin.py index 2a3a2ce81d..ec73735b98 100644 --- a/plotly/validators/histogram2dcontour/_zmin.py +++ b/plotly/validators/histogram2dcontour/_zmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"zauto": False}), **kwargs, diff --git a/plotly/validators/histogram2dcontour/_zsrc.py b/plotly/validators/histogram2dcontour/_zsrc.py index d1855c72d5..346bd75d6a 100644 --- a/plotly/validators/histogram2dcontour/_zsrc.py +++ b/plotly/validators/histogram2dcontour/_zsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/colorbar/__init__.py b/plotly/validators/histogram2dcontour/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/histogram2dcontour/colorbar/__init__.py +++ b/plotly/validators/histogram2dcontour/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/histogram2dcontour/colorbar/_bgcolor.py b/plotly/validators/histogram2dcontour/colorbar/_bgcolor.py index 95d49ff775..695fb46349 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_bgcolor.py +++ b/plotly/validators/histogram2dcontour/colorbar/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/colorbar/_bordercolor.py b/plotly/validators/histogram2dcontour/colorbar/_bordercolor.py index 50b4cf97c5..59e6a50900 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_bordercolor.py +++ b/plotly/validators/histogram2dcontour/colorbar/_bordercolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/colorbar/_borderwidth.py b/plotly/validators/histogram2dcontour/colorbar/_borderwidth.py index b54d0a8058..6162223abd 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_borderwidth.py +++ b/plotly/validators/histogram2dcontour/colorbar/_borderwidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram2dcontour/colorbar/_dtick.py b/plotly/validators/histogram2dcontour/colorbar/_dtick.py index 2c610b27d9..bd54159213 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_dtick.py +++ b/plotly/validators/histogram2dcontour/colorbar/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/histogram2dcontour/colorbar/_exponentformat.py b/plotly/validators/histogram2dcontour/colorbar/_exponentformat.py index c4a96a3bd5..ca24a467f5 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_exponentformat.py +++ b/plotly/validators/histogram2dcontour/colorbar/_exponentformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/histogram2dcontour/colorbar/_labelalias.py b/plotly/validators/histogram2dcontour/colorbar/_labelalias.py index aa442c77b8..8b02fcbf67 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_labelalias.py +++ b/plotly/validators/histogram2dcontour/colorbar/_labelalias.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/colorbar/_len.py b/plotly/validators/histogram2dcontour/colorbar/_len.py index 3c4123e283..a59dbf6977 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_len.py +++ b/plotly/validators/histogram2dcontour/colorbar/_len.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram2dcontour/colorbar/_lenmode.py b/plotly/validators/histogram2dcontour/colorbar/_lenmode.py index 6c659632a2..1c113f9e7b 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_lenmode.py +++ b/plotly/validators/histogram2dcontour/colorbar/_lenmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/histogram2dcontour/colorbar/_minexponent.py b/plotly/validators/histogram2dcontour/colorbar/_minexponent.py index 0a5c794149..08e838eb38 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_minexponent.py +++ b/plotly/validators/histogram2dcontour/colorbar/_minexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram2dcontour/colorbar/_nticks.py b/plotly/validators/histogram2dcontour/colorbar/_nticks.py index fce86cc37d..21256592d7 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_nticks.py +++ b/plotly/validators/histogram2dcontour/colorbar/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram2dcontour/colorbar/_orientation.py b/plotly/validators/histogram2dcontour/colorbar/_orientation.py index 8ef0b34cb7..817306c786 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_orientation.py +++ b/plotly/validators/histogram2dcontour/colorbar/_orientation.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/histogram2dcontour/colorbar/_outlinecolor.py b/plotly/validators/histogram2dcontour/colorbar/_outlinecolor.py index b96ba56555..bc41e7513d 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_outlinecolor.py +++ b/plotly/validators/histogram2dcontour/colorbar/_outlinecolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/colorbar/_outlinewidth.py b/plotly/validators/histogram2dcontour/colorbar/_outlinewidth.py index 1985e080cc..7d8046afd6 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_outlinewidth.py +++ b/plotly/validators/histogram2dcontour/colorbar/_outlinewidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram2dcontour/colorbar/_separatethousands.py b/plotly/validators/histogram2dcontour/colorbar/_separatethousands.py index 7875e0744b..4331160521 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_separatethousands.py +++ b/plotly/validators/histogram2dcontour/colorbar/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/colorbar/_showexponent.py b/plotly/validators/histogram2dcontour/colorbar/_showexponent.py index e431e525be..e60f5c8410 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_showexponent.py +++ b/plotly/validators/histogram2dcontour/colorbar/_showexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/histogram2dcontour/colorbar/_showticklabels.py b/plotly/validators/histogram2dcontour/colorbar/_showticklabels.py index ee049cbd19..741b47bfd1 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_showticklabels.py +++ b/plotly/validators/histogram2dcontour/colorbar/_showticklabels.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/colorbar/_showtickprefix.py b/plotly/validators/histogram2dcontour/colorbar/_showtickprefix.py index e5cb678ef7..a114116f73 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_showtickprefix.py +++ b/plotly/validators/histogram2dcontour/colorbar/_showtickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/histogram2dcontour/colorbar/_showticksuffix.py b/plotly/validators/histogram2dcontour/colorbar/_showticksuffix.py index 11d6953649..ca79c85943 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_showticksuffix.py +++ b/plotly/validators/histogram2dcontour/colorbar/_showticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/histogram2dcontour/colorbar/_thickness.py b/plotly/validators/histogram2dcontour/colorbar/_thickness.py index e6adb4c325..a56e30f2e9 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_thickness.py +++ b/plotly/validators/histogram2dcontour/colorbar/_thickness.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram2dcontour/colorbar/_thicknessmode.py b/plotly/validators/histogram2dcontour/colorbar/_thicknessmode.py index 04ab3199b9..14fb6d46a3 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_thicknessmode.py +++ b/plotly/validators/histogram2dcontour/colorbar/_thicknessmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/histogram2dcontour/colorbar/_tick0.py b/plotly/validators/histogram2dcontour/colorbar/_tick0.py index bdd5b52e52..17583af111 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_tick0.py +++ b/plotly/validators/histogram2dcontour/colorbar/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/histogram2dcontour/colorbar/_tickangle.py b/plotly/validators/histogram2dcontour/colorbar/_tickangle.py index f30a39bf77..0c2bd193f7 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_tickangle.py +++ b/plotly/validators/histogram2dcontour/colorbar/_tickangle.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/colorbar/_tickcolor.py b/plotly/validators/histogram2dcontour/colorbar/_tickcolor.py index feb05b266c..2eca4bd62b 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_tickcolor.py +++ b/plotly/validators/histogram2dcontour/colorbar/_tickcolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/colorbar/_tickfont.py b/plotly/validators/histogram2dcontour/colorbar/_tickfont.py index 2b3a7aaebe..1bcda42b24 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_tickfont.py +++ b/plotly/validators/histogram2dcontour/colorbar/_tickfont.py @@ -1,63 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/histogram2dcontour/colorbar/_tickformat.py b/plotly/validators/histogram2dcontour/colorbar/_tickformat.py index b69fdb9751..103ffd9136 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_tickformat.py +++ b/plotly/validators/histogram2dcontour/colorbar/_tickformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/colorbar/_tickformatstopdefaults.py b/plotly/validators/histogram2dcontour/colorbar/_tickformatstopdefaults.py index d3405f6f90..2e0cc3fb54 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/histogram2dcontour/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/histogram2dcontour/colorbar/_tickformatstops.py b/plotly/validators/histogram2dcontour/colorbar/_tickformatstops.py index 2079a1c387..84824b3e69 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_tickformatstops.py +++ b/plotly/validators/histogram2dcontour/colorbar/_tickformatstops.py @@ -1,53 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram2dcontour/colorbar/_ticklabeloverflow.py b/plotly/validators/histogram2dcontour/colorbar/_ticklabeloverflow.py index df0268c9e9..9e65801971 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/histogram2dcontour/colorbar/_ticklabeloverflow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/histogram2dcontour/colorbar/_ticklabelposition.py b/plotly/validators/histogram2dcontour/colorbar/_ticklabelposition.py index 5364a62ae3..3dd77a4ad4 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_ticklabelposition.py +++ b/plotly/validators/histogram2dcontour/colorbar/_ticklabelposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/histogram2dcontour/colorbar/_ticklabelstep.py b/plotly/validators/histogram2dcontour/colorbar/_ticklabelstep.py index 26fcd63872..5ef50f3a72 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_ticklabelstep.py +++ b/plotly/validators/histogram2dcontour/colorbar/_ticklabelstep.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/histogram2dcontour/colorbar/_ticklen.py b/plotly/validators/histogram2dcontour/colorbar/_ticklen.py index d816084264..3f3a6d162c 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_ticklen.py +++ b/plotly/validators/histogram2dcontour/colorbar/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram2dcontour/colorbar/_tickmode.py b/plotly/validators/histogram2dcontour/colorbar/_tickmode.py index 8c30621533..53102af0ba 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_tickmode.py +++ b/plotly/validators/histogram2dcontour/colorbar/_tickmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/histogram2dcontour/colorbar/_tickprefix.py b/plotly/validators/histogram2dcontour/colorbar/_tickprefix.py index c56a8cd526..aecf2d733e 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_tickprefix.py +++ b/plotly/validators/histogram2dcontour/colorbar/_tickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/colorbar/_ticks.py b/plotly/validators/histogram2dcontour/colorbar/_ticks.py index 309185d282..0a413fbba9 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_ticks.py +++ b/plotly/validators/histogram2dcontour/colorbar/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/histogram2dcontour/colorbar/_ticksuffix.py b/plotly/validators/histogram2dcontour/colorbar/_ticksuffix.py index d3ae6c516f..39d96bd7b1 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_ticksuffix.py +++ b/plotly/validators/histogram2dcontour/colorbar/_ticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/colorbar/_ticktext.py b/plotly/validators/histogram2dcontour/colorbar/_ticktext.py index b908a9493d..bd2508647c 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_ticktext.py +++ b/plotly/validators/histogram2dcontour/colorbar/_ticktext.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/colorbar/_ticktextsrc.py b/plotly/validators/histogram2dcontour/colorbar/_ticktextsrc.py index 22f635e758..a138a5db2e 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_ticktextsrc.py +++ b/plotly/validators/histogram2dcontour/colorbar/_ticktextsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/colorbar/_tickvals.py b/plotly/validators/histogram2dcontour/colorbar/_tickvals.py index f76bffc76d..60a1283426 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_tickvals.py +++ b/plotly/validators/histogram2dcontour/colorbar/_tickvals.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/colorbar/_tickvalssrc.py b/plotly/validators/histogram2dcontour/colorbar/_tickvalssrc.py index 2c4c5e6567..9605e14ff5 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_tickvalssrc.py +++ b/plotly/validators/histogram2dcontour/colorbar/_tickvalssrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/colorbar/_tickwidth.py b/plotly/validators/histogram2dcontour/colorbar/_tickwidth.py index 4b4ee7ba93..052b209235 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_tickwidth.py +++ b/plotly/validators/histogram2dcontour/colorbar/_tickwidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram2dcontour/colorbar/_title.py b/plotly/validators/histogram2dcontour/colorbar/_title.py index 949901c43d..f3bcccbf96 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_title.py +++ b/plotly/validators/histogram2dcontour/colorbar/_title.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/histogram2dcontour/colorbar/_x.py b/plotly/validators/histogram2dcontour/colorbar/_x.py index 32739a520f..776149da64 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_x.py +++ b/plotly/validators/histogram2dcontour/colorbar/_x.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/colorbar/_xanchor.py b/plotly/validators/histogram2dcontour/colorbar/_xanchor.py index 58c289d67d..94a8114ae1 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_xanchor.py +++ b/plotly/validators/histogram2dcontour/colorbar/_xanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/histogram2dcontour/colorbar/_xpad.py b/plotly/validators/histogram2dcontour/colorbar/_xpad.py index 7fd8e1824d..8c0bd8d898 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_xpad.py +++ b/plotly/validators/histogram2dcontour/colorbar/_xpad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram2dcontour/colorbar/_xref.py b/plotly/validators/histogram2dcontour/colorbar/_xref.py index 30126ea31f..0717489741 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_xref.py +++ b/plotly/validators/histogram2dcontour/colorbar/_xref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/histogram2dcontour/colorbar/_y.py b/plotly/validators/histogram2dcontour/colorbar/_y.py index 928b76151e..530a41039c 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_y.py +++ b/plotly/validators/histogram2dcontour/colorbar/_y.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/colorbar/_yanchor.py b/plotly/validators/histogram2dcontour/colorbar/_yanchor.py index 930aa5f5f3..7586d8f299 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_yanchor.py +++ b/plotly/validators/histogram2dcontour/colorbar/_yanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/histogram2dcontour/colorbar/_ypad.py b/plotly/validators/histogram2dcontour/colorbar/_ypad.py index e4e589ebf4..9167a879ec 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_ypad.py +++ b/plotly/validators/histogram2dcontour/colorbar/_ypad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram2dcontour/colorbar/_yref.py b/plotly/validators/histogram2dcontour/colorbar/_yref.py index bbba41592f..01c90bd9fc 100644 --- a/plotly/validators/histogram2dcontour/colorbar/_yref.py +++ b/plotly/validators/histogram2dcontour/colorbar/_yref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/histogram2dcontour/colorbar/tickfont/__init__.py b/plotly/validators/histogram2dcontour/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/histogram2dcontour/colorbar/tickfont/__init__.py +++ b/plotly/validators/histogram2dcontour/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/histogram2dcontour/colorbar/tickfont/_color.py b/plotly/validators/histogram2dcontour/colorbar/tickfont/_color.py index c2d3585d73..bd11e15cce 100644 --- a/plotly/validators/histogram2dcontour/colorbar/tickfont/_color.py +++ b/plotly/validators/histogram2dcontour/colorbar/tickfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/colorbar/tickfont/_family.py b/plotly/validators/histogram2dcontour/colorbar/tickfont/_family.py index 568cd364bd..b66ff508dd 100644 --- a/plotly/validators/histogram2dcontour/colorbar/tickfont/_family.py +++ b/plotly/validators/histogram2dcontour/colorbar/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/histogram2dcontour/colorbar/tickfont/_lineposition.py b/plotly/validators/histogram2dcontour/colorbar/tickfont/_lineposition.py index 073e88744e..de3c77f541 100644 --- a/plotly/validators/histogram2dcontour/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/histogram2dcontour/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/histogram2dcontour/colorbar/tickfont/_shadow.py b/plotly/validators/histogram2dcontour/colorbar/tickfont/_shadow.py index a53dcfd601..9be0f1a3ad 100644 --- a/plotly/validators/histogram2dcontour/colorbar/tickfont/_shadow.py +++ b/plotly/validators/histogram2dcontour/colorbar/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/colorbar/tickfont/_size.py b/plotly/validators/histogram2dcontour/colorbar/tickfont/_size.py index c62b92684d..1f8dfd66e1 100644 --- a/plotly/validators/histogram2dcontour/colorbar/tickfont/_size.py +++ b/plotly/validators/histogram2dcontour/colorbar/tickfont/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/histogram2dcontour/colorbar/tickfont/_style.py b/plotly/validators/histogram2dcontour/colorbar/tickfont/_style.py index c182f9a94c..b5f9d9560e 100644 --- a/plotly/validators/histogram2dcontour/colorbar/tickfont/_style.py +++ b/plotly/validators/histogram2dcontour/colorbar/tickfont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/histogram2dcontour/colorbar/tickfont/_textcase.py b/plotly/validators/histogram2dcontour/colorbar/tickfont/_textcase.py index 878250f7c4..9206a3f94b 100644 --- a/plotly/validators/histogram2dcontour/colorbar/tickfont/_textcase.py +++ b/plotly/validators/histogram2dcontour/colorbar/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/histogram2dcontour/colorbar/tickfont/_variant.py b/plotly/validators/histogram2dcontour/colorbar/tickfont/_variant.py index 083e546ea6..e8a7cf11dc 100644 --- a/plotly/validators/histogram2dcontour/colorbar/tickfont/_variant.py +++ b/plotly/validators/histogram2dcontour/colorbar/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/histogram2dcontour/colorbar/tickfont/_weight.py b/plotly/validators/histogram2dcontour/colorbar/tickfont/_weight.py index d02eeabc7f..1efb00736c 100644 --- a/plotly/validators/histogram2dcontour/colorbar/tickfont/_weight.py +++ b/plotly/validators/histogram2dcontour/colorbar/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/histogram2dcontour/colorbar/tickformatstop/__init__.py b/plotly/validators/histogram2dcontour/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/histogram2dcontour/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/histogram2dcontour/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_dtickrange.py index 1171b8d271..ec5ffc1e78 100644 --- a/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( "items", diff --git a/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_enabled.py b/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_enabled.py index 744eb789c3..31feb22e46 100644 --- a/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_name.py b/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_name.py index ca21308743..a505baec00 100644 --- a/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_name.py +++ b/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_templateitemname.py index 7ef9776ffc..86ae9306f1 100644 --- a/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_value.py b/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_value.py index 17f8d15195..ad44fe1323 100644 --- a/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_value.py +++ b/plotly/validators/histogram2dcontour/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/colorbar/title/__init__.py b/plotly/validators/histogram2dcontour/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/histogram2dcontour/colorbar/title/__init__.py +++ b/plotly/validators/histogram2dcontour/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/histogram2dcontour/colorbar/title/_font.py b/plotly/validators/histogram2dcontour/colorbar/title/_font.py index 7d25603e28..c6ab0a7591 100644 --- a/plotly/validators/histogram2dcontour/colorbar/title/_font.py +++ b/plotly/validators/histogram2dcontour/colorbar/title/_font.py @@ -1,63 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/histogram2dcontour/colorbar/title/_side.py b/plotly/validators/histogram2dcontour/colorbar/title/_side.py index 0348d814c6..ce360a8358 100644 --- a/plotly/validators/histogram2dcontour/colorbar/title/_side.py +++ b/plotly/validators/histogram2dcontour/colorbar/title/_side.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/histogram2dcontour/colorbar/title/_text.py b/plotly/validators/histogram2dcontour/colorbar/title/_text.py index 4d26f7909f..4f41b0c9b7 100644 --- a/plotly/validators/histogram2dcontour/colorbar/title/_text.py +++ b/plotly/validators/histogram2dcontour/colorbar/title/_text.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/colorbar/title/font/__init__.py b/plotly/validators/histogram2dcontour/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/histogram2dcontour/colorbar/title/font/__init__.py +++ b/plotly/validators/histogram2dcontour/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/histogram2dcontour/colorbar/title/font/_color.py b/plotly/validators/histogram2dcontour/colorbar/title/font/_color.py index 5cdc8228e1..ece062f9fa 100644 --- a/plotly/validators/histogram2dcontour/colorbar/title/font/_color.py +++ b/plotly/validators/histogram2dcontour/colorbar/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/colorbar/title/font/_family.py b/plotly/validators/histogram2dcontour/colorbar/title/font/_family.py index b14c67f621..2540c5dc21 100644 --- a/plotly/validators/histogram2dcontour/colorbar/title/font/_family.py +++ b/plotly/validators/histogram2dcontour/colorbar/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/histogram2dcontour/colorbar/title/font/_lineposition.py b/plotly/validators/histogram2dcontour/colorbar/title/font/_lineposition.py index 0d59a59e10..cfa1b5e48a 100644 --- a/plotly/validators/histogram2dcontour/colorbar/title/font/_lineposition.py +++ b/plotly/validators/histogram2dcontour/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/histogram2dcontour/colorbar/title/font/_shadow.py b/plotly/validators/histogram2dcontour/colorbar/title/font/_shadow.py index 3599047d49..0153ee3946 100644 --- a/plotly/validators/histogram2dcontour/colorbar/title/font/_shadow.py +++ b/plotly/validators/histogram2dcontour/colorbar/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/colorbar/title/font/_size.py b/plotly/validators/histogram2dcontour/colorbar/title/font/_size.py index e675d03ade..bf9c9f948b 100644 --- a/plotly/validators/histogram2dcontour/colorbar/title/font/_size.py +++ b/plotly/validators/histogram2dcontour/colorbar/title/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/histogram2dcontour/colorbar/title/font/_style.py b/plotly/validators/histogram2dcontour/colorbar/title/font/_style.py index 1d31c21b8b..35ec28ac91 100644 --- a/plotly/validators/histogram2dcontour/colorbar/title/font/_style.py +++ b/plotly/validators/histogram2dcontour/colorbar/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/histogram2dcontour/colorbar/title/font/_textcase.py b/plotly/validators/histogram2dcontour/colorbar/title/font/_textcase.py index 97ae2550ff..e3e9c4fe95 100644 --- a/plotly/validators/histogram2dcontour/colorbar/title/font/_textcase.py +++ b/plotly/validators/histogram2dcontour/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/histogram2dcontour/colorbar/title/font/_variant.py b/plotly/validators/histogram2dcontour/colorbar/title/font/_variant.py index 16bcb4bb06..c7f0983584 100644 --- a/plotly/validators/histogram2dcontour/colorbar/title/font/_variant.py +++ b/plotly/validators/histogram2dcontour/colorbar/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/histogram2dcontour/colorbar/title/font/_weight.py b/plotly/validators/histogram2dcontour/colorbar/title/font/_weight.py index 6768b94da5..3eaf46219e 100644 --- a/plotly/validators/histogram2dcontour/colorbar/title/font/_weight.py +++ b/plotly/validators/histogram2dcontour/colorbar/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/histogram2dcontour/contours/__init__.py b/plotly/validators/histogram2dcontour/contours/__init__.py index 0650ad574b..230a907cd7 100644 --- a/plotly/validators/histogram2dcontour/contours/__init__.py +++ b/plotly/validators/histogram2dcontour/contours/__init__.py @@ -1,35 +1,20 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._type import TypeValidator - from ._start import StartValidator - from ._size import SizeValidator - from ._showlines import ShowlinesValidator - from ._showlabels import ShowlabelsValidator - from ._operation import OperationValidator - from ._labelformat import LabelformatValidator - from ._labelfont import LabelfontValidator - from ._end import EndValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/histogram2dcontour/contours/_coloring.py b/plotly/validators/histogram2dcontour/contours/_coloring.py index 54ed8cd3b1..003101ea78 100644 --- a/plotly/validators/histogram2dcontour/contours/_coloring.py +++ b/plotly/validators/histogram2dcontour/contours/_coloring.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoringValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["fill", "heatmap", "lines", "none"]), **kwargs, diff --git a/plotly/validators/histogram2dcontour/contours/_end.py b/plotly/validators/histogram2dcontour/contours/_end.py index e1f442fd65..df5000a826 100644 --- a/plotly/validators/histogram2dcontour/contours/_end.py +++ b/plotly/validators/histogram2dcontour/contours/_end.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EndValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"^autocontour": False}), **kwargs, diff --git a/plotly/validators/histogram2dcontour/contours/_labelfont.py b/plotly/validators/histogram2dcontour/contours/_labelfont.py index 744fe1c76a..4f90fe6c83 100644 --- a/plotly/validators/histogram2dcontour/contours/_labelfont.py +++ b/plotly/validators/histogram2dcontour/contours/_labelfont.py @@ -1,63 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Labelfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/histogram2dcontour/contours/_labelformat.py b/plotly/validators/histogram2dcontour/contours/_labelformat.py index cd538b466f..2e86e9233d 100644 --- a/plotly/validators/histogram2dcontour/contours/_labelformat.py +++ b/plotly/validators/histogram2dcontour/contours/_labelformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/contours/_operation.py b/plotly/validators/histogram2dcontour/contours/_operation.py index 8d373d56c6..c5efa4289b 100644 --- a/plotly/validators/histogram2dcontour/contours/_operation.py +++ b/plotly/validators/histogram2dcontour/contours/_operation.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OperationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/histogram2dcontour/contours/_showlabels.py b/plotly/validators/histogram2dcontour/contours/_showlabels.py index 6b6a4728d9..7e68346ca0 100644 --- a/plotly/validators/histogram2dcontour/contours/_showlabels.py +++ b/plotly/validators/histogram2dcontour/contours/_showlabels.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/contours/_showlines.py b/plotly/validators/histogram2dcontour/contours/_showlines.py index a59ac2c939..5d2c28fcb3 100644 --- a/plotly/validators/histogram2dcontour/contours/_showlines.py +++ b/plotly/validators/histogram2dcontour/contours/_showlines.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlinesValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/contours/_size.py b/plotly/validators/histogram2dcontour/contours/_size.py index e65320a576..53a9297cd8 100644 --- a/plotly/validators/histogram2dcontour/contours/_size.py +++ b/plotly/validators/histogram2dcontour/contours/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"^autocontour": False}), min=kwargs.pop("min", 0), diff --git a/plotly/validators/histogram2dcontour/contours/_start.py b/plotly/validators/histogram2dcontour/contours/_start.py index 8e5814d029..0fa0d4c3e9 100644 --- a/plotly/validators/histogram2dcontour/contours/_start.py +++ b/plotly/validators/histogram2dcontour/contours/_start.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StartValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"^autocontour": False}), **kwargs, diff --git a/plotly/validators/histogram2dcontour/contours/_type.py b/plotly/validators/histogram2dcontour/contours/_type.py index af77dbcd1d..ad76bf7051 100644 --- a/plotly/validators/histogram2dcontour/contours/_type.py +++ b/plotly/validators/histogram2dcontour/contours/_type.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["levels", "constraint"]), **kwargs, diff --git a/plotly/validators/histogram2dcontour/contours/_value.py b/plotly/validators/histogram2dcontour/contours/_value.py index 57ff6d7112..c3f90af67d 100644 --- a/plotly/validators/histogram2dcontour/contours/_value.py +++ b/plotly/validators/histogram2dcontour/contours/_value.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/contours/labelfont/__init__.py b/plotly/validators/histogram2dcontour/contours/labelfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/histogram2dcontour/contours/labelfont/__init__.py +++ b/plotly/validators/histogram2dcontour/contours/labelfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/histogram2dcontour/contours/labelfont/_color.py b/plotly/validators/histogram2dcontour/contours/labelfont/_color.py index bca9ea117b..67b66a315d 100644 --- a/plotly/validators/histogram2dcontour/contours/labelfont/_color.py +++ b/plotly/validators/histogram2dcontour/contours/labelfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/contours/labelfont/_family.py b/plotly/validators/histogram2dcontour/contours/labelfont/_family.py index c8b1479a1c..51f7af8158 100644 --- a/plotly/validators/histogram2dcontour/contours/labelfont/_family.py +++ b/plotly/validators/histogram2dcontour/contours/labelfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/histogram2dcontour/contours/labelfont/_lineposition.py b/plotly/validators/histogram2dcontour/contours/labelfont/_lineposition.py index 3106719094..994255abb5 100644 --- a/plotly/validators/histogram2dcontour/contours/labelfont/_lineposition.py +++ b/plotly/validators/histogram2dcontour/contours/labelfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/histogram2dcontour/contours/labelfont/_shadow.py b/plotly/validators/histogram2dcontour/contours/labelfont/_shadow.py index 46972c6d7b..56e15938de 100644 --- a/plotly/validators/histogram2dcontour/contours/labelfont/_shadow.py +++ b/plotly/validators/histogram2dcontour/contours/labelfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/contours/labelfont/_size.py b/plotly/validators/histogram2dcontour/contours/labelfont/_size.py index ce940b730b..be592bbd09 100644 --- a/plotly/validators/histogram2dcontour/contours/labelfont/_size.py +++ b/plotly/validators/histogram2dcontour/contours/labelfont/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/histogram2dcontour/contours/labelfont/_style.py b/plotly/validators/histogram2dcontour/contours/labelfont/_style.py index cc970a7b86..d3e10f90f4 100644 --- a/plotly/validators/histogram2dcontour/contours/labelfont/_style.py +++ b/plotly/validators/histogram2dcontour/contours/labelfont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/histogram2dcontour/contours/labelfont/_textcase.py b/plotly/validators/histogram2dcontour/contours/labelfont/_textcase.py index 16d81388bd..908297b58f 100644 --- a/plotly/validators/histogram2dcontour/contours/labelfont/_textcase.py +++ b/plotly/validators/histogram2dcontour/contours/labelfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/histogram2dcontour/contours/labelfont/_variant.py b/plotly/validators/histogram2dcontour/contours/labelfont/_variant.py index a415e21842..2cbc14e4f1 100644 --- a/plotly/validators/histogram2dcontour/contours/labelfont/_variant.py +++ b/plotly/validators/histogram2dcontour/contours/labelfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/histogram2dcontour/contours/labelfont/_weight.py b/plotly/validators/histogram2dcontour/contours/labelfont/_weight.py index f8a51cf5d7..c135c3a77f 100644 --- a/plotly/validators/histogram2dcontour/contours/labelfont/_weight.py +++ b/plotly/validators/histogram2dcontour/contours/labelfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/histogram2dcontour/hoverlabel/__init__.py b/plotly/validators/histogram2dcontour/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/histogram2dcontour/hoverlabel/__init__.py +++ b/plotly/validators/histogram2dcontour/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/histogram2dcontour/hoverlabel/_align.py b/plotly/validators/histogram2dcontour/hoverlabel/_align.py index a25814be13..bd1ae5ae5a 100644 --- a/plotly/validators/histogram2dcontour/hoverlabel/_align.py +++ b/plotly/validators/histogram2dcontour/hoverlabel/_align.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/histogram2dcontour/hoverlabel/_alignsrc.py b/plotly/validators/histogram2dcontour/hoverlabel/_alignsrc.py index c08c292162..8efbc3c391 100644 --- a/plotly/validators/histogram2dcontour/hoverlabel/_alignsrc.py +++ b/plotly/validators/histogram2dcontour/hoverlabel/_alignsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/hoverlabel/_bgcolor.py b/plotly/validators/histogram2dcontour/hoverlabel/_bgcolor.py index 9d038b07e2..39feec5a5b 100644 --- a/plotly/validators/histogram2dcontour/hoverlabel/_bgcolor.py +++ b/plotly/validators/histogram2dcontour/hoverlabel/_bgcolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/histogram2dcontour/hoverlabel/_bgcolorsrc.py b/plotly/validators/histogram2dcontour/hoverlabel/_bgcolorsrc.py index 9d8739dce6..86d9f66603 100644 --- a/plotly/validators/histogram2dcontour/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/histogram2dcontour/hoverlabel/_bgcolorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/hoverlabel/_bordercolor.py b/plotly/validators/histogram2dcontour/hoverlabel/_bordercolor.py index 888a250b30..7782714b7a 100644 --- a/plotly/validators/histogram2dcontour/hoverlabel/_bordercolor.py +++ b/plotly/validators/histogram2dcontour/hoverlabel/_bordercolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/histogram2dcontour/hoverlabel/_bordercolorsrc.py b/plotly/validators/histogram2dcontour/hoverlabel/_bordercolorsrc.py index 0375fe8add..e9fd4a53fe 100644 --- a/plotly/validators/histogram2dcontour/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/histogram2dcontour/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/hoverlabel/_font.py b/plotly/validators/histogram2dcontour/hoverlabel/_font.py index eaa8b7c44f..01e2441978 100644 --- a/plotly/validators/histogram2dcontour/hoverlabel/_font.py +++ b/plotly/validators/histogram2dcontour/hoverlabel/_font.py @@ -1,87 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/histogram2dcontour/hoverlabel/_namelength.py b/plotly/validators/histogram2dcontour/hoverlabel/_namelength.py index 106a50ed61..b8b952c2bd 100644 --- a/plotly/validators/histogram2dcontour/hoverlabel/_namelength.py +++ b/plotly/validators/histogram2dcontour/hoverlabel/_namelength.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/histogram2dcontour/hoverlabel/_namelengthsrc.py b/plotly/validators/histogram2dcontour/hoverlabel/_namelengthsrc.py index 85ec7879a5..b6ff908e3a 100644 --- a/plotly/validators/histogram2dcontour/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/histogram2dcontour/hoverlabel/_namelengthsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/hoverlabel/font/__init__.py b/plotly/validators/histogram2dcontour/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/histogram2dcontour/hoverlabel/font/__init__.py +++ b/plotly/validators/histogram2dcontour/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/histogram2dcontour/hoverlabel/font/_color.py b/plotly/validators/histogram2dcontour/hoverlabel/font/_color.py index 8b0e85a243..793a79936d 100644 --- a/plotly/validators/histogram2dcontour/hoverlabel/font/_color.py +++ b/plotly/validators/histogram2dcontour/hoverlabel/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/histogram2dcontour/hoverlabel/font/_colorsrc.py b/plotly/validators/histogram2dcontour/hoverlabel/font/_colorsrc.py index b2ed8e0489..4803390156 100644 --- a/plotly/validators/histogram2dcontour/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/histogram2dcontour/hoverlabel/font/_colorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/hoverlabel/font/_family.py b/plotly/validators/histogram2dcontour/hoverlabel/font/_family.py index 10d6bf49c9..c3d61a8696 100644 --- a/plotly/validators/histogram2dcontour/hoverlabel/font/_family.py +++ b/plotly/validators/histogram2dcontour/hoverlabel/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/histogram2dcontour/hoverlabel/font/_familysrc.py b/plotly/validators/histogram2dcontour/hoverlabel/font/_familysrc.py index 7199162a99..a11e97b332 100644 --- a/plotly/validators/histogram2dcontour/hoverlabel/font/_familysrc.py +++ b/plotly/validators/histogram2dcontour/hoverlabel/font/_familysrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/hoverlabel/font/_lineposition.py b/plotly/validators/histogram2dcontour/hoverlabel/font/_lineposition.py index e8357b95a4..7111005423 100644 --- a/plotly/validators/histogram2dcontour/hoverlabel/font/_lineposition.py +++ b/plotly/validators/histogram2dcontour/hoverlabel/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/histogram2dcontour/hoverlabel/font/_linepositionsrc.py b/plotly/validators/histogram2dcontour/hoverlabel/font/_linepositionsrc.py index 3e6c6c7f84..7bf7f0109b 100644 --- a/plotly/validators/histogram2dcontour/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/histogram2dcontour/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/hoverlabel/font/_shadow.py b/plotly/validators/histogram2dcontour/hoverlabel/font/_shadow.py index 15faf7ca93..a7667f1a44 100644 --- a/plotly/validators/histogram2dcontour/hoverlabel/font/_shadow.py +++ b/plotly/validators/histogram2dcontour/hoverlabel/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/histogram2dcontour/hoverlabel/font/_shadowsrc.py b/plotly/validators/histogram2dcontour/hoverlabel/font/_shadowsrc.py index 8615e65bec..5bc55edda4 100644 --- a/plotly/validators/histogram2dcontour/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/histogram2dcontour/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/hoverlabel/font/_size.py b/plotly/validators/histogram2dcontour/hoverlabel/font/_size.py index 95c9a3d3b0..47600b0a8f 100644 --- a/plotly/validators/histogram2dcontour/hoverlabel/font/_size.py +++ b/plotly/validators/histogram2dcontour/hoverlabel/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/histogram2dcontour/hoverlabel/font/_sizesrc.py b/plotly/validators/histogram2dcontour/hoverlabel/font/_sizesrc.py index 4d4e06f5cb..ece208d6ef 100644 --- a/plotly/validators/histogram2dcontour/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/histogram2dcontour/hoverlabel/font/_sizesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/hoverlabel/font/_style.py b/plotly/validators/histogram2dcontour/hoverlabel/font/_style.py index 5ffd95b8e3..9d634c2503 100644 --- a/plotly/validators/histogram2dcontour/hoverlabel/font/_style.py +++ b/plotly/validators/histogram2dcontour/hoverlabel/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/histogram2dcontour/hoverlabel/font/_stylesrc.py b/plotly/validators/histogram2dcontour/hoverlabel/font/_stylesrc.py index d4b10d0478..8ac87150a5 100644 --- a/plotly/validators/histogram2dcontour/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/histogram2dcontour/hoverlabel/font/_stylesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/hoverlabel/font/_textcase.py b/plotly/validators/histogram2dcontour/hoverlabel/font/_textcase.py index c5327e3710..e314973a5e 100644 --- a/plotly/validators/histogram2dcontour/hoverlabel/font/_textcase.py +++ b/plotly/validators/histogram2dcontour/hoverlabel/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/histogram2dcontour/hoverlabel/font/_textcasesrc.py b/plotly/validators/histogram2dcontour/hoverlabel/font/_textcasesrc.py index 404c7e07d8..48eec90085 100644 --- a/plotly/validators/histogram2dcontour/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/histogram2dcontour/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/hoverlabel/font/_variant.py b/plotly/validators/histogram2dcontour/hoverlabel/font/_variant.py index 9c548ca5e9..d6dab12b6b 100644 --- a/plotly/validators/histogram2dcontour/hoverlabel/font/_variant.py +++ b/plotly/validators/histogram2dcontour/hoverlabel/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/histogram2dcontour/hoverlabel/font/_variantsrc.py b/plotly/validators/histogram2dcontour/hoverlabel/font/_variantsrc.py index c35430443c..6651626d99 100644 --- a/plotly/validators/histogram2dcontour/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/histogram2dcontour/hoverlabel/font/_variantsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/hoverlabel/font/_weight.py b/plotly/validators/histogram2dcontour/hoverlabel/font/_weight.py index b1051b8005..9c7e3e256c 100644 --- a/plotly/validators/histogram2dcontour/hoverlabel/font/_weight.py +++ b/plotly/validators/histogram2dcontour/hoverlabel/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/histogram2dcontour/hoverlabel/font/_weightsrc.py b/plotly/validators/histogram2dcontour/hoverlabel/font/_weightsrc.py index 576ffe9969..1aca8c79bb 100644 --- a/plotly/validators/histogram2dcontour/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/histogram2dcontour/hoverlabel/font/_weightsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/legendgrouptitle/__init__.py b/plotly/validators/histogram2dcontour/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/histogram2dcontour/legendgrouptitle/__init__.py +++ b/plotly/validators/histogram2dcontour/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/histogram2dcontour/legendgrouptitle/_font.py b/plotly/validators/histogram2dcontour/legendgrouptitle/_font.py index 66f3160fcd..b79c62fe5e 100644 --- a/plotly/validators/histogram2dcontour/legendgrouptitle/_font.py +++ b/plotly/validators/histogram2dcontour/legendgrouptitle/_font.py @@ -1,63 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/histogram2dcontour/legendgrouptitle/_text.py b/plotly/validators/histogram2dcontour/legendgrouptitle/_text.py index f98edde90e..807ce579de 100644 --- a/plotly/validators/histogram2dcontour/legendgrouptitle/_text.py +++ b/plotly/validators/histogram2dcontour/legendgrouptitle/_text.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/legendgrouptitle/font/__init__.py b/plotly/validators/histogram2dcontour/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/histogram2dcontour/legendgrouptitle/font/__init__.py +++ b/plotly/validators/histogram2dcontour/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/histogram2dcontour/legendgrouptitle/font/_color.py b/plotly/validators/histogram2dcontour/legendgrouptitle/font/_color.py index c9817b4100..ac1f3b914c 100644 --- a/plotly/validators/histogram2dcontour/legendgrouptitle/font/_color.py +++ b/plotly/validators/histogram2dcontour/legendgrouptitle/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/legendgrouptitle/font/_family.py b/plotly/validators/histogram2dcontour/legendgrouptitle/font/_family.py index a370fde0bd..8cf7c1928f 100644 --- a/plotly/validators/histogram2dcontour/legendgrouptitle/font/_family.py +++ b/plotly/validators/histogram2dcontour/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/histogram2dcontour/legendgrouptitle/font/_lineposition.py b/plotly/validators/histogram2dcontour/legendgrouptitle/font/_lineposition.py index be7ec3591c..dcc432e9e1 100644 --- a/plotly/validators/histogram2dcontour/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/histogram2dcontour/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/histogram2dcontour/legendgrouptitle/font/_shadow.py b/plotly/validators/histogram2dcontour/legendgrouptitle/font/_shadow.py index 51e17f92cb..dc0ca812c2 100644 --- a/plotly/validators/histogram2dcontour/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/histogram2dcontour/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/legendgrouptitle/font/_size.py b/plotly/validators/histogram2dcontour/legendgrouptitle/font/_size.py index 074a3e6ad6..a9271f507c 100644 --- a/plotly/validators/histogram2dcontour/legendgrouptitle/font/_size.py +++ b/plotly/validators/histogram2dcontour/legendgrouptitle/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/histogram2dcontour/legendgrouptitle/font/_style.py b/plotly/validators/histogram2dcontour/legendgrouptitle/font/_style.py index 375a45ca7e..3d8198575b 100644 --- a/plotly/validators/histogram2dcontour/legendgrouptitle/font/_style.py +++ b/plotly/validators/histogram2dcontour/legendgrouptitle/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/histogram2dcontour/legendgrouptitle/font/_textcase.py b/plotly/validators/histogram2dcontour/legendgrouptitle/font/_textcase.py index 4bedfff0c1..814116f0f5 100644 --- a/plotly/validators/histogram2dcontour/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/histogram2dcontour/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/histogram2dcontour/legendgrouptitle/font/_variant.py b/plotly/validators/histogram2dcontour/legendgrouptitle/font/_variant.py index 64f8433bc7..94fd83ebbe 100644 --- a/plotly/validators/histogram2dcontour/legendgrouptitle/font/_variant.py +++ b/plotly/validators/histogram2dcontour/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/histogram2dcontour/legendgrouptitle/font/_weight.py b/plotly/validators/histogram2dcontour/legendgrouptitle/font/_weight.py index a3953564ed..b11314b248 100644 --- a/plotly/validators/histogram2dcontour/legendgrouptitle/font/_weight.py +++ b/plotly/validators/histogram2dcontour/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/histogram2dcontour/line/__init__.py b/plotly/validators/histogram2dcontour/line/__init__.py index cc28ee67fe..13c597bfd2 100644 --- a/plotly/validators/histogram2dcontour/line/__init__.py +++ b/plotly/validators/histogram2dcontour/line/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._width import WidthValidator - from ._smoothing import SmoothingValidator - from ._dash import DashValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._width.WidthValidator", + "._smoothing.SmoothingValidator", + "._dash.DashValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/histogram2dcontour/line/_color.py b/plotly/validators/histogram2dcontour/line/_color.py index 0c4b28138f..8799490f68 100644 --- a/plotly/validators/histogram2dcontour/line/_color.py +++ b/plotly/validators/histogram2dcontour/line/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style+colorbars"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/line/_dash.py b/plotly/validators/histogram2dcontour/line/_dash.py index 60b9f21e6c..6bd9b0468f 100644 --- a/plotly/validators/histogram2dcontour/line/_dash.py +++ b/plotly/validators/histogram2dcontour/line/_dash.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/histogram2dcontour/line/_smoothing.py b/plotly/validators/histogram2dcontour/line/_smoothing.py index a0debfc1c9..671acd8652 100644 --- a/plotly/validators/histogram2dcontour/line/_smoothing.py +++ b/plotly/validators/histogram2dcontour/line/_smoothing.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SmoothingValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), max=kwargs.pop("max", 1.3), min=kwargs.pop("min", 0), diff --git a/plotly/validators/histogram2dcontour/line/_width.py b/plotly/validators/histogram2dcontour/line/_width.py index 594eca548b..8e1f43d55c 100644 --- a/plotly/validators/histogram2dcontour/line/_width.py +++ b/plotly/validators/histogram2dcontour/line/_width.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style+colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/histogram2dcontour/marker/__init__.py b/plotly/validators/histogram2dcontour/marker/__init__.py index 4ca11d9882..8cd95cefa3 100644 --- a/plotly/validators/histogram2dcontour/marker/__init__.py +++ b/plotly/validators/histogram2dcontour/marker/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._colorsrc.ColorsrcValidator", "._color.ColorValidator"] +) diff --git a/plotly/validators/histogram2dcontour/marker/_color.py b/plotly/validators/histogram2dcontour/marker/_color.py index bba82a4482..9c55e6848f 100644 --- a/plotly/validators/histogram2dcontour/marker/_color.py +++ b/plotly/validators/histogram2dcontour/marker/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/marker/_colorsrc.py b/plotly/validators/histogram2dcontour/marker/_colorsrc.py index 0e7ffcd0fd..2367cdd7c7 100644 --- a/plotly/validators/histogram2dcontour/marker/_colorsrc.py +++ b/plotly/validators/histogram2dcontour/marker/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/stream/__init__.py b/plotly/validators/histogram2dcontour/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/histogram2dcontour/stream/__init__.py +++ b/plotly/validators/histogram2dcontour/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/histogram2dcontour/stream/_maxpoints.py b/plotly/validators/histogram2dcontour/stream/_maxpoints.py index 926d100feb..36485b71a8 100644 --- a/plotly/validators/histogram2dcontour/stream/_maxpoints.py +++ b/plotly/validators/histogram2dcontour/stream/_maxpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/histogram2dcontour/stream/_token.py b/plotly/validators/histogram2dcontour/stream/_token.py index b82f5b454f..4b375e0c24 100644 --- a/plotly/validators/histogram2dcontour/stream/_token.py +++ b/plotly/validators/histogram2dcontour/stream/_token.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/histogram2dcontour/textfont/__init__.py b/plotly/validators/histogram2dcontour/textfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/histogram2dcontour/textfont/__init__.py +++ b/plotly/validators/histogram2dcontour/textfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/histogram2dcontour/textfont/_color.py b/plotly/validators/histogram2dcontour/textfont/_color.py index 5adfec84aa..ddb738a980 100644 --- a/plotly/validators/histogram2dcontour/textfont/_color.py +++ b/plotly/validators/histogram2dcontour/textfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/textfont/_family.py b/plotly/validators/histogram2dcontour/textfont/_family.py index d3998e1475..192c193205 100644 --- a/plotly/validators/histogram2dcontour/textfont/_family.py +++ b/plotly/validators/histogram2dcontour/textfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/histogram2dcontour/textfont/_lineposition.py b/plotly/validators/histogram2dcontour/textfont/_lineposition.py index ddcb1cdaf2..959efa114a 100644 --- a/plotly/validators/histogram2dcontour/textfont/_lineposition.py +++ b/plotly/validators/histogram2dcontour/textfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/histogram2dcontour/textfont/_shadow.py b/plotly/validators/histogram2dcontour/textfont/_shadow.py index 1267012a85..59e1edc148 100644 --- a/plotly/validators/histogram2dcontour/textfont/_shadow.py +++ b/plotly/validators/histogram2dcontour/textfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/textfont/_size.py b/plotly/validators/histogram2dcontour/textfont/_size.py index dcfe222b16..0d15619845 100644 --- a/plotly/validators/histogram2dcontour/textfont/_size.py +++ b/plotly/validators/histogram2dcontour/textfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/histogram2dcontour/textfont/_style.py b/plotly/validators/histogram2dcontour/textfont/_style.py index 8f88604a08..0905e9505b 100644 --- a/plotly/validators/histogram2dcontour/textfont/_style.py +++ b/plotly/validators/histogram2dcontour/textfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/histogram2dcontour/textfont/_textcase.py b/plotly/validators/histogram2dcontour/textfont/_textcase.py index fd76b5d543..1243c02c57 100644 --- a/plotly/validators/histogram2dcontour/textfont/_textcase.py +++ b/plotly/validators/histogram2dcontour/textfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/histogram2dcontour/textfont/_variant.py b/plotly/validators/histogram2dcontour/textfont/_variant.py index c2c45eab31..8b68a5d866 100644 --- a/plotly/validators/histogram2dcontour/textfont/_variant.py +++ b/plotly/validators/histogram2dcontour/textfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/histogram2dcontour/textfont/_weight.py b/plotly/validators/histogram2dcontour/textfont/_weight.py index bd4bbc596b..7d4a68a781 100644 --- a/plotly/validators/histogram2dcontour/textfont/_weight.py +++ b/plotly/validators/histogram2dcontour/textfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/histogram2dcontour/xbins/__init__.py b/plotly/validators/histogram2dcontour/xbins/__init__.py index b7d1eaa9fc..462d290b54 100644 --- a/plotly/validators/histogram2dcontour/xbins/__init__.py +++ b/plotly/validators/histogram2dcontour/xbins/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._start.StartValidator", "._size.SizeValidator", "._end.EndValidator"], +) diff --git a/plotly/validators/histogram2dcontour/xbins/_end.py b/plotly/validators/histogram2dcontour/xbins/_end.py index 448d94fdf2..8f90e78c05 100644 --- a/plotly/validators/histogram2dcontour/xbins/_end.py +++ b/plotly/validators/histogram2dcontour/xbins/_end.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EndValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/xbins/_size.py b/plotly/validators/histogram2dcontour/xbins/_size.py index 2706577768..0e9cc7dd3f 100644 --- a/plotly/validators/histogram2dcontour/xbins/_size.py +++ b/plotly/validators/histogram2dcontour/xbins/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/xbins/_start.py b/plotly/validators/histogram2dcontour/xbins/_start.py index 8500104dd8..0552d5f170 100644 --- a/plotly/validators/histogram2dcontour/xbins/_start.py +++ b/plotly/validators/histogram2dcontour/xbins/_start.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StartValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/ybins/__init__.py b/plotly/validators/histogram2dcontour/ybins/__init__.py index b7d1eaa9fc..462d290b54 100644 --- a/plotly/validators/histogram2dcontour/ybins/__init__.py +++ b/plotly/validators/histogram2dcontour/ybins/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._start.StartValidator", "._size.SizeValidator", "._end.EndValidator"], +) diff --git a/plotly/validators/histogram2dcontour/ybins/_end.py b/plotly/validators/histogram2dcontour/ybins/_end.py index cb79c4e967..c07bcefd71 100644 --- a/plotly/validators/histogram2dcontour/ybins/_end.py +++ b/plotly/validators/histogram2dcontour/ybins/_end.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EndValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/ybins/_size.py b/plotly/validators/histogram2dcontour/ybins/_size.py index e46d2ee4be..8eaecbfd5c 100644 --- a/plotly/validators/histogram2dcontour/ybins/_size.py +++ b/plotly/validators/histogram2dcontour/ybins/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/histogram2dcontour/ybins/_start.py b/plotly/validators/histogram2dcontour/ybins/_start.py index aec1ef1198..24f1c86c30 100644 --- a/plotly/validators/histogram2dcontour/ybins/_start.py +++ b/plotly/validators/histogram2dcontour/ybins/_start.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StartValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/icicle/__init__.py b/plotly/validators/icicle/__init__.py index 79272436ae..70d508b26c 100644 --- a/plotly/validators/icicle/__init__.py +++ b/plotly/validators/icicle/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._visible import VisibleValidator - from ._valuessrc import ValuessrcValidator - from ._values import ValuesValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._tiling import TilingValidator - from ._texttemplatesrc import TexttemplatesrcValidator - from ._texttemplate import TexttemplateValidator - from ._textsrc import TextsrcValidator - from ._textposition import TextpositionValidator - from ._textinfo import TextinfoValidator - from ._textfont import TextfontValidator - from ._text import TextValidator - from ._stream import StreamValidator - from ._sort import SortValidator - from ._root import RootValidator - from ._pathbar import PathbarValidator - from ._parentssrc import ParentssrcValidator - from ._parents import ParentsValidator - from ._outsidetextfont import OutsidetextfontValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._maxdepth import MaxdepthValidator - from ._marker import MarkerValidator - from ._level import LevelValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legend import LegendValidator - from ._leaf import LeafValidator - from ._labelssrc import LabelssrcValidator - from ._labels import LabelsValidator - from ._insidetextfont import InsidetextfontValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._domain import DomainValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._count import CountValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/icicle/_branchvalues.py b/plotly/validators/icicle/_branchvalues.py index 968fe564e2..a8279aa2d1 100644 --- a/plotly/validators/icicle/_branchvalues.py +++ b/plotly/validators/icicle/_branchvalues.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BranchvaluesValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["remainder", "total"]), **kwargs, diff --git a/plotly/validators/icicle/_count.py b/plotly/validators/icicle/_count.py index 4a373aae2f..4c12834f0f 100644 --- a/plotly/validators/icicle/_count.py +++ b/plotly/validators/icicle/_count.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CountValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), flags=kwargs.pop("flags", ["branches", "leaves"]), **kwargs, diff --git a/plotly/validators/icicle/_customdata.py b/plotly/validators/icicle/_customdata.py index 38e83f4066..ff168ab9e7 100644 --- a/plotly/validators/icicle/_customdata.py +++ b/plotly/validators/icicle/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/icicle/_customdatasrc.py b/plotly/validators/icicle/_customdatasrc.py index 1a5c9483af..2802896234 100644 --- a/plotly/validators/icicle/_customdatasrc.py +++ b/plotly/validators/icicle/_customdatasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/_domain.py b/plotly/validators/icicle/_domain.py index b8ec63a531..81ec6c41b6 100644 --- a/plotly/validators/icicle/_domain.py +++ b/plotly/validators/icicle/_domain.py @@ -1,27 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/icicle/_hoverinfo.py b/plotly/validators/icicle/_hoverinfo.py index 7e5ad16fb0..9e7138e210 100644 --- a/plotly/validators/icicle/_hoverinfo.py +++ b/plotly/validators/icicle/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/icicle/_hoverinfosrc.py b/plotly/validators/icicle/_hoverinfosrc.py index 8fa7f82b21..715d32cf94 100644 --- a/plotly/validators/icicle/_hoverinfosrc.py +++ b/plotly/validators/icicle/_hoverinfosrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/_hoverlabel.py b/plotly/validators/icicle/_hoverlabel.py index 26ba3000d6..a94b48c7e0 100644 --- a/plotly/validators/icicle/_hoverlabel.py +++ b/plotly/validators/icicle/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/icicle/_hovertemplate.py b/plotly/validators/icicle/_hovertemplate.py index b08efb5705..f7fb6d4470 100644 --- a/plotly/validators/icicle/_hovertemplate.py +++ b/plotly/validators/icicle/_hovertemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/icicle/_hovertemplatesrc.py b/plotly/validators/icicle/_hovertemplatesrc.py index 70914d05c5..c8993e4ceb 100644 --- a/plotly/validators/icicle/_hovertemplatesrc.py +++ b/plotly/validators/icicle/_hovertemplatesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/_hovertext.py b/plotly/validators/icicle/_hovertext.py index e4df546f2f..b291f9a25f 100644 --- a/plotly/validators/icicle/_hovertext.py +++ b/plotly/validators/icicle/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/icicle/_hovertextsrc.py b/plotly/validators/icicle/_hovertextsrc.py index 470e10ff58..2ccb7f22d2 100644 --- a/plotly/validators/icicle/_hovertextsrc.py +++ b/plotly/validators/icicle/_hovertextsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/_ids.py b/plotly/validators/icicle/_ids.py index 125d9b3e74..8d131f6cf1 100644 --- a/plotly/validators/icicle/_ids.py +++ b/plotly/validators/icicle/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/icicle/_idssrc.py b/plotly/validators/icicle/_idssrc.py index 011b43e641..e7b291343f 100644 --- a/plotly/validators/icicle/_idssrc.py +++ b/plotly/validators/icicle/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/_insidetextfont.py b/plotly/validators/icicle/_insidetextfont.py index bd41fb5661..f1ad69607d 100644 --- a/plotly/validators/icicle/_insidetextfont.py +++ b/plotly/validators/icicle/_insidetextfont.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class InsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Insidetextfont"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/icicle/_labels.py b/plotly/validators/icicle/_labels.py index bc9a637d2e..cc4b128fd0 100644 --- a/plotly/validators/icicle/_labels.py +++ b/plotly/validators/icicle/_labels.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/icicle/_labelssrc.py b/plotly/validators/icicle/_labelssrc.py index 42a5e13dbf..20de8d0f89 100644 --- a/plotly/validators/icicle/_labelssrc.py +++ b/plotly/validators/icicle/_labelssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/_leaf.py b/plotly/validators/icicle/_leaf.py index 0095d5d8fa..d034ec56b3 100644 --- a/plotly/validators/icicle/_leaf.py +++ b/plotly/validators/icicle/_leaf.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LeafValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/icicle/_legend.py b/plotly/validators/icicle/_legend.py index b8c5a78fc5..65a0765782 100644 --- a/plotly/validators/icicle/_legend.py +++ b/plotly/validators/icicle/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/icicle/_legendgrouptitle.py b/plotly/validators/icicle/_legendgrouptitle.py index dbbcda45fd..100c996abc 100644 --- a/plotly/validators/icicle/_legendgrouptitle.py +++ b/plotly/validators/icicle/_legendgrouptitle.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/icicle/_legendrank.py b/plotly/validators/icicle/_legendrank.py index 28ccd9e480..79be693c74 100644 --- a/plotly/validators/icicle/_legendrank.py +++ b/plotly/validators/icicle/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/icicle/_legendwidth.py b/plotly/validators/icicle/_legendwidth.py index 8b9da9ea86..aec9afc2b0 100644 --- a/plotly/validators/icicle/_legendwidth.py +++ b/plotly/validators/icicle/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/icicle/_level.py b/plotly/validators/icicle/_level.py index 2802f86d0a..9797400d5c 100644 --- a/plotly/validators/icicle/_level.py +++ b/plotly/validators/icicle/_level.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LevelValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/icicle/_marker.py b/plotly/validators/icicle/_marker.py index 90db168ee0..ca5b13ad58 100644 --- a/plotly/validators/icicle/_marker.py +++ b/plotly/validators/icicle/_marker.py @@ -1,104 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/icicle/_maxdepth.py b/plotly/validators/icicle/_maxdepth.py index 2cefe681ed..78f911e659 100644 --- a/plotly/validators/icicle/_maxdepth.py +++ b/plotly/validators/icicle/_maxdepth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxdepthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/icicle/_meta.py b/plotly/validators/icicle/_meta.py index 5b867d1db0..611d239d99 100644 --- a/plotly/validators/icicle/_meta.py +++ b/plotly/validators/icicle/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/icicle/_metasrc.py b/plotly/validators/icicle/_metasrc.py index 737cc3ccc5..e251f9d26c 100644 --- a/plotly/validators/icicle/_metasrc.py +++ b/plotly/validators/icicle/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/_name.py b/plotly/validators/icicle/_name.py index 6334bf65ef..a1e652b3fd 100644 --- a/plotly/validators/icicle/_name.py +++ b/plotly/validators/icicle/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/icicle/_opacity.py b/plotly/validators/icicle/_opacity.py index c3544f53f6..7332aa938e 100644 --- a/plotly/validators/icicle/_opacity.py +++ b/plotly/validators/icicle/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/icicle/_outsidetextfont.py b/plotly/validators/icicle/_outsidetextfont.py index 63d9997ba6..3ba983dd4f 100644 --- a/plotly/validators/icicle/_outsidetextfont.py +++ b/plotly/validators/icicle/_outsidetextfont.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Outsidetextfont"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/icicle/_parents.py b/plotly/validators/icicle/_parents.py index be70659c25..9f5237f9e0 100644 --- a/plotly/validators/icicle/_parents.py +++ b/plotly/validators/icicle/_parents.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ParentsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/icicle/_parentssrc.py b/plotly/validators/icicle/_parentssrc.py index 720e9f98ce..b5803fddd9 100644 --- a/plotly/validators/icicle/_parentssrc.py +++ b/plotly/validators/icicle/_parentssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ParentssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/_pathbar.py b/plotly/validators/icicle/_pathbar.py index 9226a642ea..39c2a17331 100644 --- a/plotly/validators/icicle/_pathbar.py +++ b/plotly/validators/icicle/_pathbar.py @@ -1,31 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PathbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/icicle/_root.py b/plotly/validators/icicle/_root.py index b2340ade38..13f4fb0d89 100644 --- a/plotly/validators/icicle/_root.py +++ b/plotly/validators/icicle/_root.py @@ -1,20 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RootValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/icicle/_sort.py b/plotly/validators/icicle/_sort.py index d36c5b3f44..a3772c7cae 100644 --- a/plotly/validators/icicle/_sort.py +++ b/plotly/validators/icicle/_sort.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SortValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/icicle/_stream.py b/plotly/validators/icicle/_stream.py index c7d0a34583..6ab43a016f 100644 --- a/plotly/validators/icicle/_stream.py +++ b/plotly/validators/icicle/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/icicle/_text.py b/plotly/validators/icicle/_text.py index 44665148ff..89f39a25da 100644 --- a/plotly/validators/icicle/_text.py +++ b/plotly/validators/icicle/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/icicle/_textfont.py b/plotly/validators/icicle/_textfont.py index 847bb34e2d..3043633989 100644 --- a/plotly/validators/icicle/_textfont.py +++ b/plotly/validators/icicle/_textfont.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/icicle/_textinfo.py b/plotly/validators/icicle/_textinfo.py index fdbe0aa5c2..12e417a6bc 100644 --- a/plotly/validators/icicle/_textinfo.py +++ b/plotly/validators/icicle/_textinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop( diff --git a/plotly/validators/icicle/_textposition.py b/plotly/validators/icicle/_textposition.py index 4e43bc2d43..03e990a527 100644 --- a/plotly/validators/icicle/_textposition.py +++ b/plotly/validators/icicle/_textposition.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/icicle/_textsrc.py b/plotly/validators/icicle/_textsrc.py index 2e6eb192a3..0044f20150 100644 --- a/plotly/validators/icicle/_textsrc.py +++ b/plotly/validators/icicle/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/_texttemplate.py b/plotly/validators/icicle/_texttemplate.py index 634aac3569..c998759c14 100644 --- a/plotly/validators/icicle/_texttemplate.py +++ b/plotly/validators/icicle/_texttemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/icicle/_texttemplatesrc.py b/plotly/validators/icicle/_texttemplatesrc.py index c04e414e4e..2af1851253 100644 --- a/plotly/validators/icicle/_texttemplatesrc.py +++ b/plotly/validators/icicle/_texttemplatesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/_tiling.py b/plotly/validators/icicle/_tiling.py index bbc219f304..4722386f0b 100644 --- a/plotly/validators/icicle/_tiling.py +++ b/plotly/validators/icicle/_tiling.py @@ -1,32 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TilingValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/icicle/_uid.py b/plotly/validators/icicle/_uid.py index 656afd5f6a..00010433b2 100644 --- a/plotly/validators/icicle/_uid.py +++ b/plotly/validators/icicle/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/icicle/_uirevision.py b/plotly/validators/icicle/_uirevision.py index 80a2c1ead8..ee4284a949 100644 --- a/plotly/validators/icicle/_uirevision.py +++ b/plotly/validators/icicle/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/_values.py b/plotly/validators/icicle/_values.py index 954bfa69f8..777293dc70 100644 --- a/plotly/validators/icicle/_values.py +++ b/plotly/validators/icicle/_values.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValuesValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/icicle/_valuessrc.py b/plotly/validators/icicle/_valuessrc.py index 6e08694e5a..8c23a6f491 100644 --- a/plotly/validators/icicle/_valuessrc.py +++ b/plotly/validators/icicle/_valuessrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValuessrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/_visible.py b/plotly/validators/icicle/_visible.py index 6c3426313e..d27ebc542c 100644 --- a/plotly/validators/icicle/_visible.py +++ b/plotly/validators/icicle/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/icicle/domain/__init__.py b/plotly/validators/icicle/domain/__init__.py index 67de5030d0..42827f1d1e 100644 --- a/plotly/validators/icicle/domain/__init__.py +++ b/plotly/validators/icicle/domain/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._y import YValidator - from ._x import XValidator - from ._row import RowValidator - from ._column import ColumnValidator -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [], - [ - "._y.YValidator", - "._x.XValidator", - "._row.RowValidator", - "._column.ColumnValidator", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._y.YValidator", + "._x.XValidator", + "._row.RowValidator", + "._column.ColumnValidator", + ], +) diff --git a/plotly/validators/icicle/domain/_column.py b/plotly/validators/icicle/domain/_column.py index a839364030..b4a1636e66 100644 --- a/plotly/validators/icicle/domain/_column.py +++ b/plotly/validators/icicle/domain/_column.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/icicle/domain/_row.py b/plotly/validators/icicle/domain/_row.py index bd0c6ed5b6..1b1309a31e 100644 --- a/plotly/validators/icicle/domain/_row.py +++ b/plotly/validators/icicle/domain/_row.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RowValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/icicle/domain/_x.py b/plotly/validators/icicle/domain/_x.py index 296d3c5630..988494d142 100644 --- a/plotly/validators/icicle/domain/_x.py +++ b/plotly/validators/icicle/domain/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/icicle/domain/_y.py b/plotly/validators/icicle/domain/_y.py index 7f1b2716c3..5cc4308cf5 100644 --- a/plotly/validators/icicle/domain/_y.py +++ b/plotly/validators/icicle/domain/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/icicle/hoverlabel/__init__.py b/plotly/validators/icicle/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/icicle/hoverlabel/__init__.py +++ b/plotly/validators/icicle/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/icicle/hoverlabel/_align.py b/plotly/validators/icicle/hoverlabel/_align.py index 90bd15fc2b..892e3f4a2f 100644 --- a/plotly/validators/icicle/hoverlabel/_align.py +++ b/plotly/validators/icicle/hoverlabel/_align.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/icicle/hoverlabel/_alignsrc.py b/plotly/validators/icicle/hoverlabel/_alignsrc.py index 68a205a02e..71c4954761 100644 --- a/plotly/validators/icicle/hoverlabel/_alignsrc.py +++ b/plotly/validators/icicle/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/hoverlabel/_bgcolor.py b/plotly/validators/icicle/hoverlabel/_bgcolor.py index f335219b97..5b572f9588 100644 --- a/plotly/validators/icicle/hoverlabel/_bgcolor.py +++ b/plotly/validators/icicle/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/icicle/hoverlabel/_bgcolorsrc.py b/plotly/validators/icicle/hoverlabel/_bgcolorsrc.py index 8e8ea94a61..22bfa41818 100644 --- a/plotly/validators/icicle/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/icicle/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/hoverlabel/_bordercolor.py b/plotly/validators/icicle/hoverlabel/_bordercolor.py index 4fa9517db9..3002d09913 100644 --- a/plotly/validators/icicle/hoverlabel/_bordercolor.py +++ b/plotly/validators/icicle/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/icicle/hoverlabel/_bordercolorsrc.py b/plotly/validators/icicle/hoverlabel/_bordercolorsrc.py index 8930e8627d..348311957a 100644 --- a/plotly/validators/icicle/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/icicle/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/hoverlabel/_font.py b/plotly/validators/icicle/hoverlabel/_font.py index b79b24df03..97e764eb66 100644 --- a/plotly/validators/icicle/hoverlabel/_font.py +++ b/plotly/validators/icicle/hoverlabel/_font.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/icicle/hoverlabel/_namelength.py b/plotly/validators/icicle/hoverlabel/_namelength.py index e6b1dc6ab8..b969a873a9 100644 --- a/plotly/validators/icicle/hoverlabel/_namelength.py +++ b/plotly/validators/icicle/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/icicle/hoverlabel/_namelengthsrc.py b/plotly/validators/icicle/hoverlabel/_namelengthsrc.py index 3e62c3f977..74b58d729e 100644 --- a/plotly/validators/icicle/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/icicle/hoverlabel/_namelengthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/hoverlabel/font/__init__.py b/plotly/validators/icicle/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/icicle/hoverlabel/font/__init__.py +++ b/plotly/validators/icicle/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/icicle/hoverlabel/font/_color.py b/plotly/validators/icicle/hoverlabel/font/_color.py index f60ca7a3fd..071134da4d 100644 --- a/plotly/validators/icicle/hoverlabel/font/_color.py +++ b/plotly/validators/icicle/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/icicle/hoverlabel/font/_colorsrc.py b/plotly/validators/icicle/hoverlabel/font/_colorsrc.py index 7d39e7e48f..ab0b8ad1b2 100644 --- a/plotly/validators/icicle/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/icicle/hoverlabel/font/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/hoverlabel/font/_family.py b/plotly/validators/icicle/hoverlabel/font/_family.py index a0b8904360..a69e0e58c9 100644 --- a/plotly/validators/icicle/hoverlabel/font/_family.py +++ b/plotly/validators/icicle/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/icicle/hoverlabel/font/_familysrc.py b/plotly/validators/icicle/hoverlabel/font/_familysrc.py index 3c61be6ebf..b077db8d8b 100644 --- a/plotly/validators/icicle/hoverlabel/font/_familysrc.py +++ b/plotly/validators/icicle/hoverlabel/font/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/hoverlabel/font/_lineposition.py b/plotly/validators/icicle/hoverlabel/font/_lineposition.py index ecd666c229..7345a7107c 100644 --- a/plotly/validators/icicle/hoverlabel/font/_lineposition.py +++ b/plotly/validators/icicle/hoverlabel/font/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/icicle/hoverlabel/font/_linepositionsrc.py b/plotly/validators/icicle/hoverlabel/font/_linepositionsrc.py index b56f2f3584..2b12abf394 100644 --- a/plotly/validators/icicle/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/icicle/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/hoverlabel/font/_shadow.py b/plotly/validators/icicle/hoverlabel/font/_shadow.py index b23e767466..3827899dc4 100644 --- a/plotly/validators/icicle/hoverlabel/font/_shadow.py +++ b/plotly/validators/icicle/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/icicle/hoverlabel/font/_shadowsrc.py b/plotly/validators/icicle/hoverlabel/font/_shadowsrc.py index d3e09a94a8..bca41dce89 100644 --- a/plotly/validators/icicle/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/icicle/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/hoverlabel/font/_size.py b/plotly/validators/icicle/hoverlabel/font/_size.py index bee8eb002b..f744872209 100644 --- a/plotly/validators/icicle/hoverlabel/font/_size.py +++ b/plotly/validators/icicle/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/icicle/hoverlabel/font/_sizesrc.py b/plotly/validators/icicle/hoverlabel/font/_sizesrc.py index e7c578a166..ddf97d0973 100644 --- a/plotly/validators/icicle/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/icicle/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/hoverlabel/font/_style.py b/plotly/validators/icicle/hoverlabel/font/_style.py index eb28637394..9b0d2bb396 100644 --- a/plotly/validators/icicle/hoverlabel/font/_style.py +++ b/plotly/validators/icicle/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/icicle/hoverlabel/font/_stylesrc.py b/plotly/validators/icicle/hoverlabel/font/_stylesrc.py index f7cab2c950..47543d37a6 100644 --- a/plotly/validators/icicle/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/icicle/hoverlabel/font/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/hoverlabel/font/_textcase.py b/plotly/validators/icicle/hoverlabel/font/_textcase.py index 481acec083..045ee3dcad 100644 --- a/plotly/validators/icicle/hoverlabel/font/_textcase.py +++ b/plotly/validators/icicle/hoverlabel/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/icicle/hoverlabel/font/_textcasesrc.py b/plotly/validators/icicle/hoverlabel/font/_textcasesrc.py index 777202dac6..7affcfb038 100644 --- a/plotly/validators/icicle/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/icicle/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/hoverlabel/font/_variant.py b/plotly/validators/icicle/hoverlabel/font/_variant.py index e9065a94e5..141543b601 100644 --- a/plotly/validators/icicle/hoverlabel/font/_variant.py +++ b/plotly/validators/icicle/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/icicle/hoverlabel/font/_variantsrc.py b/plotly/validators/icicle/hoverlabel/font/_variantsrc.py index 603f8b038d..64d6f7baa1 100644 --- a/plotly/validators/icicle/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/icicle/hoverlabel/font/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/hoverlabel/font/_weight.py b/plotly/validators/icicle/hoverlabel/font/_weight.py index 822c80c59b..473f146a14 100644 --- a/plotly/validators/icicle/hoverlabel/font/_weight.py +++ b/plotly/validators/icicle/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/icicle/hoverlabel/font/_weightsrc.py b/plotly/validators/icicle/hoverlabel/font/_weightsrc.py index 0f8b457f84..207767cfe1 100644 --- a/plotly/validators/icicle/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/icicle/hoverlabel/font/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/insidetextfont/__init__.py b/plotly/validators/icicle/insidetextfont/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/icicle/insidetextfont/__init__.py +++ b/plotly/validators/icicle/insidetextfont/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/icicle/insidetextfont/_color.py b/plotly/validators/icicle/insidetextfont/_color.py index baddd1252f..ee92c0f3f7 100644 --- a/plotly/validators/icicle/insidetextfont/_color.py +++ b/plotly/validators/icicle/insidetextfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/icicle/insidetextfont/_colorsrc.py b/plotly/validators/icicle/insidetextfont/_colorsrc.py index 7ca2f56a06..ce2f91c3a9 100644 --- a/plotly/validators/icicle/insidetextfont/_colorsrc.py +++ b/plotly/validators/icicle/insidetextfont/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/insidetextfont/_family.py b/plotly/validators/icicle/insidetextfont/_family.py index d8db490147..e4dcacfc0b 100644 --- a/plotly/validators/icicle/insidetextfont/_family.py +++ b/plotly/validators/icicle/insidetextfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/icicle/insidetextfont/_familysrc.py b/plotly/validators/icicle/insidetextfont/_familysrc.py index d2abfa9dd9..92f8818844 100644 --- a/plotly/validators/icicle/insidetextfont/_familysrc.py +++ b/plotly/validators/icicle/insidetextfont/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/insidetextfont/_lineposition.py b/plotly/validators/icicle/insidetextfont/_lineposition.py index 929cd431e1..a698146f13 100644 --- a/plotly/validators/icicle/insidetextfont/_lineposition.py +++ b/plotly/validators/icicle/insidetextfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/icicle/insidetextfont/_linepositionsrc.py b/plotly/validators/icicle/insidetextfont/_linepositionsrc.py index 13af6771e0..92179dc820 100644 --- a/plotly/validators/icicle/insidetextfont/_linepositionsrc.py +++ b/plotly/validators/icicle/insidetextfont/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/insidetextfont/_shadow.py b/plotly/validators/icicle/insidetextfont/_shadow.py index f8713dc7cb..65e27f6165 100644 --- a/plotly/validators/icicle/insidetextfont/_shadow.py +++ b/plotly/validators/icicle/insidetextfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/icicle/insidetextfont/_shadowsrc.py b/plotly/validators/icicle/insidetextfont/_shadowsrc.py index e335de9973..e4250700a9 100644 --- a/plotly/validators/icicle/insidetextfont/_shadowsrc.py +++ b/plotly/validators/icicle/insidetextfont/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/insidetextfont/_size.py b/plotly/validators/icicle/insidetextfont/_size.py index 97f7b7382f..4633b9be11 100644 --- a/plotly/validators/icicle/insidetextfont/_size.py +++ b/plotly/validators/icicle/insidetextfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/icicle/insidetextfont/_sizesrc.py b/plotly/validators/icicle/insidetextfont/_sizesrc.py index 3086ee58cd..8946b3862f 100644 --- a/plotly/validators/icicle/insidetextfont/_sizesrc.py +++ b/plotly/validators/icicle/insidetextfont/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/insidetextfont/_style.py b/plotly/validators/icicle/insidetextfont/_style.py index a5ffb8d286..298102cf05 100644 --- a/plotly/validators/icicle/insidetextfont/_style.py +++ b/plotly/validators/icicle/insidetextfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/icicle/insidetextfont/_stylesrc.py b/plotly/validators/icicle/insidetextfont/_stylesrc.py index 7cc5d4ba77..bd700cad55 100644 --- a/plotly/validators/icicle/insidetextfont/_stylesrc.py +++ b/plotly/validators/icicle/insidetextfont/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/insidetextfont/_textcase.py b/plotly/validators/icicle/insidetextfont/_textcase.py index 607800001e..8a1520f749 100644 --- a/plotly/validators/icicle/insidetextfont/_textcase.py +++ b/plotly/validators/icicle/insidetextfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/icicle/insidetextfont/_textcasesrc.py b/plotly/validators/icicle/insidetextfont/_textcasesrc.py index 7d79d95844..cbacf9d781 100644 --- a/plotly/validators/icicle/insidetextfont/_textcasesrc.py +++ b/plotly/validators/icicle/insidetextfont/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/insidetextfont/_variant.py b/plotly/validators/icicle/insidetextfont/_variant.py index 75702c481e..61fbacb268 100644 --- a/plotly/validators/icicle/insidetextfont/_variant.py +++ b/plotly/validators/icicle/insidetextfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( diff --git a/plotly/validators/icicle/insidetextfont/_variantsrc.py b/plotly/validators/icicle/insidetextfont/_variantsrc.py index e45a0c09c1..923155457b 100644 --- a/plotly/validators/icicle/insidetextfont/_variantsrc.py +++ b/plotly/validators/icicle/insidetextfont/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/insidetextfont/_weight.py b/plotly/validators/icicle/insidetextfont/_weight.py index 564d564ff2..dc865abbd0 100644 --- a/plotly/validators/icicle/insidetextfont/_weight.py +++ b/plotly/validators/icicle/insidetextfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/icicle/insidetextfont/_weightsrc.py b/plotly/validators/icicle/insidetextfont/_weightsrc.py index 1436d068f0..9c15d67de8 100644 --- a/plotly/validators/icicle/insidetextfont/_weightsrc.py +++ b/plotly/validators/icicle/insidetextfont/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/leaf/__init__.py b/plotly/validators/icicle/leaf/__init__.py index 049134a716..ea80a8a0f0 100644 --- a/plotly/validators/icicle/leaf/__init__.py +++ b/plotly/validators/icicle/leaf/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._opacity.OpacityValidator"] +) diff --git a/plotly/validators/icicle/leaf/_opacity.py b/plotly/validators/icicle/leaf/_opacity.py index 9e0b45cb74..75c9b0fabe 100644 --- a/plotly/validators/icicle/leaf/_opacity.py +++ b/plotly/validators/icicle/leaf/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/icicle/legendgrouptitle/__init__.py b/plotly/validators/icicle/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/icicle/legendgrouptitle/__init__.py +++ b/plotly/validators/icicle/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/icicle/legendgrouptitle/_font.py b/plotly/validators/icicle/legendgrouptitle/_font.py index 95ebba7f5c..261ea81f6c 100644 --- a/plotly/validators/icicle/legendgrouptitle/_font.py +++ b/plotly/validators/icicle/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/icicle/legendgrouptitle/_text.py b/plotly/validators/icicle/legendgrouptitle/_text.py index 4d1711fa80..24c7681390 100644 --- a/plotly/validators/icicle/legendgrouptitle/_text.py +++ b/plotly/validators/icicle/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/icicle/legendgrouptitle/font/__init__.py b/plotly/validators/icicle/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/icicle/legendgrouptitle/font/__init__.py +++ b/plotly/validators/icicle/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/icicle/legendgrouptitle/font/_color.py b/plotly/validators/icicle/legendgrouptitle/font/_color.py index 7ba3447ebc..ad6e353c80 100644 --- a/plotly/validators/icicle/legendgrouptitle/font/_color.py +++ b/plotly/validators/icicle/legendgrouptitle/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/icicle/legendgrouptitle/font/_family.py b/plotly/validators/icicle/legendgrouptitle/font/_family.py index f091b18b4a..4b309d4948 100644 --- a/plotly/validators/icicle/legendgrouptitle/font/_family.py +++ b/plotly/validators/icicle/legendgrouptitle/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/icicle/legendgrouptitle/font/_lineposition.py b/plotly/validators/icicle/legendgrouptitle/font/_lineposition.py index bb06b9ea2e..4152adc3a4 100644 --- a/plotly/validators/icicle/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/icicle/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/icicle/legendgrouptitle/font/_shadow.py b/plotly/validators/icicle/legendgrouptitle/font/_shadow.py index 12c7d21e5c..f98797d16f 100644 --- a/plotly/validators/icicle/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/icicle/legendgrouptitle/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/icicle/legendgrouptitle/font/_size.py b/plotly/validators/icicle/legendgrouptitle/font/_size.py index 99b3d827e2..d6e21793ad 100644 --- a/plotly/validators/icicle/legendgrouptitle/font/_size.py +++ b/plotly/validators/icicle/legendgrouptitle/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/icicle/legendgrouptitle/font/_style.py b/plotly/validators/icicle/legendgrouptitle/font/_style.py index 4885ec8af0..7f428f6641 100644 --- a/plotly/validators/icicle/legendgrouptitle/font/_style.py +++ b/plotly/validators/icicle/legendgrouptitle/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/icicle/legendgrouptitle/font/_textcase.py b/plotly/validators/icicle/legendgrouptitle/font/_textcase.py index 23a1348ad3..89c1ca0d61 100644 --- a/plotly/validators/icicle/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/icicle/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/icicle/legendgrouptitle/font/_variant.py b/plotly/validators/icicle/legendgrouptitle/font/_variant.py index f9f7870629..992a1eee24 100644 --- a/plotly/validators/icicle/legendgrouptitle/font/_variant.py +++ b/plotly/validators/icicle/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/icicle/legendgrouptitle/font/_weight.py b/plotly/validators/icicle/legendgrouptitle/font/_weight.py index 0d5c3f8f44..90882c3c50 100644 --- a/plotly/validators/icicle/legendgrouptitle/font/_weight.py +++ b/plotly/validators/icicle/legendgrouptitle/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/icicle/marker/__init__.py b/plotly/validators/icicle/marker/__init__.py index e04f18cc55..a739102172 100644 --- a/plotly/validators/icicle/marker/__init__.py +++ b/plotly/validators/icicle/marker/__init__.py @@ -1,41 +1,23 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._showscale import ShowscaleValidator - from ._reversescale import ReversescaleValidator - from ._pattern import PatternValidator - from ._line import LineValidator - from ._colorssrc import ColorssrcValidator - from ._colorscale import ColorscaleValidator - from ._colors import ColorsValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/icicle/marker/_autocolorscale.py b/plotly/validators/icicle/marker/_autocolorscale.py index fbda823fd5..3710ff9235 100644 --- a/plotly/validators/icicle/marker/_autocolorscale.py +++ b/plotly/validators/icicle/marker/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/icicle/marker/_cauto.py b/plotly/validators/icicle/marker/_cauto.py index 0d8e75843d..89064dc252 100644 --- a/plotly/validators/icicle/marker/_cauto.py +++ b/plotly/validators/icicle/marker/_cauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/icicle/marker/_cmax.py b/plotly/validators/icicle/marker/_cmax.py index 34f0f483ce..308c212c89 100644 --- a/plotly/validators/icicle/marker/_cmax.py +++ b/plotly/validators/icicle/marker/_cmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/icicle/marker/_cmid.py b/plotly/validators/icicle/marker/_cmid.py index 6e1d2a2fa2..d281f9ce0a 100644 --- a/plotly/validators/icicle/marker/_cmid.py +++ b/plotly/validators/icicle/marker/_cmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/icicle/marker/_cmin.py b/plotly/validators/icicle/marker/_cmin.py index 6adff68d91..60c55d1ce6 100644 --- a/plotly/validators/icicle/marker/_cmin.py +++ b/plotly/validators/icicle/marker/_cmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/icicle/marker/_coloraxis.py b/plotly/validators/icicle/marker/_coloraxis.py index df64c293f4..96d1340f50 100644 --- a/plotly/validators/icicle/marker/_coloraxis.py +++ b/plotly/validators/icicle/marker/_coloraxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/icicle/marker/_colorbar.py b/plotly/validators/icicle/marker/_colorbar.py index d2eb2afe7c..95a9049b5b 100644 --- a/plotly/validators/icicle/marker/_colorbar.py +++ b/plotly/validators/icicle/marker/_colorbar.py @@ -1,279 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/icicle/marker/_colors.py b/plotly/validators/icicle/marker/_colors.py index 88126c233a..e681b55b96 100644 --- a/plotly/validators/icicle/marker/_colors.py +++ b/plotly/validators/icicle/marker/_colors.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/_colorscale.py b/plotly/validators/icicle/marker/_colorscale.py index 0613df37d7..60a4933b23 100644 --- a/plotly/validators/icicle/marker/_colorscale.py +++ b/plotly/validators/icicle/marker/_colorscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/icicle/marker/_colorssrc.py b/plotly/validators/icicle/marker/_colorssrc.py index 2e3dd48567..c7aa0a6a08 100644 --- a/plotly/validators/icicle/marker/_colorssrc.py +++ b/plotly/validators/icicle/marker/_colorssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/_line.py b/plotly/validators/icicle/marker/_line.py index d8214e5693..a98b3886f7 100644 --- a/plotly/validators/icicle/marker/_line.py +++ b/plotly/validators/icicle/marker/_line.py @@ -1,27 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/icicle/marker/_pattern.py b/plotly/validators/icicle/marker/_pattern.py index 7012c43eb3..1f1dc46217 100644 --- a/plotly/validators/icicle/marker/_pattern.py +++ b/plotly/validators/icicle/marker/_pattern.py @@ -1,63 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PatternValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/icicle/marker/_reversescale.py b/plotly/validators/icicle/marker/_reversescale.py index c1ebc8e1cd..8803192fae 100644 --- a/plotly/validators/icicle/marker/_reversescale.py +++ b/plotly/validators/icicle/marker/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/_showscale.py b/plotly/validators/icicle/marker/_showscale.py index c8f6effec0..a4b78d5283 100644 --- a/plotly/validators/icicle/marker/_showscale.py +++ b/plotly/validators/icicle/marker/_showscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/colorbar/__init__.py b/plotly/validators/icicle/marker/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/icicle/marker/colorbar/__init__.py +++ b/plotly/validators/icicle/marker/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/icicle/marker/colorbar/_bgcolor.py b/plotly/validators/icicle/marker/colorbar/_bgcolor.py index fa9f5783b2..b28c13b6c4 100644 --- a/plotly/validators/icicle/marker/colorbar/_bgcolor.py +++ b/plotly/validators/icicle/marker/colorbar/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/colorbar/_bordercolor.py b/plotly/validators/icicle/marker/colorbar/_bordercolor.py index 1da5ce7de5..f72d7f81c4 100644 --- a/plotly/validators/icicle/marker/colorbar/_bordercolor.py +++ b/plotly/validators/icicle/marker/colorbar/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/colorbar/_borderwidth.py b/plotly/validators/icicle/marker/colorbar/_borderwidth.py index db62d8b423..f7bce3e5dc 100644 --- a/plotly/validators/icicle/marker/colorbar/_borderwidth.py +++ b/plotly/validators/icicle/marker/colorbar/_borderwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/icicle/marker/colorbar/_dtick.py b/plotly/validators/icicle/marker/colorbar/_dtick.py index 7d546f422b..6d48f9b403 100644 --- a/plotly/validators/icicle/marker/colorbar/_dtick.py +++ b/plotly/validators/icicle/marker/colorbar/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/icicle/marker/colorbar/_exponentformat.py b/plotly/validators/icicle/marker/colorbar/_exponentformat.py index e605ed8825..8738e183bb 100644 --- a/plotly/validators/icicle/marker/colorbar/_exponentformat.py +++ b/plotly/validators/icicle/marker/colorbar/_exponentformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/icicle/marker/colorbar/_labelalias.py b/plotly/validators/icicle/marker/colorbar/_labelalias.py index 0e22588ca3..20c92de511 100644 --- a/plotly/validators/icicle/marker/colorbar/_labelalias.py +++ b/plotly/validators/icicle/marker/colorbar/_labelalias.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/colorbar/_len.py b/plotly/validators/icicle/marker/colorbar/_len.py index 2741afb765..4f9b1cf1cf 100644 --- a/plotly/validators/icicle/marker/colorbar/_len.py +++ b/plotly/validators/icicle/marker/colorbar/_len.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/icicle/marker/colorbar/_lenmode.py b/plotly/validators/icicle/marker/colorbar/_lenmode.py index e36b8704a5..de77b2fcd2 100644 --- a/plotly/validators/icicle/marker/colorbar/_lenmode.py +++ b/plotly/validators/icicle/marker/colorbar/_lenmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/icicle/marker/colorbar/_minexponent.py b/plotly/validators/icicle/marker/colorbar/_minexponent.py index 5b104b90a6..c86bb8c5a3 100644 --- a/plotly/validators/icicle/marker/colorbar/_minexponent.py +++ b/plotly/validators/icicle/marker/colorbar/_minexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/icicle/marker/colorbar/_nticks.py b/plotly/validators/icicle/marker/colorbar/_nticks.py index 1db940d834..43719ab4ff 100644 --- a/plotly/validators/icicle/marker/colorbar/_nticks.py +++ b/plotly/validators/icicle/marker/colorbar/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/icicle/marker/colorbar/_orientation.py b/plotly/validators/icicle/marker/colorbar/_orientation.py index f692ef4c9d..ba0521528c 100644 --- a/plotly/validators/icicle/marker/colorbar/_orientation.py +++ b/plotly/validators/icicle/marker/colorbar/_orientation.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/icicle/marker/colorbar/_outlinecolor.py b/plotly/validators/icicle/marker/colorbar/_outlinecolor.py index 230aa641fe..bfba2f0193 100644 --- a/plotly/validators/icicle/marker/colorbar/_outlinecolor.py +++ b/plotly/validators/icicle/marker/colorbar/_outlinecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/colorbar/_outlinewidth.py b/plotly/validators/icicle/marker/colorbar/_outlinewidth.py index 422cd26db5..4d9d5c7a00 100644 --- a/plotly/validators/icicle/marker/colorbar/_outlinewidth.py +++ b/plotly/validators/icicle/marker/colorbar/_outlinewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/icicle/marker/colorbar/_separatethousands.py b/plotly/validators/icicle/marker/colorbar/_separatethousands.py index aaece5240f..56b0c914dc 100644 --- a/plotly/validators/icicle/marker/colorbar/_separatethousands.py +++ b/plotly/validators/icicle/marker/colorbar/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/colorbar/_showexponent.py b/plotly/validators/icicle/marker/colorbar/_showexponent.py index d7be46bd1b..754d0bdd68 100644 --- a/plotly/validators/icicle/marker/colorbar/_showexponent.py +++ b/plotly/validators/icicle/marker/colorbar/_showexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/icicle/marker/colorbar/_showticklabels.py b/plotly/validators/icicle/marker/colorbar/_showticklabels.py index 6283fafe5b..6136ee6b05 100644 --- a/plotly/validators/icicle/marker/colorbar/_showticklabels.py +++ b/plotly/validators/icicle/marker/colorbar/_showticklabels.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/colorbar/_showtickprefix.py b/plotly/validators/icicle/marker/colorbar/_showtickprefix.py index c52591689c..50bc832028 100644 --- a/plotly/validators/icicle/marker/colorbar/_showtickprefix.py +++ b/plotly/validators/icicle/marker/colorbar/_showtickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/icicle/marker/colorbar/_showticksuffix.py b/plotly/validators/icicle/marker/colorbar/_showticksuffix.py index f89842776f..c07dcf2a6a 100644 --- a/plotly/validators/icicle/marker/colorbar/_showticksuffix.py +++ b/plotly/validators/icicle/marker/colorbar/_showticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/icicle/marker/colorbar/_thickness.py b/plotly/validators/icicle/marker/colorbar/_thickness.py index 5f2d68ec6a..4a4cda3641 100644 --- a/plotly/validators/icicle/marker/colorbar/_thickness.py +++ b/plotly/validators/icicle/marker/colorbar/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/icicle/marker/colorbar/_thicknessmode.py b/plotly/validators/icicle/marker/colorbar/_thicknessmode.py index 63d79127e7..7129a6606b 100644 --- a/plotly/validators/icicle/marker/colorbar/_thicknessmode.py +++ b/plotly/validators/icicle/marker/colorbar/_thicknessmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/icicle/marker/colorbar/_tick0.py b/plotly/validators/icicle/marker/colorbar/_tick0.py index 445f4d6829..54b2162f21 100644 --- a/plotly/validators/icicle/marker/colorbar/_tick0.py +++ b/plotly/validators/icicle/marker/colorbar/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/icicle/marker/colorbar/_tickangle.py b/plotly/validators/icicle/marker/colorbar/_tickangle.py index f7209bcc24..635908f988 100644 --- a/plotly/validators/icicle/marker/colorbar/_tickangle.py +++ b/plotly/validators/icicle/marker/colorbar/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/colorbar/_tickcolor.py b/plotly/validators/icicle/marker/colorbar/_tickcolor.py index 16b55ff9d8..5e535d0feb 100644 --- a/plotly/validators/icicle/marker/colorbar/_tickcolor.py +++ b/plotly/validators/icicle/marker/colorbar/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/colorbar/_tickfont.py b/plotly/validators/icicle/marker/colorbar/_tickfont.py index e5aecba726..349519a868 100644 --- a/plotly/validators/icicle/marker/colorbar/_tickfont.py +++ b/plotly/validators/icicle/marker/colorbar/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/icicle/marker/colorbar/_tickformat.py b/plotly/validators/icicle/marker/colorbar/_tickformat.py index b847759445..debe3bca8a 100644 --- a/plotly/validators/icicle/marker/colorbar/_tickformat.py +++ b/plotly/validators/icicle/marker/colorbar/_tickformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/colorbar/_tickformatstopdefaults.py b/plotly/validators/icicle/marker/colorbar/_tickformatstopdefaults.py index 197c5cc571..7628b23796 100644 --- a/plotly/validators/icicle/marker/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/icicle/marker/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/icicle/marker/colorbar/_tickformatstops.py b/plotly/validators/icicle/marker/colorbar/_tickformatstops.py index 445c5a27b2..9207d72b92 100644 --- a/plotly/validators/icicle/marker/colorbar/_tickformatstops.py +++ b/plotly/validators/icicle/marker/colorbar/_tickformatstops.py @@ -1,53 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/icicle/marker/colorbar/_ticklabeloverflow.py b/plotly/validators/icicle/marker/colorbar/_ticklabeloverflow.py index be916f41a1..21971a3043 100644 --- a/plotly/validators/icicle/marker/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/icicle/marker/colorbar/_ticklabeloverflow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/icicle/marker/colorbar/_ticklabelposition.py b/plotly/validators/icicle/marker/colorbar/_ticklabelposition.py index 1cec6e94eb..3b594416d1 100644 --- a/plotly/validators/icicle/marker/colorbar/_ticklabelposition.py +++ b/plotly/validators/icicle/marker/colorbar/_ticklabelposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/icicle/marker/colorbar/_ticklabelstep.py b/plotly/validators/icicle/marker/colorbar/_ticklabelstep.py index 797ca3d141..a3eddd8559 100644 --- a/plotly/validators/icicle/marker/colorbar/_ticklabelstep.py +++ b/plotly/validators/icicle/marker/colorbar/_ticklabelstep.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/icicle/marker/colorbar/_ticklen.py b/plotly/validators/icicle/marker/colorbar/_ticklen.py index c0554e8a2b..c281ce5f5a 100644 --- a/plotly/validators/icicle/marker/colorbar/_ticklen.py +++ b/plotly/validators/icicle/marker/colorbar/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/icicle/marker/colorbar/_tickmode.py b/plotly/validators/icicle/marker/colorbar/_tickmode.py index 903047f698..c1aaaa10b1 100644 --- a/plotly/validators/icicle/marker/colorbar/_tickmode.py +++ b/plotly/validators/icicle/marker/colorbar/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/icicle/marker/colorbar/_tickprefix.py b/plotly/validators/icicle/marker/colorbar/_tickprefix.py index e767a51254..22cd50d02f 100644 --- a/plotly/validators/icicle/marker/colorbar/_tickprefix.py +++ b/plotly/validators/icicle/marker/colorbar/_tickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/colorbar/_ticks.py b/plotly/validators/icicle/marker/colorbar/_ticks.py index 18b78bc930..504195bc6d 100644 --- a/plotly/validators/icicle/marker/colorbar/_ticks.py +++ b/plotly/validators/icicle/marker/colorbar/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/icicle/marker/colorbar/_ticksuffix.py b/plotly/validators/icicle/marker/colorbar/_ticksuffix.py index 34a95ece97..422fe67bbc 100644 --- a/plotly/validators/icicle/marker/colorbar/_ticksuffix.py +++ b/plotly/validators/icicle/marker/colorbar/_ticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/colorbar/_ticktext.py b/plotly/validators/icicle/marker/colorbar/_ticktext.py index b52c764e66..fcc7913814 100644 --- a/plotly/validators/icicle/marker/colorbar/_ticktext.py +++ b/plotly/validators/icicle/marker/colorbar/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/colorbar/_ticktextsrc.py b/plotly/validators/icicle/marker/colorbar/_ticktextsrc.py index 2ffed91054..0cbbcbe7b3 100644 --- a/plotly/validators/icicle/marker/colorbar/_ticktextsrc.py +++ b/plotly/validators/icicle/marker/colorbar/_ticktextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/colorbar/_tickvals.py b/plotly/validators/icicle/marker/colorbar/_tickvals.py index 78abd1be59..fdf8860fb4 100644 --- a/plotly/validators/icicle/marker/colorbar/_tickvals.py +++ b/plotly/validators/icicle/marker/colorbar/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/colorbar/_tickvalssrc.py b/plotly/validators/icicle/marker/colorbar/_tickvalssrc.py index dfebf55f40..5512ffea6f 100644 --- a/plotly/validators/icicle/marker/colorbar/_tickvalssrc.py +++ b/plotly/validators/icicle/marker/colorbar/_tickvalssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/colorbar/_tickwidth.py b/plotly/validators/icicle/marker/colorbar/_tickwidth.py index 5b62b4f0b2..18448b93b8 100644 --- a/plotly/validators/icicle/marker/colorbar/_tickwidth.py +++ b/plotly/validators/icicle/marker/colorbar/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/icicle/marker/colorbar/_title.py b/plotly/validators/icicle/marker/colorbar/_title.py index 7c843601ad..b7716ae58d 100644 --- a/plotly/validators/icicle/marker/colorbar/_title.py +++ b/plotly/validators/icicle/marker/colorbar/_title.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/icicle/marker/colorbar/_x.py b/plotly/validators/icicle/marker/colorbar/_x.py index b6785a4d3a..3781ae2300 100644 --- a/plotly/validators/icicle/marker/colorbar/_x.py +++ b/plotly/validators/icicle/marker/colorbar/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/colorbar/_xanchor.py b/plotly/validators/icicle/marker/colorbar/_xanchor.py index 87db6a8759..fc7d29b11b 100644 --- a/plotly/validators/icicle/marker/colorbar/_xanchor.py +++ b/plotly/validators/icicle/marker/colorbar/_xanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/icicle/marker/colorbar/_xpad.py b/plotly/validators/icicle/marker/colorbar/_xpad.py index a7b622b57b..b53987925b 100644 --- a/plotly/validators/icicle/marker/colorbar/_xpad.py +++ b/plotly/validators/icicle/marker/colorbar/_xpad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/icicle/marker/colorbar/_xref.py b/plotly/validators/icicle/marker/colorbar/_xref.py index a38099956a..44cdb09854 100644 --- a/plotly/validators/icicle/marker/colorbar/_xref.py +++ b/plotly/validators/icicle/marker/colorbar/_xref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/icicle/marker/colorbar/_y.py b/plotly/validators/icicle/marker/colorbar/_y.py index 4c0182ae49..b39430952b 100644 --- a/plotly/validators/icicle/marker/colorbar/_y.py +++ b/plotly/validators/icicle/marker/colorbar/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/colorbar/_yanchor.py b/plotly/validators/icicle/marker/colorbar/_yanchor.py index a6183bd8cb..6a5af6f4c6 100644 --- a/plotly/validators/icicle/marker/colorbar/_yanchor.py +++ b/plotly/validators/icicle/marker/colorbar/_yanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/icicle/marker/colorbar/_ypad.py b/plotly/validators/icicle/marker/colorbar/_ypad.py index d9cd5245fd..8be2d3c297 100644 --- a/plotly/validators/icicle/marker/colorbar/_ypad.py +++ b/plotly/validators/icicle/marker/colorbar/_ypad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/icicle/marker/colorbar/_yref.py b/plotly/validators/icicle/marker/colorbar/_yref.py index 386ff0d380..1ee791ef69 100644 --- a/plotly/validators/icicle/marker/colorbar/_yref.py +++ b/plotly/validators/icicle/marker/colorbar/_yref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/icicle/marker/colorbar/tickfont/__init__.py b/plotly/validators/icicle/marker/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/icicle/marker/colorbar/tickfont/__init__.py +++ b/plotly/validators/icicle/marker/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/icicle/marker/colorbar/tickfont/_color.py b/plotly/validators/icicle/marker/colorbar/tickfont/_color.py index d443183a5b..436cc4aa77 100644 --- a/plotly/validators/icicle/marker/colorbar/tickfont/_color.py +++ b/plotly/validators/icicle/marker/colorbar/tickfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/colorbar/tickfont/_family.py b/plotly/validators/icicle/marker/colorbar/tickfont/_family.py index 6fed1a7824..17a4ae9a31 100644 --- a/plotly/validators/icicle/marker/colorbar/tickfont/_family.py +++ b/plotly/validators/icicle/marker/colorbar/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/icicle/marker/colorbar/tickfont/_lineposition.py b/plotly/validators/icicle/marker/colorbar/tickfont/_lineposition.py index 299c09df74..dd1b7d0996 100644 --- a/plotly/validators/icicle/marker/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/icicle/marker/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/icicle/marker/colorbar/tickfont/_shadow.py b/plotly/validators/icicle/marker/colorbar/tickfont/_shadow.py index 009eacd553..e80e265a16 100644 --- a/plotly/validators/icicle/marker/colorbar/tickfont/_shadow.py +++ b/plotly/validators/icicle/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/colorbar/tickfont/_size.py b/plotly/validators/icicle/marker/colorbar/tickfont/_size.py index 04e6a0eec0..7fa6183b83 100644 --- a/plotly/validators/icicle/marker/colorbar/tickfont/_size.py +++ b/plotly/validators/icicle/marker/colorbar/tickfont/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/icicle/marker/colorbar/tickfont/_style.py b/plotly/validators/icicle/marker/colorbar/tickfont/_style.py index 7c0750eb39..0f26cdab51 100644 --- a/plotly/validators/icicle/marker/colorbar/tickfont/_style.py +++ b/plotly/validators/icicle/marker/colorbar/tickfont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/icicle/marker/colorbar/tickfont/_textcase.py b/plotly/validators/icicle/marker/colorbar/tickfont/_textcase.py index cc25281e4d..95010d8d28 100644 --- a/plotly/validators/icicle/marker/colorbar/tickfont/_textcase.py +++ b/plotly/validators/icicle/marker/colorbar/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/icicle/marker/colorbar/tickfont/_variant.py b/plotly/validators/icicle/marker/colorbar/tickfont/_variant.py index 8bbb85255a..8cafc0b0a4 100644 --- a/plotly/validators/icicle/marker/colorbar/tickfont/_variant.py +++ b/plotly/validators/icicle/marker/colorbar/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/icicle/marker/colorbar/tickfont/_weight.py b/plotly/validators/icicle/marker/colorbar/tickfont/_weight.py index 2c26c2dd78..47bd3ee1c1 100644 --- a/plotly/validators/icicle/marker/colorbar/tickfont/_weight.py +++ b/plotly/validators/icicle/marker/colorbar/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/icicle/marker/colorbar/tickformatstop/__init__.py b/plotly/validators/icicle/marker/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/icicle/marker/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/icicle/marker/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/icicle/marker/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/icicle/marker/colorbar/tickformatstop/_dtickrange.py index 57d8ad3b08..9d58b371fc 100644 --- a/plotly/validators/icicle/marker/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/icicle/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( "items", diff --git a/plotly/validators/icicle/marker/colorbar/tickformatstop/_enabled.py b/plotly/validators/icicle/marker/colorbar/tickformatstop/_enabled.py index 9e59dced6c..b26825b2c5 100644 --- a/plotly/validators/icicle/marker/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/icicle/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/colorbar/tickformatstop/_name.py b/plotly/validators/icicle/marker/colorbar/tickformatstop/_name.py index 1cdad308db..7713912770 100644 --- a/plotly/validators/icicle/marker/colorbar/tickformatstop/_name.py +++ b/plotly/validators/icicle/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/icicle/marker/colorbar/tickformatstop/_templateitemname.py index 1fabf12e9e..90fd292978 100644 --- a/plotly/validators/icicle/marker/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/icicle/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/colorbar/tickformatstop/_value.py b/plotly/validators/icicle/marker/colorbar/tickformatstop/_value.py index 884c5d4acb..3be42fa2cb 100644 --- a/plotly/validators/icicle/marker/colorbar/tickformatstop/_value.py +++ b/plotly/validators/icicle/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/colorbar/title/__init__.py b/plotly/validators/icicle/marker/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/icicle/marker/colorbar/title/__init__.py +++ b/plotly/validators/icicle/marker/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/icicle/marker/colorbar/title/_font.py b/plotly/validators/icicle/marker/colorbar/title/_font.py index 5d21f53fa4..aafccacff1 100644 --- a/plotly/validators/icicle/marker/colorbar/title/_font.py +++ b/plotly/validators/icicle/marker/colorbar/title/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/icicle/marker/colorbar/title/_side.py b/plotly/validators/icicle/marker/colorbar/title/_side.py index 1abdac5d20..a8d811e044 100644 --- a/plotly/validators/icicle/marker/colorbar/title/_side.py +++ b/plotly/validators/icicle/marker/colorbar/title/_side.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/icicle/marker/colorbar/title/_text.py b/plotly/validators/icicle/marker/colorbar/title/_text.py index 7740a24f93..3c0e682231 100644 --- a/plotly/validators/icicle/marker/colorbar/title/_text.py +++ b/plotly/validators/icicle/marker/colorbar/title/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/colorbar/title/font/__init__.py b/plotly/validators/icicle/marker/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/icicle/marker/colorbar/title/font/__init__.py +++ b/plotly/validators/icicle/marker/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/icicle/marker/colorbar/title/font/_color.py b/plotly/validators/icicle/marker/colorbar/title/font/_color.py index 01f4bbf3b6..39bbb801a4 100644 --- a/plotly/validators/icicle/marker/colorbar/title/font/_color.py +++ b/plotly/validators/icicle/marker/colorbar/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/colorbar/title/font/_family.py b/plotly/validators/icicle/marker/colorbar/title/font/_family.py index cc0616510f..89589c209a 100644 --- a/plotly/validators/icicle/marker/colorbar/title/font/_family.py +++ b/plotly/validators/icicle/marker/colorbar/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/icicle/marker/colorbar/title/font/_lineposition.py b/plotly/validators/icicle/marker/colorbar/title/font/_lineposition.py index 85803587af..52b0cae91d 100644 --- a/plotly/validators/icicle/marker/colorbar/title/font/_lineposition.py +++ b/plotly/validators/icicle/marker/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/icicle/marker/colorbar/title/font/_shadow.py b/plotly/validators/icicle/marker/colorbar/title/font/_shadow.py index 6ddc7cef5e..5d0218a3d4 100644 --- a/plotly/validators/icicle/marker/colorbar/title/font/_shadow.py +++ b/plotly/validators/icicle/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/colorbar/title/font/_size.py b/plotly/validators/icicle/marker/colorbar/title/font/_size.py index f8e6e0bf8e..54e4b14a0d 100644 --- a/plotly/validators/icicle/marker/colorbar/title/font/_size.py +++ b/plotly/validators/icicle/marker/colorbar/title/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/icicle/marker/colorbar/title/font/_style.py b/plotly/validators/icicle/marker/colorbar/title/font/_style.py index 7a9f9b5a26..25523c3633 100644 --- a/plotly/validators/icicle/marker/colorbar/title/font/_style.py +++ b/plotly/validators/icicle/marker/colorbar/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/icicle/marker/colorbar/title/font/_textcase.py b/plotly/validators/icicle/marker/colorbar/title/font/_textcase.py index 13d933911e..5beb5d8e66 100644 --- a/plotly/validators/icicle/marker/colorbar/title/font/_textcase.py +++ b/plotly/validators/icicle/marker/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/icicle/marker/colorbar/title/font/_variant.py b/plotly/validators/icicle/marker/colorbar/title/font/_variant.py index 715af89e21..f5550fa85b 100644 --- a/plotly/validators/icicle/marker/colorbar/title/font/_variant.py +++ b/plotly/validators/icicle/marker/colorbar/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/icicle/marker/colorbar/title/font/_weight.py b/plotly/validators/icicle/marker/colorbar/title/font/_weight.py index 2e2036b9e0..9c970d4697 100644 --- a/plotly/validators/icicle/marker/colorbar/title/font/_weight.py +++ b/plotly/validators/icicle/marker/colorbar/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/icicle/marker/line/__init__.py b/plotly/validators/icicle/marker/line/__init__.py index a2b9e1ae50..ca6d32f725 100644 --- a/plotly/validators/icicle/marker/line/__init__.py +++ b/plotly/validators/icicle/marker/line/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._widthsrc import WidthsrcValidator - from ._width import WidthValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._widthsrc.WidthsrcValidator", + "._width.WidthValidator", + "._colorsrc.ColorsrcValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/icicle/marker/line/_color.py b/plotly/validators/icicle/marker/line/_color.py index 843330469a..2bc6ac7fcd 100644 --- a/plotly/validators/icicle/marker/line/_color.py +++ b/plotly/validators/icicle/marker/line/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/icicle/marker/line/_colorsrc.py b/plotly/validators/icicle/marker/line/_colorsrc.py index 7acea6a22e..eccd00db4e 100644 --- a/plotly/validators/icicle/marker/line/_colorsrc.py +++ b/plotly/validators/icicle/marker/line/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/line/_width.py b/plotly/validators/icicle/marker/line/_width.py index e191ed688a..70a9dfdaf2 100644 --- a/plotly/validators/icicle/marker/line/_width.py +++ b/plotly/validators/icicle/marker/line/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/icicle/marker/line/_widthsrc.py b/plotly/validators/icicle/marker/line/_widthsrc.py index fd5cce9896..f25cbd0fed 100644 --- a/plotly/validators/icicle/marker/line/_widthsrc.py +++ b/plotly/validators/icicle/marker/line/_widthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/pattern/__init__.py b/plotly/validators/icicle/marker/pattern/__init__.py index e190f962c4..e42ccc4d0f 100644 --- a/plotly/validators/icicle/marker/pattern/__init__.py +++ b/plotly/validators/icicle/marker/pattern/__init__.py @@ -1,37 +1,21 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._soliditysrc import SoliditysrcValidator - from ._solidity import SolidityValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shapesrc import ShapesrcValidator - from ._shape import ShapeValidator - from ._fillmode import FillmodeValidator - from ._fgopacity import FgopacityValidator - from ._fgcolorsrc import FgcolorsrcValidator - from ._fgcolor import FgcolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/icicle/marker/pattern/_bgcolor.py b/plotly/validators/icicle/marker/pattern/_bgcolor.py index 52bf7209a5..a92c0a07a8 100644 --- a/plotly/validators/icicle/marker/pattern/_bgcolor.py +++ b/plotly/validators/icicle/marker/pattern/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/icicle/marker/pattern/_bgcolorsrc.py b/plotly/validators/icicle/marker/pattern/_bgcolorsrc.py index fc5488453b..6933a273a8 100644 --- a/plotly/validators/icicle/marker/pattern/_bgcolorsrc.py +++ b/plotly/validators/icicle/marker/pattern/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/pattern/_fgcolor.py b/plotly/validators/icicle/marker/pattern/_fgcolor.py index afe0c597b6..0894baf60e 100644 --- a/plotly/validators/icicle/marker/pattern/_fgcolor.py +++ b/plotly/validators/icicle/marker/pattern/_fgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/icicle/marker/pattern/_fgcolorsrc.py b/plotly/validators/icicle/marker/pattern/_fgcolorsrc.py index 8a8763ab18..50ebb10903 100644 --- a/plotly/validators/icicle/marker/pattern/_fgcolorsrc.py +++ b/plotly/validators/icicle/marker/pattern/_fgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/pattern/_fgopacity.py b/plotly/validators/icicle/marker/pattern/_fgopacity.py index c1fe328450..a4fb602da5 100644 --- a/plotly/validators/icicle/marker/pattern/_fgopacity.py +++ b/plotly/validators/icicle/marker/pattern/_fgopacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FgopacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/icicle/marker/pattern/_fillmode.py b/plotly/validators/icicle/marker/pattern/_fillmode.py index 891ad6586a..81cb89bb93 100644 --- a/plotly/validators/icicle/marker/pattern/_fillmode.py +++ b/plotly/validators/icicle/marker/pattern/_fillmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["replace", "overlay"]), **kwargs, diff --git a/plotly/validators/icicle/marker/pattern/_shape.py b/plotly/validators/icicle/marker/pattern/_shape.py index 0a37785fe0..522a37d921 100644 --- a/plotly/validators/icicle/marker/pattern/_shape.py +++ b/plotly/validators/icicle/marker/pattern/_shape.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["", "/", "\\", "x", "-", "|", "+", "."]), diff --git a/plotly/validators/icicle/marker/pattern/_shapesrc.py b/plotly/validators/icicle/marker/pattern/_shapesrc.py index 708ee5a323..5632acbc1c 100644 --- a/plotly/validators/icicle/marker/pattern/_shapesrc.py +++ b/plotly/validators/icicle/marker/pattern/_shapesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShapesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/pattern/_size.py b/plotly/validators/icicle/marker/pattern/_size.py index 97d803323d..abf10f7db7 100644 --- a/plotly/validators/icicle/marker/pattern/_size.py +++ b/plotly/validators/icicle/marker/pattern/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/icicle/marker/pattern/_sizesrc.py b/plotly/validators/icicle/marker/pattern/_sizesrc.py index ef87676910..3b5b12240f 100644 --- a/plotly/validators/icicle/marker/pattern/_sizesrc.py +++ b/plotly/validators/icicle/marker/pattern/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/marker/pattern/_solidity.py b/plotly/validators/icicle/marker/pattern/_solidity.py index 4b7dc62454..a1a81d12f0 100644 --- a/plotly/validators/icicle/marker/pattern/_solidity.py +++ b/plotly/validators/icicle/marker/pattern/_solidity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SolidityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), diff --git a/plotly/validators/icicle/marker/pattern/_soliditysrc.py b/plotly/validators/icicle/marker/pattern/_soliditysrc.py index caf94f84f9..6005672d90 100644 --- a/plotly/validators/icicle/marker/pattern/_soliditysrc.py +++ b/plotly/validators/icicle/marker/pattern/_soliditysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SoliditysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/outsidetextfont/__init__.py b/plotly/validators/icicle/outsidetextfont/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/icicle/outsidetextfont/__init__.py +++ b/plotly/validators/icicle/outsidetextfont/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/icicle/outsidetextfont/_color.py b/plotly/validators/icicle/outsidetextfont/_color.py index 37ae1a4336..0b84f81e7b 100644 --- a/plotly/validators/icicle/outsidetextfont/_color.py +++ b/plotly/validators/icicle/outsidetextfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/icicle/outsidetextfont/_colorsrc.py b/plotly/validators/icicle/outsidetextfont/_colorsrc.py index fd77cab371..922da5c7a2 100644 --- a/plotly/validators/icicle/outsidetextfont/_colorsrc.py +++ b/plotly/validators/icicle/outsidetextfont/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/outsidetextfont/_family.py b/plotly/validators/icicle/outsidetextfont/_family.py index c8ba28e6ce..c3f524da60 100644 --- a/plotly/validators/icicle/outsidetextfont/_family.py +++ b/plotly/validators/icicle/outsidetextfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/icicle/outsidetextfont/_familysrc.py b/plotly/validators/icicle/outsidetextfont/_familysrc.py index f7b81cae63..eb566e7a98 100644 --- a/plotly/validators/icicle/outsidetextfont/_familysrc.py +++ b/plotly/validators/icicle/outsidetextfont/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/outsidetextfont/_lineposition.py b/plotly/validators/icicle/outsidetextfont/_lineposition.py index 5123b343d2..26e44b7004 100644 --- a/plotly/validators/icicle/outsidetextfont/_lineposition.py +++ b/plotly/validators/icicle/outsidetextfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/icicle/outsidetextfont/_linepositionsrc.py b/plotly/validators/icicle/outsidetextfont/_linepositionsrc.py index 263608b4cb..ea74959719 100644 --- a/plotly/validators/icicle/outsidetextfont/_linepositionsrc.py +++ b/plotly/validators/icicle/outsidetextfont/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/outsidetextfont/_shadow.py b/plotly/validators/icicle/outsidetextfont/_shadow.py index c8bbfa24bf..a24f59656d 100644 --- a/plotly/validators/icicle/outsidetextfont/_shadow.py +++ b/plotly/validators/icicle/outsidetextfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/icicle/outsidetextfont/_shadowsrc.py b/plotly/validators/icicle/outsidetextfont/_shadowsrc.py index 2dddd9c2ee..825dde3ac8 100644 --- a/plotly/validators/icicle/outsidetextfont/_shadowsrc.py +++ b/plotly/validators/icicle/outsidetextfont/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/outsidetextfont/_size.py b/plotly/validators/icicle/outsidetextfont/_size.py index 6ab4657ec2..d3d1009a42 100644 --- a/plotly/validators/icicle/outsidetextfont/_size.py +++ b/plotly/validators/icicle/outsidetextfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/icicle/outsidetextfont/_sizesrc.py b/plotly/validators/icicle/outsidetextfont/_sizesrc.py index 130257818b..1b28005d05 100644 --- a/plotly/validators/icicle/outsidetextfont/_sizesrc.py +++ b/plotly/validators/icicle/outsidetextfont/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/outsidetextfont/_style.py b/plotly/validators/icicle/outsidetextfont/_style.py index 2f06a6f7b0..2fa463632d 100644 --- a/plotly/validators/icicle/outsidetextfont/_style.py +++ b/plotly/validators/icicle/outsidetextfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/icicle/outsidetextfont/_stylesrc.py b/plotly/validators/icicle/outsidetextfont/_stylesrc.py index 8e56130ee8..1ea77c111e 100644 --- a/plotly/validators/icicle/outsidetextfont/_stylesrc.py +++ b/plotly/validators/icicle/outsidetextfont/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/outsidetextfont/_textcase.py b/plotly/validators/icicle/outsidetextfont/_textcase.py index 2f452ad98c..024d907cb0 100644 --- a/plotly/validators/icicle/outsidetextfont/_textcase.py +++ b/plotly/validators/icicle/outsidetextfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/icicle/outsidetextfont/_textcasesrc.py b/plotly/validators/icicle/outsidetextfont/_textcasesrc.py index 188b0ae2da..809ebf181a 100644 --- a/plotly/validators/icicle/outsidetextfont/_textcasesrc.py +++ b/plotly/validators/icicle/outsidetextfont/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/outsidetextfont/_variant.py b/plotly/validators/icicle/outsidetextfont/_variant.py index 6665931eb3..da39c4cc0e 100644 --- a/plotly/validators/icicle/outsidetextfont/_variant.py +++ b/plotly/validators/icicle/outsidetextfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( diff --git a/plotly/validators/icicle/outsidetextfont/_variantsrc.py b/plotly/validators/icicle/outsidetextfont/_variantsrc.py index d66f62842b..5ba6c016d8 100644 --- a/plotly/validators/icicle/outsidetextfont/_variantsrc.py +++ b/plotly/validators/icicle/outsidetextfont/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/outsidetextfont/_weight.py b/plotly/validators/icicle/outsidetextfont/_weight.py index ed8c7f9915..348e3296dc 100644 --- a/plotly/validators/icicle/outsidetextfont/_weight.py +++ b/plotly/validators/icicle/outsidetextfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/icicle/outsidetextfont/_weightsrc.py b/plotly/validators/icicle/outsidetextfont/_weightsrc.py index 0f20507881..15cdcfc0bd 100644 --- a/plotly/validators/icicle/outsidetextfont/_weightsrc.py +++ b/plotly/validators/icicle/outsidetextfont/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/pathbar/__init__.py b/plotly/validators/icicle/pathbar/__init__.py index fce05faf91..7b4da4ccad 100644 --- a/plotly/validators/icicle/pathbar/__init__.py +++ b/plotly/validators/icicle/pathbar/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._visible import VisibleValidator - from ._thickness import ThicknessValidator - from ._textfont import TextfontValidator - from ._side import SideValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._visible.VisibleValidator", + "._thickness.ThicknessValidator", + "._textfont.TextfontValidator", + "._side.SideValidator", + "._edgeshape.EdgeshapeValidator", + ], +) diff --git a/plotly/validators/icicle/pathbar/_edgeshape.py b/plotly/validators/icicle/pathbar/_edgeshape.py index d02e2f9bfb..37e921b12c 100644 --- a/plotly/validators/icicle/pathbar/_edgeshape.py +++ b/plotly/validators/icicle/pathbar/_edgeshape.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EdgeshapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", [">", "<", "|", "/", "\\"]), **kwargs, diff --git a/plotly/validators/icicle/pathbar/_side.py b/plotly/validators/icicle/pathbar/_side.py index b095adbdb9..78a48d3c40 100644 --- a/plotly/validators/icicle/pathbar/_side.py +++ b/plotly/validators/icicle/pathbar/_side.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["top", "bottom"]), **kwargs, diff --git a/plotly/validators/icicle/pathbar/_textfont.py b/plotly/validators/icicle/pathbar/_textfont.py index b21c0850b1..83eabf36e7 100644 --- a/plotly/validators/icicle/pathbar/_textfont.py +++ b/plotly/validators/icicle/pathbar/_textfont.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/icicle/pathbar/_thickness.py b/plotly/validators/icicle/pathbar/_thickness.py index b5f221b2af..e842ea0ee9 100644 --- a/plotly/validators/icicle/pathbar/_thickness.py +++ b/plotly/validators/icicle/pathbar/_thickness.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 12), **kwargs, diff --git a/plotly/validators/icicle/pathbar/_visible.py b/plotly/validators/icicle/pathbar/_visible.py index ada8813be2..054e16e010 100644 --- a/plotly/validators/icicle/pathbar/_visible.py +++ b/plotly/validators/icicle/pathbar/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/icicle/pathbar/textfont/__init__.py b/plotly/validators/icicle/pathbar/textfont/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/icicle/pathbar/textfont/__init__.py +++ b/plotly/validators/icicle/pathbar/textfont/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/icicle/pathbar/textfont/_color.py b/plotly/validators/icicle/pathbar/textfont/_color.py index bb2bedf181..cdc2c05308 100644 --- a/plotly/validators/icicle/pathbar/textfont/_color.py +++ b/plotly/validators/icicle/pathbar/textfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/icicle/pathbar/textfont/_colorsrc.py b/plotly/validators/icicle/pathbar/textfont/_colorsrc.py index a0ed0ccb79..47e34cb02e 100644 --- a/plotly/validators/icicle/pathbar/textfont/_colorsrc.py +++ b/plotly/validators/icicle/pathbar/textfont/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/pathbar/textfont/_family.py b/plotly/validators/icicle/pathbar/textfont/_family.py index 5d7765f18a..97c8da45af 100644 --- a/plotly/validators/icicle/pathbar/textfont/_family.py +++ b/plotly/validators/icicle/pathbar/textfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/icicle/pathbar/textfont/_familysrc.py b/plotly/validators/icicle/pathbar/textfont/_familysrc.py index 5c79630722..3114f1d23e 100644 --- a/plotly/validators/icicle/pathbar/textfont/_familysrc.py +++ b/plotly/validators/icicle/pathbar/textfont/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/pathbar/textfont/_lineposition.py b/plotly/validators/icicle/pathbar/textfont/_lineposition.py index f1e7f7b06c..c6391bab8e 100644 --- a/plotly/validators/icicle/pathbar/textfont/_lineposition.py +++ b/plotly/validators/icicle/pathbar/textfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/icicle/pathbar/textfont/_linepositionsrc.py b/plotly/validators/icicle/pathbar/textfont/_linepositionsrc.py index 4aa154ed12..1a26cc355d 100644 --- a/plotly/validators/icicle/pathbar/textfont/_linepositionsrc.py +++ b/plotly/validators/icicle/pathbar/textfont/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/pathbar/textfont/_shadow.py b/plotly/validators/icicle/pathbar/textfont/_shadow.py index f50fb8d077..bfa606319a 100644 --- a/plotly/validators/icicle/pathbar/textfont/_shadow.py +++ b/plotly/validators/icicle/pathbar/textfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/icicle/pathbar/textfont/_shadowsrc.py b/plotly/validators/icicle/pathbar/textfont/_shadowsrc.py index 2b088b57e0..83f7c46b64 100644 --- a/plotly/validators/icicle/pathbar/textfont/_shadowsrc.py +++ b/plotly/validators/icicle/pathbar/textfont/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/pathbar/textfont/_size.py b/plotly/validators/icicle/pathbar/textfont/_size.py index 4274a380a3..66205917e6 100644 --- a/plotly/validators/icicle/pathbar/textfont/_size.py +++ b/plotly/validators/icicle/pathbar/textfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/icicle/pathbar/textfont/_sizesrc.py b/plotly/validators/icicle/pathbar/textfont/_sizesrc.py index 1602cbf797..5922d5414e 100644 --- a/plotly/validators/icicle/pathbar/textfont/_sizesrc.py +++ b/plotly/validators/icicle/pathbar/textfont/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/pathbar/textfont/_style.py b/plotly/validators/icicle/pathbar/textfont/_style.py index f63ad2b558..0b112bd224 100644 --- a/plotly/validators/icicle/pathbar/textfont/_style.py +++ b/plotly/validators/icicle/pathbar/textfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/icicle/pathbar/textfont/_stylesrc.py b/plotly/validators/icicle/pathbar/textfont/_stylesrc.py index 4b7dd89d4a..a9f2c50684 100644 --- a/plotly/validators/icicle/pathbar/textfont/_stylesrc.py +++ b/plotly/validators/icicle/pathbar/textfont/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/pathbar/textfont/_textcase.py b/plotly/validators/icicle/pathbar/textfont/_textcase.py index 37b1002cc4..8cdc8fbeb2 100644 --- a/plotly/validators/icicle/pathbar/textfont/_textcase.py +++ b/plotly/validators/icicle/pathbar/textfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/icicle/pathbar/textfont/_textcasesrc.py b/plotly/validators/icicle/pathbar/textfont/_textcasesrc.py index 41e0ba85d7..419fd6780e 100644 --- a/plotly/validators/icicle/pathbar/textfont/_textcasesrc.py +++ b/plotly/validators/icicle/pathbar/textfont/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/pathbar/textfont/_variant.py b/plotly/validators/icicle/pathbar/textfont/_variant.py index 79dddab9c7..87776e93db 100644 --- a/plotly/validators/icicle/pathbar/textfont/_variant.py +++ b/plotly/validators/icicle/pathbar/textfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( diff --git a/plotly/validators/icicle/pathbar/textfont/_variantsrc.py b/plotly/validators/icicle/pathbar/textfont/_variantsrc.py index c9fa845ff8..c6fb08cc5d 100644 --- a/plotly/validators/icicle/pathbar/textfont/_variantsrc.py +++ b/plotly/validators/icicle/pathbar/textfont/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/pathbar/textfont/_weight.py b/plotly/validators/icicle/pathbar/textfont/_weight.py index 820ef39d42..a3a649b047 100644 --- a/plotly/validators/icicle/pathbar/textfont/_weight.py +++ b/plotly/validators/icicle/pathbar/textfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/icicle/pathbar/textfont/_weightsrc.py b/plotly/validators/icicle/pathbar/textfont/_weightsrc.py index 8f3a40df64..cb558f37cc 100644 --- a/plotly/validators/icicle/pathbar/textfont/_weightsrc.py +++ b/plotly/validators/icicle/pathbar/textfont/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/root/__init__.py b/plotly/validators/icicle/root/__init__.py index a9f087e5af..85a4cc9573 100644 --- a/plotly/validators/icicle/root/__init__.py +++ b/plotly/validators/icicle/root/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._color.ColorValidator"] +) diff --git a/plotly/validators/icicle/root/_color.py b/plotly/validators/icicle/root/_color.py index 5089205ea8..6e0393319c 100644 --- a/plotly/validators/icicle/root/_color.py +++ b/plotly/validators/icicle/root/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/icicle/stream/__init__.py b/plotly/validators/icicle/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/icicle/stream/__init__.py +++ b/plotly/validators/icicle/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/icicle/stream/_maxpoints.py b/plotly/validators/icicle/stream/_maxpoints.py index b7e615cfee..b853b8b286 100644 --- a/plotly/validators/icicle/stream/_maxpoints.py +++ b/plotly/validators/icicle/stream/_maxpoints.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/icicle/stream/_token.py b/plotly/validators/icicle/stream/_token.py index 8f8cec7f6b..fd92d613ac 100644 --- a/plotly/validators/icicle/stream/_token.py +++ b/plotly/validators/icicle/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/icicle/textfont/__init__.py b/plotly/validators/icicle/textfont/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/icicle/textfont/__init__.py +++ b/plotly/validators/icicle/textfont/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/icicle/textfont/_color.py b/plotly/validators/icicle/textfont/_color.py index a41dcffa29..8da003dbe8 100644 --- a/plotly/validators/icicle/textfont/_color.py +++ b/plotly/validators/icicle/textfont/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/icicle/textfont/_colorsrc.py b/plotly/validators/icicle/textfont/_colorsrc.py index 453b043253..73a1726efb 100644 --- a/plotly/validators/icicle/textfont/_colorsrc.py +++ b/plotly/validators/icicle/textfont/_colorsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/textfont/_family.py b/plotly/validators/icicle/textfont/_family.py index c91ba6fc2c..de901bf4e2 100644 --- a/plotly/validators/icicle/textfont/_family.py +++ b/plotly/validators/icicle/textfont/_family.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/icicle/textfont/_familysrc.py b/plotly/validators/icicle/textfont/_familysrc.py index 212a684cc5..685f560f33 100644 --- a/plotly/validators/icicle/textfont/_familysrc.py +++ b/plotly/validators/icicle/textfont/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/textfont/_lineposition.py b/plotly/validators/icicle/textfont/_lineposition.py index b51f6fe39d..be086e4370 100644 --- a/plotly/validators/icicle/textfont/_lineposition.py +++ b/plotly/validators/icicle/textfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/icicle/textfont/_linepositionsrc.py b/plotly/validators/icicle/textfont/_linepositionsrc.py index 94f77c6d28..6243a955ac 100644 --- a/plotly/validators/icicle/textfont/_linepositionsrc.py +++ b/plotly/validators/icicle/textfont/_linepositionsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/textfont/_shadow.py b/plotly/validators/icicle/textfont/_shadow.py index d47e60f6c1..a39d695ee8 100644 --- a/plotly/validators/icicle/textfont/_shadow.py +++ b/plotly/validators/icicle/textfont/_shadow.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/icicle/textfont/_shadowsrc.py b/plotly/validators/icicle/textfont/_shadowsrc.py index 2aa75ffa78..9b3d5bc2d5 100644 --- a/plotly/validators/icicle/textfont/_shadowsrc.py +++ b/plotly/validators/icicle/textfont/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/textfont/_size.py b/plotly/validators/icicle/textfont/_size.py index 96844a1cf4..e6a3c8977c 100644 --- a/plotly/validators/icicle/textfont/_size.py +++ b/plotly/validators/icicle/textfont/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/icicle/textfont/_sizesrc.py b/plotly/validators/icicle/textfont/_sizesrc.py index e69fea923e..5b3b2fba56 100644 --- a/plotly/validators/icicle/textfont/_sizesrc.py +++ b/plotly/validators/icicle/textfont/_sizesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/textfont/_style.py b/plotly/validators/icicle/textfont/_style.py index 83e706a6d7..073866bcee 100644 --- a/plotly/validators/icicle/textfont/_style.py +++ b/plotly/validators/icicle/textfont/_style.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/icicle/textfont/_stylesrc.py b/plotly/validators/icicle/textfont/_stylesrc.py index 3e2916f4ae..3d0c643279 100644 --- a/plotly/validators/icicle/textfont/_stylesrc.py +++ b/plotly/validators/icicle/textfont/_stylesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/textfont/_textcase.py b/plotly/validators/icicle/textfont/_textcase.py index 55b2d24e75..f5bdc73d77 100644 --- a/plotly/validators/icicle/textfont/_textcase.py +++ b/plotly/validators/icicle/textfont/_textcase.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/icicle/textfont/_textcasesrc.py b/plotly/validators/icicle/textfont/_textcasesrc.py index fb00ea8478..aa11b4115d 100644 --- a/plotly/validators/icicle/textfont/_textcasesrc.py +++ b/plotly/validators/icicle/textfont/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/textfont/_variant.py b/plotly/validators/icicle/textfont/_variant.py index 0de22cb7bf..57f81901ca 100644 --- a/plotly/validators/icicle/textfont/_variant.py +++ b/plotly/validators/icicle/textfont/_variant.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( diff --git a/plotly/validators/icicle/textfont/_variantsrc.py b/plotly/validators/icicle/textfont/_variantsrc.py index 946220bac7..48aac85a5f 100644 --- a/plotly/validators/icicle/textfont/_variantsrc.py +++ b/plotly/validators/icicle/textfont/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/textfont/_weight.py b/plotly/validators/icicle/textfont/_weight.py index 642361804c..6fc18fc320 100644 --- a/plotly/validators/icicle/textfont/_weight.py +++ b/plotly/validators/icicle/textfont/_weight.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/icicle/textfont/_weightsrc.py b/plotly/validators/icicle/textfont/_weightsrc.py index 6f09aa36bd..7a69d2371d 100644 --- a/plotly/validators/icicle/textfont/_weightsrc.py +++ b/plotly/validators/icicle/textfont/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/icicle/tiling/__init__.py b/plotly/validators/icicle/tiling/__init__.py index 4f869feaed..8bd48751b6 100644 --- a/plotly/validators/icicle/tiling/__init__.py +++ b/plotly/validators/icicle/tiling/__init__.py @@ -1,19 +1,12 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._pad.PadValidator", + "._orientation.OrientationValidator", + "._flip.FlipValidator", + ], +) diff --git a/plotly/validators/icicle/tiling/_flip.py b/plotly/validators/icicle/tiling/_flip.py index f9b2026fb2..63273c0b38 100644 --- a/plotly/validators/icicle/tiling/_flip.py +++ b/plotly/validators/icicle/tiling/_flip.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FlipValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), flags=kwargs.pop("flags", ["x", "y"]), **kwargs, diff --git a/plotly/validators/icicle/tiling/_orientation.py b/plotly/validators/icicle/tiling/_orientation.py index e454023163..9e9eeb920f 100644 --- a/plotly/validators/icicle/tiling/_orientation.py +++ b/plotly/validators/icicle/tiling/_orientation.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["v", "h"]), **kwargs, diff --git a/plotly/validators/icicle/tiling/_pad.py b/plotly/validators/icicle/tiling/_pad.py index bfe18bbda4..f6879fadd9 100644 --- a/plotly/validators/icicle/tiling/_pad.py +++ b/plotly/validators/icicle/tiling/_pad.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/image/__init__.py b/plotly/validators/image/__init__.py index e56bc098b0..0d1c67fb45 100644 --- a/plotly/validators/image/__init__.py +++ b/plotly/validators/image/__init__.py @@ -1,91 +1,48 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zsrc import ZsrcValidator - from ._zsmooth import ZsmoothValidator - from ._zorder import ZorderValidator - from ._zmin import ZminValidator - from ._zmax import ZmaxValidator - from ._z import ZValidator - from ._yaxis import YaxisValidator - from ._y0 import Y0Validator - from ._xaxis import XaxisValidator - from ._x0 import X0Validator - from ._visible import VisibleValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._textsrc import TextsrcValidator - from ._text import TextValidator - from ._stream import StreamValidator - from ._source import SourceValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legend import LegendValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._dy import DyValidator - from ._dx import DxValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/image/_colormodel.py b/plotly/validators/image/_colormodel.py index ce4b3f203b..7dd0bdb174 100644 --- a/plotly/validators/image/_colormodel.py +++ b/plotly/validators/image/_colormodel.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColormodelValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["rgb", "rgba", "rgba256", "hsl", "hsla"]), **kwargs, diff --git a/plotly/validators/image/_customdata.py b/plotly/validators/image/_customdata.py index ecd1dd6a37..693399dcab 100644 --- a/plotly/validators/image/_customdata.py +++ b/plotly/validators/image/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/image/_customdatasrc.py b/plotly/validators/image/_customdatasrc.py index 0de35968d3..daf006b27a 100644 --- a/plotly/validators/image/_customdatasrc.py +++ b/plotly/validators/image/_customdatasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/image/_dx.py b/plotly/validators/image/_dx.py index eb330f7564..319277a64b 100644 --- a/plotly/validators/image/_dx.py +++ b/plotly/validators/image/_dx.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/image/_dy.py b/plotly/validators/image/_dy.py index ee1ba0f312..a0ddf7259a 100644 --- a/plotly/validators/image/_dy.py +++ b/plotly/validators/image/_dy.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DyValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/image/_hoverinfo.py b/plotly/validators/image/_hoverinfo.py index 229fdce0b2..d2a29bf12c 100644 --- a/plotly/validators/image/_hoverinfo.py +++ b/plotly/validators/image/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/image/_hoverinfosrc.py b/plotly/validators/image/_hoverinfosrc.py index d468124fa5..123eb84acc 100644 --- a/plotly/validators/image/_hoverinfosrc.py +++ b/plotly/validators/image/_hoverinfosrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/image/_hoverlabel.py b/plotly/validators/image/_hoverlabel.py index d4303b0fb0..ea2c5c5720 100644 --- a/plotly/validators/image/_hoverlabel.py +++ b/plotly/validators/image/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/image/_hovertemplate.py b/plotly/validators/image/_hovertemplate.py index 805f42f793..0aedd92001 100644 --- a/plotly/validators/image/_hovertemplate.py +++ b/plotly/validators/image/_hovertemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/image/_hovertemplatesrc.py b/plotly/validators/image/_hovertemplatesrc.py index a806a49058..cb3275ed2c 100644 --- a/plotly/validators/image/_hovertemplatesrc.py +++ b/plotly/validators/image/_hovertemplatesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/image/_hovertext.py b/plotly/validators/image/_hovertext.py index 1e051b5c7d..8b28120733 100644 --- a/plotly/validators/image/_hovertext.py +++ b/plotly/validators/image/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/image/_hovertextsrc.py b/plotly/validators/image/_hovertextsrc.py index 81d167166a..27c3cd5fa1 100644 --- a/plotly/validators/image/_hovertextsrc.py +++ b/plotly/validators/image/_hovertextsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/image/_ids.py b/plotly/validators/image/_ids.py index 205d2432b8..59a463f3bd 100644 --- a/plotly/validators/image/_ids.py +++ b/plotly/validators/image/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/image/_idssrc.py b/plotly/validators/image/_idssrc.py index 8f8b95453e..1e9c533c5d 100644 --- a/plotly/validators/image/_idssrc.py +++ b/plotly/validators/image/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/image/_legend.py b/plotly/validators/image/_legend.py index d4903e4636..e85359d244 100644 --- a/plotly/validators/image/_legend.py +++ b/plotly/validators/image/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/image/_legendgrouptitle.py b/plotly/validators/image/_legendgrouptitle.py index b23db50bbf..5465462c4b 100644 --- a/plotly/validators/image/_legendgrouptitle.py +++ b/plotly/validators/image/_legendgrouptitle.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/image/_legendrank.py b/plotly/validators/image/_legendrank.py index 140a29c88a..3b2b827b21 100644 --- a/plotly/validators/image/_legendrank.py +++ b/plotly/validators/image/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/image/_legendwidth.py b/plotly/validators/image/_legendwidth.py index df31504b92..c6d7c60af1 100644 --- a/plotly/validators/image/_legendwidth.py +++ b/plotly/validators/image/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/image/_meta.py b/plotly/validators/image/_meta.py index f2ec344898..d3a31866bf 100644 --- a/plotly/validators/image/_meta.py +++ b/plotly/validators/image/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/image/_metasrc.py b/plotly/validators/image/_metasrc.py index adfc138067..70d2ee7263 100644 --- a/plotly/validators/image/_metasrc.py +++ b/plotly/validators/image/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/image/_name.py b/plotly/validators/image/_name.py index 73e0942482..fe11ecef54 100644 --- a/plotly/validators/image/_name.py +++ b/plotly/validators/image/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/image/_opacity.py b/plotly/validators/image/_opacity.py index b778eb62e0..de3d1c2ea7 100644 --- a/plotly/validators/image/_opacity.py +++ b/plotly/validators/image/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/image/_source.py b/plotly/validators/image/_source.py index 9c9452ce92..fcb232e9b1 100644 --- a/plotly/validators/image/_source.py +++ b/plotly/validators/image/_source.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SourceValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/image/_stream.py b/plotly/validators/image/_stream.py index 3eea736a52..6401cfc2dd 100644 --- a/plotly/validators/image/_stream.py +++ b/plotly/validators/image/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/image/_text.py b/plotly/validators/image/_text.py index 1284e51b08..b86bdf62ea 100644 --- a/plotly/validators/image/_text.py +++ b/plotly/validators/image/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/image/_textsrc.py b/plotly/validators/image/_textsrc.py index 7ab20d743e..71f4372368 100644 --- a/plotly/validators/image/_textsrc.py +++ b/plotly/validators/image/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/image/_uid.py b/plotly/validators/image/_uid.py index f42fbc7a92..69d3395133 100644 --- a/plotly/validators/image/_uid.py +++ b/plotly/validators/image/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/image/_uirevision.py b/plotly/validators/image/_uirevision.py index e5575632f7..5de2d91123 100644 --- a/plotly/validators/image/_uirevision.py +++ b/plotly/validators/image/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/image/_visible.py b/plotly/validators/image/_visible.py index 09cdf9dbad..5b04296507 100644 --- a/plotly/validators/image/_visible.py +++ b/plotly/validators/image/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/image/_x0.py b/plotly/validators/image/_x0.py index 9fbba18292..713997b0c5 100644 --- a/plotly/validators/image/_x0.py +++ b/plotly/validators/image/_x0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class X0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/image/_xaxis.py b/plotly/validators/image/_xaxis.py index 3b8f1df417..bc4611ebf2 100644 --- a/plotly/validators/image/_xaxis.py +++ b/plotly/validators/image/_xaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "x"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/image/_y0.py b/plotly/validators/image/_y0.py index ea01998f58..82e1b0b2c8 100644 --- a/plotly/validators/image/_y0.py +++ b/plotly/validators/image/_y0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Y0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/image/_yaxis.py b/plotly/validators/image/_yaxis.py index c02f75357f..28d909c165 100644 --- a/plotly/validators/image/_yaxis.py +++ b/plotly/validators/image/_yaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "y"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/image/_z.py b/plotly/validators/image/_z.py index 29e8b848a0..ff33e32514 100644 --- a/plotly/validators/image/_z.py +++ b/plotly/validators/image/_z.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/image/_zmax.py b/plotly/validators/image/_zmax.py index fae4d527c9..f034312833 100644 --- a/plotly/validators/image/_zmax.py +++ b/plotly/validators/image/_zmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZmaxValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/image/_zmin.py b/plotly/validators/image/_zmin.py index 74b1f08e76..8ab5526d2a 100644 --- a/plotly/validators/image/_zmin.py +++ b/plotly/validators/image/_zmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZminValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/image/_zorder.py b/plotly/validators/image/_zorder.py index 23b5197a42..783109a190 100644 --- a/plotly/validators/image/_zorder.py +++ b/plotly/validators/image/_zorder.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZorderValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/image/_zsmooth.py b/plotly/validators/image/_zsmooth.py index 92c4067cb4..6800bafc77 100644 --- a/plotly/validators/image/_zsmooth.py +++ b/plotly/validators/image/_zsmooth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZsmoothValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["fast", False]), **kwargs, diff --git a/plotly/validators/image/_zsrc.py b/plotly/validators/image/_zsrc.py index 4b66aea195..4f6cf65c9f 100644 --- a/plotly/validators/image/_zsrc.py +++ b/plotly/validators/image/_zsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/image/hoverlabel/__init__.py b/plotly/validators/image/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/image/hoverlabel/__init__.py +++ b/plotly/validators/image/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/image/hoverlabel/_align.py b/plotly/validators/image/hoverlabel/_align.py index 610815f031..1314d0fe70 100644 --- a/plotly/validators/image/hoverlabel/_align.py +++ b/plotly/validators/image/hoverlabel/_align.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/image/hoverlabel/_alignsrc.py b/plotly/validators/image/hoverlabel/_alignsrc.py index a5ad4b4a0f..4b535a9016 100644 --- a/plotly/validators/image/hoverlabel/_alignsrc.py +++ b/plotly/validators/image/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/image/hoverlabel/_bgcolor.py b/plotly/validators/image/hoverlabel/_bgcolor.py index 9b075ea55e..d4e11f5490 100644 --- a/plotly/validators/image/hoverlabel/_bgcolor.py +++ b/plotly/validators/image/hoverlabel/_bgcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/image/hoverlabel/_bgcolorsrc.py b/plotly/validators/image/hoverlabel/_bgcolorsrc.py index 582f981418..daf876f47d 100644 --- a/plotly/validators/image/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/image/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/image/hoverlabel/_bordercolor.py b/plotly/validators/image/hoverlabel/_bordercolor.py index 7674e229f6..d08f905e1c 100644 --- a/plotly/validators/image/hoverlabel/_bordercolor.py +++ b/plotly/validators/image/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/image/hoverlabel/_bordercolorsrc.py b/plotly/validators/image/hoverlabel/_bordercolorsrc.py index 9d02b6d170..e19601a4d1 100644 --- a/plotly/validators/image/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/image/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/image/hoverlabel/_font.py b/plotly/validators/image/hoverlabel/_font.py index 8f485eb78f..5f3a6c727d 100644 --- a/plotly/validators/image/hoverlabel/_font.py +++ b/plotly/validators/image/hoverlabel/_font.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/image/hoverlabel/_namelength.py b/plotly/validators/image/hoverlabel/_namelength.py index 490a3605e6..514a8af4e0 100644 --- a/plotly/validators/image/hoverlabel/_namelength.py +++ b/plotly/validators/image/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/image/hoverlabel/_namelengthsrc.py b/plotly/validators/image/hoverlabel/_namelengthsrc.py index bf91c77268..16d6901f51 100644 --- a/plotly/validators/image/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/image/hoverlabel/_namelengthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/image/hoverlabel/font/__init__.py b/plotly/validators/image/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/image/hoverlabel/font/__init__.py +++ b/plotly/validators/image/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/image/hoverlabel/font/_color.py b/plotly/validators/image/hoverlabel/font/_color.py index 216851ea98..26711bd1bc 100644 --- a/plotly/validators/image/hoverlabel/font/_color.py +++ b/plotly/validators/image/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/image/hoverlabel/font/_colorsrc.py b/plotly/validators/image/hoverlabel/font/_colorsrc.py index 5ee3e5ca75..a660bb2776 100644 --- a/plotly/validators/image/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/image/hoverlabel/font/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/image/hoverlabel/font/_family.py b/plotly/validators/image/hoverlabel/font/_family.py index 61dfba3c1e..8fc3aa92e7 100644 --- a/plotly/validators/image/hoverlabel/font/_family.py +++ b/plotly/validators/image/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/image/hoverlabel/font/_familysrc.py b/plotly/validators/image/hoverlabel/font/_familysrc.py index 58a132c923..52a3d51462 100644 --- a/plotly/validators/image/hoverlabel/font/_familysrc.py +++ b/plotly/validators/image/hoverlabel/font/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/image/hoverlabel/font/_lineposition.py b/plotly/validators/image/hoverlabel/font/_lineposition.py index 4cfd9bc318..0ab8cfa64b 100644 --- a/plotly/validators/image/hoverlabel/font/_lineposition.py +++ b/plotly/validators/image/hoverlabel/font/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/image/hoverlabel/font/_linepositionsrc.py b/plotly/validators/image/hoverlabel/font/_linepositionsrc.py index 8d2fbb35c8..d35694b097 100644 --- a/plotly/validators/image/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/image/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/image/hoverlabel/font/_shadow.py b/plotly/validators/image/hoverlabel/font/_shadow.py index bc58e55e5d..e842937fdb 100644 --- a/plotly/validators/image/hoverlabel/font/_shadow.py +++ b/plotly/validators/image/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/image/hoverlabel/font/_shadowsrc.py b/plotly/validators/image/hoverlabel/font/_shadowsrc.py index ee5d7cf858..e6d7603eb9 100644 --- a/plotly/validators/image/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/image/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/image/hoverlabel/font/_size.py b/plotly/validators/image/hoverlabel/font/_size.py index 62fd27c78f..4f7ab4865c 100644 --- a/plotly/validators/image/hoverlabel/font/_size.py +++ b/plotly/validators/image/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/image/hoverlabel/font/_sizesrc.py b/plotly/validators/image/hoverlabel/font/_sizesrc.py index 3a3a98e4d9..2c4f4527ac 100644 --- a/plotly/validators/image/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/image/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/image/hoverlabel/font/_style.py b/plotly/validators/image/hoverlabel/font/_style.py index c2890fe9b4..5d7a955b83 100644 --- a/plotly/validators/image/hoverlabel/font/_style.py +++ b/plotly/validators/image/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/image/hoverlabel/font/_stylesrc.py b/plotly/validators/image/hoverlabel/font/_stylesrc.py index e2aae20e54..ddf4fc79fd 100644 --- a/plotly/validators/image/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/image/hoverlabel/font/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/image/hoverlabel/font/_textcase.py b/plotly/validators/image/hoverlabel/font/_textcase.py index e23ad408fc..b5a3f4273f 100644 --- a/plotly/validators/image/hoverlabel/font/_textcase.py +++ b/plotly/validators/image/hoverlabel/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/image/hoverlabel/font/_textcasesrc.py b/plotly/validators/image/hoverlabel/font/_textcasesrc.py index 8d88d3c108..a14e9c9064 100644 --- a/plotly/validators/image/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/image/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/image/hoverlabel/font/_variant.py b/plotly/validators/image/hoverlabel/font/_variant.py index f64f8dfeed..8c0f2fffa6 100644 --- a/plotly/validators/image/hoverlabel/font/_variant.py +++ b/plotly/validators/image/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/image/hoverlabel/font/_variantsrc.py b/plotly/validators/image/hoverlabel/font/_variantsrc.py index fe48df2c5b..87e7cc56b1 100644 --- a/plotly/validators/image/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/image/hoverlabel/font/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/image/hoverlabel/font/_weight.py b/plotly/validators/image/hoverlabel/font/_weight.py index b259a84d3e..4e67cbdaae 100644 --- a/plotly/validators/image/hoverlabel/font/_weight.py +++ b/plotly/validators/image/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/image/hoverlabel/font/_weightsrc.py b/plotly/validators/image/hoverlabel/font/_weightsrc.py index a2d7e50fcb..c861cb4450 100644 --- a/plotly/validators/image/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/image/hoverlabel/font/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/image/legendgrouptitle/__init__.py b/plotly/validators/image/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/image/legendgrouptitle/__init__.py +++ b/plotly/validators/image/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/image/legendgrouptitle/_font.py b/plotly/validators/image/legendgrouptitle/_font.py index e8534f56e1..2b53e88ca2 100644 --- a/plotly/validators/image/legendgrouptitle/_font.py +++ b/plotly/validators/image/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/image/legendgrouptitle/_text.py b/plotly/validators/image/legendgrouptitle/_text.py index 8d156380c8..c6b7e837d4 100644 --- a/plotly/validators/image/legendgrouptitle/_text.py +++ b/plotly/validators/image/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/image/legendgrouptitle/font/__init__.py b/plotly/validators/image/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/image/legendgrouptitle/font/__init__.py +++ b/plotly/validators/image/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/image/legendgrouptitle/font/_color.py b/plotly/validators/image/legendgrouptitle/font/_color.py index 2696eb652a..7e65a361b4 100644 --- a/plotly/validators/image/legendgrouptitle/font/_color.py +++ b/plotly/validators/image/legendgrouptitle/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/image/legendgrouptitle/font/_family.py b/plotly/validators/image/legendgrouptitle/font/_family.py index 8157c0ef7d..2d75316a08 100644 --- a/plotly/validators/image/legendgrouptitle/font/_family.py +++ b/plotly/validators/image/legendgrouptitle/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/image/legendgrouptitle/font/_lineposition.py b/plotly/validators/image/legendgrouptitle/font/_lineposition.py index df4d11807b..dd38018cd0 100644 --- a/plotly/validators/image/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/image/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/image/legendgrouptitle/font/_shadow.py b/plotly/validators/image/legendgrouptitle/font/_shadow.py index 45ea5f2207..b1a3394827 100644 --- a/plotly/validators/image/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/image/legendgrouptitle/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/image/legendgrouptitle/font/_size.py b/plotly/validators/image/legendgrouptitle/font/_size.py index 0703f95a46..0e66213b94 100644 --- a/plotly/validators/image/legendgrouptitle/font/_size.py +++ b/plotly/validators/image/legendgrouptitle/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/image/legendgrouptitle/font/_style.py b/plotly/validators/image/legendgrouptitle/font/_style.py index e3c31735cb..4f840e78a6 100644 --- a/plotly/validators/image/legendgrouptitle/font/_style.py +++ b/plotly/validators/image/legendgrouptitle/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/image/legendgrouptitle/font/_textcase.py b/plotly/validators/image/legendgrouptitle/font/_textcase.py index 8d6cafc286..0fedf25a41 100644 --- a/plotly/validators/image/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/image/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/image/legendgrouptitle/font/_variant.py b/plotly/validators/image/legendgrouptitle/font/_variant.py index eb2ead66cb..40d13b741a 100644 --- a/plotly/validators/image/legendgrouptitle/font/_variant.py +++ b/plotly/validators/image/legendgrouptitle/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/image/legendgrouptitle/font/_weight.py b/plotly/validators/image/legendgrouptitle/font/_weight.py index 2e4979dfd2..a0c76d68be 100644 --- a/plotly/validators/image/legendgrouptitle/font/_weight.py +++ b/plotly/validators/image/legendgrouptitle/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/image/stream/__init__.py b/plotly/validators/image/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/image/stream/__init__.py +++ b/plotly/validators/image/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/image/stream/_maxpoints.py b/plotly/validators/image/stream/_maxpoints.py index 0c54096930..ac5b55318e 100644 --- a/plotly/validators/image/stream/_maxpoints.py +++ b/plotly/validators/image/stream/_maxpoints.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/image/stream/_token.py b/plotly/validators/image/stream/_token.py index 02bc8c921f..ef0fb79533 100644 --- a/plotly/validators/image/stream/_token.py +++ b/plotly/validators/image/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/indicator/__init__.py b/plotly/validators/indicator/__init__.py index 90a3d4d166..f07d13e69b 100644 --- a/plotly/validators/indicator/__init__.py +++ b/plotly/validators/indicator/__init__.py @@ -1,59 +1,32 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._visible import VisibleValidator - from ._value import ValueValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._title import TitleValidator - from ._stream import StreamValidator - from ._number import NumberValidator - from ._name import NameValidator - from ._mode import ModeValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legend import LegendValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._gauge import GaugeValidator - from ._domain import DomainValidator - from ._delta import DeltaValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/indicator/_align.py b/plotly/validators/indicator/_align.py index 76d5d5d91f..6f89d6b2fa 100644 --- a/plotly/validators/indicator/_align.py +++ b/plotly/validators/indicator/_align.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/indicator/_customdata.py b/plotly/validators/indicator/_customdata.py index 80c3f00a18..f75c51f9a7 100644 --- a/plotly/validators/indicator/_customdata.py +++ b/plotly/validators/indicator/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/indicator/_customdatasrc.py b/plotly/validators/indicator/_customdatasrc.py index 109d43a7d5..53ae414c31 100644 --- a/plotly/validators/indicator/_customdatasrc.py +++ b/plotly/validators/indicator/_customdatasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/indicator/_delta.py b/plotly/validators/indicator/_delta.py index 862991d7e9..fb50779e67 100644 --- a/plotly/validators/indicator/_delta.py +++ b/plotly/validators/indicator/_delta.py @@ -1,43 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DeltaValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/indicator/_domain.py b/plotly/validators/indicator/_domain.py index 17176c77a1..ae6058b4de 100644 --- a/plotly/validators/indicator/_domain.py +++ b/plotly/validators/indicator/_domain.py @@ -1,28 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/indicator/_gauge.py b/plotly/validators/indicator/_gauge.py index e4fa182556..b34670a1ed 100644 --- a/plotly/validators/indicator/_gauge.py +++ b/plotly/validators/indicator/_gauge.py @@ -1,43 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GaugeValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/indicator/_ids.py b/plotly/validators/indicator/_ids.py index 0f01b273e7..47c9979446 100644 --- a/plotly/validators/indicator/_ids.py +++ b/plotly/validators/indicator/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/indicator/_idssrc.py b/plotly/validators/indicator/_idssrc.py index 86dad78e34..8c7b15b4b4 100644 --- a/plotly/validators/indicator/_idssrc.py +++ b/plotly/validators/indicator/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/indicator/_legend.py b/plotly/validators/indicator/_legend.py index a55efc9276..844760cf19 100644 --- a/plotly/validators/indicator/_legend.py +++ b/plotly/validators/indicator/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/indicator/_legendgrouptitle.py b/plotly/validators/indicator/_legendgrouptitle.py index e2017eecdd..e0e1dcda0b 100644 --- a/plotly/validators/indicator/_legendgrouptitle.py +++ b/plotly/validators/indicator/_legendgrouptitle.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/indicator/_legendrank.py b/plotly/validators/indicator/_legendrank.py index f3cd8624a5..20e2698a8a 100644 --- a/plotly/validators/indicator/_legendrank.py +++ b/plotly/validators/indicator/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/indicator/_legendwidth.py b/plotly/validators/indicator/_legendwidth.py index 8ba5cf5597..7b4c420a9e 100644 --- a/plotly/validators/indicator/_legendwidth.py +++ b/plotly/validators/indicator/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/indicator/_meta.py b/plotly/validators/indicator/_meta.py index 66d76dcac7..f6e5225f77 100644 --- a/plotly/validators/indicator/_meta.py +++ b/plotly/validators/indicator/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/indicator/_metasrc.py b/plotly/validators/indicator/_metasrc.py index 5888c0041a..bed8732042 100644 --- a/plotly/validators/indicator/_metasrc.py +++ b/plotly/validators/indicator/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/indicator/_mode.py b/plotly/validators/indicator/_mode.py index a0f43ffe86..1db2c6f328 100644 --- a/plotly/validators/indicator/_mode.py +++ b/plotly/validators/indicator/_mode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), flags=kwargs.pop("flags", ["number", "delta", "gauge"]), **kwargs, diff --git a/plotly/validators/indicator/_name.py b/plotly/validators/indicator/_name.py index fd8d9bb99d..afbe514bfd 100644 --- a/plotly/validators/indicator/_name.py +++ b/plotly/validators/indicator/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/indicator/_number.py b/plotly/validators/indicator/_number.py index 90fe36dc52..113a191464 100644 --- a/plotly/validators/indicator/_number.py +++ b/plotly/validators/indicator/_number.py @@ -1,27 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NumberValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/indicator/_stream.py b/plotly/validators/indicator/_stream.py index 01be5fca95..b9c238d339 100644 --- a/plotly/validators/indicator/_stream.py +++ b/plotly/validators/indicator/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/indicator/_title.py b/plotly/validators/indicator/_title.py index 8e9035b508..dc1341c5d7 100644 --- a/plotly/validators/indicator/_title.py +++ b/plotly/validators/indicator/_title.py @@ -1,23 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/indicator/_uid.py b/plotly/validators/indicator/_uid.py index 9342efd493..6bae225553 100644 --- a/plotly/validators/indicator/_uid.py +++ b/plotly/validators/indicator/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/indicator/_uirevision.py b/plotly/validators/indicator/_uirevision.py index 16339b86b7..79a71ebc8a 100644 --- a/plotly/validators/indicator/_uirevision.py +++ b/plotly/validators/indicator/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/indicator/_value.py b/plotly/validators/indicator/_value.py index d79b7c77a9..cb97ac3184 100644 --- a/plotly/validators/indicator/_value.py +++ b/plotly/validators/indicator/_value.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/indicator/_visible.py b/plotly/validators/indicator/_visible.py index 77227c33eb..ed42e4041c 100644 --- a/plotly/validators/indicator/_visible.py +++ b/plotly/validators/indicator/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/indicator/delta/__init__.py b/plotly/validators/indicator/delta/__init__.py index 9bebaaaa0c..f1436aa0e3 100644 --- a/plotly/validators/indicator/delta/__init__.py +++ b/plotly/validators/indicator/delta/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._valueformat import ValueformatValidator - from ._suffix import SuffixValidator - from ._relative import RelativeValidator - from ._reference import ReferenceValidator - from ._prefix import PrefixValidator - from ._position import PositionValidator - from ._increasing import IncreasingValidator - from ._font import FontValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._valueformat.ValueformatValidator", + "._suffix.SuffixValidator", + "._relative.RelativeValidator", + "._reference.ReferenceValidator", + "._prefix.PrefixValidator", + "._position.PositionValidator", + "._increasing.IncreasingValidator", + "._font.FontValidator", + "._decreasing.DecreasingValidator", + ], +) diff --git a/plotly/validators/indicator/delta/_decreasing.py b/plotly/validators/indicator/delta/_decreasing.py index c2baecca40..0190c560ae 100644 --- a/plotly/validators/indicator/delta/_decreasing.py +++ b/plotly/validators/indicator/delta/_decreasing.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DecreasingValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/indicator/delta/_font.py b/plotly/validators/indicator/delta/_font.py index a2a7e1d715..36a5db1a72 100644 --- a/plotly/validators/indicator/delta/_font.py +++ b/plotly/validators/indicator/delta/_font.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/indicator/delta/_increasing.py b/plotly/validators/indicator/delta/_increasing.py index fc3b13122c..17e5d8a754 100644 --- a/plotly/validators/indicator/delta/_increasing.py +++ b/plotly/validators/indicator/delta/_increasing.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IncreasingValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/indicator/delta/_position.py b/plotly/validators/indicator/delta/_position.py index a37de70313..1cacac5522 100644 --- a/plotly/validators/indicator/delta/_position.py +++ b/plotly/validators/indicator/delta/_position.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["top", "bottom", "left", "right"]), **kwargs, diff --git a/plotly/validators/indicator/delta/_prefix.py b/plotly/validators/indicator/delta/_prefix.py index 601ce8f1b7..47843d2678 100644 --- a/plotly/validators/indicator/delta/_prefix.py +++ b/plotly/validators/indicator/delta/_prefix.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PrefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/delta/_reference.py b/plotly/validators/indicator/delta/_reference.py index 4bc253380f..ff156f9c6e 100644 --- a/plotly/validators/indicator/delta/_reference.py +++ b/plotly/validators/indicator/delta/_reference.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReferenceValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/indicator/delta/_relative.py b/plotly/validators/indicator/delta/_relative.py index 534a5dc810..0a52baf829 100644 --- a/plotly/validators/indicator/delta/_relative.py +++ b/plotly/validators/indicator/delta/_relative.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RelativeValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/delta/_suffix.py b/plotly/validators/indicator/delta/_suffix.py index 90ad0a757f..604ccf2f46 100644 --- a/plotly/validators/indicator/delta/_suffix.py +++ b/plotly/validators/indicator/delta/_suffix.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/delta/_valueformat.py b/plotly/validators/indicator/delta/_valueformat.py index d23a941cd2..3b6752dbe2 100644 --- a/plotly/validators/indicator/delta/_valueformat.py +++ b/plotly/validators/indicator/delta/_valueformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/delta/decreasing/__init__.py b/plotly/validators/indicator/delta/decreasing/__init__.py index e2312c03a8..11541c453a 100644 --- a/plotly/validators/indicator/delta/decreasing/__init__.py +++ b/plotly/validators/indicator/delta/decreasing/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._symbol.SymbolValidator", "._color.ColorValidator"] +) diff --git a/plotly/validators/indicator/delta/decreasing/_color.py b/plotly/validators/indicator/delta/decreasing/_color.py index 90bc36a46d..f85a46c785 100644 --- a/plotly/validators/indicator/delta/decreasing/_color.py +++ b/plotly/validators/indicator/delta/decreasing/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/delta/decreasing/_symbol.py b/plotly/validators/indicator/delta/decreasing/_symbol.py index f5d6c14f10..34c91c76ef 100644 --- a/plotly/validators/indicator/delta/decreasing/_symbol.py +++ b/plotly/validators/indicator/delta/decreasing/_symbol.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymbolValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/delta/font/__init__.py b/plotly/validators/indicator/delta/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/indicator/delta/font/__init__.py +++ b/plotly/validators/indicator/delta/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/indicator/delta/font/_color.py b/plotly/validators/indicator/delta/font/_color.py index b825f2272a..d29a64e39d 100644 --- a/plotly/validators/indicator/delta/font/_color.py +++ b/plotly/validators/indicator/delta/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/delta/font/_family.py b/plotly/validators/indicator/delta/font/_family.py index 2f73188c28..a2a2fcd535 100644 --- a/plotly/validators/indicator/delta/font/_family.py +++ b/plotly/validators/indicator/delta/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/indicator/delta/font/_lineposition.py b/plotly/validators/indicator/delta/font/_lineposition.py index 92c21001fb..98968c7fa7 100644 --- a/plotly/validators/indicator/delta/font/_lineposition.py +++ b/plotly/validators/indicator/delta/font/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/indicator/delta/font/_shadow.py b/plotly/validators/indicator/delta/font/_shadow.py index 2f7b0ccb78..71e74d5a52 100644 --- a/plotly/validators/indicator/delta/font/_shadow.py +++ b/plotly/validators/indicator/delta/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/delta/font/_size.py b/plotly/validators/indicator/delta/font/_size.py index f156627591..47325e1f63 100644 --- a/plotly/validators/indicator/delta/font/_size.py +++ b/plotly/validators/indicator/delta/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/indicator/delta/font/_style.py b/plotly/validators/indicator/delta/font/_style.py index 9f64971dd7..f536e30e02 100644 --- a/plotly/validators/indicator/delta/font/_style.py +++ b/plotly/validators/indicator/delta/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/indicator/delta/font/_textcase.py b/plotly/validators/indicator/delta/font/_textcase.py index 07ea1edc78..a4a0b7f9c6 100644 --- a/plotly/validators/indicator/delta/font/_textcase.py +++ b/plotly/validators/indicator/delta/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/indicator/delta/font/_variant.py b/plotly/validators/indicator/delta/font/_variant.py index 01822ce5d8..9c79ba4059 100644 --- a/plotly/validators/indicator/delta/font/_variant.py +++ b/plotly/validators/indicator/delta/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/indicator/delta/font/_weight.py b/plotly/validators/indicator/delta/font/_weight.py index 6bf4e46a63..57a7dd25a1 100644 --- a/plotly/validators/indicator/delta/font/_weight.py +++ b/plotly/validators/indicator/delta/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/indicator/delta/increasing/__init__.py b/plotly/validators/indicator/delta/increasing/__init__.py index e2312c03a8..11541c453a 100644 --- a/plotly/validators/indicator/delta/increasing/__init__.py +++ b/plotly/validators/indicator/delta/increasing/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._symbol.SymbolValidator", "._color.ColorValidator"] +) diff --git a/plotly/validators/indicator/delta/increasing/_color.py b/plotly/validators/indicator/delta/increasing/_color.py index c150f3d5fa..071f989ffb 100644 --- a/plotly/validators/indicator/delta/increasing/_color.py +++ b/plotly/validators/indicator/delta/increasing/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/delta/increasing/_symbol.py b/plotly/validators/indicator/delta/increasing/_symbol.py index 5d87a0dcea..07c87d49c9 100644 --- a/plotly/validators/indicator/delta/increasing/_symbol.py +++ b/plotly/validators/indicator/delta/increasing/_symbol.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymbolValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/domain/__init__.py b/plotly/validators/indicator/domain/__init__.py index 67de5030d0..42827f1d1e 100644 --- a/plotly/validators/indicator/domain/__init__.py +++ b/plotly/validators/indicator/domain/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._y import YValidator - from ._x import XValidator - from ._row import RowValidator - from ._column import ColumnValidator -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [], - [ - "._y.YValidator", - "._x.XValidator", - "._row.RowValidator", - "._column.ColumnValidator", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._y.YValidator", + "._x.XValidator", + "._row.RowValidator", + "._column.ColumnValidator", + ], +) diff --git a/plotly/validators/indicator/domain/_column.py b/plotly/validators/indicator/domain/_column.py index 1112db9257..321fcf4475 100644 --- a/plotly/validators/indicator/domain/_column.py +++ b/plotly/validators/indicator/domain/_column.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/indicator/domain/_row.py b/plotly/validators/indicator/domain/_row.py index 1c89a2da3b..5c64cd772d 100644 --- a/plotly/validators/indicator/domain/_row.py +++ b/plotly/validators/indicator/domain/_row.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RowValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/indicator/domain/_x.py b/plotly/validators/indicator/domain/_x.py index 5e771be80c..6dbe06d267 100644 --- a/plotly/validators/indicator/domain/_x.py +++ b/plotly/validators/indicator/domain/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/indicator/domain/_y.py b/plotly/validators/indicator/domain/_y.py index b77921c0ff..03793c67bf 100644 --- a/plotly/validators/indicator/domain/_y.py +++ b/plotly/validators/indicator/domain/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/indicator/gauge/__init__.py b/plotly/validators/indicator/gauge/__init__.py index b2ca780c72..ba2d397e89 100644 --- a/plotly/validators/indicator/gauge/__init__.py +++ b/plotly/validators/indicator/gauge/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._threshold import ThresholdValidator - from ._stepdefaults import StepdefaultsValidator - from ._steps import StepsValidator - from ._shape import ShapeValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - from ._bgcolor import BgcolorValidator - from ._bar import BarValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._threshold.ThresholdValidator", + "._stepdefaults.StepdefaultsValidator", + "._steps.StepsValidator", + "._shape.ShapeValidator", + "._borderwidth.BorderwidthValidator", + "._bordercolor.BordercolorValidator", + "._bgcolor.BgcolorValidator", + "._bar.BarValidator", + "._axis.AxisValidator", + ], +) diff --git a/plotly/validators/indicator/gauge/_axis.py b/plotly/validators/indicator/gauge/_axis.py index d81d4d5738..6bbfb95d54 100644 --- a/plotly/validators/indicator/gauge/_axis.py +++ b/plotly/validators/indicator/gauge/_axis.py @@ -1,192 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AxisValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/indicator/gauge/_bar.py b/plotly/validators/indicator/gauge/_bar.py index 5ed1d86569..621b13fe83 100644 --- a/plotly/validators/indicator/gauge/_bar.py +++ b/plotly/validators/indicator/gauge/_bar.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/indicator/gauge/_bgcolor.py b/plotly/validators/indicator/gauge/_bgcolor.py index 5e304a40c3..df4334e3b3 100644 --- a/plotly/validators/indicator/gauge/_bgcolor.py +++ b/plotly/validators/indicator/gauge/_bgcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/gauge/_bordercolor.py b/plotly/validators/indicator/gauge/_bordercolor.py index d144f14926..c34b3a8e98 100644 --- a/plotly/validators/indicator/gauge/_bordercolor.py +++ b/plotly/validators/indicator/gauge/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/gauge/_borderwidth.py b/plotly/validators/indicator/gauge/_borderwidth.py index ab0db6fddb..835e6bb95c 100644 --- a/plotly/validators/indicator/gauge/_borderwidth.py +++ b/plotly/validators/indicator/gauge/_borderwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/indicator/gauge/_shape.py b/plotly/validators/indicator/gauge/_shape.py index 60110e6c67..f56e9f81bb 100644 --- a/plotly/validators/indicator/gauge/_shape.py +++ b/plotly/validators/indicator/gauge/_shape.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["angular", "bullet"]), **kwargs, diff --git a/plotly/validators/indicator/gauge/_stepdefaults.py b/plotly/validators/indicator/gauge/_stepdefaults.py index 00e2ef40eb..c3c46e1ac2 100644 --- a/plotly/validators/indicator/gauge/_stepdefaults.py +++ b/plotly/validators/indicator/gauge/_stepdefaults.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StepdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Step"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/indicator/gauge/_steps.py b/plotly/validators/indicator/gauge/_steps.py index 6d07e6323a..8de4b72b8b 100644 --- a/plotly/validators/indicator/gauge/_steps.py +++ b/plotly/validators/indicator/gauge/_steps.py @@ -1,47 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StepsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/indicator/gauge/_threshold.py b/plotly/validators/indicator/gauge/_threshold.py index cfc2e2cadd..4b1e49504d 100644 --- a/plotly/validators/indicator/gauge/_threshold.py +++ b/plotly/validators/indicator/gauge/_threshold.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThresholdValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/indicator/gauge/axis/__init__.py b/plotly/validators/indicator/gauge/axis/__init__.py index 554168e778..147a295cdd 100644 --- a/plotly/validators/indicator/gauge/axis/__init__.py +++ b/plotly/validators/indicator/gauge/axis/__init__.py @@ -1,73 +1,39 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._visible import VisibleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._range import RangeValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/indicator/gauge/axis/_dtick.py b/plotly/validators/indicator/gauge/axis/_dtick.py index decdabfbe1..525679e9c3 100644 --- a/plotly/validators/indicator/gauge/axis/_dtick.py +++ b/plotly/validators/indicator/gauge/axis/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/indicator/gauge/axis/_exponentformat.py b/plotly/validators/indicator/gauge/axis/_exponentformat.py index c26d5196a7..563dd3cdbf 100644 --- a/plotly/validators/indicator/gauge/axis/_exponentformat.py +++ b/plotly/validators/indicator/gauge/axis/_exponentformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/indicator/gauge/axis/_labelalias.py b/plotly/validators/indicator/gauge/axis/_labelalias.py index aab9a6e089..96449cd8ef 100644 --- a/plotly/validators/indicator/gauge/axis/_labelalias.py +++ b/plotly/validators/indicator/gauge/axis/_labelalias.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/gauge/axis/_minexponent.py b/plotly/validators/indicator/gauge/axis/_minexponent.py index d796b052bc..452464ccc7 100644 --- a/plotly/validators/indicator/gauge/axis/_minexponent.py +++ b/plotly/validators/indicator/gauge/axis/_minexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/indicator/gauge/axis/_nticks.py b/plotly/validators/indicator/gauge/axis/_nticks.py index 5509e221b3..850faa818b 100644 --- a/plotly/validators/indicator/gauge/axis/_nticks.py +++ b/plotly/validators/indicator/gauge/axis/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/indicator/gauge/axis/_range.py b/plotly/validators/indicator/gauge/axis/_range.py index 8057a29297..d04e13c37a 100644 --- a/plotly/validators/indicator/gauge/axis/_range.py +++ b/plotly/validators/indicator/gauge/axis/_range.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/indicator/gauge/axis/_separatethousands.py b/plotly/validators/indicator/gauge/axis/_separatethousands.py index db9727b37b..beb0dea639 100644 --- a/plotly/validators/indicator/gauge/axis/_separatethousands.py +++ b/plotly/validators/indicator/gauge/axis/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/gauge/axis/_showexponent.py b/plotly/validators/indicator/gauge/axis/_showexponent.py index 17c5f93394..4753b83f93 100644 --- a/plotly/validators/indicator/gauge/axis/_showexponent.py +++ b/plotly/validators/indicator/gauge/axis/_showexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/indicator/gauge/axis/_showticklabels.py b/plotly/validators/indicator/gauge/axis/_showticklabels.py index 68a4c7fb7e..b847d6b888 100644 --- a/plotly/validators/indicator/gauge/axis/_showticklabels.py +++ b/plotly/validators/indicator/gauge/axis/_showticklabels.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/gauge/axis/_showtickprefix.py b/plotly/validators/indicator/gauge/axis/_showtickprefix.py index 18889438b7..0bd4deb127 100644 --- a/plotly/validators/indicator/gauge/axis/_showtickprefix.py +++ b/plotly/validators/indicator/gauge/axis/_showtickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/indicator/gauge/axis/_showticksuffix.py b/plotly/validators/indicator/gauge/axis/_showticksuffix.py index caa97329ef..135de5c71a 100644 --- a/plotly/validators/indicator/gauge/axis/_showticksuffix.py +++ b/plotly/validators/indicator/gauge/axis/_showticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/indicator/gauge/axis/_tick0.py b/plotly/validators/indicator/gauge/axis/_tick0.py index fc0b226efa..873d441107 100644 --- a/plotly/validators/indicator/gauge/axis/_tick0.py +++ b/plotly/validators/indicator/gauge/axis/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/indicator/gauge/axis/_tickangle.py b/plotly/validators/indicator/gauge/axis/_tickangle.py index e86cf08856..33cfbea543 100644 --- a/plotly/validators/indicator/gauge/axis/_tickangle.py +++ b/plotly/validators/indicator/gauge/axis/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/gauge/axis/_tickcolor.py b/plotly/validators/indicator/gauge/axis/_tickcolor.py index 4f26040b15..587443743f 100644 --- a/plotly/validators/indicator/gauge/axis/_tickcolor.py +++ b/plotly/validators/indicator/gauge/axis/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/gauge/axis/_tickfont.py b/plotly/validators/indicator/gauge/axis/_tickfont.py index e2528f191f..ebef57731d 100644 --- a/plotly/validators/indicator/gauge/axis/_tickfont.py +++ b/plotly/validators/indicator/gauge/axis/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/indicator/gauge/axis/_tickformat.py b/plotly/validators/indicator/gauge/axis/_tickformat.py index 87a58520ce..3cf6049b08 100644 --- a/plotly/validators/indicator/gauge/axis/_tickformat.py +++ b/plotly/validators/indicator/gauge/axis/_tickformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/gauge/axis/_tickformatstopdefaults.py b/plotly/validators/indicator/gauge/axis/_tickformatstopdefaults.py index 0274dda9f6..e9c633dec4 100644 --- a/plotly/validators/indicator/gauge/axis/_tickformatstopdefaults.py +++ b/plotly/validators/indicator/gauge/axis/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/indicator/gauge/axis/_tickformatstops.py b/plotly/validators/indicator/gauge/axis/_tickformatstops.py index 00c37c95d1..d8ef1bb728 100644 --- a/plotly/validators/indicator/gauge/axis/_tickformatstops.py +++ b/plotly/validators/indicator/gauge/axis/_tickformatstops.py @@ -1,53 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/indicator/gauge/axis/_ticklabelstep.py b/plotly/validators/indicator/gauge/axis/_ticklabelstep.py index 738d952274..997e6c4a08 100644 --- a/plotly/validators/indicator/gauge/axis/_ticklabelstep.py +++ b/plotly/validators/indicator/gauge/axis/_ticklabelstep.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/indicator/gauge/axis/_ticklen.py b/plotly/validators/indicator/gauge/axis/_ticklen.py index 9cdd810b6d..8ab556a980 100644 --- a/plotly/validators/indicator/gauge/axis/_ticklen.py +++ b/plotly/validators/indicator/gauge/axis/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/indicator/gauge/axis/_tickmode.py b/plotly/validators/indicator/gauge/axis/_tickmode.py index ace070625d..ca70a62736 100644 --- a/plotly/validators/indicator/gauge/axis/_tickmode.py +++ b/plotly/validators/indicator/gauge/axis/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/indicator/gauge/axis/_tickprefix.py b/plotly/validators/indicator/gauge/axis/_tickprefix.py index f99899527b..bb26265578 100644 --- a/plotly/validators/indicator/gauge/axis/_tickprefix.py +++ b/plotly/validators/indicator/gauge/axis/_tickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/gauge/axis/_ticks.py b/plotly/validators/indicator/gauge/axis/_ticks.py index 22373848db..b2722f0b50 100644 --- a/plotly/validators/indicator/gauge/axis/_ticks.py +++ b/plotly/validators/indicator/gauge/axis/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/indicator/gauge/axis/_ticksuffix.py b/plotly/validators/indicator/gauge/axis/_ticksuffix.py index 1bae8a6385..1244537836 100644 --- a/plotly/validators/indicator/gauge/axis/_ticksuffix.py +++ b/plotly/validators/indicator/gauge/axis/_ticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/gauge/axis/_ticktext.py b/plotly/validators/indicator/gauge/axis/_ticktext.py index b402e70d35..858f66a22f 100644 --- a/plotly/validators/indicator/gauge/axis/_ticktext.py +++ b/plotly/validators/indicator/gauge/axis/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/gauge/axis/_ticktextsrc.py b/plotly/validators/indicator/gauge/axis/_ticktextsrc.py index d348972c4a..60966f665d 100644 --- a/plotly/validators/indicator/gauge/axis/_ticktextsrc.py +++ b/plotly/validators/indicator/gauge/axis/_ticktextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/indicator/gauge/axis/_tickvals.py b/plotly/validators/indicator/gauge/axis/_tickvals.py index 15e8556242..9232ab2489 100644 --- a/plotly/validators/indicator/gauge/axis/_tickvals.py +++ b/plotly/validators/indicator/gauge/axis/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/gauge/axis/_tickvalssrc.py b/plotly/validators/indicator/gauge/axis/_tickvalssrc.py index ef788fc7c2..7c1ca528f5 100644 --- a/plotly/validators/indicator/gauge/axis/_tickvalssrc.py +++ b/plotly/validators/indicator/gauge/axis/_tickvalssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/indicator/gauge/axis/_tickwidth.py b/plotly/validators/indicator/gauge/axis/_tickwidth.py index 4d555dd1ff..faaa75202d 100644 --- a/plotly/validators/indicator/gauge/axis/_tickwidth.py +++ b/plotly/validators/indicator/gauge/axis/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/indicator/gauge/axis/_visible.py b/plotly/validators/indicator/gauge/axis/_visible.py index e75752dbb9..817fbffe62 100644 --- a/plotly/validators/indicator/gauge/axis/_visible.py +++ b/plotly/validators/indicator/gauge/axis/_visible.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/gauge/axis/tickfont/__init__.py b/plotly/validators/indicator/gauge/axis/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/indicator/gauge/axis/tickfont/__init__.py +++ b/plotly/validators/indicator/gauge/axis/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/indicator/gauge/axis/tickfont/_color.py b/plotly/validators/indicator/gauge/axis/tickfont/_color.py index 9291f977e2..3408ca6927 100644 --- a/plotly/validators/indicator/gauge/axis/tickfont/_color.py +++ b/plotly/validators/indicator/gauge/axis/tickfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/gauge/axis/tickfont/_family.py b/plotly/validators/indicator/gauge/axis/tickfont/_family.py index 17f25a48de..07b3ff6dd5 100644 --- a/plotly/validators/indicator/gauge/axis/tickfont/_family.py +++ b/plotly/validators/indicator/gauge/axis/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/indicator/gauge/axis/tickfont/_lineposition.py b/plotly/validators/indicator/gauge/axis/tickfont/_lineposition.py index ce371f547a..d599c6d274 100644 --- a/plotly/validators/indicator/gauge/axis/tickfont/_lineposition.py +++ b/plotly/validators/indicator/gauge/axis/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/indicator/gauge/axis/tickfont/_shadow.py b/plotly/validators/indicator/gauge/axis/tickfont/_shadow.py index a317867028..b4b064ae27 100644 --- a/plotly/validators/indicator/gauge/axis/tickfont/_shadow.py +++ b/plotly/validators/indicator/gauge/axis/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/gauge/axis/tickfont/_size.py b/plotly/validators/indicator/gauge/axis/tickfont/_size.py index 275683c98d..987d51c1a1 100644 --- a/plotly/validators/indicator/gauge/axis/tickfont/_size.py +++ b/plotly/validators/indicator/gauge/axis/tickfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/indicator/gauge/axis/tickfont/_style.py b/plotly/validators/indicator/gauge/axis/tickfont/_style.py index a60e6796f7..92090ca9d8 100644 --- a/plotly/validators/indicator/gauge/axis/tickfont/_style.py +++ b/plotly/validators/indicator/gauge/axis/tickfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/indicator/gauge/axis/tickfont/_textcase.py b/plotly/validators/indicator/gauge/axis/tickfont/_textcase.py index 8ac77c157b..3738d7a5bc 100644 --- a/plotly/validators/indicator/gauge/axis/tickfont/_textcase.py +++ b/plotly/validators/indicator/gauge/axis/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/indicator/gauge/axis/tickfont/_variant.py b/plotly/validators/indicator/gauge/axis/tickfont/_variant.py index 4641b91340..4046684752 100644 --- a/plotly/validators/indicator/gauge/axis/tickfont/_variant.py +++ b/plotly/validators/indicator/gauge/axis/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/indicator/gauge/axis/tickfont/_weight.py b/plotly/validators/indicator/gauge/axis/tickfont/_weight.py index ebf42acd76..4c3f1980ad 100644 --- a/plotly/validators/indicator/gauge/axis/tickfont/_weight.py +++ b/plotly/validators/indicator/gauge/axis/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/indicator/gauge/axis/tickformatstop/__init__.py b/plotly/validators/indicator/gauge/axis/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/indicator/gauge/axis/tickformatstop/__init__.py +++ b/plotly/validators/indicator/gauge/axis/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/indicator/gauge/axis/tickformatstop/_dtickrange.py b/plotly/validators/indicator/gauge/axis/tickformatstop/_dtickrange.py index 230b1bbbd8..69a46648f6 100644 --- a/plotly/validators/indicator/gauge/axis/tickformatstop/_dtickrange.py +++ b/plotly/validators/indicator/gauge/axis/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/indicator/gauge/axis/tickformatstop/_enabled.py b/plotly/validators/indicator/gauge/axis/tickformatstop/_enabled.py index fb83790712..b08a7fa1e3 100644 --- a/plotly/validators/indicator/gauge/axis/tickformatstop/_enabled.py +++ b/plotly/validators/indicator/gauge/axis/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/gauge/axis/tickformatstop/_name.py b/plotly/validators/indicator/gauge/axis/tickformatstop/_name.py index 9ebc67748a..034669247c 100644 --- a/plotly/validators/indicator/gauge/axis/tickformatstop/_name.py +++ b/plotly/validators/indicator/gauge/axis/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/gauge/axis/tickformatstop/_templateitemname.py b/plotly/validators/indicator/gauge/axis/tickformatstop/_templateitemname.py index 94e75aaad8..7959c1dc23 100644 --- a/plotly/validators/indicator/gauge/axis/tickformatstop/_templateitemname.py +++ b/plotly/validators/indicator/gauge/axis/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/gauge/axis/tickformatstop/_value.py b/plotly/validators/indicator/gauge/axis/tickformatstop/_value.py index 358d253261..c2dd6d70a9 100644 --- a/plotly/validators/indicator/gauge/axis/tickformatstop/_value.py +++ b/plotly/validators/indicator/gauge/axis/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/gauge/bar/__init__.py b/plotly/validators/indicator/gauge/bar/__init__.py index d49f1c0e78..f8b2d9b6a9 100644 --- a/plotly/validators/indicator/gauge/bar/__init__.py +++ b/plotly/validators/indicator/gauge/bar/__init__.py @@ -1,19 +1,12 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._thickness.ThicknessValidator", + "._line.LineValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/indicator/gauge/bar/_color.py b/plotly/validators/indicator/gauge/bar/_color.py index 7ef5dc50a0..7e7ecf7b1f 100644 --- a/plotly/validators/indicator/gauge/bar/_color.py +++ b/plotly/validators/indicator/gauge/bar/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/gauge/bar/_line.py b/plotly/validators/indicator/gauge/bar/_line.py index c061659a2b..984ad386c9 100644 --- a/plotly/validators/indicator/gauge/bar/_line.py +++ b/plotly/validators/indicator/gauge/bar/_line.py @@ -1,21 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/indicator/gauge/bar/_thickness.py b/plotly/validators/indicator/gauge/bar/_thickness.py index 18105f94e7..bd7121e9b4 100644 --- a/plotly/validators/indicator/gauge/bar/_thickness.py +++ b/plotly/validators/indicator/gauge/bar/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/indicator/gauge/bar/line/__init__.py b/plotly/validators/indicator/gauge/bar/line/__init__.py index 63a516578b..d49328faac 100644 --- a/plotly/validators/indicator/gauge/bar/line/__init__.py +++ b/plotly/validators/indicator/gauge/bar/line/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._width.WidthValidator", "._color.ColorValidator"] +) diff --git a/plotly/validators/indicator/gauge/bar/line/_color.py b/plotly/validators/indicator/gauge/bar/line/_color.py index a788fec002..c389b13d01 100644 --- a/plotly/validators/indicator/gauge/bar/line/_color.py +++ b/plotly/validators/indicator/gauge/bar/line/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/gauge/bar/line/_width.py b/plotly/validators/indicator/gauge/bar/line/_width.py index 6361135257..2baa1bf828 100644 --- a/plotly/validators/indicator/gauge/bar/line/_width.py +++ b/plotly/validators/indicator/gauge/bar/line/_width.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/indicator/gauge/step/__init__.py b/plotly/validators/indicator/gauge/step/__init__.py index 4ea4b3e46b..0ee1a4cb9b 100644 --- a/plotly/validators/indicator/gauge/step/__init__.py +++ b/plotly/validators/indicator/gauge/step/__init__.py @@ -1,25 +1,15 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._thickness import ThicknessValidator - from ._templateitemname import TemplateitemnameValidator - from ._range import RangeValidator - from ._name import NameValidator - from ._line import LineValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._thickness.ThicknessValidator", + "._templateitemname.TemplateitemnameValidator", + "._range.RangeValidator", + "._name.NameValidator", + "._line.LineValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/indicator/gauge/step/_color.py b/plotly/validators/indicator/gauge/step/_color.py index 07a6a1b08a..b6cb5d8818 100644 --- a/plotly/validators/indicator/gauge/step/_color.py +++ b/plotly/validators/indicator/gauge/step/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/gauge/step/_line.py b/plotly/validators/indicator/gauge/step/_line.py index eab5f39b72..14575d1238 100644 --- a/plotly/validators/indicator/gauge/step/_line.py +++ b/plotly/validators/indicator/gauge/step/_line.py @@ -1,23 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/indicator/gauge/step/_name.py b/plotly/validators/indicator/gauge/step/_name.py index e623ed5f22..8935212582 100644 --- a/plotly/validators/indicator/gauge/step/_name.py +++ b/plotly/validators/indicator/gauge/step/_name.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/indicator/gauge/step/_range.py b/plotly/validators/indicator/gauge/step/_range.py index 73b09a0727..45c403321c 100644 --- a/plotly/validators/indicator/gauge/step/_range.py +++ b/plotly/validators/indicator/gauge/step/_range.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/indicator/gauge/step/_templateitemname.py b/plotly/validators/indicator/gauge/step/_templateitemname.py index aca6a8521e..3ea300bb7b 100644 --- a/plotly/validators/indicator/gauge/step/_templateitemname.py +++ b/plotly/validators/indicator/gauge/step/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/indicator/gauge/step/_thickness.py b/plotly/validators/indicator/gauge/step/_thickness.py index e7e46e1e55..9edd124696 100644 --- a/plotly/validators/indicator/gauge/step/_thickness.py +++ b/plotly/validators/indicator/gauge/step/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/indicator/gauge/step/line/__init__.py b/plotly/validators/indicator/gauge/step/line/__init__.py index 63a516578b..d49328faac 100644 --- a/plotly/validators/indicator/gauge/step/line/__init__.py +++ b/plotly/validators/indicator/gauge/step/line/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._width.WidthValidator", "._color.ColorValidator"] +) diff --git a/plotly/validators/indicator/gauge/step/line/_color.py b/plotly/validators/indicator/gauge/step/line/_color.py index bb537d2d91..530b9cd706 100644 --- a/plotly/validators/indicator/gauge/step/line/_color.py +++ b/plotly/validators/indicator/gauge/step/line/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/gauge/step/line/_width.py b/plotly/validators/indicator/gauge/step/line/_width.py index 6821f137ca..c648b6c3ab 100644 --- a/plotly/validators/indicator/gauge/step/line/_width.py +++ b/plotly/validators/indicator/gauge/step/line/_width.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/indicator/gauge/threshold/__init__.py b/plotly/validators/indicator/gauge/threshold/__init__.py index b4226aa920..cc27740011 100644 --- a/plotly/validators/indicator/gauge/threshold/__init__.py +++ b/plotly/validators/indicator/gauge/threshold/__init__.py @@ -1,19 +1,12 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._thickness.ThicknessValidator", + "._line.LineValidator", + ], +) diff --git a/plotly/validators/indicator/gauge/threshold/_line.py b/plotly/validators/indicator/gauge/threshold/_line.py index b74f966e66..cb207d6c51 100644 --- a/plotly/validators/indicator/gauge/threshold/_line.py +++ b/plotly/validators/indicator/gauge/threshold/_line.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/indicator/gauge/threshold/_thickness.py b/plotly/validators/indicator/gauge/threshold/_thickness.py index 8cd0c85f16..a66b860cc1 100644 --- a/plotly/validators/indicator/gauge/threshold/_thickness.py +++ b/plotly/validators/indicator/gauge/threshold/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/indicator/gauge/threshold/_value.py b/plotly/validators/indicator/gauge/threshold/_value.py index 3e8f0725ff..2892b83df3 100644 --- a/plotly/validators/indicator/gauge/threshold/_value.py +++ b/plotly/validators/indicator/gauge/threshold/_value.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/indicator/gauge/threshold/line/__init__.py b/plotly/validators/indicator/gauge/threshold/line/__init__.py index 63a516578b..d49328faac 100644 --- a/plotly/validators/indicator/gauge/threshold/line/__init__.py +++ b/plotly/validators/indicator/gauge/threshold/line/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._width.WidthValidator", "._color.ColorValidator"] +) diff --git a/plotly/validators/indicator/gauge/threshold/line/_color.py b/plotly/validators/indicator/gauge/threshold/line/_color.py index a282a267e4..0c721d1c16 100644 --- a/plotly/validators/indicator/gauge/threshold/line/_color.py +++ b/plotly/validators/indicator/gauge/threshold/line/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/gauge/threshold/line/_width.py b/plotly/validators/indicator/gauge/threshold/line/_width.py index 4cee92e2f2..5829f3b30d 100644 --- a/plotly/validators/indicator/gauge/threshold/line/_width.py +++ b/plotly/validators/indicator/gauge/threshold/line/_width.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/indicator/legendgrouptitle/__init__.py b/plotly/validators/indicator/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/indicator/legendgrouptitle/__init__.py +++ b/plotly/validators/indicator/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/indicator/legendgrouptitle/_font.py b/plotly/validators/indicator/legendgrouptitle/_font.py index d8a35a9ebe..1fa0f3b2e6 100644 --- a/plotly/validators/indicator/legendgrouptitle/_font.py +++ b/plotly/validators/indicator/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/indicator/legendgrouptitle/_text.py b/plotly/validators/indicator/legendgrouptitle/_text.py index c15a520ec0..db5e70f24e 100644 --- a/plotly/validators/indicator/legendgrouptitle/_text.py +++ b/plotly/validators/indicator/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/indicator/legendgrouptitle/font/__init__.py b/plotly/validators/indicator/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/indicator/legendgrouptitle/font/__init__.py +++ b/plotly/validators/indicator/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/indicator/legendgrouptitle/font/_color.py b/plotly/validators/indicator/legendgrouptitle/font/_color.py index cdfe36d120..1bbafe1b6e 100644 --- a/plotly/validators/indicator/legendgrouptitle/font/_color.py +++ b/plotly/validators/indicator/legendgrouptitle/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/indicator/legendgrouptitle/font/_family.py b/plotly/validators/indicator/legendgrouptitle/font/_family.py index e79283a1c6..019d1d9837 100644 --- a/plotly/validators/indicator/legendgrouptitle/font/_family.py +++ b/plotly/validators/indicator/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/indicator/legendgrouptitle/font/_lineposition.py b/plotly/validators/indicator/legendgrouptitle/font/_lineposition.py index 1961bd099d..7eb0e281be 100644 --- a/plotly/validators/indicator/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/indicator/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/indicator/legendgrouptitle/font/_shadow.py b/plotly/validators/indicator/legendgrouptitle/font/_shadow.py index bfd657a904..f7281c18ee 100644 --- a/plotly/validators/indicator/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/indicator/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/indicator/legendgrouptitle/font/_size.py b/plotly/validators/indicator/legendgrouptitle/font/_size.py index 5107c5e49d..dda2f2efcc 100644 --- a/plotly/validators/indicator/legendgrouptitle/font/_size.py +++ b/plotly/validators/indicator/legendgrouptitle/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/indicator/legendgrouptitle/font/_style.py b/plotly/validators/indicator/legendgrouptitle/font/_style.py index b10b1a3093..513a15fb38 100644 --- a/plotly/validators/indicator/legendgrouptitle/font/_style.py +++ b/plotly/validators/indicator/legendgrouptitle/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/indicator/legendgrouptitle/font/_textcase.py b/plotly/validators/indicator/legendgrouptitle/font/_textcase.py index 62e5359f9d..12024d5e36 100644 --- a/plotly/validators/indicator/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/indicator/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/indicator/legendgrouptitle/font/_variant.py b/plotly/validators/indicator/legendgrouptitle/font/_variant.py index 78f07d0c18..d7c26bcece 100644 --- a/plotly/validators/indicator/legendgrouptitle/font/_variant.py +++ b/plotly/validators/indicator/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/indicator/legendgrouptitle/font/_weight.py b/plotly/validators/indicator/legendgrouptitle/font/_weight.py index 0baef648da..dd21807feb 100644 --- a/plotly/validators/indicator/legendgrouptitle/font/_weight.py +++ b/plotly/validators/indicator/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/indicator/number/__init__.py b/plotly/validators/indicator/number/__init__.py index 71d6d13a5c..42a8aaf880 100644 --- a/plotly/validators/indicator/number/__init__.py +++ b/plotly/validators/indicator/number/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._valueformat import ValueformatValidator - from ._suffix import SuffixValidator - from ._prefix import PrefixValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._valueformat.ValueformatValidator", + "._suffix.SuffixValidator", + "._prefix.PrefixValidator", + "._font.FontValidator", + ], +) diff --git a/plotly/validators/indicator/number/_font.py b/plotly/validators/indicator/number/_font.py index 9fdac9e9e1..c13e244e5c 100644 --- a/plotly/validators/indicator/number/_font.py +++ b/plotly/validators/indicator/number/_font.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/indicator/number/_prefix.py b/plotly/validators/indicator/number/_prefix.py index bb69a19643..d00ab2088f 100644 --- a/plotly/validators/indicator/number/_prefix.py +++ b/plotly/validators/indicator/number/_prefix.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PrefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/number/_suffix.py b/plotly/validators/indicator/number/_suffix.py index 4fae10d2a1..c95b507257 100644 --- a/plotly/validators/indicator/number/_suffix.py +++ b/plotly/validators/indicator/number/_suffix.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/number/_valueformat.py b/plotly/validators/indicator/number/_valueformat.py index 515081c0ed..a1bc6fc99f 100644 --- a/plotly/validators/indicator/number/_valueformat.py +++ b/plotly/validators/indicator/number/_valueformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/number/font/__init__.py b/plotly/validators/indicator/number/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/indicator/number/font/__init__.py +++ b/plotly/validators/indicator/number/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/indicator/number/font/_color.py b/plotly/validators/indicator/number/font/_color.py index 8cf7419750..d225a08d07 100644 --- a/plotly/validators/indicator/number/font/_color.py +++ b/plotly/validators/indicator/number/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/number/font/_family.py b/plotly/validators/indicator/number/font/_family.py index fbe1dc647f..c7b617d773 100644 --- a/plotly/validators/indicator/number/font/_family.py +++ b/plotly/validators/indicator/number/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/indicator/number/font/_lineposition.py b/plotly/validators/indicator/number/font/_lineposition.py index b133a52ee1..a693391bfd 100644 --- a/plotly/validators/indicator/number/font/_lineposition.py +++ b/plotly/validators/indicator/number/font/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/indicator/number/font/_shadow.py b/plotly/validators/indicator/number/font/_shadow.py index 86aa8f5243..ed2787f7e2 100644 --- a/plotly/validators/indicator/number/font/_shadow.py +++ b/plotly/validators/indicator/number/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/number/font/_size.py b/plotly/validators/indicator/number/font/_size.py index 8fb3432c10..dfd6d4871f 100644 --- a/plotly/validators/indicator/number/font/_size.py +++ b/plotly/validators/indicator/number/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/indicator/number/font/_style.py b/plotly/validators/indicator/number/font/_style.py index 3c136a1d1f..c2b09e231b 100644 --- a/plotly/validators/indicator/number/font/_style.py +++ b/plotly/validators/indicator/number/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/indicator/number/font/_textcase.py b/plotly/validators/indicator/number/font/_textcase.py index d18b488a31..030569a72d 100644 --- a/plotly/validators/indicator/number/font/_textcase.py +++ b/plotly/validators/indicator/number/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/indicator/number/font/_variant.py b/plotly/validators/indicator/number/font/_variant.py index df178ef46d..77d38ce120 100644 --- a/plotly/validators/indicator/number/font/_variant.py +++ b/plotly/validators/indicator/number/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/indicator/number/font/_weight.py b/plotly/validators/indicator/number/font/_weight.py index c5eb1c518b..cbe3716c71 100644 --- a/plotly/validators/indicator/number/font/_weight.py +++ b/plotly/validators/indicator/number/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/indicator/stream/__init__.py b/plotly/validators/indicator/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/indicator/stream/__init__.py +++ b/plotly/validators/indicator/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/indicator/stream/_maxpoints.py b/plotly/validators/indicator/stream/_maxpoints.py index 8430bd7bb8..94d1f12d27 100644 --- a/plotly/validators/indicator/stream/_maxpoints.py +++ b/plotly/validators/indicator/stream/_maxpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/indicator/stream/_token.py b/plotly/validators/indicator/stream/_token.py index c75b7c0df5..114c3f629e 100644 --- a/plotly/validators/indicator/stream/_token.py +++ b/plotly/validators/indicator/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/indicator/title/__init__.py b/plotly/validators/indicator/title/__init__.py index 2415e03514..2f547f8106 100644 --- a/plotly/validators/indicator/title/__init__.py +++ b/plotly/validators/indicator/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._font.FontValidator", "._align.AlignValidator"], +) diff --git a/plotly/validators/indicator/title/_align.py b/plotly/validators/indicator/title/_align.py index 545a4f2971..b7522e06b3 100644 --- a/plotly/validators/indicator/title/_align.py +++ b/plotly/validators/indicator/title/_align.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/indicator/title/_font.py b/plotly/validators/indicator/title/_font.py index dae939ba31..682c304fab 100644 --- a/plotly/validators/indicator/title/_font.py +++ b/plotly/validators/indicator/title/_font.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/indicator/title/_text.py b/plotly/validators/indicator/title/_text.py index 7cdba51386..9ca5b5f2dc 100644 --- a/plotly/validators/indicator/title/_text.py +++ b/plotly/validators/indicator/title/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/title/font/__init__.py b/plotly/validators/indicator/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/indicator/title/font/__init__.py +++ b/plotly/validators/indicator/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/indicator/title/font/_color.py b/plotly/validators/indicator/title/font/_color.py index c67e216f7f..2162b9ab67 100644 --- a/plotly/validators/indicator/title/font/_color.py +++ b/plotly/validators/indicator/title/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/title/font/_family.py b/plotly/validators/indicator/title/font/_family.py index 163ebae27d..6f302770c1 100644 --- a/plotly/validators/indicator/title/font/_family.py +++ b/plotly/validators/indicator/title/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/indicator/title/font/_lineposition.py b/plotly/validators/indicator/title/font/_lineposition.py index 0f2ff92eb3..0664dd175c 100644 --- a/plotly/validators/indicator/title/font/_lineposition.py +++ b/plotly/validators/indicator/title/font/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/indicator/title/font/_shadow.py b/plotly/validators/indicator/title/font/_shadow.py index 3feaab0117..28c9165334 100644 --- a/plotly/validators/indicator/title/font/_shadow.py +++ b/plotly/validators/indicator/title/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/indicator/title/font/_size.py b/plotly/validators/indicator/title/font/_size.py index 6e357fcd7c..7f84a0ef8a 100644 --- a/plotly/validators/indicator/title/font/_size.py +++ b/plotly/validators/indicator/title/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/indicator/title/font/_style.py b/plotly/validators/indicator/title/font/_style.py index d1cc28d28b..c666572681 100644 --- a/plotly/validators/indicator/title/font/_style.py +++ b/plotly/validators/indicator/title/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/indicator/title/font/_textcase.py b/plotly/validators/indicator/title/font/_textcase.py index 73572b246b..871b2f310f 100644 --- a/plotly/validators/indicator/title/font/_textcase.py +++ b/plotly/validators/indicator/title/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/indicator/title/font/_variant.py b/plotly/validators/indicator/title/font/_variant.py index ef35334e1d..509b9a9c32 100644 --- a/plotly/validators/indicator/title/font/_variant.py +++ b/plotly/validators/indicator/title/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/indicator/title/font/_weight.py b/plotly/validators/indicator/title/font/_weight.py index 8b944428f2..54284ba9c8 100644 --- a/plotly/validators/indicator/title/font/_weight.py +++ b/plotly/validators/indicator/title/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/isosurface/__init__.py b/plotly/validators/isosurface/__init__.py index e65b327ed4..d4a21a5cc1 100644 --- a/plotly/validators/isosurface/__init__.py +++ b/plotly/validators/isosurface/__init__.py @@ -1,133 +1,69 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zsrc import ZsrcValidator - from ._zhoverformat import ZhoverformatValidator - from ._z import ZValidator - from ._ysrc import YsrcValidator - from ._yhoverformat import YhoverformatValidator - from ._y import YValidator - from ._xsrc import XsrcValidator - from ._xhoverformat import XhoverformatValidator - from ._x import XValidator - from ._visible import VisibleValidator - from ._valuesrc import ValuesrcValidator - from ._valuehoverformat import ValuehoverformatValidator - from ._value import ValueValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._textsrc import TextsrcValidator - from ._text import TextValidator - from ._surface import SurfaceValidator - from ._stream import StreamValidator - from ._spaceframe import SpaceframeValidator - from ._slices import SlicesValidator - from ._showscale import ShowscaleValidator - from ._showlegend import ShowlegendValidator - from ._scene import SceneValidator - from ._reversescale import ReversescaleValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._lightposition import LightpositionValidator - from ._lighting import LightingValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._isomin import IsominValidator - from ._isomax import IsomaxValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._flatshading import FlatshadingValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._contour import ContourValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - from ._caps import CapsValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/isosurface/_autocolorscale.py b/plotly/validators/isosurface/_autocolorscale.py index 686c15e377..910c386c97 100644 --- a/plotly/validators/isosurface/_autocolorscale.py +++ b/plotly/validators/isosurface/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/isosurface/_caps.py b/plotly/validators/isosurface/_caps.py index 07fe8ec96e..a81ddab8c8 100644 --- a/plotly/validators/isosurface/_caps.py +++ b/plotly/validators/isosurface/_caps.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CapsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/isosurface/_cauto.py b/plotly/validators/isosurface/_cauto.py index bc66c13d4f..3000ac710a 100644 --- a/plotly/validators/isosurface/_cauto.py +++ b/plotly/validators/isosurface/_cauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/isosurface/_cmax.py b/plotly/validators/isosurface/_cmax.py index 568c5ca3ca..f2194220eb 100644 --- a/plotly/validators/isosurface/_cmax.py +++ b/plotly/validators/isosurface/_cmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/isosurface/_cmid.py b/plotly/validators/isosurface/_cmid.py index 37614c7207..9ce3ad33af 100644 --- a/plotly/validators/isosurface/_cmid.py +++ b/plotly/validators/isosurface/_cmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/isosurface/_cmin.py b/plotly/validators/isosurface/_cmin.py index 632d1cc77a..973dd6034d 100644 --- a/plotly/validators/isosurface/_cmin.py +++ b/plotly/validators/isosurface/_cmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/isosurface/_coloraxis.py b/plotly/validators/isosurface/_coloraxis.py index caab0b08ce..cfeeed3500 100644 --- a/plotly/validators/isosurface/_coloraxis.py +++ b/plotly/validators/isosurface/_coloraxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/isosurface/_colorbar.py b/plotly/validators/isosurface/_colorbar.py index 308bc26626..8883b2468a 100644 --- a/plotly/validators/isosurface/_colorbar.py +++ b/plotly/validators/isosurface/_colorbar.py @@ -1,278 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/isosurface/_colorscale.py b/plotly/validators/isosurface/_colorscale.py index 78a3ea6eb2..854651794a 100644 --- a/plotly/validators/isosurface/_colorscale.py +++ b/plotly/validators/isosurface/_colorscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/isosurface/_contour.py b/plotly/validators/isosurface/_contour.py index 28143a0042..994831ef96 100644 --- a/plotly/validators/isosurface/_contour.py +++ b/plotly/validators/isosurface/_contour.py @@ -1,22 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ContourValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/isosurface/_customdata.py b/plotly/validators/isosurface/_customdata.py index 5b35ceba52..d4a8579db3 100644 --- a/plotly/validators/isosurface/_customdata.py +++ b/plotly/validators/isosurface/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/_customdatasrc.py b/plotly/validators/isosurface/_customdatasrc.py index 2fbdc561fd..b8010a3ce4 100644 --- a/plotly/validators/isosurface/_customdatasrc.py +++ b/plotly/validators/isosurface/_customdatasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/isosurface/_flatshading.py b/plotly/validators/isosurface/_flatshading.py index 80f2cdf155..1998dad84f 100644 --- a/plotly/validators/isosurface/_flatshading.py +++ b/plotly/validators/isosurface/_flatshading.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FlatshadingValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/_hoverinfo.py b/plotly/validators/isosurface/_hoverinfo.py index 8719d50190..73315789e8 100644 --- a/plotly/validators/isosurface/_hoverinfo.py +++ b/plotly/validators/isosurface/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/isosurface/_hoverinfosrc.py b/plotly/validators/isosurface/_hoverinfosrc.py index 0a9d4e8586..60cf7d52b9 100644 --- a/plotly/validators/isosurface/_hoverinfosrc.py +++ b/plotly/validators/isosurface/_hoverinfosrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/isosurface/_hoverlabel.py b/plotly/validators/isosurface/_hoverlabel.py index c989c094de..a52162472d 100644 --- a/plotly/validators/isosurface/_hoverlabel.py +++ b/plotly/validators/isosurface/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/isosurface/_hovertemplate.py b/plotly/validators/isosurface/_hovertemplate.py index a2c86e5797..c8b65d9724 100644 --- a/plotly/validators/isosurface/_hovertemplate.py +++ b/plotly/validators/isosurface/_hovertemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/isosurface/_hovertemplatesrc.py b/plotly/validators/isosurface/_hovertemplatesrc.py index b6ab21f95c..c3e669902b 100644 --- a/plotly/validators/isosurface/_hovertemplatesrc.py +++ b/plotly/validators/isosurface/_hovertemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/isosurface/_hovertext.py b/plotly/validators/isosurface/_hovertext.py index 5cc216bb61..4a8f5389ff 100644 --- a/plotly/validators/isosurface/_hovertext.py +++ b/plotly/validators/isosurface/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/isosurface/_hovertextsrc.py b/plotly/validators/isosurface/_hovertextsrc.py index a224087a63..1e6c41b714 100644 --- a/plotly/validators/isosurface/_hovertextsrc.py +++ b/plotly/validators/isosurface/_hovertextsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/isosurface/_ids.py b/plotly/validators/isosurface/_ids.py index de1ddf41f0..22b2fa3023 100644 --- a/plotly/validators/isosurface/_ids.py +++ b/plotly/validators/isosurface/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/_idssrc.py b/plotly/validators/isosurface/_idssrc.py index 52e7dfb43b..e3ae36c7a8 100644 --- a/plotly/validators/isosurface/_idssrc.py +++ b/plotly/validators/isosurface/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/isosurface/_isomax.py b/plotly/validators/isosurface/_isomax.py index 7dee7a3ea7..6d2628253a 100644 --- a/plotly/validators/isosurface/_isomax.py +++ b/plotly/validators/isosurface/_isomax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IsomaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/_isomin.py b/plotly/validators/isosurface/_isomin.py index bba82c1a75..14c2f287c9 100644 --- a/plotly/validators/isosurface/_isomin.py +++ b/plotly/validators/isosurface/_isomin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IsominValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/_legend.py b/plotly/validators/isosurface/_legend.py index 69eaf600cc..4b181a7aa0 100644 --- a/plotly/validators/isosurface/_legend.py +++ b/plotly/validators/isosurface/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/isosurface/_legendgroup.py b/plotly/validators/isosurface/_legendgroup.py index 8704eb5551..4af047f0c6 100644 --- a/plotly/validators/isosurface/_legendgroup.py +++ b/plotly/validators/isosurface/_legendgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/isosurface/_legendgrouptitle.py b/plotly/validators/isosurface/_legendgrouptitle.py index a9c333a6ce..568df896b4 100644 --- a/plotly/validators/isosurface/_legendgrouptitle.py +++ b/plotly/validators/isosurface/_legendgrouptitle.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/isosurface/_legendrank.py b/plotly/validators/isosurface/_legendrank.py index d5e2b93fba..9bca9d4ee7 100644 --- a/plotly/validators/isosurface/_legendrank.py +++ b/plotly/validators/isosurface/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/isosurface/_legendwidth.py b/plotly/validators/isosurface/_legendwidth.py index 75a5ef3610..531d44f5c7 100644 --- a/plotly/validators/isosurface/_legendwidth.py +++ b/plotly/validators/isosurface/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/isosurface/_lighting.py b/plotly/validators/isosurface/_lighting.py index eae8c8af9c..10e2240ae1 100644 --- a/plotly/validators/isosurface/_lighting.py +++ b/plotly/validators/isosurface/_lighting.py @@ -1,39 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LightingValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/isosurface/_lightposition.py b/plotly/validators/isosurface/_lightposition.py index 137f73e995..b699b1d120 100644 --- a/plotly/validators/isosurface/_lightposition.py +++ b/plotly/validators/isosurface/_lightposition.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LightpositionValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/isosurface/_meta.py b/plotly/validators/isosurface/_meta.py index 61cd93168b..f1033daa3f 100644 --- a/plotly/validators/isosurface/_meta.py +++ b/plotly/validators/isosurface/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/isosurface/_metasrc.py b/plotly/validators/isosurface/_metasrc.py index efd28bc88e..0b502c784e 100644 --- a/plotly/validators/isosurface/_metasrc.py +++ b/plotly/validators/isosurface/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/isosurface/_name.py b/plotly/validators/isosurface/_name.py index fe4b74f234..fc2cb786a5 100644 --- a/plotly/validators/isosurface/_name.py +++ b/plotly/validators/isosurface/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/isosurface/_opacity.py b/plotly/validators/isosurface/_opacity.py index a3357c3ab9..d0af131b9c 100644 --- a/plotly/validators/isosurface/_opacity.py +++ b/plotly/validators/isosurface/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/isosurface/_reversescale.py b/plotly/validators/isosurface/_reversescale.py index ba4e9f4778..4f07a4a0ff 100644 --- a/plotly/validators/isosurface/_reversescale.py +++ b/plotly/validators/isosurface/_reversescale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/_scene.py b/plotly/validators/isosurface/_scene.py index 557a93c119..9ec6d22e87 100644 --- a/plotly/validators/isosurface/_scene.py +++ b/plotly/validators/isosurface/_scene.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SceneValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "scene"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/isosurface/_showlegend.py b/plotly/validators/isosurface/_showlegend.py index 732a6aebde..32b143fa4a 100644 --- a/plotly/validators/isosurface/_showlegend.py +++ b/plotly/validators/isosurface/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/_showscale.py b/plotly/validators/isosurface/_showscale.py index 0765d54743..b9b29ce980 100644 --- a/plotly/validators/isosurface/_showscale.py +++ b/plotly/validators/isosurface/_showscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/_slices.py b/plotly/validators/isosurface/_slices.py index 3c025551c7..b4d828b305 100644 --- a/plotly/validators/isosurface/_slices.py +++ b/plotly/validators/isosurface/_slices.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SlicesValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/isosurface/_spaceframe.py b/plotly/validators/isosurface/_spaceframe.py index c2b61256cf..6d5160d45c 100644 --- a/plotly/validators/isosurface/_spaceframe.py +++ b/plotly/validators/isosurface/_spaceframe.py @@ -1,28 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SpaceframeValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/isosurface/_stream.py b/plotly/validators/isosurface/_stream.py index 1bfc1cc59b..7717f24ba0 100644 --- a/plotly/validators/isosurface/_stream.py +++ b/plotly/validators/isosurface/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/isosurface/_surface.py b/plotly/validators/isosurface/_surface.py index 08d062c60f..6f9f4f5031 100644 --- a/plotly/validators/isosurface/_surface.py +++ b/plotly/validators/isosurface/_surface.py @@ -1,41 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SurfaceValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/isosurface/_text.py b/plotly/validators/isosurface/_text.py index f73fb65f23..a06108e247 100644 --- a/plotly/validators/isosurface/_text.py +++ b/plotly/validators/isosurface/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/isosurface/_textsrc.py b/plotly/validators/isosurface/_textsrc.py index d0325563a3..552c050091 100644 --- a/plotly/validators/isosurface/_textsrc.py +++ b/plotly/validators/isosurface/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/isosurface/_uid.py b/plotly/validators/isosurface/_uid.py index 4d658b251f..5123603bf4 100644 --- a/plotly/validators/isosurface/_uid.py +++ b/plotly/validators/isosurface/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/isosurface/_uirevision.py b/plotly/validators/isosurface/_uirevision.py index f14eeb8d5e..760e86e619 100644 --- a/plotly/validators/isosurface/_uirevision.py +++ b/plotly/validators/isosurface/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/isosurface/_value.py b/plotly/validators/isosurface/_value.py index 29cf0c762c..5305cd4728 100644 --- a/plotly/validators/isosurface/_value.py +++ b/plotly/validators/isosurface/_value.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/isosurface/_valuehoverformat.py b/plotly/validators/isosurface/_valuehoverformat.py index 40fa68323e..0f4ed5ba2d 100644 --- a/plotly/validators/isosurface/_valuehoverformat.py +++ b/plotly/validators/isosurface/_valuehoverformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValuehoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/_valuesrc.py b/plotly/validators/isosurface/_valuesrc.py index bd7d644326..e7b6817d51 100644 --- a/plotly/validators/isosurface/_valuesrc.py +++ b/plotly/validators/isosurface/_valuesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValuesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/isosurface/_visible.py b/plotly/validators/isosurface/_visible.py index ccd55ca21c..c9d4dc2566 100644 --- a/plotly/validators/isosurface/_visible.py +++ b/plotly/validators/isosurface/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/isosurface/_x.py b/plotly/validators/isosurface/_x.py index 66a5bfb1e7..7bb403f901 100644 --- a/plotly/validators/isosurface/_x.py +++ b/plotly/validators/isosurface/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/isosurface/_xhoverformat.py b/plotly/validators/isosurface/_xhoverformat.py index e9c582a63b..68f78d4b30 100644 --- a/plotly/validators/isosurface/_xhoverformat.py +++ b/plotly/validators/isosurface/_xhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/_xsrc.py b/plotly/validators/isosurface/_xsrc.py index 5819e093df..82bb339301 100644 --- a/plotly/validators/isosurface/_xsrc.py +++ b/plotly/validators/isosurface/_xsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/isosurface/_y.py b/plotly/validators/isosurface/_y.py index fe6da9d205..ca4d82a777 100644 --- a/plotly/validators/isosurface/_y.py +++ b/plotly/validators/isosurface/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/isosurface/_yhoverformat.py b/plotly/validators/isosurface/_yhoverformat.py index fbaddb3c55..5de86c7505 100644 --- a/plotly/validators/isosurface/_yhoverformat.py +++ b/plotly/validators/isosurface/_yhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/_ysrc.py b/plotly/validators/isosurface/_ysrc.py index a5c397ff24..9c3a24d109 100644 --- a/plotly/validators/isosurface/_ysrc.py +++ b/plotly/validators/isosurface/_ysrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/isosurface/_z.py b/plotly/validators/isosurface/_z.py index 4ce511af59..5d831c2e3e 100644 --- a/plotly/validators/isosurface/_z.py +++ b/plotly/validators/isosurface/_z.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/isosurface/_zhoverformat.py b/plotly/validators/isosurface/_zhoverformat.py index df244a1628..b6bdff2ea5 100644 --- a/plotly/validators/isosurface/_zhoverformat.py +++ b/plotly/validators/isosurface/_zhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/_zsrc.py b/plotly/validators/isosurface/_zsrc.py index 67371e5e03..39927b49c6 100644 --- a/plotly/validators/isosurface/_zsrc.py +++ b/plotly/validators/isosurface/_zsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/isosurface/caps/__init__.py b/plotly/validators/isosurface/caps/__init__.py index 52779f59bc..8c47d2db5f 100644 --- a/plotly/validators/isosurface/caps/__init__.py +++ b/plotly/validators/isosurface/caps/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] +) diff --git a/plotly/validators/isosurface/caps/_x.py b/plotly/validators/isosurface/caps/_x.py index 8198fdb6bd..73b84ae227 100644 --- a/plotly/validators/isosurface/caps/_x.py +++ b/plotly/validators/isosurface/caps/_x.py @@ -1,28 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/isosurface/caps/_y.py b/plotly/validators/isosurface/caps/_y.py index d7170d8a81..fa79418aed 100644 --- a/plotly/validators/isosurface/caps/_y.py +++ b/plotly/validators/isosurface/caps/_y.py @@ -1,28 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/isosurface/caps/_z.py b/plotly/validators/isosurface/caps/_z.py index c8686ce94c..16be115748 100644 --- a/plotly/validators/isosurface/caps/_z.py +++ b/plotly/validators/isosurface/caps/_z.py @@ -1,28 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/isosurface/caps/x/__init__.py b/plotly/validators/isosurface/caps/x/__init__.py index 63a14620d2..db8b1b549e 100644 --- a/plotly/validators/isosurface/caps/x/__init__.py +++ b/plotly/validators/isosurface/caps/x/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._show.ShowValidator", "._fill.FillValidator"] +) diff --git a/plotly/validators/isosurface/caps/x/_fill.py b/plotly/validators/isosurface/caps/x/_fill.py index 781a4f0295..a50cf62e2e 100644 --- a/plotly/validators/isosurface/caps/x/_fill.py +++ b/plotly/validators/isosurface/caps/x/_fill.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/isosurface/caps/x/_show.py b/plotly/validators/isosurface/caps/x/_show.py index 805d9f701a..ec13d8f67e 100644 --- a/plotly/validators/isosurface/caps/x/_show.py +++ b/plotly/validators/isosurface/caps/x/_show.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/caps/y/__init__.py b/plotly/validators/isosurface/caps/y/__init__.py index 63a14620d2..db8b1b549e 100644 --- a/plotly/validators/isosurface/caps/y/__init__.py +++ b/plotly/validators/isosurface/caps/y/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._show.ShowValidator", "._fill.FillValidator"] +) diff --git a/plotly/validators/isosurface/caps/y/_fill.py b/plotly/validators/isosurface/caps/y/_fill.py index de6bd3d0ed..e85de02bbd 100644 --- a/plotly/validators/isosurface/caps/y/_fill.py +++ b/plotly/validators/isosurface/caps/y/_fill.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/isosurface/caps/y/_show.py b/plotly/validators/isosurface/caps/y/_show.py index 915e9c0dd5..abd7e86da8 100644 --- a/plotly/validators/isosurface/caps/y/_show.py +++ b/plotly/validators/isosurface/caps/y/_show.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/caps/z/__init__.py b/plotly/validators/isosurface/caps/z/__init__.py index 63a14620d2..db8b1b549e 100644 --- a/plotly/validators/isosurface/caps/z/__init__.py +++ b/plotly/validators/isosurface/caps/z/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._show.ShowValidator", "._fill.FillValidator"] +) diff --git a/plotly/validators/isosurface/caps/z/_fill.py b/plotly/validators/isosurface/caps/z/_fill.py index fc27fbf0cd..41c654d934 100644 --- a/plotly/validators/isosurface/caps/z/_fill.py +++ b/plotly/validators/isosurface/caps/z/_fill.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/isosurface/caps/z/_show.py b/plotly/validators/isosurface/caps/z/_show.py index a11bad0749..9ddc23178c 100644 --- a/plotly/validators/isosurface/caps/z/_show.py +++ b/plotly/validators/isosurface/caps/z/_show.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/colorbar/__init__.py b/plotly/validators/isosurface/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/isosurface/colorbar/__init__.py +++ b/plotly/validators/isosurface/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/isosurface/colorbar/_bgcolor.py b/plotly/validators/isosurface/colorbar/_bgcolor.py index 12839101b7..444b6f2e3f 100644 --- a/plotly/validators/isosurface/colorbar/_bgcolor.py +++ b/plotly/validators/isosurface/colorbar/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/colorbar/_bordercolor.py b/plotly/validators/isosurface/colorbar/_bordercolor.py index ee0eb2c64f..2b91539747 100644 --- a/plotly/validators/isosurface/colorbar/_bordercolor.py +++ b/plotly/validators/isosurface/colorbar/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/colorbar/_borderwidth.py b/plotly/validators/isosurface/colorbar/_borderwidth.py index ff13aa4c8e..693cc00112 100644 --- a/plotly/validators/isosurface/colorbar/_borderwidth.py +++ b/plotly/validators/isosurface/colorbar/_borderwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/isosurface/colorbar/_dtick.py b/plotly/validators/isosurface/colorbar/_dtick.py index fe1ddcc448..798a03c183 100644 --- a/plotly/validators/isosurface/colorbar/_dtick.py +++ b/plotly/validators/isosurface/colorbar/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/isosurface/colorbar/_exponentformat.py b/plotly/validators/isosurface/colorbar/_exponentformat.py index ade598e008..b07927208f 100644 --- a/plotly/validators/isosurface/colorbar/_exponentformat.py +++ b/plotly/validators/isosurface/colorbar/_exponentformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/isosurface/colorbar/_labelalias.py b/plotly/validators/isosurface/colorbar/_labelalias.py index d46f34db7f..e52a94f847 100644 --- a/plotly/validators/isosurface/colorbar/_labelalias.py +++ b/plotly/validators/isosurface/colorbar/_labelalias.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/colorbar/_len.py b/plotly/validators/isosurface/colorbar/_len.py index 490ddd9b80..0c41db09da 100644 --- a/plotly/validators/isosurface/colorbar/_len.py +++ b/plotly/validators/isosurface/colorbar/_len.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/isosurface/colorbar/_lenmode.py b/plotly/validators/isosurface/colorbar/_lenmode.py index d730027927..ad71972be4 100644 --- a/plotly/validators/isosurface/colorbar/_lenmode.py +++ b/plotly/validators/isosurface/colorbar/_lenmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/isosurface/colorbar/_minexponent.py b/plotly/validators/isosurface/colorbar/_minexponent.py index 6631cbd2f8..93f2c699e2 100644 --- a/plotly/validators/isosurface/colorbar/_minexponent.py +++ b/plotly/validators/isosurface/colorbar/_minexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/isosurface/colorbar/_nticks.py b/plotly/validators/isosurface/colorbar/_nticks.py index 064c7398c4..aa9cb233cf 100644 --- a/plotly/validators/isosurface/colorbar/_nticks.py +++ b/plotly/validators/isosurface/colorbar/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/isosurface/colorbar/_orientation.py b/plotly/validators/isosurface/colorbar/_orientation.py index 7ac5b2a5c7..41c7270614 100644 --- a/plotly/validators/isosurface/colorbar/_orientation.py +++ b/plotly/validators/isosurface/colorbar/_orientation.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/isosurface/colorbar/_outlinecolor.py b/plotly/validators/isosurface/colorbar/_outlinecolor.py index ed8afb3d1e..dba5e56bea 100644 --- a/plotly/validators/isosurface/colorbar/_outlinecolor.py +++ b/plotly/validators/isosurface/colorbar/_outlinecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/colorbar/_outlinewidth.py b/plotly/validators/isosurface/colorbar/_outlinewidth.py index 9c0f9d2b4e..0cfc28844c 100644 --- a/plotly/validators/isosurface/colorbar/_outlinewidth.py +++ b/plotly/validators/isosurface/colorbar/_outlinewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/isosurface/colorbar/_separatethousands.py b/plotly/validators/isosurface/colorbar/_separatethousands.py index 678b166d5a..2f091aed73 100644 --- a/plotly/validators/isosurface/colorbar/_separatethousands.py +++ b/plotly/validators/isosurface/colorbar/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/colorbar/_showexponent.py b/plotly/validators/isosurface/colorbar/_showexponent.py index be2c309525..81da48879f 100644 --- a/plotly/validators/isosurface/colorbar/_showexponent.py +++ b/plotly/validators/isosurface/colorbar/_showexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/isosurface/colorbar/_showticklabels.py b/plotly/validators/isosurface/colorbar/_showticklabels.py index 925c960bd6..4184261396 100644 --- a/plotly/validators/isosurface/colorbar/_showticklabels.py +++ b/plotly/validators/isosurface/colorbar/_showticklabels.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/colorbar/_showtickprefix.py b/plotly/validators/isosurface/colorbar/_showtickprefix.py index 6cc99117a4..247c2cfb1e 100644 --- a/plotly/validators/isosurface/colorbar/_showtickprefix.py +++ b/plotly/validators/isosurface/colorbar/_showtickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/isosurface/colorbar/_showticksuffix.py b/plotly/validators/isosurface/colorbar/_showticksuffix.py index 7109e451d7..ec038c3777 100644 --- a/plotly/validators/isosurface/colorbar/_showticksuffix.py +++ b/plotly/validators/isosurface/colorbar/_showticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/isosurface/colorbar/_thickness.py b/plotly/validators/isosurface/colorbar/_thickness.py index 6ba0e6ade7..2ac64aef0c 100644 --- a/plotly/validators/isosurface/colorbar/_thickness.py +++ b/plotly/validators/isosurface/colorbar/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/isosurface/colorbar/_thicknessmode.py b/plotly/validators/isosurface/colorbar/_thicknessmode.py index 4bc32e792a..1dfc8fb43d 100644 --- a/plotly/validators/isosurface/colorbar/_thicknessmode.py +++ b/plotly/validators/isosurface/colorbar/_thicknessmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/isosurface/colorbar/_tick0.py b/plotly/validators/isosurface/colorbar/_tick0.py index 4a70dc1c2d..0dd5602f19 100644 --- a/plotly/validators/isosurface/colorbar/_tick0.py +++ b/plotly/validators/isosurface/colorbar/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/isosurface/colorbar/_tickangle.py b/plotly/validators/isosurface/colorbar/_tickangle.py index fe94f6a460..55ff646b4c 100644 --- a/plotly/validators/isosurface/colorbar/_tickangle.py +++ b/plotly/validators/isosurface/colorbar/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/colorbar/_tickcolor.py b/plotly/validators/isosurface/colorbar/_tickcolor.py index c33938164a..775fbce6c7 100644 --- a/plotly/validators/isosurface/colorbar/_tickcolor.py +++ b/plotly/validators/isosurface/colorbar/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/colorbar/_tickfont.py b/plotly/validators/isosurface/colorbar/_tickfont.py index d91d332bcb..e0290133db 100644 --- a/plotly/validators/isosurface/colorbar/_tickfont.py +++ b/plotly/validators/isosurface/colorbar/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/isosurface/colorbar/_tickformat.py b/plotly/validators/isosurface/colorbar/_tickformat.py index 00544818ac..4d008356f0 100644 --- a/plotly/validators/isosurface/colorbar/_tickformat.py +++ b/plotly/validators/isosurface/colorbar/_tickformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/colorbar/_tickformatstopdefaults.py b/plotly/validators/isosurface/colorbar/_tickformatstopdefaults.py index c71e74ec3c..7f8f97222e 100644 --- a/plotly/validators/isosurface/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/isosurface/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/isosurface/colorbar/_tickformatstops.py b/plotly/validators/isosurface/colorbar/_tickformatstops.py index 3e762bafd3..d7ca7f81b1 100644 --- a/plotly/validators/isosurface/colorbar/_tickformatstops.py +++ b/plotly/validators/isosurface/colorbar/_tickformatstops.py @@ -1,50 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/isosurface/colorbar/_ticklabeloverflow.py b/plotly/validators/isosurface/colorbar/_ticklabeloverflow.py index 1842e01a13..5673519f78 100644 --- a/plotly/validators/isosurface/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/isosurface/colorbar/_ticklabeloverflow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/isosurface/colorbar/_ticklabelposition.py b/plotly/validators/isosurface/colorbar/_ticklabelposition.py index fc066d230a..45a879f435 100644 --- a/plotly/validators/isosurface/colorbar/_ticklabelposition.py +++ b/plotly/validators/isosurface/colorbar/_ticklabelposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/isosurface/colorbar/_ticklabelstep.py b/plotly/validators/isosurface/colorbar/_ticklabelstep.py index 75c9c5a954..7c8cd7f026 100644 --- a/plotly/validators/isosurface/colorbar/_ticklabelstep.py +++ b/plotly/validators/isosurface/colorbar/_ticklabelstep.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/isosurface/colorbar/_ticklen.py b/plotly/validators/isosurface/colorbar/_ticklen.py index 2184e2a050..147faa3d50 100644 --- a/plotly/validators/isosurface/colorbar/_ticklen.py +++ b/plotly/validators/isosurface/colorbar/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/isosurface/colorbar/_tickmode.py b/plotly/validators/isosurface/colorbar/_tickmode.py index 69b9d4e3a8..34a0d98c0d 100644 --- a/plotly/validators/isosurface/colorbar/_tickmode.py +++ b/plotly/validators/isosurface/colorbar/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/isosurface/colorbar/_tickprefix.py b/plotly/validators/isosurface/colorbar/_tickprefix.py index f9d7379bf5..aba01c832d 100644 --- a/plotly/validators/isosurface/colorbar/_tickprefix.py +++ b/plotly/validators/isosurface/colorbar/_tickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/colorbar/_ticks.py b/plotly/validators/isosurface/colorbar/_ticks.py index 16ecb76fa5..2695b0d6b5 100644 --- a/plotly/validators/isosurface/colorbar/_ticks.py +++ b/plotly/validators/isosurface/colorbar/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/isosurface/colorbar/_ticksuffix.py b/plotly/validators/isosurface/colorbar/_ticksuffix.py index 4554864e8a..7df3bfec2d 100644 --- a/plotly/validators/isosurface/colorbar/_ticksuffix.py +++ b/plotly/validators/isosurface/colorbar/_ticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/colorbar/_ticktext.py b/plotly/validators/isosurface/colorbar/_ticktext.py index 250dbeab45..92b429b69f 100644 --- a/plotly/validators/isosurface/colorbar/_ticktext.py +++ b/plotly/validators/isosurface/colorbar/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/colorbar/_ticktextsrc.py b/plotly/validators/isosurface/colorbar/_ticktextsrc.py index ce0c8497fa..b51a78e4d7 100644 --- a/plotly/validators/isosurface/colorbar/_ticktextsrc.py +++ b/plotly/validators/isosurface/colorbar/_ticktextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/isosurface/colorbar/_tickvals.py b/plotly/validators/isosurface/colorbar/_tickvals.py index a6a08c6e96..727a8df871 100644 --- a/plotly/validators/isosurface/colorbar/_tickvals.py +++ b/plotly/validators/isosurface/colorbar/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/colorbar/_tickvalssrc.py b/plotly/validators/isosurface/colorbar/_tickvalssrc.py index bb2e3de192..405a8b03b4 100644 --- a/plotly/validators/isosurface/colorbar/_tickvalssrc.py +++ b/plotly/validators/isosurface/colorbar/_tickvalssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/isosurface/colorbar/_tickwidth.py b/plotly/validators/isosurface/colorbar/_tickwidth.py index 47aa8841b1..cb30761b06 100644 --- a/plotly/validators/isosurface/colorbar/_tickwidth.py +++ b/plotly/validators/isosurface/colorbar/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/isosurface/colorbar/_title.py b/plotly/validators/isosurface/colorbar/_title.py index 5bfe607ada..b49524d99a 100644 --- a/plotly/validators/isosurface/colorbar/_title.py +++ b/plotly/validators/isosurface/colorbar/_title.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/isosurface/colorbar/_x.py b/plotly/validators/isosurface/colorbar/_x.py index 8b179ab3dd..6c57bd487f 100644 --- a/plotly/validators/isosurface/colorbar/_x.py +++ b/plotly/validators/isosurface/colorbar/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/colorbar/_xanchor.py b/plotly/validators/isosurface/colorbar/_xanchor.py index aa12efc655..c62bef5d6f 100644 --- a/plotly/validators/isosurface/colorbar/_xanchor.py +++ b/plotly/validators/isosurface/colorbar/_xanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/isosurface/colorbar/_xpad.py b/plotly/validators/isosurface/colorbar/_xpad.py index d658784b20..064096cd01 100644 --- a/plotly/validators/isosurface/colorbar/_xpad.py +++ b/plotly/validators/isosurface/colorbar/_xpad.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/isosurface/colorbar/_xref.py b/plotly/validators/isosurface/colorbar/_xref.py index 50a8039549..cb435ad006 100644 --- a/plotly/validators/isosurface/colorbar/_xref.py +++ b/plotly/validators/isosurface/colorbar/_xref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/isosurface/colorbar/_y.py b/plotly/validators/isosurface/colorbar/_y.py index 89917799b8..83f7238d6d 100644 --- a/plotly/validators/isosurface/colorbar/_y.py +++ b/plotly/validators/isosurface/colorbar/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/colorbar/_yanchor.py b/plotly/validators/isosurface/colorbar/_yanchor.py index 1f6e9f4ed2..41b48cdf62 100644 --- a/plotly/validators/isosurface/colorbar/_yanchor.py +++ b/plotly/validators/isosurface/colorbar/_yanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/isosurface/colorbar/_ypad.py b/plotly/validators/isosurface/colorbar/_ypad.py index e16a5e1716..7526fe1205 100644 --- a/plotly/validators/isosurface/colorbar/_ypad.py +++ b/plotly/validators/isosurface/colorbar/_ypad.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/isosurface/colorbar/_yref.py b/plotly/validators/isosurface/colorbar/_yref.py index c3ac45bcea..e800de7067 100644 --- a/plotly/validators/isosurface/colorbar/_yref.py +++ b/plotly/validators/isosurface/colorbar/_yref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/isosurface/colorbar/tickfont/__init__.py b/plotly/validators/isosurface/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/isosurface/colorbar/tickfont/__init__.py +++ b/plotly/validators/isosurface/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/isosurface/colorbar/tickfont/_color.py b/plotly/validators/isosurface/colorbar/tickfont/_color.py index 8d13e02e49..4859464d62 100644 --- a/plotly/validators/isosurface/colorbar/tickfont/_color.py +++ b/plotly/validators/isosurface/colorbar/tickfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/colorbar/tickfont/_family.py b/plotly/validators/isosurface/colorbar/tickfont/_family.py index 079b523e2d..c3a00b6ac8 100644 --- a/plotly/validators/isosurface/colorbar/tickfont/_family.py +++ b/plotly/validators/isosurface/colorbar/tickfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/isosurface/colorbar/tickfont/_lineposition.py b/plotly/validators/isosurface/colorbar/tickfont/_lineposition.py index 97cdbfce00..082bffbe70 100644 --- a/plotly/validators/isosurface/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/isosurface/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/isosurface/colorbar/tickfont/_shadow.py b/plotly/validators/isosurface/colorbar/tickfont/_shadow.py index 915ea8f303..a72b673551 100644 --- a/plotly/validators/isosurface/colorbar/tickfont/_shadow.py +++ b/plotly/validators/isosurface/colorbar/tickfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/colorbar/tickfont/_size.py b/plotly/validators/isosurface/colorbar/tickfont/_size.py index 86a99b3264..8273933702 100644 --- a/plotly/validators/isosurface/colorbar/tickfont/_size.py +++ b/plotly/validators/isosurface/colorbar/tickfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/isosurface/colorbar/tickfont/_style.py b/plotly/validators/isosurface/colorbar/tickfont/_style.py index d9bc71c583..c8ffc1978c 100644 --- a/plotly/validators/isosurface/colorbar/tickfont/_style.py +++ b/plotly/validators/isosurface/colorbar/tickfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/isosurface/colorbar/tickfont/_textcase.py b/plotly/validators/isosurface/colorbar/tickfont/_textcase.py index 320d1399b7..aa3a6cf1ce 100644 --- a/plotly/validators/isosurface/colorbar/tickfont/_textcase.py +++ b/plotly/validators/isosurface/colorbar/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/isosurface/colorbar/tickfont/_variant.py b/plotly/validators/isosurface/colorbar/tickfont/_variant.py index 8a8b7474b6..798388a13c 100644 --- a/plotly/validators/isosurface/colorbar/tickfont/_variant.py +++ b/plotly/validators/isosurface/colorbar/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/isosurface/colorbar/tickfont/_weight.py b/plotly/validators/isosurface/colorbar/tickfont/_weight.py index a34034b85b..335b96d639 100644 --- a/plotly/validators/isosurface/colorbar/tickfont/_weight.py +++ b/plotly/validators/isosurface/colorbar/tickfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/isosurface/colorbar/tickformatstop/__init__.py b/plotly/validators/isosurface/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/isosurface/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/isosurface/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/isosurface/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/isosurface/colorbar/tickformatstop/_dtickrange.py index 34d317c972..226132bb04 100644 --- a/plotly/validators/isosurface/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/isosurface/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/isosurface/colorbar/tickformatstop/_enabled.py b/plotly/validators/isosurface/colorbar/tickformatstop/_enabled.py index 3c2767c136..d93fd30215 100644 --- a/plotly/validators/isosurface/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/isosurface/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/colorbar/tickformatstop/_name.py b/plotly/validators/isosurface/colorbar/tickformatstop/_name.py index 7cb1a1ade4..9c4c87e492 100644 --- a/plotly/validators/isosurface/colorbar/tickformatstop/_name.py +++ b/plotly/validators/isosurface/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/isosurface/colorbar/tickformatstop/_templateitemname.py index 7a74cc7853..5dea31a0b3 100644 --- a/plotly/validators/isosurface/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/isosurface/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/colorbar/tickformatstop/_value.py b/plotly/validators/isosurface/colorbar/tickformatstop/_value.py index 222f89d5ec..574d613be7 100644 --- a/plotly/validators/isosurface/colorbar/tickformatstop/_value.py +++ b/plotly/validators/isosurface/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/colorbar/title/__init__.py b/plotly/validators/isosurface/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/isosurface/colorbar/title/__init__.py +++ b/plotly/validators/isosurface/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/isosurface/colorbar/title/_font.py b/plotly/validators/isosurface/colorbar/title/_font.py index 759f740178..807f718ec7 100644 --- a/plotly/validators/isosurface/colorbar/title/_font.py +++ b/plotly/validators/isosurface/colorbar/title/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/isosurface/colorbar/title/_side.py b/plotly/validators/isosurface/colorbar/title/_side.py index 8cfcc05f77..a7f26aabff 100644 --- a/plotly/validators/isosurface/colorbar/title/_side.py +++ b/plotly/validators/isosurface/colorbar/title/_side.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/isosurface/colorbar/title/_text.py b/plotly/validators/isosurface/colorbar/title/_text.py index b5e31c825d..c68cd8cd04 100644 --- a/plotly/validators/isosurface/colorbar/title/_text.py +++ b/plotly/validators/isosurface/colorbar/title/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/colorbar/title/font/__init__.py b/plotly/validators/isosurface/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/isosurface/colorbar/title/font/__init__.py +++ b/plotly/validators/isosurface/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/isosurface/colorbar/title/font/_color.py b/plotly/validators/isosurface/colorbar/title/font/_color.py index b8e0bdcbbe..37c320216e 100644 --- a/plotly/validators/isosurface/colorbar/title/font/_color.py +++ b/plotly/validators/isosurface/colorbar/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/colorbar/title/font/_family.py b/plotly/validators/isosurface/colorbar/title/font/_family.py index bcd91e31ce..ead9aa69f0 100644 --- a/plotly/validators/isosurface/colorbar/title/font/_family.py +++ b/plotly/validators/isosurface/colorbar/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/isosurface/colorbar/title/font/_lineposition.py b/plotly/validators/isosurface/colorbar/title/font/_lineposition.py index 5c7f0b0ae0..4d99bfcce6 100644 --- a/plotly/validators/isosurface/colorbar/title/font/_lineposition.py +++ b/plotly/validators/isosurface/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/isosurface/colorbar/title/font/_shadow.py b/plotly/validators/isosurface/colorbar/title/font/_shadow.py index aec6dbfa5d..ecf0dbdc81 100644 --- a/plotly/validators/isosurface/colorbar/title/font/_shadow.py +++ b/plotly/validators/isosurface/colorbar/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/colorbar/title/font/_size.py b/plotly/validators/isosurface/colorbar/title/font/_size.py index 907a7330a8..f6910ecdcd 100644 --- a/plotly/validators/isosurface/colorbar/title/font/_size.py +++ b/plotly/validators/isosurface/colorbar/title/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/isosurface/colorbar/title/font/_style.py b/plotly/validators/isosurface/colorbar/title/font/_style.py index cb07396553..850fe212cc 100644 --- a/plotly/validators/isosurface/colorbar/title/font/_style.py +++ b/plotly/validators/isosurface/colorbar/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/isosurface/colorbar/title/font/_textcase.py b/plotly/validators/isosurface/colorbar/title/font/_textcase.py index 8390b016ef..a44e06c10f 100644 --- a/plotly/validators/isosurface/colorbar/title/font/_textcase.py +++ b/plotly/validators/isosurface/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/isosurface/colorbar/title/font/_variant.py b/plotly/validators/isosurface/colorbar/title/font/_variant.py index 145beb6c09..5ab86bc997 100644 --- a/plotly/validators/isosurface/colorbar/title/font/_variant.py +++ b/plotly/validators/isosurface/colorbar/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/isosurface/colorbar/title/font/_weight.py b/plotly/validators/isosurface/colorbar/title/font/_weight.py index be31c72fdf..309f8eb475 100644 --- a/plotly/validators/isosurface/colorbar/title/font/_weight.py +++ b/plotly/validators/isosurface/colorbar/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/isosurface/contour/__init__.py b/plotly/validators/isosurface/contour/__init__.py index 8d51b1d4c0..1a1cc3031d 100644 --- a/plotly/validators/isosurface/contour/__init__.py +++ b/plotly/validators/isosurface/contour/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._width.WidthValidator", "._show.ShowValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/isosurface/contour/_color.py b/plotly/validators/isosurface/contour/_color.py index 3f9a0d2b02..360496d430 100644 --- a/plotly/validators/isosurface/contour/_color.py +++ b/plotly/validators/isosurface/contour/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/contour/_show.py b/plotly/validators/isosurface/contour/_show.py index 83f5f03238..a4a9ffd6d6 100644 --- a/plotly/validators/isosurface/contour/_show.py +++ b/plotly/validators/isosurface/contour/_show.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/contour/_width.py b/plotly/validators/isosurface/contour/_width.py index 25fb355393..e7744f6e75 100644 --- a/plotly/validators/isosurface/contour/_width.py +++ b/plotly/validators/isosurface/contour/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 16), min=kwargs.pop("min", 1), diff --git a/plotly/validators/isosurface/hoverlabel/__init__.py b/plotly/validators/isosurface/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/isosurface/hoverlabel/__init__.py +++ b/plotly/validators/isosurface/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/isosurface/hoverlabel/_align.py b/plotly/validators/isosurface/hoverlabel/_align.py index f0a83aea24..3a43ceebb8 100644 --- a/plotly/validators/isosurface/hoverlabel/_align.py +++ b/plotly/validators/isosurface/hoverlabel/_align.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/isosurface/hoverlabel/_alignsrc.py b/plotly/validators/isosurface/hoverlabel/_alignsrc.py index 0526ae5812..0edb02405a 100644 --- a/plotly/validators/isosurface/hoverlabel/_alignsrc.py +++ b/plotly/validators/isosurface/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/isosurface/hoverlabel/_bgcolor.py b/plotly/validators/isosurface/hoverlabel/_bgcolor.py index 8b14404b70..2d59cb33d4 100644 --- a/plotly/validators/isosurface/hoverlabel/_bgcolor.py +++ b/plotly/validators/isosurface/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/isosurface/hoverlabel/_bgcolorsrc.py b/plotly/validators/isosurface/hoverlabel/_bgcolorsrc.py index 7e25e8204e..5ec821acee 100644 --- a/plotly/validators/isosurface/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/isosurface/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/isosurface/hoverlabel/_bordercolor.py b/plotly/validators/isosurface/hoverlabel/_bordercolor.py index d4ae2f3a29..d2cbecf553 100644 --- a/plotly/validators/isosurface/hoverlabel/_bordercolor.py +++ b/plotly/validators/isosurface/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/isosurface/hoverlabel/_bordercolorsrc.py b/plotly/validators/isosurface/hoverlabel/_bordercolorsrc.py index e20a1ad263..ba2ac9a6e8 100644 --- a/plotly/validators/isosurface/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/isosurface/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/isosurface/hoverlabel/_font.py b/plotly/validators/isosurface/hoverlabel/_font.py index 78c1669f43..f85461c140 100644 --- a/plotly/validators/isosurface/hoverlabel/_font.py +++ b/plotly/validators/isosurface/hoverlabel/_font.py @@ -1,87 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/isosurface/hoverlabel/_namelength.py b/plotly/validators/isosurface/hoverlabel/_namelength.py index 323275ac2c..f1d6e9a69a 100644 --- a/plotly/validators/isosurface/hoverlabel/_namelength.py +++ b/plotly/validators/isosurface/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/isosurface/hoverlabel/_namelengthsrc.py b/plotly/validators/isosurface/hoverlabel/_namelengthsrc.py index 7c1b841e66..5e9392cb64 100644 --- a/plotly/validators/isosurface/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/isosurface/hoverlabel/_namelengthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/isosurface/hoverlabel/font/__init__.py b/plotly/validators/isosurface/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/isosurface/hoverlabel/font/__init__.py +++ b/plotly/validators/isosurface/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/isosurface/hoverlabel/font/_color.py b/plotly/validators/isosurface/hoverlabel/font/_color.py index 13c97e43f6..aaa2d14b17 100644 --- a/plotly/validators/isosurface/hoverlabel/font/_color.py +++ b/plotly/validators/isosurface/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/isosurface/hoverlabel/font/_colorsrc.py b/plotly/validators/isosurface/hoverlabel/font/_colorsrc.py index 22e383016e..1e0cf7fbb1 100644 --- a/plotly/validators/isosurface/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/isosurface/hoverlabel/font/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/isosurface/hoverlabel/font/_family.py b/plotly/validators/isosurface/hoverlabel/font/_family.py index 92b86e472d..917a1a8e1b 100644 --- a/plotly/validators/isosurface/hoverlabel/font/_family.py +++ b/plotly/validators/isosurface/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/isosurface/hoverlabel/font/_familysrc.py b/plotly/validators/isosurface/hoverlabel/font/_familysrc.py index 60d2a9da02..1d55f7b4a0 100644 --- a/plotly/validators/isosurface/hoverlabel/font/_familysrc.py +++ b/plotly/validators/isosurface/hoverlabel/font/_familysrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/isosurface/hoverlabel/font/_lineposition.py b/plotly/validators/isosurface/hoverlabel/font/_lineposition.py index 12b9a00b1b..025504cffd 100644 --- a/plotly/validators/isosurface/hoverlabel/font/_lineposition.py +++ b/plotly/validators/isosurface/hoverlabel/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/isosurface/hoverlabel/font/_linepositionsrc.py b/plotly/validators/isosurface/hoverlabel/font/_linepositionsrc.py index 05cb314faf..2dd5d743e9 100644 --- a/plotly/validators/isosurface/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/isosurface/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/isosurface/hoverlabel/font/_shadow.py b/plotly/validators/isosurface/hoverlabel/font/_shadow.py index 5b58bff5bf..4e67aa0096 100644 --- a/plotly/validators/isosurface/hoverlabel/font/_shadow.py +++ b/plotly/validators/isosurface/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/isosurface/hoverlabel/font/_shadowsrc.py b/plotly/validators/isosurface/hoverlabel/font/_shadowsrc.py index ea5c1fb46f..cbfbda65ad 100644 --- a/plotly/validators/isosurface/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/isosurface/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/isosurface/hoverlabel/font/_size.py b/plotly/validators/isosurface/hoverlabel/font/_size.py index 230cfcb294..28d1bc8ec0 100644 --- a/plotly/validators/isosurface/hoverlabel/font/_size.py +++ b/plotly/validators/isosurface/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/isosurface/hoverlabel/font/_sizesrc.py b/plotly/validators/isosurface/hoverlabel/font/_sizesrc.py index 8243bf3848..208c556725 100644 --- a/plotly/validators/isosurface/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/isosurface/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/isosurface/hoverlabel/font/_style.py b/plotly/validators/isosurface/hoverlabel/font/_style.py index d07435309e..646131923a 100644 --- a/plotly/validators/isosurface/hoverlabel/font/_style.py +++ b/plotly/validators/isosurface/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/isosurface/hoverlabel/font/_stylesrc.py b/plotly/validators/isosurface/hoverlabel/font/_stylesrc.py index ac3b371a0d..ca6e298794 100644 --- a/plotly/validators/isosurface/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/isosurface/hoverlabel/font/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/isosurface/hoverlabel/font/_textcase.py b/plotly/validators/isosurface/hoverlabel/font/_textcase.py index e7820807c0..5ea5d48381 100644 --- a/plotly/validators/isosurface/hoverlabel/font/_textcase.py +++ b/plotly/validators/isosurface/hoverlabel/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/isosurface/hoverlabel/font/_textcasesrc.py b/plotly/validators/isosurface/hoverlabel/font/_textcasesrc.py index 4eaee2c5e1..5eb805ec1d 100644 --- a/plotly/validators/isosurface/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/isosurface/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/isosurface/hoverlabel/font/_variant.py b/plotly/validators/isosurface/hoverlabel/font/_variant.py index 406b55cd01..9f4318a9c2 100644 --- a/plotly/validators/isosurface/hoverlabel/font/_variant.py +++ b/plotly/validators/isosurface/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/isosurface/hoverlabel/font/_variantsrc.py b/plotly/validators/isosurface/hoverlabel/font/_variantsrc.py index 5ab8e74a74..170b0ca8a1 100644 --- a/plotly/validators/isosurface/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/isosurface/hoverlabel/font/_variantsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/isosurface/hoverlabel/font/_weight.py b/plotly/validators/isosurface/hoverlabel/font/_weight.py index b7b0567143..208e7bfe24 100644 --- a/plotly/validators/isosurface/hoverlabel/font/_weight.py +++ b/plotly/validators/isosurface/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/isosurface/hoverlabel/font/_weightsrc.py b/plotly/validators/isosurface/hoverlabel/font/_weightsrc.py index 30f0346643..ff0d3d200a 100644 --- a/plotly/validators/isosurface/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/isosurface/hoverlabel/font/_weightsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/isosurface/legendgrouptitle/__init__.py b/plotly/validators/isosurface/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/isosurface/legendgrouptitle/__init__.py +++ b/plotly/validators/isosurface/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/isosurface/legendgrouptitle/_font.py b/plotly/validators/isosurface/legendgrouptitle/_font.py index 9b4948699c..ac87eae1db 100644 --- a/plotly/validators/isosurface/legendgrouptitle/_font.py +++ b/plotly/validators/isosurface/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/isosurface/legendgrouptitle/_text.py b/plotly/validators/isosurface/legendgrouptitle/_text.py index a865475e8a..d559cbf72a 100644 --- a/plotly/validators/isosurface/legendgrouptitle/_text.py +++ b/plotly/validators/isosurface/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/isosurface/legendgrouptitle/font/__init__.py b/plotly/validators/isosurface/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/isosurface/legendgrouptitle/font/__init__.py +++ b/plotly/validators/isosurface/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/isosurface/legendgrouptitle/font/_color.py b/plotly/validators/isosurface/legendgrouptitle/font/_color.py index 29f40601ca..812958f186 100644 --- a/plotly/validators/isosurface/legendgrouptitle/font/_color.py +++ b/plotly/validators/isosurface/legendgrouptitle/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/isosurface/legendgrouptitle/font/_family.py b/plotly/validators/isosurface/legendgrouptitle/font/_family.py index d3120f2951..c564ab2cfa 100644 --- a/plotly/validators/isosurface/legendgrouptitle/font/_family.py +++ b/plotly/validators/isosurface/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/isosurface/legendgrouptitle/font/_lineposition.py b/plotly/validators/isosurface/legendgrouptitle/font/_lineposition.py index 71bec95894..49b64864c4 100644 --- a/plotly/validators/isosurface/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/isosurface/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/isosurface/legendgrouptitle/font/_shadow.py b/plotly/validators/isosurface/legendgrouptitle/font/_shadow.py index d4090d6b39..a9c6e15083 100644 --- a/plotly/validators/isosurface/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/isosurface/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/isosurface/legendgrouptitle/font/_size.py b/plotly/validators/isosurface/legendgrouptitle/font/_size.py index b5cb7d56c1..1861618472 100644 --- a/plotly/validators/isosurface/legendgrouptitle/font/_size.py +++ b/plotly/validators/isosurface/legendgrouptitle/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/isosurface/legendgrouptitle/font/_style.py b/plotly/validators/isosurface/legendgrouptitle/font/_style.py index 033844ce08..a7f624da8f 100644 --- a/plotly/validators/isosurface/legendgrouptitle/font/_style.py +++ b/plotly/validators/isosurface/legendgrouptitle/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/isosurface/legendgrouptitle/font/_textcase.py b/plotly/validators/isosurface/legendgrouptitle/font/_textcase.py index 611ae1638e..3916bb8ec3 100644 --- a/plotly/validators/isosurface/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/isosurface/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/isosurface/legendgrouptitle/font/_variant.py b/plotly/validators/isosurface/legendgrouptitle/font/_variant.py index b9521f4e3a..b69a9234ce 100644 --- a/plotly/validators/isosurface/legendgrouptitle/font/_variant.py +++ b/plotly/validators/isosurface/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/isosurface/legendgrouptitle/font/_weight.py b/plotly/validators/isosurface/legendgrouptitle/font/_weight.py index 221e1eb26e..c29ed5c7ca 100644 --- a/plotly/validators/isosurface/legendgrouptitle/font/_weight.py +++ b/plotly/validators/isosurface/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/isosurface/lighting/__init__.py b/plotly/validators/isosurface/lighting/__init__.py index 028351f35d..1f11e1b86f 100644 --- a/plotly/validators/isosurface/lighting/__init__.py +++ b/plotly/validators/isosurface/lighting/__init__.py @@ -1,27 +1,16 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._vertexnormalsepsilon import VertexnormalsepsilonValidator - from ._specular import SpecularValidator - from ._roughness import RoughnessValidator - from ._fresnel import FresnelValidator - from ._facenormalsepsilon import FacenormalsepsilonValidator - from ._diffuse import DiffuseValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._vertexnormalsepsilon.VertexnormalsepsilonValidator", + "._specular.SpecularValidator", + "._roughness.RoughnessValidator", + "._fresnel.FresnelValidator", + "._facenormalsepsilon.FacenormalsepsilonValidator", + "._diffuse.DiffuseValidator", + "._ambient.AmbientValidator", + ], +) diff --git a/plotly/validators/isosurface/lighting/_ambient.py b/plotly/validators/isosurface/lighting/_ambient.py index e32860e3c8..a80443bf98 100644 --- a/plotly/validators/isosurface/lighting/_ambient.py +++ b/plotly/validators/isosurface/lighting/_ambient.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AmbientValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/isosurface/lighting/_diffuse.py b/plotly/validators/isosurface/lighting/_diffuse.py index 028cf17308..cc3d774e3b 100644 --- a/plotly/validators/isosurface/lighting/_diffuse.py +++ b/plotly/validators/isosurface/lighting/_diffuse.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DiffuseValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/isosurface/lighting/_facenormalsepsilon.py b/plotly/validators/isosurface/lighting/_facenormalsepsilon.py index 6d7ab99334..5d781c51b4 100644 --- a/plotly/validators/isosurface/lighting/_facenormalsepsilon.py +++ b/plotly/validators/isosurface/lighting/_facenormalsepsilon.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FacenormalsepsilonValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/isosurface/lighting/_fresnel.py b/plotly/validators/isosurface/lighting/_fresnel.py index c2a060819c..584b6b1d15 100644 --- a/plotly/validators/isosurface/lighting/_fresnel.py +++ b/plotly/validators/isosurface/lighting/_fresnel.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FresnelValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 5), min=kwargs.pop("min", 0), diff --git a/plotly/validators/isosurface/lighting/_roughness.py b/plotly/validators/isosurface/lighting/_roughness.py index c16be5b024..2171ab27c0 100644 --- a/plotly/validators/isosurface/lighting/_roughness.py +++ b/plotly/validators/isosurface/lighting/_roughness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RoughnessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/isosurface/lighting/_specular.py b/plotly/validators/isosurface/lighting/_specular.py index 3be95354f8..e968904680 100644 --- a/plotly/validators/isosurface/lighting/_specular.py +++ b/plotly/validators/isosurface/lighting/_specular.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SpecularValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 2), min=kwargs.pop("min", 0), diff --git a/plotly/validators/isosurface/lighting/_vertexnormalsepsilon.py b/plotly/validators/isosurface/lighting/_vertexnormalsepsilon.py index f7f5bff8ed..c1c8e65dba 100644 --- a/plotly/validators/isosurface/lighting/_vertexnormalsepsilon.py +++ b/plotly/validators/isosurface/lighting/_vertexnormalsepsilon.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VertexnormalsepsilonValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/isosurface/lightposition/__init__.py b/plotly/validators/isosurface/lightposition/__init__.py index 52779f59bc..8c47d2db5f 100644 --- a/plotly/validators/isosurface/lightposition/__init__.py +++ b/plotly/validators/isosurface/lightposition/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] +) diff --git a/plotly/validators/isosurface/lightposition/_x.py b/plotly/validators/isosurface/lightposition/_x.py index 3eec1900cb..70345d60ca 100644 --- a/plotly/validators/isosurface/lightposition/_x.py +++ b/plotly/validators/isosurface/lightposition/_x.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 100000), min=kwargs.pop("min", -100000), diff --git a/plotly/validators/isosurface/lightposition/_y.py b/plotly/validators/isosurface/lightposition/_y.py index 8ca85fac83..7c4920b651 100644 --- a/plotly/validators/isosurface/lightposition/_y.py +++ b/plotly/validators/isosurface/lightposition/_y.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 100000), min=kwargs.pop("min", -100000), diff --git a/plotly/validators/isosurface/lightposition/_z.py b/plotly/validators/isosurface/lightposition/_z.py index f710d8153f..33552a998d 100644 --- a/plotly/validators/isosurface/lightposition/_z.py +++ b/plotly/validators/isosurface/lightposition/_z.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 100000), min=kwargs.pop("min", -100000), diff --git a/plotly/validators/isosurface/slices/__init__.py b/plotly/validators/isosurface/slices/__init__.py index 52779f59bc..8c47d2db5f 100644 --- a/plotly/validators/isosurface/slices/__init__.py +++ b/plotly/validators/isosurface/slices/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] +) diff --git a/plotly/validators/isosurface/slices/_x.py b/plotly/validators/isosurface/slices/_x.py index 421db138ed..78a4d1ca54 100644 --- a/plotly/validators/isosurface/slices/_x.py +++ b/plotly/validators/isosurface/slices/_x.py @@ -1,33 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/isosurface/slices/_y.py b/plotly/validators/isosurface/slices/_y.py index e9b11ffccf..63a69e7366 100644 --- a/plotly/validators/isosurface/slices/_y.py +++ b/plotly/validators/isosurface/slices/_y.py @@ -1,33 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/isosurface/slices/_z.py b/plotly/validators/isosurface/slices/_z.py index 30570eb74a..7e3254c766 100644 --- a/plotly/validators/isosurface/slices/_z.py +++ b/plotly/validators/isosurface/slices/_z.py @@ -1,33 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/isosurface/slices/x/__init__.py b/plotly/validators/isosurface/slices/x/__init__.py index 9085068fff..69805fd611 100644 --- a/plotly/validators/isosurface/slices/x/__init__.py +++ b/plotly/validators/isosurface/slices/x/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._show import ShowValidator - from ._locationssrc import LocationssrcValidator - from ._locations import LocationsValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._show.ShowValidator", + "._locationssrc.LocationssrcValidator", + "._locations.LocationsValidator", + "._fill.FillValidator", + ], +) diff --git a/plotly/validators/isosurface/slices/x/_fill.py b/plotly/validators/isosurface/slices/x/_fill.py index 282b628ec6..0eebaf9aa8 100644 --- a/plotly/validators/isosurface/slices/x/_fill.py +++ b/plotly/validators/isosurface/slices/x/_fill.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/isosurface/slices/x/_locations.py b/plotly/validators/isosurface/slices/x/_locations.py index f33fa6b197..a7581d80d2 100644 --- a/plotly/validators/isosurface/slices/x/_locations.py +++ b/plotly/validators/isosurface/slices/x/_locations.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LocationsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/slices/x/_locationssrc.py b/plotly/validators/isosurface/slices/x/_locationssrc.py index 0f617948ea..4f2b3974ca 100644 --- a/plotly/validators/isosurface/slices/x/_locationssrc.py +++ b/plotly/validators/isosurface/slices/x/_locationssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LocationssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/isosurface/slices/x/_show.py b/plotly/validators/isosurface/slices/x/_show.py index 0cc53bd036..55f94fe30e 100644 --- a/plotly/validators/isosurface/slices/x/_show.py +++ b/plotly/validators/isosurface/slices/x/_show.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/slices/y/__init__.py b/plotly/validators/isosurface/slices/y/__init__.py index 9085068fff..69805fd611 100644 --- a/plotly/validators/isosurface/slices/y/__init__.py +++ b/plotly/validators/isosurface/slices/y/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._show import ShowValidator - from ._locationssrc import LocationssrcValidator - from ._locations import LocationsValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._show.ShowValidator", + "._locationssrc.LocationssrcValidator", + "._locations.LocationsValidator", + "._fill.FillValidator", + ], +) diff --git a/plotly/validators/isosurface/slices/y/_fill.py b/plotly/validators/isosurface/slices/y/_fill.py index dda09cd2f3..031951a160 100644 --- a/plotly/validators/isosurface/slices/y/_fill.py +++ b/plotly/validators/isosurface/slices/y/_fill.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/isosurface/slices/y/_locations.py b/plotly/validators/isosurface/slices/y/_locations.py index 10442d9986..6bb28e8323 100644 --- a/plotly/validators/isosurface/slices/y/_locations.py +++ b/plotly/validators/isosurface/slices/y/_locations.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LocationsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/slices/y/_locationssrc.py b/plotly/validators/isosurface/slices/y/_locationssrc.py index e8e07c5e1b..6ba71267bc 100644 --- a/plotly/validators/isosurface/slices/y/_locationssrc.py +++ b/plotly/validators/isosurface/slices/y/_locationssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LocationssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/isosurface/slices/y/_show.py b/plotly/validators/isosurface/slices/y/_show.py index 1167857455..ce6b7a9d6f 100644 --- a/plotly/validators/isosurface/slices/y/_show.py +++ b/plotly/validators/isosurface/slices/y/_show.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/slices/z/__init__.py b/plotly/validators/isosurface/slices/z/__init__.py index 9085068fff..69805fd611 100644 --- a/plotly/validators/isosurface/slices/z/__init__.py +++ b/plotly/validators/isosurface/slices/z/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._show import ShowValidator - from ._locationssrc import LocationssrcValidator - from ._locations import LocationsValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._show.ShowValidator", + "._locationssrc.LocationssrcValidator", + "._locations.LocationsValidator", + "._fill.FillValidator", + ], +) diff --git a/plotly/validators/isosurface/slices/z/_fill.py b/plotly/validators/isosurface/slices/z/_fill.py index 0600dd88cc..cc5246f507 100644 --- a/plotly/validators/isosurface/slices/z/_fill.py +++ b/plotly/validators/isosurface/slices/z/_fill.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/isosurface/slices/z/_locations.py b/plotly/validators/isosurface/slices/z/_locations.py index bbca13acd3..8a3af5eb03 100644 --- a/plotly/validators/isosurface/slices/z/_locations.py +++ b/plotly/validators/isosurface/slices/z/_locations.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LocationsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/slices/z/_locationssrc.py b/plotly/validators/isosurface/slices/z/_locationssrc.py index 47ebf367e1..e807455b66 100644 --- a/plotly/validators/isosurface/slices/z/_locationssrc.py +++ b/plotly/validators/isosurface/slices/z/_locationssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LocationssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/isosurface/slices/z/_show.py b/plotly/validators/isosurface/slices/z/_show.py index f15fdefeea..2f63cd4eb8 100644 --- a/plotly/validators/isosurface/slices/z/_show.py +++ b/plotly/validators/isosurface/slices/z/_show.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/spaceframe/__init__.py b/plotly/validators/isosurface/spaceframe/__init__.py index 63a14620d2..db8b1b549e 100644 --- a/plotly/validators/isosurface/spaceframe/__init__.py +++ b/plotly/validators/isosurface/spaceframe/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._show.ShowValidator", "._fill.FillValidator"] +) diff --git a/plotly/validators/isosurface/spaceframe/_fill.py b/plotly/validators/isosurface/spaceframe/_fill.py index 47d03f2068..6c4f437e38 100644 --- a/plotly/validators/isosurface/spaceframe/_fill.py +++ b/plotly/validators/isosurface/spaceframe/_fill.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/isosurface/spaceframe/_show.py b/plotly/validators/isosurface/spaceframe/_show.py index 9c279bb5cb..471cb38976 100644 --- a/plotly/validators/isosurface/spaceframe/_show.py +++ b/plotly/validators/isosurface/spaceframe/_show.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/isosurface/stream/__init__.py b/plotly/validators/isosurface/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/isosurface/stream/__init__.py +++ b/plotly/validators/isosurface/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/isosurface/stream/_maxpoints.py b/plotly/validators/isosurface/stream/_maxpoints.py index a5bb60c939..579d44aa9b 100644 --- a/plotly/validators/isosurface/stream/_maxpoints.py +++ b/plotly/validators/isosurface/stream/_maxpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/isosurface/stream/_token.py b/plotly/validators/isosurface/stream/_token.py index 89752f51f0..ab1fa93fb3 100644 --- a/plotly/validators/isosurface/stream/_token.py +++ b/plotly/validators/isosurface/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/isosurface/surface/__init__.py b/plotly/validators/isosurface/surface/__init__.py index 79e3ea4c55..e200f4835e 100644 --- a/plotly/validators/isosurface/surface/__init__.py +++ b/plotly/validators/isosurface/surface/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._show import ShowValidator - from ._pattern import PatternValidator - from ._fill import FillValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._show.ShowValidator", + "._pattern.PatternValidator", + "._fill.FillValidator", + "._count.CountValidator", + ], +) diff --git a/plotly/validators/isosurface/surface/_count.py b/plotly/validators/isosurface/surface/_count.py index 91ccaf4ca7..64d859c5c4 100644 --- a/plotly/validators/isosurface/surface/_count.py +++ b/plotly/validators/isosurface/surface/_count.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CountValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/isosurface/surface/_fill.py b/plotly/validators/isosurface/surface/_fill.py index f010167913..d51681c59d 100644 --- a/plotly/validators/isosurface/surface/_fill.py +++ b/plotly/validators/isosurface/surface/_fill.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/isosurface/surface/_pattern.py b/plotly/validators/isosurface/surface/_pattern.py index 40bdeed86d..07b91e49a8 100644 --- a/plotly/validators/isosurface/surface/_pattern.py +++ b/plotly/validators/isosurface/surface/_pattern.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PatternValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/isosurface/surface/_show.py b/plotly/validators/isosurface/surface/_show.py index 618fc2f502..e5038a7b4b 100644 --- a/plotly/validators/isosurface/surface/_show.py +++ b/plotly/validators/isosurface/surface/_show.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/__init__.py b/plotly/validators/layout/__init__.py index fb12452751..7391b7923c 100644 --- a/plotly/validators/layout/__init__.py +++ b/plotly/validators/layout/__init__.py @@ -1,203 +1,104 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yaxis import YaxisValidator - from ._xaxis import XaxisValidator - from ._width import WidthValidator - from ._waterfallmode import WaterfallmodeValidator - from ._waterfallgroupgap import WaterfallgroupgapValidator - from ._waterfallgap import WaterfallgapValidator - from ._violinmode import ViolinmodeValidator - from ._violingroupgap import ViolingroupgapValidator - from ._violingap import ViolingapValidator - from ._updatemenudefaults import UpdatemenudefaultsValidator - from ._updatemenus import UpdatemenusValidator - from ._uniformtext import UniformtextValidator - from ._uirevision import UirevisionValidator - from ._treemapcolorway import TreemapcolorwayValidator - from ._transition import TransitionValidator - from ._title import TitleValidator - from ._ternary import TernaryValidator - from ._template import TemplateValidator - from ._sunburstcolorway import SunburstcolorwayValidator - from ._spikedistance import SpikedistanceValidator - from ._smith import SmithValidator - from ._sliderdefaults import SliderdefaultsValidator - from ._sliders import SlidersValidator - from ._showlegend import ShowlegendValidator - from ._shapedefaults import ShapedefaultsValidator - from ._shapes import ShapesValidator - from ._separators import SeparatorsValidator - from ._selectiondefaults import SelectiondefaultsValidator - from ._selections import SelectionsValidator - from ._selectionrevision import SelectionrevisionValidator - from ._selectdirection import SelectdirectionValidator - from ._scene import SceneValidator - from ._scattermode import ScattermodeValidator - from ._scattergap import ScattergapValidator - from ._polar import PolarValidator - from ._plot_bgcolor import Plot_BgcolorValidator - from ._piecolorway import PiecolorwayValidator - from ._paper_bgcolor import Paper_BgcolorValidator - from ._newshape import NewshapeValidator - from ._newselection import NewselectionValidator - from ._modebar import ModebarValidator - from ._minreducedwidth import MinreducedwidthValidator - from ._minreducedheight import MinreducedheightValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._margin import MarginValidator - from ._mapbox import MapboxValidator - from ._map import MapValidator - from ._legend import LegendValidator - from ._imagedefaults import ImagedefaultsValidator - from ._images import ImagesValidator - from ._iciclecolorway import IciclecolorwayValidator - from ._hoversubplots import HoversubplotsValidator - from ._hovermode import HovermodeValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverdistance import HoverdistanceValidator - from ._hidesources import HidesourcesValidator - from ._hiddenlabelssrc import HiddenlabelssrcValidator - from ._hiddenlabels import HiddenlabelsValidator - from ._height import HeightValidator - from ._grid import GridValidator - from ._geo import GeoValidator - from ._funnelmode import FunnelmodeValidator - from ._funnelgroupgap import FunnelgroupgapValidator - from ._funnelgap import FunnelgapValidator - from ._funnelareacolorway import FunnelareacolorwayValidator - from ._font import FontValidator - from ._extendtreemapcolors import ExtendtreemapcolorsValidator - from ._extendsunburstcolors import ExtendsunburstcolorsValidator - from ._extendpiecolors import ExtendpiecolorsValidator - from ._extendiciclecolors import ExtendiciclecolorsValidator - from ._extendfunnelareacolors import ExtendfunnelareacolorsValidator - from ._editrevision import EditrevisionValidator - from ._dragmode import DragmodeValidator - from ._datarevision import DatarevisionValidator - from ._computed import ComputedValidator - from ._colorway import ColorwayValidator - from ._colorscale import ColorscaleValidator - from ._coloraxis import ColoraxisValidator - from ._clickmode import ClickmodeValidator - from ._calendar import CalendarValidator - from ._boxmode import BoxmodeValidator - from ._boxgroupgap import BoxgroupgapValidator - from ._boxgap import BoxgapValidator - from ._barnorm import BarnormValidator - from ._barmode import BarmodeValidator - from ._bargroupgap import BargroupgapValidator - from ._bargap import BargapValidator - from ._barcornerradius import BarcornerradiusValidator - from ._autotypenumbers import AutotypenumbersValidator - from ._autosize import AutosizeValidator - from ._annotationdefaults import AnnotationdefaultsValidator - from ._annotations import AnnotationsValidator - from ._activeshape import ActiveshapeValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/_activeselection.py b/plotly/validators/layout/_activeselection.py index e09766089e..7f754eedbc 100644 --- a/plotly/validators/layout/_activeselection.py +++ b/plotly/validators/layout/_activeselection.py @@ -1,20 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ActiveselectionValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/_activeshape.py b/plotly/validators/layout/_activeshape.py index fb763065f6..82d480b636 100644 --- a/plotly/validators/layout/_activeshape.py +++ b/plotly/validators/layout/_activeshape.py @@ -1,20 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ActiveshapeValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/_annotationdefaults.py b/plotly/validators/layout/_annotationdefaults.py index b59ff513fe..7ca96d348e 100644 --- a/plotly/validators/layout/_annotationdefaults.py +++ b/plotly/validators/layout/_annotationdefaults.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AnnotationdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Annotation"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/_annotations.py b/plotly/validators/layout/_annotations.py index 7e5f116bea..60c1676431 100644 --- a/plotly/validators/layout/_annotations.py +++ b/plotly/validators/layout/_annotations.py @@ -1,332 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AnnotationsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/_autosize.py b/plotly/validators/layout/_autosize.py index 0897b950ba..a3398609b0 100644 --- a/plotly/validators/layout/_autosize.py +++ b/plotly/validators/layout/_autosize.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutosizeValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/_autotypenumbers.py b/plotly/validators/layout/_autotypenumbers.py index ac7a53076e..1e284a49f7 100644 --- a/plotly/validators/layout/_autotypenumbers.py +++ b/plotly/validators/layout/_autotypenumbers.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutotypenumbersValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["convert types", "strict"]), **kwargs, diff --git a/plotly/validators/layout/_barcornerradius.py b/plotly/validators/layout/_barcornerradius.py index acbc51ecb9..772dc24beb 100644 --- a/plotly/validators/layout/_barcornerradius.py +++ b/plotly/validators/layout/_barcornerradius.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BarcornerradiusValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/_bargap.py b/plotly/validators/layout/_bargap.py index bcf276e67c..464aacdc3f 100644 --- a/plotly/validators/layout/_bargap.py +++ b/plotly/validators/layout/_bargap.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BargapValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/_bargroupgap.py b/plotly/validators/layout/_bargroupgap.py index 544b1a4787..e60d521659 100644 --- a/plotly/validators/layout/_bargroupgap.py +++ b/plotly/validators/layout/_bargroupgap.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BargroupgapValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/_barmode.py b/plotly/validators/layout/_barmode.py index ec8d5a91d9..cc3700d330 100644 --- a/plotly/validators/layout/_barmode.py +++ b/plotly/validators/layout/_barmode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BarmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["stack", "group", "overlay", "relative"]), **kwargs, diff --git a/plotly/validators/layout/_barnorm.py b/plotly/validators/layout/_barnorm.py index 2a0c7cd8d1..59e045bb36 100644 --- a/plotly/validators/layout/_barnorm.py +++ b/plotly/validators/layout/_barnorm.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BarnormValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["", "fraction", "percent"]), **kwargs, diff --git a/plotly/validators/layout/_boxgap.py b/plotly/validators/layout/_boxgap.py index d4ea0ab1ac..f8f2ba73dc 100644 --- a/plotly/validators/layout/_boxgap.py +++ b/plotly/validators/layout/_boxgap.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BoxgapValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/_boxgroupgap.py b/plotly/validators/layout/_boxgroupgap.py index 6500cca927..9ad5bf1717 100644 --- a/plotly/validators/layout/_boxgroupgap.py +++ b/plotly/validators/layout/_boxgroupgap.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BoxgroupgapValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/_boxmode.py b/plotly/validators/layout/_boxmode.py index 26869cedbc..a966a73773 100644 --- a/plotly/validators/layout/_boxmode.py +++ b/plotly/validators/layout/_boxmode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BoxmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["group", "overlay"]), **kwargs, diff --git a/plotly/validators/layout/_calendar.py b/plotly/validators/layout/_calendar.py index 39135ef290..45e79ed82b 100644 --- a/plotly/validators/layout/_calendar.py +++ b/plotly/validators/layout/_calendar.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/_clickmode.py b/plotly/validators/layout/_clickmode.py index 153253fbbe..4d07a1f914 100644 --- a/plotly/validators/layout/_clickmode.py +++ b/plotly/validators/layout/_clickmode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ClickmodeValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["event", "select"]), diff --git a/plotly/validators/layout/_coloraxis.py b/plotly/validators/layout/_coloraxis.py index 7be380042f..3d08c8bb4d 100644 --- a/plotly/validators/layout/_coloraxis.py +++ b/plotly/validators/layout/_coloraxis.py @@ -1,72 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/_colorscale.py b/plotly/validators/layout/_colorscale.py index 0c3e143eee..0c7fccc2ab 100644 --- a/plotly/validators/layout/_colorscale.py +++ b/plotly/validators/layout/_colorscale.py @@ -1,27 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/_colorway.py b/plotly/validators/layout/_colorway.py index 89fd6a8a9d..d0bb97f1d6 100644 --- a/plotly/validators/layout/_colorway.py +++ b/plotly/validators/layout/_colorway.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorwayValidator(_plotly_utils.basevalidators.ColorlistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/_computed.py b/plotly/validators/layout/_computed.py index cee970dac4..2dfa1d0566 100644 --- a/plotly/validators/layout/_computed.py +++ b/plotly/validators/layout/_computed.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ComputedValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/_datarevision.py b/plotly/validators/layout/_datarevision.py index bc845a2fe7..d223945eaa 100644 --- a/plotly/validators/layout/_datarevision.py +++ b/plotly/validators/layout/_datarevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DatarevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/_dragmode.py b/plotly/validators/layout/_dragmode.py index f959154921..37f5835fe8 100644 --- a/plotly/validators/layout/_dragmode.py +++ b/plotly/validators/layout/_dragmode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DragmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "modebar"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/_editrevision.py b/plotly/validators/layout/_editrevision.py index 81cb7aff05..e26b8a97d3 100644 --- a/plotly/validators/layout/_editrevision.py +++ b/plotly/validators/layout/_editrevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EditrevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/_extendfunnelareacolors.py b/plotly/validators/layout/_extendfunnelareacolors.py index e5d5d8980d..ff83c4de17 100644 --- a/plotly/validators/layout/_extendfunnelareacolors.py +++ b/plotly/validators/layout/_extendfunnelareacolors.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExtendfunnelareacolorsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/_extendiciclecolors.py b/plotly/validators/layout/_extendiciclecolors.py index 47f634c2c0..595617148f 100644 --- a/plotly/validators/layout/_extendiciclecolors.py +++ b/plotly/validators/layout/_extendiciclecolors.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExtendiciclecolorsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/_extendpiecolors.py b/plotly/validators/layout/_extendpiecolors.py index 0a227c3ec7..713563e943 100644 --- a/plotly/validators/layout/_extendpiecolors.py +++ b/plotly/validators/layout/_extendpiecolors.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExtendpiecolorsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/_extendsunburstcolors.py b/plotly/validators/layout/_extendsunburstcolors.py index bd85813f7f..659e401892 100644 --- a/plotly/validators/layout/_extendsunburstcolors.py +++ b/plotly/validators/layout/_extendsunburstcolors.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExtendsunburstcolorsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/_extendtreemapcolors.py b/plotly/validators/layout/_extendtreemapcolors.py index e9b22af1d5..3991ce0ea1 100644 --- a/plotly/validators/layout/_extendtreemapcolors.py +++ b/plotly/validators/layout/_extendtreemapcolors.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExtendtreemapcolorsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/_font.py b/plotly/validators/layout/_font.py index 835e0ba5ae..ba0cbd13bb 100644 --- a/plotly/validators/layout/_font.py +++ b/plotly/validators/layout/_font.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/_funnelareacolorway.py b/plotly/validators/layout/_funnelareacolorway.py index 9c588aa277..62541eca5a 100644 --- a/plotly/validators/layout/_funnelareacolorway.py +++ b/plotly/validators/layout/_funnelareacolorway.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FunnelareacolorwayValidator(_plotly_utils.basevalidators.ColorlistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/_funnelgap.py b/plotly/validators/layout/_funnelgap.py index 679d46923b..a6ddc31748 100644 --- a/plotly/validators/layout/_funnelgap.py +++ b/plotly/validators/layout/_funnelgap.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FunnelgapValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/_funnelgroupgap.py b/plotly/validators/layout/_funnelgroupgap.py index a2e4d32d29..5de63b44c2 100644 --- a/plotly/validators/layout/_funnelgroupgap.py +++ b/plotly/validators/layout/_funnelgroupgap.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FunnelgroupgapValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/_funnelmode.py b/plotly/validators/layout/_funnelmode.py index 1805cb89ca..556d5d8bf0 100644 --- a/plotly/validators/layout/_funnelmode.py +++ b/plotly/validators/layout/_funnelmode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FunnelmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["stack", "group", "overlay"]), **kwargs, diff --git a/plotly/validators/layout/_geo.py b/plotly/validators/layout/_geo.py index fe0e3cbbf6..ff074a8600 100644 --- a/plotly/validators/layout/_geo.py +++ b/plotly/validators/layout/_geo.py @@ -1,113 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GeoValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/_grid.py b/plotly/validators/layout/_grid.py index 5b1212a94e..0ba026f252 100644 --- a/plotly/validators/layout/_grid.py +++ b/plotly/validators/layout/_grid.py @@ -1,94 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/_height.py b/plotly/validators/layout/_height.py index d92c4b5b6a..75146fdb7c 100644 --- a/plotly/validators/layout/_height.py +++ b/plotly/validators/layout/_height.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HeightValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 10), **kwargs, diff --git a/plotly/validators/layout/_hiddenlabels.py b/plotly/validators/layout/_hiddenlabels.py index f557d87045..3c2f6f3111 100644 --- a/plotly/validators/layout/_hiddenlabels.py +++ b/plotly/validators/layout/_hiddenlabels.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HiddenlabelsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/_hiddenlabelssrc.py b/plotly/validators/layout/_hiddenlabelssrc.py index 413365e0b1..499ea342bc 100644 --- a/plotly/validators/layout/_hiddenlabelssrc.py +++ b/plotly/validators/layout/_hiddenlabelssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HiddenlabelssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/_hidesources.py b/plotly/validators/layout/_hidesources.py index 1166c15e0c..0ad2983fb7 100644 --- a/plotly/validators/layout/_hidesources.py +++ b/plotly/validators/layout/_hidesources.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HidesourcesValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/_hoverdistance.py b/plotly/validators/layout/_hoverdistance.py index 98224c0d74..08ad86844e 100644 --- a/plotly/validators/layout/_hoverdistance.py +++ b/plotly/validators/layout/_hoverdistance.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverdistanceValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), **kwargs, diff --git a/plotly/validators/layout/_hoverlabel.py b/plotly/validators/layout/_hoverlabel.py index 08a04e69d7..cc12430c67 100644 --- a/plotly/validators/layout/_hoverlabel.py +++ b/plotly/validators/layout/_hoverlabel.py @@ -1,42 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/_hovermode.py b/plotly/validators/layout/_hovermode.py index 33a84ecc6d..7e72039c96 100644 --- a/plotly/validators/layout/_hovermode.py +++ b/plotly/validators/layout/_hovermode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovermodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "modebar"), values=kwargs.pop( "values", ["x", "y", "closest", False, "x unified", "y unified"] diff --git a/plotly/validators/layout/_hoversubplots.py b/plotly/validators/layout/_hoversubplots.py index 1290fff33e..9134379662 100644 --- a/plotly/validators/layout/_hoversubplots.py +++ b/plotly/validators/layout/_hoversubplots.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoversubplotsValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["single", "overlaying", "axis"]), **kwargs, diff --git a/plotly/validators/layout/_iciclecolorway.py b/plotly/validators/layout/_iciclecolorway.py index 1c720184da..aa352ee94c 100644 --- a/plotly/validators/layout/_iciclecolorway.py +++ b/plotly/validators/layout/_iciclecolorway.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IciclecolorwayValidator(_plotly_utils.basevalidators.ColorlistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/_imagedefaults.py b/plotly/validators/layout/_imagedefaults.py index 0ffc4b4b55..d496caaf04 100644 --- a/plotly/validators/layout/_imagedefaults.py +++ b/plotly/validators/layout/_imagedefaults.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ImagedefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Image"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/_images.py b/plotly/validators/layout/_images.py index 055c4fc7f5..2988b8436f 100644 --- a/plotly/validators/layout/_images.py +++ b/plotly/validators/layout/_images.py @@ -1,112 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ImagesValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/_legend.py b/plotly/validators/layout/_legend.py index ef5f28c294..f3561d984a 100644 --- a/plotly/validators/layout/_legend.py +++ b/plotly/validators/layout/_legend.py @@ -1,144 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/_map.py b/plotly/validators/layout/_map.py index e3f463c622..89e88523c9 100644 --- a/plotly/validators/layout/_map.py +++ b/plotly/validators/layout/_map.py @@ -1,68 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MapValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/_mapbox.py b/plotly/validators/layout/_mapbox.py index ff98a1c3bb..f18cdf3908 100644 --- a/plotly/validators/layout/_mapbox.py +++ b/plotly/validators/layout/_mapbox.py @@ -1,84 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MapboxValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/_margin.py b/plotly/validators/layout/_margin.py index 5ca23ec7d9..6e1f2355e1 100644 --- a/plotly/validators/layout/_margin.py +++ b/plotly/validators/layout/_margin.py @@ -1,31 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarginValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/_meta.py b/plotly/validators/layout/_meta.py index ce409d8281..2f2fb6f394 100644 --- a/plotly/validators/layout/_meta.py +++ b/plotly/validators/layout/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/layout/_metasrc.py b/plotly/validators/layout/_metasrc.py index 95410b4d54..d7bcfb98e4 100644 --- a/plotly/validators/layout/_metasrc.py +++ b/plotly/validators/layout/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/_minreducedheight.py b/plotly/validators/layout/_minreducedheight.py index 3381ac82eb..af857456ae 100644 --- a/plotly/validators/layout/_minreducedheight.py +++ b/plotly/validators/layout/_minreducedheight.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinreducedheightValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 2), **kwargs, diff --git a/plotly/validators/layout/_minreducedwidth.py b/plotly/validators/layout/_minreducedwidth.py index 0618ff740d..9db875cf29 100644 --- a/plotly/validators/layout/_minreducedwidth.py +++ b/plotly/validators/layout/_minreducedwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinreducedwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 2), **kwargs, diff --git a/plotly/validators/layout/_modebar.py b/plotly/validators/layout/_modebar.py index 9c50eaa668..bc6c469a54 100644 --- a/plotly/validators/layout/_modebar.py +++ b/plotly/validators/layout/_modebar.py @@ -1,72 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ModebarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/_newselection.py b/plotly/validators/layout/_newselection.py index 01b0ac441b..f9170ab768 100644 --- a/plotly/validators/layout/_newselection.py +++ b/plotly/validators/layout/_newselection.py @@ -1,27 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NewselectionValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/_newshape.py b/plotly/validators/layout/_newshape.py index 9e5690f9e2..9c27a0b6e1 100644 --- a/plotly/validators/layout/_newshape.py +++ b/plotly/validators/layout/_newshape.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NewshapeValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/_paper_bgcolor.py b/plotly/validators/layout/_paper_bgcolor.py index cd94a97fd0..22c77446f0 100644 --- a/plotly/validators/layout/_paper_bgcolor.py +++ b/plotly/validators/layout/_paper_bgcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Paper_BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/_piecolorway.py b/plotly/validators/layout/_piecolorway.py index cdfe8a9101..6841d695e0 100644 --- a/plotly/validators/layout/_piecolorway.py +++ b/plotly/validators/layout/_piecolorway.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PiecolorwayValidator(_plotly_utils.basevalidators.ColorlistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/_plot_bgcolor.py b/plotly/validators/layout/_plot_bgcolor.py index 7bda1ca3c4..341ce8e300 100644 --- a/plotly/validators/layout/_plot_bgcolor.py +++ b/plotly/validators/layout/_plot_bgcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Plot_BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "layoutstyle"), **kwargs, ) diff --git a/plotly/validators/layout/_polar.py b/plotly/validators/layout/_polar.py index f399743ac6..91defba9a5 100644 --- a/plotly/validators/layout/_polar.py +++ b/plotly/validators/layout/_polar.py @@ -1,63 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PolarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/_scattergap.py b/plotly/validators/layout/_scattergap.py index 27689459b8..67f79c7527 100644 --- a/plotly/validators/layout/_scattergap.py +++ b/plotly/validators/layout/_scattergap.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ScattergapValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/_scattermode.py b/plotly/validators/layout/_scattermode.py index c747a3ceef..bb68e40a7f 100644 --- a/plotly/validators/layout/_scattermode.py +++ b/plotly/validators/layout/_scattermode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ScattermodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["group", "overlay"]), **kwargs, diff --git a/plotly/validators/layout/_scene.py b/plotly/validators/layout/_scene.py index 8b28a08365..4ec6e39205 100644 --- a/plotly/validators/layout/_scene.py +++ b/plotly/validators/layout/_scene.py @@ -1,66 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SceneValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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 - - 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, diff --git a/plotly/validators/layout/_selectdirection.py b/plotly/validators/layout/_selectdirection.py index 09a76e79bf..f0d1ed46c9 100644 --- a/plotly/validators/layout/_selectdirection.py +++ b/plotly/validators/layout/_selectdirection.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectdirectionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["h", "v", "d", "any"]), **kwargs, diff --git a/plotly/validators/layout/_selectiondefaults.py b/plotly/validators/layout/_selectiondefaults.py index fb2db11d1f..1c1880e5bf 100644 --- a/plotly/validators/layout/_selectiondefaults.py +++ b/plotly/validators/layout/_selectiondefaults.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectiondefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Selection"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/_selectionrevision.py b/plotly/validators/layout/_selectionrevision.py index bfde6745e9..01efee1133 100644 --- a/plotly/validators/layout/_selectionrevision.py +++ b/plotly/validators/layout/_selectionrevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectionrevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/_selections.py b/plotly/validators/layout/_selections.py index 6fcb510637..3187063e08 100644 --- a/plotly/validators/layout/_selections.py +++ b/plotly/validators/layout/_selections.py @@ -1,92 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectionsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/_separators.py b/plotly/validators/layout/_separators.py index beccb46197..8272709bd4 100644 --- a/plotly/validators/layout/_separators.py +++ b/plotly/validators/layout/_separators.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatorsValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/_shapedefaults.py b/plotly/validators/layout/_shapedefaults.py index 12dd9c1c3a..20beb348a3 100644 --- a/plotly/validators/layout/_shapedefaults.py +++ b/plotly/validators/layout/_shapedefaults.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShapedefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Shape"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/_shapes.py b/plotly/validators/layout/_shapes.py index 8c6ef3cf92..6207f0ad4a 100644 --- a/plotly/validators/layout/_shapes.py +++ b/plotly/validators/layout/_shapes.py @@ -1,249 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShapesValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/_showlegend.py b/plotly/validators/layout/_showlegend.py index 61285e2e1f..d038493c81 100644 --- a/plotly/validators/layout/_showlegend.py +++ b/plotly/validators/layout/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), **kwargs, ) diff --git a/plotly/validators/layout/_sliderdefaults.py b/plotly/validators/layout/_sliderdefaults.py index 46ff054d94..c87718bae7 100644 --- a/plotly/validators/layout/_sliderdefaults.py +++ b/plotly/validators/layout/_sliderdefaults.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SliderdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Slider"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/_sliders.py b/plotly/validators/layout/_sliders.py index c43ae5f32c..51d60e77bc 100644 --- a/plotly/validators/layout/_sliders.py +++ b/plotly/validators/layout/_sliders.py @@ -1,109 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SlidersValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/_smith.py b/plotly/validators/layout/_smith.py index b2a1aa5e80..f0382fc834 100644 --- a/plotly/validators/layout/_smith.py +++ b/plotly/validators/layout/_smith.py @@ -1,28 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SmithValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/_spikedistance.py b/plotly/validators/layout/_spikedistance.py index 41158dde8c..f5749a9770 100644 --- a/plotly/validators/layout/_spikedistance.py +++ b/plotly/validators/layout/_spikedistance.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SpikedistanceValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), **kwargs, diff --git a/plotly/validators/layout/_sunburstcolorway.py b/plotly/validators/layout/_sunburstcolorway.py index b0cc21ddb9..f6d395d8c6 100644 --- a/plotly/validators/layout/_sunburstcolorway.py +++ b/plotly/validators/layout/_sunburstcolorway.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SunburstcolorwayValidator(_plotly_utils.basevalidators.ColorlistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/_template.py b/plotly/validators/layout/_template.py index 3f612073dd..1dc85f882a 100644 --- a/plotly/validators/layout/_template.py +++ b/plotly/validators/layout/_template.py @@ -1,21 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateValidator(_plotly_utils.basevalidators.BaseTemplateValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/_ternary.py b/plotly/validators/layout/_ternary.py index 4be51c5256..2963e29abb 100644 --- a/plotly/validators/layout/_ternary.py +++ b/plotly/validators/layout/_ternary.py @@ -1,38 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TernaryValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/_title.py b/plotly/validators/layout/_title.py index 6dc1b258d3..ecf0003835 100644 --- a/plotly/validators/layout/_title.py +++ b/plotly/validators/layout/_title.py @@ -1,82 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/_transition.py b/plotly/validators/layout/_transition.py index edc2c1a673..eef63bad9c 100644 --- a/plotly/validators/layout/_transition.py +++ b/plotly/validators/layout/_transition.py @@ -1,25 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TransitionValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/_treemapcolorway.py b/plotly/validators/layout/_treemapcolorway.py index 1567bd2e6f..f68b7a6044 100644 --- a/plotly/validators/layout/_treemapcolorway.py +++ b/plotly/validators/layout/_treemapcolorway.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TreemapcolorwayValidator(_plotly_utils.basevalidators.ColorlistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/_uirevision.py b/plotly/validators/layout/_uirevision.py index 0677a49b85..0527661d9e 100644 --- a/plotly/validators/layout/_uirevision.py +++ b/plotly/validators/layout/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/_uniformtext.py b/plotly/validators/layout/_uniformtext.py index e768a0c7a0..456166482a 100644 --- a/plotly/validators/layout/_uniformtext.py +++ b/plotly/validators/layout/_uniformtext.py @@ -1,29 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UniformtextValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/_updatemenudefaults.py b/plotly/validators/layout/_updatemenudefaults.py index 065656e861..f7e325391b 100644 --- a/plotly/validators/layout/_updatemenudefaults.py +++ b/plotly/validators/layout/_updatemenudefaults.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UpdatemenudefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Updatemenu"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/_updatemenus.py b/plotly/validators/layout/_updatemenus.py index dab9febd51..98e2982bc1 100644 --- a/plotly/validators/layout/_updatemenus.py +++ b/plotly/validators/layout/_updatemenus.py @@ -1,94 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UpdatemenusValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/_violingap.py b/plotly/validators/layout/_violingap.py index 37a395cd4d..2d9a675acb 100644 --- a/plotly/validators/layout/_violingap.py +++ b/plotly/validators/layout/_violingap.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ViolingapValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/_violingroupgap.py b/plotly/validators/layout/_violingroupgap.py index b56c26657e..459a08345d 100644 --- a/plotly/validators/layout/_violingroupgap.py +++ b/plotly/validators/layout/_violingroupgap.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ViolingroupgapValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/_violinmode.py b/plotly/validators/layout/_violinmode.py index 78c2824d39..28e4530c6c 100644 --- a/plotly/validators/layout/_violinmode.py +++ b/plotly/validators/layout/_violinmode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ViolinmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["group", "overlay"]), **kwargs, diff --git a/plotly/validators/layout/_waterfallgap.py b/plotly/validators/layout/_waterfallgap.py index 42f8259505..8ca293be5e 100644 --- a/plotly/validators/layout/_waterfallgap.py +++ b/plotly/validators/layout/_waterfallgap.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WaterfallgapValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/_waterfallgroupgap.py b/plotly/validators/layout/_waterfallgroupgap.py index 7cbeb7b121..07d4a9d1f4 100644 --- a/plotly/validators/layout/_waterfallgroupgap.py +++ b/plotly/validators/layout/_waterfallgroupgap.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WaterfallgroupgapValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/_waterfallmode.py b/plotly/validators/layout/_waterfallmode.py index 6c590f2d41..5507c9bed5 100644 --- a/plotly/validators/layout/_waterfallmode.py +++ b/plotly/validators/layout/_waterfallmode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WaterfallmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["group", "overlay"]), **kwargs, diff --git a/plotly/validators/layout/_width.py b/plotly/validators/layout/_width.py index cf15a2e8c9..8cd1a97995 100644 --- a/plotly/validators/layout/_width.py +++ b/plotly/validators/layout/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 10), **kwargs, diff --git a/plotly/validators/layout/_xaxis.py b/plotly/validators/layout/_xaxis.py index 23e776bf0a..68f6d25308 100644 --- a/plotly/validators/layout/_xaxis.py +++ b/plotly/validators/layout/_xaxis.py @@ -1,584 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XaxisValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/_yaxis.py b/plotly/validators/layout/_yaxis.py index 6715092795..28f5565a4d 100644 --- a/plotly/validators/layout/_yaxis.py +++ b/plotly/validators/layout/_yaxis.py @@ -1,595 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YaxisValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/activeselection/__init__.py b/plotly/validators/layout/activeselection/__init__.py index 37b66700cd..77d0d42f57 100644 --- a/plotly/validators/layout/activeselection/__init__.py +++ b/plotly/validators/layout/activeselection/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._opacity.OpacityValidator", "._fillcolor.FillcolorValidator"] +) diff --git a/plotly/validators/layout/activeselection/_fillcolor.py b/plotly/validators/layout/activeselection/_fillcolor.py index 8e67e61522..c2c025618b 100644 --- a/plotly/validators/layout/activeselection/_fillcolor.py +++ b/plotly/validators/layout/activeselection/_fillcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/activeselection/_opacity.py b/plotly/validators/layout/activeselection/_opacity.py index 14f50b9a60..4e2c834ce0 100644 --- a/plotly/validators/layout/activeselection/_opacity.py +++ b/plotly/validators/layout/activeselection/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/activeshape/__init__.py b/plotly/validators/layout/activeshape/__init__.py index 37b66700cd..77d0d42f57 100644 --- a/plotly/validators/layout/activeshape/__init__.py +++ b/plotly/validators/layout/activeshape/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._opacity.OpacityValidator", "._fillcolor.FillcolorValidator"] +) diff --git a/plotly/validators/layout/activeshape/_fillcolor.py b/plotly/validators/layout/activeshape/_fillcolor.py index 4f95513188..015a5ef383 100644 --- a/plotly/validators/layout/activeshape/_fillcolor.py +++ b/plotly/validators/layout/activeshape/_fillcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/activeshape/_opacity.py b/plotly/validators/layout/activeshape/_opacity.py index ad2b9f45e0..7fb6da35f4 100644 --- a/plotly/validators/layout/activeshape/_opacity.py +++ b/plotly/validators/layout/activeshape/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/annotation/__init__.py b/plotly/validators/layout/annotation/__init__.py index 90ee50de9b..2e288b849b 100644 --- a/plotly/validators/layout/annotation/__init__.py +++ b/plotly/validators/layout/annotation/__init__.py @@ -1,99 +1,52 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yshift import YshiftValidator - from ._yref import YrefValidator - from ._yclick import YclickValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xshift import XshiftValidator - from ._xref import XrefValidator - from ._xclick import XclickValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._width import WidthValidator - from ._visible import VisibleValidator - from ._valign import ValignValidator - from ._textangle import TextangleValidator - from ._text import TextValidator - from ._templateitemname import TemplateitemnameValidator - from ._startstandoff import StartstandoffValidator - from ._startarrowsize import StartarrowsizeValidator - from ._startarrowhead import StartarrowheadValidator - from ._standoff import StandoffValidator - from ._showarrow import ShowarrowValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - from ._hovertext import HovertextValidator - from ._hoverlabel import HoverlabelValidator - from ._height import HeightValidator - from ._font import FontValidator - from ._clicktoshow import ClicktoshowValidator - from ._captureevents import CaptureeventsValidator - from ._borderwidth import BorderwidthValidator - from ._borderpad import BorderpadValidator - from ._bordercolor import BordercolorValidator - from ._bgcolor import BgcolorValidator - from ._ayref import AyrefValidator - from ._ay import AyValidator - from ._axref import AxrefValidator - from ._ax import AxValidator - from ._arrowwidth import ArrowwidthValidator - from ._arrowsize import ArrowsizeValidator - from ._arrowside import ArrowsideValidator - from ._arrowhead import ArrowheadValidator - from ._arrowcolor import ArrowcolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/annotation/_align.py b/plotly/validators/layout/annotation/_align.py index bf4ea98e0f..a629552210 100644 --- a/plotly/validators/layout/annotation/_align.py +++ b/plotly/validators/layout/annotation/_align.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/layout/annotation/_arrowcolor.py b/plotly/validators/layout/annotation/_arrowcolor.py index 0b487baa3f..01df673840 100644 --- a/plotly/validators/layout/annotation/_arrowcolor.py +++ b/plotly/validators/layout/annotation/_arrowcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrowcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/annotation/_arrowhead.py b/plotly/validators/layout/annotation/_arrowhead.py index 188277f593..7075f91afd 100644 --- a/plotly/validators/layout/annotation/_arrowhead.py +++ b/plotly/validators/layout/annotation/_arrowhead.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrowheadValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), max=kwargs.pop("max", 8), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/annotation/_arrowside.py b/plotly/validators/layout/annotation/_arrowside.py index 7c7e70acce..8277322bbe 100644 --- a/plotly/validators/layout/annotation/_arrowside.py +++ b/plotly/validators/layout/annotation/_arrowside.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrowsideValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["end", "start"]), diff --git a/plotly/validators/layout/annotation/_arrowsize.py b/plotly/validators/layout/annotation/_arrowsize.py index ebcc95dd49..1b4e5eef7b 100644 --- a/plotly/validators/layout/annotation/_arrowsize.py +++ b/plotly/validators/layout/annotation/_arrowsize.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrowsizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), min=kwargs.pop("min", 0.3), **kwargs, diff --git a/plotly/validators/layout/annotation/_arrowwidth.py b/plotly/validators/layout/annotation/_arrowwidth.py index 729910c2ec..50d4cf51b3 100644 --- a/plotly/validators/layout/annotation/_arrowwidth.py +++ b/plotly/validators/layout/annotation/_arrowwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrowwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), min=kwargs.pop("min", 0.1), **kwargs, diff --git a/plotly/validators/layout/annotation/_ax.py b/plotly/validators/layout/annotation/_ax.py index 7497764224..6e8c8d11f0 100644 --- a/plotly/validators/layout/annotation/_ax.py +++ b/plotly/validators/layout/annotation/_ax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AxValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/annotation/_axref.py b/plotly/validators/layout/annotation/_axref.py index de39b7d7d8..2a45ed13d6 100644 --- a/plotly/validators/layout/annotation/_axref.py +++ b/plotly/validators/layout/annotation/_axref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AxrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", ["pixel", "/^x([2-9]|[1-9][0-9]+)?( domain)?$/"] diff --git a/plotly/validators/layout/annotation/_ay.py b/plotly/validators/layout/annotation/_ay.py index 02c00c73a3..136efd618c 100644 --- a/plotly/validators/layout/annotation/_ay.py +++ b/plotly/validators/layout/annotation/_ay.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AyValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/annotation/_ayref.py b/plotly/validators/layout/annotation/_ayref.py index d4c33be477..297e7a20dc 100644 --- a/plotly/validators/layout/annotation/_ayref.py +++ b/plotly/validators/layout/annotation/_ayref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AyrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", ["pixel", "/^y([2-9]|[1-9][0-9]+)?( domain)?$/"] diff --git a/plotly/validators/layout/annotation/_bgcolor.py b/plotly/validators/layout/annotation/_bgcolor.py index 8c6be8b00d..c75bcc94d5 100644 --- a/plotly/validators/layout/annotation/_bgcolor.py +++ b/plotly/validators/layout/annotation/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/annotation/_bordercolor.py b/plotly/validators/layout/annotation/_bordercolor.py index 2ac75856c2..997f682437 100644 --- a/plotly/validators/layout/annotation/_bordercolor.py +++ b/plotly/validators/layout/annotation/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/annotation/_borderpad.py b/plotly/validators/layout/annotation/_borderpad.py index 1e18407114..09d94e53b3 100644 --- a/plotly/validators/layout/annotation/_borderpad.py +++ b/plotly/validators/layout/annotation/_borderpad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/annotation/_borderwidth.py b/plotly/validators/layout/annotation/_borderwidth.py index 0773f095a4..082bf8b4d9 100644 --- a/plotly/validators/layout/annotation/_borderwidth.py +++ b/plotly/validators/layout/annotation/_borderwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/annotation/_captureevents.py b/plotly/validators/layout/annotation/_captureevents.py index aa77f28a6b..2c889738d8 100644 --- a/plotly/validators/layout/annotation/_captureevents.py +++ b/plotly/validators/layout/annotation/_captureevents.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CaptureeventsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/annotation/_clicktoshow.py b/plotly/validators/layout/annotation/_clicktoshow.py index 37af812844..23746a2849 100644 --- a/plotly/validators/layout/annotation/_clicktoshow.py +++ b/plotly/validators/layout/annotation/_clicktoshow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ClicktoshowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop("values", [False, "onoff", "onout"]), **kwargs, diff --git a/plotly/validators/layout/annotation/_font.py b/plotly/validators/layout/annotation/_font.py index f06709a007..7b8d582944 100644 --- a/plotly/validators/layout/annotation/_font.py +++ b/plotly/validators/layout/annotation/_font.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/annotation/_height.py b/plotly/validators/layout/annotation/_height.py index 1d7a111266..974ec3f233 100644 --- a/plotly/validators/layout/annotation/_height.py +++ b/plotly/validators/layout/annotation/_height.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HeightValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/annotation/_hoverlabel.py b/plotly/validators/layout/annotation/_hoverlabel.py index 16b3a6f03a..4b6f7e7114 100644 --- a/plotly/validators/layout/annotation/_hoverlabel.py +++ b/plotly/validators/layout/annotation/_hoverlabel.py @@ -1,29 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/annotation/_hovertext.py b/plotly/validators/layout/annotation/_hovertext.py index 8c6fe8f11d..1598077c61 100644 --- a/plotly/validators/layout/annotation/_hovertext.py +++ b/plotly/validators/layout/annotation/_hovertext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/annotation/_name.py b/plotly/validators/layout/annotation/_name.py index ccb18eb54a..890998652d 100644 --- a/plotly/validators/layout/annotation/_name.py +++ b/plotly/validators/layout/annotation/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/annotation/_opacity.py b/plotly/validators/layout/annotation/_opacity.py index dc9ef44fad..159a547e3e 100644 --- a/plotly/validators/layout/annotation/_opacity.py +++ b/plotly/validators/layout/annotation/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/annotation/_showarrow.py b/plotly/validators/layout/annotation/_showarrow.py index fa99cd1d51..d05a26c28e 100644 --- a/plotly/validators/layout/annotation/_showarrow.py +++ b/plotly/validators/layout/annotation/_showarrow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowarrowValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/annotation/_standoff.py b/plotly/validators/layout/annotation/_standoff.py index 13a8cbafe2..ee98de1980 100644 --- a/plotly/validators/layout/annotation/_standoff.py +++ b/plotly/validators/layout/annotation/_standoff.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StandoffValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/annotation/_startarrowhead.py b/plotly/validators/layout/annotation/_startarrowhead.py index b9502005ee..127fb91f75 100644 --- a/plotly/validators/layout/annotation/_startarrowhead.py +++ b/plotly/validators/layout/annotation/_startarrowhead.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StartarrowheadValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), max=kwargs.pop("max", 8), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/annotation/_startarrowsize.py b/plotly/validators/layout/annotation/_startarrowsize.py index f8b88b2a15..ed3d0affa7 100644 --- a/plotly/validators/layout/annotation/_startarrowsize.py +++ b/plotly/validators/layout/annotation/_startarrowsize.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StartarrowsizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), min=kwargs.pop("min", 0.3), **kwargs, diff --git a/plotly/validators/layout/annotation/_startstandoff.py b/plotly/validators/layout/annotation/_startstandoff.py index 3e894bdd6a..d405092767 100644 --- a/plotly/validators/layout/annotation/_startstandoff.py +++ b/plotly/validators/layout/annotation/_startstandoff.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StartstandoffValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/annotation/_templateitemname.py b/plotly/validators/layout/annotation/_templateitemname.py index 83557b1f3e..7b6461dc45 100644 --- a/plotly/validators/layout/annotation/_templateitemname.py +++ b/plotly/validators/layout/annotation/_templateitemname.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/annotation/_text.py b/plotly/validators/layout/annotation/_text.py index aaedee4c4d..05924bfc1c 100644 --- a/plotly/validators/layout/annotation/_text.py +++ b/plotly/validators/layout/annotation/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/annotation/_textangle.py b/plotly/validators/layout/annotation/_textangle.py index 3a35577dbf..83e9a72eaf 100644 --- a/plotly/validators/layout/annotation/_textangle.py +++ b/plotly/validators/layout/annotation/_textangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/annotation/_valign.py b/plotly/validators/layout/annotation/_valign.py index 5514eac395..339498da68 100644 --- a/plotly/validators/layout/annotation/_valign.py +++ b/plotly/validators/layout/annotation/_valign.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/layout/annotation/_visible.py b/plotly/validators/layout/annotation/_visible.py index f83bc5e532..7185577fba 100644 --- a/plotly/validators/layout/annotation/_visible.py +++ b/plotly/validators/layout/annotation/_visible.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/annotation/_width.py b/plotly/validators/layout/annotation/_width.py index 358bf63318..f1e6fa0fdd 100644 --- a/plotly/validators/layout/annotation/_width.py +++ b/plotly/validators/layout/annotation/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/annotation/_x.py b/plotly/validators/layout/annotation/_x.py index 1d82b6c8d2..f38d883c15 100644 --- a/plotly/validators/layout/annotation/_x.py +++ b/plotly/validators/layout/annotation/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/annotation/_xanchor.py b/plotly/validators/layout/annotation/_xanchor.py index bb70ca0dca..da6d8c7836 100644 --- a/plotly/validators/layout/annotation/_xanchor.py +++ b/plotly/validators/layout/annotation/_xanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), values=kwargs.pop("values", ["auto", "left", "center", "right"]), **kwargs, diff --git a/plotly/validators/layout/annotation/_xclick.py b/plotly/validators/layout/annotation/_xclick.py index 826617e60a..522f95fe6f 100644 --- a/plotly/validators/layout/annotation/_xclick.py +++ b/plotly/validators/layout/annotation/_xclick.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XclickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/annotation/_xref.py b/plotly/validators/layout/annotation/_xref.py index 896c495c54..7ff776cfa7 100644 --- a/plotly/validators/layout/annotation/_xref.py +++ b/plotly/validators/layout/annotation/_xref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", ["paper", "/^x([2-9]|[1-9][0-9]+)?( domain)?$/"] diff --git a/plotly/validators/layout/annotation/_xshift.py b/plotly/validators/layout/annotation/_xshift.py index 6f85b00d51..ed0531c830 100644 --- a/plotly/validators/layout/annotation/_xshift.py +++ b/plotly/validators/layout/annotation/_xshift.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XshiftValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/annotation/_y.py b/plotly/validators/layout/annotation/_y.py index 3071eecb09..2efb3f1b0a 100644 --- a/plotly/validators/layout/annotation/_y.py +++ b/plotly/validators/layout/annotation/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/annotation/_yanchor.py b/plotly/validators/layout/annotation/_yanchor.py index 6946236c6d..3e23163193 100644 --- a/plotly/validators/layout/annotation/_yanchor.py +++ b/plotly/validators/layout/annotation/_yanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), values=kwargs.pop("values", ["auto", "top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/layout/annotation/_yclick.py b/plotly/validators/layout/annotation/_yclick.py index 5847be553b..234ba3cbb7 100644 --- a/plotly/validators/layout/annotation/_yclick.py +++ b/plotly/validators/layout/annotation/_yclick.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YclickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/annotation/_yref.py b/plotly/validators/layout/annotation/_yref.py index c3bc11f50c..da2a37d37c 100644 --- a/plotly/validators/layout/annotation/_yref.py +++ b/plotly/validators/layout/annotation/_yref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", ["paper", "/^y([2-9]|[1-9][0-9]+)?( domain)?$/"] diff --git a/plotly/validators/layout/annotation/_yshift.py b/plotly/validators/layout/annotation/_yshift.py index 5633cad759..711453f00f 100644 --- a/plotly/validators/layout/annotation/_yshift.py +++ b/plotly/validators/layout/annotation/_yshift.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YshiftValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/annotation/font/__init__.py b/plotly/validators/layout/annotation/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/annotation/font/__init__.py +++ b/plotly/validators/layout/annotation/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/annotation/font/_color.py b/plotly/validators/layout/annotation/font/_color.py index 409571e129..13933d467b 100644 --- a/plotly/validators/layout/annotation/font/_color.py +++ b/plotly/validators/layout/annotation/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/annotation/font/_family.py b/plotly/validators/layout/annotation/font/_family.py index 6001c7bd83..9b7928ca64 100644 --- a/plotly/validators/layout/annotation/font/_family.py +++ b/plotly/validators/layout/annotation/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/annotation/font/_lineposition.py b/plotly/validators/layout/annotation/font/_lineposition.py index 656c5c46ff..53794b4298 100644 --- a/plotly/validators/layout/annotation/font/_lineposition.py +++ b/plotly/validators/layout/annotation/font/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/annotation/font/_shadow.py b/plotly/validators/layout/annotation/font/_shadow.py index 783969d914..574ed98d0f 100644 --- a/plotly/validators/layout/annotation/font/_shadow.py +++ b/plotly/validators/layout/annotation/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/annotation/font/_size.py b/plotly/validators/layout/annotation/font/_size.py index 6e94ac765b..84523348b9 100644 --- a/plotly/validators/layout/annotation/font/_size.py +++ b/plotly/validators/layout/annotation/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/annotation/font/_style.py b/plotly/validators/layout/annotation/font/_style.py index abfca46cae..840ccde1a6 100644 --- a/plotly/validators/layout/annotation/font/_style.py +++ b/plotly/validators/layout/annotation/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/annotation/font/_textcase.py b/plotly/validators/layout/annotation/font/_textcase.py index 934898ae29..949aef1635 100644 --- a/plotly/validators/layout/annotation/font/_textcase.py +++ b/plotly/validators/layout/annotation/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/annotation/font/_variant.py b/plotly/validators/layout/annotation/font/_variant.py index 3c517a2702..f4768d937a 100644 --- a/plotly/validators/layout/annotation/font/_variant.py +++ b/plotly/validators/layout/annotation/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/annotation/font/_weight.py b/plotly/validators/layout/annotation/font/_weight.py index 151d4bedf0..a4a58dad83 100644 --- a/plotly/validators/layout/annotation/font/_weight.py +++ b/plotly/validators/layout/annotation/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/annotation/hoverlabel/__init__.py b/plotly/validators/layout/annotation/hoverlabel/__init__.py index 6cd9f4b93c..040f0045eb 100644 --- a/plotly/validators/layout/annotation/hoverlabel/__init__.py +++ b/plotly/validators/layout/annotation/hoverlabel/__init__.py @@ -1,19 +1,12 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._font.FontValidator", + "._bordercolor.BordercolorValidator", + "._bgcolor.BgcolorValidator", + ], +) diff --git a/plotly/validators/layout/annotation/hoverlabel/_bgcolor.py b/plotly/validators/layout/annotation/hoverlabel/_bgcolor.py index 373a810251..a207eae199 100644 --- a/plotly/validators/layout/annotation/hoverlabel/_bgcolor.py +++ b/plotly/validators/layout/annotation/hoverlabel/_bgcolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/annotation/hoverlabel/_bordercolor.py b/plotly/validators/layout/annotation/hoverlabel/_bordercolor.py index da22b67cfd..47ec10b70c 100644 --- a/plotly/validators/layout/annotation/hoverlabel/_bordercolor.py +++ b/plotly/validators/layout/annotation/hoverlabel/_bordercolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/annotation/hoverlabel/_font.py b/plotly/validators/layout/annotation/hoverlabel/_font.py index 0b5a79b269..53f18721b2 100644 --- a/plotly/validators/layout/annotation/hoverlabel/_font.py +++ b/plotly/validators/layout/annotation/hoverlabel/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/annotation/hoverlabel/font/__init__.py b/plotly/validators/layout/annotation/hoverlabel/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/annotation/hoverlabel/font/__init__.py +++ b/plotly/validators/layout/annotation/hoverlabel/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/annotation/hoverlabel/font/_color.py b/plotly/validators/layout/annotation/hoverlabel/font/_color.py index 92982d1fdd..ad404d962e 100644 --- a/plotly/validators/layout/annotation/hoverlabel/font/_color.py +++ b/plotly/validators/layout/annotation/hoverlabel/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/annotation/hoverlabel/font/_family.py b/plotly/validators/layout/annotation/hoverlabel/font/_family.py index fbdb47316f..0e1580b6be 100644 --- a/plotly/validators/layout/annotation/hoverlabel/font/_family.py +++ b/plotly/validators/layout/annotation/hoverlabel/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/annotation/hoverlabel/font/_lineposition.py b/plotly/validators/layout/annotation/hoverlabel/font/_lineposition.py index e7bc5d6e8c..c8cdfcc48e 100644 --- a/plotly/validators/layout/annotation/hoverlabel/font/_lineposition.py +++ b/plotly/validators/layout/annotation/hoverlabel/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/annotation/hoverlabel/font/_shadow.py b/plotly/validators/layout/annotation/hoverlabel/font/_shadow.py index 8b64dbce11..9375e1b6da 100644 --- a/plotly/validators/layout/annotation/hoverlabel/font/_shadow.py +++ b/plotly/validators/layout/annotation/hoverlabel/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/annotation/hoverlabel/font/_size.py b/plotly/validators/layout/annotation/hoverlabel/font/_size.py index 0cc11a116b..465e74e8d5 100644 --- a/plotly/validators/layout/annotation/hoverlabel/font/_size.py +++ b/plotly/validators/layout/annotation/hoverlabel/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/annotation/hoverlabel/font/_style.py b/plotly/validators/layout/annotation/hoverlabel/font/_style.py index 461e09731d..56deccd995 100644 --- a/plotly/validators/layout/annotation/hoverlabel/font/_style.py +++ b/plotly/validators/layout/annotation/hoverlabel/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/annotation/hoverlabel/font/_textcase.py b/plotly/validators/layout/annotation/hoverlabel/font/_textcase.py index 15539adb97..c150af5b21 100644 --- a/plotly/validators/layout/annotation/hoverlabel/font/_textcase.py +++ b/plotly/validators/layout/annotation/hoverlabel/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/annotation/hoverlabel/font/_variant.py b/plotly/validators/layout/annotation/hoverlabel/font/_variant.py index 518a3d7c82..d83b36986d 100644 --- a/plotly/validators/layout/annotation/hoverlabel/font/_variant.py +++ b/plotly/validators/layout/annotation/hoverlabel/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/annotation/hoverlabel/font/_weight.py b/plotly/validators/layout/annotation/hoverlabel/font/_weight.py index 5756b4ebf7..964c19e3cf 100644 --- a/plotly/validators/layout/annotation/hoverlabel/font/_weight.py +++ b/plotly/validators/layout/annotation/hoverlabel/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/coloraxis/__init__.py b/plotly/validators/layout/coloraxis/__init__.py index e57f36a239..946b642b29 100644 --- a/plotly/validators/layout/coloraxis/__init__.py +++ b/plotly/validators/layout/coloraxis/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._showscale import ShowscaleValidator - from ._reversescale import ReversescaleValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._showscale.ShowscaleValidator", + "._reversescale.ReversescaleValidator", + "._colorscale.ColorscaleValidator", + "._colorbar.ColorbarValidator", + "._cmin.CminValidator", + "._cmid.CmidValidator", + "._cmax.CmaxValidator", + "._cauto.CautoValidator", + "._autocolorscale.AutocolorscaleValidator", + ], +) diff --git a/plotly/validators/layout/coloraxis/_autocolorscale.py b/plotly/validators/layout/coloraxis/_autocolorscale.py index bcf71ba8d5..c6c9ade8a3 100644 --- a/plotly/validators/layout/coloraxis/_autocolorscale.py +++ b/plotly/validators/layout/coloraxis/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/layout/coloraxis/_cauto.py b/plotly/validators/layout/coloraxis/_cauto.py index 23b9c287e7..02a833a06f 100644 --- a/plotly/validators/layout/coloraxis/_cauto.py +++ b/plotly/validators/layout/coloraxis/_cauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/layout/coloraxis/_cmax.py b/plotly/validators/layout/coloraxis/_cmax.py index c2bcb20ab9..8038f801c0 100644 --- a/plotly/validators/layout/coloraxis/_cmax.py +++ b/plotly/validators/layout/coloraxis/_cmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/layout/coloraxis/_cmid.py b/plotly/validators/layout/coloraxis/_cmid.py index f5781ececf..3da4cc9001 100644 --- a/plotly/validators/layout/coloraxis/_cmid.py +++ b/plotly/validators/layout/coloraxis/_cmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/layout/coloraxis/_cmin.py b/plotly/validators/layout/coloraxis/_cmin.py index b6eafec3cd..86d657940d 100644 --- a/plotly/validators/layout/coloraxis/_cmin.py +++ b/plotly/validators/layout/coloraxis/_cmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/layout/coloraxis/_colorbar.py b/plotly/validators/layout/coloraxis/_colorbar.py index c28a1b46e5..6a3665f2a3 100644 --- a/plotly/validators/layout/coloraxis/_colorbar.py +++ b/plotly/validators/layout/coloraxis/_colorbar.py @@ -1,281 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/coloraxis/_colorscale.py b/plotly/validators/layout/coloraxis/_colorscale.py index 2b63ea2745..2d8118cdb8 100644 --- a/plotly/validators/layout/coloraxis/_colorscale.py +++ b/plotly/validators/layout/coloraxis/_colorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/layout/coloraxis/_reversescale.py b/plotly/validators/layout/coloraxis/_reversescale.py index 96df8c8a4a..ef20a8e538 100644 --- a/plotly/validators/layout/coloraxis/_reversescale.py +++ b/plotly/validators/layout/coloraxis/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/coloraxis/_showscale.py b/plotly/validators/layout/coloraxis/_showscale.py index a9f6d61484..89867bea3e 100644 --- a/plotly/validators/layout/coloraxis/_showscale.py +++ b/plotly/validators/layout/coloraxis/_showscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/coloraxis/colorbar/__init__.py b/plotly/validators/layout/coloraxis/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/layout/coloraxis/colorbar/__init__.py +++ b/plotly/validators/layout/coloraxis/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/coloraxis/colorbar/_bgcolor.py b/plotly/validators/layout/coloraxis/colorbar/_bgcolor.py index 188c3d3de0..5ba6ce7a2b 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_bgcolor.py +++ b/plotly/validators/layout/coloraxis/colorbar/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/layout/coloraxis/colorbar/_bordercolor.py b/plotly/validators/layout/coloraxis/colorbar/_bordercolor.py index ebe09f30c9..30b0b1b7b3 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_bordercolor.py +++ b/plotly/validators/layout/coloraxis/colorbar/_bordercolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/layout/coloraxis/colorbar/_borderwidth.py b/plotly/validators/layout/coloraxis/colorbar/_borderwidth.py index ab646d5a7d..8778d3435f 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_borderwidth.py +++ b/plotly/validators/layout/coloraxis/colorbar/_borderwidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/coloraxis/colorbar/_dtick.py b/plotly/validators/layout/coloraxis/colorbar/_dtick.py index 2d3eed267f..3237851384 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_dtick.py +++ b/plotly/validators/layout/coloraxis/colorbar/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/layout/coloraxis/colorbar/_exponentformat.py b/plotly/validators/layout/coloraxis/colorbar/_exponentformat.py index 7c3014c3a2..e5fb6156e5 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_exponentformat.py +++ b/plotly/validators/layout/coloraxis/colorbar/_exponentformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/layout/coloraxis/colorbar/_labelalias.py b/plotly/validators/layout/coloraxis/colorbar/_labelalias.py index 0250c30ead..865d9a4a7a 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_labelalias.py +++ b/plotly/validators/layout/coloraxis/colorbar/_labelalias.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/layout/coloraxis/colorbar/_len.py b/plotly/validators/layout/coloraxis/colorbar/_len.py index 47d33e019e..1b76e58011 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_len.py +++ b/plotly/validators/layout/coloraxis/colorbar/_len.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/coloraxis/colorbar/_lenmode.py b/plotly/validators/layout/coloraxis/colorbar/_lenmode.py index b3dcc3d8db..562ac35699 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_lenmode.py +++ b/plotly/validators/layout/coloraxis/colorbar/_lenmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/layout/coloraxis/colorbar/_minexponent.py b/plotly/validators/layout/coloraxis/colorbar/_minexponent.py index 156d547ed2..e2b99ab643 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_minexponent.py +++ b/plotly/validators/layout/coloraxis/colorbar/_minexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/coloraxis/colorbar/_nticks.py b/plotly/validators/layout/coloraxis/colorbar/_nticks.py index e8744d0b06..548c2d5dcf 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_nticks.py +++ b/plotly/validators/layout/coloraxis/colorbar/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/coloraxis/colorbar/_orientation.py b/plotly/validators/layout/coloraxis/colorbar/_orientation.py index ce6cb0b275..c2f236c3b4 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_orientation.py +++ b/plotly/validators/layout/coloraxis/colorbar/_orientation.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/layout/coloraxis/colorbar/_outlinecolor.py b/plotly/validators/layout/coloraxis/colorbar/_outlinecolor.py index c60f84bac3..fced7906aa 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_outlinecolor.py +++ b/plotly/validators/layout/coloraxis/colorbar/_outlinecolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/layout/coloraxis/colorbar/_outlinewidth.py b/plotly/validators/layout/coloraxis/colorbar/_outlinewidth.py index 2cbe62b9ed..7ba278f52d 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_outlinewidth.py +++ b/plotly/validators/layout/coloraxis/colorbar/_outlinewidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/coloraxis/colorbar/_separatethousands.py b/plotly/validators/layout/coloraxis/colorbar/_separatethousands.py index ff136db6fa..467f270486 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_separatethousands.py +++ b/plotly/validators/layout/coloraxis/colorbar/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/layout/coloraxis/colorbar/_showexponent.py b/plotly/validators/layout/coloraxis/colorbar/_showexponent.py index 9f5ff8f531..eeef82b969 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_showexponent.py +++ b/plotly/validators/layout/coloraxis/colorbar/_showexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/coloraxis/colorbar/_showticklabels.py b/plotly/validators/layout/coloraxis/colorbar/_showticklabels.py index 29f9fef5f0..1e6690e02c 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_showticklabels.py +++ b/plotly/validators/layout/coloraxis/colorbar/_showticklabels.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/layout/coloraxis/colorbar/_showtickprefix.py b/plotly/validators/layout/coloraxis/colorbar/_showtickprefix.py index be9f6d1c94..e4287c8f90 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_showtickprefix.py +++ b/plotly/validators/layout/coloraxis/colorbar/_showtickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/coloraxis/colorbar/_showticksuffix.py b/plotly/validators/layout/coloraxis/colorbar/_showticksuffix.py index 59b1fd2309..39a977fc9a 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_showticksuffix.py +++ b/plotly/validators/layout/coloraxis/colorbar/_showticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/coloraxis/colorbar/_thickness.py b/plotly/validators/layout/coloraxis/colorbar/_thickness.py index f48cb2da55..c417f79d25 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_thickness.py +++ b/plotly/validators/layout/coloraxis/colorbar/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/coloraxis/colorbar/_thicknessmode.py b/plotly/validators/layout/coloraxis/colorbar/_thicknessmode.py index c6a034cee8..be463544f1 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_thicknessmode.py +++ b/plotly/validators/layout/coloraxis/colorbar/_thicknessmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/layout/coloraxis/colorbar/_tick0.py b/plotly/validators/layout/coloraxis/colorbar/_tick0.py index f00c88e071..43bed2a00c 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_tick0.py +++ b/plotly/validators/layout/coloraxis/colorbar/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/layout/coloraxis/colorbar/_tickangle.py b/plotly/validators/layout/coloraxis/colorbar/_tickangle.py index 740fd8519a..5f57374b41 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_tickangle.py +++ b/plotly/validators/layout/coloraxis/colorbar/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/layout/coloraxis/colorbar/_tickcolor.py b/plotly/validators/layout/coloraxis/colorbar/_tickcolor.py index a579d1a06d..7260572ec7 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_tickcolor.py +++ b/plotly/validators/layout/coloraxis/colorbar/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/layout/coloraxis/colorbar/_tickfont.py b/plotly/validators/layout/coloraxis/colorbar/_tickfont.py index a4fac6d169..ff8bbd1f29 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_tickfont.py +++ b/plotly/validators/layout/coloraxis/colorbar/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/coloraxis/colorbar/_tickformat.py b/plotly/validators/layout/coloraxis/colorbar/_tickformat.py index 057ae7d58b..3f6b39f9bc 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_tickformat.py +++ b/plotly/validators/layout/coloraxis/colorbar/_tickformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/layout/coloraxis/colorbar/_tickformatstopdefaults.py b/plotly/validators/layout/coloraxis/colorbar/_tickformatstopdefaults.py index 3fb52d55bb..014e8b8061 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/layout/coloraxis/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/coloraxis/colorbar/_tickformatstops.py b/plotly/validators/layout/coloraxis/colorbar/_tickformatstops.py index 69d05ce8d2..0d7e6e8168 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_tickformatstops.py +++ b/plotly/validators/layout/coloraxis/colorbar/_tickformatstops.py @@ -1,53 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/coloraxis/colorbar/_ticklabeloverflow.py b/plotly/validators/layout/coloraxis/colorbar/_ticklabeloverflow.py index 5c053cca06..d8451abd4d 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/layout/coloraxis/colorbar/_ticklabeloverflow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/layout/coloraxis/colorbar/_ticklabelposition.py b/plotly/validators/layout/coloraxis/colorbar/_ticklabelposition.py index 7535e3c569..e561b0d778 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_ticklabelposition.py +++ b/plotly/validators/layout/coloraxis/colorbar/_ticklabelposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/coloraxis/colorbar/_ticklabelstep.py b/plotly/validators/layout/coloraxis/colorbar/_ticklabelstep.py index 85793a7c25..853f02489d 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_ticklabelstep.py +++ b/plotly/validators/layout/coloraxis/colorbar/_ticklabelstep.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/coloraxis/colorbar/_ticklen.py b/plotly/validators/layout/coloraxis/colorbar/_ticklen.py index 9c24fe27a3..64403c1a0d 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_ticklen.py +++ b/plotly/validators/layout/coloraxis/colorbar/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/coloraxis/colorbar/_tickmode.py b/plotly/validators/layout/coloraxis/colorbar/_tickmode.py index 627b524fac..7d253e3ddf 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_tickmode.py +++ b/plotly/validators/layout/coloraxis/colorbar/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/layout/coloraxis/colorbar/_tickprefix.py b/plotly/validators/layout/coloraxis/colorbar/_tickprefix.py index 3edd785f38..52809416d8 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_tickprefix.py +++ b/plotly/validators/layout/coloraxis/colorbar/_tickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/layout/coloraxis/colorbar/_ticks.py b/plotly/validators/layout/coloraxis/colorbar/_ticks.py index ea778433c9..0b06ab3cb9 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_ticks.py +++ b/plotly/validators/layout/coloraxis/colorbar/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/layout/coloraxis/colorbar/_ticksuffix.py b/plotly/validators/layout/coloraxis/colorbar/_ticksuffix.py index 33c59f3359..bc2b2c659b 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_ticksuffix.py +++ b/plotly/validators/layout/coloraxis/colorbar/_ticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/layout/coloraxis/colorbar/_ticktext.py b/plotly/validators/layout/coloraxis/colorbar/_ticktext.py index 39fee4e683..a35624c0bb 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_ticktext.py +++ b/plotly/validators/layout/coloraxis/colorbar/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/layout/coloraxis/colorbar/_ticktextsrc.py b/plotly/validators/layout/coloraxis/colorbar/_ticktextsrc.py index 12f014e7c3..759c35e82e 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_ticktextsrc.py +++ b/plotly/validators/layout/coloraxis/colorbar/_ticktextsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/coloraxis/colorbar/_tickvals.py b/plotly/validators/layout/coloraxis/colorbar/_tickvals.py index a500ceaf5d..4e9ba41bc3 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_tickvals.py +++ b/plotly/validators/layout/coloraxis/colorbar/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/layout/coloraxis/colorbar/_tickvalssrc.py b/plotly/validators/layout/coloraxis/colorbar/_tickvalssrc.py index a9fdc51ba9..94e32ff884 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_tickvalssrc.py +++ b/plotly/validators/layout/coloraxis/colorbar/_tickvalssrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/coloraxis/colorbar/_tickwidth.py b/plotly/validators/layout/coloraxis/colorbar/_tickwidth.py index c6c3ded55d..61f726db6f 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_tickwidth.py +++ b/plotly/validators/layout/coloraxis/colorbar/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/coloraxis/colorbar/_title.py b/plotly/validators/layout/coloraxis/colorbar/_title.py index 3ca73b4fda..c4ed0905e3 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_title.py +++ b/plotly/validators/layout/coloraxis/colorbar/_title.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/coloraxis/colorbar/_x.py b/plotly/validators/layout/coloraxis/colorbar/_x.py index 01a5e482e3..9038ebc0f1 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_x.py +++ b/plotly/validators/layout/coloraxis/colorbar/_x.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/layout/coloraxis/colorbar/_xanchor.py b/plotly/validators/layout/coloraxis/colorbar/_xanchor.py index e30cc1360b..1cc4a06020 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_xanchor.py +++ b/plotly/validators/layout/coloraxis/colorbar/_xanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/layout/coloraxis/colorbar/_xpad.py b/plotly/validators/layout/coloraxis/colorbar/_xpad.py index 40cc17aa6c..ea86a7c14f 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_xpad.py +++ b/plotly/validators/layout/coloraxis/colorbar/_xpad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/coloraxis/colorbar/_xref.py b/plotly/validators/layout/coloraxis/colorbar/_xref.py index 20a974d404..06be19fa60 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_xref.py +++ b/plotly/validators/layout/coloraxis/colorbar/_xref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/layout/coloraxis/colorbar/_y.py b/plotly/validators/layout/coloraxis/colorbar/_y.py index dac427570e..8278b6d0a4 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_y.py +++ b/plotly/validators/layout/coloraxis/colorbar/_y.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/layout/coloraxis/colorbar/_yanchor.py b/plotly/validators/layout/coloraxis/colorbar/_yanchor.py index ed62f5b79e..8bb170cbe5 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_yanchor.py +++ b/plotly/validators/layout/coloraxis/colorbar/_yanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/layout/coloraxis/colorbar/_ypad.py b/plotly/validators/layout/coloraxis/colorbar/_ypad.py index 91503b65a9..0bf8a5a8e8 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_ypad.py +++ b/plotly/validators/layout/coloraxis/colorbar/_ypad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/coloraxis/colorbar/_yref.py b/plotly/validators/layout/coloraxis/colorbar/_yref.py index 4658e3192a..ea8d57e76f 100644 --- a/plotly/validators/layout/coloraxis/colorbar/_yref.py +++ b/plotly/validators/layout/coloraxis/colorbar/_yref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/layout/coloraxis/colorbar/tickfont/__init__.py b/plotly/validators/layout/coloraxis/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/coloraxis/colorbar/tickfont/__init__.py +++ b/plotly/validators/layout/coloraxis/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/coloraxis/colorbar/tickfont/_color.py b/plotly/validators/layout/coloraxis/colorbar/tickfont/_color.py index a64965b5d1..2f416d8940 100644 --- a/plotly/validators/layout/coloraxis/colorbar/tickfont/_color.py +++ b/plotly/validators/layout/coloraxis/colorbar/tickfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/layout/coloraxis/colorbar/tickfont/_family.py b/plotly/validators/layout/coloraxis/colorbar/tickfont/_family.py index 1bae4b07e6..64390e21ba 100644 --- a/plotly/validators/layout/coloraxis/colorbar/tickfont/_family.py +++ b/plotly/validators/layout/coloraxis/colorbar/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/coloraxis/colorbar/tickfont/_lineposition.py b/plotly/validators/layout/coloraxis/colorbar/tickfont/_lineposition.py index 0bc2c9d5ec..81a43baf23 100644 --- a/plotly/validators/layout/coloraxis/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/layout/coloraxis/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/coloraxis/colorbar/tickfont/_shadow.py b/plotly/validators/layout/coloraxis/colorbar/tickfont/_shadow.py index 9e90678410..28a7eb9b58 100644 --- a/plotly/validators/layout/coloraxis/colorbar/tickfont/_shadow.py +++ b/plotly/validators/layout/coloraxis/colorbar/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/layout/coloraxis/colorbar/tickfont/_size.py b/plotly/validators/layout/coloraxis/colorbar/tickfont/_size.py index ec171d779e..b070183d79 100644 --- a/plotly/validators/layout/coloraxis/colorbar/tickfont/_size.py +++ b/plotly/validators/layout/coloraxis/colorbar/tickfont/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/coloraxis/colorbar/tickfont/_style.py b/plotly/validators/layout/coloraxis/colorbar/tickfont/_style.py index dcdc693b6b..673af608c4 100644 --- a/plotly/validators/layout/coloraxis/colorbar/tickfont/_style.py +++ b/plotly/validators/layout/coloraxis/colorbar/tickfont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/coloraxis/colorbar/tickfont/_textcase.py b/plotly/validators/layout/coloraxis/colorbar/tickfont/_textcase.py index a840820b25..928b9f7e26 100644 --- a/plotly/validators/layout/coloraxis/colorbar/tickfont/_textcase.py +++ b/plotly/validators/layout/coloraxis/colorbar/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/coloraxis/colorbar/tickfont/_variant.py b/plotly/validators/layout/coloraxis/colorbar/tickfont/_variant.py index 4fd7f272ff..ccf3eccbf1 100644 --- a/plotly/validators/layout/coloraxis/colorbar/tickfont/_variant.py +++ b/plotly/validators/layout/coloraxis/colorbar/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/coloraxis/colorbar/tickfont/_weight.py b/plotly/validators/layout/coloraxis/colorbar/tickfont/_weight.py index 6ae7d06a8a..dbf2306eee 100644 --- a/plotly/validators/layout/coloraxis/colorbar/tickfont/_weight.py +++ b/plotly/validators/layout/coloraxis/colorbar/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/coloraxis/colorbar/tickformatstop/__init__.py b/plotly/validators/layout/coloraxis/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/layout/coloraxis/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/layout/coloraxis/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_dtickrange.py index 2cf86f2d1a..cda54b7c0d 100644 --- a/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_enabled.py b/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_enabled.py index 6365599c92..183bacb4a4 100644 --- a/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_name.py b/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_name.py index 162d2b737e..100753130b 100644 --- a/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_name.py +++ b/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_templateitemname.py index c8dce4f290..b6851b055d 100644 --- a/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_value.py b/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_value.py index 7f0823c50a..47fa0c6dd5 100644 --- a/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_value.py +++ b/plotly/validators/layout/coloraxis/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/layout/coloraxis/colorbar/title/__init__.py b/plotly/validators/layout/coloraxis/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/layout/coloraxis/colorbar/title/__init__.py +++ b/plotly/validators/layout/coloraxis/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/layout/coloraxis/colorbar/title/_font.py b/plotly/validators/layout/coloraxis/colorbar/title/_font.py index 79acbc62bf..be33f839a2 100644 --- a/plotly/validators/layout/coloraxis/colorbar/title/_font.py +++ b/plotly/validators/layout/coloraxis/colorbar/title/_font.py @@ -1,63 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/coloraxis/colorbar/title/_side.py b/plotly/validators/layout/coloraxis/colorbar/title/_side.py index 699631ad2a..d3a16ba0a3 100644 --- a/plotly/validators/layout/coloraxis/colorbar/title/_side.py +++ b/plotly/validators/layout/coloraxis/colorbar/title/_side.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/layout/coloraxis/colorbar/title/_text.py b/plotly/validators/layout/coloraxis/colorbar/title/_text.py index 3b8b567de4..8a83e5a7c2 100644 --- a/plotly/validators/layout/coloraxis/colorbar/title/_text.py +++ b/plotly/validators/layout/coloraxis/colorbar/title/_text.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/layout/coloraxis/colorbar/title/font/__init__.py b/plotly/validators/layout/coloraxis/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/coloraxis/colorbar/title/font/__init__.py +++ b/plotly/validators/layout/coloraxis/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/coloraxis/colorbar/title/font/_color.py b/plotly/validators/layout/coloraxis/colorbar/title/font/_color.py index 93ecf4aa6f..0f623a4c1b 100644 --- a/plotly/validators/layout/coloraxis/colorbar/title/font/_color.py +++ b/plotly/validators/layout/coloraxis/colorbar/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/layout/coloraxis/colorbar/title/font/_family.py b/plotly/validators/layout/coloraxis/colorbar/title/font/_family.py index fd6e197c8c..d6391a8f29 100644 --- a/plotly/validators/layout/coloraxis/colorbar/title/font/_family.py +++ b/plotly/validators/layout/coloraxis/colorbar/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/coloraxis/colorbar/title/font/_lineposition.py b/plotly/validators/layout/coloraxis/colorbar/title/font/_lineposition.py index 051e294861..99d5302d87 100644 --- a/plotly/validators/layout/coloraxis/colorbar/title/font/_lineposition.py +++ b/plotly/validators/layout/coloraxis/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/coloraxis/colorbar/title/font/_shadow.py b/plotly/validators/layout/coloraxis/colorbar/title/font/_shadow.py index 973908cb77..6d441323f0 100644 --- a/plotly/validators/layout/coloraxis/colorbar/title/font/_shadow.py +++ b/plotly/validators/layout/coloraxis/colorbar/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/layout/coloraxis/colorbar/title/font/_size.py b/plotly/validators/layout/coloraxis/colorbar/title/font/_size.py index af2e516d1c..6632da777f 100644 --- a/plotly/validators/layout/coloraxis/colorbar/title/font/_size.py +++ b/plotly/validators/layout/coloraxis/colorbar/title/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/coloraxis/colorbar/title/font/_style.py b/plotly/validators/layout/coloraxis/colorbar/title/font/_style.py index ef325872cf..9ea672afd0 100644 --- a/plotly/validators/layout/coloraxis/colorbar/title/font/_style.py +++ b/plotly/validators/layout/coloraxis/colorbar/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/coloraxis/colorbar/title/font/_textcase.py b/plotly/validators/layout/coloraxis/colorbar/title/font/_textcase.py index 2eb7dcdc5b..3bc524ef82 100644 --- a/plotly/validators/layout/coloraxis/colorbar/title/font/_textcase.py +++ b/plotly/validators/layout/coloraxis/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/coloraxis/colorbar/title/font/_variant.py b/plotly/validators/layout/coloraxis/colorbar/title/font/_variant.py index 0e5eda9436..2a8232cdee 100644 --- a/plotly/validators/layout/coloraxis/colorbar/title/font/_variant.py +++ b/plotly/validators/layout/coloraxis/colorbar/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/coloraxis/colorbar/title/font/_weight.py b/plotly/validators/layout/coloraxis/colorbar/title/font/_weight.py index 8479b72b15..427d1c5b0c 100644 --- a/plotly/validators/layout/coloraxis/colorbar/title/font/_weight.py +++ b/plotly/validators/layout/coloraxis/colorbar/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/colorscale/__init__.py b/plotly/validators/layout/colorscale/__init__.py index 0dc4e7ac68..7d22f8a813 100644 --- a/plotly/validators/layout/colorscale/__init__.py +++ b/plotly/validators/layout/colorscale/__init__.py @@ -1,19 +1,12 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._sequentialminus.SequentialminusValidator", + "._sequential.SequentialValidator", + "._diverging.DivergingValidator", + ], +) diff --git a/plotly/validators/layout/colorscale/_diverging.py b/plotly/validators/layout/colorscale/_diverging.py index 8a9805d9c5..1c4be82ece 100644 --- a/plotly/validators/layout/colorscale/_diverging.py +++ b/plotly/validators/layout/colorscale/_diverging.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DivergingValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/colorscale/_sequential.py b/plotly/validators/layout/colorscale/_sequential.py index ba8d9270e4..b77af4defc 100644 --- a/plotly/validators/layout/colorscale/_sequential.py +++ b/plotly/validators/layout/colorscale/_sequential.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SequentialValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/colorscale/_sequentialminus.py b/plotly/validators/layout/colorscale/_sequentialminus.py index 4073f1f243..f436ed833b 100644 --- a/plotly/validators/layout/colorscale/_sequentialminus.py +++ b/plotly/validators/layout/colorscale/_sequentialminus.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SequentialminusValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/font/__init__.py b/plotly/validators/layout/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/font/__init__.py +++ b/plotly/validators/layout/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/font/_color.py b/plotly/validators/layout/font/_color.py index f87c0076db..e830f2b2cd 100644 --- a/plotly/validators/layout/font/_color.py +++ b/plotly/validators/layout/font/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/font/_family.py b/plotly/validators/layout/font/_family.py index 970915a20d..8eaf0a5452 100644 --- a/plotly/validators/layout/font/_family.py +++ b/plotly/validators/layout/font/_family.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/font/_lineposition.py b/plotly/validators/layout/font/_lineposition.py index 66b4ef6a22..5fe85a5521 100644 --- a/plotly/validators/layout/font/_lineposition.py +++ b/plotly/validators/layout/font/_lineposition.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/font/_shadow.py b/plotly/validators/layout/font/_shadow.py index 071b7d6cb1..8e83c02a75 100644 --- a/plotly/validators/layout/font/_shadow.py +++ b/plotly/validators/layout/font/_shadow.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/font/_size.py b/plotly/validators/layout/font/_size.py index 95aef67596..74882842c2 100644 --- a/plotly/validators/layout/font/_size.py +++ b/plotly/validators/layout/font/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/font/_style.py b/plotly/validators/layout/font/_style.py index 31bf495a6a..f981f1c164 100644 --- a/plotly/validators/layout/font/_style.py +++ b/plotly/validators/layout/font/_style.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/font/_textcase.py b/plotly/validators/layout/font/_textcase.py index 5fbe55abe5..9bc7e5e0ec 100644 --- a/plotly/validators/layout/font/_textcase.py +++ b/plotly/validators/layout/font/_textcase.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/font/_variant.py b/plotly/validators/layout/font/_variant.py index 6b3951e9b6..d0c70a5214 100644 --- a/plotly/validators/layout/font/_variant.py +++ b/plotly/validators/layout/font/_variant.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/font/_weight.py b/plotly/validators/layout/font/_weight.py index a6a8351def..9a2bd501c9 100644 --- a/plotly/validators/layout/font/_weight.py +++ b/plotly/validators/layout/font/_weight.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/geo/__init__.py b/plotly/validators/layout/geo/__init__.py index ea8ac8b2d9..d43faed81e 100644 --- a/plotly/validators/layout/geo/__init__.py +++ b/plotly/validators/layout/geo/__init__.py @@ -1,77 +1,41 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._visible import VisibleValidator - from ._uirevision import UirevisionValidator - from ._subunitwidth import SubunitwidthValidator - from ._subunitcolor import SubunitcolorValidator - from ._showsubunits import ShowsubunitsValidator - from ._showrivers import ShowriversValidator - from ._showocean import ShowoceanValidator - from ._showland import ShowlandValidator - from ._showlakes import ShowlakesValidator - from ._showframe import ShowframeValidator - from ._showcountries import ShowcountriesValidator - from ._showcoastlines import ShowcoastlinesValidator - from ._scope import ScopeValidator - from ._riverwidth import RiverwidthValidator - from ._rivercolor import RivercolorValidator - from ._resolution import ResolutionValidator - from ._projection import ProjectionValidator - from ._oceancolor import OceancolorValidator - from ._lonaxis import LonaxisValidator - from ._lataxis import LataxisValidator - from ._landcolor import LandcolorValidator - from ._lakecolor import LakecolorValidator - from ._framewidth import FramewidthValidator - from ._framecolor import FramecolorValidator - from ._fitbounds import FitboundsValidator - from ._domain import DomainValidator - from ._countrywidth import CountrywidthValidator - from ._countrycolor import CountrycolorValidator - from ._coastlinewidth import CoastlinewidthValidator - from ._coastlinecolor import CoastlinecolorValidator - from ._center import CenterValidator - from ._bgcolor import BgcolorValidator -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [], - [ - "._visible.VisibleValidator", - "._uirevision.UirevisionValidator", - "._subunitwidth.SubunitwidthValidator", - "._subunitcolor.SubunitcolorValidator", - "._showsubunits.ShowsubunitsValidator", - "._showrivers.ShowriversValidator", - "._showocean.ShowoceanValidator", - "._showland.ShowlandValidator", - "._showlakes.ShowlakesValidator", - "._showframe.ShowframeValidator", - "._showcountries.ShowcountriesValidator", - "._showcoastlines.ShowcoastlinesValidator", - "._scope.ScopeValidator", - "._riverwidth.RiverwidthValidator", - "._rivercolor.RivercolorValidator", - "._resolution.ResolutionValidator", - "._projection.ProjectionValidator", - "._oceancolor.OceancolorValidator", - "._lonaxis.LonaxisValidator", - "._lataxis.LataxisValidator", - "._landcolor.LandcolorValidator", - "._lakecolor.LakecolorValidator", - "._framewidth.FramewidthValidator", - "._framecolor.FramecolorValidator", - "._fitbounds.FitboundsValidator", - "._domain.DomainValidator", - "._countrywidth.CountrywidthValidator", - "._countrycolor.CountrycolorValidator", - "._coastlinewidth.CoastlinewidthValidator", - "._coastlinecolor.CoastlinecolorValidator", - "._center.CenterValidator", - "._bgcolor.BgcolorValidator", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/geo/_bgcolor.py b/plotly/validators/layout/geo/_bgcolor.py index bbbbfdae4b..d0123dce54 100644 --- a/plotly/validators/layout/geo/_bgcolor.py +++ b/plotly/validators/layout/geo/_bgcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/geo/_center.py b/plotly/validators/layout/geo/_center.py index a1b4c1a7d5..be309c2094 100644 --- a/plotly/validators/layout/geo/_center.py +++ b/plotly/validators/layout/geo/_center.py @@ -1,26 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CenterValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/geo/_coastlinecolor.py b/plotly/validators/layout/geo/_coastlinecolor.py index 6d1faff5c2..84bcdf7612 100644 --- a/plotly/validators/layout/geo/_coastlinecolor.py +++ b/plotly/validators/layout/geo/_coastlinecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CoastlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/geo/_coastlinewidth.py b/plotly/validators/layout/geo/_coastlinewidth.py index 95aa959d9d..07b8a21281 100644 --- a/plotly/validators/layout/geo/_coastlinewidth.py +++ b/plotly/validators/layout/geo/_coastlinewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CoastlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/geo/_countrycolor.py b/plotly/validators/layout/geo/_countrycolor.py index c91927d26b..619d753ded 100644 --- a/plotly/validators/layout/geo/_countrycolor.py +++ b/plotly/validators/layout/geo/_countrycolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CountrycolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/geo/_countrywidth.py b/plotly/validators/layout/geo/_countrywidth.py index 7c38cbfaef..45499b953c 100644 --- a/plotly/validators/layout/geo/_countrywidth.py +++ b/plotly/validators/layout/geo/_countrywidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CountrywidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/geo/_domain.py b/plotly/validators/layout/geo/_domain.py index df58813b03..ef7637bbd9 100644 --- a/plotly/validators/layout/geo/_domain.py +++ b/plotly/validators/layout/geo/_domain.py @@ -1,41 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/geo/_fitbounds.py b/plotly/validators/layout/geo/_fitbounds.py index ef1818e081..4600ce5ae5 100644 --- a/plotly/validators/layout/geo/_fitbounds.py +++ b/plotly/validators/layout/geo/_fitbounds.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FitboundsValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", [False, "locations", "geojson"]), **kwargs, diff --git a/plotly/validators/layout/geo/_framecolor.py b/plotly/validators/layout/geo/_framecolor.py index f3331d3812..d86e31078b 100644 --- a/plotly/validators/layout/geo/_framecolor.py +++ b/plotly/validators/layout/geo/_framecolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FramecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/geo/_framewidth.py b/plotly/validators/layout/geo/_framewidth.py index a4ce655cfd..1e9a02dd0e 100644 --- a/plotly/validators/layout/geo/_framewidth.py +++ b/plotly/validators/layout/geo/_framewidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FramewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/geo/_lakecolor.py b/plotly/validators/layout/geo/_lakecolor.py index 56233fe280..928fb63143 100644 --- a/plotly/validators/layout/geo/_lakecolor.py +++ b/plotly/validators/layout/geo/_lakecolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LakecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/geo/_landcolor.py b/plotly/validators/layout/geo/_landcolor.py index b68020a939..0ac2238340 100644 --- a/plotly/validators/layout/geo/_landcolor.py +++ b/plotly/validators/layout/geo/_landcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LandcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/geo/_lataxis.py b/plotly/validators/layout/geo/_lataxis.py index 62bf9dcabb..619bf1530d 100644 --- a/plotly/validators/layout/geo/_lataxis.py +++ b/plotly/validators/layout/geo/_lataxis.py @@ -1,36 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LataxisValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/geo/_lonaxis.py b/plotly/validators/layout/geo/_lonaxis.py index 3960585148..3f07213b80 100644 --- a/plotly/validators/layout/geo/_lonaxis.py +++ b/plotly/validators/layout/geo/_lonaxis.py @@ -1,36 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LonaxisValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/geo/_oceancolor.py b/plotly/validators/layout/geo/_oceancolor.py index 7974ec166a..fc371e0f66 100644 --- a/plotly/validators/layout/geo/_oceancolor.py +++ b/plotly/validators/layout/geo/_oceancolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OceancolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/geo/_projection.py b/plotly/validators/layout/geo/_projection.py index 15b33161d2..69d172d30b 100644 --- a/plotly/validators/layout/geo/_projection.py +++ b/plotly/validators/layout/geo/_projection.py @@ -1,37 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ProjectionValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/geo/_resolution.py b/plotly/validators/layout/geo/_resolution.py index 6ff86ee31c..c300e175dd 100644 --- a/plotly/validators/layout/geo/_resolution.py +++ b/plotly/validators/layout/geo/_resolution.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ResolutionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, coerce_number=kwargs.pop("coerce_number", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", [110, 50]), diff --git a/plotly/validators/layout/geo/_rivercolor.py b/plotly/validators/layout/geo/_rivercolor.py index 5ffa39be77..8a089605bf 100644 --- a/plotly/validators/layout/geo/_rivercolor.py +++ b/plotly/validators/layout/geo/_rivercolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RivercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/geo/_riverwidth.py b/plotly/validators/layout/geo/_riverwidth.py index acd9af0b00..79e0e1eefe 100644 --- a/plotly/validators/layout/geo/_riverwidth.py +++ b/plotly/validators/layout/geo/_riverwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RiverwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/geo/_scope.py b/plotly/validators/layout/geo/_scope.py index d5aacbbc09..ef9128db8a 100644 --- a/plotly/validators/layout/geo/_scope.py +++ b/plotly/validators/layout/geo/_scope.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ScopeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/geo/_showcoastlines.py b/plotly/validators/layout/geo/_showcoastlines.py index e5d31bb944..76e15141e6 100644 --- a/plotly/validators/layout/geo/_showcoastlines.py +++ b/plotly/validators/layout/geo/_showcoastlines.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowcoastlinesValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/geo/_showcountries.py b/plotly/validators/layout/geo/_showcountries.py index bfdc83352c..a618e89a2f 100644 --- a/plotly/validators/layout/geo/_showcountries.py +++ b/plotly/validators/layout/geo/_showcountries.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowcountriesValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/geo/_showframe.py b/plotly/validators/layout/geo/_showframe.py index f2f44e0f5f..05ad85840d 100644 --- a/plotly/validators/layout/geo/_showframe.py +++ b/plotly/validators/layout/geo/_showframe.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowframeValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/geo/_showlakes.py b/plotly/validators/layout/geo/_showlakes.py index b1a8040f9e..e6e0dd8f79 100644 --- a/plotly/validators/layout/geo/_showlakes.py +++ b/plotly/validators/layout/geo/_showlakes.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlakesValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/geo/_showland.py b/plotly/validators/layout/geo/_showland.py index 8009059037..d04f019faa 100644 --- a/plotly/validators/layout/geo/_showland.py +++ b/plotly/validators/layout/geo/_showland.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlandValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/geo/_showocean.py b/plotly/validators/layout/geo/_showocean.py index 081de792d7..929cc8228a 100644 --- a/plotly/validators/layout/geo/_showocean.py +++ b/plotly/validators/layout/geo/_showocean.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowoceanValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/geo/_showrivers.py b/plotly/validators/layout/geo/_showrivers.py index 08c9784050..32bb0f826f 100644 --- a/plotly/validators/layout/geo/_showrivers.py +++ b/plotly/validators/layout/geo/_showrivers.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowriversValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/geo/_showsubunits.py b/plotly/validators/layout/geo/_showsubunits.py index 39cba4814d..8306559b0a 100644 --- a/plotly/validators/layout/geo/_showsubunits.py +++ b/plotly/validators/layout/geo/_showsubunits.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowsubunitsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/geo/_subunitcolor.py b/plotly/validators/layout/geo/_subunitcolor.py index e64fd03262..f7bf935eea 100644 --- a/plotly/validators/layout/geo/_subunitcolor.py +++ b/plotly/validators/layout/geo/_subunitcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SubunitcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/geo/_subunitwidth.py b/plotly/validators/layout/geo/_subunitwidth.py index 4d8d6bbb5e..5273e1b12d 100644 --- a/plotly/validators/layout/geo/_subunitwidth.py +++ b/plotly/validators/layout/geo/_subunitwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SubunitwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/geo/_uirevision.py b/plotly/validators/layout/geo/_uirevision.py index 754857b676..c1f65fffb4 100644 --- a/plotly/validators/layout/geo/_uirevision.py +++ b/plotly/validators/layout/geo/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/geo/_visible.py b/plotly/validators/layout/geo/_visible.py index 8acac3fc86..764bda4724 100644 --- a/plotly/validators/layout/geo/_visible.py +++ b/plotly/validators/layout/geo/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/geo/center/__init__.py b/plotly/validators/layout/geo/center/__init__.py index a723b74f14..bd95067321 100644 --- a/plotly/validators/layout/geo/center/__init__.py +++ b/plotly/validators/layout/geo/center/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._lon.LonValidator", "._lat.LatValidator"] +) diff --git a/plotly/validators/layout/geo/center/_lat.py b/plotly/validators/layout/geo/center/_lat.py index 76d14714da..3a49f16211 100644 --- a/plotly/validators/layout/geo/center/_lat.py +++ b/plotly/validators/layout/geo/center/_lat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LatValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/geo/center/_lon.py b/plotly/validators/layout/geo/center/_lon.py index c1259a67e3..3e962d4486 100644 --- a/plotly/validators/layout/geo/center/_lon.py +++ b/plotly/validators/layout/geo/center/_lon.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LonValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/geo/domain/__init__.py b/plotly/validators/layout/geo/domain/__init__.py index 67de5030d0..42827f1d1e 100644 --- a/plotly/validators/layout/geo/domain/__init__.py +++ b/plotly/validators/layout/geo/domain/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._y import YValidator - from ._x import XValidator - from ._row import RowValidator - from ._column import ColumnValidator -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [], - [ - "._y.YValidator", - "._x.XValidator", - "._row.RowValidator", - "._column.ColumnValidator", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._y.YValidator", + "._x.XValidator", + "._row.RowValidator", + "._column.ColumnValidator", + ], +) diff --git a/plotly/validators/layout/geo/domain/_column.py b/plotly/validators/layout/geo/domain/_column.py index 45ad71318b..d568923e8a 100644 --- a/plotly/validators/layout/geo/domain/_column.py +++ b/plotly/validators/layout/geo/domain/_column.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/geo/domain/_row.py b/plotly/validators/layout/geo/domain/_row.py index 5bc43e3012..5d80470852 100644 --- a/plotly/validators/layout/geo/domain/_row.py +++ b/plotly/validators/layout/geo/domain/_row.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RowValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/geo/domain/_x.py b/plotly/validators/layout/geo/domain/_x.py index 97151916ae..fa08b8e12f 100644 --- a/plotly/validators/layout/geo/domain/_x.py +++ b/plotly/validators/layout/geo/domain/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/geo/domain/_y.py b/plotly/validators/layout/geo/domain/_y.py index a3533b1182..dce01e8a62 100644 --- a/plotly/validators/layout/geo/domain/_y.py +++ b/plotly/validators/layout/geo/domain/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/geo/lataxis/__init__.py b/plotly/validators/layout/geo/lataxis/__init__.py index 307a63cc3f..35af96359d 100644 --- a/plotly/validators/layout/geo/lataxis/__init__.py +++ b/plotly/validators/layout/geo/lataxis/__init__.py @@ -1,27 +1,16 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tick0 import Tick0Validator - from ._showgrid import ShowgridValidator - from ._range import RangeValidator - from ._gridwidth import GridwidthValidator - from ._griddash import GriddashValidator - from ._gridcolor import GridcolorValidator - from ._dtick import DtickValidator -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [], - [ - "._tick0.Tick0Validator", - "._showgrid.ShowgridValidator", - "._range.RangeValidator", - "._gridwidth.GridwidthValidator", - "._griddash.GriddashValidator", - "._gridcolor.GridcolorValidator", - "._dtick.DtickValidator", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._tick0.Tick0Validator", + "._showgrid.ShowgridValidator", + "._range.RangeValidator", + "._gridwidth.GridwidthValidator", + "._griddash.GriddashValidator", + "._gridcolor.GridcolorValidator", + "._dtick.DtickValidator", + ], +) diff --git a/plotly/validators/layout/geo/lataxis/_dtick.py b/plotly/validators/layout/geo/lataxis/_dtick.py index 7fe49b8944..53f1bbfa1d 100644 --- a/plotly/validators/layout/geo/lataxis/_dtick.py +++ b/plotly/validators/layout/geo/lataxis/_dtick.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/geo/lataxis/_gridcolor.py b/plotly/validators/layout/geo/lataxis/_gridcolor.py index 7af73629f7..e2977a7fe5 100644 --- a/plotly/validators/layout/geo/lataxis/_gridcolor.py +++ b/plotly/validators/layout/geo/lataxis/_gridcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/geo/lataxis/_griddash.py b/plotly/validators/layout/geo/lataxis/_griddash.py index 848516d989..0dda446969 100644 --- a/plotly/validators/layout/geo/lataxis/_griddash.py +++ b/plotly/validators/layout/geo/lataxis/_griddash.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GriddashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/layout/geo/lataxis/_gridwidth.py b/plotly/validators/layout/geo/lataxis/_gridwidth.py index e686c82904..52ac11b739 100644 --- a/plotly/validators/layout/geo/lataxis/_gridwidth.py +++ b/plotly/validators/layout/geo/lataxis/_gridwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/geo/lataxis/_range.py b/plotly/validators/layout/geo/lataxis/_range.py index e3e76958ec..c81994940c 100644 --- a/plotly/validators/layout/geo/lataxis/_range.py +++ b/plotly/validators/layout/geo/lataxis/_range.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/geo/lataxis/_showgrid.py b/plotly/validators/layout/geo/lataxis/_showgrid.py index 965108e52c..3697de3448 100644 --- a/plotly/validators/layout/geo/lataxis/_showgrid.py +++ b/plotly/validators/layout/geo/lataxis/_showgrid.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/geo/lataxis/_tick0.py b/plotly/validators/layout/geo/lataxis/_tick0.py index 04003f8808..511aea2f58 100644 --- a/plotly/validators/layout/geo/lataxis/_tick0.py +++ b/plotly/validators/layout/geo/lataxis/_tick0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/geo/lonaxis/__init__.py b/plotly/validators/layout/geo/lonaxis/__init__.py index 307a63cc3f..35af96359d 100644 --- a/plotly/validators/layout/geo/lonaxis/__init__.py +++ b/plotly/validators/layout/geo/lonaxis/__init__.py @@ -1,27 +1,16 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tick0 import Tick0Validator - from ._showgrid import ShowgridValidator - from ._range import RangeValidator - from ._gridwidth import GridwidthValidator - from ._griddash import GriddashValidator - from ._gridcolor import GridcolorValidator - from ._dtick import DtickValidator -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [], - [ - "._tick0.Tick0Validator", - "._showgrid.ShowgridValidator", - "._range.RangeValidator", - "._gridwidth.GridwidthValidator", - "._griddash.GriddashValidator", - "._gridcolor.GridcolorValidator", - "._dtick.DtickValidator", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._tick0.Tick0Validator", + "._showgrid.ShowgridValidator", + "._range.RangeValidator", + "._gridwidth.GridwidthValidator", + "._griddash.GriddashValidator", + "._gridcolor.GridcolorValidator", + "._dtick.DtickValidator", + ], +) diff --git a/plotly/validators/layout/geo/lonaxis/_dtick.py b/plotly/validators/layout/geo/lonaxis/_dtick.py index a252a49784..be4fd913cb 100644 --- a/plotly/validators/layout/geo/lonaxis/_dtick.py +++ b/plotly/validators/layout/geo/lonaxis/_dtick.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/geo/lonaxis/_gridcolor.py b/plotly/validators/layout/geo/lonaxis/_gridcolor.py index d520608ebc..e5655d8b64 100644 --- a/plotly/validators/layout/geo/lonaxis/_gridcolor.py +++ b/plotly/validators/layout/geo/lonaxis/_gridcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/geo/lonaxis/_griddash.py b/plotly/validators/layout/geo/lonaxis/_griddash.py index daad35c60f..1cab5a4cc5 100644 --- a/plotly/validators/layout/geo/lonaxis/_griddash.py +++ b/plotly/validators/layout/geo/lonaxis/_griddash.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GriddashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/layout/geo/lonaxis/_gridwidth.py b/plotly/validators/layout/geo/lonaxis/_gridwidth.py index 46e718d98b..a9266cf252 100644 --- a/plotly/validators/layout/geo/lonaxis/_gridwidth.py +++ b/plotly/validators/layout/geo/lonaxis/_gridwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/geo/lonaxis/_range.py b/plotly/validators/layout/geo/lonaxis/_range.py index 4a8612f87d..169b903a61 100644 --- a/plotly/validators/layout/geo/lonaxis/_range.py +++ b/plotly/validators/layout/geo/lonaxis/_range.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/geo/lonaxis/_showgrid.py b/plotly/validators/layout/geo/lonaxis/_showgrid.py index 0d8a64316a..1bac1ec1e9 100644 --- a/plotly/validators/layout/geo/lonaxis/_showgrid.py +++ b/plotly/validators/layout/geo/lonaxis/_showgrid.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/geo/lonaxis/_tick0.py b/plotly/validators/layout/geo/lonaxis/_tick0.py index 0f255e017a..c5be9e4591 100644 --- a/plotly/validators/layout/geo/lonaxis/_tick0.py +++ b/plotly/validators/layout/geo/lonaxis/_tick0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/geo/projection/__init__.py b/plotly/validators/layout/geo/projection/__init__.py index eae069ecb7..0aa5447203 100644 --- a/plotly/validators/layout/geo/projection/__init__.py +++ b/plotly/validators/layout/geo/projection/__init__.py @@ -1,25 +1,15 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._type import TypeValidator - from ._tilt import TiltValidator - from ._scale import ScaleValidator - from ._rotation import RotationValidator - from ._parallels import ParallelsValidator - from ._distance import DistanceValidator -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [], - [ - "._type.TypeValidator", - "._tilt.TiltValidator", - "._scale.ScaleValidator", - "._rotation.RotationValidator", - "._parallels.ParallelsValidator", - "._distance.DistanceValidator", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._type.TypeValidator", + "._tilt.TiltValidator", + "._scale.ScaleValidator", + "._rotation.RotationValidator", + "._parallels.ParallelsValidator", + "._distance.DistanceValidator", + ], +) diff --git a/plotly/validators/layout/geo/projection/_distance.py b/plotly/validators/layout/geo/projection/_distance.py index 7b5b3e92b7..5b35ba6fc6 100644 --- a/plotly/validators/layout/geo/projection/_distance.py +++ b/plotly/validators/layout/geo/projection/_distance.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DistanceValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1.001), **kwargs, diff --git a/plotly/validators/layout/geo/projection/_parallels.py b/plotly/validators/layout/geo/projection/_parallels.py index 675136532c..ffdfdedc8c 100644 --- a/plotly/validators/layout/geo/projection/_parallels.py +++ b/plotly/validators/layout/geo/projection/_parallels.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ParallelsValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/geo/projection/_rotation.py b/plotly/validators/layout/geo/projection/_rotation.py index 551dc6426e..c2aa8db132 100644 --- a/plotly/validators/layout/geo/projection/_rotation.py +++ b/plotly/validators/layout/geo/projection/_rotation.py @@ -1,27 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RotationValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/geo/projection/_scale.py b/plotly/validators/layout/geo/projection/_scale.py index f6b6dfda7b..5b1a12c47f 100644 --- a/plotly/validators/layout/geo/projection/_scale.py +++ b/plotly/validators/layout/geo/projection/_scale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ScaleValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/geo/projection/_tilt.py b/plotly/validators/layout/geo/projection/_tilt.py index 7683108329..46c8ca1242 100644 --- a/plotly/validators/layout/geo/projection/_tilt.py +++ b/plotly/validators/layout/geo/projection/_tilt.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TiltValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/geo/projection/_type.py b/plotly/validators/layout/geo/projection/_type.py index 14a3aa5956..1c1a28b5dc 100644 --- a/plotly/validators/layout/geo/projection/_type.py +++ b/plotly/validators/layout/geo/projection/_type.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/geo/projection/rotation/__init__.py b/plotly/validators/layout/geo/projection/rotation/__init__.py index 2d51bf3599..731481deed 100644 --- a/plotly/validators/layout/geo/projection/rotation/__init__.py +++ b/plotly/validators/layout/geo/projection/rotation/__init__.py @@ -1,15 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._roll.RollValidator", "._lon.LonValidator", "._lat.LatValidator"] +) diff --git a/plotly/validators/layout/geo/projection/rotation/_lat.py b/plotly/validators/layout/geo/projection/rotation/_lat.py index c15cd42f3a..87ebe00a0b 100644 --- a/plotly/validators/layout/geo/projection/rotation/_lat.py +++ b/plotly/validators/layout/geo/projection/rotation/_lat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LatValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/geo/projection/rotation/_lon.py b/plotly/validators/layout/geo/projection/rotation/_lon.py index 4973ac5a87..17d72b4ec9 100644 --- a/plotly/validators/layout/geo/projection/rotation/_lon.py +++ b/plotly/validators/layout/geo/projection/rotation/_lon.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LonValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/geo/projection/rotation/_roll.py b/plotly/validators/layout/geo/projection/rotation/_roll.py index 03d2dc05f1..0ed5d36bec 100644 --- a/plotly/validators/layout/geo/projection/rotation/_roll.py +++ b/plotly/validators/layout/geo/projection/rotation/_roll.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RollValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/grid/__init__.py b/plotly/validators/layout/grid/__init__.py index 2557633ade..87f0927e7d 100644 --- a/plotly/validators/layout/grid/__init__.py +++ b/plotly/validators/layout/grid/__init__.py @@ -1,37 +1,21 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yside import YsideValidator - from ._ygap import YgapValidator - from ._yaxes import YaxesValidator - from ._xside import XsideValidator - from ._xgap import XgapValidator - from ._xaxes import XaxesValidator - from ._subplots import SubplotsValidator - from ._rows import RowsValidator - from ._roworder import RoworderValidator - from ._pattern import PatternValidator - from ._domain import DomainValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/grid/_columns.py b/plotly/validators/layout/grid/_columns.py index b569c8c048..18e3b088d1 100644 --- a/plotly/validators/layout/grid/_columns.py +++ b/plotly/validators/layout/grid/_columns.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColumnsValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/grid/_domain.py b/plotly/validators/layout/grid/_domain.py index 522a53309c..e84da358ee 100644 --- a/plotly/validators/layout/grid/_domain.py +++ b/plotly/validators/layout/grid/_domain.py @@ -1,25 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/grid/_pattern.py b/plotly/validators/layout/grid/_pattern.py index ee91ab4d5c..fa1117f6b7 100644 --- a/plotly/validators/layout/grid/_pattern.py +++ b/plotly/validators/layout/grid/_pattern.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PatternValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["independent", "coupled"]), **kwargs, diff --git a/plotly/validators/layout/grid/_roworder.py b/plotly/validators/layout/grid/_roworder.py index 7bd6a4c282..a8d3bc6393 100644 --- a/plotly/validators/layout/grid/_roworder.py +++ b/plotly/validators/layout/grid/_roworder.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RoworderValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["top to bottom", "bottom to top"]), **kwargs, diff --git a/plotly/validators/layout/grid/_rows.py b/plotly/validators/layout/grid/_rows.py index 0341d1b78b..e2bef5b2f5 100644 --- a/plotly/validators/layout/grid/_rows.py +++ b/plotly/validators/layout/grid/_rows.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RowsValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/grid/_subplots.py b/plotly/validators/layout/grid/_subplots.py index a8a98f6aec..5993911b06 100644 --- a/plotly/validators/layout/grid/_subplots.py +++ b/plotly/validators/layout/grid/_subplots.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SubplotsValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, dimensions=kwargs.pop("dimensions", 2), edit_type=kwargs.pop("edit_type", "plot"), free_length=kwargs.pop("free_length", True), diff --git a/plotly/validators/layout/grid/_xaxes.py b/plotly/validators/layout/grid/_xaxes.py index dc4d9ce9a0..7dd4a02974 100644 --- a/plotly/validators/layout/grid/_xaxes.py +++ b/plotly/validators/layout/grid/_xaxes.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XaxesValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), free_length=kwargs.pop("free_length", True), items=kwargs.pop( diff --git a/plotly/validators/layout/grid/_xgap.py b/plotly/validators/layout/grid/_xgap.py index ef5d0a1caa..209fa3ee63 100644 --- a/plotly/validators/layout/grid/_xgap.py +++ b/plotly/validators/layout/grid/_xgap.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XgapValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/grid/_xside.py b/plotly/validators/layout/grid/_xside.py index ec94ce1a4f..c14df4fe2d 100644 --- a/plotly/validators/layout/grid/_xside.py +++ b/plotly/validators/layout/grid/_xside.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XsideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["bottom", "bottom plot", "top plot", "top"]), **kwargs, diff --git a/plotly/validators/layout/grid/_yaxes.py b/plotly/validators/layout/grid/_yaxes.py index 8c91b5c496..91e26363df 100644 --- a/plotly/validators/layout/grid/_yaxes.py +++ b/plotly/validators/layout/grid/_yaxes.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YaxesValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), free_length=kwargs.pop("free_length", True), items=kwargs.pop( diff --git a/plotly/validators/layout/grid/_ygap.py b/plotly/validators/layout/grid/_ygap.py index 968020d814..493407e589 100644 --- a/plotly/validators/layout/grid/_ygap.py +++ b/plotly/validators/layout/grid/_ygap.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YgapValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/grid/_yside.py b/plotly/validators/layout/grid/_yside.py index bdf59a4e6a..7733da7ce5 100644 --- a/plotly/validators/layout/grid/_yside.py +++ b/plotly/validators/layout/grid/_yside.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YsideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["left", "left plot", "right plot", "right"]), **kwargs, diff --git a/plotly/validators/layout/grid/domain/__init__.py b/plotly/validators/layout/grid/domain/__init__.py index 6b63513634..29cce5a77b 100644 --- a/plotly/validators/layout/grid/domain/__init__.py +++ b/plotly/validators/layout/grid/domain/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._y.YValidator", "._x.XValidator"] +) diff --git a/plotly/validators/layout/grid/domain/_x.py b/plotly/validators/layout/grid/domain/_x.py index 8811913051..c63112563a 100644 --- a/plotly/validators/layout/grid/domain/_x.py +++ b/plotly/validators/layout/grid/domain/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/grid/domain/_y.py b/plotly/validators/layout/grid/domain/_y.py index c03f5a032c..a2a1f3e8be 100644 --- a/plotly/validators/layout/grid/domain/_y.py +++ b/plotly/validators/layout/grid/domain/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/hoverlabel/__init__.py b/plotly/validators/layout/hoverlabel/__init__.py index 1d84805b7f..039fdeadc7 100644 --- a/plotly/validators/layout/hoverlabel/__init__.py +++ b/plotly/validators/layout/hoverlabel/__init__.py @@ -1,25 +1,15 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelength import NamelengthValidator - from ._grouptitlefont import GrouptitlefontValidator - from ._font import FontValidator - from ._bordercolor import BordercolorValidator - from ._bgcolor import BgcolorValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelength.NamelengthValidator", + "._grouptitlefont.GrouptitlefontValidator", + "._font.FontValidator", + "._bordercolor.BordercolorValidator", + "._bgcolor.BgcolorValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/layout/hoverlabel/_align.py b/plotly/validators/layout/hoverlabel/_align.py index f11bfaf783..5adb879f63 100644 --- a/plotly/validators/layout/hoverlabel/_align.py +++ b/plotly/validators/layout/hoverlabel/_align.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), **kwargs, diff --git a/plotly/validators/layout/hoverlabel/_bgcolor.py b/plotly/validators/layout/hoverlabel/_bgcolor.py index 2075a389cc..0d80ee207e 100644 --- a/plotly/validators/layout/hoverlabel/_bgcolor.py +++ b/plotly/validators/layout/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/hoverlabel/_bordercolor.py b/plotly/validators/layout/hoverlabel/_bordercolor.py index b07470a90c..6ba61129f6 100644 --- a/plotly/validators/layout/hoverlabel/_bordercolor.py +++ b/plotly/validators/layout/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/hoverlabel/_font.py b/plotly/validators/layout/hoverlabel/_font.py index 7461f3e978..f51e17cb78 100644 --- a/plotly/validators/layout/hoverlabel/_font.py +++ b/plotly/validators/layout/hoverlabel/_font.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/hoverlabel/_grouptitlefont.py b/plotly/validators/layout/hoverlabel/_grouptitlefont.py index bc9cf9f867..32991309d1 100644 --- a/plotly/validators/layout/hoverlabel/_grouptitlefont.py +++ b/plotly/validators/layout/hoverlabel/_grouptitlefont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GrouptitlefontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Grouptitlefont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/hoverlabel/_namelength.py b/plotly/validators/layout/hoverlabel/_namelength.py index 04a545415a..48a7d0428c 100644 --- a/plotly/validators/layout/hoverlabel/_namelength.py +++ b/plotly/validators/layout/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), **kwargs, diff --git a/plotly/validators/layout/hoverlabel/font/__init__.py b/plotly/validators/layout/hoverlabel/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/hoverlabel/font/__init__.py +++ b/plotly/validators/layout/hoverlabel/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/hoverlabel/font/_color.py b/plotly/validators/layout/hoverlabel/font/_color.py index e72d921a12..e9a32543f8 100644 --- a/plotly/validators/layout/hoverlabel/font/_color.py +++ b/plotly/validators/layout/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/hoverlabel/font/_family.py b/plotly/validators/layout/hoverlabel/font/_family.py index 7d65ed6605..062b1ad264 100644 --- a/plotly/validators/layout/hoverlabel/font/_family.py +++ b/plotly/validators/layout/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/hoverlabel/font/_lineposition.py b/plotly/validators/layout/hoverlabel/font/_lineposition.py index fd25fa9663..d04edeb44c 100644 --- a/plotly/validators/layout/hoverlabel/font/_lineposition.py +++ b/plotly/validators/layout/hoverlabel/font/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/hoverlabel/font/_shadow.py b/plotly/validators/layout/hoverlabel/font/_shadow.py index 1ab11432f4..931d965637 100644 --- a/plotly/validators/layout/hoverlabel/font/_shadow.py +++ b/plotly/validators/layout/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/hoverlabel/font/_size.py b/plotly/validators/layout/hoverlabel/font/_size.py index 02f4523cc1..d977cff44c 100644 --- a/plotly/validators/layout/hoverlabel/font/_size.py +++ b/plotly/validators/layout/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/hoverlabel/font/_style.py b/plotly/validators/layout/hoverlabel/font/_style.py index 4d3c30dc9e..a7bc6ff79f 100644 --- a/plotly/validators/layout/hoverlabel/font/_style.py +++ b/plotly/validators/layout/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/hoverlabel/font/_textcase.py b/plotly/validators/layout/hoverlabel/font/_textcase.py index 8c03a9e5c0..1ed44ae05b 100644 --- a/plotly/validators/layout/hoverlabel/font/_textcase.py +++ b/plotly/validators/layout/hoverlabel/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/hoverlabel/font/_variant.py b/plotly/validators/layout/hoverlabel/font/_variant.py index 4ce5cd733e..254357769d 100644 --- a/plotly/validators/layout/hoverlabel/font/_variant.py +++ b/plotly/validators/layout/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/hoverlabel/font/_weight.py b/plotly/validators/layout/hoverlabel/font/_weight.py index ed8f9ffa4b..2c2c33587c 100644 --- a/plotly/validators/layout/hoverlabel/font/_weight.py +++ b/plotly/validators/layout/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/hoverlabel/grouptitlefont/__init__.py b/plotly/validators/layout/hoverlabel/grouptitlefont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/hoverlabel/grouptitlefont/__init__.py +++ b/plotly/validators/layout/hoverlabel/grouptitlefont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/hoverlabel/grouptitlefont/_color.py b/plotly/validators/layout/hoverlabel/grouptitlefont/_color.py index c04bbbeb00..f430a00c5e 100644 --- a/plotly/validators/layout/hoverlabel/grouptitlefont/_color.py +++ b/plotly/validators/layout/hoverlabel/grouptitlefont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/hoverlabel/grouptitlefont/_family.py b/plotly/validators/layout/hoverlabel/grouptitlefont/_family.py index 1b70369225..805716cda7 100644 --- a/plotly/validators/layout/hoverlabel/grouptitlefont/_family.py +++ b/plotly/validators/layout/hoverlabel/grouptitlefont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/hoverlabel/grouptitlefont/_lineposition.py b/plotly/validators/layout/hoverlabel/grouptitlefont/_lineposition.py index a865819c51..3af740b181 100644 --- a/plotly/validators/layout/hoverlabel/grouptitlefont/_lineposition.py +++ b/plotly/validators/layout/hoverlabel/grouptitlefont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/hoverlabel/grouptitlefont/_shadow.py b/plotly/validators/layout/hoverlabel/grouptitlefont/_shadow.py index ed31049ffa..a87ca678d5 100644 --- a/plotly/validators/layout/hoverlabel/grouptitlefont/_shadow.py +++ b/plotly/validators/layout/hoverlabel/grouptitlefont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/hoverlabel/grouptitlefont/_size.py b/plotly/validators/layout/hoverlabel/grouptitlefont/_size.py index 6b2d3454ee..ce30518aef 100644 --- a/plotly/validators/layout/hoverlabel/grouptitlefont/_size.py +++ b/plotly/validators/layout/hoverlabel/grouptitlefont/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/hoverlabel/grouptitlefont/_style.py b/plotly/validators/layout/hoverlabel/grouptitlefont/_style.py index 4f943802c9..f6af9caddb 100644 --- a/plotly/validators/layout/hoverlabel/grouptitlefont/_style.py +++ b/plotly/validators/layout/hoverlabel/grouptitlefont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/hoverlabel/grouptitlefont/_textcase.py b/plotly/validators/layout/hoverlabel/grouptitlefont/_textcase.py index 70046ab18e..7ff51237e5 100644 --- a/plotly/validators/layout/hoverlabel/grouptitlefont/_textcase.py +++ b/plotly/validators/layout/hoverlabel/grouptitlefont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/hoverlabel/grouptitlefont/_variant.py b/plotly/validators/layout/hoverlabel/grouptitlefont/_variant.py index 22f8d75e81..f74813b867 100644 --- a/plotly/validators/layout/hoverlabel/grouptitlefont/_variant.py +++ b/plotly/validators/layout/hoverlabel/grouptitlefont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/hoverlabel/grouptitlefont/_weight.py b/plotly/validators/layout/hoverlabel/grouptitlefont/_weight.py index 133812836f..5e609db12b 100644 --- a/plotly/validators/layout/hoverlabel/grouptitlefont/_weight.py +++ b/plotly/validators/layout/hoverlabel/grouptitlefont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/image/__init__.py b/plotly/validators/layout/image/__init__.py index 2adb6f6695..3049d482d7 100644 --- a/plotly/validators/layout/image/__init__.py +++ b/plotly/validators/layout/image/__init__.py @@ -1,43 +1,24 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._visible import VisibleValidator - from ._templateitemname import TemplateitemnameValidator - from ._source import SourceValidator - from ._sizing import SizingValidator - from ._sizey import SizeyValidator - from ._sizex import SizexValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/image/_layer.py b/plotly/validators/layout/image/_layer.py index d36dfb8b44..7d40c814db 100644 --- a/plotly/validators/layout/image/_layer.py +++ b/plotly/validators/layout/image/_layer.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LayerValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop("values", ["below", "above"]), **kwargs, diff --git a/plotly/validators/layout/image/_name.py b/plotly/validators/layout/image/_name.py index a641345064..5c11cbea0d 100644 --- a/plotly/validators/layout/image/_name.py +++ b/plotly/validators/layout/image/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/image/_opacity.py b/plotly/validators/layout/image/_opacity.py index 56c53e237c..c70c42d490 100644 --- a/plotly/validators/layout/image/_opacity.py +++ b/plotly/validators/layout/image/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/image/_sizex.py b/plotly/validators/layout/image/_sizex.py index f0f2be30ce..4a68535896 100644 --- a/plotly/validators/layout/image/_sizex.py +++ b/plotly/validators/layout/image/_sizex.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizexValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/image/_sizey.py b/plotly/validators/layout/image/_sizey.py index 66d6ea2f8b..26ed7bb3ea 100644 --- a/plotly/validators/layout/image/_sizey.py +++ b/plotly/validators/layout/image/_sizey.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeyValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/image/_sizing.py b/plotly/validators/layout/image/_sizing.py index 8d51ec7bc8..c4d83f29b5 100644 --- a/plotly/validators/layout/image/_sizing.py +++ b/plotly/validators/layout/image/_sizing.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizingValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop("values", ["fill", "contain", "stretch"]), **kwargs, diff --git a/plotly/validators/layout/image/_source.py b/plotly/validators/layout/image/_source.py index 8157544de1..6260d48e42 100644 --- a/plotly/validators/layout/image/_source.py +++ b/plotly/validators/layout/image/_source.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SourceValidator(_plotly_utils.basevalidators.ImageUriValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/image/_templateitemname.py b/plotly/validators/layout/image/_templateitemname.py index 4ac45d2087..650c307e5c 100644 --- a/plotly/validators/layout/image/_templateitemname.py +++ b/plotly/validators/layout/image/_templateitemname.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/image/_visible.py b/plotly/validators/layout/image/_visible.py index 8132fc0ebc..eeb48c3ff6 100644 --- a/plotly/validators/layout/image/_visible.py +++ b/plotly/validators/layout/image/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/image/_x.py b/plotly/validators/layout/image/_x.py index 20ae64db88..66b7f3483c 100644 --- a/plotly/validators/layout/image/_x.py +++ b/plotly/validators/layout/image/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/image/_xanchor.py b/plotly/validators/layout/image/_xanchor.py index d7f787e510..ecbd0f92b2 100644 --- a/plotly/validators/layout/image/_xanchor.py +++ b/plotly/validators/layout/image/_xanchor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/layout/image/_xref.py b/plotly/validators/layout/image/_xref.py index a12b526c76..4f0bff158e 100644 --- a/plotly/validators/layout/image/_xref.py +++ b/plotly/validators/layout/image/_xref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop( "values", ["paper", "/^x([2-9]|[1-9][0-9]+)?( domain)?$/"] diff --git a/plotly/validators/layout/image/_y.py b/plotly/validators/layout/image/_y.py index 18cd74f774..c45bfa18f9 100644 --- a/plotly/validators/layout/image/_y.py +++ b/plotly/validators/layout/image/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/image/_yanchor.py b/plotly/validators/layout/image/_yanchor.py index 181a1edb8a..e36015fe21 100644 --- a/plotly/validators/layout/image/_yanchor.py +++ b/plotly/validators/layout/image/_yanchor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/layout/image/_yref.py b/plotly/validators/layout/image/_yref.py index aa2b8ecc60..370c2b79c0 100644 --- a/plotly/validators/layout/image/_yref.py +++ b/plotly/validators/layout/image/_yref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop( "values", ["paper", "/^y([2-9]|[1-9][0-9]+)?( domain)?$/"] diff --git a/plotly/validators/layout/legend/__init__.py b/plotly/validators/layout/legend/__init__.py index 64c39fe494..1dd1380432 100644 --- a/plotly/validators/layout/legend/__init__.py +++ b/plotly/validators/layout/legend/__init__.py @@ -1,65 +1,35 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._visible import VisibleValidator - from ._valign import ValignValidator - from ._uirevision import UirevisionValidator - from ._traceorder import TraceorderValidator - from ._tracegroupgap import TracegroupgapValidator - from ._title import TitleValidator - from ._orientation import OrientationValidator - from ._itemwidth import ItemwidthValidator - from ._itemsizing import ItemsizingValidator - from ._itemdoubleclick import ItemdoubleclickValidator - from ._itemclick import ItemclickValidator - from ._indentation import IndentationValidator - from ._grouptitlefont import GrouptitlefontValidator - from ._groupclick import GroupclickValidator - from ._font import FontValidator - from ._entrywidthmode import EntrywidthmodeValidator - from ._entrywidth import EntrywidthValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/legend/_bgcolor.py b/plotly/validators/layout/legend/_bgcolor.py index 3f4eb5149a..73c5477383 100644 --- a/plotly/validators/layout/legend/_bgcolor.py +++ b/plotly/validators/layout/legend/_bgcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), **kwargs, ) diff --git a/plotly/validators/layout/legend/_bordercolor.py b/plotly/validators/layout/legend/_bordercolor.py index f9073070c0..afdc3b3413 100644 --- a/plotly/validators/layout/legend/_bordercolor.py +++ b/plotly/validators/layout/legend/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), **kwargs, ) diff --git a/plotly/validators/layout/legend/_borderwidth.py b/plotly/validators/layout/legend/_borderwidth.py index a77aa60099..e85b754841 100644 --- a/plotly/validators/layout/legend/_borderwidth.py +++ b/plotly/validators/layout/legend/_borderwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/legend/_entrywidth.py b/plotly/validators/layout/legend/_entrywidth.py index 32ca023fe5..aea4db2d86 100644 --- a/plotly/validators/layout/legend/_entrywidth.py +++ b/plotly/validators/layout/legend/_entrywidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EntrywidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/legend/_entrywidthmode.py b/plotly/validators/layout/legend/_entrywidthmode.py index ed2cf8476a..8500e78075 100644 --- a/plotly/validators/layout/legend/_entrywidthmode.py +++ b/plotly/validators/layout/legend/_entrywidthmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EntrywidthmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/layout/legend/_font.py b/plotly/validators/layout/legend/_font.py index 9ca1d9e5e4..61525f911b 100644 --- a/plotly/validators/layout/legend/_font.py +++ b/plotly/validators/layout/legend/_font.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/legend/_groupclick.py b/plotly/validators/layout/legend/_groupclick.py index 2ff9c0b622..57b6c1d72f 100644 --- a/plotly/validators/layout/legend/_groupclick.py +++ b/plotly/validators/layout/legend/_groupclick.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GroupclickValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), values=kwargs.pop("values", ["toggleitem", "togglegroup"]), **kwargs, diff --git a/plotly/validators/layout/legend/_grouptitlefont.py b/plotly/validators/layout/legend/_grouptitlefont.py index 6cfee9e7ac..239057903b 100644 --- a/plotly/validators/layout/legend/_grouptitlefont.py +++ b/plotly/validators/layout/legend/_grouptitlefont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GrouptitlefontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Grouptitlefont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/legend/_indentation.py b/plotly/validators/layout/legend/_indentation.py index c5244eafbd..6c80a7e5fb 100644 --- a/plotly/validators/layout/legend/_indentation.py +++ b/plotly/validators/layout/legend/_indentation.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IndentationValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), min=kwargs.pop("min", -15), **kwargs, diff --git a/plotly/validators/layout/legend/_itemclick.py b/plotly/validators/layout/legend/_itemclick.py index 107b0fda93..ef74ba481d 100644 --- a/plotly/validators/layout/legend/_itemclick.py +++ b/plotly/validators/layout/legend/_itemclick.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ItemclickValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), values=kwargs.pop("values", ["toggle", "toggleothers", False]), **kwargs, diff --git a/plotly/validators/layout/legend/_itemdoubleclick.py b/plotly/validators/layout/legend/_itemdoubleclick.py index db1c42d0f5..6c5a870b2f 100644 --- a/plotly/validators/layout/legend/_itemdoubleclick.py +++ b/plotly/validators/layout/legend/_itemdoubleclick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ItemdoubleclickValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), values=kwargs.pop("values", ["toggle", "toggleothers", False]), **kwargs, diff --git a/plotly/validators/layout/legend/_itemsizing.py b/plotly/validators/layout/legend/_itemsizing.py index 6242230263..08725b3979 100644 --- a/plotly/validators/layout/legend/_itemsizing.py +++ b/plotly/validators/layout/legend/_itemsizing.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ItemsizingValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), values=kwargs.pop("values", ["trace", "constant"]), **kwargs, diff --git a/plotly/validators/layout/legend/_itemwidth.py b/plotly/validators/layout/legend/_itemwidth.py index 126c374267..89c66a8165 100644 --- a/plotly/validators/layout/legend/_itemwidth.py +++ b/plotly/validators/layout/legend/_itemwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ItemwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), min=kwargs.pop("min", 30), **kwargs, diff --git a/plotly/validators/layout/legend/_orientation.py b/plotly/validators/layout/legend/_orientation.py index 9cbb38bdf2..61374efe48 100644 --- a/plotly/validators/layout/legend/_orientation.py +++ b/plotly/validators/layout/legend/_orientation.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), values=kwargs.pop("values", ["v", "h"]), **kwargs, diff --git a/plotly/validators/layout/legend/_title.py b/plotly/validators/layout/legend/_title.py index 25dc83b365..3cc4a08a6a 100644 --- a/plotly/validators/layout/legend/_title.py +++ b/plotly/validators/layout/legend/_title.py @@ -1,29 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/legend/_tracegroupgap.py b/plotly/validators/layout/legend/_tracegroupgap.py index f3f59779b6..690ecf4517 100644 --- a/plotly/validators/layout/legend/_tracegroupgap.py +++ b/plotly/validators/layout/legend/_tracegroupgap.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TracegroupgapValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/legend/_traceorder.py b/plotly/validators/layout/legend/_traceorder.py index 96968fcb53..a5e6f8a85f 100644 --- a/plotly/validators/layout/legend/_traceorder.py +++ b/plotly/validators/layout/legend/_traceorder.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TraceorderValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), extras=kwargs.pop("extras", ["normal"]), flags=kwargs.pop("flags", ["reversed", "grouped"]), diff --git a/plotly/validators/layout/legend/_uirevision.py b/plotly/validators/layout/legend/_uirevision.py index a6f374e4e2..a38b988a70 100644 --- a/plotly/validators/layout/legend/_uirevision.py +++ b/plotly/validators/layout/legend/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/legend/_valign.py b/plotly/validators/layout/legend/_valign.py index 34d2225f69..7add445c66 100644 --- a/plotly/validators/layout/legend/_valign.py +++ b/plotly/validators/layout/legend/_valign.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/layout/legend/_visible.py b/plotly/validators/layout/legend/_visible.py index 59485f0dff..f6acdad5ba 100644 --- a/plotly/validators/layout/legend/_visible.py +++ b/plotly/validators/layout/legend/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), **kwargs, ) diff --git a/plotly/validators/layout/legend/_x.py b/plotly/validators/layout/legend/_x.py index 42aa1996ff..b7cbb2ba55 100644 --- a/plotly/validators/layout/legend/_x.py +++ b/plotly/validators/layout/legend/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), **kwargs, ) diff --git a/plotly/validators/layout/legend/_xanchor.py b/plotly/validators/layout/legend/_xanchor.py index b56cc4642e..3dc24720df 100644 --- a/plotly/validators/layout/legend/_xanchor.py +++ b/plotly/validators/layout/legend/_xanchor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), values=kwargs.pop("values", ["auto", "left", "center", "right"]), **kwargs, diff --git a/plotly/validators/layout/legend/_xref.py b/plotly/validators/layout/legend/_xref.py index 5536db69b1..862d52dbbf 100644 --- a/plotly/validators/layout/legend/_xref.py +++ b/plotly/validators/layout/legend/_xref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "layoutstyle"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/layout/legend/_y.py b/plotly/validators/layout/legend/_y.py index 4dc8d92a6f..76fc0c0d5d 100644 --- a/plotly/validators/layout/legend/_y.py +++ b/plotly/validators/layout/legend/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), **kwargs, ) diff --git a/plotly/validators/layout/legend/_yanchor.py b/plotly/validators/layout/legend/_yanchor.py index b1ba732517..9ff5561b46 100644 --- a/plotly/validators/layout/legend/_yanchor.py +++ b/plotly/validators/layout/legend/_yanchor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), values=kwargs.pop("values", ["auto", "top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/layout/legend/_yref.py b/plotly/validators/layout/legend/_yref.py index 2ab188db86..0b368151f5 100644 --- a/plotly/validators/layout/legend/_yref.py +++ b/plotly/validators/layout/legend/_yref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "layoutstyle"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/layout/legend/font/__init__.py b/plotly/validators/layout/legend/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/legend/font/__init__.py +++ b/plotly/validators/layout/legend/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/legend/font/_color.py b/plotly/validators/layout/legend/font/_color.py index ea6a68fee0..bb8395030d 100644 --- a/plotly/validators/layout/legend/font/_color.py +++ b/plotly/validators/layout/legend/font/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), **kwargs, ) diff --git a/plotly/validators/layout/legend/font/_family.py b/plotly/validators/layout/legend/font/_family.py index 210f8ab8f5..9d28e5de5f 100644 --- a/plotly/validators/layout/legend/font/_family.py +++ b/plotly/validators/layout/legend/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/legend/font/_lineposition.py b/plotly/validators/layout/legend/font/_lineposition.py index fae2867de4..6a05af2b54 100644 --- a/plotly/validators/layout/legend/font/_lineposition.py +++ b/plotly/validators/layout/legend/font/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/legend/font/_shadow.py b/plotly/validators/layout/legend/font/_shadow.py index 9294bd2b12..5e9015f9d1 100644 --- a/plotly/validators/layout/legend/font/_shadow.py +++ b/plotly/validators/layout/legend/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), **kwargs, ) diff --git a/plotly/validators/layout/legend/font/_size.py b/plotly/validators/layout/legend/font/_size.py index 01966d9353..11ad9faccd 100644 --- a/plotly/validators/layout/legend/font/_size.py +++ b/plotly/validators/layout/legend/font/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/legend/font/_style.py b/plotly/validators/layout/legend/font/_style.py index efc057b483..3f836eb80b 100644 --- a/plotly/validators/layout/legend/font/_style.py +++ b/plotly/validators/layout/legend/font/_style.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/legend/font/_textcase.py b/plotly/validators/layout/legend/font/_textcase.py index 0e5924d767..a5a75ad2ec 100644 --- a/plotly/validators/layout/legend/font/_textcase.py +++ b/plotly/validators/layout/legend/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/legend/font/_variant.py b/plotly/validators/layout/legend/font/_variant.py index 2b04b36786..45caf5b65b 100644 --- a/plotly/validators/layout/legend/font/_variant.py +++ b/plotly/validators/layout/legend/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/legend/font/_weight.py b/plotly/validators/layout/legend/font/_weight.py index ca77f233e8..4126e459a9 100644 --- a/plotly/validators/layout/legend/font/_weight.py +++ b/plotly/validators/layout/legend/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/legend/grouptitlefont/__init__.py b/plotly/validators/layout/legend/grouptitlefont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/legend/grouptitlefont/__init__.py +++ b/plotly/validators/layout/legend/grouptitlefont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/legend/grouptitlefont/_color.py b/plotly/validators/layout/legend/grouptitlefont/_color.py index f9a43a4e39..fb7bc057b2 100644 --- a/plotly/validators/layout/legend/grouptitlefont/_color.py +++ b/plotly/validators/layout/legend/grouptitlefont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), **kwargs, ) diff --git a/plotly/validators/layout/legend/grouptitlefont/_family.py b/plotly/validators/layout/legend/grouptitlefont/_family.py index ad291ffbf3..caa766b659 100644 --- a/plotly/validators/layout/legend/grouptitlefont/_family.py +++ b/plotly/validators/layout/legend/grouptitlefont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/legend/grouptitlefont/_lineposition.py b/plotly/validators/layout/legend/grouptitlefont/_lineposition.py index 8dcdaf4bf8..cf2fa6e02d 100644 --- a/plotly/validators/layout/legend/grouptitlefont/_lineposition.py +++ b/plotly/validators/layout/legend/grouptitlefont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/legend/grouptitlefont/_shadow.py b/plotly/validators/layout/legend/grouptitlefont/_shadow.py index b25dae8b93..695492bcf3 100644 --- a/plotly/validators/layout/legend/grouptitlefont/_shadow.py +++ b/plotly/validators/layout/legend/grouptitlefont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), **kwargs, ) diff --git a/plotly/validators/layout/legend/grouptitlefont/_size.py b/plotly/validators/layout/legend/grouptitlefont/_size.py index 31b4d96e0c..38685499da 100644 --- a/plotly/validators/layout/legend/grouptitlefont/_size.py +++ b/plotly/validators/layout/legend/grouptitlefont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/legend/grouptitlefont/_style.py b/plotly/validators/layout/legend/grouptitlefont/_style.py index 5c7853b299..622fb81de6 100644 --- a/plotly/validators/layout/legend/grouptitlefont/_style.py +++ b/plotly/validators/layout/legend/grouptitlefont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/legend/grouptitlefont/_textcase.py b/plotly/validators/layout/legend/grouptitlefont/_textcase.py index 26840847c2..a644c94722 100644 --- a/plotly/validators/layout/legend/grouptitlefont/_textcase.py +++ b/plotly/validators/layout/legend/grouptitlefont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/legend/grouptitlefont/_variant.py b/plotly/validators/layout/legend/grouptitlefont/_variant.py index d37c051b53..4db924378e 100644 --- a/plotly/validators/layout/legend/grouptitlefont/_variant.py +++ b/plotly/validators/layout/legend/grouptitlefont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/legend/grouptitlefont/_weight.py b/plotly/validators/layout/legend/grouptitlefont/_weight.py index cd3f26ff39..20c5db6b77 100644 --- a/plotly/validators/layout/legend/grouptitlefont/_weight.py +++ b/plotly/validators/layout/legend/grouptitlefont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/legend/title/__init__.py b/plotly/validators/layout/legend/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/layout/legend/title/__init__.py +++ b/plotly/validators/layout/legend/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/layout/legend/title/_font.py b/plotly/validators/layout/legend/title/_font.py index 06c35bdf73..82b65460b1 100644 --- a/plotly/validators/layout/legend/title/_font.py +++ b/plotly/validators/layout/legend/title/_font.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/legend/title/_side.py b/plotly/validators/layout/legend/title/_side.py index 42178ee3fe..b94c3b170c 100644 --- a/plotly/validators/layout/legend/title/_side.py +++ b/plotly/validators/layout/legend/title/_side.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), values=kwargs.pop( "values", ["top", "left", "top left", "top center", "top right"] diff --git a/plotly/validators/layout/legend/title/_text.py b/plotly/validators/layout/legend/title/_text.py index 8cbb6a6429..7870b255aa 100644 --- a/plotly/validators/layout/legend/title/_text.py +++ b/plotly/validators/layout/legend/title/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), **kwargs, ) diff --git a/plotly/validators/layout/legend/title/font/__init__.py b/plotly/validators/layout/legend/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/legend/title/font/__init__.py +++ b/plotly/validators/layout/legend/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/legend/title/font/_color.py b/plotly/validators/layout/legend/title/font/_color.py index 8f7592de6f..78fb9edb75 100644 --- a/plotly/validators/layout/legend/title/font/_color.py +++ b/plotly/validators/layout/legend/title/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), **kwargs, ) diff --git a/plotly/validators/layout/legend/title/font/_family.py b/plotly/validators/layout/legend/title/font/_family.py index 651858af1f..6b4baea3da 100644 --- a/plotly/validators/layout/legend/title/font/_family.py +++ b/plotly/validators/layout/legend/title/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/legend/title/font/_lineposition.py b/plotly/validators/layout/legend/title/font/_lineposition.py index e7365f4324..8f559fa5df 100644 --- a/plotly/validators/layout/legend/title/font/_lineposition.py +++ b/plotly/validators/layout/legend/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/legend/title/font/_shadow.py b/plotly/validators/layout/legend/title/font/_shadow.py index 45f0c5cd5b..d919517375 100644 --- a/plotly/validators/layout/legend/title/font/_shadow.py +++ b/plotly/validators/layout/legend/title/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), **kwargs, ) diff --git a/plotly/validators/layout/legend/title/font/_size.py b/plotly/validators/layout/legend/title/font/_size.py index f4118a7ac5..f2dad2d5fc 100644 --- a/plotly/validators/layout/legend/title/font/_size.py +++ b/plotly/validators/layout/legend/title/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/legend/title/font/_style.py b/plotly/validators/layout/legend/title/font/_style.py index d9060d32fb..4fd6fcf6c6 100644 --- a/plotly/validators/layout/legend/title/font/_style.py +++ b/plotly/validators/layout/legend/title/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/legend/title/font/_textcase.py b/plotly/validators/layout/legend/title/font/_textcase.py index 7d11b19beb..370b3d5acd 100644 --- a/plotly/validators/layout/legend/title/font/_textcase.py +++ b/plotly/validators/layout/legend/title/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/legend/title/font/_variant.py b/plotly/validators/layout/legend/title/font/_variant.py index df328ff10e..b4f0ca939c 100644 --- a/plotly/validators/layout/legend/title/font/_variant.py +++ b/plotly/validators/layout/legend/title/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/legend/title/font/_weight.py b/plotly/validators/layout/legend/title/font/_weight.py index 4bb55053e7..fddad5ffb8 100644 --- a/plotly/validators/layout/legend/title/font/_weight.py +++ b/plotly/validators/layout/legend/title/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "legend"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/map/__init__.py b/plotly/validators/layout/map/__init__.py index 13714b4f18..a9910810fb 100644 --- a/plotly/validators/layout/map/__init__.py +++ b/plotly/validators/layout/map/__init__.py @@ -1,33 +1,19 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zoom import ZoomValidator - from ._uirevision import UirevisionValidator - from ._style import StyleValidator - from ._pitch import PitchValidator - from ._layerdefaults import LayerdefaultsValidator - from ._layers import LayersValidator - from ._domain import DomainValidator - from ._center import CenterValidator - from ._bounds import BoundsValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/map/_bearing.py b/plotly/validators/layout/map/_bearing.py index 5190be3314..641db131be 100644 --- a/plotly/validators/layout/map/_bearing.py +++ b/plotly/validators/layout/map/_bearing.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BearingValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/map/_bounds.py b/plotly/validators/layout/map/_bounds.py index 90a912790d..de4763774e 100644 --- a/plotly/validators/layout/map/_bounds.py +++ b/plotly/validators/layout/map/_bounds.py @@ -1,31 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BoundsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/map/_center.py b/plotly/validators/layout/map/_center.py index 8c4eb4cdde..befaff458e 100644 --- a/plotly/validators/layout/map/_center.py +++ b/plotly/validators/layout/map/_center.py @@ -1,21 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CenterValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/map/_domain.py b/plotly/validators/layout/map/_domain.py index 1816945fce..6e53ab4742 100644 --- a/plotly/validators/layout/map/_domain.py +++ b/plotly/validators/layout/map/_domain.py @@ -1,27 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/map/_layerdefaults.py b/plotly/validators/layout/map/_layerdefaults.py index 9ab62ff5bf..6ca2e95511 100644 --- a/plotly/validators/layout/map/_layerdefaults.py +++ b/plotly/validators/layout/map/_layerdefaults.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LayerdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Layer"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/map/_layers.py b/plotly/validators/layout/map/_layers.py index 9ace253977..a730cff447 100644 --- a/plotly/validators/layout/map/_layers.py +++ b/plotly/validators/layout/map/_layers.py @@ -1,126 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LayersValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/map/_pitch.py b/plotly/validators/layout/map/_pitch.py index 33e2aafa69..e69d0c70c0 100644 --- a/plotly/validators/layout/map/_pitch.py +++ b/plotly/validators/layout/map/_pitch.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PitchValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/map/_style.py b/plotly/validators/layout/map/_style.py index 8b84e2be47..10027b2e82 100644 --- a/plotly/validators/layout/map/_style.py +++ b/plotly/validators/layout/map/_style.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/map/_uirevision.py b/plotly/validators/layout/map/_uirevision.py index e859dacb58..a7a28d1a7a 100644 --- a/plotly/validators/layout/map/_uirevision.py +++ b/plotly/validators/layout/map/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/map/_zoom.py b/plotly/validators/layout/map/_zoom.py index b9916f3172..b6a6a0b2d9 100644 --- a/plotly/validators/layout/map/_zoom.py +++ b/plotly/validators/layout/map/_zoom.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZoomValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/map/bounds/__init__.py b/plotly/validators/layout/map/bounds/__init__.py index c07c964cd6..fe63c18499 100644 --- a/plotly/validators/layout/map/bounds/__init__.py +++ b/plotly/validators/layout/map/bounds/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._west import WestValidator - from ._south import SouthValidator - from ._north import NorthValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._west.WestValidator", + "._south.SouthValidator", + "._north.NorthValidator", + "._east.EastValidator", + ], +) diff --git a/plotly/validators/layout/map/bounds/_east.py b/plotly/validators/layout/map/bounds/_east.py index 82f489f5fd..19a555d86e 100644 --- a/plotly/validators/layout/map/bounds/_east.py +++ b/plotly/validators/layout/map/bounds/_east.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EastValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/map/bounds/_north.py b/plotly/validators/layout/map/bounds/_north.py index a8eb320ed2..45226f9f60 100644 --- a/plotly/validators/layout/map/bounds/_north.py +++ b/plotly/validators/layout/map/bounds/_north.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NorthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/map/bounds/_south.py b/plotly/validators/layout/map/bounds/_south.py index c1259da69a..d7f6588637 100644 --- a/plotly/validators/layout/map/bounds/_south.py +++ b/plotly/validators/layout/map/bounds/_south.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SouthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/map/bounds/_west.py b/plotly/validators/layout/map/bounds/_west.py index 6e7d7d26f8..d201aab836 100644 --- a/plotly/validators/layout/map/bounds/_west.py +++ b/plotly/validators/layout/map/bounds/_west.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WestValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/map/center/__init__.py b/plotly/validators/layout/map/center/__init__.py index a723b74f14..bd95067321 100644 --- a/plotly/validators/layout/map/center/__init__.py +++ b/plotly/validators/layout/map/center/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._lon.LonValidator", "._lat.LatValidator"] +) diff --git a/plotly/validators/layout/map/center/_lat.py b/plotly/validators/layout/map/center/_lat.py index 103eaa5098..d82a9d9774 100644 --- a/plotly/validators/layout/map/center/_lat.py +++ b/plotly/validators/layout/map/center/_lat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LatValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/map/center/_lon.py b/plotly/validators/layout/map/center/_lon.py index 92ac5de39f..8a049a0a16 100644 --- a/plotly/validators/layout/map/center/_lon.py +++ b/plotly/validators/layout/map/center/_lon.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LonValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/map/domain/__init__.py b/plotly/validators/layout/map/domain/__init__.py index 67de5030d0..42827f1d1e 100644 --- a/plotly/validators/layout/map/domain/__init__.py +++ b/plotly/validators/layout/map/domain/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._y import YValidator - from ._x import XValidator - from ._row import RowValidator - from ._column import ColumnValidator -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [], - [ - "._y.YValidator", - "._x.XValidator", - "._row.RowValidator", - "._column.ColumnValidator", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._y.YValidator", + "._x.XValidator", + "._row.RowValidator", + "._column.ColumnValidator", + ], +) diff --git a/plotly/validators/layout/map/domain/_column.py b/plotly/validators/layout/map/domain/_column.py index 1edcaf12d1..297666b2f9 100644 --- a/plotly/validators/layout/map/domain/_column.py +++ b/plotly/validators/layout/map/domain/_column.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/map/domain/_row.py b/plotly/validators/layout/map/domain/_row.py index bbe67e36d9..56a814429f 100644 --- a/plotly/validators/layout/map/domain/_row.py +++ b/plotly/validators/layout/map/domain/_row.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RowValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/map/domain/_x.py b/plotly/validators/layout/map/domain/_x.py index 91c2b9a1c4..9a79c3026d 100644 --- a/plotly/validators/layout/map/domain/_x.py +++ b/plotly/validators/layout/map/domain/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/map/domain/_y.py b/plotly/validators/layout/map/domain/_y.py index 9fe193fee8..50fbb5b1ba 100644 --- a/plotly/validators/layout/map/domain/_y.py +++ b/plotly/validators/layout/map/domain/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/map/layer/__init__.py b/plotly/validators/layout/map/layer/__init__.py index 93e08a556b..824c7d802a 100644 --- a/plotly/validators/layout/map/layer/__init__.py +++ b/plotly/validators/layout/map/layer/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._visible import VisibleValidator - from ._type import TypeValidator - from ._templateitemname import TemplateitemnameValidator - from ._symbol import SymbolValidator - from ._sourcetype import SourcetypeValidator - from ._sourcelayer import SourcelayerValidator - from ._sourceattribution import SourceattributionValidator - from ._source import SourceValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - from ._minzoom import MinzoomValidator - from ._maxzoom import MaxzoomValidator - from ._line import LineValidator - from ._fill import FillValidator - from ._coordinates import CoordinatesValidator - from ._color import ColorValidator - from ._circle import CircleValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/map/layer/_below.py b/plotly/validators/layout/map/layer/_below.py index 6cca251a6e..7704070087 100644 --- a/plotly/validators/layout/map/layer/_below.py +++ b/plotly/validators/layout/map/layer/_below.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BelowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/map/layer/_circle.py b/plotly/validators/layout/map/layer/_circle.py index 1aa48e43fe..d038d6e296 100644 --- a/plotly/validators/layout/map/layer/_circle.py +++ b/plotly/validators/layout/map/layer/_circle.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CircleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/map/layer/_color.py b/plotly/validators/layout/map/layer/_color.py index 97359cfbc6..e8cf8827ca 100644 --- a/plotly/validators/layout/map/layer/_color.py +++ b/plotly/validators/layout/map/layer/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/map/layer/_coordinates.py b/plotly/validators/layout/map/layer/_coordinates.py index f7a91cbc53..e7a1c25631 100644 --- a/plotly/validators/layout/map/layer/_coordinates.py +++ b/plotly/validators/layout/map/layer/_coordinates.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CoordinatesValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/map/layer/_fill.py b/plotly/validators/layout/map/layer/_fill.py index 1b9742afc4..d300231b18 100644 --- a/plotly/validators/layout/map/layer/_fill.py +++ b/plotly/validators/layout/map/layer/_fill.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/map/layer/_line.py b/plotly/validators/layout/map/layer/_line.py index 82872348c2..382ea9a062 100644 --- a/plotly/validators/layout/map/layer/_line.py +++ b/plotly/validators/layout/map/layer/_line.py @@ -1,26 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/map/layer/_maxzoom.py b/plotly/validators/layout/map/layer/_maxzoom.py index 9d44e32c31..b27f5eac33 100644 --- a/plotly/validators/layout/map/layer/_maxzoom.py +++ b/plotly/validators/layout/map/layer/_maxzoom.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxzoomValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), max=kwargs.pop("max", 24), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/map/layer/_minzoom.py b/plotly/validators/layout/map/layer/_minzoom.py index efce76e2df..1ceb9f8444 100644 --- a/plotly/validators/layout/map/layer/_minzoom.py +++ b/plotly/validators/layout/map/layer/_minzoom.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinzoomValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), max=kwargs.pop("max", 24), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/map/layer/_name.py b/plotly/validators/layout/map/layer/_name.py index 8b1a0d8b7c..b19bf6c787 100644 --- a/plotly/validators/layout/map/layer/_name.py +++ b/plotly/validators/layout/map/layer/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/map/layer/_opacity.py b/plotly/validators/layout/map/layer/_opacity.py index 00314bdd7e..2986c641fc 100644 --- a/plotly/validators/layout/map/layer/_opacity.py +++ b/plotly/validators/layout/map/layer/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/map/layer/_source.py b/plotly/validators/layout/map/layer/_source.py index fcbb4f5b1b..3b14d26036 100644 --- a/plotly/validators/layout/map/layer/_source.py +++ b/plotly/validators/layout/map/layer/_source.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SourceValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/map/layer/_sourceattribution.py b/plotly/validators/layout/map/layer/_sourceattribution.py index dc43e5f8fe..422f46796d 100644 --- a/plotly/validators/layout/map/layer/_sourceattribution.py +++ b/plotly/validators/layout/map/layer/_sourceattribution.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SourceattributionValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/map/layer/_sourcelayer.py b/plotly/validators/layout/map/layer/_sourcelayer.py index 61a15d14fe..c205e2ec74 100644 --- a/plotly/validators/layout/map/layer/_sourcelayer.py +++ b/plotly/validators/layout/map/layer/_sourcelayer.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SourcelayerValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/map/layer/_sourcetype.py b/plotly/validators/layout/map/layer/_sourcetype.py index 55bd490406..5b9727cb51 100644 --- a/plotly/validators/layout/map/layer/_sourcetype.py +++ b/plotly/validators/layout/map/layer/_sourcetype.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SourcetypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["geojson", "vector", "raster", "image"]), **kwargs, diff --git a/plotly/validators/layout/map/layer/_symbol.py b/plotly/validators/layout/map/layer/_symbol.py index 1192a69a57..bb63beb2da 100644 --- a/plotly/validators/layout/map/layer/_symbol.py +++ b/plotly/validators/layout/map/layer/_symbol.py @@ -1,43 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymbolValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/map/layer/_templateitemname.py b/plotly/validators/layout/map/layer/_templateitemname.py index 6e9cb4fffa..1e4951efae 100644 --- a/plotly/validators/layout/map/layer/_templateitemname.py +++ b/plotly/validators/layout/map/layer/_templateitemname.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/map/layer/_type.py b/plotly/validators/layout/map/layer/_type.py index 5a88a15398..4b6f532a62 100644 --- a/plotly/validators/layout/map/layer/_type.py +++ b/plotly/validators/layout/map/layer/_type.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["circle", "line", "fill", "symbol", "raster"]), **kwargs, diff --git a/plotly/validators/layout/map/layer/_visible.py b/plotly/validators/layout/map/layer/_visible.py index dbf3fb48ff..e15ee30a8c 100644 --- a/plotly/validators/layout/map/layer/_visible.py +++ b/plotly/validators/layout/map/layer/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/map/layer/circle/__init__.py b/plotly/validators/layout/map/layer/circle/__init__.py index 659abf22fb..3ab81e9169 100644 --- a/plotly/validators/layout/map/layer/circle/__init__.py +++ b/plotly/validators/layout/map/layer/circle/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._radius.RadiusValidator"] +) diff --git a/plotly/validators/layout/map/layer/circle/_radius.py b/plotly/validators/layout/map/layer/circle/_radius.py index 36d8020c13..53dfee2501 100644 --- a/plotly/validators/layout/map/layer/circle/_radius.py +++ b/plotly/validators/layout/map/layer/circle/_radius.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RadiusValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/map/layer/fill/__init__.py b/plotly/validators/layout/map/layer/fill/__init__.py index 722f28333c..d169627477 100644 --- a/plotly/validators/layout/map/layer/fill/__init__.py +++ b/plotly/validators/layout/map/layer/fill/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._outlinecolor.OutlinecolorValidator"] +) diff --git a/plotly/validators/layout/map/layer/fill/_outlinecolor.py b/plotly/validators/layout/map/layer/fill/_outlinecolor.py index 71a131968f..1346c32d95 100644 --- a/plotly/validators/layout/map/layer/fill/_outlinecolor.py +++ b/plotly/validators/layout/map/layer/fill/_outlinecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/map/layer/line/__init__.py b/plotly/validators/layout/map/layer/line/__init__.py index e2f415ff5b..ebb48ff6e2 100644 --- a/plotly/validators/layout/map/layer/line/__init__.py +++ b/plotly/validators/layout/map/layer/line/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._width.WidthValidator", "._dashsrc.DashsrcValidator", "._dash.DashValidator"], +) diff --git a/plotly/validators/layout/map/layer/line/_dash.py b/plotly/validators/layout/map/layer/line/_dash.py index 22f56eb1cd..00067691a1 100644 --- a/plotly/validators/layout/map/layer/line/_dash.py +++ b/plotly/validators/layout/map/layer/line/_dash.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DashValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/map/layer/line/_dashsrc.py b/plotly/validators/layout/map/layer/line/_dashsrc.py index 5030f6bebf..5437e4669e 100644 --- a/plotly/validators/layout/map/layer/line/_dashsrc.py +++ b/plotly/validators/layout/map/layer/line/_dashsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DashsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/map/layer/line/_width.py b/plotly/validators/layout/map/layer/line/_width.py index b61a9d03f4..1937f4d4d6 100644 --- a/plotly/validators/layout/map/layer/line/_width.py +++ b/plotly/validators/layout/map/layer/line/_width.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/map/layer/symbol/__init__.py b/plotly/validators/layout/map/layer/symbol/__init__.py index 2b890e661e..41fc41c8fd 100644 --- a/plotly/validators/layout/map/layer/symbol/__init__.py +++ b/plotly/validators/layout/map/layer/symbol/__init__.py @@ -1,25 +1,15 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._textposition import TextpositionValidator - from ._textfont import TextfontValidator - from ._text import TextValidator - from ._placement import PlacementValidator - from ._iconsize import IconsizeValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._textposition.TextpositionValidator", + "._textfont.TextfontValidator", + "._text.TextValidator", + "._placement.PlacementValidator", + "._iconsize.IconsizeValidator", + "._icon.IconValidator", + ], +) diff --git a/plotly/validators/layout/map/layer/symbol/_icon.py b/plotly/validators/layout/map/layer/symbol/_icon.py index dcdf5a5130..a9482ce62b 100644 --- a/plotly/validators/layout/map/layer/symbol/_icon.py +++ b/plotly/validators/layout/map/layer/symbol/_icon.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IconValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/map/layer/symbol/_iconsize.py b/plotly/validators/layout/map/layer/symbol/_iconsize.py index 781d192446..c748a3498b 100644 --- a/plotly/validators/layout/map/layer/symbol/_iconsize.py +++ b/plotly/validators/layout/map/layer/symbol/_iconsize.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IconsizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/map/layer/symbol/_placement.py b/plotly/validators/layout/map/layer/symbol/_placement.py index 2a23813949..47b1e182e5 100644 --- a/plotly/validators/layout/map/layer/symbol/_placement.py +++ b/plotly/validators/layout/map/layer/symbol/_placement.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PlacementValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["point", "line", "line-center"]), **kwargs, diff --git a/plotly/validators/layout/map/layer/symbol/_text.py b/plotly/validators/layout/map/layer/symbol/_text.py index a7e3de35b6..93097bc6cf 100644 --- a/plotly/validators/layout/map/layer/symbol/_text.py +++ b/plotly/validators/layout/map/layer/symbol/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/map/layer/symbol/_textfont.py b/plotly/validators/layout/map/layer/symbol/_textfont.py index d2e2100b83..1d11a3a37d 100644 --- a/plotly/validators/layout/map/layer/symbol/_textfont.py +++ b/plotly/validators/layout/map/layer/symbol/_textfont.py @@ -1,43 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "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, diff --git a/plotly/validators/layout/map/layer/symbol/_textposition.py b/plotly/validators/layout/map/layer/symbol/_textposition.py index bd33675f9d..4022516f62 100644 --- a/plotly/validators/layout/map/layer/symbol/_textposition.py +++ b/plotly/validators/layout/map/layer/symbol/_textposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( diff --git a/plotly/validators/layout/map/layer/symbol/textfont/__init__.py b/plotly/validators/layout/map/layer/symbol/textfont/__init__.py index 9301c0688c..13cbf9ae54 100644 --- a/plotly/validators/layout/map/layer/symbol/textfont/__init__.py +++ b/plotly/validators/layout/map/layer/symbol/textfont/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/map/layer/symbol/textfont/_color.py b/plotly/validators/layout/map/layer/symbol/textfont/_color.py index dae1cc1050..13a662911c 100644 --- a/plotly/validators/layout/map/layer/symbol/textfont/_color.py +++ b/plotly/validators/layout/map/layer/symbol/textfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/map/layer/symbol/textfont/_family.py b/plotly/validators/layout/map/layer/symbol/textfont/_family.py index d0eae613de..6e4bf4018f 100644 --- a/plotly/validators/layout/map/layer/symbol/textfont/_family.py +++ b/plotly/validators/layout/map/layer/symbol/textfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/map/layer/symbol/textfont/_size.py b/plotly/validators/layout/map/layer/symbol/textfont/_size.py index 3d73bc2cd7..484dadced0 100644 --- a/plotly/validators/layout/map/layer/symbol/textfont/_size.py +++ b/plotly/validators/layout/map/layer/symbol/textfont/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/map/layer/symbol/textfont/_style.py b/plotly/validators/layout/map/layer/symbol/textfont/_style.py index 67ccc17c09..d022039f1d 100644 --- a/plotly/validators/layout/map/layer/symbol/textfont/_style.py +++ b/plotly/validators/layout/map/layer/symbol/textfont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/map/layer/symbol/textfont/_weight.py b/plotly/validators/layout/map/layer/symbol/textfont/_weight.py index 8ecec96650..cb79260498 100644 --- a/plotly/validators/layout/map/layer/symbol/textfont/_weight.py +++ b/plotly/validators/layout/map/layer/symbol/textfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/mapbox/__init__.py b/plotly/validators/layout/mapbox/__init__.py index 5e56f18ab5..c3ed5b178f 100644 --- a/plotly/validators/layout/mapbox/__init__.py +++ b/plotly/validators/layout/mapbox/__init__.py @@ -1,35 +1,20 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zoom import ZoomValidator - from ._uirevision import UirevisionValidator - from ._style import StyleValidator - from ._pitch import PitchValidator - from ._layerdefaults import LayerdefaultsValidator - from ._layers import LayersValidator - from ._domain import DomainValidator - from ._center import CenterValidator - from ._bounds import BoundsValidator - from ._bearing import BearingValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/mapbox/_accesstoken.py b/plotly/validators/layout/mapbox/_accesstoken.py index 8567b7bc77..57d28c4f00 100644 --- a/plotly/validators/layout/mapbox/_accesstoken.py +++ b/plotly/validators/layout/mapbox/_accesstoken.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AccesstokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/mapbox/_bearing.py b/plotly/validators/layout/mapbox/_bearing.py index cc1ce00d7b..aec2f24302 100644 --- a/plotly/validators/layout/mapbox/_bearing.py +++ b/plotly/validators/layout/mapbox/_bearing.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BearingValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/mapbox/_bounds.py b/plotly/validators/layout/mapbox/_bounds.py index b554f79525..aec242c870 100644 --- a/plotly/validators/layout/mapbox/_bounds.py +++ b/plotly/validators/layout/mapbox/_bounds.py @@ -1,31 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BoundsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/mapbox/_center.py b/plotly/validators/layout/mapbox/_center.py index 0f0eae132c..9af53cf957 100644 --- a/plotly/validators/layout/mapbox/_center.py +++ b/plotly/validators/layout/mapbox/_center.py @@ -1,21 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CenterValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/mapbox/_domain.py b/plotly/validators/layout/mapbox/_domain.py index e810f05b7a..e306209e0a 100644 --- a/plotly/validators/layout/mapbox/_domain.py +++ b/plotly/validators/layout/mapbox/_domain.py @@ -1,28 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/mapbox/_layerdefaults.py b/plotly/validators/layout/mapbox/_layerdefaults.py index e4d0461dfc..5c318ee332 100644 --- a/plotly/validators/layout/mapbox/_layerdefaults.py +++ b/plotly/validators/layout/mapbox/_layerdefaults.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LayerdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Layer"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/mapbox/_layers.py b/plotly/validators/layout/mapbox/_layers.py index 6523028214..2bccd5c97e 100644 --- a/plotly/validators/layout/mapbox/_layers.py +++ b/plotly/validators/layout/mapbox/_layers.py @@ -1,126 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LayersValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/mapbox/_pitch.py b/plotly/validators/layout/mapbox/_pitch.py index c0e5ef9130..c7e9a6483b 100644 --- a/plotly/validators/layout/mapbox/_pitch.py +++ b/plotly/validators/layout/mapbox/_pitch.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PitchValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/mapbox/_style.py b/plotly/validators/layout/mapbox/_style.py index ee96f7f681..89e39b6f20 100644 --- a/plotly/validators/layout/mapbox/_style.py +++ b/plotly/validators/layout/mapbox/_style.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/mapbox/_uirevision.py b/plotly/validators/layout/mapbox/_uirevision.py index 1545116a04..934180d203 100644 --- a/plotly/validators/layout/mapbox/_uirevision.py +++ b/plotly/validators/layout/mapbox/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/mapbox/_zoom.py b/plotly/validators/layout/mapbox/_zoom.py index 9fb8fdee9d..71449adba1 100644 --- a/plotly/validators/layout/mapbox/_zoom.py +++ b/plotly/validators/layout/mapbox/_zoom.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZoomValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/mapbox/bounds/__init__.py b/plotly/validators/layout/mapbox/bounds/__init__.py index c07c964cd6..fe63c18499 100644 --- a/plotly/validators/layout/mapbox/bounds/__init__.py +++ b/plotly/validators/layout/mapbox/bounds/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._west import WestValidator - from ._south import SouthValidator - from ._north import NorthValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._west.WestValidator", + "._south.SouthValidator", + "._north.NorthValidator", + "._east.EastValidator", + ], +) diff --git a/plotly/validators/layout/mapbox/bounds/_east.py b/plotly/validators/layout/mapbox/bounds/_east.py index c497d0a274..ad43d00e6e 100644 --- a/plotly/validators/layout/mapbox/bounds/_east.py +++ b/plotly/validators/layout/mapbox/bounds/_east.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EastValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/mapbox/bounds/_north.py b/plotly/validators/layout/mapbox/bounds/_north.py index 5250ce0ce5..522fa2140d 100644 --- a/plotly/validators/layout/mapbox/bounds/_north.py +++ b/plotly/validators/layout/mapbox/bounds/_north.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NorthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/mapbox/bounds/_south.py b/plotly/validators/layout/mapbox/bounds/_south.py index 4175c1c4b5..cce6b4378a 100644 --- a/plotly/validators/layout/mapbox/bounds/_south.py +++ b/plotly/validators/layout/mapbox/bounds/_south.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SouthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/mapbox/bounds/_west.py b/plotly/validators/layout/mapbox/bounds/_west.py index 9e51a1794f..4e28db1c99 100644 --- a/plotly/validators/layout/mapbox/bounds/_west.py +++ b/plotly/validators/layout/mapbox/bounds/_west.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WestValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/mapbox/center/__init__.py b/plotly/validators/layout/mapbox/center/__init__.py index a723b74f14..bd95067321 100644 --- a/plotly/validators/layout/mapbox/center/__init__.py +++ b/plotly/validators/layout/mapbox/center/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._lon.LonValidator", "._lat.LatValidator"] +) diff --git a/plotly/validators/layout/mapbox/center/_lat.py b/plotly/validators/layout/mapbox/center/_lat.py index 199ab106d3..3ea73001b7 100644 --- a/plotly/validators/layout/mapbox/center/_lat.py +++ b/plotly/validators/layout/mapbox/center/_lat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LatValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/mapbox/center/_lon.py b/plotly/validators/layout/mapbox/center/_lon.py index adcee9d183..f373256a73 100644 --- a/plotly/validators/layout/mapbox/center/_lon.py +++ b/plotly/validators/layout/mapbox/center/_lon.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LonValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/mapbox/domain/__init__.py b/plotly/validators/layout/mapbox/domain/__init__.py index 67de5030d0..42827f1d1e 100644 --- a/plotly/validators/layout/mapbox/domain/__init__.py +++ b/plotly/validators/layout/mapbox/domain/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._y import YValidator - from ._x import XValidator - from ._row import RowValidator - from ._column import ColumnValidator -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [], - [ - "._y.YValidator", - "._x.XValidator", - "._row.RowValidator", - "._column.ColumnValidator", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._y.YValidator", + "._x.XValidator", + "._row.RowValidator", + "._column.ColumnValidator", + ], +) diff --git a/plotly/validators/layout/mapbox/domain/_column.py b/plotly/validators/layout/mapbox/domain/_column.py index 2f4cf0cddf..d0742d2db7 100644 --- a/plotly/validators/layout/mapbox/domain/_column.py +++ b/plotly/validators/layout/mapbox/domain/_column.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/mapbox/domain/_row.py b/plotly/validators/layout/mapbox/domain/_row.py index efed263ed5..70e3685f0c 100644 --- a/plotly/validators/layout/mapbox/domain/_row.py +++ b/plotly/validators/layout/mapbox/domain/_row.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RowValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/mapbox/domain/_x.py b/plotly/validators/layout/mapbox/domain/_x.py index df16884276..482e6833eb 100644 --- a/plotly/validators/layout/mapbox/domain/_x.py +++ b/plotly/validators/layout/mapbox/domain/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/mapbox/domain/_y.py b/plotly/validators/layout/mapbox/domain/_y.py index 4f462f14ee..6be296d6a9 100644 --- a/plotly/validators/layout/mapbox/domain/_y.py +++ b/plotly/validators/layout/mapbox/domain/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/mapbox/layer/__init__.py b/plotly/validators/layout/mapbox/layer/__init__.py index 93e08a556b..824c7d802a 100644 --- a/plotly/validators/layout/mapbox/layer/__init__.py +++ b/plotly/validators/layout/mapbox/layer/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._visible import VisibleValidator - from ._type import TypeValidator - from ._templateitemname import TemplateitemnameValidator - from ._symbol import SymbolValidator - from ._sourcetype import SourcetypeValidator - from ._sourcelayer import SourcelayerValidator - from ._sourceattribution import SourceattributionValidator - from ._source import SourceValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - from ._minzoom import MinzoomValidator - from ._maxzoom import MaxzoomValidator - from ._line import LineValidator - from ._fill import FillValidator - from ._coordinates import CoordinatesValidator - from ._color import ColorValidator - from ._circle import CircleValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/mapbox/layer/_below.py b/plotly/validators/layout/mapbox/layer/_below.py index 79c3479806..2d7d80d006 100644 --- a/plotly/validators/layout/mapbox/layer/_below.py +++ b/plotly/validators/layout/mapbox/layer/_below.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BelowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/mapbox/layer/_circle.py b/plotly/validators/layout/mapbox/layer/_circle.py index 7548ec2db2..be54383e26 100644 --- a/plotly/validators/layout/mapbox/layer/_circle.py +++ b/plotly/validators/layout/mapbox/layer/_circle.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CircleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/mapbox/layer/_color.py b/plotly/validators/layout/mapbox/layer/_color.py index 7332524135..97315661c2 100644 --- a/plotly/validators/layout/mapbox/layer/_color.py +++ b/plotly/validators/layout/mapbox/layer/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/mapbox/layer/_coordinates.py b/plotly/validators/layout/mapbox/layer/_coordinates.py index cf0ea46868..68f614f46a 100644 --- a/plotly/validators/layout/mapbox/layer/_coordinates.py +++ b/plotly/validators/layout/mapbox/layer/_coordinates.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CoordinatesValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/mapbox/layer/_fill.py b/plotly/validators/layout/mapbox/layer/_fill.py index d32eb91b47..5abfe1c180 100644 --- a/plotly/validators/layout/mapbox/layer/_fill.py +++ b/plotly/validators/layout/mapbox/layer/_fill.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/mapbox/layer/_line.py b/plotly/validators/layout/mapbox/layer/_line.py index ea6700651b..f829eb258b 100644 --- a/plotly/validators/layout/mapbox/layer/_line.py +++ b/plotly/validators/layout/mapbox/layer/_line.py @@ -1,26 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/mapbox/layer/_maxzoom.py b/plotly/validators/layout/mapbox/layer/_maxzoom.py index d6d2c60f07..c49e445393 100644 --- a/plotly/validators/layout/mapbox/layer/_maxzoom.py +++ b/plotly/validators/layout/mapbox/layer/_maxzoom.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxzoomValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), max=kwargs.pop("max", 24), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/mapbox/layer/_minzoom.py b/plotly/validators/layout/mapbox/layer/_minzoom.py index fa67a7c6df..77ea301ee0 100644 --- a/plotly/validators/layout/mapbox/layer/_minzoom.py +++ b/plotly/validators/layout/mapbox/layer/_minzoom.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinzoomValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), max=kwargs.pop("max", 24), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/mapbox/layer/_name.py b/plotly/validators/layout/mapbox/layer/_name.py index 8e68fdf6c0..6ef4a61047 100644 --- a/plotly/validators/layout/mapbox/layer/_name.py +++ b/plotly/validators/layout/mapbox/layer/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/mapbox/layer/_opacity.py b/plotly/validators/layout/mapbox/layer/_opacity.py index b99c9cd82c..f5646efe88 100644 --- a/plotly/validators/layout/mapbox/layer/_opacity.py +++ b/plotly/validators/layout/mapbox/layer/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/mapbox/layer/_source.py b/plotly/validators/layout/mapbox/layer/_source.py index 9c7b69dd09..29d4d07a23 100644 --- a/plotly/validators/layout/mapbox/layer/_source.py +++ b/plotly/validators/layout/mapbox/layer/_source.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SourceValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/mapbox/layer/_sourceattribution.py b/plotly/validators/layout/mapbox/layer/_sourceattribution.py index 6cd8dea4bd..96adba9235 100644 --- a/plotly/validators/layout/mapbox/layer/_sourceattribution.py +++ b/plotly/validators/layout/mapbox/layer/_sourceattribution.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SourceattributionValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/mapbox/layer/_sourcelayer.py b/plotly/validators/layout/mapbox/layer/_sourcelayer.py index 0c31981979..aaf259617a 100644 --- a/plotly/validators/layout/mapbox/layer/_sourcelayer.py +++ b/plotly/validators/layout/mapbox/layer/_sourcelayer.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SourcelayerValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/mapbox/layer/_sourcetype.py b/plotly/validators/layout/mapbox/layer/_sourcetype.py index db480a4881..379a0f4f91 100644 --- a/plotly/validators/layout/mapbox/layer/_sourcetype.py +++ b/plotly/validators/layout/mapbox/layer/_sourcetype.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SourcetypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["geojson", "vector", "raster", "image"]), **kwargs, diff --git a/plotly/validators/layout/mapbox/layer/_symbol.py b/plotly/validators/layout/mapbox/layer/_symbol.py index b9209f8979..977a518220 100644 --- a/plotly/validators/layout/mapbox/layer/_symbol.py +++ b/plotly/validators/layout/mapbox/layer/_symbol.py @@ -1,45 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymbolValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/mapbox/layer/_templateitemname.py b/plotly/validators/layout/mapbox/layer/_templateitemname.py index 95c15bb6f3..31e2e70330 100644 --- a/plotly/validators/layout/mapbox/layer/_templateitemname.py +++ b/plotly/validators/layout/mapbox/layer/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/mapbox/layer/_type.py b/plotly/validators/layout/mapbox/layer/_type.py index 080b73c1c1..478b78e2af 100644 --- a/plotly/validators/layout/mapbox/layer/_type.py +++ b/plotly/validators/layout/mapbox/layer/_type.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["circle", "line", "fill", "symbol", "raster"]), **kwargs, diff --git a/plotly/validators/layout/mapbox/layer/_visible.py b/plotly/validators/layout/mapbox/layer/_visible.py index 782efb5c93..a7cb38eedc 100644 --- a/plotly/validators/layout/mapbox/layer/_visible.py +++ b/plotly/validators/layout/mapbox/layer/_visible.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/mapbox/layer/circle/__init__.py b/plotly/validators/layout/mapbox/layer/circle/__init__.py index 659abf22fb..3ab81e9169 100644 --- a/plotly/validators/layout/mapbox/layer/circle/__init__.py +++ b/plotly/validators/layout/mapbox/layer/circle/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._radius.RadiusValidator"] +) diff --git a/plotly/validators/layout/mapbox/layer/circle/_radius.py b/plotly/validators/layout/mapbox/layer/circle/_radius.py index 82011307ce..12ca89a960 100644 --- a/plotly/validators/layout/mapbox/layer/circle/_radius.py +++ b/plotly/validators/layout/mapbox/layer/circle/_radius.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RadiusValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/mapbox/layer/fill/__init__.py b/plotly/validators/layout/mapbox/layer/fill/__init__.py index 722f28333c..d169627477 100644 --- a/plotly/validators/layout/mapbox/layer/fill/__init__.py +++ b/plotly/validators/layout/mapbox/layer/fill/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._outlinecolor.OutlinecolorValidator"] +) diff --git a/plotly/validators/layout/mapbox/layer/fill/_outlinecolor.py b/plotly/validators/layout/mapbox/layer/fill/_outlinecolor.py index 2e5e9d29c7..2319285d93 100644 --- a/plotly/validators/layout/mapbox/layer/fill/_outlinecolor.py +++ b/plotly/validators/layout/mapbox/layer/fill/_outlinecolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/mapbox/layer/line/__init__.py b/plotly/validators/layout/mapbox/layer/line/__init__.py index e2f415ff5b..ebb48ff6e2 100644 --- a/plotly/validators/layout/mapbox/layer/line/__init__.py +++ b/plotly/validators/layout/mapbox/layer/line/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._width.WidthValidator", "._dashsrc.DashsrcValidator", "._dash.DashValidator"], +) diff --git a/plotly/validators/layout/mapbox/layer/line/_dash.py b/plotly/validators/layout/mapbox/layer/line/_dash.py index 76f7a60a5e..a2ee200953 100644 --- a/plotly/validators/layout/mapbox/layer/line/_dash.py +++ b/plotly/validators/layout/mapbox/layer/line/_dash.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DashValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/mapbox/layer/line/_dashsrc.py b/plotly/validators/layout/mapbox/layer/line/_dashsrc.py index 766df152d8..e074d93919 100644 --- a/plotly/validators/layout/mapbox/layer/line/_dashsrc.py +++ b/plotly/validators/layout/mapbox/layer/line/_dashsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DashsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/mapbox/layer/line/_width.py b/plotly/validators/layout/mapbox/layer/line/_width.py index 49751ba6db..1d17cd9a17 100644 --- a/plotly/validators/layout/mapbox/layer/line/_width.py +++ b/plotly/validators/layout/mapbox/layer/line/_width.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/mapbox/layer/symbol/__init__.py b/plotly/validators/layout/mapbox/layer/symbol/__init__.py index 2b890e661e..41fc41c8fd 100644 --- a/plotly/validators/layout/mapbox/layer/symbol/__init__.py +++ b/plotly/validators/layout/mapbox/layer/symbol/__init__.py @@ -1,25 +1,15 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._textposition import TextpositionValidator - from ._textfont import TextfontValidator - from ._text import TextValidator - from ._placement import PlacementValidator - from ._iconsize import IconsizeValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._textposition.TextpositionValidator", + "._textfont.TextfontValidator", + "._text.TextValidator", + "._placement.PlacementValidator", + "._iconsize.IconsizeValidator", + "._icon.IconValidator", + ], +) diff --git a/plotly/validators/layout/mapbox/layer/symbol/_icon.py b/plotly/validators/layout/mapbox/layer/symbol/_icon.py index 920742e280..3925114a8c 100644 --- a/plotly/validators/layout/mapbox/layer/symbol/_icon.py +++ b/plotly/validators/layout/mapbox/layer/symbol/_icon.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IconValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/mapbox/layer/symbol/_iconsize.py b/plotly/validators/layout/mapbox/layer/symbol/_iconsize.py index 974897ebf1..511f1c58eb 100644 --- a/plotly/validators/layout/mapbox/layer/symbol/_iconsize.py +++ b/plotly/validators/layout/mapbox/layer/symbol/_iconsize.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IconsizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/mapbox/layer/symbol/_placement.py b/plotly/validators/layout/mapbox/layer/symbol/_placement.py index 54c79d31ee..67650e0726 100644 --- a/plotly/validators/layout/mapbox/layer/symbol/_placement.py +++ b/plotly/validators/layout/mapbox/layer/symbol/_placement.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PlacementValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["point", "line", "line-center"]), **kwargs, diff --git a/plotly/validators/layout/mapbox/layer/symbol/_text.py b/plotly/validators/layout/mapbox/layer/symbol/_text.py index e67b63f90d..c4536ab956 100644 --- a/plotly/validators/layout/mapbox/layer/symbol/_text.py +++ b/plotly/validators/layout/mapbox/layer/symbol/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/mapbox/layer/symbol/_textfont.py b/plotly/validators/layout/mapbox/layer/symbol/_textfont.py index d46e5f3d70..8a79d3c14f 100644 --- a/plotly/validators/layout/mapbox/layer/symbol/_textfont.py +++ b/plotly/validators/layout/mapbox/layer/symbol/_textfont.py @@ -1,43 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "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, diff --git a/plotly/validators/layout/mapbox/layer/symbol/_textposition.py b/plotly/validators/layout/mapbox/layer/symbol/_textposition.py index a6f1fd8a37..fe76447eef 100644 --- a/plotly/validators/layout/mapbox/layer/symbol/_textposition.py +++ b/plotly/validators/layout/mapbox/layer/symbol/_textposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( diff --git a/plotly/validators/layout/mapbox/layer/symbol/textfont/__init__.py b/plotly/validators/layout/mapbox/layer/symbol/textfont/__init__.py index 9301c0688c..13cbf9ae54 100644 --- a/plotly/validators/layout/mapbox/layer/symbol/textfont/__init__.py +++ b/plotly/validators/layout/mapbox/layer/symbol/textfont/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/mapbox/layer/symbol/textfont/_color.py b/plotly/validators/layout/mapbox/layer/symbol/textfont/_color.py index 4af6d971f5..bf3c3114c6 100644 --- a/plotly/validators/layout/mapbox/layer/symbol/textfont/_color.py +++ b/plotly/validators/layout/mapbox/layer/symbol/textfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/mapbox/layer/symbol/textfont/_family.py b/plotly/validators/layout/mapbox/layer/symbol/textfont/_family.py index 2031c24735..a0a7c6f7d2 100644 --- a/plotly/validators/layout/mapbox/layer/symbol/textfont/_family.py +++ b/plotly/validators/layout/mapbox/layer/symbol/textfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/mapbox/layer/symbol/textfont/_size.py b/plotly/validators/layout/mapbox/layer/symbol/textfont/_size.py index 25b6edbee5..f0c01d2eda 100644 --- a/plotly/validators/layout/mapbox/layer/symbol/textfont/_size.py +++ b/plotly/validators/layout/mapbox/layer/symbol/textfont/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/mapbox/layer/symbol/textfont/_style.py b/plotly/validators/layout/mapbox/layer/symbol/textfont/_style.py index 7d9ced34ac..b3b8f3d89f 100644 --- a/plotly/validators/layout/mapbox/layer/symbol/textfont/_style.py +++ b/plotly/validators/layout/mapbox/layer/symbol/textfont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/mapbox/layer/symbol/textfont/_weight.py b/plotly/validators/layout/mapbox/layer/symbol/textfont/_weight.py index b40069b9f1..0ebd967f60 100644 --- a/plotly/validators/layout/mapbox/layer/symbol/textfont/_weight.py +++ b/plotly/validators/layout/mapbox/layer/symbol/textfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/margin/__init__.py b/plotly/validators/layout/margin/__init__.py index 82c96bf627..0fc672f9e9 100644 --- a/plotly/validators/layout/margin/__init__.py +++ b/plotly/validators/layout/margin/__init__.py @@ -1,25 +1,15 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._t import TValidator - from ._r import RValidator - from ._pad import PadValidator - from ._l import LValidator - from ._b import BValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._t.TValidator", + "._r.RValidator", + "._pad.PadValidator", + "._l.LValidator", + "._b.BValidator", + "._autoexpand.AutoexpandValidator", + ], +) diff --git a/plotly/validators/layout/margin/_autoexpand.py b/plotly/validators/layout/margin/_autoexpand.py index 60a18f3900..4027888ec8 100644 --- a/plotly/validators/layout/margin/_autoexpand.py +++ b/plotly/validators/layout/margin/_autoexpand.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutoexpandValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/margin/_b.py b/plotly/validators/layout/margin/_b.py index 091211fd09..0f4f12a560 100644 --- a/plotly/validators/layout/margin/_b.py +++ b/plotly/validators/layout/margin/_b.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/margin/_l.py b/plotly/validators/layout/margin/_l.py index d61d67c387..c0d5481693 100644 --- a/plotly/validators/layout/margin/_l.py +++ b/plotly/validators/layout/margin/_l.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/margin/_pad.py b/plotly/validators/layout/margin/_pad.py index dd9d8d7259..82c64282ea 100644 --- a/plotly/validators/layout/margin/_pad.py +++ b/plotly/validators/layout/margin/_pad.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/margin/_r.py b/plotly/validators/layout/margin/_r.py index ec8e4dec11..b1f73f86a3 100644 --- a/plotly/validators/layout/margin/_r.py +++ b/plotly/validators/layout/margin/_r.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/margin/_t.py b/plotly/validators/layout/margin/_t.py index 6ecd8256ba..455c631620 100644 --- a/plotly/validators/layout/margin/_t.py +++ b/plotly/validators/layout/margin/_t.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/modebar/__init__.py b/plotly/validators/layout/modebar/__init__.py index 5791ea538b..07339747c2 100644 --- a/plotly/validators/layout/modebar/__init__.py +++ b/plotly/validators/layout/modebar/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._uirevision import UirevisionValidator - from ._removesrc import RemovesrcValidator - from ._remove import RemoveValidator - from ._orientation import OrientationValidator - from ._color import ColorValidator - from ._bgcolor import BgcolorValidator - from ._addsrc import AddsrcValidator - from ._add import AddValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._uirevision.UirevisionValidator", + "._removesrc.RemovesrcValidator", + "._remove.RemoveValidator", + "._orientation.OrientationValidator", + "._color.ColorValidator", + "._bgcolor.BgcolorValidator", + "._addsrc.AddsrcValidator", + "._add.AddValidator", + "._activecolor.ActivecolorValidator", + ], +) diff --git a/plotly/validators/layout/modebar/_activecolor.py b/plotly/validators/layout/modebar/_activecolor.py index e2dd751791..d9ccea3e0d 100644 --- a/plotly/validators/layout/modebar/_activecolor.py +++ b/plotly/validators/layout/modebar/_activecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ActivecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "modebar"), **kwargs, ) diff --git a/plotly/validators/layout/modebar/_add.py b/plotly/validators/layout/modebar/_add.py index 511f58a49b..5a8652e064 100644 --- a/plotly/validators/layout/modebar/_add.py +++ b/plotly/validators/layout/modebar/_add.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AddValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "modebar"), **kwargs, diff --git a/plotly/validators/layout/modebar/_addsrc.py b/plotly/validators/layout/modebar/_addsrc.py index e971588547..445159def8 100644 --- a/plotly/validators/layout/modebar/_addsrc.py +++ b/plotly/validators/layout/modebar/_addsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AddsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/modebar/_bgcolor.py b/plotly/validators/layout/modebar/_bgcolor.py index 4531f04183..df86959ecc 100644 --- a/plotly/validators/layout/modebar/_bgcolor.py +++ b/plotly/validators/layout/modebar/_bgcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "modebar"), **kwargs, ) diff --git a/plotly/validators/layout/modebar/_color.py b/plotly/validators/layout/modebar/_color.py index b986d6401e..e752c6571b 100644 --- a/plotly/validators/layout/modebar/_color.py +++ b/plotly/validators/layout/modebar/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "modebar"), **kwargs, ) diff --git a/plotly/validators/layout/modebar/_orientation.py b/plotly/validators/layout/modebar/_orientation.py index 559800db30..e1975d7084 100644 --- a/plotly/validators/layout/modebar/_orientation.py +++ b/plotly/validators/layout/modebar/_orientation.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "modebar"), values=kwargs.pop("values", ["v", "h"]), **kwargs, diff --git a/plotly/validators/layout/modebar/_remove.py b/plotly/validators/layout/modebar/_remove.py index 6c9e43b2ee..4675ef417e 100644 --- a/plotly/validators/layout/modebar/_remove.py +++ b/plotly/validators/layout/modebar/_remove.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RemoveValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "modebar"), **kwargs, diff --git a/plotly/validators/layout/modebar/_removesrc.py b/plotly/validators/layout/modebar/_removesrc.py index 19a5974b7c..113bf26752 100644 --- a/plotly/validators/layout/modebar/_removesrc.py +++ b/plotly/validators/layout/modebar/_removesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RemovesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/modebar/_uirevision.py b/plotly/validators/layout/modebar/_uirevision.py index 1edcb3f80c..59d110b9f6 100644 --- a/plotly/validators/layout/modebar/_uirevision.py +++ b/plotly/validators/layout/modebar/_uirevision.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/newselection/__init__.py b/plotly/validators/layout/newselection/__init__.py index 4bfab4498e..4358e4fdb7 100644 --- a/plotly/validators/layout/newselection/__init__.py +++ b/plotly/validators/layout/newselection/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._mode.ModeValidator", "._line.LineValidator"] +) diff --git a/plotly/validators/layout/newselection/_line.py b/plotly/validators/layout/newselection/_line.py index 14455516b1..b3ac8ec8b4 100644 --- a/plotly/validators/layout/newselection/_line.py +++ b/plotly/validators/layout/newselection/_line.py @@ -1,26 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/newselection/_mode.py b/plotly/validators/layout/newselection/_mode.py index 890dab6d31..c3433303db 100644 --- a/plotly/validators/layout/newselection/_mode.py +++ b/plotly/validators/layout/newselection/_mode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ModeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["immediate", "gradual"]), **kwargs, diff --git a/plotly/validators/layout/newselection/line/__init__.py b/plotly/validators/layout/newselection/line/__init__.py index cff4146651..c5140ef758 100644 --- a/plotly/validators/layout/newselection/line/__init__.py +++ b/plotly/validators/layout/newselection/line/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._width.WidthValidator", "._dash.DashValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/layout/newselection/line/_color.py b/plotly/validators/layout/newselection/line/_color.py index dd506ecb86..e83d724f75 100644 --- a/plotly/validators/layout/newselection/line/_color.py +++ b/plotly/validators/layout/newselection/line/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/newselection/line/_dash.py b/plotly/validators/layout/newselection/line/_dash.py index dc459f40ec..19bd7f4f9b 100644 --- a/plotly/validators/layout/newselection/line/_dash.py +++ b/plotly/validators/layout/newselection/line/_dash.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/layout/newselection/line/_width.py b/plotly/validators/layout/newselection/line/_width.py index 92eae7746d..4d6549906f 100644 --- a/plotly/validators/layout/newselection/line/_width.py +++ b/plotly/validators/layout/newselection/line/_width.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/newshape/__init__.py b/plotly/validators/layout/newshape/__init__.py index 3248c60cb7..e83bc30aad 100644 --- a/plotly/validators/layout/newshape/__init__.py +++ b/plotly/validators/layout/newshape/__init__.py @@ -1,43 +1,24 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._visible import VisibleValidator - from ._showlegend import ShowlegendValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - from ._line import LineValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._layer import LayerValidator - from ._label import LabelValidator - from ._fillrule import FillruleValidator - from ._fillcolor import FillcolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/newshape/_drawdirection.py b/plotly/validators/layout/newshape/_drawdirection.py index ea1d94eb72..46d80fdbad 100644 --- a/plotly/validators/layout/newshape/_drawdirection.py +++ b/plotly/validators/layout/newshape/_drawdirection.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DrawdirectionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( "values", ["ortho", "horizontal", "vertical", "diagonal"] diff --git a/plotly/validators/layout/newshape/_fillcolor.py b/plotly/validators/layout/newshape/_fillcolor.py index 8ccefafa0b..66dedcff62 100644 --- a/plotly/validators/layout/newshape/_fillcolor.py +++ b/plotly/validators/layout/newshape/_fillcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/newshape/_fillrule.py b/plotly/validators/layout/newshape/_fillrule.py index 831ac264f3..c866168357 100644 --- a/plotly/validators/layout/newshape/_fillrule.py +++ b/plotly/validators/layout/newshape/_fillrule.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillruleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["evenodd", "nonzero"]), **kwargs, diff --git a/plotly/validators/layout/newshape/_label.py b/plotly/validators/layout/newshape/_label.py index 62091c0b24..15ae18a796 100644 --- a/plotly/validators/layout/newshape/_label.py +++ b/plotly/validators/layout/newshape/_label.py @@ -1,82 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/newshape/_layer.py b/plotly/validators/layout/newshape/_layer.py index 84c2c6d325..e36aa87dfe 100644 --- a/plotly/validators/layout/newshape/_layer.py +++ b/plotly/validators/layout/newshape/_layer.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LayerValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["below", "above", "between"]), **kwargs, diff --git a/plotly/validators/layout/newshape/_legend.py b/plotly/validators/layout/newshape/_legend.py index fb05ffd8a4..58a9905050 100644 --- a/plotly/validators/layout/newshape/_legend.py +++ b/plotly/validators/layout/newshape/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/layout/newshape/_legendgroup.py b/plotly/validators/layout/newshape/_legendgroup.py index c3ecf094e2..54fdc70776 100644 --- a/plotly/validators/layout/newshape/_legendgroup.py +++ b/plotly/validators/layout/newshape/_legendgroup.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/newshape/_legendgrouptitle.py b/plotly/validators/layout/newshape/_legendgrouptitle.py index 1e5b4ffcae..ead9cf9988 100644 --- a/plotly/validators/layout/newshape/_legendgrouptitle.py +++ b/plotly/validators/layout/newshape/_legendgrouptitle.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/newshape/_legendrank.py b/plotly/validators/layout/newshape/_legendrank.py index 37aeca56ba..1f040330b3 100644 --- a/plotly/validators/layout/newshape/_legendrank.py +++ b/plotly/validators/layout/newshape/_legendrank.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/newshape/_legendwidth.py b/plotly/validators/layout/newshape/_legendwidth.py index f1b124e854..01e2d9ce51 100644 --- a/plotly/validators/layout/newshape/_legendwidth.py +++ b/plotly/validators/layout/newshape/_legendwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/newshape/_line.py b/plotly/validators/layout/newshape/_line.py index f7bf66aaee..75f99126c8 100644 --- a/plotly/validators/layout/newshape/_line.py +++ b/plotly/validators/layout/newshape/_line.py @@ -1,26 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/newshape/_name.py b/plotly/validators/layout/newshape/_name.py index a9a3f3651d..a2c955e0e6 100644 --- a/plotly/validators/layout/newshape/_name.py +++ b/plotly/validators/layout/newshape/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/newshape/_opacity.py b/plotly/validators/layout/newshape/_opacity.py index 75c13e7574..2c9cb6ef78 100644 --- a/plotly/validators/layout/newshape/_opacity.py +++ b/plotly/validators/layout/newshape/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/newshape/_showlegend.py b/plotly/validators/layout/newshape/_showlegend.py index e3e63914e4..d0e46294fe 100644 --- a/plotly/validators/layout/newshape/_showlegend.py +++ b/plotly/validators/layout/newshape/_showlegend.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/newshape/_visible.py b/plotly/validators/layout/newshape/_visible.py index 93ef2eed72..0608150fa9 100644 --- a/plotly/validators/layout/newshape/_visible.py +++ b/plotly/validators/layout/newshape/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/layout/newshape/label/__init__.py b/plotly/validators/layout/newshape/label/__init__.py index c6a5f99963..215b669f84 100644 --- a/plotly/validators/layout/newshape/label/__init__.py +++ b/plotly/validators/layout/newshape/label/__init__.py @@ -1,29 +1,17 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yanchor import YanchorValidator - from ._xanchor import XanchorValidator - from ._texttemplate import TexttemplateValidator - from ._textposition import TextpositionValidator - from ._textangle import TextangleValidator - from ._text import TextValidator - from ._padding import PaddingValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._yanchor.YanchorValidator", + "._xanchor.XanchorValidator", + "._texttemplate.TexttemplateValidator", + "._textposition.TextpositionValidator", + "._textangle.TextangleValidator", + "._text.TextValidator", + "._padding.PaddingValidator", + "._font.FontValidator", + ], +) diff --git a/plotly/validators/layout/newshape/label/_font.py b/plotly/validators/layout/newshape/label/_font.py index caf91e0606..1e7dbd358c 100644 --- a/plotly/validators/layout/newshape/label/_font.py +++ b/plotly/validators/layout/newshape/label/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/newshape/label/_padding.py b/plotly/validators/layout/newshape/label/_padding.py index d6193fd014..783ad9820f 100644 --- a/plotly/validators/layout/newshape/label/_padding.py +++ b/plotly/validators/layout/newshape/label/_padding.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PaddingValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/newshape/label/_text.py b/plotly/validators/layout/newshape/label/_text.py index d7fa4c1178..18ed265910 100644 --- a/plotly/validators/layout/newshape/label/_text.py +++ b/plotly/validators/layout/newshape/label/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/newshape/label/_textangle.py b/plotly/validators/layout/newshape/label/_textangle.py index eb34515d64..c2c361e0c6 100644 --- a/plotly/validators/layout/newshape/label/_textangle.py +++ b/plotly/validators/layout/newshape/label/_textangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/newshape/label/_textposition.py b/plotly/validators/layout/newshape/label/_textposition.py index 4f8971303e..efce977e78 100644 --- a/plotly/validators/layout/newshape/label/_textposition.py +++ b/plotly/validators/layout/newshape/label/_textposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/newshape/label/_texttemplate.py b/plotly/validators/layout/newshape/label/_texttemplate.py index 3a99adbf53..e5d25bea96 100644 --- a/plotly/validators/layout/newshape/label/_texttemplate.py +++ b/plotly/validators/layout/newshape/label/_texttemplate.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/newshape/label/_xanchor.py b/plotly/validators/layout/newshape/label/_xanchor.py index 2e2cbeb0e6..bf2c24d17a 100644 --- a/plotly/validators/layout/newshape/label/_xanchor.py +++ b/plotly/validators/layout/newshape/label/_xanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["auto", "left", "center", "right"]), **kwargs, diff --git a/plotly/validators/layout/newshape/label/_yanchor.py b/plotly/validators/layout/newshape/label/_yanchor.py index b7028be733..7b603fc26c 100644 --- a/plotly/validators/layout/newshape/label/_yanchor.py +++ b/plotly/validators/layout/newshape/label/_yanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/layout/newshape/label/font/__init__.py b/plotly/validators/layout/newshape/label/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/newshape/label/font/__init__.py +++ b/plotly/validators/layout/newshape/label/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/newshape/label/font/_color.py b/plotly/validators/layout/newshape/label/font/_color.py index 1c0b8375fc..56fd2aa62f 100644 --- a/plotly/validators/layout/newshape/label/font/_color.py +++ b/plotly/validators/layout/newshape/label/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/newshape/label/font/_family.py b/plotly/validators/layout/newshape/label/font/_family.py index c84163c2de..c804e4a49e 100644 --- a/plotly/validators/layout/newshape/label/font/_family.py +++ b/plotly/validators/layout/newshape/label/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/newshape/label/font/_lineposition.py b/plotly/validators/layout/newshape/label/font/_lineposition.py index 44667b9a33..3c8fd067a2 100644 --- a/plotly/validators/layout/newshape/label/font/_lineposition.py +++ b/plotly/validators/layout/newshape/label/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/newshape/label/font/_shadow.py b/plotly/validators/layout/newshape/label/font/_shadow.py index 742eefffb0..c76d35b228 100644 --- a/plotly/validators/layout/newshape/label/font/_shadow.py +++ b/plotly/validators/layout/newshape/label/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/newshape/label/font/_size.py b/plotly/validators/layout/newshape/label/font/_size.py index b03a117e10..504fdf831e 100644 --- a/plotly/validators/layout/newshape/label/font/_size.py +++ b/plotly/validators/layout/newshape/label/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/newshape/label/font/_style.py b/plotly/validators/layout/newshape/label/font/_style.py index ffcbbb46be..de16fe8259 100644 --- a/plotly/validators/layout/newshape/label/font/_style.py +++ b/plotly/validators/layout/newshape/label/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/newshape/label/font/_textcase.py b/plotly/validators/layout/newshape/label/font/_textcase.py index e741aa02ba..3bcf054300 100644 --- a/plotly/validators/layout/newshape/label/font/_textcase.py +++ b/plotly/validators/layout/newshape/label/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/newshape/label/font/_variant.py b/plotly/validators/layout/newshape/label/font/_variant.py index e8bc240221..81ba1bfdff 100644 --- a/plotly/validators/layout/newshape/label/font/_variant.py +++ b/plotly/validators/layout/newshape/label/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/newshape/label/font/_weight.py b/plotly/validators/layout/newshape/label/font/_weight.py index 502ae8af93..6fda929c62 100644 --- a/plotly/validators/layout/newshape/label/font/_weight.py +++ b/plotly/validators/layout/newshape/label/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/newshape/legendgrouptitle/__init__.py b/plotly/validators/layout/newshape/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/layout/newshape/legendgrouptitle/__init__.py +++ b/plotly/validators/layout/newshape/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/layout/newshape/legendgrouptitle/_font.py b/plotly/validators/layout/newshape/legendgrouptitle/_font.py index 2b05763e58..b46fc50f72 100644 --- a/plotly/validators/layout/newshape/legendgrouptitle/_font.py +++ b/plotly/validators/layout/newshape/legendgrouptitle/_font.py @@ -1,63 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/newshape/legendgrouptitle/_text.py b/plotly/validators/layout/newshape/legendgrouptitle/_text.py index ad442d2fed..df6df5efd3 100644 --- a/plotly/validators/layout/newshape/legendgrouptitle/_text.py +++ b/plotly/validators/layout/newshape/legendgrouptitle/_text.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/newshape/legendgrouptitle/font/__init__.py b/plotly/validators/layout/newshape/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/newshape/legendgrouptitle/font/__init__.py +++ b/plotly/validators/layout/newshape/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/newshape/legendgrouptitle/font/_color.py b/plotly/validators/layout/newshape/legendgrouptitle/font/_color.py index fb0ae6c582..a4006a62d1 100644 --- a/plotly/validators/layout/newshape/legendgrouptitle/font/_color.py +++ b/plotly/validators/layout/newshape/legendgrouptitle/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/newshape/legendgrouptitle/font/_family.py b/plotly/validators/layout/newshape/legendgrouptitle/font/_family.py index 70c09ac28d..5eaad3dc90 100644 --- a/plotly/validators/layout/newshape/legendgrouptitle/font/_family.py +++ b/plotly/validators/layout/newshape/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/newshape/legendgrouptitle/font/_lineposition.py b/plotly/validators/layout/newshape/legendgrouptitle/font/_lineposition.py index 57e8e7a6d0..bfc0a8bb07 100644 --- a/plotly/validators/layout/newshape/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/layout/newshape/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/newshape/legendgrouptitle/font/_shadow.py b/plotly/validators/layout/newshape/legendgrouptitle/font/_shadow.py index 16e6333d57..39d9383717 100644 --- a/plotly/validators/layout/newshape/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/layout/newshape/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/newshape/legendgrouptitle/font/_size.py b/plotly/validators/layout/newshape/legendgrouptitle/font/_size.py index 1f3fa45256..2005f64a86 100644 --- a/plotly/validators/layout/newshape/legendgrouptitle/font/_size.py +++ b/plotly/validators/layout/newshape/legendgrouptitle/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/newshape/legendgrouptitle/font/_style.py b/plotly/validators/layout/newshape/legendgrouptitle/font/_style.py index 29bc22edce..9b36e9f123 100644 --- a/plotly/validators/layout/newshape/legendgrouptitle/font/_style.py +++ b/plotly/validators/layout/newshape/legendgrouptitle/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/newshape/legendgrouptitle/font/_textcase.py b/plotly/validators/layout/newshape/legendgrouptitle/font/_textcase.py index 830e7d0e2c..f19769ee9c 100644 --- a/plotly/validators/layout/newshape/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/layout/newshape/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/newshape/legendgrouptitle/font/_variant.py b/plotly/validators/layout/newshape/legendgrouptitle/font/_variant.py index 649cb2543c..6fc4f4f976 100644 --- a/plotly/validators/layout/newshape/legendgrouptitle/font/_variant.py +++ b/plotly/validators/layout/newshape/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/newshape/legendgrouptitle/font/_weight.py b/plotly/validators/layout/newshape/legendgrouptitle/font/_weight.py index 0a2daf5f52..7da2f4b585 100644 --- a/plotly/validators/layout/newshape/legendgrouptitle/font/_weight.py +++ b/plotly/validators/layout/newshape/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/newshape/line/__init__.py b/plotly/validators/layout/newshape/line/__init__.py index cff4146651..c5140ef758 100644 --- a/plotly/validators/layout/newshape/line/__init__.py +++ b/plotly/validators/layout/newshape/line/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._width.WidthValidator", "._dash.DashValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/layout/newshape/line/_color.py b/plotly/validators/layout/newshape/line/_color.py index 674e9080da..9aa97e9c7b 100644 --- a/plotly/validators/layout/newshape/line/_color.py +++ b/plotly/validators/layout/newshape/line/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/newshape/line/_dash.py b/plotly/validators/layout/newshape/line/_dash.py index 8cc38e9dfe..5bdf74d0cb 100644 --- a/plotly/validators/layout/newshape/line/_dash.py +++ b/plotly/validators/layout/newshape/line/_dash.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/layout/newshape/line/_width.py b/plotly/validators/layout/newshape/line/_width.py index c4bea32777..e961114046 100644 --- a/plotly/validators/layout/newshape/line/_width.py +++ b/plotly/validators/layout/newshape/line/_width.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/polar/__init__.py b/plotly/validators/layout/polar/__init__.py index 42956b8713..bbced9cd24 100644 --- a/plotly/validators/layout/polar/__init__.py +++ b/plotly/validators/layout/polar/__init__.py @@ -1,33 +1,19 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._uirevision import UirevisionValidator - from ._sector import SectorValidator - from ._radialaxis import RadialaxisValidator - from ._hole import HoleValidator - from ._gridshape import GridshapeValidator - from ._domain import DomainValidator - from ._bgcolor import BgcolorValidator - from ._barmode import BarmodeValidator - from ._bargap import BargapValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/polar/_angularaxis.py b/plotly/validators/layout/polar/_angularaxis.py index cced1665ce..964901ee8f 100644 --- a/plotly/validators/layout/polar/_angularaxis.py +++ b/plotly/validators/layout/polar/_angularaxis.py @@ -1,303 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AngularaxisValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/polar/_bargap.py b/plotly/validators/layout/polar/_bargap.py index e5167c56e9..cd94f345f4 100644 --- a/plotly/validators/layout/polar/_bargap.py +++ b/plotly/validators/layout/polar/_bargap.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BargapValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/polar/_barmode.py b/plotly/validators/layout/polar/_barmode.py index 1100a3671c..9d9edca91f 100644 --- a/plotly/validators/layout/polar/_barmode.py +++ b/plotly/validators/layout/polar/_barmode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BarmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["stack", "overlay"]), **kwargs, diff --git a/plotly/validators/layout/polar/_bgcolor.py b/plotly/validators/layout/polar/_bgcolor.py index f168d24cbb..4cff8e07b9 100644 --- a/plotly/validators/layout/polar/_bgcolor.py +++ b/plotly/validators/layout/polar/_bgcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/_domain.py b/plotly/validators/layout/polar/_domain.py index 814b46dce1..8c4eea9d05 100644 --- a/plotly/validators/layout/polar/_domain.py +++ b/plotly/validators/layout/polar/_domain.py @@ -1,28 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/polar/_gridshape.py b/plotly/validators/layout/polar/_gridshape.py index 438dd954f1..73fb27e1f4 100644 --- a/plotly/validators/layout/polar/_gridshape.py +++ b/plotly/validators/layout/polar/_gridshape.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridshapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["circular", "linear"]), **kwargs, diff --git a/plotly/validators/layout/polar/_hole.py b/plotly/validators/layout/polar/_hole.py index 4795a46b58..9c636a46c0 100644 --- a/plotly/validators/layout/polar/_hole.py +++ b/plotly/validators/layout/polar/_hole.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoleValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/polar/_radialaxis.py b/plotly/validators/layout/polar/_radialaxis.py index fa199d8d57..8456c9eca6 100644 --- a/plotly/validators/layout/polar/_radialaxis.py +++ b/plotly/validators/layout/polar/_radialaxis.py @@ -1,351 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RadialaxisValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/polar/_sector.py b/plotly/validators/layout/polar/_sector.py index 307f270c9c..dd2d37ed8a 100644 --- a/plotly/validators/layout/polar/_sector.py +++ b/plotly/validators/layout/polar/_sector.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SectorValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/polar/_uirevision.py b/plotly/validators/layout/polar/_uirevision.py index 9df8e5a598..b202f028ea 100644 --- a/plotly/validators/layout/polar/_uirevision.py +++ b/plotly/validators/layout/polar/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/polar/angularaxis/__init__.py b/plotly/validators/layout/polar/angularaxis/__init__.py index 02c7519fe5..fb6a5a28d4 100644 --- a/plotly/validators/layout/polar/angularaxis/__init__.py +++ b/plotly/validators/layout/polar/angularaxis/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._visible import VisibleValidator - from ._uirevision import UirevisionValidator - from ._type import TypeValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thetaunit import ThetaunitValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showline import ShowlineValidator - from ._showgrid import ShowgridValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._rotation import RotationValidator - from ._period import PeriodValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._linewidth import LinewidthValidator - from ._linecolor import LinecolorValidator - from ._layer import LayerValidator - from ._labelalias import LabelaliasValidator - from ._hoverformat import HoverformatValidator - from ._gridwidth import GridwidthValidator - from ._griddash import GriddashValidator - from ._gridcolor import GridcolorValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._direction import DirectionValidator - from ._color import ColorValidator - from ._categoryorder import CategoryorderValidator - from ._categoryarraysrc import CategoryarraysrcValidator - from ._categoryarray import CategoryarrayValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/polar/angularaxis/_autotypenumbers.py b/plotly/validators/layout/polar/angularaxis/_autotypenumbers.py index c4fb31ff10..7c55a8a2dd 100644 --- a/plotly/validators/layout/polar/angularaxis/_autotypenumbers.py +++ b/plotly/validators/layout/polar/angularaxis/_autotypenumbers.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutotypenumbersValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["convert types", "strict"]), **kwargs, diff --git a/plotly/validators/layout/polar/angularaxis/_categoryarray.py b/plotly/validators/layout/polar/angularaxis/_categoryarray.py index 233577c1a8..89745693f0 100644 --- a/plotly/validators/layout/polar/angularaxis/_categoryarray.py +++ b/plotly/validators/layout/polar/angularaxis/_categoryarray.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CategoryarrayValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/polar/angularaxis/_categoryarraysrc.py b/plotly/validators/layout/polar/angularaxis/_categoryarraysrc.py index 5b17a0ee66..eac1f7d62b 100644 --- a/plotly/validators/layout/polar/angularaxis/_categoryarraysrc.py +++ b/plotly/validators/layout/polar/angularaxis/_categoryarraysrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CategoryarraysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/polar/angularaxis/_categoryorder.py b/plotly/validators/layout/polar/angularaxis/_categoryorder.py index 934c867c12..0871e06b38 100644 --- a/plotly/validators/layout/polar/angularaxis/_categoryorder.py +++ b/plotly/validators/layout/polar/angularaxis/_categoryorder.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CategoryorderValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/polar/angularaxis/_color.py b/plotly/validators/layout/polar/angularaxis/_color.py index 5542e4e18d..5f54c526a0 100644 --- a/plotly/validators/layout/polar/angularaxis/_color.py +++ b/plotly/validators/layout/polar/angularaxis/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/angularaxis/_direction.py b/plotly/validators/layout/polar/angularaxis/_direction.py index b8ce2b5732..b54eec2fb2 100644 --- a/plotly/validators/layout/polar/angularaxis/_direction.py +++ b/plotly/validators/layout/polar/angularaxis/_direction.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DirectionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["counterclockwise", "clockwise"]), **kwargs, diff --git a/plotly/validators/layout/polar/angularaxis/_dtick.py b/plotly/validators/layout/polar/angularaxis/_dtick.py index 4c181c746f..752090ed6c 100644 --- a/plotly/validators/layout/polar/angularaxis/_dtick.py +++ b/plotly/validators/layout/polar/angularaxis/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/layout/polar/angularaxis/_exponentformat.py b/plotly/validators/layout/polar/angularaxis/_exponentformat.py index 74db8b4458..702b20be98 100644 --- a/plotly/validators/layout/polar/angularaxis/_exponentformat.py +++ b/plotly/validators/layout/polar/angularaxis/_exponentformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/layout/polar/angularaxis/_gridcolor.py b/plotly/validators/layout/polar/angularaxis/_gridcolor.py index 2d6dcda3cb..ce3a759d00 100644 --- a/plotly/validators/layout/polar/angularaxis/_gridcolor.py +++ b/plotly/validators/layout/polar/angularaxis/_gridcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/angularaxis/_griddash.py b/plotly/validators/layout/polar/angularaxis/_griddash.py index b5c0d236df..7159b193e1 100644 --- a/plotly/validators/layout/polar/angularaxis/_griddash.py +++ b/plotly/validators/layout/polar/angularaxis/_griddash.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GriddashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/layout/polar/angularaxis/_gridwidth.py b/plotly/validators/layout/polar/angularaxis/_gridwidth.py index f92929571f..7c6f11c9bf 100644 --- a/plotly/validators/layout/polar/angularaxis/_gridwidth.py +++ b/plotly/validators/layout/polar/angularaxis/_gridwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/polar/angularaxis/_hoverformat.py b/plotly/validators/layout/polar/angularaxis/_hoverformat.py index 7370c7294b..c834e67f18 100644 --- a/plotly/validators/layout/polar/angularaxis/_hoverformat.py +++ b/plotly/validators/layout/polar/angularaxis/_hoverformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/polar/angularaxis/_labelalias.py b/plotly/validators/layout/polar/angularaxis/_labelalias.py index 34062d37ba..0e402d32b1 100644 --- a/plotly/validators/layout/polar/angularaxis/_labelalias.py +++ b/plotly/validators/layout/polar/angularaxis/_labelalias.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/angularaxis/_layer.py b/plotly/validators/layout/polar/angularaxis/_layer.py index 4059947108..e1fe91e6d4 100644 --- a/plotly/validators/layout/polar/angularaxis/_layer.py +++ b/plotly/validators/layout/polar/angularaxis/_layer.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LayerValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["above traces", "below traces"]), **kwargs, diff --git a/plotly/validators/layout/polar/angularaxis/_linecolor.py b/plotly/validators/layout/polar/angularaxis/_linecolor.py index f1f0031807..3c9370636b 100644 --- a/plotly/validators/layout/polar/angularaxis/_linecolor.py +++ b/plotly/validators/layout/polar/angularaxis/_linecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/angularaxis/_linewidth.py b/plotly/validators/layout/polar/angularaxis/_linewidth.py index 52f24afbed..ac3efd62fa 100644 --- a/plotly/validators/layout/polar/angularaxis/_linewidth.py +++ b/plotly/validators/layout/polar/angularaxis/_linewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/polar/angularaxis/_minexponent.py b/plotly/validators/layout/polar/angularaxis/_minexponent.py index ec10b1d93c..a40518235c 100644 --- a/plotly/validators/layout/polar/angularaxis/_minexponent.py +++ b/plotly/validators/layout/polar/angularaxis/_minexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/polar/angularaxis/_nticks.py b/plotly/validators/layout/polar/angularaxis/_nticks.py index 0bea91ea07..f90455d026 100644 --- a/plotly/validators/layout/polar/angularaxis/_nticks.py +++ b/plotly/validators/layout/polar/angularaxis/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/polar/angularaxis/_period.py b/plotly/validators/layout/polar/angularaxis/_period.py index 0fd54802ce..9821723107 100644 --- a/plotly/validators/layout/polar/angularaxis/_period.py +++ b/plotly/validators/layout/polar/angularaxis/_period.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PeriodValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/polar/angularaxis/_rotation.py b/plotly/validators/layout/polar/angularaxis/_rotation.py index 286b130418..e592e54967 100644 --- a/plotly/validators/layout/polar/angularaxis/_rotation.py +++ b/plotly/validators/layout/polar/angularaxis/_rotation.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RotationValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/polar/angularaxis/_separatethousands.py b/plotly/validators/layout/polar/angularaxis/_separatethousands.py index 6719fa55eb..ae0dd236d4 100644 --- a/plotly/validators/layout/polar/angularaxis/_separatethousands.py +++ b/plotly/validators/layout/polar/angularaxis/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/angularaxis/_showexponent.py b/plotly/validators/layout/polar/angularaxis/_showexponent.py index 9e36eb0c27..d183ae81b3 100644 --- a/plotly/validators/layout/polar/angularaxis/_showexponent.py +++ b/plotly/validators/layout/polar/angularaxis/_showexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/polar/angularaxis/_showgrid.py b/plotly/validators/layout/polar/angularaxis/_showgrid.py index 2ee3cfc52b..03d1536e80 100644 --- a/plotly/validators/layout/polar/angularaxis/_showgrid.py +++ b/plotly/validators/layout/polar/angularaxis/_showgrid.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/angularaxis/_showline.py b/plotly/validators/layout/polar/angularaxis/_showline.py index 5795aff18a..aec27b5d1f 100644 --- a/plotly/validators/layout/polar/angularaxis/_showline.py +++ b/plotly/validators/layout/polar/angularaxis/_showline.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/angularaxis/_showticklabels.py b/plotly/validators/layout/polar/angularaxis/_showticklabels.py index 8e27e214bc..c4cc1987dc 100644 --- a/plotly/validators/layout/polar/angularaxis/_showticklabels.py +++ b/plotly/validators/layout/polar/angularaxis/_showticklabels.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/angularaxis/_showtickprefix.py b/plotly/validators/layout/polar/angularaxis/_showtickprefix.py index 5d431462eb..96afeed53d 100644 --- a/plotly/validators/layout/polar/angularaxis/_showtickprefix.py +++ b/plotly/validators/layout/polar/angularaxis/_showtickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/polar/angularaxis/_showticksuffix.py b/plotly/validators/layout/polar/angularaxis/_showticksuffix.py index 88e10e92db..610d01fe5c 100644 --- a/plotly/validators/layout/polar/angularaxis/_showticksuffix.py +++ b/plotly/validators/layout/polar/angularaxis/_showticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/polar/angularaxis/_thetaunit.py b/plotly/validators/layout/polar/angularaxis/_thetaunit.py index 4d2f41ed66..abb8f20503 100644 --- a/plotly/validators/layout/polar/angularaxis/_thetaunit.py +++ b/plotly/validators/layout/polar/angularaxis/_thetaunit.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThetaunitValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["radians", "degrees"]), **kwargs, diff --git a/plotly/validators/layout/polar/angularaxis/_tick0.py b/plotly/validators/layout/polar/angularaxis/_tick0.py index 7b6b0d051a..f6e5ef9c63 100644 --- a/plotly/validators/layout/polar/angularaxis/_tick0.py +++ b/plotly/validators/layout/polar/angularaxis/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/layout/polar/angularaxis/_tickangle.py b/plotly/validators/layout/polar/angularaxis/_tickangle.py index 01fa9b26e0..77f5c18bdb 100644 --- a/plotly/validators/layout/polar/angularaxis/_tickangle.py +++ b/plotly/validators/layout/polar/angularaxis/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/angularaxis/_tickcolor.py b/plotly/validators/layout/polar/angularaxis/_tickcolor.py index a63d09bbb5..cc95fd4535 100644 --- a/plotly/validators/layout/polar/angularaxis/_tickcolor.py +++ b/plotly/validators/layout/polar/angularaxis/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/angularaxis/_tickfont.py b/plotly/validators/layout/polar/angularaxis/_tickfont.py index a615aaba28..0bc79ca0ed 100644 --- a/plotly/validators/layout/polar/angularaxis/_tickfont.py +++ b/plotly/validators/layout/polar/angularaxis/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/polar/angularaxis/_tickformat.py b/plotly/validators/layout/polar/angularaxis/_tickformat.py index c160be58bd..a9b9be282a 100644 --- a/plotly/validators/layout/polar/angularaxis/_tickformat.py +++ b/plotly/validators/layout/polar/angularaxis/_tickformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/angularaxis/_tickformatstopdefaults.py b/plotly/validators/layout/polar/angularaxis/_tickformatstopdefaults.py index 2fe4dec564..d734a103c2 100644 --- a/plotly/validators/layout/polar/angularaxis/_tickformatstopdefaults.py +++ b/plotly/validators/layout/polar/angularaxis/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/polar/angularaxis/_tickformatstops.py b/plotly/validators/layout/polar/angularaxis/_tickformatstops.py index 13809e2e5c..ebbe81cef8 100644 --- a/plotly/validators/layout/polar/angularaxis/_tickformatstops.py +++ b/plotly/validators/layout/polar/angularaxis/_tickformatstops.py @@ -1,53 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/polar/angularaxis/_ticklabelstep.py b/plotly/validators/layout/polar/angularaxis/_ticklabelstep.py index 89edf13850..2261537161 100644 --- a/plotly/validators/layout/polar/angularaxis/_ticklabelstep.py +++ b/plotly/validators/layout/polar/angularaxis/_ticklabelstep.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/polar/angularaxis/_ticklen.py b/plotly/validators/layout/polar/angularaxis/_ticklen.py index 826379039f..159ffba0d7 100644 --- a/plotly/validators/layout/polar/angularaxis/_ticklen.py +++ b/plotly/validators/layout/polar/angularaxis/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/polar/angularaxis/_tickmode.py b/plotly/validators/layout/polar/angularaxis/_tickmode.py index 4acfc40cde..f259c1c851 100644 --- a/plotly/validators/layout/polar/angularaxis/_tickmode.py +++ b/plotly/validators/layout/polar/angularaxis/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/layout/polar/angularaxis/_tickprefix.py b/plotly/validators/layout/polar/angularaxis/_tickprefix.py index d0fa9bac22..553c28b79a 100644 --- a/plotly/validators/layout/polar/angularaxis/_tickprefix.py +++ b/plotly/validators/layout/polar/angularaxis/_tickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/angularaxis/_ticks.py b/plotly/validators/layout/polar/angularaxis/_ticks.py index 3220db663f..5117f2e834 100644 --- a/plotly/validators/layout/polar/angularaxis/_ticks.py +++ b/plotly/validators/layout/polar/angularaxis/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/layout/polar/angularaxis/_ticksuffix.py b/plotly/validators/layout/polar/angularaxis/_ticksuffix.py index 8f388f7114..b6506314a4 100644 --- a/plotly/validators/layout/polar/angularaxis/_ticksuffix.py +++ b/plotly/validators/layout/polar/angularaxis/_ticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/angularaxis/_ticktext.py b/plotly/validators/layout/polar/angularaxis/_ticktext.py index efd3457870..b5eceffd84 100644 --- a/plotly/validators/layout/polar/angularaxis/_ticktext.py +++ b/plotly/validators/layout/polar/angularaxis/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/angularaxis/_ticktextsrc.py b/plotly/validators/layout/polar/angularaxis/_ticktextsrc.py index 31a4de19d0..44e2b0afb3 100644 --- a/plotly/validators/layout/polar/angularaxis/_ticktextsrc.py +++ b/plotly/validators/layout/polar/angularaxis/_ticktextsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/polar/angularaxis/_tickvals.py b/plotly/validators/layout/polar/angularaxis/_tickvals.py index 3964899f09..8e368da147 100644 --- a/plotly/validators/layout/polar/angularaxis/_tickvals.py +++ b/plotly/validators/layout/polar/angularaxis/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/angularaxis/_tickvalssrc.py b/plotly/validators/layout/polar/angularaxis/_tickvalssrc.py index 671364f7be..684bd8c41a 100644 --- a/plotly/validators/layout/polar/angularaxis/_tickvalssrc.py +++ b/plotly/validators/layout/polar/angularaxis/_tickvalssrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/polar/angularaxis/_tickwidth.py b/plotly/validators/layout/polar/angularaxis/_tickwidth.py index cc73c0913b..6168abe1c9 100644 --- a/plotly/validators/layout/polar/angularaxis/_tickwidth.py +++ b/plotly/validators/layout/polar/angularaxis/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/polar/angularaxis/_type.py b/plotly/validators/layout/polar/angularaxis/_type.py index 00cc3b03f2..dff83d9b72 100644 --- a/plotly/validators/layout/polar/angularaxis/_type.py +++ b/plotly/validators/layout/polar/angularaxis/_type.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["-", "linear", "category"]), **kwargs, diff --git a/plotly/validators/layout/polar/angularaxis/_uirevision.py b/plotly/validators/layout/polar/angularaxis/_uirevision.py index 5a616ce81b..cd012ba79a 100644 --- a/plotly/validators/layout/polar/angularaxis/_uirevision.py +++ b/plotly/validators/layout/polar/angularaxis/_uirevision.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/polar/angularaxis/_visible.py b/plotly/validators/layout/polar/angularaxis/_visible.py index 0caebf1a76..8e5afd67c9 100644 --- a/plotly/validators/layout/polar/angularaxis/_visible.py +++ b/plotly/validators/layout/polar/angularaxis/_visible.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/angularaxis/tickfont/__init__.py b/plotly/validators/layout/polar/angularaxis/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/polar/angularaxis/tickfont/__init__.py +++ b/plotly/validators/layout/polar/angularaxis/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/polar/angularaxis/tickfont/_color.py b/plotly/validators/layout/polar/angularaxis/tickfont/_color.py index 01ab764bd3..85fc18978e 100644 --- a/plotly/validators/layout/polar/angularaxis/tickfont/_color.py +++ b/plotly/validators/layout/polar/angularaxis/tickfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/angularaxis/tickfont/_family.py b/plotly/validators/layout/polar/angularaxis/tickfont/_family.py index 94a810246d..7cb85d9168 100644 --- a/plotly/validators/layout/polar/angularaxis/tickfont/_family.py +++ b/plotly/validators/layout/polar/angularaxis/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/polar/angularaxis/tickfont/_lineposition.py b/plotly/validators/layout/polar/angularaxis/tickfont/_lineposition.py index 1528a65a5f..fb0c3bdf82 100644 --- a/plotly/validators/layout/polar/angularaxis/tickfont/_lineposition.py +++ b/plotly/validators/layout/polar/angularaxis/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/polar/angularaxis/tickfont/_shadow.py b/plotly/validators/layout/polar/angularaxis/tickfont/_shadow.py index e1446abad4..8abfac414c 100644 --- a/plotly/validators/layout/polar/angularaxis/tickfont/_shadow.py +++ b/plotly/validators/layout/polar/angularaxis/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/angularaxis/tickfont/_size.py b/plotly/validators/layout/polar/angularaxis/tickfont/_size.py index 9926e207da..bd81b20b36 100644 --- a/plotly/validators/layout/polar/angularaxis/tickfont/_size.py +++ b/plotly/validators/layout/polar/angularaxis/tickfont/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/polar/angularaxis/tickfont/_style.py b/plotly/validators/layout/polar/angularaxis/tickfont/_style.py index e10bd564b7..3b74a8b325 100644 --- a/plotly/validators/layout/polar/angularaxis/tickfont/_style.py +++ b/plotly/validators/layout/polar/angularaxis/tickfont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/polar/angularaxis/tickfont/_textcase.py b/plotly/validators/layout/polar/angularaxis/tickfont/_textcase.py index b2814f726c..94309cba63 100644 --- a/plotly/validators/layout/polar/angularaxis/tickfont/_textcase.py +++ b/plotly/validators/layout/polar/angularaxis/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/polar/angularaxis/tickfont/_variant.py b/plotly/validators/layout/polar/angularaxis/tickfont/_variant.py index 5d2643d565..3e6a963b6d 100644 --- a/plotly/validators/layout/polar/angularaxis/tickfont/_variant.py +++ b/plotly/validators/layout/polar/angularaxis/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/polar/angularaxis/tickfont/_weight.py b/plotly/validators/layout/polar/angularaxis/tickfont/_weight.py index 2fd57945c1..5f102e45f0 100644 --- a/plotly/validators/layout/polar/angularaxis/tickfont/_weight.py +++ b/plotly/validators/layout/polar/angularaxis/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/polar/angularaxis/tickformatstop/__init__.py b/plotly/validators/layout/polar/angularaxis/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/layout/polar/angularaxis/tickformatstop/__init__.py +++ b/plotly/validators/layout/polar/angularaxis/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/layout/polar/angularaxis/tickformatstop/_dtickrange.py b/plotly/validators/layout/polar/angularaxis/tickformatstop/_dtickrange.py index 40ce41230b..5698200f4f 100644 --- a/plotly/validators/layout/polar/angularaxis/tickformatstop/_dtickrange.py +++ b/plotly/validators/layout/polar/angularaxis/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/polar/angularaxis/tickformatstop/_enabled.py b/plotly/validators/layout/polar/angularaxis/tickformatstop/_enabled.py index 2d01c9a1af..dda8f5f194 100644 --- a/plotly/validators/layout/polar/angularaxis/tickformatstop/_enabled.py +++ b/plotly/validators/layout/polar/angularaxis/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/angularaxis/tickformatstop/_name.py b/plotly/validators/layout/polar/angularaxis/tickformatstop/_name.py index be3e5bf316..eb130e2455 100644 --- a/plotly/validators/layout/polar/angularaxis/tickformatstop/_name.py +++ b/plotly/validators/layout/polar/angularaxis/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/angularaxis/tickformatstop/_templateitemname.py b/plotly/validators/layout/polar/angularaxis/tickformatstop/_templateitemname.py index 8eb582d6d5..d699045b4c 100644 --- a/plotly/validators/layout/polar/angularaxis/tickformatstop/_templateitemname.py +++ b/plotly/validators/layout/polar/angularaxis/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/angularaxis/tickformatstop/_value.py b/plotly/validators/layout/polar/angularaxis/tickformatstop/_value.py index d133aa048d..3bc852046d 100644 --- a/plotly/validators/layout/polar/angularaxis/tickformatstop/_value.py +++ b/plotly/validators/layout/polar/angularaxis/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/domain/__init__.py b/plotly/validators/layout/polar/domain/__init__.py index 67de5030d0..42827f1d1e 100644 --- a/plotly/validators/layout/polar/domain/__init__.py +++ b/plotly/validators/layout/polar/domain/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._y import YValidator - from ._x import XValidator - from ._row import RowValidator - from ._column import ColumnValidator -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [], - [ - "._y.YValidator", - "._x.XValidator", - "._row.RowValidator", - "._column.ColumnValidator", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._y.YValidator", + "._x.XValidator", + "._row.RowValidator", + "._column.ColumnValidator", + ], +) diff --git a/plotly/validators/layout/polar/domain/_column.py b/plotly/validators/layout/polar/domain/_column.py index d22c8d7a5d..aab8258982 100644 --- a/plotly/validators/layout/polar/domain/_column.py +++ b/plotly/validators/layout/polar/domain/_column.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/polar/domain/_row.py b/plotly/validators/layout/polar/domain/_row.py index 924b140b8c..0b4818d1b6 100644 --- a/plotly/validators/layout/polar/domain/_row.py +++ b/plotly/validators/layout/polar/domain/_row.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RowValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/polar/domain/_x.py b/plotly/validators/layout/polar/domain/_x.py index 0fb9c88300..63d9113c1c 100644 --- a/plotly/validators/layout/polar/domain/_x.py +++ b/plotly/validators/layout/polar/domain/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/polar/domain/_y.py b/plotly/validators/layout/polar/domain/_y.py index e2c659ac27..6c116f6e89 100644 --- a/plotly/validators/layout/polar/domain/_y.py +++ b/plotly/validators/layout/polar/domain/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/polar/radialaxis/__init__.py b/plotly/validators/layout/polar/radialaxis/__init__.py index 4f19bdf159..e00324f45c 100644 --- a/plotly/validators/layout/polar/radialaxis/__init__.py +++ b/plotly/validators/layout/polar/radialaxis/__init__.py @@ -1,125 +1,65 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._visible import VisibleValidator - from ._uirevision import UirevisionValidator - from ._type import TypeValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._side import SideValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showline import ShowlineValidator - from ._showgrid import ShowgridValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._rangemode import RangemodeValidator - from ._range import RangeValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._minallowed import MinallowedValidator - from ._maxallowed import MaxallowedValidator - from ._linewidth import LinewidthValidator - from ._linecolor import LinecolorValidator - from ._layer import LayerValidator - from ._labelalias import LabelaliasValidator - from ._hoverformat import HoverformatValidator - from ._gridwidth import GridwidthValidator - from ._griddash import GriddashValidator - from ._gridcolor import GridcolorValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._color import ColorValidator - from ._categoryorder import CategoryorderValidator - from ._categoryarraysrc import CategoryarraysrcValidator - from ._categoryarray import CategoryarrayValidator - from ._calendar import CalendarValidator - from ._autotypenumbers import AutotypenumbersValidator - from ._autotickangles import AutotickanglesValidator - from ._autorangeoptions import AutorangeoptionsValidator - from ._autorange import AutorangeValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/polar/radialaxis/_angle.py b/plotly/validators/layout/polar/radialaxis/_angle.py index da1e1d0fcd..24f2c0dab8 100644 --- a/plotly/validators/layout/polar/radialaxis/_angle.py +++ b/plotly/validators/layout/polar/radialaxis/_angle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AngleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/radialaxis/_autorange.py b/plotly/validators/layout/polar/radialaxis/_autorange.py index af9cf4e5f3..2114c0f2a0 100644 --- a/plotly/validators/layout/polar/radialaxis/_autorange.py +++ b/plotly/validators/layout/polar/radialaxis/_autorange.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutorangeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop( diff --git a/plotly/validators/layout/polar/radialaxis/_autorangeoptions.py b/plotly/validators/layout/polar/radialaxis/_autorangeoptions.py index 5920011fbe..e066898556 100644 --- a/plotly/validators/layout/polar/radialaxis/_autorangeoptions.py +++ b/plotly/validators/layout/polar/radialaxis/_autorangeoptions.py @@ -1,37 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutorangeoptionsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/polar/radialaxis/_autotickangles.py b/plotly/validators/layout/polar/radialaxis/_autotickangles.py index 9338fb88df..e7839886a6 100644 --- a/plotly/validators/layout/polar/radialaxis/_autotickangles.py +++ b/plotly/validators/layout/polar/radialaxis/_autotickangles.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutotickanglesValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), free_length=kwargs.pop("free_length", True), items=kwargs.pop("items", {"valType": "angle"}), diff --git a/plotly/validators/layout/polar/radialaxis/_autotypenumbers.py b/plotly/validators/layout/polar/radialaxis/_autotypenumbers.py index 3dfcc3c718..e1069ada53 100644 --- a/plotly/validators/layout/polar/radialaxis/_autotypenumbers.py +++ b/plotly/validators/layout/polar/radialaxis/_autotypenumbers.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutotypenumbersValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["convert types", "strict"]), **kwargs, diff --git a/plotly/validators/layout/polar/radialaxis/_calendar.py b/plotly/validators/layout/polar/radialaxis/_calendar.py index 04b8266c42..dff1201fd7 100644 --- a/plotly/validators/layout/polar/radialaxis/_calendar.py +++ b/plotly/validators/layout/polar/radialaxis/_calendar.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/polar/radialaxis/_categoryarray.py b/plotly/validators/layout/polar/radialaxis/_categoryarray.py index a31614ecf6..9e74818e09 100644 --- a/plotly/validators/layout/polar/radialaxis/_categoryarray.py +++ b/plotly/validators/layout/polar/radialaxis/_categoryarray.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CategoryarrayValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/polar/radialaxis/_categoryarraysrc.py b/plotly/validators/layout/polar/radialaxis/_categoryarraysrc.py index 7e9e8375b9..bdb9587e8f 100644 --- a/plotly/validators/layout/polar/radialaxis/_categoryarraysrc.py +++ b/plotly/validators/layout/polar/radialaxis/_categoryarraysrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CategoryarraysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/polar/radialaxis/_categoryorder.py b/plotly/validators/layout/polar/radialaxis/_categoryorder.py index ecd82f18d3..3b68a2de55 100644 --- a/plotly/validators/layout/polar/radialaxis/_categoryorder.py +++ b/plotly/validators/layout/polar/radialaxis/_categoryorder.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CategoryorderValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/polar/radialaxis/_color.py b/plotly/validators/layout/polar/radialaxis/_color.py index c6ac9bef47..3391df212b 100644 --- a/plotly/validators/layout/polar/radialaxis/_color.py +++ b/plotly/validators/layout/polar/radialaxis/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/radialaxis/_dtick.py b/plotly/validators/layout/polar/radialaxis/_dtick.py index 39a2e9ca32..0b4acdd96b 100644 --- a/plotly/validators/layout/polar/radialaxis/_dtick.py +++ b/plotly/validators/layout/polar/radialaxis/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/layout/polar/radialaxis/_exponentformat.py b/plotly/validators/layout/polar/radialaxis/_exponentformat.py index 73046ca69d..bada5e5d83 100644 --- a/plotly/validators/layout/polar/radialaxis/_exponentformat.py +++ b/plotly/validators/layout/polar/radialaxis/_exponentformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/layout/polar/radialaxis/_gridcolor.py b/plotly/validators/layout/polar/radialaxis/_gridcolor.py index 1e8a2820fa..9cb3f212fa 100644 --- a/plotly/validators/layout/polar/radialaxis/_gridcolor.py +++ b/plotly/validators/layout/polar/radialaxis/_gridcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/radialaxis/_griddash.py b/plotly/validators/layout/polar/radialaxis/_griddash.py index 004ade41b0..bc56e99794 100644 --- a/plotly/validators/layout/polar/radialaxis/_griddash.py +++ b/plotly/validators/layout/polar/radialaxis/_griddash.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GriddashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/layout/polar/radialaxis/_gridwidth.py b/plotly/validators/layout/polar/radialaxis/_gridwidth.py index 23b8327649..d1106e5780 100644 --- a/plotly/validators/layout/polar/radialaxis/_gridwidth.py +++ b/plotly/validators/layout/polar/radialaxis/_gridwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/polar/radialaxis/_hoverformat.py b/plotly/validators/layout/polar/radialaxis/_hoverformat.py index 8681eb9163..0523804987 100644 --- a/plotly/validators/layout/polar/radialaxis/_hoverformat.py +++ b/plotly/validators/layout/polar/radialaxis/_hoverformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/polar/radialaxis/_labelalias.py b/plotly/validators/layout/polar/radialaxis/_labelalias.py index 7e3a180aa8..5369af3d5f 100644 --- a/plotly/validators/layout/polar/radialaxis/_labelalias.py +++ b/plotly/validators/layout/polar/radialaxis/_labelalias.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/radialaxis/_layer.py b/plotly/validators/layout/polar/radialaxis/_layer.py index 09f45dee59..db6f68cfdd 100644 --- a/plotly/validators/layout/polar/radialaxis/_layer.py +++ b/plotly/validators/layout/polar/radialaxis/_layer.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LayerValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["above traces", "below traces"]), **kwargs, diff --git a/plotly/validators/layout/polar/radialaxis/_linecolor.py b/plotly/validators/layout/polar/radialaxis/_linecolor.py index aadb3aa1b5..ef1a9ac278 100644 --- a/plotly/validators/layout/polar/radialaxis/_linecolor.py +++ b/plotly/validators/layout/polar/radialaxis/_linecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/radialaxis/_linewidth.py b/plotly/validators/layout/polar/radialaxis/_linewidth.py index 6d8216a40f..c278ef8e87 100644 --- a/plotly/validators/layout/polar/radialaxis/_linewidth.py +++ b/plotly/validators/layout/polar/radialaxis/_linewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/polar/radialaxis/_maxallowed.py b/plotly/validators/layout/polar/radialaxis/_maxallowed.py index ee6a29d22d..9f9dfa333f 100644 --- a/plotly/validators/layout/polar/radialaxis/_maxallowed.py +++ b/plotly/validators/layout/polar/radialaxis/_maxallowed.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxallowedValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"^autorange": False}), **kwargs, diff --git a/plotly/validators/layout/polar/radialaxis/_minallowed.py b/plotly/validators/layout/polar/radialaxis/_minallowed.py index 8b7d83f93d..5a80dd1e55 100644 --- a/plotly/validators/layout/polar/radialaxis/_minallowed.py +++ b/plotly/validators/layout/polar/radialaxis/_minallowed.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinallowedValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"^autorange": False}), **kwargs, diff --git a/plotly/validators/layout/polar/radialaxis/_minexponent.py b/plotly/validators/layout/polar/radialaxis/_minexponent.py index 010bf6f6f9..1487cd546a 100644 --- a/plotly/validators/layout/polar/radialaxis/_minexponent.py +++ b/plotly/validators/layout/polar/radialaxis/_minexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/polar/radialaxis/_nticks.py b/plotly/validators/layout/polar/radialaxis/_nticks.py index 8b760bd621..eeb6991ef2 100644 --- a/plotly/validators/layout/polar/radialaxis/_nticks.py +++ b/plotly/validators/layout/polar/radialaxis/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/polar/radialaxis/_range.py b/plotly/validators/layout/polar/radialaxis/_range.py index 1ed75419d6..331c406e1a 100644 --- a/plotly/validators/layout/polar/radialaxis/_range.py +++ b/plotly/validators/layout/polar/radialaxis/_range.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"autorange": False}), diff --git a/plotly/validators/layout/polar/radialaxis/_rangemode.py b/plotly/validators/layout/polar/radialaxis/_rangemode.py index 89b2c4a9f2..8ddf79bca6 100644 --- a/plotly/validators/layout/polar/radialaxis/_rangemode.py +++ b/plotly/validators/layout/polar/radialaxis/_rangemode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RangemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["tozero", "nonnegative", "normal"]), **kwargs, diff --git a/plotly/validators/layout/polar/radialaxis/_separatethousands.py b/plotly/validators/layout/polar/radialaxis/_separatethousands.py index 02ca7be190..10ced87baa 100644 --- a/plotly/validators/layout/polar/radialaxis/_separatethousands.py +++ b/plotly/validators/layout/polar/radialaxis/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/radialaxis/_showexponent.py b/plotly/validators/layout/polar/radialaxis/_showexponent.py index c9a6b09307..6044707b4a 100644 --- a/plotly/validators/layout/polar/radialaxis/_showexponent.py +++ b/plotly/validators/layout/polar/radialaxis/_showexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/polar/radialaxis/_showgrid.py b/plotly/validators/layout/polar/radialaxis/_showgrid.py index 1b583de9f9..ea0c8dcf75 100644 --- a/plotly/validators/layout/polar/radialaxis/_showgrid.py +++ b/plotly/validators/layout/polar/radialaxis/_showgrid.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/radialaxis/_showline.py b/plotly/validators/layout/polar/radialaxis/_showline.py index 4ba8862529..9423ae84fc 100644 --- a/plotly/validators/layout/polar/radialaxis/_showline.py +++ b/plotly/validators/layout/polar/radialaxis/_showline.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/radialaxis/_showticklabels.py b/plotly/validators/layout/polar/radialaxis/_showticklabels.py index 799108d739..65500eb506 100644 --- a/plotly/validators/layout/polar/radialaxis/_showticklabels.py +++ b/plotly/validators/layout/polar/radialaxis/_showticklabels.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/radialaxis/_showtickprefix.py b/plotly/validators/layout/polar/radialaxis/_showtickprefix.py index fe867368da..93a5f15f33 100644 --- a/plotly/validators/layout/polar/radialaxis/_showtickprefix.py +++ b/plotly/validators/layout/polar/radialaxis/_showtickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/polar/radialaxis/_showticksuffix.py b/plotly/validators/layout/polar/radialaxis/_showticksuffix.py index 4db6465ecc..5a5e771e8f 100644 --- a/plotly/validators/layout/polar/radialaxis/_showticksuffix.py +++ b/plotly/validators/layout/polar/radialaxis/_showticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/polar/radialaxis/_side.py b/plotly/validators/layout/polar/radialaxis/_side.py index f54d7de3a7..c916ccfad0 100644 --- a/plotly/validators/layout/polar/radialaxis/_side.py +++ b/plotly/validators/layout/polar/radialaxis/_side.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["clockwise", "counterclockwise"]), **kwargs, diff --git a/plotly/validators/layout/polar/radialaxis/_tick0.py b/plotly/validators/layout/polar/radialaxis/_tick0.py index 8c2e2eefaf..a36f48bf90 100644 --- a/plotly/validators/layout/polar/radialaxis/_tick0.py +++ b/plotly/validators/layout/polar/radialaxis/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/layout/polar/radialaxis/_tickangle.py b/plotly/validators/layout/polar/radialaxis/_tickangle.py index 3a0acfdd8c..0068c80a2d 100644 --- a/plotly/validators/layout/polar/radialaxis/_tickangle.py +++ b/plotly/validators/layout/polar/radialaxis/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/radialaxis/_tickcolor.py b/plotly/validators/layout/polar/radialaxis/_tickcolor.py index 343113607d..146639b1b6 100644 --- a/plotly/validators/layout/polar/radialaxis/_tickcolor.py +++ b/plotly/validators/layout/polar/radialaxis/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/radialaxis/_tickfont.py b/plotly/validators/layout/polar/radialaxis/_tickfont.py index ad67d14d26..47847fd571 100644 --- a/plotly/validators/layout/polar/radialaxis/_tickfont.py +++ b/plotly/validators/layout/polar/radialaxis/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/polar/radialaxis/_tickformat.py b/plotly/validators/layout/polar/radialaxis/_tickformat.py index d83bdf2e2b..18275980c8 100644 --- a/plotly/validators/layout/polar/radialaxis/_tickformat.py +++ b/plotly/validators/layout/polar/radialaxis/_tickformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/radialaxis/_tickformatstopdefaults.py b/plotly/validators/layout/polar/radialaxis/_tickformatstopdefaults.py index 075a4d892d..82cd111532 100644 --- a/plotly/validators/layout/polar/radialaxis/_tickformatstopdefaults.py +++ b/plotly/validators/layout/polar/radialaxis/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/polar/radialaxis/_tickformatstops.py b/plotly/validators/layout/polar/radialaxis/_tickformatstops.py index 41a080b5b0..92fc82a1e4 100644 --- a/plotly/validators/layout/polar/radialaxis/_tickformatstops.py +++ b/plotly/validators/layout/polar/radialaxis/_tickformatstops.py @@ -1,53 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/polar/radialaxis/_ticklabelstep.py b/plotly/validators/layout/polar/radialaxis/_ticklabelstep.py index 4321fc6d24..d4fddd6316 100644 --- a/plotly/validators/layout/polar/radialaxis/_ticklabelstep.py +++ b/plotly/validators/layout/polar/radialaxis/_ticklabelstep.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/polar/radialaxis/_ticklen.py b/plotly/validators/layout/polar/radialaxis/_ticklen.py index 3373cf967c..011c2d0a9a 100644 --- a/plotly/validators/layout/polar/radialaxis/_ticklen.py +++ b/plotly/validators/layout/polar/radialaxis/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/polar/radialaxis/_tickmode.py b/plotly/validators/layout/polar/radialaxis/_tickmode.py index 9cd4a4e43c..a1955b2492 100644 --- a/plotly/validators/layout/polar/radialaxis/_tickmode.py +++ b/plotly/validators/layout/polar/radialaxis/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/layout/polar/radialaxis/_tickprefix.py b/plotly/validators/layout/polar/radialaxis/_tickprefix.py index cd7502f133..eecd4ebffe 100644 --- a/plotly/validators/layout/polar/radialaxis/_tickprefix.py +++ b/plotly/validators/layout/polar/radialaxis/_tickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/radialaxis/_ticks.py b/plotly/validators/layout/polar/radialaxis/_ticks.py index 1e885a57ff..c6d6893dfa 100644 --- a/plotly/validators/layout/polar/radialaxis/_ticks.py +++ b/plotly/validators/layout/polar/radialaxis/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/layout/polar/radialaxis/_ticksuffix.py b/plotly/validators/layout/polar/radialaxis/_ticksuffix.py index e134aaecf6..7ee546e89e 100644 --- a/plotly/validators/layout/polar/radialaxis/_ticksuffix.py +++ b/plotly/validators/layout/polar/radialaxis/_ticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/radialaxis/_ticktext.py b/plotly/validators/layout/polar/radialaxis/_ticktext.py index ce387f8c30..35c0d977d3 100644 --- a/plotly/validators/layout/polar/radialaxis/_ticktext.py +++ b/plotly/validators/layout/polar/radialaxis/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/radialaxis/_ticktextsrc.py b/plotly/validators/layout/polar/radialaxis/_ticktextsrc.py index 94e4a40e0f..f77abd9cc7 100644 --- a/plotly/validators/layout/polar/radialaxis/_ticktextsrc.py +++ b/plotly/validators/layout/polar/radialaxis/_ticktextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/polar/radialaxis/_tickvals.py b/plotly/validators/layout/polar/radialaxis/_tickvals.py index 643e0b978b..60ef276ebb 100644 --- a/plotly/validators/layout/polar/radialaxis/_tickvals.py +++ b/plotly/validators/layout/polar/radialaxis/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/radialaxis/_tickvalssrc.py b/plotly/validators/layout/polar/radialaxis/_tickvalssrc.py index 18f7cc7a0a..02b106818e 100644 --- a/plotly/validators/layout/polar/radialaxis/_tickvalssrc.py +++ b/plotly/validators/layout/polar/radialaxis/_tickvalssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/polar/radialaxis/_tickwidth.py b/plotly/validators/layout/polar/radialaxis/_tickwidth.py index a0a6cf00ff..9d58a35dd9 100644 --- a/plotly/validators/layout/polar/radialaxis/_tickwidth.py +++ b/plotly/validators/layout/polar/radialaxis/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/polar/radialaxis/_title.py b/plotly/validators/layout/polar/radialaxis/_title.py index bc4cd9a874..e9fe179e0b 100644 --- a/plotly/validators/layout/polar/radialaxis/_title.py +++ b/plotly/validators/layout/polar/radialaxis/_title.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/polar/radialaxis/_type.py b/plotly/validators/layout/polar/radialaxis/_type.py index 42ed593d4e..d0f23cb571 100644 --- a/plotly/validators/layout/polar/radialaxis/_type.py +++ b/plotly/validators/layout/polar/radialaxis/_type.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["-", "linear", "log", "date", "category"]), **kwargs, diff --git a/plotly/validators/layout/polar/radialaxis/_uirevision.py b/plotly/validators/layout/polar/radialaxis/_uirevision.py index 47e3d1eaed..306eb87f11 100644 --- a/plotly/validators/layout/polar/radialaxis/_uirevision.py +++ b/plotly/validators/layout/polar/radialaxis/_uirevision.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/polar/radialaxis/_visible.py b/plotly/validators/layout/polar/radialaxis/_visible.py index d09b1c2dcc..25d97e6548 100644 --- a/plotly/validators/layout/polar/radialaxis/_visible.py +++ b/plotly/validators/layout/polar/radialaxis/_visible.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/radialaxis/autorangeoptions/__init__.py b/plotly/validators/layout/polar/radialaxis/autorangeoptions/__init__.py index 701f84c04e..8ef0b74165 100644 --- a/plotly/validators/layout/polar/radialaxis/autorangeoptions/__init__.py +++ b/plotly/validators/layout/polar/radialaxis/autorangeoptions/__init__.py @@ -1,25 +1,15 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._minallowed import MinallowedValidator - from ._maxallowed import MaxallowedValidator - from ._includesrc import IncludesrcValidator - from ._include import IncludeValidator - from ._clipmin import ClipminValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._minallowed.MinallowedValidator", + "._maxallowed.MaxallowedValidator", + "._includesrc.IncludesrcValidator", + "._include.IncludeValidator", + "._clipmin.ClipminValidator", + "._clipmax.ClipmaxValidator", + ], +) diff --git a/plotly/validators/layout/polar/radialaxis/autorangeoptions/_clipmax.py b/plotly/validators/layout/polar/radialaxis/autorangeoptions/_clipmax.py index 6196cc9bf8..f20e207466 100644 --- a/plotly/validators/layout/polar/radialaxis/autorangeoptions/_clipmax.py +++ b/plotly/validators/layout/polar/radialaxis/autorangeoptions/_clipmax.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ClipmaxValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/layout/polar/radialaxis/autorangeoptions/_clipmin.py b/plotly/validators/layout/polar/radialaxis/autorangeoptions/_clipmin.py index db92e2cc25..6137912f4a 100644 --- a/plotly/validators/layout/polar/radialaxis/autorangeoptions/_clipmin.py +++ b/plotly/validators/layout/polar/radialaxis/autorangeoptions/_clipmin.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ClipminValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/layout/polar/radialaxis/autorangeoptions/_include.py b/plotly/validators/layout/polar/radialaxis/autorangeoptions/_include.py index 3a64de5c16..6b1eb0d81e 100644 --- a/plotly/validators/layout/polar/radialaxis/autorangeoptions/_include.py +++ b/plotly/validators/layout/polar/radialaxis/autorangeoptions/_include.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IncludeValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), diff --git a/plotly/validators/layout/polar/radialaxis/autorangeoptions/_includesrc.py b/plotly/validators/layout/polar/radialaxis/autorangeoptions/_includesrc.py index 144738c795..1b3914189f 100644 --- a/plotly/validators/layout/polar/radialaxis/autorangeoptions/_includesrc.py +++ b/plotly/validators/layout/polar/radialaxis/autorangeoptions/_includesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IncludesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/polar/radialaxis/autorangeoptions/_maxallowed.py b/plotly/validators/layout/polar/radialaxis/autorangeoptions/_maxallowed.py index 12bf22d96c..63d9f27ab1 100644 --- a/plotly/validators/layout/polar/radialaxis/autorangeoptions/_maxallowed.py +++ b/plotly/validators/layout/polar/radialaxis/autorangeoptions/_maxallowed.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxallowedValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/layout/polar/radialaxis/autorangeoptions/_minallowed.py b/plotly/validators/layout/polar/radialaxis/autorangeoptions/_minallowed.py index 95b06d26ee..bf38769ddd 100644 --- a/plotly/validators/layout/polar/radialaxis/autorangeoptions/_minallowed.py +++ b/plotly/validators/layout/polar/radialaxis/autorangeoptions/_minallowed.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinallowedValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/layout/polar/radialaxis/tickfont/__init__.py b/plotly/validators/layout/polar/radialaxis/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/polar/radialaxis/tickfont/__init__.py +++ b/plotly/validators/layout/polar/radialaxis/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/polar/radialaxis/tickfont/_color.py b/plotly/validators/layout/polar/radialaxis/tickfont/_color.py index 8023362f58..3391ef1602 100644 --- a/plotly/validators/layout/polar/radialaxis/tickfont/_color.py +++ b/plotly/validators/layout/polar/radialaxis/tickfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/radialaxis/tickfont/_family.py b/plotly/validators/layout/polar/radialaxis/tickfont/_family.py index b585e5ab66..9be3125b52 100644 --- a/plotly/validators/layout/polar/radialaxis/tickfont/_family.py +++ b/plotly/validators/layout/polar/radialaxis/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/polar/radialaxis/tickfont/_lineposition.py b/plotly/validators/layout/polar/radialaxis/tickfont/_lineposition.py index 70eb69c23e..8bc142b4c0 100644 --- a/plotly/validators/layout/polar/radialaxis/tickfont/_lineposition.py +++ b/plotly/validators/layout/polar/radialaxis/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/polar/radialaxis/tickfont/_shadow.py b/plotly/validators/layout/polar/radialaxis/tickfont/_shadow.py index 8545b8ded8..1be2192ef9 100644 --- a/plotly/validators/layout/polar/radialaxis/tickfont/_shadow.py +++ b/plotly/validators/layout/polar/radialaxis/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/radialaxis/tickfont/_size.py b/plotly/validators/layout/polar/radialaxis/tickfont/_size.py index a7493d083b..8b65f4f3e4 100644 --- a/plotly/validators/layout/polar/radialaxis/tickfont/_size.py +++ b/plotly/validators/layout/polar/radialaxis/tickfont/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/polar/radialaxis/tickfont/_style.py b/plotly/validators/layout/polar/radialaxis/tickfont/_style.py index 7f6fa6f5b1..5502c6a744 100644 --- a/plotly/validators/layout/polar/radialaxis/tickfont/_style.py +++ b/plotly/validators/layout/polar/radialaxis/tickfont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/polar/radialaxis/tickfont/_textcase.py b/plotly/validators/layout/polar/radialaxis/tickfont/_textcase.py index 81149627f7..8a95673564 100644 --- a/plotly/validators/layout/polar/radialaxis/tickfont/_textcase.py +++ b/plotly/validators/layout/polar/radialaxis/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/polar/radialaxis/tickfont/_variant.py b/plotly/validators/layout/polar/radialaxis/tickfont/_variant.py index eb0a77242f..69750df018 100644 --- a/plotly/validators/layout/polar/radialaxis/tickfont/_variant.py +++ b/plotly/validators/layout/polar/radialaxis/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/polar/radialaxis/tickfont/_weight.py b/plotly/validators/layout/polar/radialaxis/tickfont/_weight.py index 50d84447a8..19432ed838 100644 --- a/plotly/validators/layout/polar/radialaxis/tickfont/_weight.py +++ b/plotly/validators/layout/polar/radialaxis/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/polar/radialaxis/tickformatstop/__init__.py b/plotly/validators/layout/polar/radialaxis/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/layout/polar/radialaxis/tickformatstop/__init__.py +++ b/plotly/validators/layout/polar/radialaxis/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/layout/polar/radialaxis/tickformatstop/_dtickrange.py b/plotly/validators/layout/polar/radialaxis/tickformatstop/_dtickrange.py index 3d53c63dd5..bf1c5871fa 100644 --- a/plotly/validators/layout/polar/radialaxis/tickformatstop/_dtickrange.py +++ b/plotly/validators/layout/polar/radialaxis/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/polar/radialaxis/tickformatstop/_enabled.py b/plotly/validators/layout/polar/radialaxis/tickformatstop/_enabled.py index be8503cc3d..8a7d6ba053 100644 --- a/plotly/validators/layout/polar/radialaxis/tickformatstop/_enabled.py +++ b/plotly/validators/layout/polar/radialaxis/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/radialaxis/tickformatstop/_name.py b/plotly/validators/layout/polar/radialaxis/tickformatstop/_name.py index a3d7ce3b93..91c5f76a7a 100644 --- a/plotly/validators/layout/polar/radialaxis/tickformatstop/_name.py +++ b/plotly/validators/layout/polar/radialaxis/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/radialaxis/tickformatstop/_templateitemname.py b/plotly/validators/layout/polar/radialaxis/tickformatstop/_templateitemname.py index 43e9ed4b5a..3a93f66c2a 100644 --- a/plotly/validators/layout/polar/radialaxis/tickformatstop/_templateitemname.py +++ b/plotly/validators/layout/polar/radialaxis/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/radialaxis/tickformatstop/_value.py b/plotly/validators/layout/polar/radialaxis/tickformatstop/_value.py index d991d35a6e..10ede7462e 100644 --- a/plotly/validators/layout/polar/radialaxis/tickformatstop/_value.py +++ b/plotly/validators/layout/polar/radialaxis/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/radialaxis/title/__init__.py b/plotly/validators/layout/polar/radialaxis/title/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/layout/polar/radialaxis/title/__init__.py +++ b/plotly/validators/layout/polar/radialaxis/title/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/layout/polar/radialaxis/title/_font.py b/plotly/validators/layout/polar/radialaxis/title/_font.py index 2ac30fd47d..43982da76d 100644 --- a/plotly/validators/layout/polar/radialaxis/title/_font.py +++ b/plotly/validators/layout/polar/radialaxis/title/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/polar/radialaxis/title/_text.py b/plotly/validators/layout/polar/radialaxis/title/_text.py index 9b77810add..3e41259d86 100644 --- a/plotly/validators/layout/polar/radialaxis/title/_text.py +++ b/plotly/validators/layout/polar/radialaxis/title/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/polar/radialaxis/title/font/__init__.py b/plotly/validators/layout/polar/radialaxis/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/polar/radialaxis/title/font/__init__.py +++ b/plotly/validators/layout/polar/radialaxis/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/polar/radialaxis/title/font/_color.py b/plotly/validators/layout/polar/radialaxis/title/font/_color.py index 7e5f192aca..31d47dd23b 100644 --- a/plotly/validators/layout/polar/radialaxis/title/font/_color.py +++ b/plotly/validators/layout/polar/radialaxis/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/polar/radialaxis/title/font/_family.py b/plotly/validators/layout/polar/radialaxis/title/font/_family.py index ae854b998d..1fd427f2d9 100644 --- a/plotly/validators/layout/polar/radialaxis/title/font/_family.py +++ b/plotly/validators/layout/polar/radialaxis/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/polar/radialaxis/title/font/_lineposition.py b/plotly/validators/layout/polar/radialaxis/title/font/_lineposition.py index 5ae165ec28..f68acbb7bf 100644 --- a/plotly/validators/layout/polar/radialaxis/title/font/_lineposition.py +++ b/plotly/validators/layout/polar/radialaxis/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/polar/radialaxis/title/font/_shadow.py b/plotly/validators/layout/polar/radialaxis/title/font/_shadow.py index b438566564..d053dc31f8 100644 --- a/plotly/validators/layout/polar/radialaxis/title/font/_shadow.py +++ b/plotly/validators/layout/polar/radialaxis/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/polar/radialaxis/title/font/_size.py b/plotly/validators/layout/polar/radialaxis/title/font/_size.py index 8e4395068c..929014ae73 100644 --- a/plotly/validators/layout/polar/radialaxis/title/font/_size.py +++ b/plotly/validators/layout/polar/radialaxis/title/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/polar/radialaxis/title/font/_style.py b/plotly/validators/layout/polar/radialaxis/title/font/_style.py index 6682debb1b..15ceab7444 100644 --- a/plotly/validators/layout/polar/radialaxis/title/font/_style.py +++ b/plotly/validators/layout/polar/radialaxis/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/polar/radialaxis/title/font/_textcase.py b/plotly/validators/layout/polar/radialaxis/title/font/_textcase.py index 1bc0820cb6..ea9e03f53e 100644 --- a/plotly/validators/layout/polar/radialaxis/title/font/_textcase.py +++ b/plotly/validators/layout/polar/radialaxis/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/polar/radialaxis/title/font/_variant.py b/plotly/validators/layout/polar/radialaxis/title/font/_variant.py index b650934f40..d80b8d63b0 100644 --- a/plotly/validators/layout/polar/radialaxis/title/font/_variant.py +++ b/plotly/validators/layout/polar/radialaxis/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/polar/radialaxis/title/font/_weight.py b/plotly/validators/layout/polar/radialaxis/title/font/_weight.py index 2de5695abe..65fa8c5ea8 100644 --- a/plotly/validators/layout/polar/radialaxis/title/font/_weight.py +++ b/plotly/validators/layout/polar/radialaxis/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/scene/__init__.py b/plotly/validators/layout/scene/__init__.py index 28f3948043..523da179fa 100644 --- a/plotly/validators/layout/scene/__init__.py +++ b/plotly/validators/layout/scene/__init__.py @@ -1,39 +1,22 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zaxis import ZaxisValidator - from ._yaxis import YaxisValidator - from ._xaxis import XaxisValidator - from ._uirevision import UirevisionValidator - from ._hovermode import HovermodeValidator - from ._dragmode import DragmodeValidator - from ._domain import DomainValidator - from ._camera import CameraValidator - from ._bgcolor import BgcolorValidator - from ._aspectratio import AspectratioValidator - from ._aspectmode import AspectmodeValidator - from ._annotationdefaults import AnnotationdefaultsValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/scene/_annotationdefaults.py b/plotly/validators/layout/scene/_annotationdefaults.py index a6faa3f14d..16c37644bd 100644 --- a/plotly/validators/layout/scene/_annotationdefaults.py +++ b/plotly/validators/layout/scene/_annotationdefaults.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AnnotationdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Annotation"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/scene/_annotations.py b/plotly/validators/layout/scene/_annotations.py index 59bc4de65b..ce6d729693 100644 --- a/plotly/validators/layout/scene/_annotations.py +++ b/plotly/validators/layout/scene/_annotations.py @@ -1,191 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AnnotationsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/scene/_aspectmode.py b/plotly/validators/layout/scene/_aspectmode.py index b610258cff..7f64584164 100644 --- a/plotly/validators/layout/scene/_aspectmode.py +++ b/plotly/validators/layout/scene/_aspectmode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AspectmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "cube", "data", "manual"]), diff --git a/plotly/validators/layout/scene/_aspectratio.py b/plotly/validators/layout/scene/_aspectratio.py index b48c3f8597..bf150b8fe2 100644 --- a/plotly/validators/layout/scene/_aspectratio.py +++ b/plotly/validators/layout/scene/_aspectratio.py @@ -1,21 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AspectratioValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Aspectratio"), data_docs=kwargs.pop( "data_docs", """ - x - - y - - z - """, ), **kwargs, diff --git a/plotly/validators/layout/scene/_bgcolor.py b/plotly/validators/layout/scene/_bgcolor.py index 59f974c386..2c03629b4d 100644 --- a/plotly/validators/layout/scene/_bgcolor.py +++ b/plotly/validators/layout/scene/_bgcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/_camera.py b/plotly/validators/layout/scene/_camera.py index 15cd9b4121..5866229719 100644 --- a/plotly/validators/layout/scene/_camera.py +++ b/plotly/validators/layout/scene/_camera.py @@ -1,35 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CameraValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/scene/_domain.py b/plotly/validators/layout/scene/_domain.py index 72e1a3c087..65364cd92a 100644 --- a/plotly/validators/layout/scene/_domain.py +++ b/plotly/validators/layout/scene/_domain.py @@ -1,28 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/scene/_dragmode.py b/plotly/validators/layout/scene/_dragmode.py index ea06274741..ab94c1212f 100644 --- a/plotly/validators/layout/scene/_dragmode.py +++ b/plotly/validators/layout/scene/_dragmode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DragmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["orbit", "turntable", "zoom", "pan", False]), **kwargs, diff --git a/plotly/validators/layout/scene/_hovermode.py b/plotly/validators/layout/scene/_hovermode.py index 89f547c020..3dcd46e41e 100644 --- a/plotly/validators/layout/scene/_hovermode.py +++ b/plotly/validators/layout/scene/_hovermode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovermodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "modebar"), values=kwargs.pop("values", ["closest", False]), **kwargs, diff --git a/plotly/validators/layout/scene/_uirevision.py b/plotly/validators/layout/scene/_uirevision.py index 479f876b19..4d0aedc600 100644 --- a/plotly/validators/layout/scene/_uirevision.py +++ b/plotly/validators/layout/scene/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/scene/_xaxis.py b/plotly/validators/layout/scene/_xaxis.py index 88d2f7ead7..64975022bf 100644 --- a/plotly/validators/layout/scene/_xaxis.py +++ b/plotly/validators/layout/scene/_xaxis.py @@ -1,342 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XaxisValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/scene/_yaxis.py b/plotly/validators/layout/scene/_yaxis.py index 161a1ef836..dc977b1124 100644 --- a/plotly/validators/layout/scene/_yaxis.py +++ b/plotly/validators/layout/scene/_yaxis.py @@ -1,342 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YaxisValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/scene/_zaxis.py b/plotly/validators/layout/scene/_zaxis.py index 93640da1c0..349b14f14a 100644 --- a/plotly/validators/layout/scene/_zaxis.py +++ b/plotly/validators/layout/scene/_zaxis.py @@ -1,342 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZaxisValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/scene/annotation/__init__.py b/plotly/validators/layout/scene/annotation/__init__.py index 723a59944b..86dd8cca5a 100644 --- a/plotly/validators/layout/scene/annotation/__init__.py +++ b/plotly/validators/layout/scene/annotation/__init__.py @@ -1,87 +1,46 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._z import ZValidator - from ._yshift import YshiftValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xshift import XshiftValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._width import WidthValidator - from ._visible import VisibleValidator - from ._valign import ValignValidator - from ._textangle import TextangleValidator - from ._text import TextValidator - from ._templateitemname import TemplateitemnameValidator - from ._startstandoff import StartstandoffValidator - from ._startarrowsize import StartarrowsizeValidator - from ._startarrowhead import StartarrowheadValidator - from ._standoff import StandoffValidator - from ._showarrow import ShowarrowValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - from ._hovertext import HovertextValidator - from ._hoverlabel import HoverlabelValidator - from ._height import HeightValidator - from ._font import FontValidator - from ._captureevents import CaptureeventsValidator - from ._borderwidth import BorderwidthValidator - from ._borderpad import BorderpadValidator - from ._bordercolor import BordercolorValidator - from ._bgcolor import BgcolorValidator - from ._ay import AyValidator - from ._ax import AxValidator - from ._arrowwidth import ArrowwidthValidator - from ._arrowsize import ArrowsizeValidator - from ._arrowside import ArrowsideValidator - from ._arrowhead import ArrowheadValidator - from ._arrowcolor import ArrowcolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/scene/annotation/_align.py b/plotly/validators/layout/scene/annotation/_align.py index a33c7160fd..442d960be2 100644 --- a/plotly/validators/layout/scene/annotation/_align.py +++ b/plotly/validators/layout/scene/annotation/_align.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/layout/scene/annotation/_arrowcolor.py b/plotly/validators/layout/scene/annotation/_arrowcolor.py index 7916a4a73e..9c19e1d671 100644 --- a/plotly/validators/layout/scene/annotation/_arrowcolor.py +++ b/plotly/validators/layout/scene/annotation/_arrowcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrowcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/scene/annotation/_arrowhead.py b/plotly/validators/layout/scene/annotation/_arrowhead.py index 872e3a5ed5..019475c7e8 100644 --- a/plotly/validators/layout/scene/annotation/_arrowhead.py +++ b/plotly/validators/layout/scene/annotation/_arrowhead.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrowheadValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 8), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/scene/annotation/_arrowside.py b/plotly/validators/layout/scene/annotation/_arrowside.py index 3bea9ca23a..d40853064d 100644 --- a/plotly/validators/layout/scene/annotation/_arrowside.py +++ b/plotly/validators/layout/scene/annotation/_arrowside.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrowsideValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["end", "start"]), diff --git a/plotly/validators/layout/scene/annotation/_arrowsize.py b/plotly/validators/layout/scene/annotation/_arrowsize.py index cc653a0757..39924c72ab 100644 --- a/plotly/validators/layout/scene/annotation/_arrowsize.py +++ b/plotly/validators/layout/scene/annotation/_arrowsize.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrowsizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0.3), **kwargs, diff --git a/plotly/validators/layout/scene/annotation/_arrowwidth.py b/plotly/validators/layout/scene/annotation/_arrowwidth.py index 866ac1c9d9..f9b19e41c8 100644 --- a/plotly/validators/layout/scene/annotation/_arrowwidth.py +++ b/plotly/validators/layout/scene/annotation/_arrowwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrowwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0.1), **kwargs, diff --git a/plotly/validators/layout/scene/annotation/_ax.py b/plotly/validators/layout/scene/annotation/_ax.py index 8bfa4a609e..e5bc1ec1cf 100644 --- a/plotly/validators/layout/scene/annotation/_ax.py +++ b/plotly/validators/layout/scene/annotation/_ax.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/scene/annotation/_ay.py b/plotly/validators/layout/scene/annotation/_ay.py index 15c9309cb7..4dc0542078 100644 --- a/plotly/validators/layout/scene/annotation/_ay.py +++ b/plotly/validators/layout/scene/annotation/_ay.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AyValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/scene/annotation/_bgcolor.py b/plotly/validators/layout/scene/annotation/_bgcolor.py index 396d5d3252..7bf4e6ae9e 100644 --- a/plotly/validators/layout/scene/annotation/_bgcolor.py +++ b/plotly/validators/layout/scene/annotation/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/scene/annotation/_bordercolor.py b/plotly/validators/layout/scene/annotation/_bordercolor.py index 91f6ff528a..a7639f63dd 100644 --- a/plotly/validators/layout/scene/annotation/_bordercolor.py +++ b/plotly/validators/layout/scene/annotation/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/scene/annotation/_borderpad.py b/plotly/validators/layout/scene/annotation/_borderpad.py index 3f602f11d1..12c42288f2 100644 --- a/plotly/validators/layout/scene/annotation/_borderpad.py +++ b/plotly/validators/layout/scene/annotation/_borderpad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/scene/annotation/_borderwidth.py b/plotly/validators/layout/scene/annotation/_borderwidth.py index cdbedbb2ed..133678a86e 100644 --- a/plotly/validators/layout/scene/annotation/_borderwidth.py +++ b/plotly/validators/layout/scene/annotation/_borderwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/scene/annotation/_captureevents.py b/plotly/validators/layout/scene/annotation/_captureevents.py index 06e3700550..6d041fac3a 100644 --- a/plotly/validators/layout/scene/annotation/_captureevents.py +++ b/plotly/validators/layout/scene/annotation/_captureevents.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CaptureeventsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/scene/annotation/_font.py b/plotly/validators/layout/scene/annotation/_font.py index 308433eb8b..88e849fd1f 100644 --- a/plotly/validators/layout/scene/annotation/_font.py +++ b/plotly/validators/layout/scene/annotation/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/scene/annotation/_height.py b/plotly/validators/layout/scene/annotation/_height.py index bab78d2ce7..1f5760c48c 100644 --- a/plotly/validators/layout/scene/annotation/_height.py +++ b/plotly/validators/layout/scene/annotation/_height.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HeightValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/scene/annotation/_hoverlabel.py b/plotly/validators/layout/scene/annotation/_hoverlabel.py index 88ec79d8f2..b1d8c8ead2 100644 --- a/plotly/validators/layout/scene/annotation/_hoverlabel.py +++ b/plotly/validators/layout/scene/annotation/_hoverlabel.py @@ -1,29 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/scene/annotation/_hovertext.py b/plotly/validators/layout/scene/annotation/_hovertext.py index d174da0294..2bd54d5628 100644 --- a/plotly/validators/layout/scene/annotation/_hovertext.py +++ b/plotly/validators/layout/scene/annotation/_hovertext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/scene/annotation/_name.py b/plotly/validators/layout/scene/annotation/_name.py index 7dbece6887..5852a54496 100644 --- a/plotly/validators/layout/scene/annotation/_name.py +++ b/plotly/validators/layout/scene/annotation/_name.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/scene/annotation/_opacity.py b/plotly/validators/layout/scene/annotation/_opacity.py index 190cdb6e74..b77a6bd260 100644 --- a/plotly/validators/layout/scene/annotation/_opacity.py +++ b/plotly/validators/layout/scene/annotation/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/scene/annotation/_showarrow.py b/plotly/validators/layout/scene/annotation/_showarrow.py index d5201213ef..f5b3d4d0cc 100644 --- a/plotly/validators/layout/scene/annotation/_showarrow.py +++ b/plotly/validators/layout/scene/annotation/_showarrow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowarrowValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/scene/annotation/_standoff.py b/plotly/validators/layout/scene/annotation/_standoff.py index 7d42fc834b..a8f374cfcf 100644 --- a/plotly/validators/layout/scene/annotation/_standoff.py +++ b/plotly/validators/layout/scene/annotation/_standoff.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StandoffValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/scene/annotation/_startarrowhead.py b/plotly/validators/layout/scene/annotation/_startarrowhead.py index 2306415fb3..d32b2d43bb 100644 --- a/plotly/validators/layout/scene/annotation/_startarrowhead.py +++ b/plotly/validators/layout/scene/annotation/_startarrowhead.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StartarrowheadValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 8), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/scene/annotation/_startarrowsize.py b/plotly/validators/layout/scene/annotation/_startarrowsize.py index 954ff007c8..b2a807238e 100644 --- a/plotly/validators/layout/scene/annotation/_startarrowsize.py +++ b/plotly/validators/layout/scene/annotation/_startarrowsize.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StartarrowsizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0.3), **kwargs, diff --git a/plotly/validators/layout/scene/annotation/_startstandoff.py b/plotly/validators/layout/scene/annotation/_startstandoff.py index f51fc1928e..79c9c0635c 100644 --- a/plotly/validators/layout/scene/annotation/_startstandoff.py +++ b/plotly/validators/layout/scene/annotation/_startstandoff.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StartstandoffValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/scene/annotation/_templateitemname.py b/plotly/validators/layout/scene/annotation/_templateitemname.py index cb0c43a865..f49e8a02c6 100644 --- a/plotly/validators/layout/scene/annotation/_templateitemname.py +++ b/plotly/validators/layout/scene/annotation/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/scene/annotation/_text.py b/plotly/validators/layout/scene/annotation/_text.py index 2e70c88152..6df1410ab6 100644 --- a/plotly/validators/layout/scene/annotation/_text.py +++ b/plotly/validators/layout/scene/annotation/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/scene/annotation/_textangle.py b/plotly/validators/layout/scene/annotation/_textangle.py index 417bceced4..36ac00a83f 100644 --- a/plotly/validators/layout/scene/annotation/_textangle.py +++ b/plotly/validators/layout/scene/annotation/_textangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/scene/annotation/_valign.py b/plotly/validators/layout/scene/annotation/_valign.py index 50bf4200c4..26fec25123 100644 --- a/plotly/validators/layout/scene/annotation/_valign.py +++ b/plotly/validators/layout/scene/annotation/_valign.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/layout/scene/annotation/_visible.py b/plotly/validators/layout/scene/annotation/_visible.py index 7a7f9935d7..d22bd9ff41 100644 --- a/plotly/validators/layout/scene/annotation/_visible.py +++ b/plotly/validators/layout/scene/annotation/_visible.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/scene/annotation/_width.py b/plotly/validators/layout/scene/annotation/_width.py index 44658219f9..a184dee641 100644 --- a/plotly/validators/layout/scene/annotation/_width.py +++ b/plotly/validators/layout/scene/annotation/_width.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/scene/annotation/_x.py b/plotly/validators/layout/scene/annotation/_x.py index 558f329ca7..04c77c1eb3 100644 --- a/plotly/validators/layout/scene/annotation/_x.py +++ b/plotly/validators/layout/scene/annotation/_x.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/scene/annotation/_xanchor.py b/plotly/validators/layout/scene/annotation/_xanchor.py index 27a29e5475..a8878bf249 100644 --- a/plotly/validators/layout/scene/annotation/_xanchor.py +++ b/plotly/validators/layout/scene/annotation/_xanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["auto", "left", "center", "right"]), **kwargs, diff --git a/plotly/validators/layout/scene/annotation/_xshift.py b/plotly/validators/layout/scene/annotation/_xshift.py index 3b2e5541e7..e5d3e255d0 100644 --- a/plotly/validators/layout/scene/annotation/_xshift.py +++ b/plotly/validators/layout/scene/annotation/_xshift.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XshiftValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/scene/annotation/_y.py b/plotly/validators/layout/scene/annotation/_y.py index de1168676e..59b73afe78 100644 --- a/plotly/validators/layout/scene/annotation/_y.py +++ b/plotly/validators/layout/scene/annotation/_y.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/scene/annotation/_yanchor.py b/plotly/validators/layout/scene/annotation/_yanchor.py index f74aa85e52..bda13c3a1c 100644 --- a/plotly/validators/layout/scene/annotation/_yanchor.py +++ b/plotly/validators/layout/scene/annotation/_yanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["auto", "top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/layout/scene/annotation/_yshift.py b/plotly/validators/layout/scene/annotation/_yshift.py index d4a92053ea..2efffb2960 100644 --- a/plotly/validators/layout/scene/annotation/_yshift.py +++ b/plotly/validators/layout/scene/annotation/_yshift.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YshiftValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/scene/annotation/_z.py b/plotly/validators/layout/scene/annotation/_z.py index e8c2be240a..75f0980a17 100644 --- a/plotly/validators/layout/scene/annotation/_z.py +++ b/plotly/validators/layout/scene/annotation/_z.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/scene/annotation/font/__init__.py b/plotly/validators/layout/scene/annotation/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/scene/annotation/font/__init__.py +++ b/plotly/validators/layout/scene/annotation/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/scene/annotation/font/_color.py b/plotly/validators/layout/scene/annotation/font/_color.py index 39cb5160b5..4e3de25059 100644 --- a/plotly/validators/layout/scene/annotation/font/_color.py +++ b/plotly/validators/layout/scene/annotation/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/scene/annotation/font/_family.py b/plotly/validators/layout/scene/annotation/font/_family.py index 4c7bc9e5b8..abf1740a41 100644 --- a/plotly/validators/layout/scene/annotation/font/_family.py +++ b/plotly/validators/layout/scene/annotation/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/scene/annotation/font/_lineposition.py b/plotly/validators/layout/scene/annotation/font/_lineposition.py index 03be35b82f..98eb26c954 100644 --- a/plotly/validators/layout/scene/annotation/font/_lineposition.py +++ b/plotly/validators/layout/scene/annotation/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/scene/annotation/font/_shadow.py b/plotly/validators/layout/scene/annotation/font/_shadow.py index e6af82b2c1..995193844b 100644 --- a/plotly/validators/layout/scene/annotation/font/_shadow.py +++ b/plotly/validators/layout/scene/annotation/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/scene/annotation/font/_size.py b/plotly/validators/layout/scene/annotation/font/_size.py index ed3331c762..9a5d411059 100644 --- a/plotly/validators/layout/scene/annotation/font/_size.py +++ b/plotly/validators/layout/scene/annotation/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/scene/annotation/font/_style.py b/plotly/validators/layout/scene/annotation/font/_style.py index 1ea1584965..5b5e40b801 100644 --- a/plotly/validators/layout/scene/annotation/font/_style.py +++ b/plotly/validators/layout/scene/annotation/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/scene/annotation/font/_textcase.py b/plotly/validators/layout/scene/annotation/font/_textcase.py index 324e8d7e18..706adaa7d0 100644 --- a/plotly/validators/layout/scene/annotation/font/_textcase.py +++ b/plotly/validators/layout/scene/annotation/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/scene/annotation/font/_variant.py b/plotly/validators/layout/scene/annotation/font/_variant.py index bab6052d76..4f5b8bdd0e 100644 --- a/plotly/validators/layout/scene/annotation/font/_variant.py +++ b/plotly/validators/layout/scene/annotation/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/scene/annotation/font/_weight.py b/plotly/validators/layout/scene/annotation/font/_weight.py index a28d088f2e..dc77cd1521 100644 --- a/plotly/validators/layout/scene/annotation/font/_weight.py +++ b/plotly/validators/layout/scene/annotation/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/scene/annotation/hoverlabel/__init__.py b/plotly/validators/layout/scene/annotation/hoverlabel/__init__.py index 6cd9f4b93c..040f0045eb 100644 --- a/plotly/validators/layout/scene/annotation/hoverlabel/__init__.py +++ b/plotly/validators/layout/scene/annotation/hoverlabel/__init__.py @@ -1,19 +1,12 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._font.FontValidator", + "._bordercolor.BordercolorValidator", + "._bgcolor.BgcolorValidator", + ], +) diff --git a/plotly/validators/layout/scene/annotation/hoverlabel/_bgcolor.py b/plotly/validators/layout/scene/annotation/hoverlabel/_bgcolor.py index 84a8d96b94..956dd5b4c9 100644 --- a/plotly/validators/layout/scene/annotation/hoverlabel/_bgcolor.py +++ b/plotly/validators/layout/scene/annotation/hoverlabel/_bgcolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/scene/annotation/hoverlabel/_bordercolor.py b/plotly/validators/layout/scene/annotation/hoverlabel/_bordercolor.py index c26c2fedb8..8ac7c3fe86 100644 --- a/plotly/validators/layout/scene/annotation/hoverlabel/_bordercolor.py +++ b/plotly/validators/layout/scene/annotation/hoverlabel/_bordercolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/scene/annotation/hoverlabel/_font.py b/plotly/validators/layout/scene/annotation/hoverlabel/_font.py index 41c904576a..d96f2dffcc 100644 --- a/plotly/validators/layout/scene/annotation/hoverlabel/_font.py +++ b/plotly/validators/layout/scene/annotation/hoverlabel/_font.py @@ -1,63 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/scene/annotation/hoverlabel/font/__init__.py b/plotly/validators/layout/scene/annotation/hoverlabel/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/scene/annotation/hoverlabel/font/__init__.py +++ b/plotly/validators/layout/scene/annotation/hoverlabel/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/scene/annotation/hoverlabel/font/_color.py b/plotly/validators/layout/scene/annotation/hoverlabel/font/_color.py index a75d5e38db..f85f37208f 100644 --- a/plotly/validators/layout/scene/annotation/hoverlabel/font/_color.py +++ b/plotly/validators/layout/scene/annotation/hoverlabel/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/scene/annotation/hoverlabel/font/_family.py b/plotly/validators/layout/scene/annotation/hoverlabel/font/_family.py index c9512eb123..7c3cf7ddbd 100644 --- a/plotly/validators/layout/scene/annotation/hoverlabel/font/_family.py +++ b/plotly/validators/layout/scene/annotation/hoverlabel/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/scene/annotation/hoverlabel/font/_lineposition.py b/plotly/validators/layout/scene/annotation/hoverlabel/font/_lineposition.py index ac63fdd6b8..a00ec3e339 100644 --- a/plotly/validators/layout/scene/annotation/hoverlabel/font/_lineposition.py +++ b/plotly/validators/layout/scene/annotation/hoverlabel/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/scene/annotation/hoverlabel/font/_shadow.py b/plotly/validators/layout/scene/annotation/hoverlabel/font/_shadow.py index 4d6d1aa258..8f7f9fc829 100644 --- a/plotly/validators/layout/scene/annotation/hoverlabel/font/_shadow.py +++ b/plotly/validators/layout/scene/annotation/hoverlabel/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/scene/annotation/hoverlabel/font/_size.py b/plotly/validators/layout/scene/annotation/hoverlabel/font/_size.py index b955bb7dd4..b5d5295e4f 100644 --- a/plotly/validators/layout/scene/annotation/hoverlabel/font/_size.py +++ b/plotly/validators/layout/scene/annotation/hoverlabel/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/scene/annotation/hoverlabel/font/_style.py b/plotly/validators/layout/scene/annotation/hoverlabel/font/_style.py index ce03de4321..afcd5a9feb 100644 --- a/plotly/validators/layout/scene/annotation/hoverlabel/font/_style.py +++ b/plotly/validators/layout/scene/annotation/hoverlabel/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/scene/annotation/hoverlabel/font/_textcase.py b/plotly/validators/layout/scene/annotation/hoverlabel/font/_textcase.py index 4727886e3e..8ad34a322b 100644 --- a/plotly/validators/layout/scene/annotation/hoverlabel/font/_textcase.py +++ b/plotly/validators/layout/scene/annotation/hoverlabel/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/scene/annotation/hoverlabel/font/_variant.py b/plotly/validators/layout/scene/annotation/hoverlabel/font/_variant.py index 60e0278326..9b7ab51ba3 100644 --- a/plotly/validators/layout/scene/annotation/hoverlabel/font/_variant.py +++ b/plotly/validators/layout/scene/annotation/hoverlabel/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/scene/annotation/hoverlabel/font/_weight.py b/plotly/validators/layout/scene/annotation/hoverlabel/font/_weight.py index f364d50daa..dfdb1322db 100644 --- a/plotly/validators/layout/scene/annotation/hoverlabel/font/_weight.py +++ b/plotly/validators/layout/scene/annotation/hoverlabel/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/scene/aspectratio/__init__.py b/plotly/validators/layout/scene/aspectratio/__init__.py index 52779f59bc..8c47d2db5f 100644 --- a/plotly/validators/layout/scene/aspectratio/__init__.py +++ b/plotly/validators/layout/scene/aspectratio/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] +) diff --git a/plotly/validators/layout/scene/aspectratio/_x.py b/plotly/validators/layout/scene/aspectratio/_x.py index acf08888c7..2eb7b45e1a 100644 --- a/plotly/validators/layout/scene/aspectratio/_x.py +++ b/plotly/validators/layout/scene/aspectratio/_x.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"^aspectmode": "manual"}), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/scene/aspectratio/_y.py b/plotly/validators/layout/scene/aspectratio/_y.py index 2a86381e70..c9f6a8f1b3 100644 --- a/plotly/validators/layout/scene/aspectratio/_y.py +++ b/plotly/validators/layout/scene/aspectratio/_y.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"^aspectmode": "manual"}), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/scene/aspectratio/_z.py b/plotly/validators/layout/scene/aspectratio/_z.py index 615def6da4..dc16ee166e 100644 --- a/plotly/validators/layout/scene/aspectratio/_z.py +++ b/plotly/validators/layout/scene/aspectratio/_z.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"^aspectmode": "manual"}), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/scene/camera/__init__.py b/plotly/validators/layout/scene/camera/__init__.py index 6fda571b1e..affcb0640a 100644 --- a/plotly/validators/layout/scene/camera/__init__.py +++ b/plotly/validators/layout/scene/camera/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._up import UpValidator - from ._projection import ProjectionValidator - from ._eye import EyeValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._up.UpValidator", + "._projection.ProjectionValidator", + "._eye.EyeValidator", + "._center.CenterValidator", + ], +) diff --git a/plotly/validators/layout/scene/camera/_center.py b/plotly/validators/layout/scene/camera/_center.py index 6e24a08ea9..bc96722fb4 100644 --- a/plotly/validators/layout/scene/camera/_center.py +++ b/plotly/validators/layout/scene/camera/_center.py @@ -1,23 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CenterValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Center"), data_docs=kwargs.pop( "data_docs", """ - x - - y - - z - """, ), **kwargs, diff --git a/plotly/validators/layout/scene/camera/_eye.py b/plotly/validators/layout/scene/camera/_eye.py index c058889406..ee55913a38 100644 --- a/plotly/validators/layout/scene/camera/_eye.py +++ b/plotly/validators/layout/scene/camera/_eye.py @@ -1,21 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EyeValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Eye"), data_docs=kwargs.pop( "data_docs", """ - x - - y - - z - """, ), **kwargs, diff --git a/plotly/validators/layout/scene/camera/_projection.py b/plotly/validators/layout/scene/camera/_projection.py index c9fd40128b..de69cfd84d 100644 --- a/plotly/validators/layout/scene/camera/_projection.py +++ b/plotly/validators/layout/scene/camera/_projection.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ProjectionValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/scene/camera/_up.py b/plotly/validators/layout/scene/camera/_up.py index 99d11a4341..d2fe5358df 100644 --- a/plotly/validators/layout/scene/camera/_up.py +++ b/plotly/validators/layout/scene/camera/_up.py @@ -1,21 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UpValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Up"), data_docs=kwargs.pop( "data_docs", """ - x - - y - - z - """, ), **kwargs, diff --git a/plotly/validators/layout/scene/camera/center/__init__.py b/plotly/validators/layout/scene/camera/center/__init__.py index 52779f59bc..8c47d2db5f 100644 --- a/plotly/validators/layout/scene/camera/center/__init__.py +++ b/plotly/validators/layout/scene/camera/center/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] +) diff --git a/plotly/validators/layout/scene/camera/center/_x.py b/plotly/validators/layout/scene/camera/center/_x.py index e091625e3a..79ccae11f1 100644 --- a/plotly/validators/layout/scene/camera/center/_x.py +++ b/plotly/validators/layout/scene/camera/center/_x.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "camera"), **kwargs, ) diff --git a/plotly/validators/layout/scene/camera/center/_y.py b/plotly/validators/layout/scene/camera/center/_y.py index 77b0b00343..7dda3ca349 100644 --- a/plotly/validators/layout/scene/camera/center/_y.py +++ b/plotly/validators/layout/scene/camera/center/_y.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "camera"), **kwargs, ) diff --git a/plotly/validators/layout/scene/camera/center/_z.py b/plotly/validators/layout/scene/camera/center/_z.py index c07c970649..ec5c19dd11 100644 --- a/plotly/validators/layout/scene/camera/center/_z.py +++ b/plotly/validators/layout/scene/camera/center/_z.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "camera"), **kwargs, ) diff --git a/plotly/validators/layout/scene/camera/eye/__init__.py b/plotly/validators/layout/scene/camera/eye/__init__.py index 52779f59bc..8c47d2db5f 100644 --- a/plotly/validators/layout/scene/camera/eye/__init__.py +++ b/plotly/validators/layout/scene/camera/eye/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] +) diff --git a/plotly/validators/layout/scene/camera/eye/_x.py b/plotly/validators/layout/scene/camera/eye/_x.py index bf7b62c1a7..83279d9deb 100644 --- a/plotly/validators/layout/scene/camera/eye/_x.py +++ b/plotly/validators/layout/scene/camera/eye/_x.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "camera"), **kwargs, ) diff --git a/plotly/validators/layout/scene/camera/eye/_y.py b/plotly/validators/layout/scene/camera/eye/_y.py index 354f6a730a..a43a342102 100644 --- a/plotly/validators/layout/scene/camera/eye/_y.py +++ b/plotly/validators/layout/scene/camera/eye/_y.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "camera"), **kwargs, ) diff --git a/plotly/validators/layout/scene/camera/eye/_z.py b/plotly/validators/layout/scene/camera/eye/_z.py index df5c521363..2ba4b0593c 100644 --- a/plotly/validators/layout/scene/camera/eye/_z.py +++ b/plotly/validators/layout/scene/camera/eye/_z.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "camera"), **kwargs, ) diff --git a/plotly/validators/layout/scene/camera/projection/__init__.py b/plotly/validators/layout/scene/camera/projection/__init__.py index 6026c0dbbb..9b57e2a353 100644 --- a/plotly/validators/layout/scene/camera/projection/__init__.py +++ b/plotly/validators/layout/scene/camera/projection/__init__.py @@ -1,11 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import(__name__, [], ["._type.TypeValidator"]) diff --git a/plotly/validators/layout/scene/camera/projection/_type.py b/plotly/validators/layout/scene/camera/projection/_type.py index b8de48c716..ed6269bc13 100644 --- a/plotly/validators/layout/scene/camera/projection/_type.py +++ b/plotly/validators/layout/scene/camera/projection/_type.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["perspective", "orthographic"]), **kwargs, diff --git a/plotly/validators/layout/scene/camera/up/__init__.py b/plotly/validators/layout/scene/camera/up/__init__.py index 52779f59bc..8c47d2db5f 100644 --- a/plotly/validators/layout/scene/camera/up/__init__.py +++ b/plotly/validators/layout/scene/camera/up/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] +) diff --git a/plotly/validators/layout/scene/camera/up/_x.py b/plotly/validators/layout/scene/camera/up/_x.py index 548c33de84..475c48ed62 100644 --- a/plotly/validators/layout/scene/camera/up/_x.py +++ b/plotly/validators/layout/scene/camera/up/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "camera"), **kwargs, ) diff --git a/plotly/validators/layout/scene/camera/up/_y.py b/plotly/validators/layout/scene/camera/up/_y.py index 9590845b86..9ff5543a0b 100644 --- a/plotly/validators/layout/scene/camera/up/_y.py +++ b/plotly/validators/layout/scene/camera/up/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "camera"), **kwargs, ) diff --git a/plotly/validators/layout/scene/camera/up/_z.py b/plotly/validators/layout/scene/camera/up/_z.py index b75f7e5d14..b3cc8f5748 100644 --- a/plotly/validators/layout/scene/camera/up/_z.py +++ b/plotly/validators/layout/scene/camera/up/_z.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "camera"), **kwargs, ) diff --git a/plotly/validators/layout/scene/domain/__init__.py b/plotly/validators/layout/scene/domain/__init__.py index 67de5030d0..42827f1d1e 100644 --- a/plotly/validators/layout/scene/domain/__init__.py +++ b/plotly/validators/layout/scene/domain/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._y import YValidator - from ._x import XValidator - from ._row import RowValidator - from ._column import ColumnValidator -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [], - [ - "._y.YValidator", - "._x.XValidator", - "._row.RowValidator", - "._column.ColumnValidator", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._y.YValidator", + "._x.XValidator", + "._row.RowValidator", + "._column.ColumnValidator", + ], +) diff --git a/plotly/validators/layout/scene/domain/_column.py b/plotly/validators/layout/scene/domain/_column.py index eb7db69118..07b16330eb 100644 --- a/plotly/validators/layout/scene/domain/_column.py +++ b/plotly/validators/layout/scene/domain/_column.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/scene/domain/_row.py b/plotly/validators/layout/scene/domain/_row.py index d9e0366e33..37e16c06ac 100644 --- a/plotly/validators/layout/scene/domain/_row.py +++ b/plotly/validators/layout/scene/domain/_row.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RowValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/scene/domain/_x.py b/plotly/validators/layout/scene/domain/_x.py index 2e64d1ed5f..b613d05a3e 100644 --- a/plotly/validators/layout/scene/domain/_x.py +++ b/plotly/validators/layout/scene/domain/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/scene/domain/_y.py b/plotly/validators/layout/scene/domain/_y.py index ea79ee5105..669066dc67 100644 --- a/plotly/validators/layout/scene/domain/_y.py +++ b/plotly/validators/layout/scene/domain/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/scene/xaxis/__init__.py b/plotly/validators/layout/scene/xaxis/__init__.py index b95df1031f..df86998dd2 100644 --- a/plotly/validators/layout/scene/xaxis/__init__.py +++ b/plotly/validators/layout/scene/xaxis/__init__.py @@ -1,133 +1,69 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zerolinewidth import ZerolinewidthValidator - from ._zerolinecolor import ZerolinecolorValidator - from ._zeroline import ZerolineValidator - from ._visible import VisibleValidator - from ._type import TypeValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._spikethickness import SpikethicknessValidator - from ._spikesides import SpikesidesValidator - from ._spikecolor import SpikecolorValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showspikes import ShowspikesValidator - from ._showline import ShowlineValidator - from ._showgrid import ShowgridValidator - from ._showexponent import ShowexponentValidator - from ._showbackground import ShowbackgroundValidator - from ._showaxeslabels import ShowaxeslabelsValidator - from ._separatethousands import SeparatethousandsValidator - from ._rangemode import RangemodeValidator - from ._range import RangeValidator - from ._nticks import NticksValidator - from ._mirror import MirrorValidator - from ._minexponent import MinexponentValidator - from ._minallowed import MinallowedValidator - from ._maxallowed import MaxallowedValidator - from ._linewidth import LinewidthValidator - from ._linecolor import LinecolorValidator - from ._labelalias import LabelaliasValidator - from ._hoverformat import HoverformatValidator - from ._gridwidth import GridwidthValidator - from ._gridcolor import GridcolorValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._color import ColorValidator - from ._categoryorder import CategoryorderValidator - from ._categoryarraysrc import CategoryarraysrcValidator - from ._categoryarray import CategoryarrayValidator - from ._calendar import CalendarValidator - from ._backgroundcolor import BackgroundcolorValidator - from ._autotypenumbers import AutotypenumbersValidator - from ._autorangeoptions import AutorangeoptionsValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/scene/xaxis/_autorange.py b/plotly/validators/layout/scene/xaxis/_autorange.py index 4db777e8f6..4d596b2c4c 100644 --- a/plotly/validators/layout/scene/xaxis/_autorange.py +++ b/plotly/validators/layout/scene/xaxis/_autorange.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutorangeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop( diff --git a/plotly/validators/layout/scene/xaxis/_autorangeoptions.py b/plotly/validators/layout/scene/xaxis/_autorangeoptions.py index 36221c5c5d..5038e1d530 100644 --- a/plotly/validators/layout/scene/xaxis/_autorangeoptions.py +++ b/plotly/validators/layout/scene/xaxis/_autorangeoptions.py @@ -1,34 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutorangeoptionsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/scene/xaxis/_autotypenumbers.py b/plotly/validators/layout/scene/xaxis/_autotypenumbers.py index ac85e997c6..9f71c56d7a 100644 --- a/plotly/validators/layout/scene/xaxis/_autotypenumbers.py +++ b/plotly/validators/layout/scene/xaxis/_autotypenumbers.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutotypenumbersValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["convert types", "strict"]), **kwargs, diff --git a/plotly/validators/layout/scene/xaxis/_backgroundcolor.py b/plotly/validators/layout/scene/xaxis/_backgroundcolor.py index 49f934fef6..9723f1bd4a 100644 --- a/plotly/validators/layout/scene/xaxis/_backgroundcolor.py +++ b/plotly/validators/layout/scene/xaxis/_backgroundcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BackgroundcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/_calendar.py b/plotly/validators/layout/scene/xaxis/_calendar.py index af0c3149ee..a6b0bcc025 100644 --- a/plotly/validators/layout/scene/xaxis/_calendar.py +++ b/plotly/validators/layout/scene/xaxis/_calendar.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/scene/xaxis/_categoryarray.py b/plotly/validators/layout/scene/xaxis/_categoryarray.py index 3f6b2e946d..db37145781 100644 --- a/plotly/validators/layout/scene/xaxis/_categoryarray.py +++ b/plotly/validators/layout/scene/xaxis/_categoryarray.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CategoryarrayValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/_categoryarraysrc.py b/plotly/validators/layout/scene/xaxis/_categoryarraysrc.py index aa19e3b3b3..a049787189 100644 --- a/plotly/validators/layout/scene/xaxis/_categoryarraysrc.py +++ b/plotly/validators/layout/scene/xaxis/_categoryarraysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CategoryarraysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/_categoryorder.py b/plotly/validators/layout/scene/xaxis/_categoryorder.py index 0f97993453..95cbe40ad6 100644 --- a/plotly/validators/layout/scene/xaxis/_categoryorder.py +++ b/plotly/validators/layout/scene/xaxis/_categoryorder.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CategoryorderValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/scene/xaxis/_color.py b/plotly/validators/layout/scene/xaxis/_color.py index ef4dd8794f..14b97e36fb 100644 --- a/plotly/validators/layout/scene/xaxis/_color.py +++ b/plotly/validators/layout/scene/xaxis/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/_dtick.py b/plotly/validators/layout/scene/xaxis/_dtick.py index b169b04cb8..5a1e23b71f 100644 --- a/plotly/validators/layout/scene/xaxis/_dtick.py +++ b/plotly/validators/layout/scene/xaxis/_dtick.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/layout/scene/xaxis/_exponentformat.py b/plotly/validators/layout/scene/xaxis/_exponentformat.py index 52ef25e76d..eab81a6cbc 100644 --- a/plotly/validators/layout/scene/xaxis/_exponentformat.py +++ b/plotly/validators/layout/scene/xaxis/_exponentformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/layout/scene/xaxis/_gridcolor.py b/plotly/validators/layout/scene/xaxis/_gridcolor.py index ce7e423c07..7ebc2cd861 100644 --- a/plotly/validators/layout/scene/xaxis/_gridcolor.py +++ b/plotly/validators/layout/scene/xaxis/_gridcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/_gridwidth.py b/plotly/validators/layout/scene/xaxis/_gridwidth.py index 98a3ce40a1..d9764c1d00 100644 --- a/plotly/validators/layout/scene/xaxis/_gridwidth.py +++ b/plotly/validators/layout/scene/xaxis/_gridwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/scene/xaxis/_hoverformat.py b/plotly/validators/layout/scene/xaxis/_hoverformat.py index 7938e32a63..6f0ae05c3e 100644 --- a/plotly/validators/layout/scene/xaxis/_hoverformat.py +++ b/plotly/validators/layout/scene/xaxis/_hoverformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/_labelalias.py b/plotly/validators/layout/scene/xaxis/_labelalias.py index 4f5ad3e47f..92469949f3 100644 --- a/plotly/validators/layout/scene/xaxis/_labelalias.py +++ b/plotly/validators/layout/scene/xaxis/_labelalias.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/_linecolor.py b/plotly/validators/layout/scene/xaxis/_linecolor.py index c89c320a51..f5fefdddfd 100644 --- a/plotly/validators/layout/scene/xaxis/_linecolor.py +++ b/plotly/validators/layout/scene/xaxis/_linecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/_linewidth.py b/plotly/validators/layout/scene/xaxis/_linewidth.py index aff9785505..a155554a49 100644 --- a/plotly/validators/layout/scene/xaxis/_linewidth.py +++ b/plotly/validators/layout/scene/xaxis/_linewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/scene/xaxis/_maxallowed.py b/plotly/validators/layout/scene/xaxis/_maxallowed.py index 30d6bed1de..7bd387c07c 100644 --- a/plotly/validators/layout/scene/xaxis/_maxallowed.py +++ b/plotly/validators/layout/scene/xaxis/_maxallowed.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxallowedValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"^autorange": False}), **kwargs, diff --git a/plotly/validators/layout/scene/xaxis/_minallowed.py b/plotly/validators/layout/scene/xaxis/_minallowed.py index 1458314ff1..c96309bd3a 100644 --- a/plotly/validators/layout/scene/xaxis/_minallowed.py +++ b/plotly/validators/layout/scene/xaxis/_minallowed.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinallowedValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"^autorange": False}), **kwargs, diff --git a/plotly/validators/layout/scene/xaxis/_minexponent.py b/plotly/validators/layout/scene/xaxis/_minexponent.py index afb277bcfd..69aa82b72c 100644 --- a/plotly/validators/layout/scene/xaxis/_minexponent.py +++ b/plotly/validators/layout/scene/xaxis/_minexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/scene/xaxis/_mirror.py b/plotly/validators/layout/scene/xaxis/_mirror.py index a8fef0830f..5f7045973a 100644 --- a/plotly/validators/layout/scene/xaxis/_mirror.py +++ b/plotly/validators/layout/scene/xaxis/_mirror.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MirrorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", [True, "ticks", False, "all", "allticks"]), **kwargs, diff --git a/plotly/validators/layout/scene/xaxis/_nticks.py b/plotly/validators/layout/scene/xaxis/_nticks.py index ad37185c09..36ba46e181 100644 --- a/plotly/validators/layout/scene/xaxis/_nticks.py +++ b/plotly/validators/layout/scene/xaxis/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/scene/xaxis/_range.py b/plotly/validators/layout/scene/xaxis/_range.py index 2d4dd0b133..b17c36f6a0 100644 --- a/plotly/validators/layout/scene/xaxis/_range.py +++ b/plotly/validators/layout/scene/xaxis/_range.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", False), edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"autorange": False}), diff --git a/plotly/validators/layout/scene/xaxis/_rangemode.py b/plotly/validators/layout/scene/xaxis/_rangemode.py index 0ab362ab2e..8acb057bf6 100644 --- a/plotly/validators/layout/scene/xaxis/_rangemode.py +++ b/plotly/validators/layout/scene/xaxis/_rangemode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RangemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "tozero", "nonnegative"]), **kwargs, diff --git a/plotly/validators/layout/scene/xaxis/_separatethousands.py b/plotly/validators/layout/scene/xaxis/_separatethousands.py index 654921c23d..9deb27cea9 100644 --- a/plotly/validators/layout/scene/xaxis/_separatethousands.py +++ b/plotly/validators/layout/scene/xaxis/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/_showaxeslabels.py b/plotly/validators/layout/scene/xaxis/_showaxeslabels.py index 0d22803a68..80c8ab8eaa 100644 --- a/plotly/validators/layout/scene/xaxis/_showaxeslabels.py +++ b/plotly/validators/layout/scene/xaxis/_showaxeslabels.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowaxeslabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/_showbackground.py b/plotly/validators/layout/scene/xaxis/_showbackground.py index 11809bb185..9d04c47dc2 100644 --- a/plotly/validators/layout/scene/xaxis/_showbackground.py +++ b/plotly/validators/layout/scene/xaxis/_showbackground.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowbackgroundValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/_showexponent.py b/plotly/validators/layout/scene/xaxis/_showexponent.py index ed5e756e81..1bdf9301ba 100644 --- a/plotly/validators/layout/scene/xaxis/_showexponent.py +++ b/plotly/validators/layout/scene/xaxis/_showexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/scene/xaxis/_showgrid.py b/plotly/validators/layout/scene/xaxis/_showgrid.py index 104a8c5ca3..b18be582ea 100644 --- a/plotly/validators/layout/scene/xaxis/_showgrid.py +++ b/plotly/validators/layout/scene/xaxis/_showgrid.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/_showline.py b/plotly/validators/layout/scene/xaxis/_showline.py index 0bbbca65a1..0a0f86b4af 100644 --- a/plotly/validators/layout/scene/xaxis/_showline.py +++ b/plotly/validators/layout/scene/xaxis/_showline.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/_showspikes.py b/plotly/validators/layout/scene/xaxis/_showspikes.py index 82bbc4aad1..bb2a653589 100644 --- a/plotly/validators/layout/scene/xaxis/_showspikes.py +++ b/plotly/validators/layout/scene/xaxis/_showspikes.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowspikesValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/_showticklabels.py b/plotly/validators/layout/scene/xaxis/_showticklabels.py index 66c911af79..25da5299df 100644 --- a/plotly/validators/layout/scene/xaxis/_showticklabels.py +++ b/plotly/validators/layout/scene/xaxis/_showticklabels.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/_showtickprefix.py b/plotly/validators/layout/scene/xaxis/_showtickprefix.py index 41d4adef7b..27373a5e18 100644 --- a/plotly/validators/layout/scene/xaxis/_showtickprefix.py +++ b/plotly/validators/layout/scene/xaxis/_showtickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/scene/xaxis/_showticksuffix.py b/plotly/validators/layout/scene/xaxis/_showticksuffix.py index c6368eac21..7429020989 100644 --- a/plotly/validators/layout/scene/xaxis/_showticksuffix.py +++ b/plotly/validators/layout/scene/xaxis/_showticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/scene/xaxis/_spikecolor.py b/plotly/validators/layout/scene/xaxis/_spikecolor.py index e8e2d72bec..2dd994c851 100644 --- a/plotly/validators/layout/scene/xaxis/_spikecolor.py +++ b/plotly/validators/layout/scene/xaxis/_spikecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SpikecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/_spikesides.py b/plotly/validators/layout/scene/xaxis/_spikesides.py index 5ffda40399..36cac65380 100644 --- a/plotly/validators/layout/scene/xaxis/_spikesides.py +++ b/plotly/validators/layout/scene/xaxis/_spikesides.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SpikesidesValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/_spikethickness.py b/plotly/validators/layout/scene/xaxis/_spikethickness.py index 0fd134fec6..fd263c958d 100644 --- a/plotly/validators/layout/scene/xaxis/_spikethickness.py +++ b/plotly/validators/layout/scene/xaxis/_spikethickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SpikethicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/scene/xaxis/_tick0.py b/plotly/validators/layout/scene/xaxis/_tick0.py index 6e9c7e7277..1c7f5cfe94 100644 --- a/plotly/validators/layout/scene/xaxis/_tick0.py +++ b/plotly/validators/layout/scene/xaxis/_tick0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/layout/scene/xaxis/_tickangle.py b/plotly/validators/layout/scene/xaxis/_tickangle.py index be84ada434..9ca304d9b3 100644 --- a/plotly/validators/layout/scene/xaxis/_tickangle.py +++ b/plotly/validators/layout/scene/xaxis/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/_tickcolor.py b/plotly/validators/layout/scene/xaxis/_tickcolor.py index 1e895f54ee..4b03e60d6e 100644 --- a/plotly/validators/layout/scene/xaxis/_tickcolor.py +++ b/plotly/validators/layout/scene/xaxis/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/_tickfont.py b/plotly/validators/layout/scene/xaxis/_tickfont.py index 4d8eccd015..37a0162fb9 100644 --- a/plotly/validators/layout/scene/xaxis/_tickfont.py +++ b/plotly/validators/layout/scene/xaxis/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/scene/xaxis/_tickformat.py b/plotly/validators/layout/scene/xaxis/_tickformat.py index 662684d39b..7313df29e4 100644 --- a/plotly/validators/layout/scene/xaxis/_tickformat.py +++ b/plotly/validators/layout/scene/xaxis/_tickformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/_tickformatstopdefaults.py b/plotly/validators/layout/scene/xaxis/_tickformatstopdefaults.py index 9d1675d888..ec105b2589 100644 --- a/plotly/validators/layout/scene/xaxis/_tickformatstopdefaults.py +++ b/plotly/validators/layout/scene/xaxis/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/scene/xaxis/_tickformatstops.py b/plotly/validators/layout/scene/xaxis/_tickformatstops.py index 12c5b5c046..a324359d54 100644 --- a/plotly/validators/layout/scene/xaxis/_tickformatstops.py +++ b/plotly/validators/layout/scene/xaxis/_tickformatstops.py @@ -1,50 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/scene/xaxis/_ticklen.py b/plotly/validators/layout/scene/xaxis/_ticklen.py index e9830f4d3e..15a123ad28 100644 --- a/plotly/validators/layout/scene/xaxis/_ticklen.py +++ b/plotly/validators/layout/scene/xaxis/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/scene/xaxis/_tickmode.py b/plotly/validators/layout/scene/xaxis/_tickmode.py index d96292ff30..a06ead8923 100644 --- a/plotly/validators/layout/scene/xaxis/_tickmode.py +++ b/plotly/validators/layout/scene/xaxis/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/layout/scene/xaxis/_tickprefix.py b/plotly/validators/layout/scene/xaxis/_tickprefix.py index 7991ec162f..89cec520f0 100644 --- a/plotly/validators/layout/scene/xaxis/_tickprefix.py +++ b/plotly/validators/layout/scene/xaxis/_tickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/_ticks.py b/plotly/validators/layout/scene/xaxis/_ticks.py index fb8e288718..07e79c26b9 100644 --- a/plotly/validators/layout/scene/xaxis/_ticks.py +++ b/plotly/validators/layout/scene/xaxis/_ticks.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/layout/scene/xaxis/_ticksuffix.py b/plotly/validators/layout/scene/xaxis/_ticksuffix.py index 5f91ca042e..e0c5915778 100644 --- a/plotly/validators/layout/scene/xaxis/_ticksuffix.py +++ b/plotly/validators/layout/scene/xaxis/_ticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/_ticktext.py b/plotly/validators/layout/scene/xaxis/_ticktext.py index 60b51bb036..51db1179b4 100644 --- a/plotly/validators/layout/scene/xaxis/_ticktext.py +++ b/plotly/validators/layout/scene/xaxis/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/_ticktextsrc.py b/plotly/validators/layout/scene/xaxis/_ticktextsrc.py index 1288b9e830..44870cfb76 100644 --- a/plotly/validators/layout/scene/xaxis/_ticktextsrc.py +++ b/plotly/validators/layout/scene/xaxis/_ticktextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/_tickvals.py b/plotly/validators/layout/scene/xaxis/_tickvals.py index c22ff8cb0d..4096bd6617 100644 --- a/plotly/validators/layout/scene/xaxis/_tickvals.py +++ b/plotly/validators/layout/scene/xaxis/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/_tickvalssrc.py b/plotly/validators/layout/scene/xaxis/_tickvalssrc.py index 2c47be974c..21da2cf777 100644 --- a/plotly/validators/layout/scene/xaxis/_tickvalssrc.py +++ b/plotly/validators/layout/scene/xaxis/_tickvalssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/_tickwidth.py b/plotly/validators/layout/scene/xaxis/_tickwidth.py index 8fdc2dad1e..df224d14fc 100644 --- a/plotly/validators/layout/scene/xaxis/_tickwidth.py +++ b/plotly/validators/layout/scene/xaxis/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/scene/xaxis/_title.py b/plotly/validators/layout/scene/xaxis/_title.py index 643bdc8875..5c0a9d9815 100644 --- a/plotly/validators/layout/scene/xaxis/_title.py +++ b/plotly/validators/layout/scene/xaxis/_title.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/scene/xaxis/_type.py b/plotly/validators/layout/scene/xaxis/_type.py index a26964bbd7..4e8a3ff987 100644 --- a/plotly/validators/layout/scene/xaxis/_type.py +++ b/plotly/validators/layout/scene/xaxis/_type.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["-", "linear", "log", "date", "category"]), **kwargs, diff --git a/plotly/validators/layout/scene/xaxis/_visible.py b/plotly/validators/layout/scene/xaxis/_visible.py index 775cd5d863..f9db0e107d 100644 --- a/plotly/validators/layout/scene/xaxis/_visible.py +++ b/plotly/validators/layout/scene/xaxis/_visible.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/_zeroline.py b/plotly/validators/layout/scene/xaxis/_zeroline.py index 69b5ee5dec..abbaf3ef6c 100644 --- a/plotly/validators/layout/scene/xaxis/_zeroline.py +++ b/plotly/validators/layout/scene/xaxis/_zeroline.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZerolineValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/_zerolinecolor.py b/plotly/validators/layout/scene/xaxis/_zerolinecolor.py index 2df493ed37..271bc0eb99 100644 --- a/plotly/validators/layout/scene/xaxis/_zerolinecolor.py +++ b/plotly/validators/layout/scene/xaxis/_zerolinecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZerolinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/_zerolinewidth.py b/plotly/validators/layout/scene/xaxis/_zerolinewidth.py index 70ffee536b..b9ab1337b5 100644 --- a/plotly/validators/layout/scene/xaxis/_zerolinewidth.py +++ b/plotly/validators/layout/scene/xaxis/_zerolinewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZerolinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/autorangeoptions/__init__.py b/plotly/validators/layout/scene/xaxis/autorangeoptions/__init__.py index 701f84c04e..8ef0b74165 100644 --- a/plotly/validators/layout/scene/xaxis/autorangeoptions/__init__.py +++ b/plotly/validators/layout/scene/xaxis/autorangeoptions/__init__.py @@ -1,25 +1,15 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._minallowed import MinallowedValidator - from ._maxallowed import MaxallowedValidator - from ._includesrc import IncludesrcValidator - from ._include import IncludeValidator - from ._clipmin import ClipminValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._minallowed.MinallowedValidator", + "._maxallowed.MaxallowedValidator", + "._includesrc.IncludesrcValidator", + "._include.IncludeValidator", + "._clipmin.ClipminValidator", + "._clipmax.ClipmaxValidator", + ], +) diff --git a/plotly/validators/layout/scene/xaxis/autorangeoptions/_clipmax.py b/plotly/validators/layout/scene/xaxis/autorangeoptions/_clipmax.py index d3528a7a12..17e03b8c55 100644 --- a/plotly/validators/layout/scene/xaxis/autorangeoptions/_clipmax.py +++ b/plotly/validators/layout/scene/xaxis/autorangeoptions/_clipmax.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ClipmaxValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/layout/scene/xaxis/autorangeoptions/_clipmin.py b/plotly/validators/layout/scene/xaxis/autorangeoptions/_clipmin.py index 3c45a58fe2..c004bad583 100644 --- a/plotly/validators/layout/scene/xaxis/autorangeoptions/_clipmin.py +++ b/plotly/validators/layout/scene/xaxis/autorangeoptions/_clipmin.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ClipminValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/layout/scene/xaxis/autorangeoptions/_include.py b/plotly/validators/layout/scene/xaxis/autorangeoptions/_include.py index 3382cb7702..09a5959c83 100644 --- a/plotly/validators/layout/scene/xaxis/autorangeoptions/_include.py +++ b/plotly/validators/layout/scene/xaxis/autorangeoptions/_include.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IncludeValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), diff --git a/plotly/validators/layout/scene/xaxis/autorangeoptions/_includesrc.py b/plotly/validators/layout/scene/xaxis/autorangeoptions/_includesrc.py index 9d396fc441..106fb24be5 100644 --- a/plotly/validators/layout/scene/xaxis/autorangeoptions/_includesrc.py +++ b/plotly/validators/layout/scene/xaxis/autorangeoptions/_includesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IncludesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/autorangeoptions/_maxallowed.py b/plotly/validators/layout/scene/xaxis/autorangeoptions/_maxallowed.py index 533cd8b44c..6906b31493 100644 --- a/plotly/validators/layout/scene/xaxis/autorangeoptions/_maxallowed.py +++ b/plotly/validators/layout/scene/xaxis/autorangeoptions/_maxallowed.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxallowedValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/layout/scene/xaxis/autorangeoptions/_minallowed.py b/plotly/validators/layout/scene/xaxis/autorangeoptions/_minallowed.py index 66f8bab108..86e3114581 100644 --- a/plotly/validators/layout/scene/xaxis/autorangeoptions/_minallowed.py +++ b/plotly/validators/layout/scene/xaxis/autorangeoptions/_minallowed.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinallowedValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/layout/scene/xaxis/tickfont/__init__.py b/plotly/validators/layout/scene/xaxis/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/scene/xaxis/tickfont/__init__.py +++ b/plotly/validators/layout/scene/xaxis/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/scene/xaxis/tickfont/_color.py b/plotly/validators/layout/scene/xaxis/tickfont/_color.py index de62e0132f..aeeaab176a 100644 --- a/plotly/validators/layout/scene/xaxis/tickfont/_color.py +++ b/plotly/validators/layout/scene/xaxis/tickfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/tickfont/_family.py b/plotly/validators/layout/scene/xaxis/tickfont/_family.py index 3bc2625326..9219c16d89 100644 --- a/plotly/validators/layout/scene/xaxis/tickfont/_family.py +++ b/plotly/validators/layout/scene/xaxis/tickfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/scene/xaxis/tickfont/_lineposition.py b/plotly/validators/layout/scene/xaxis/tickfont/_lineposition.py index ff296cf8ec..9d6187f9d1 100644 --- a/plotly/validators/layout/scene/xaxis/tickfont/_lineposition.py +++ b/plotly/validators/layout/scene/xaxis/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/scene/xaxis/tickfont/_shadow.py b/plotly/validators/layout/scene/xaxis/tickfont/_shadow.py index ab92c4fc0e..bceeb67e14 100644 --- a/plotly/validators/layout/scene/xaxis/tickfont/_shadow.py +++ b/plotly/validators/layout/scene/xaxis/tickfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/tickfont/_size.py b/plotly/validators/layout/scene/xaxis/tickfont/_size.py index 8844599f39..958ba0bcf6 100644 --- a/plotly/validators/layout/scene/xaxis/tickfont/_size.py +++ b/plotly/validators/layout/scene/xaxis/tickfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/scene/xaxis/tickfont/_style.py b/plotly/validators/layout/scene/xaxis/tickfont/_style.py index 46397ee8c2..efc2836205 100644 --- a/plotly/validators/layout/scene/xaxis/tickfont/_style.py +++ b/plotly/validators/layout/scene/xaxis/tickfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/scene/xaxis/tickfont/_textcase.py b/plotly/validators/layout/scene/xaxis/tickfont/_textcase.py index 19cd704f54..ed7e465679 100644 --- a/plotly/validators/layout/scene/xaxis/tickfont/_textcase.py +++ b/plotly/validators/layout/scene/xaxis/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/scene/xaxis/tickfont/_variant.py b/plotly/validators/layout/scene/xaxis/tickfont/_variant.py index 77bb687768..8fb4be6067 100644 --- a/plotly/validators/layout/scene/xaxis/tickfont/_variant.py +++ b/plotly/validators/layout/scene/xaxis/tickfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/scene/xaxis/tickfont/_weight.py b/plotly/validators/layout/scene/xaxis/tickfont/_weight.py index 08ff3be1fb..b5ff0f8378 100644 --- a/plotly/validators/layout/scene/xaxis/tickfont/_weight.py +++ b/plotly/validators/layout/scene/xaxis/tickfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/scene/xaxis/tickformatstop/__init__.py b/plotly/validators/layout/scene/xaxis/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/layout/scene/xaxis/tickformatstop/__init__.py +++ b/plotly/validators/layout/scene/xaxis/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/layout/scene/xaxis/tickformatstop/_dtickrange.py b/plotly/validators/layout/scene/xaxis/tickformatstop/_dtickrange.py index f6d66f1575..dbf2d9eaa4 100644 --- a/plotly/validators/layout/scene/xaxis/tickformatstop/_dtickrange.py +++ b/plotly/validators/layout/scene/xaxis/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/scene/xaxis/tickformatstop/_enabled.py b/plotly/validators/layout/scene/xaxis/tickformatstop/_enabled.py index 921cf3da87..6be7f012d2 100644 --- a/plotly/validators/layout/scene/xaxis/tickformatstop/_enabled.py +++ b/plotly/validators/layout/scene/xaxis/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/tickformatstop/_name.py b/plotly/validators/layout/scene/xaxis/tickformatstop/_name.py index 8ebeff5eef..c5694fc060 100644 --- a/plotly/validators/layout/scene/xaxis/tickformatstop/_name.py +++ b/plotly/validators/layout/scene/xaxis/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/tickformatstop/_templateitemname.py b/plotly/validators/layout/scene/xaxis/tickformatstop/_templateitemname.py index f810dbf4f2..d800515a5c 100644 --- a/plotly/validators/layout/scene/xaxis/tickformatstop/_templateitemname.py +++ b/plotly/validators/layout/scene/xaxis/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/tickformatstop/_value.py b/plotly/validators/layout/scene/xaxis/tickformatstop/_value.py index b31129cdff..193cedb646 100644 --- a/plotly/validators/layout/scene/xaxis/tickformatstop/_value.py +++ b/plotly/validators/layout/scene/xaxis/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/title/__init__.py b/plotly/validators/layout/scene/xaxis/title/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/layout/scene/xaxis/title/__init__.py +++ b/plotly/validators/layout/scene/xaxis/title/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/layout/scene/xaxis/title/_font.py b/plotly/validators/layout/scene/xaxis/title/_font.py index 0b5745a9eb..6a899dc14e 100644 --- a/plotly/validators/layout/scene/xaxis/title/_font.py +++ b/plotly/validators/layout/scene/xaxis/title/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/scene/xaxis/title/_text.py b/plotly/validators/layout/scene/xaxis/title/_text.py index 7055f4b291..16a5839b5a 100644 --- a/plotly/validators/layout/scene/xaxis/title/_text.py +++ b/plotly/validators/layout/scene/xaxis/title/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/title/font/__init__.py b/plotly/validators/layout/scene/xaxis/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/scene/xaxis/title/font/__init__.py +++ b/plotly/validators/layout/scene/xaxis/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/scene/xaxis/title/font/_color.py b/plotly/validators/layout/scene/xaxis/title/font/_color.py index 5bd4f83a4b..c638875402 100644 --- a/plotly/validators/layout/scene/xaxis/title/font/_color.py +++ b/plotly/validators/layout/scene/xaxis/title/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/title/font/_family.py b/plotly/validators/layout/scene/xaxis/title/font/_family.py index f8681f0c22..24276e0115 100644 --- a/plotly/validators/layout/scene/xaxis/title/font/_family.py +++ b/plotly/validators/layout/scene/xaxis/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/scene/xaxis/title/font/_lineposition.py b/plotly/validators/layout/scene/xaxis/title/font/_lineposition.py index 9e0f7ad642..bf6689a4e5 100644 --- a/plotly/validators/layout/scene/xaxis/title/font/_lineposition.py +++ b/plotly/validators/layout/scene/xaxis/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/scene/xaxis/title/font/_shadow.py b/plotly/validators/layout/scene/xaxis/title/font/_shadow.py index bb869fc442..7faea93dbd 100644 --- a/plotly/validators/layout/scene/xaxis/title/font/_shadow.py +++ b/plotly/validators/layout/scene/xaxis/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/xaxis/title/font/_size.py b/plotly/validators/layout/scene/xaxis/title/font/_size.py index f77a0536f2..75b2b7c41b 100644 --- a/plotly/validators/layout/scene/xaxis/title/font/_size.py +++ b/plotly/validators/layout/scene/xaxis/title/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/scene/xaxis/title/font/_style.py b/plotly/validators/layout/scene/xaxis/title/font/_style.py index cec38e9520..1b43d850e4 100644 --- a/plotly/validators/layout/scene/xaxis/title/font/_style.py +++ b/plotly/validators/layout/scene/xaxis/title/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/scene/xaxis/title/font/_textcase.py b/plotly/validators/layout/scene/xaxis/title/font/_textcase.py index df0e0ed4ab..2d67c9e379 100644 --- a/plotly/validators/layout/scene/xaxis/title/font/_textcase.py +++ b/plotly/validators/layout/scene/xaxis/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/scene/xaxis/title/font/_variant.py b/plotly/validators/layout/scene/xaxis/title/font/_variant.py index 911bdf5b7c..322e671ab8 100644 --- a/plotly/validators/layout/scene/xaxis/title/font/_variant.py +++ b/plotly/validators/layout/scene/xaxis/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/scene/xaxis/title/font/_weight.py b/plotly/validators/layout/scene/xaxis/title/font/_weight.py index d7e6c9a44a..60fbf78105 100644 --- a/plotly/validators/layout/scene/xaxis/title/font/_weight.py +++ b/plotly/validators/layout/scene/xaxis/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/scene/yaxis/__init__.py b/plotly/validators/layout/scene/yaxis/__init__.py index b95df1031f..df86998dd2 100644 --- a/plotly/validators/layout/scene/yaxis/__init__.py +++ b/plotly/validators/layout/scene/yaxis/__init__.py @@ -1,133 +1,69 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zerolinewidth import ZerolinewidthValidator - from ._zerolinecolor import ZerolinecolorValidator - from ._zeroline import ZerolineValidator - from ._visible import VisibleValidator - from ._type import TypeValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._spikethickness import SpikethicknessValidator - from ._spikesides import SpikesidesValidator - from ._spikecolor import SpikecolorValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showspikes import ShowspikesValidator - from ._showline import ShowlineValidator - from ._showgrid import ShowgridValidator - from ._showexponent import ShowexponentValidator - from ._showbackground import ShowbackgroundValidator - from ._showaxeslabels import ShowaxeslabelsValidator - from ._separatethousands import SeparatethousandsValidator - from ._rangemode import RangemodeValidator - from ._range import RangeValidator - from ._nticks import NticksValidator - from ._mirror import MirrorValidator - from ._minexponent import MinexponentValidator - from ._minallowed import MinallowedValidator - from ._maxallowed import MaxallowedValidator - from ._linewidth import LinewidthValidator - from ._linecolor import LinecolorValidator - from ._labelalias import LabelaliasValidator - from ._hoverformat import HoverformatValidator - from ._gridwidth import GridwidthValidator - from ._gridcolor import GridcolorValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._color import ColorValidator - from ._categoryorder import CategoryorderValidator - from ._categoryarraysrc import CategoryarraysrcValidator - from ._categoryarray import CategoryarrayValidator - from ._calendar import CalendarValidator - from ._backgroundcolor import BackgroundcolorValidator - from ._autotypenumbers import AutotypenumbersValidator - from ._autorangeoptions import AutorangeoptionsValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/scene/yaxis/_autorange.py b/plotly/validators/layout/scene/yaxis/_autorange.py index 35e17654d6..252c179f7e 100644 --- a/plotly/validators/layout/scene/yaxis/_autorange.py +++ b/plotly/validators/layout/scene/yaxis/_autorange.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutorangeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop( diff --git a/plotly/validators/layout/scene/yaxis/_autorangeoptions.py b/plotly/validators/layout/scene/yaxis/_autorangeoptions.py index d35a13f006..1e17213f61 100644 --- a/plotly/validators/layout/scene/yaxis/_autorangeoptions.py +++ b/plotly/validators/layout/scene/yaxis/_autorangeoptions.py @@ -1,34 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutorangeoptionsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/scene/yaxis/_autotypenumbers.py b/plotly/validators/layout/scene/yaxis/_autotypenumbers.py index 80142732ec..d559126112 100644 --- a/plotly/validators/layout/scene/yaxis/_autotypenumbers.py +++ b/plotly/validators/layout/scene/yaxis/_autotypenumbers.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutotypenumbersValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["convert types", "strict"]), **kwargs, diff --git a/plotly/validators/layout/scene/yaxis/_backgroundcolor.py b/plotly/validators/layout/scene/yaxis/_backgroundcolor.py index 96993ff2e4..fc878f088f 100644 --- a/plotly/validators/layout/scene/yaxis/_backgroundcolor.py +++ b/plotly/validators/layout/scene/yaxis/_backgroundcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BackgroundcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/_calendar.py b/plotly/validators/layout/scene/yaxis/_calendar.py index 9f58f65ad4..d9f008b469 100644 --- a/plotly/validators/layout/scene/yaxis/_calendar.py +++ b/plotly/validators/layout/scene/yaxis/_calendar.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/scene/yaxis/_categoryarray.py b/plotly/validators/layout/scene/yaxis/_categoryarray.py index 18d06322fb..2c00128afb 100644 --- a/plotly/validators/layout/scene/yaxis/_categoryarray.py +++ b/plotly/validators/layout/scene/yaxis/_categoryarray.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CategoryarrayValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/_categoryarraysrc.py b/plotly/validators/layout/scene/yaxis/_categoryarraysrc.py index bee1b8f6ea..b713e95459 100644 --- a/plotly/validators/layout/scene/yaxis/_categoryarraysrc.py +++ b/plotly/validators/layout/scene/yaxis/_categoryarraysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CategoryarraysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/_categoryorder.py b/plotly/validators/layout/scene/yaxis/_categoryorder.py index 72e8569594..45587be47b 100644 --- a/plotly/validators/layout/scene/yaxis/_categoryorder.py +++ b/plotly/validators/layout/scene/yaxis/_categoryorder.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CategoryorderValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/scene/yaxis/_color.py b/plotly/validators/layout/scene/yaxis/_color.py index 995fa472d5..dc04faeffe 100644 --- a/plotly/validators/layout/scene/yaxis/_color.py +++ b/plotly/validators/layout/scene/yaxis/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/_dtick.py b/plotly/validators/layout/scene/yaxis/_dtick.py index 93e6cb7fa1..8614bb4a2b 100644 --- a/plotly/validators/layout/scene/yaxis/_dtick.py +++ b/plotly/validators/layout/scene/yaxis/_dtick.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/layout/scene/yaxis/_exponentformat.py b/plotly/validators/layout/scene/yaxis/_exponentformat.py index 5f205f9a25..b0e069df14 100644 --- a/plotly/validators/layout/scene/yaxis/_exponentformat.py +++ b/plotly/validators/layout/scene/yaxis/_exponentformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/layout/scene/yaxis/_gridcolor.py b/plotly/validators/layout/scene/yaxis/_gridcolor.py index e92ab3ec3c..b2e3cd85fb 100644 --- a/plotly/validators/layout/scene/yaxis/_gridcolor.py +++ b/plotly/validators/layout/scene/yaxis/_gridcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/_gridwidth.py b/plotly/validators/layout/scene/yaxis/_gridwidth.py index d75a6752a1..8f2aa6687d 100644 --- a/plotly/validators/layout/scene/yaxis/_gridwidth.py +++ b/plotly/validators/layout/scene/yaxis/_gridwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/scene/yaxis/_hoverformat.py b/plotly/validators/layout/scene/yaxis/_hoverformat.py index 6159b11f83..90b9a97baa 100644 --- a/plotly/validators/layout/scene/yaxis/_hoverformat.py +++ b/plotly/validators/layout/scene/yaxis/_hoverformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/_labelalias.py b/plotly/validators/layout/scene/yaxis/_labelalias.py index 934c0e8d82..4dc07daad4 100644 --- a/plotly/validators/layout/scene/yaxis/_labelalias.py +++ b/plotly/validators/layout/scene/yaxis/_labelalias.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/_linecolor.py b/plotly/validators/layout/scene/yaxis/_linecolor.py index 0968766135..88d963c2d9 100644 --- a/plotly/validators/layout/scene/yaxis/_linecolor.py +++ b/plotly/validators/layout/scene/yaxis/_linecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/_linewidth.py b/plotly/validators/layout/scene/yaxis/_linewidth.py index 328611453f..59502456b5 100644 --- a/plotly/validators/layout/scene/yaxis/_linewidth.py +++ b/plotly/validators/layout/scene/yaxis/_linewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/scene/yaxis/_maxallowed.py b/plotly/validators/layout/scene/yaxis/_maxallowed.py index 98055a2ef8..fcbf0de22f 100644 --- a/plotly/validators/layout/scene/yaxis/_maxallowed.py +++ b/plotly/validators/layout/scene/yaxis/_maxallowed.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxallowedValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"^autorange": False}), **kwargs, diff --git a/plotly/validators/layout/scene/yaxis/_minallowed.py b/plotly/validators/layout/scene/yaxis/_minallowed.py index 7912d25c73..dc41d05ca1 100644 --- a/plotly/validators/layout/scene/yaxis/_minallowed.py +++ b/plotly/validators/layout/scene/yaxis/_minallowed.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinallowedValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"^autorange": False}), **kwargs, diff --git a/plotly/validators/layout/scene/yaxis/_minexponent.py b/plotly/validators/layout/scene/yaxis/_minexponent.py index 0e605aa6ec..9f0ee4d038 100644 --- a/plotly/validators/layout/scene/yaxis/_minexponent.py +++ b/plotly/validators/layout/scene/yaxis/_minexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/scene/yaxis/_mirror.py b/plotly/validators/layout/scene/yaxis/_mirror.py index e2bae9b38a..f549af5b1b 100644 --- a/plotly/validators/layout/scene/yaxis/_mirror.py +++ b/plotly/validators/layout/scene/yaxis/_mirror.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MirrorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", [True, "ticks", False, "all", "allticks"]), **kwargs, diff --git a/plotly/validators/layout/scene/yaxis/_nticks.py b/plotly/validators/layout/scene/yaxis/_nticks.py index 08b2814496..d90b76fae4 100644 --- a/plotly/validators/layout/scene/yaxis/_nticks.py +++ b/plotly/validators/layout/scene/yaxis/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/scene/yaxis/_range.py b/plotly/validators/layout/scene/yaxis/_range.py index c4851f5514..aeec0f239f 100644 --- a/plotly/validators/layout/scene/yaxis/_range.py +++ b/plotly/validators/layout/scene/yaxis/_range.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", False), edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"autorange": False}), diff --git a/plotly/validators/layout/scene/yaxis/_rangemode.py b/plotly/validators/layout/scene/yaxis/_rangemode.py index c370a8d09b..129ed6da9b 100644 --- a/plotly/validators/layout/scene/yaxis/_rangemode.py +++ b/plotly/validators/layout/scene/yaxis/_rangemode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RangemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "tozero", "nonnegative"]), **kwargs, diff --git a/plotly/validators/layout/scene/yaxis/_separatethousands.py b/plotly/validators/layout/scene/yaxis/_separatethousands.py index 6cf74d5e2a..3139069913 100644 --- a/plotly/validators/layout/scene/yaxis/_separatethousands.py +++ b/plotly/validators/layout/scene/yaxis/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/_showaxeslabels.py b/plotly/validators/layout/scene/yaxis/_showaxeslabels.py index 85218a8458..b376463c44 100644 --- a/plotly/validators/layout/scene/yaxis/_showaxeslabels.py +++ b/plotly/validators/layout/scene/yaxis/_showaxeslabels.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowaxeslabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/_showbackground.py b/plotly/validators/layout/scene/yaxis/_showbackground.py index 426c3e7454..d322e59c69 100644 --- a/plotly/validators/layout/scene/yaxis/_showbackground.py +++ b/plotly/validators/layout/scene/yaxis/_showbackground.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowbackgroundValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/_showexponent.py b/plotly/validators/layout/scene/yaxis/_showexponent.py index c1def79a76..02226af766 100644 --- a/plotly/validators/layout/scene/yaxis/_showexponent.py +++ b/plotly/validators/layout/scene/yaxis/_showexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/scene/yaxis/_showgrid.py b/plotly/validators/layout/scene/yaxis/_showgrid.py index 90ed455473..56c044c36f 100644 --- a/plotly/validators/layout/scene/yaxis/_showgrid.py +++ b/plotly/validators/layout/scene/yaxis/_showgrid.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/_showline.py b/plotly/validators/layout/scene/yaxis/_showline.py index 0af44ef746..baf7fcd6c3 100644 --- a/plotly/validators/layout/scene/yaxis/_showline.py +++ b/plotly/validators/layout/scene/yaxis/_showline.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/_showspikes.py b/plotly/validators/layout/scene/yaxis/_showspikes.py index 1a730b6b70..c2aa3003d3 100644 --- a/plotly/validators/layout/scene/yaxis/_showspikes.py +++ b/plotly/validators/layout/scene/yaxis/_showspikes.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowspikesValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/_showticklabels.py b/plotly/validators/layout/scene/yaxis/_showticklabels.py index cd37d59e56..08efb230bc 100644 --- a/plotly/validators/layout/scene/yaxis/_showticklabels.py +++ b/plotly/validators/layout/scene/yaxis/_showticklabels.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/_showtickprefix.py b/plotly/validators/layout/scene/yaxis/_showtickprefix.py index 1a98730f03..ac3c356cc0 100644 --- a/plotly/validators/layout/scene/yaxis/_showtickprefix.py +++ b/plotly/validators/layout/scene/yaxis/_showtickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/scene/yaxis/_showticksuffix.py b/plotly/validators/layout/scene/yaxis/_showticksuffix.py index 23fcca0c7c..631b7d7e10 100644 --- a/plotly/validators/layout/scene/yaxis/_showticksuffix.py +++ b/plotly/validators/layout/scene/yaxis/_showticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/scene/yaxis/_spikecolor.py b/plotly/validators/layout/scene/yaxis/_spikecolor.py index a6d322f34b..a08133dbcf 100644 --- a/plotly/validators/layout/scene/yaxis/_spikecolor.py +++ b/plotly/validators/layout/scene/yaxis/_spikecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SpikecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/_spikesides.py b/plotly/validators/layout/scene/yaxis/_spikesides.py index 8bbfd0abe8..a2b0cde83c 100644 --- a/plotly/validators/layout/scene/yaxis/_spikesides.py +++ b/plotly/validators/layout/scene/yaxis/_spikesides.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SpikesidesValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/_spikethickness.py b/plotly/validators/layout/scene/yaxis/_spikethickness.py index 7b39781fe7..3a300f00fb 100644 --- a/plotly/validators/layout/scene/yaxis/_spikethickness.py +++ b/plotly/validators/layout/scene/yaxis/_spikethickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SpikethicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/scene/yaxis/_tick0.py b/plotly/validators/layout/scene/yaxis/_tick0.py index 6977b786af..dcdf7f1017 100644 --- a/plotly/validators/layout/scene/yaxis/_tick0.py +++ b/plotly/validators/layout/scene/yaxis/_tick0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/layout/scene/yaxis/_tickangle.py b/plotly/validators/layout/scene/yaxis/_tickangle.py index 029ab1e9fe..f0416eb437 100644 --- a/plotly/validators/layout/scene/yaxis/_tickangle.py +++ b/plotly/validators/layout/scene/yaxis/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/_tickcolor.py b/plotly/validators/layout/scene/yaxis/_tickcolor.py index 613c2ce073..0ecbd9ee55 100644 --- a/plotly/validators/layout/scene/yaxis/_tickcolor.py +++ b/plotly/validators/layout/scene/yaxis/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/_tickfont.py b/plotly/validators/layout/scene/yaxis/_tickfont.py index 18a4482686..cfd8213bff 100644 --- a/plotly/validators/layout/scene/yaxis/_tickfont.py +++ b/plotly/validators/layout/scene/yaxis/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/scene/yaxis/_tickformat.py b/plotly/validators/layout/scene/yaxis/_tickformat.py index ffdca526bc..2d3ee03970 100644 --- a/plotly/validators/layout/scene/yaxis/_tickformat.py +++ b/plotly/validators/layout/scene/yaxis/_tickformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/_tickformatstopdefaults.py b/plotly/validators/layout/scene/yaxis/_tickformatstopdefaults.py index 39b4aa9958..2173f23165 100644 --- a/plotly/validators/layout/scene/yaxis/_tickformatstopdefaults.py +++ b/plotly/validators/layout/scene/yaxis/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/scene/yaxis/_tickformatstops.py b/plotly/validators/layout/scene/yaxis/_tickformatstops.py index e2138d8c92..4d186914bc 100644 --- a/plotly/validators/layout/scene/yaxis/_tickformatstops.py +++ b/plotly/validators/layout/scene/yaxis/_tickformatstops.py @@ -1,50 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/scene/yaxis/_ticklen.py b/plotly/validators/layout/scene/yaxis/_ticklen.py index 8a436ee58f..765c667247 100644 --- a/plotly/validators/layout/scene/yaxis/_ticklen.py +++ b/plotly/validators/layout/scene/yaxis/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/scene/yaxis/_tickmode.py b/plotly/validators/layout/scene/yaxis/_tickmode.py index d8c1c1f854..6348480fad 100644 --- a/plotly/validators/layout/scene/yaxis/_tickmode.py +++ b/plotly/validators/layout/scene/yaxis/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/layout/scene/yaxis/_tickprefix.py b/plotly/validators/layout/scene/yaxis/_tickprefix.py index c66562d236..d6dc5bed53 100644 --- a/plotly/validators/layout/scene/yaxis/_tickprefix.py +++ b/plotly/validators/layout/scene/yaxis/_tickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/_ticks.py b/plotly/validators/layout/scene/yaxis/_ticks.py index 1d440dc946..65685ffcb4 100644 --- a/plotly/validators/layout/scene/yaxis/_ticks.py +++ b/plotly/validators/layout/scene/yaxis/_ticks.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/layout/scene/yaxis/_ticksuffix.py b/plotly/validators/layout/scene/yaxis/_ticksuffix.py index ec5afa18ec..c4e97cacb1 100644 --- a/plotly/validators/layout/scene/yaxis/_ticksuffix.py +++ b/plotly/validators/layout/scene/yaxis/_ticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/_ticktext.py b/plotly/validators/layout/scene/yaxis/_ticktext.py index a1dcfc2995..6dccac810e 100644 --- a/plotly/validators/layout/scene/yaxis/_ticktext.py +++ b/plotly/validators/layout/scene/yaxis/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/_ticktextsrc.py b/plotly/validators/layout/scene/yaxis/_ticktextsrc.py index 10c4fac7c7..e968a4b0ee 100644 --- a/plotly/validators/layout/scene/yaxis/_ticktextsrc.py +++ b/plotly/validators/layout/scene/yaxis/_ticktextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/_tickvals.py b/plotly/validators/layout/scene/yaxis/_tickvals.py index e3ade261b1..9cc354a638 100644 --- a/plotly/validators/layout/scene/yaxis/_tickvals.py +++ b/plotly/validators/layout/scene/yaxis/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/_tickvalssrc.py b/plotly/validators/layout/scene/yaxis/_tickvalssrc.py index 36c4563ae6..2d8fe135da 100644 --- a/plotly/validators/layout/scene/yaxis/_tickvalssrc.py +++ b/plotly/validators/layout/scene/yaxis/_tickvalssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/_tickwidth.py b/plotly/validators/layout/scene/yaxis/_tickwidth.py index 41ebb25bbb..9aaffae8aa 100644 --- a/plotly/validators/layout/scene/yaxis/_tickwidth.py +++ b/plotly/validators/layout/scene/yaxis/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/scene/yaxis/_title.py b/plotly/validators/layout/scene/yaxis/_title.py index c8558802c5..decbc12adb 100644 --- a/plotly/validators/layout/scene/yaxis/_title.py +++ b/plotly/validators/layout/scene/yaxis/_title.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/scene/yaxis/_type.py b/plotly/validators/layout/scene/yaxis/_type.py index 7819d0926c..aba3d7689b 100644 --- a/plotly/validators/layout/scene/yaxis/_type.py +++ b/plotly/validators/layout/scene/yaxis/_type.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["-", "linear", "log", "date", "category"]), **kwargs, diff --git a/plotly/validators/layout/scene/yaxis/_visible.py b/plotly/validators/layout/scene/yaxis/_visible.py index 2b9d992a7e..3bccfe1c0f 100644 --- a/plotly/validators/layout/scene/yaxis/_visible.py +++ b/plotly/validators/layout/scene/yaxis/_visible.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/_zeroline.py b/plotly/validators/layout/scene/yaxis/_zeroline.py index 8aab452f50..a3034c783b 100644 --- a/plotly/validators/layout/scene/yaxis/_zeroline.py +++ b/plotly/validators/layout/scene/yaxis/_zeroline.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZerolineValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/_zerolinecolor.py b/plotly/validators/layout/scene/yaxis/_zerolinecolor.py index 328a982b1b..712b613003 100644 --- a/plotly/validators/layout/scene/yaxis/_zerolinecolor.py +++ b/plotly/validators/layout/scene/yaxis/_zerolinecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZerolinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/_zerolinewidth.py b/plotly/validators/layout/scene/yaxis/_zerolinewidth.py index 450707ecce..b82d538ee6 100644 --- a/plotly/validators/layout/scene/yaxis/_zerolinewidth.py +++ b/plotly/validators/layout/scene/yaxis/_zerolinewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZerolinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/autorangeoptions/__init__.py b/plotly/validators/layout/scene/yaxis/autorangeoptions/__init__.py index 701f84c04e..8ef0b74165 100644 --- a/plotly/validators/layout/scene/yaxis/autorangeoptions/__init__.py +++ b/plotly/validators/layout/scene/yaxis/autorangeoptions/__init__.py @@ -1,25 +1,15 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._minallowed import MinallowedValidator - from ._maxallowed import MaxallowedValidator - from ._includesrc import IncludesrcValidator - from ._include import IncludeValidator - from ._clipmin import ClipminValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._minallowed.MinallowedValidator", + "._maxallowed.MaxallowedValidator", + "._includesrc.IncludesrcValidator", + "._include.IncludeValidator", + "._clipmin.ClipminValidator", + "._clipmax.ClipmaxValidator", + ], +) diff --git a/plotly/validators/layout/scene/yaxis/autorangeoptions/_clipmax.py b/plotly/validators/layout/scene/yaxis/autorangeoptions/_clipmax.py index 692ec59a06..e54de1b3e8 100644 --- a/plotly/validators/layout/scene/yaxis/autorangeoptions/_clipmax.py +++ b/plotly/validators/layout/scene/yaxis/autorangeoptions/_clipmax.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ClipmaxValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/layout/scene/yaxis/autorangeoptions/_clipmin.py b/plotly/validators/layout/scene/yaxis/autorangeoptions/_clipmin.py index a52d49af99..fc1a87f485 100644 --- a/plotly/validators/layout/scene/yaxis/autorangeoptions/_clipmin.py +++ b/plotly/validators/layout/scene/yaxis/autorangeoptions/_clipmin.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ClipminValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/layout/scene/yaxis/autorangeoptions/_include.py b/plotly/validators/layout/scene/yaxis/autorangeoptions/_include.py index 3401ab5a4d..baab3e3811 100644 --- a/plotly/validators/layout/scene/yaxis/autorangeoptions/_include.py +++ b/plotly/validators/layout/scene/yaxis/autorangeoptions/_include.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IncludeValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), diff --git a/plotly/validators/layout/scene/yaxis/autorangeoptions/_includesrc.py b/plotly/validators/layout/scene/yaxis/autorangeoptions/_includesrc.py index d2b561d72b..86b72e6518 100644 --- a/plotly/validators/layout/scene/yaxis/autorangeoptions/_includesrc.py +++ b/plotly/validators/layout/scene/yaxis/autorangeoptions/_includesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IncludesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/autorangeoptions/_maxallowed.py b/plotly/validators/layout/scene/yaxis/autorangeoptions/_maxallowed.py index bd2c861282..a8f2a4dba6 100644 --- a/plotly/validators/layout/scene/yaxis/autorangeoptions/_maxallowed.py +++ b/plotly/validators/layout/scene/yaxis/autorangeoptions/_maxallowed.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxallowedValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/layout/scene/yaxis/autorangeoptions/_minallowed.py b/plotly/validators/layout/scene/yaxis/autorangeoptions/_minallowed.py index 215fdc4265..ce46b5904b 100644 --- a/plotly/validators/layout/scene/yaxis/autorangeoptions/_minallowed.py +++ b/plotly/validators/layout/scene/yaxis/autorangeoptions/_minallowed.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinallowedValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/layout/scene/yaxis/tickfont/__init__.py b/plotly/validators/layout/scene/yaxis/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/scene/yaxis/tickfont/__init__.py +++ b/plotly/validators/layout/scene/yaxis/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/scene/yaxis/tickfont/_color.py b/plotly/validators/layout/scene/yaxis/tickfont/_color.py index 67b773201c..73c20379ab 100644 --- a/plotly/validators/layout/scene/yaxis/tickfont/_color.py +++ b/plotly/validators/layout/scene/yaxis/tickfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/tickfont/_family.py b/plotly/validators/layout/scene/yaxis/tickfont/_family.py index d9432ca5c9..5dc1e850bc 100644 --- a/plotly/validators/layout/scene/yaxis/tickfont/_family.py +++ b/plotly/validators/layout/scene/yaxis/tickfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/scene/yaxis/tickfont/_lineposition.py b/plotly/validators/layout/scene/yaxis/tickfont/_lineposition.py index 81c534a607..338f803b55 100644 --- a/plotly/validators/layout/scene/yaxis/tickfont/_lineposition.py +++ b/plotly/validators/layout/scene/yaxis/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/scene/yaxis/tickfont/_shadow.py b/plotly/validators/layout/scene/yaxis/tickfont/_shadow.py index 87849204b6..febe63b1f3 100644 --- a/plotly/validators/layout/scene/yaxis/tickfont/_shadow.py +++ b/plotly/validators/layout/scene/yaxis/tickfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/tickfont/_size.py b/plotly/validators/layout/scene/yaxis/tickfont/_size.py index ba86022d98..9a826b8ced 100644 --- a/plotly/validators/layout/scene/yaxis/tickfont/_size.py +++ b/plotly/validators/layout/scene/yaxis/tickfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/scene/yaxis/tickfont/_style.py b/plotly/validators/layout/scene/yaxis/tickfont/_style.py index d1379bab29..24f31692d5 100644 --- a/plotly/validators/layout/scene/yaxis/tickfont/_style.py +++ b/plotly/validators/layout/scene/yaxis/tickfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/scene/yaxis/tickfont/_textcase.py b/plotly/validators/layout/scene/yaxis/tickfont/_textcase.py index 54f24bb0b5..30e34d3dec 100644 --- a/plotly/validators/layout/scene/yaxis/tickfont/_textcase.py +++ b/plotly/validators/layout/scene/yaxis/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/scene/yaxis/tickfont/_variant.py b/plotly/validators/layout/scene/yaxis/tickfont/_variant.py index e90f59e2f3..929fc7f94a 100644 --- a/plotly/validators/layout/scene/yaxis/tickfont/_variant.py +++ b/plotly/validators/layout/scene/yaxis/tickfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/scene/yaxis/tickfont/_weight.py b/plotly/validators/layout/scene/yaxis/tickfont/_weight.py index 57efc948f4..fc10dab1be 100644 --- a/plotly/validators/layout/scene/yaxis/tickfont/_weight.py +++ b/plotly/validators/layout/scene/yaxis/tickfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/scene/yaxis/tickformatstop/__init__.py b/plotly/validators/layout/scene/yaxis/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/layout/scene/yaxis/tickformatstop/__init__.py +++ b/plotly/validators/layout/scene/yaxis/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/layout/scene/yaxis/tickformatstop/_dtickrange.py b/plotly/validators/layout/scene/yaxis/tickformatstop/_dtickrange.py index 35e3ef66a9..244799c5b5 100644 --- a/plotly/validators/layout/scene/yaxis/tickformatstop/_dtickrange.py +++ b/plotly/validators/layout/scene/yaxis/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/scene/yaxis/tickformatstop/_enabled.py b/plotly/validators/layout/scene/yaxis/tickformatstop/_enabled.py index 983003da7e..c261331373 100644 --- a/plotly/validators/layout/scene/yaxis/tickformatstop/_enabled.py +++ b/plotly/validators/layout/scene/yaxis/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/tickformatstop/_name.py b/plotly/validators/layout/scene/yaxis/tickformatstop/_name.py index 8c97ec0f7e..17239a716c 100644 --- a/plotly/validators/layout/scene/yaxis/tickformatstop/_name.py +++ b/plotly/validators/layout/scene/yaxis/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/tickformatstop/_templateitemname.py b/plotly/validators/layout/scene/yaxis/tickformatstop/_templateitemname.py index b97fb9a8ce..159ad300cd 100644 --- a/plotly/validators/layout/scene/yaxis/tickformatstop/_templateitemname.py +++ b/plotly/validators/layout/scene/yaxis/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/tickformatstop/_value.py b/plotly/validators/layout/scene/yaxis/tickformatstop/_value.py index 8fc7371a44..8ab6749980 100644 --- a/plotly/validators/layout/scene/yaxis/tickformatstop/_value.py +++ b/plotly/validators/layout/scene/yaxis/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/title/__init__.py b/plotly/validators/layout/scene/yaxis/title/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/layout/scene/yaxis/title/__init__.py +++ b/plotly/validators/layout/scene/yaxis/title/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/layout/scene/yaxis/title/_font.py b/plotly/validators/layout/scene/yaxis/title/_font.py index a4c692da42..f74afb24e5 100644 --- a/plotly/validators/layout/scene/yaxis/title/_font.py +++ b/plotly/validators/layout/scene/yaxis/title/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/scene/yaxis/title/_text.py b/plotly/validators/layout/scene/yaxis/title/_text.py index 784410bc7f..6ba1b308d6 100644 --- a/plotly/validators/layout/scene/yaxis/title/_text.py +++ b/plotly/validators/layout/scene/yaxis/title/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/title/font/__init__.py b/plotly/validators/layout/scene/yaxis/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/scene/yaxis/title/font/__init__.py +++ b/plotly/validators/layout/scene/yaxis/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/scene/yaxis/title/font/_color.py b/plotly/validators/layout/scene/yaxis/title/font/_color.py index 6a066d4997..9dee5539b8 100644 --- a/plotly/validators/layout/scene/yaxis/title/font/_color.py +++ b/plotly/validators/layout/scene/yaxis/title/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/title/font/_family.py b/plotly/validators/layout/scene/yaxis/title/font/_family.py index 10b8fe1e66..7e3fb15ca8 100644 --- a/plotly/validators/layout/scene/yaxis/title/font/_family.py +++ b/plotly/validators/layout/scene/yaxis/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/scene/yaxis/title/font/_lineposition.py b/plotly/validators/layout/scene/yaxis/title/font/_lineposition.py index 4c5324029d..ddcfff886b 100644 --- a/plotly/validators/layout/scene/yaxis/title/font/_lineposition.py +++ b/plotly/validators/layout/scene/yaxis/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/scene/yaxis/title/font/_shadow.py b/plotly/validators/layout/scene/yaxis/title/font/_shadow.py index e4bb87e001..dff603d53d 100644 --- a/plotly/validators/layout/scene/yaxis/title/font/_shadow.py +++ b/plotly/validators/layout/scene/yaxis/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/yaxis/title/font/_size.py b/plotly/validators/layout/scene/yaxis/title/font/_size.py index 47bdf06b43..8a23d51b30 100644 --- a/plotly/validators/layout/scene/yaxis/title/font/_size.py +++ b/plotly/validators/layout/scene/yaxis/title/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/scene/yaxis/title/font/_style.py b/plotly/validators/layout/scene/yaxis/title/font/_style.py index fce897ed71..f93f1484a4 100644 --- a/plotly/validators/layout/scene/yaxis/title/font/_style.py +++ b/plotly/validators/layout/scene/yaxis/title/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/scene/yaxis/title/font/_textcase.py b/plotly/validators/layout/scene/yaxis/title/font/_textcase.py index 51955d77b1..64c44169c8 100644 --- a/plotly/validators/layout/scene/yaxis/title/font/_textcase.py +++ b/plotly/validators/layout/scene/yaxis/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/scene/yaxis/title/font/_variant.py b/plotly/validators/layout/scene/yaxis/title/font/_variant.py index f88fe591ec..908c95c1b0 100644 --- a/plotly/validators/layout/scene/yaxis/title/font/_variant.py +++ b/plotly/validators/layout/scene/yaxis/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/scene/yaxis/title/font/_weight.py b/plotly/validators/layout/scene/yaxis/title/font/_weight.py index 5b6b1e677c..848467ee36 100644 --- a/plotly/validators/layout/scene/yaxis/title/font/_weight.py +++ b/plotly/validators/layout/scene/yaxis/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/scene/zaxis/__init__.py b/plotly/validators/layout/scene/zaxis/__init__.py index b95df1031f..df86998dd2 100644 --- a/plotly/validators/layout/scene/zaxis/__init__.py +++ b/plotly/validators/layout/scene/zaxis/__init__.py @@ -1,133 +1,69 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zerolinewidth import ZerolinewidthValidator - from ._zerolinecolor import ZerolinecolorValidator - from ._zeroline import ZerolineValidator - from ._visible import VisibleValidator - from ._type import TypeValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._spikethickness import SpikethicknessValidator - from ._spikesides import SpikesidesValidator - from ._spikecolor import SpikecolorValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showspikes import ShowspikesValidator - from ._showline import ShowlineValidator - from ._showgrid import ShowgridValidator - from ._showexponent import ShowexponentValidator - from ._showbackground import ShowbackgroundValidator - from ._showaxeslabels import ShowaxeslabelsValidator - from ._separatethousands import SeparatethousandsValidator - from ._rangemode import RangemodeValidator - from ._range import RangeValidator - from ._nticks import NticksValidator - from ._mirror import MirrorValidator - from ._minexponent import MinexponentValidator - from ._minallowed import MinallowedValidator - from ._maxallowed import MaxallowedValidator - from ._linewidth import LinewidthValidator - from ._linecolor import LinecolorValidator - from ._labelalias import LabelaliasValidator - from ._hoverformat import HoverformatValidator - from ._gridwidth import GridwidthValidator - from ._gridcolor import GridcolorValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._color import ColorValidator - from ._categoryorder import CategoryorderValidator - from ._categoryarraysrc import CategoryarraysrcValidator - from ._categoryarray import CategoryarrayValidator - from ._calendar import CalendarValidator - from ._backgroundcolor import BackgroundcolorValidator - from ._autotypenumbers import AutotypenumbersValidator - from ._autorangeoptions import AutorangeoptionsValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/scene/zaxis/_autorange.py b/plotly/validators/layout/scene/zaxis/_autorange.py index eaae6e6ca2..ca1062af6f 100644 --- a/plotly/validators/layout/scene/zaxis/_autorange.py +++ b/plotly/validators/layout/scene/zaxis/_autorange.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutorangeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop( diff --git a/plotly/validators/layout/scene/zaxis/_autorangeoptions.py b/plotly/validators/layout/scene/zaxis/_autorangeoptions.py index 22dce4ccea..66541ae76b 100644 --- a/plotly/validators/layout/scene/zaxis/_autorangeoptions.py +++ b/plotly/validators/layout/scene/zaxis/_autorangeoptions.py @@ -1,34 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutorangeoptionsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/scene/zaxis/_autotypenumbers.py b/plotly/validators/layout/scene/zaxis/_autotypenumbers.py index 175376d186..eebac5893e 100644 --- a/plotly/validators/layout/scene/zaxis/_autotypenumbers.py +++ b/plotly/validators/layout/scene/zaxis/_autotypenumbers.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutotypenumbersValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["convert types", "strict"]), **kwargs, diff --git a/plotly/validators/layout/scene/zaxis/_backgroundcolor.py b/plotly/validators/layout/scene/zaxis/_backgroundcolor.py index 8be4e10a5f..16e67c3cbe 100644 --- a/plotly/validators/layout/scene/zaxis/_backgroundcolor.py +++ b/plotly/validators/layout/scene/zaxis/_backgroundcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BackgroundcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/_calendar.py b/plotly/validators/layout/scene/zaxis/_calendar.py index d5a4b71cd9..68492f68c7 100644 --- a/plotly/validators/layout/scene/zaxis/_calendar.py +++ b/plotly/validators/layout/scene/zaxis/_calendar.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/scene/zaxis/_categoryarray.py b/plotly/validators/layout/scene/zaxis/_categoryarray.py index e422240b9c..0b6e2883ff 100644 --- a/plotly/validators/layout/scene/zaxis/_categoryarray.py +++ b/plotly/validators/layout/scene/zaxis/_categoryarray.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CategoryarrayValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/_categoryarraysrc.py b/plotly/validators/layout/scene/zaxis/_categoryarraysrc.py index 1c0cd084f8..8a5b85c7aa 100644 --- a/plotly/validators/layout/scene/zaxis/_categoryarraysrc.py +++ b/plotly/validators/layout/scene/zaxis/_categoryarraysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CategoryarraysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/_categoryorder.py b/plotly/validators/layout/scene/zaxis/_categoryorder.py index 6c94587d01..3b30961ebd 100644 --- a/plotly/validators/layout/scene/zaxis/_categoryorder.py +++ b/plotly/validators/layout/scene/zaxis/_categoryorder.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CategoryorderValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/scene/zaxis/_color.py b/plotly/validators/layout/scene/zaxis/_color.py index 5a948d0492..3a682228cf 100644 --- a/plotly/validators/layout/scene/zaxis/_color.py +++ b/plotly/validators/layout/scene/zaxis/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/_dtick.py b/plotly/validators/layout/scene/zaxis/_dtick.py index 89e315e8f0..61d05fbd9f 100644 --- a/plotly/validators/layout/scene/zaxis/_dtick.py +++ b/plotly/validators/layout/scene/zaxis/_dtick.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/layout/scene/zaxis/_exponentformat.py b/plotly/validators/layout/scene/zaxis/_exponentformat.py index e8bbf49a8c..3e8c629853 100644 --- a/plotly/validators/layout/scene/zaxis/_exponentformat.py +++ b/plotly/validators/layout/scene/zaxis/_exponentformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/layout/scene/zaxis/_gridcolor.py b/plotly/validators/layout/scene/zaxis/_gridcolor.py index 5fd52c934c..3db5147554 100644 --- a/plotly/validators/layout/scene/zaxis/_gridcolor.py +++ b/plotly/validators/layout/scene/zaxis/_gridcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/_gridwidth.py b/plotly/validators/layout/scene/zaxis/_gridwidth.py index 02c21e998a..0e0d45521c 100644 --- a/plotly/validators/layout/scene/zaxis/_gridwidth.py +++ b/plotly/validators/layout/scene/zaxis/_gridwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/scene/zaxis/_hoverformat.py b/plotly/validators/layout/scene/zaxis/_hoverformat.py index 463268407b..517c05c37d 100644 --- a/plotly/validators/layout/scene/zaxis/_hoverformat.py +++ b/plotly/validators/layout/scene/zaxis/_hoverformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/_labelalias.py b/plotly/validators/layout/scene/zaxis/_labelalias.py index 5dd991fdbf..670c8e5f04 100644 --- a/plotly/validators/layout/scene/zaxis/_labelalias.py +++ b/plotly/validators/layout/scene/zaxis/_labelalias.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/_linecolor.py b/plotly/validators/layout/scene/zaxis/_linecolor.py index 1be4144816..278d6e6028 100644 --- a/plotly/validators/layout/scene/zaxis/_linecolor.py +++ b/plotly/validators/layout/scene/zaxis/_linecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/_linewidth.py b/plotly/validators/layout/scene/zaxis/_linewidth.py index f6d6c342d2..360e84125c 100644 --- a/plotly/validators/layout/scene/zaxis/_linewidth.py +++ b/plotly/validators/layout/scene/zaxis/_linewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/scene/zaxis/_maxallowed.py b/plotly/validators/layout/scene/zaxis/_maxallowed.py index c8be55290d..5842c10fdf 100644 --- a/plotly/validators/layout/scene/zaxis/_maxallowed.py +++ b/plotly/validators/layout/scene/zaxis/_maxallowed.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxallowedValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"^autorange": False}), **kwargs, diff --git a/plotly/validators/layout/scene/zaxis/_minallowed.py b/plotly/validators/layout/scene/zaxis/_minallowed.py index 6b9b962716..00ed9e2647 100644 --- a/plotly/validators/layout/scene/zaxis/_minallowed.py +++ b/plotly/validators/layout/scene/zaxis/_minallowed.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinallowedValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"^autorange": False}), **kwargs, diff --git a/plotly/validators/layout/scene/zaxis/_minexponent.py b/plotly/validators/layout/scene/zaxis/_minexponent.py index cf4db2fa5e..112493409e 100644 --- a/plotly/validators/layout/scene/zaxis/_minexponent.py +++ b/plotly/validators/layout/scene/zaxis/_minexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/scene/zaxis/_mirror.py b/plotly/validators/layout/scene/zaxis/_mirror.py index 4b32e6729c..8587c7ccfc 100644 --- a/plotly/validators/layout/scene/zaxis/_mirror.py +++ b/plotly/validators/layout/scene/zaxis/_mirror.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MirrorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", [True, "ticks", False, "all", "allticks"]), **kwargs, diff --git a/plotly/validators/layout/scene/zaxis/_nticks.py b/plotly/validators/layout/scene/zaxis/_nticks.py index 5c9e5d8e1e..404bd98e52 100644 --- a/plotly/validators/layout/scene/zaxis/_nticks.py +++ b/plotly/validators/layout/scene/zaxis/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/scene/zaxis/_range.py b/plotly/validators/layout/scene/zaxis/_range.py index aa1962a35c..ac92a374e1 100644 --- a/plotly/validators/layout/scene/zaxis/_range.py +++ b/plotly/validators/layout/scene/zaxis/_range.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", False), edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"autorange": False}), diff --git a/plotly/validators/layout/scene/zaxis/_rangemode.py b/plotly/validators/layout/scene/zaxis/_rangemode.py index 780a6e4315..1f8118bf7c 100644 --- a/plotly/validators/layout/scene/zaxis/_rangemode.py +++ b/plotly/validators/layout/scene/zaxis/_rangemode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RangemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "tozero", "nonnegative"]), **kwargs, diff --git a/plotly/validators/layout/scene/zaxis/_separatethousands.py b/plotly/validators/layout/scene/zaxis/_separatethousands.py index e867ec19d8..fc9de85b54 100644 --- a/plotly/validators/layout/scene/zaxis/_separatethousands.py +++ b/plotly/validators/layout/scene/zaxis/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/_showaxeslabels.py b/plotly/validators/layout/scene/zaxis/_showaxeslabels.py index 8f890c2773..64cb3b4718 100644 --- a/plotly/validators/layout/scene/zaxis/_showaxeslabels.py +++ b/plotly/validators/layout/scene/zaxis/_showaxeslabels.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowaxeslabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/_showbackground.py b/plotly/validators/layout/scene/zaxis/_showbackground.py index 030facc677..e557b2e97a 100644 --- a/plotly/validators/layout/scene/zaxis/_showbackground.py +++ b/plotly/validators/layout/scene/zaxis/_showbackground.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowbackgroundValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/_showexponent.py b/plotly/validators/layout/scene/zaxis/_showexponent.py index d13ae1e0b8..bc3153428e 100644 --- a/plotly/validators/layout/scene/zaxis/_showexponent.py +++ b/plotly/validators/layout/scene/zaxis/_showexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/scene/zaxis/_showgrid.py b/plotly/validators/layout/scene/zaxis/_showgrid.py index 1d45c4b2d2..28de4d10b8 100644 --- a/plotly/validators/layout/scene/zaxis/_showgrid.py +++ b/plotly/validators/layout/scene/zaxis/_showgrid.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/_showline.py b/plotly/validators/layout/scene/zaxis/_showline.py index aa6e577f82..1753836bbe 100644 --- a/plotly/validators/layout/scene/zaxis/_showline.py +++ b/plotly/validators/layout/scene/zaxis/_showline.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/_showspikes.py b/plotly/validators/layout/scene/zaxis/_showspikes.py index 5ea1e336d2..543df01ee7 100644 --- a/plotly/validators/layout/scene/zaxis/_showspikes.py +++ b/plotly/validators/layout/scene/zaxis/_showspikes.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowspikesValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/_showticklabels.py b/plotly/validators/layout/scene/zaxis/_showticklabels.py index e292804247..657152fdbb 100644 --- a/plotly/validators/layout/scene/zaxis/_showticklabels.py +++ b/plotly/validators/layout/scene/zaxis/_showticklabels.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/_showtickprefix.py b/plotly/validators/layout/scene/zaxis/_showtickprefix.py index 4e0b81e2aa..92dad61fc0 100644 --- a/plotly/validators/layout/scene/zaxis/_showtickprefix.py +++ b/plotly/validators/layout/scene/zaxis/_showtickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/scene/zaxis/_showticksuffix.py b/plotly/validators/layout/scene/zaxis/_showticksuffix.py index 1bb83aaf0a..0e5798f314 100644 --- a/plotly/validators/layout/scene/zaxis/_showticksuffix.py +++ b/plotly/validators/layout/scene/zaxis/_showticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/scene/zaxis/_spikecolor.py b/plotly/validators/layout/scene/zaxis/_spikecolor.py index d261adede3..e76b67deff 100644 --- a/plotly/validators/layout/scene/zaxis/_spikecolor.py +++ b/plotly/validators/layout/scene/zaxis/_spikecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SpikecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/_spikesides.py b/plotly/validators/layout/scene/zaxis/_spikesides.py index a258a22784..044dd94324 100644 --- a/plotly/validators/layout/scene/zaxis/_spikesides.py +++ b/plotly/validators/layout/scene/zaxis/_spikesides.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SpikesidesValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/_spikethickness.py b/plotly/validators/layout/scene/zaxis/_spikethickness.py index 75dd93b89f..9cce12d449 100644 --- a/plotly/validators/layout/scene/zaxis/_spikethickness.py +++ b/plotly/validators/layout/scene/zaxis/_spikethickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SpikethicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/scene/zaxis/_tick0.py b/plotly/validators/layout/scene/zaxis/_tick0.py index a39460d2f3..a51b57e7e1 100644 --- a/plotly/validators/layout/scene/zaxis/_tick0.py +++ b/plotly/validators/layout/scene/zaxis/_tick0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/layout/scene/zaxis/_tickangle.py b/plotly/validators/layout/scene/zaxis/_tickangle.py index bb72dee36c..afa664571b 100644 --- a/plotly/validators/layout/scene/zaxis/_tickangle.py +++ b/plotly/validators/layout/scene/zaxis/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/_tickcolor.py b/plotly/validators/layout/scene/zaxis/_tickcolor.py index 78dbd88675..7633c9194c 100644 --- a/plotly/validators/layout/scene/zaxis/_tickcolor.py +++ b/plotly/validators/layout/scene/zaxis/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/_tickfont.py b/plotly/validators/layout/scene/zaxis/_tickfont.py index e5c2bd902e..0c7807f28e 100644 --- a/plotly/validators/layout/scene/zaxis/_tickfont.py +++ b/plotly/validators/layout/scene/zaxis/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/scene/zaxis/_tickformat.py b/plotly/validators/layout/scene/zaxis/_tickformat.py index bf83b2adba..2dc1383aea 100644 --- a/plotly/validators/layout/scene/zaxis/_tickformat.py +++ b/plotly/validators/layout/scene/zaxis/_tickformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/_tickformatstopdefaults.py b/plotly/validators/layout/scene/zaxis/_tickformatstopdefaults.py index 8c3751b6fd..07edb26f9d 100644 --- a/plotly/validators/layout/scene/zaxis/_tickformatstopdefaults.py +++ b/plotly/validators/layout/scene/zaxis/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/scene/zaxis/_tickformatstops.py b/plotly/validators/layout/scene/zaxis/_tickformatstops.py index cabfab02ce..143bf0e268 100644 --- a/plotly/validators/layout/scene/zaxis/_tickformatstops.py +++ b/plotly/validators/layout/scene/zaxis/_tickformatstops.py @@ -1,50 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/scene/zaxis/_ticklen.py b/plotly/validators/layout/scene/zaxis/_ticklen.py index 947f1266a2..42def88792 100644 --- a/plotly/validators/layout/scene/zaxis/_ticklen.py +++ b/plotly/validators/layout/scene/zaxis/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/scene/zaxis/_tickmode.py b/plotly/validators/layout/scene/zaxis/_tickmode.py index c690bd8ff3..97f8df1283 100644 --- a/plotly/validators/layout/scene/zaxis/_tickmode.py +++ b/plotly/validators/layout/scene/zaxis/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/layout/scene/zaxis/_tickprefix.py b/plotly/validators/layout/scene/zaxis/_tickprefix.py index 7d23394586..c8a7328797 100644 --- a/plotly/validators/layout/scene/zaxis/_tickprefix.py +++ b/plotly/validators/layout/scene/zaxis/_tickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/_ticks.py b/plotly/validators/layout/scene/zaxis/_ticks.py index 7a96f855f6..a96b68ac2e 100644 --- a/plotly/validators/layout/scene/zaxis/_ticks.py +++ b/plotly/validators/layout/scene/zaxis/_ticks.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/layout/scene/zaxis/_ticksuffix.py b/plotly/validators/layout/scene/zaxis/_ticksuffix.py index bacbee8c65..adfa50da8e 100644 --- a/plotly/validators/layout/scene/zaxis/_ticksuffix.py +++ b/plotly/validators/layout/scene/zaxis/_ticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/_ticktext.py b/plotly/validators/layout/scene/zaxis/_ticktext.py index 0f243e03eb..28cf566511 100644 --- a/plotly/validators/layout/scene/zaxis/_ticktext.py +++ b/plotly/validators/layout/scene/zaxis/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/_ticktextsrc.py b/plotly/validators/layout/scene/zaxis/_ticktextsrc.py index 7dba15af5e..0e0566e07c 100644 --- a/plotly/validators/layout/scene/zaxis/_ticktextsrc.py +++ b/plotly/validators/layout/scene/zaxis/_ticktextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/_tickvals.py b/plotly/validators/layout/scene/zaxis/_tickvals.py index b58eb462d9..229a94964b 100644 --- a/plotly/validators/layout/scene/zaxis/_tickvals.py +++ b/plotly/validators/layout/scene/zaxis/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/_tickvalssrc.py b/plotly/validators/layout/scene/zaxis/_tickvalssrc.py index 8d515fb082..5e5a489988 100644 --- a/plotly/validators/layout/scene/zaxis/_tickvalssrc.py +++ b/plotly/validators/layout/scene/zaxis/_tickvalssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/_tickwidth.py b/plotly/validators/layout/scene/zaxis/_tickwidth.py index 308e2e74f3..7d5d1f5809 100644 --- a/plotly/validators/layout/scene/zaxis/_tickwidth.py +++ b/plotly/validators/layout/scene/zaxis/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/scene/zaxis/_title.py b/plotly/validators/layout/scene/zaxis/_title.py index 79d137210b..06ff6e1e66 100644 --- a/plotly/validators/layout/scene/zaxis/_title.py +++ b/plotly/validators/layout/scene/zaxis/_title.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/scene/zaxis/_type.py b/plotly/validators/layout/scene/zaxis/_type.py index e804f36079..fed0954baa 100644 --- a/plotly/validators/layout/scene/zaxis/_type.py +++ b/plotly/validators/layout/scene/zaxis/_type.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["-", "linear", "log", "date", "category"]), **kwargs, diff --git a/plotly/validators/layout/scene/zaxis/_visible.py b/plotly/validators/layout/scene/zaxis/_visible.py index 9aeded29ea..9fe708bc95 100644 --- a/plotly/validators/layout/scene/zaxis/_visible.py +++ b/plotly/validators/layout/scene/zaxis/_visible.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/_zeroline.py b/plotly/validators/layout/scene/zaxis/_zeroline.py index 2aafd05796..184e0977f9 100644 --- a/plotly/validators/layout/scene/zaxis/_zeroline.py +++ b/plotly/validators/layout/scene/zaxis/_zeroline.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZerolineValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/_zerolinecolor.py b/plotly/validators/layout/scene/zaxis/_zerolinecolor.py index 2bab5882ca..c14b2211e6 100644 --- a/plotly/validators/layout/scene/zaxis/_zerolinecolor.py +++ b/plotly/validators/layout/scene/zaxis/_zerolinecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZerolinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/_zerolinewidth.py b/plotly/validators/layout/scene/zaxis/_zerolinewidth.py index 16a92ed232..b15ecb6d65 100644 --- a/plotly/validators/layout/scene/zaxis/_zerolinewidth.py +++ b/plotly/validators/layout/scene/zaxis/_zerolinewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZerolinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/autorangeoptions/__init__.py b/plotly/validators/layout/scene/zaxis/autorangeoptions/__init__.py index 701f84c04e..8ef0b74165 100644 --- a/plotly/validators/layout/scene/zaxis/autorangeoptions/__init__.py +++ b/plotly/validators/layout/scene/zaxis/autorangeoptions/__init__.py @@ -1,25 +1,15 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._minallowed import MinallowedValidator - from ._maxallowed import MaxallowedValidator - from ._includesrc import IncludesrcValidator - from ._include import IncludeValidator - from ._clipmin import ClipminValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._minallowed.MinallowedValidator", + "._maxallowed.MaxallowedValidator", + "._includesrc.IncludesrcValidator", + "._include.IncludeValidator", + "._clipmin.ClipminValidator", + "._clipmax.ClipmaxValidator", + ], +) diff --git a/plotly/validators/layout/scene/zaxis/autorangeoptions/_clipmax.py b/plotly/validators/layout/scene/zaxis/autorangeoptions/_clipmax.py index 541dcbabf3..2717fd696e 100644 --- a/plotly/validators/layout/scene/zaxis/autorangeoptions/_clipmax.py +++ b/plotly/validators/layout/scene/zaxis/autorangeoptions/_clipmax.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ClipmaxValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/layout/scene/zaxis/autorangeoptions/_clipmin.py b/plotly/validators/layout/scene/zaxis/autorangeoptions/_clipmin.py index b40caa3fca..86edb66b63 100644 --- a/plotly/validators/layout/scene/zaxis/autorangeoptions/_clipmin.py +++ b/plotly/validators/layout/scene/zaxis/autorangeoptions/_clipmin.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ClipminValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/layout/scene/zaxis/autorangeoptions/_include.py b/plotly/validators/layout/scene/zaxis/autorangeoptions/_include.py index c2d3401cbd..4f398c347c 100644 --- a/plotly/validators/layout/scene/zaxis/autorangeoptions/_include.py +++ b/plotly/validators/layout/scene/zaxis/autorangeoptions/_include.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IncludeValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), diff --git a/plotly/validators/layout/scene/zaxis/autorangeoptions/_includesrc.py b/plotly/validators/layout/scene/zaxis/autorangeoptions/_includesrc.py index dee1f42fb0..ba0c20a3ca 100644 --- a/plotly/validators/layout/scene/zaxis/autorangeoptions/_includesrc.py +++ b/plotly/validators/layout/scene/zaxis/autorangeoptions/_includesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IncludesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/autorangeoptions/_maxallowed.py b/plotly/validators/layout/scene/zaxis/autorangeoptions/_maxallowed.py index 56d5dc856f..cc615b9e9f 100644 --- a/plotly/validators/layout/scene/zaxis/autorangeoptions/_maxallowed.py +++ b/plotly/validators/layout/scene/zaxis/autorangeoptions/_maxallowed.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxallowedValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/layout/scene/zaxis/autorangeoptions/_minallowed.py b/plotly/validators/layout/scene/zaxis/autorangeoptions/_minallowed.py index b031c37761..ca6f4ec61f 100644 --- a/plotly/validators/layout/scene/zaxis/autorangeoptions/_minallowed.py +++ b/plotly/validators/layout/scene/zaxis/autorangeoptions/_minallowed.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinallowedValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/layout/scene/zaxis/tickfont/__init__.py b/plotly/validators/layout/scene/zaxis/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/scene/zaxis/tickfont/__init__.py +++ b/plotly/validators/layout/scene/zaxis/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/scene/zaxis/tickfont/_color.py b/plotly/validators/layout/scene/zaxis/tickfont/_color.py index 194e31b130..6ae0d9253f 100644 --- a/plotly/validators/layout/scene/zaxis/tickfont/_color.py +++ b/plotly/validators/layout/scene/zaxis/tickfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/tickfont/_family.py b/plotly/validators/layout/scene/zaxis/tickfont/_family.py index 48c2c5d651..98913cbbd3 100644 --- a/plotly/validators/layout/scene/zaxis/tickfont/_family.py +++ b/plotly/validators/layout/scene/zaxis/tickfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/scene/zaxis/tickfont/_lineposition.py b/plotly/validators/layout/scene/zaxis/tickfont/_lineposition.py index 456f9608c5..30494c647f 100644 --- a/plotly/validators/layout/scene/zaxis/tickfont/_lineposition.py +++ b/plotly/validators/layout/scene/zaxis/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/scene/zaxis/tickfont/_shadow.py b/plotly/validators/layout/scene/zaxis/tickfont/_shadow.py index 3b208f7465..9fca6a2242 100644 --- a/plotly/validators/layout/scene/zaxis/tickfont/_shadow.py +++ b/plotly/validators/layout/scene/zaxis/tickfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/tickfont/_size.py b/plotly/validators/layout/scene/zaxis/tickfont/_size.py index ff74fdfade..ff451a5071 100644 --- a/plotly/validators/layout/scene/zaxis/tickfont/_size.py +++ b/plotly/validators/layout/scene/zaxis/tickfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/scene/zaxis/tickfont/_style.py b/plotly/validators/layout/scene/zaxis/tickfont/_style.py index dc8a3c505b..82a3f005a0 100644 --- a/plotly/validators/layout/scene/zaxis/tickfont/_style.py +++ b/plotly/validators/layout/scene/zaxis/tickfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/scene/zaxis/tickfont/_textcase.py b/plotly/validators/layout/scene/zaxis/tickfont/_textcase.py index 93e2e01168..a00b0226d4 100644 --- a/plotly/validators/layout/scene/zaxis/tickfont/_textcase.py +++ b/plotly/validators/layout/scene/zaxis/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/scene/zaxis/tickfont/_variant.py b/plotly/validators/layout/scene/zaxis/tickfont/_variant.py index 04d25b9695..7f18cf3656 100644 --- a/plotly/validators/layout/scene/zaxis/tickfont/_variant.py +++ b/plotly/validators/layout/scene/zaxis/tickfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/scene/zaxis/tickfont/_weight.py b/plotly/validators/layout/scene/zaxis/tickfont/_weight.py index 983d728c8d..8d48303a9d 100644 --- a/plotly/validators/layout/scene/zaxis/tickfont/_weight.py +++ b/plotly/validators/layout/scene/zaxis/tickfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/scene/zaxis/tickformatstop/__init__.py b/plotly/validators/layout/scene/zaxis/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/layout/scene/zaxis/tickformatstop/__init__.py +++ b/plotly/validators/layout/scene/zaxis/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/layout/scene/zaxis/tickformatstop/_dtickrange.py b/plotly/validators/layout/scene/zaxis/tickformatstop/_dtickrange.py index 6e7dc01979..ab17369c81 100644 --- a/plotly/validators/layout/scene/zaxis/tickformatstop/_dtickrange.py +++ b/plotly/validators/layout/scene/zaxis/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/scene/zaxis/tickformatstop/_enabled.py b/plotly/validators/layout/scene/zaxis/tickformatstop/_enabled.py index 0e22fdb56e..d1bbe1308d 100644 --- a/plotly/validators/layout/scene/zaxis/tickformatstop/_enabled.py +++ b/plotly/validators/layout/scene/zaxis/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/tickformatstop/_name.py b/plotly/validators/layout/scene/zaxis/tickformatstop/_name.py index 074c9a5ea6..1683e67121 100644 --- a/plotly/validators/layout/scene/zaxis/tickformatstop/_name.py +++ b/plotly/validators/layout/scene/zaxis/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/tickformatstop/_templateitemname.py b/plotly/validators/layout/scene/zaxis/tickformatstop/_templateitemname.py index 593e503998..0225e1e136 100644 --- a/plotly/validators/layout/scene/zaxis/tickformatstop/_templateitemname.py +++ b/plotly/validators/layout/scene/zaxis/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/tickformatstop/_value.py b/plotly/validators/layout/scene/zaxis/tickformatstop/_value.py index 871839b71d..82d7d0fc4c 100644 --- a/plotly/validators/layout/scene/zaxis/tickformatstop/_value.py +++ b/plotly/validators/layout/scene/zaxis/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/title/__init__.py b/plotly/validators/layout/scene/zaxis/title/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/layout/scene/zaxis/title/__init__.py +++ b/plotly/validators/layout/scene/zaxis/title/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/layout/scene/zaxis/title/_font.py b/plotly/validators/layout/scene/zaxis/title/_font.py index 237e25c699..47b72c3348 100644 --- a/plotly/validators/layout/scene/zaxis/title/_font.py +++ b/plotly/validators/layout/scene/zaxis/title/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/scene/zaxis/title/_text.py b/plotly/validators/layout/scene/zaxis/title/_text.py index 9bce25eb57..8b8be68cb9 100644 --- a/plotly/validators/layout/scene/zaxis/title/_text.py +++ b/plotly/validators/layout/scene/zaxis/title/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/title/font/__init__.py b/plotly/validators/layout/scene/zaxis/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/scene/zaxis/title/font/__init__.py +++ b/plotly/validators/layout/scene/zaxis/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/scene/zaxis/title/font/_color.py b/plotly/validators/layout/scene/zaxis/title/font/_color.py index b01b06906f..6db175f2ab 100644 --- a/plotly/validators/layout/scene/zaxis/title/font/_color.py +++ b/plotly/validators/layout/scene/zaxis/title/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/title/font/_family.py b/plotly/validators/layout/scene/zaxis/title/font/_family.py index 4fe6862624..71a47f4b33 100644 --- a/plotly/validators/layout/scene/zaxis/title/font/_family.py +++ b/plotly/validators/layout/scene/zaxis/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/scene/zaxis/title/font/_lineposition.py b/plotly/validators/layout/scene/zaxis/title/font/_lineposition.py index 8df8198bb5..05d2de35ee 100644 --- a/plotly/validators/layout/scene/zaxis/title/font/_lineposition.py +++ b/plotly/validators/layout/scene/zaxis/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/scene/zaxis/title/font/_shadow.py b/plotly/validators/layout/scene/zaxis/title/font/_shadow.py index 75f1b0b210..75eb543a3d 100644 --- a/plotly/validators/layout/scene/zaxis/title/font/_shadow.py +++ b/plotly/validators/layout/scene/zaxis/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/scene/zaxis/title/font/_size.py b/plotly/validators/layout/scene/zaxis/title/font/_size.py index ccb49275e6..2a8417074a 100644 --- a/plotly/validators/layout/scene/zaxis/title/font/_size.py +++ b/plotly/validators/layout/scene/zaxis/title/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/scene/zaxis/title/font/_style.py b/plotly/validators/layout/scene/zaxis/title/font/_style.py index 9ee0415c4e..b8e7f29600 100644 --- a/plotly/validators/layout/scene/zaxis/title/font/_style.py +++ b/plotly/validators/layout/scene/zaxis/title/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/scene/zaxis/title/font/_textcase.py b/plotly/validators/layout/scene/zaxis/title/font/_textcase.py index ca9c8fd504..f542e44ccf 100644 --- a/plotly/validators/layout/scene/zaxis/title/font/_textcase.py +++ b/plotly/validators/layout/scene/zaxis/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/scene/zaxis/title/font/_variant.py b/plotly/validators/layout/scene/zaxis/title/font/_variant.py index 46bb41ce40..ac35dc9d11 100644 --- a/plotly/validators/layout/scene/zaxis/title/font/_variant.py +++ b/plotly/validators/layout/scene/zaxis/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/scene/zaxis/title/font/_weight.py b/plotly/validators/layout/scene/zaxis/title/font/_weight.py index 765126c7a5..9e5e8a783a 100644 --- a/plotly/validators/layout/scene/zaxis/title/font/_weight.py +++ b/plotly/validators/layout/scene/zaxis/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/selection/__init__.py b/plotly/validators/layout/selection/__init__.py index 12ba4f55b4..a2df1a2c23 100644 --- a/plotly/validators/layout/selection/__init__.py +++ b/plotly/validators/layout/selection/__init__.py @@ -1,37 +1,21 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._y1 import Y1Validator - from ._y0 import Y0Validator - from ._xref import XrefValidator - from ._x1 import X1Validator - from ._x0 import X0Validator - from ._type import TypeValidator - from ._templateitemname import TemplateitemnameValidator - from ._path import PathValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/selection/_line.py b/plotly/validators/layout/selection/_line.py index 7017d95469..c7e2de1ead 100644 --- a/plotly/validators/layout/selection/_line.py +++ b/plotly/validators/layout/selection/_line.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/selection/_name.py b/plotly/validators/layout/selection/_name.py index 3074c4fa66..e080cfc0c3 100644 --- a/plotly/validators/layout/selection/_name.py +++ b/plotly/validators/layout/selection/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/selection/_opacity.py b/plotly/validators/layout/selection/_opacity.py index 08c319d99b..a46197e0f3 100644 --- a/plotly/validators/layout/selection/_opacity.py +++ b/plotly/validators/layout/selection/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/selection/_path.py b/plotly/validators/layout/selection/_path.py index abcd969292..f525fb28c1 100644 --- a/plotly/validators/layout/selection/_path.py +++ b/plotly/validators/layout/selection/_path.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PathValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/selection/_templateitemname.py b/plotly/validators/layout/selection/_templateitemname.py index fd8a09d6fb..60469e7d0e 100644 --- a/plotly/validators/layout/selection/_templateitemname.py +++ b/plotly/validators/layout/selection/_templateitemname.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/selection/_type.py b/plotly/validators/layout/selection/_type.py index 28262664c5..0fa8ca49a9 100644 --- a/plotly/validators/layout/selection/_type.py +++ b/plotly/validators/layout/selection/_type.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop("values", ["rect", "path"]), **kwargs, diff --git a/plotly/validators/layout/selection/_x0.py b/plotly/validators/layout/selection/_x0.py index 9287c41e40..254412a767 100644 --- a/plotly/validators/layout/selection/_x0.py +++ b/plotly/validators/layout/selection/_x0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class X0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/selection/_x1.py b/plotly/validators/layout/selection/_x1.py index 87a0d634bf..fe944fe548 100644 --- a/plotly/validators/layout/selection/_x1.py +++ b/plotly/validators/layout/selection/_x1.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class X1Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/selection/_xref.py b/plotly/validators/layout/selection/_xref.py index 7a4be8fba3..167da71e52 100644 --- a/plotly/validators/layout/selection/_xref.py +++ b/plotly/validators/layout/selection/_xref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop( "values", ["paper", "/^x([2-9]|[1-9][0-9]+)?( domain)?$/"] diff --git a/plotly/validators/layout/selection/_y0.py b/plotly/validators/layout/selection/_y0.py index fbff6d5394..df104406ff 100644 --- a/plotly/validators/layout/selection/_y0.py +++ b/plotly/validators/layout/selection/_y0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Y0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/selection/_y1.py b/plotly/validators/layout/selection/_y1.py index f576b5505c..bc87291e6c 100644 --- a/plotly/validators/layout/selection/_y1.py +++ b/plotly/validators/layout/selection/_y1.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Y1Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/selection/_yref.py b/plotly/validators/layout/selection/_yref.py index 38ceef30be..3b006a0708 100644 --- a/plotly/validators/layout/selection/_yref.py +++ b/plotly/validators/layout/selection/_yref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop( "values", ["paper", "/^y([2-9]|[1-9][0-9]+)?( domain)?$/"] diff --git a/plotly/validators/layout/selection/line/__init__.py b/plotly/validators/layout/selection/line/__init__.py index cff4146651..c5140ef758 100644 --- a/plotly/validators/layout/selection/line/__init__.py +++ b/plotly/validators/layout/selection/line/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._width.WidthValidator", "._dash.DashValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/layout/selection/line/_color.py b/plotly/validators/layout/selection/line/_color.py index 8a054d845d..99c349d6ed 100644 --- a/plotly/validators/layout/selection/line/_color.py +++ b/plotly/validators/layout/selection/line/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, diff --git a/plotly/validators/layout/selection/line/_dash.py b/plotly/validators/layout/selection/line/_dash.py index 29a6efd807..93d1c1291b 100644 --- a/plotly/validators/layout/selection/line/_dash.py +++ b/plotly/validators/layout/selection/line/_dash.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/layout/selection/line/_width.py b/plotly/validators/layout/selection/line/_width.py index e32fd424f5..40419e9b97 100644 --- a/plotly/validators/layout/selection/line/_width.py +++ b/plotly/validators/layout/selection/line/_width.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "arraydraw"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/layout/shape/__init__.py b/plotly/validators/layout/shape/__init__.py index aefa39690c..3bc8d16933 100644 --- a/plotly/validators/layout/shape/__init__.py +++ b/plotly/validators/layout/shape/__init__.py @@ -1,77 +1,41 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._ysizemode import YsizemodeValidator - from ._yref import YrefValidator - from ._yanchor import YanchorValidator - from ._y1shift import Y1ShiftValidator - from ._y1 import Y1Validator - from ._y0shift import Y0ShiftValidator - from ._y0 import Y0Validator - from ._xsizemode import XsizemodeValidator - from ._xref import XrefValidator - from ._xanchor import XanchorValidator - from ._x1shift import X1ShiftValidator - from ._x1 import X1Validator - from ._x0shift import X0ShiftValidator - from ._x0 import X0Validator - from ._visible import VisibleValidator - from ._type import TypeValidator - from ._templateitemname import TemplateitemnameValidator - from ._showlegend import ShowlegendValidator - from ._path import PathValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - from ._line import LineValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._layer import LayerValidator - from ._label import LabelValidator - from ._fillrule import FillruleValidator - from ._fillcolor import FillcolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/shape/_editable.py b/plotly/validators/layout/shape/_editable.py index 755527aff7..2783ebc803 100644 --- a/plotly/validators/layout/shape/_editable.py +++ b/plotly/validators/layout/shape/_editable.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EditableValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/shape/_fillcolor.py b/plotly/validators/layout/shape/_fillcolor.py index 22a32493e3..25ab6c84e6 100644 --- a/plotly/validators/layout/shape/_fillcolor.py +++ b/plotly/validators/layout/shape/_fillcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/shape/_fillrule.py b/plotly/validators/layout/shape/_fillrule.py index 2454afa5c1..6fa926db3d 100644 --- a/plotly/validators/layout/shape/_fillrule.py +++ b/plotly/validators/layout/shape/_fillrule.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillruleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop("values", ["evenodd", "nonzero"]), **kwargs, diff --git a/plotly/validators/layout/shape/_label.py b/plotly/validators/layout/shape/_label.py index adb9c069c9..5f385ac12a 100644 --- a/plotly/validators/layout/shape/_label.py +++ b/plotly/validators/layout/shape/_label.py @@ -1,81 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/shape/_layer.py b/plotly/validators/layout/shape/_layer.py index 7775d370e5..4f7ed0c404 100644 --- a/plotly/validators/layout/shape/_layer.py +++ b/plotly/validators/layout/shape/_layer.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LayerValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop("values", ["below", "above", "between"]), **kwargs, diff --git a/plotly/validators/layout/shape/_legend.py b/plotly/validators/layout/shape/_legend.py index b4f3b595e3..27341ced1b 100644 --- a/plotly/validators/layout/shape/_legend.py +++ b/plotly/validators/layout/shape/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "calc+arraydraw"), **kwargs, diff --git a/plotly/validators/layout/shape/_legendgroup.py b/plotly/validators/layout/shape/_legendgroup.py index 2c45f89665..459b368dc4 100644 --- a/plotly/validators/layout/shape/_legendgroup.py +++ b/plotly/validators/layout/shape/_legendgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/shape/_legendgrouptitle.py b/plotly/validators/layout/shape/_legendgrouptitle.py index 63f93c783d..df1fe78ec7 100644 --- a/plotly/validators/layout/shape/_legendgrouptitle.py +++ b/plotly/validators/layout/shape/_legendgrouptitle.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/shape/_legendrank.py b/plotly/validators/layout/shape/_legendrank.py index 28eec2d678..251ab18831 100644 --- a/plotly/validators/layout/shape/_legendrank.py +++ b/plotly/validators/layout/shape/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/shape/_legendwidth.py b/plotly/validators/layout/shape/_legendwidth.py index 89c4904bb2..61d6d8a137 100644 --- a/plotly/validators/layout/shape/_legendwidth.py +++ b/plotly/validators/layout/shape/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/shape/_line.py b/plotly/validators/layout/shape/_line.py index 75b7910340..11bec9c0d3 100644 --- a/plotly/validators/layout/shape/_line.py +++ b/plotly/validators/layout/shape/_line.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/shape/_name.py b/plotly/validators/layout/shape/_name.py index 085f21db04..69c9367504 100644 --- a/plotly/validators/layout/shape/_name.py +++ b/plotly/validators/layout/shape/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/shape/_opacity.py b/plotly/validators/layout/shape/_opacity.py index 19f44342b5..dd50fb2b0f 100644 --- a/plotly/validators/layout/shape/_opacity.py +++ b/plotly/validators/layout/shape/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/shape/_path.py b/plotly/validators/layout/shape/_path.py index 754e1772c9..feb91fc67f 100644 --- a/plotly/validators/layout/shape/_path.py +++ b/plotly/validators/layout/shape/_path.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PathValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/shape/_showlegend.py b/plotly/validators/layout/shape/_showlegend.py index 2d332f1298..5b68f8fb73 100644 --- a/plotly/validators/layout/shape/_showlegend.py +++ b/plotly/validators/layout/shape/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/shape/_templateitemname.py b/plotly/validators/layout/shape/_templateitemname.py index d1df4657b1..ee93ecb751 100644 --- a/plotly/validators/layout/shape/_templateitemname.py +++ b/plotly/validators/layout/shape/_templateitemname.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/shape/_type.py b/plotly/validators/layout/shape/_type.py index 80fd2fdbf8..3c2bb8ec61 100644 --- a/plotly/validators/layout/shape/_type.py +++ b/plotly/validators/layout/shape/_type.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), values=kwargs.pop("values", ["circle", "rect", "path", "line"]), **kwargs, diff --git a/plotly/validators/layout/shape/_visible.py b/plotly/validators/layout/shape/_visible.py index 465a8a0e81..16520dba26 100644 --- a/plotly/validators/layout/shape/_visible.py +++ b/plotly/validators/layout/shape/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/layout/shape/_x0.py b/plotly/validators/layout/shape/_x0.py index 1c9642e6a6..170d6f7d2c 100644 --- a/plotly/validators/layout/shape/_x0.py +++ b/plotly/validators/layout/shape/_x0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class X0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/shape/_x0shift.py b/plotly/validators/layout/shape/_x0shift.py index fddaad3ac4..a2b6d92f38 100644 --- a/plotly/validators/layout/shape/_x0shift.py +++ b/plotly/validators/layout/shape/_x0shift.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class X0ShiftValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", -1), diff --git a/plotly/validators/layout/shape/_x1.py b/plotly/validators/layout/shape/_x1.py index b7d6f51a7d..8fcb161b03 100644 --- a/plotly/validators/layout/shape/_x1.py +++ b/plotly/validators/layout/shape/_x1.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class X1Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/shape/_x1shift.py b/plotly/validators/layout/shape/_x1shift.py index 02aaa138e7..7418f29760 100644 --- a/plotly/validators/layout/shape/_x1shift.py +++ b/plotly/validators/layout/shape/_x1shift.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class X1ShiftValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", -1), diff --git a/plotly/validators/layout/shape/_xanchor.py b/plotly/validators/layout/shape/_xanchor.py index d6ba286da8..c71373cc92 100644 --- a/plotly/validators/layout/shape/_xanchor.py +++ b/plotly/validators/layout/shape/_xanchor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/shape/_xref.py b/plotly/validators/layout/shape/_xref.py index 065f9868b5..21a4718824 100644 --- a/plotly/validators/layout/shape/_xref.py +++ b/plotly/validators/layout/shape/_xref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", ["paper", "/^x([2-9]|[1-9][0-9]+)?( domain)?$/"] diff --git a/plotly/validators/layout/shape/_xsizemode.py b/plotly/validators/layout/shape/_xsizemode.py index 34f9ead7a9..b85e3082c3 100644 --- a/plotly/validators/layout/shape/_xsizemode.py +++ b/plotly/validators/layout/shape/_xsizemode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XsizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), values=kwargs.pop("values", ["scaled", "pixel"]), **kwargs, diff --git a/plotly/validators/layout/shape/_y0.py b/plotly/validators/layout/shape/_y0.py index 85f933f59a..dafb2289db 100644 --- a/plotly/validators/layout/shape/_y0.py +++ b/plotly/validators/layout/shape/_y0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Y0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/shape/_y0shift.py b/plotly/validators/layout/shape/_y0shift.py index ea5d94af0c..c3b186b4f9 100644 --- a/plotly/validators/layout/shape/_y0shift.py +++ b/plotly/validators/layout/shape/_y0shift.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Y0ShiftValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", -1), diff --git a/plotly/validators/layout/shape/_y1.py b/plotly/validators/layout/shape/_y1.py index a7b28a1d2d..d7ede0bc1c 100644 --- a/plotly/validators/layout/shape/_y1.py +++ b/plotly/validators/layout/shape/_y1.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Y1Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/shape/_y1shift.py b/plotly/validators/layout/shape/_y1shift.py index 47c142afd1..6d5a69c75c 100644 --- a/plotly/validators/layout/shape/_y1shift.py +++ b/plotly/validators/layout/shape/_y1shift.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Y1ShiftValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", -1), diff --git a/plotly/validators/layout/shape/_yanchor.py b/plotly/validators/layout/shape/_yanchor.py index 3cad26d102..1e6bbfb8f4 100644 --- a/plotly/validators/layout/shape/_yanchor.py +++ b/plotly/validators/layout/shape/_yanchor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/shape/_yref.py b/plotly/validators/layout/shape/_yref.py index d362c4151c..560c151bb4 100644 --- a/plotly/validators/layout/shape/_yref.py +++ b/plotly/validators/layout/shape/_yref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", ["paper", "/^y([2-9]|[1-9][0-9]+)?( domain)?$/"] diff --git a/plotly/validators/layout/shape/_ysizemode.py b/plotly/validators/layout/shape/_ysizemode.py index 8659ab0e61..e128aa0d70 100644 --- a/plotly/validators/layout/shape/_ysizemode.py +++ b/plotly/validators/layout/shape/_ysizemode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YsizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), values=kwargs.pop("values", ["scaled", "pixel"]), **kwargs, diff --git a/plotly/validators/layout/shape/label/__init__.py b/plotly/validators/layout/shape/label/__init__.py index c6a5f99963..215b669f84 100644 --- a/plotly/validators/layout/shape/label/__init__.py +++ b/plotly/validators/layout/shape/label/__init__.py @@ -1,29 +1,17 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yanchor import YanchorValidator - from ._xanchor import XanchorValidator - from ._texttemplate import TexttemplateValidator - from ._textposition import TextpositionValidator - from ._textangle import TextangleValidator - from ._text import TextValidator - from ._padding import PaddingValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._yanchor.YanchorValidator", + "._xanchor.XanchorValidator", + "._texttemplate.TexttemplateValidator", + "._textposition.TextpositionValidator", + "._textangle.TextangleValidator", + "._text.TextValidator", + "._padding.PaddingValidator", + "._font.FontValidator", + ], +) diff --git a/plotly/validators/layout/shape/label/_font.py b/plotly/validators/layout/shape/label/_font.py index a6868456d4..ec6c62af3d 100644 --- a/plotly/validators/layout/shape/label/_font.py +++ b/plotly/validators/layout/shape/label/_font.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/shape/label/_padding.py b/plotly/validators/layout/shape/label/_padding.py index dadd7669ad..feefc3715c 100644 --- a/plotly/validators/layout/shape/label/_padding.py +++ b/plotly/validators/layout/shape/label/_padding.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PaddingValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/shape/label/_text.py b/plotly/validators/layout/shape/label/_text.py index 59b00bfe98..b1ed49f7c5 100644 --- a/plotly/validators/layout/shape/label/_text.py +++ b/plotly/validators/layout/shape/label/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/shape/label/_textangle.py b/plotly/validators/layout/shape/label/_textangle.py index 6934194a77..eed4c3c158 100644 --- a/plotly/validators/layout/shape/label/_textangle.py +++ b/plotly/validators/layout/shape/label/_textangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/shape/label/_textposition.py b/plotly/validators/layout/shape/label/_textposition.py index 4201b92d67..8ef555d0cc 100644 --- a/plotly/validators/layout/shape/label/_textposition.py +++ b/plotly/validators/layout/shape/label/_textposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/shape/label/_texttemplate.py b/plotly/validators/layout/shape/label/_texttemplate.py index 76a0eb7439..e6d5251a06 100644 --- a/plotly/validators/layout/shape/label/_texttemplate.py +++ b/plotly/validators/layout/shape/label/_texttemplate.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/shape/label/_xanchor.py b/plotly/validators/layout/shape/label/_xanchor.py index 2ce86e0fff..e09e1016f4 100644 --- a/plotly/validators/layout/shape/label/_xanchor.py +++ b/plotly/validators/layout/shape/label/_xanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), values=kwargs.pop("values", ["auto", "left", "center", "right"]), **kwargs, diff --git a/plotly/validators/layout/shape/label/_yanchor.py b/plotly/validators/layout/shape/label/_yanchor.py index d5da6312aa..110137641f 100644 --- a/plotly/validators/layout/shape/label/_yanchor.py +++ b/plotly/validators/layout/shape/label/_yanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/layout/shape/label/font/__init__.py b/plotly/validators/layout/shape/label/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/shape/label/font/__init__.py +++ b/plotly/validators/layout/shape/label/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/shape/label/font/_color.py b/plotly/validators/layout/shape/label/font/_color.py index aad3e1590c..d4a24ba135 100644 --- a/plotly/validators/layout/shape/label/font/_color.py +++ b/plotly/validators/layout/shape/label/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/shape/label/font/_family.py b/plotly/validators/layout/shape/label/font/_family.py index 63cb58e9fe..a8cd3e4218 100644 --- a/plotly/validators/layout/shape/label/font/_family.py +++ b/plotly/validators/layout/shape/label/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/shape/label/font/_lineposition.py b/plotly/validators/layout/shape/label/font/_lineposition.py index cd5e2f8430..0d0d81aeab 100644 --- a/plotly/validators/layout/shape/label/font/_lineposition.py +++ b/plotly/validators/layout/shape/label/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/shape/label/font/_shadow.py b/plotly/validators/layout/shape/label/font/_shadow.py index bf1c8415b0..d7e9560564 100644 --- a/plotly/validators/layout/shape/label/font/_shadow.py +++ b/plotly/validators/layout/shape/label/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/shape/label/font/_size.py b/plotly/validators/layout/shape/label/font/_size.py index 4635de948e..c28fd19c1b 100644 --- a/plotly/validators/layout/shape/label/font/_size.py +++ b/plotly/validators/layout/shape/label/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/shape/label/font/_style.py b/plotly/validators/layout/shape/label/font/_style.py index a65bd892bd..5af00ab16e 100644 --- a/plotly/validators/layout/shape/label/font/_style.py +++ b/plotly/validators/layout/shape/label/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/shape/label/font/_textcase.py b/plotly/validators/layout/shape/label/font/_textcase.py index d4cb7f787d..2f076568c3 100644 --- a/plotly/validators/layout/shape/label/font/_textcase.py +++ b/plotly/validators/layout/shape/label/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/shape/label/font/_variant.py b/plotly/validators/layout/shape/label/font/_variant.py index 9234bfbb1d..08c1c2b861 100644 --- a/plotly/validators/layout/shape/label/font/_variant.py +++ b/plotly/validators/layout/shape/label/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/shape/label/font/_weight.py b/plotly/validators/layout/shape/label/font/_weight.py index ec82a919e0..86c5674652 100644 --- a/plotly/validators/layout/shape/label/font/_weight.py +++ b/plotly/validators/layout/shape/label/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/shape/legendgrouptitle/__init__.py b/plotly/validators/layout/shape/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/layout/shape/legendgrouptitle/__init__.py +++ b/plotly/validators/layout/shape/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/layout/shape/legendgrouptitle/_font.py b/plotly/validators/layout/shape/legendgrouptitle/_font.py index b3b2e55070..495003c519 100644 --- a/plotly/validators/layout/shape/legendgrouptitle/_font.py +++ b/plotly/validators/layout/shape/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/shape/legendgrouptitle/_text.py b/plotly/validators/layout/shape/legendgrouptitle/_text.py index 8161016e95..f807182588 100644 --- a/plotly/validators/layout/shape/legendgrouptitle/_text.py +++ b/plotly/validators/layout/shape/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/shape/legendgrouptitle/font/__init__.py b/plotly/validators/layout/shape/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/shape/legendgrouptitle/font/__init__.py +++ b/plotly/validators/layout/shape/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/shape/legendgrouptitle/font/_color.py b/plotly/validators/layout/shape/legendgrouptitle/font/_color.py index bb0fc5affa..6b52caeebb 100644 --- a/plotly/validators/layout/shape/legendgrouptitle/font/_color.py +++ b/plotly/validators/layout/shape/legendgrouptitle/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/shape/legendgrouptitle/font/_family.py b/plotly/validators/layout/shape/legendgrouptitle/font/_family.py index 3aa7ed94f8..205d1548f9 100644 --- a/plotly/validators/layout/shape/legendgrouptitle/font/_family.py +++ b/plotly/validators/layout/shape/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/shape/legendgrouptitle/font/_lineposition.py b/plotly/validators/layout/shape/legendgrouptitle/font/_lineposition.py index 5e784eb6ef..e2efe97110 100644 --- a/plotly/validators/layout/shape/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/layout/shape/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/shape/legendgrouptitle/font/_shadow.py b/plotly/validators/layout/shape/legendgrouptitle/font/_shadow.py index 61ed7e48d6..4a96dd9c91 100644 --- a/plotly/validators/layout/shape/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/layout/shape/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/shape/legendgrouptitle/font/_size.py b/plotly/validators/layout/shape/legendgrouptitle/font/_size.py index c0e5adc6ec..a0cc66a280 100644 --- a/plotly/validators/layout/shape/legendgrouptitle/font/_size.py +++ b/plotly/validators/layout/shape/legendgrouptitle/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/shape/legendgrouptitle/font/_style.py b/plotly/validators/layout/shape/legendgrouptitle/font/_style.py index ce6d3daacb..31ee84fb9e 100644 --- a/plotly/validators/layout/shape/legendgrouptitle/font/_style.py +++ b/plotly/validators/layout/shape/legendgrouptitle/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/shape/legendgrouptitle/font/_textcase.py b/plotly/validators/layout/shape/legendgrouptitle/font/_textcase.py index 3a57aa9de3..b2048ffbbd 100644 --- a/plotly/validators/layout/shape/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/layout/shape/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/shape/legendgrouptitle/font/_variant.py b/plotly/validators/layout/shape/legendgrouptitle/font/_variant.py index 40f9c35811..baab4ff138 100644 --- a/plotly/validators/layout/shape/legendgrouptitle/font/_variant.py +++ b/plotly/validators/layout/shape/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/shape/legendgrouptitle/font/_weight.py b/plotly/validators/layout/shape/legendgrouptitle/font/_weight.py index f55a2e319b..7de038ea6f 100644 --- a/plotly/validators/layout/shape/legendgrouptitle/font/_weight.py +++ b/plotly/validators/layout/shape/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+arraydraw"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/shape/line/__init__.py b/plotly/validators/layout/shape/line/__init__.py index cff4146651..c5140ef758 100644 --- a/plotly/validators/layout/shape/line/__init__.py +++ b/plotly/validators/layout/shape/line/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._width.WidthValidator", "._dash.DashValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/layout/shape/line/_color.py b/plotly/validators/layout/shape/line/_color.py index c1075a2715..1580ce8a78 100644 --- a/plotly/validators/layout/shape/line/_color.py +++ b/plotly/validators/layout/shape/line/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, diff --git a/plotly/validators/layout/shape/line/_dash.py b/plotly/validators/layout/shape/line/_dash.py index 86b5e089a8..7e4b1d2292 100644 --- a/plotly/validators/layout/shape/line/_dash.py +++ b/plotly/validators/layout/shape/line/_dash.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/layout/shape/line/_width.py b/plotly/validators/layout/shape/line/_width.py index 9861373927..2cfbbb778c 100644 --- a/plotly/validators/layout/shape/line/_width.py +++ b/plotly/validators/layout/shape/line/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "calc+arraydraw"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/slider/__init__.py b/plotly/validators/layout/slider/__init__.py index 54bb79b340..707979274f 100644 --- a/plotly/validators/layout/slider/__init__.py +++ b/plotly/validators/layout/slider/__init__.py @@ -1,61 +1,33 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._visible import VisibleValidator - from ._transition import TransitionValidator - from ._tickwidth import TickwidthValidator - from ._ticklen import TicklenValidator - from ._tickcolor import TickcolorValidator - from ._templateitemname import TemplateitemnameValidator - from ._stepdefaults import StepdefaultsValidator - from ._steps import StepsValidator - from ._pad import PadValidator - from ._name import NameValidator - from ._minorticklen import MinorticklenValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._font import FontValidator - from ._currentvalue import CurrentvalueValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - from ._bgcolor import BgcolorValidator - from ._activebgcolor import ActivebgcolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/slider/_active.py b/plotly/validators/layout/slider/_active.py index ee6b622d71..c22c4b66e3 100644 --- a/plotly/validators/layout/slider/_active.py +++ b/plotly/validators/layout/slider/_active.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ActiveValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/slider/_activebgcolor.py b/plotly/validators/layout/slider/_activebgcolor.py index f7f3a57a3a..20c4a1b222 100644 --- a/plotly/validators/layout/slider/_activebgcolor.py +++ b/plotly/validators/layout/slider/_activebgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ActivebgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/slider/_bgcolor.py b/plotly/validators/layout/slider/_bgcolor.py index dc71427341..ae037d93ee 100644 --- a/plotly/validators/layout/slider/_bgcolor.py +++ b/plotly/validators/layout/slider/_bgcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/slider/_bordercolor.py b/plotly/validators/layout/slider/_bordercolor.py index 7df82b57a0..2fdcccd8a9 100644 --- a/plotly/validators/layout/slider/_bordercolor.py +++ b/plotly/validators/layout/slider/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/slider/_borderwidth.py b/plotly/validators/layout/slider/_borderwidth.py index af1c7e54b3..d8bc7537ff 100644 --- a/plotly/validators/layout/slider/_borderwidth.py +++ b/plotly/validators/layout/slider/_borderwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/slider/_currentvalue.py b/plotly/validators/layout/slider/_currentvalue.py index 2dccc62d5f..a7365444ee 100644 --- a/plotly/validators/layout/slider/_currentvalue.py +++ b/plotly/validators/layout/slider/_currentvalue.py @@ -1,34 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CurrentvalueValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/slider/_font.py b/plotly/validators/layout/slider/_font.py index 25c97ddaf8..4262646363 100644 --- a/plotly/validators/layout/slider/_font.py +++ b/plotly/validators/layout/slider/_font.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/slider/_len.py b/plotly/validators/layout/slider/_len.py index 4c32d579e0..1a862d396e 100644 --- a/plotly/validators/layout/slider/_len.py +++ b/plotly/validators/layout/slider/_len.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/slider/_lenmode.py b/plotly/validators/layout/slider/_lenmode.py index 66c638d128..377461fb2b 100644 --- a/plotly/validators/layout/slider/_lenmode.py +++ b/plotly/validators/layout/slider/_lenmode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/layout/slider/_minorticklen.py b/plotly/validators/layout/slider/_minorticklen.py index adba18a6a0..dab2d3065e 100644 --- a/plotly/validators/layout/slider/_minorticklen.py +++ b/plotly/validators/layout/slider/_minorticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinorticklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/slider/_name.py b/plotly/validators/layout/slider/_name.py index 3989f9f350..5e0cad661b 100644 --- a/plotly/validators/layout/slider/_name.py +++ b/plotly/validators/layout/slider/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/slider/_pad.py b/plotly/validators/layout/slider/_pad.py index d80669a017..97f66cf5b1 100644 --- a/plotly/validators/layout/slider/_pad.py +++ b/plotly/validators/layout/slider/_pad.py @@ -1,27 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PadValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/slider/_stepdefaults.py b/plotly/validators/layout/slider/_stepdefaults.py index 9eff359b83..4b740e26d6 100644 --- a/plotly/validators/layout/slider/_stepdefaults.py +++ b/plotly/validators/layout/slider/_stepdefaults.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StepdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Step"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/slider/_steps.py b/plotly/validators/layout/slider/_steps.py index c2f6b1f0c7..39bb9dc9a6 100644 --- a/plotly/validators/layout/slider/_steps.py +++ b/plotly/validators/layout/slider/_steps.py @@ -1,66 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StepsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/slider/_templateitemname.py b/plotly/validators/layout/slider/_templateitemname.py index 7db9a9067d..dd934a65ad 100644 --- a/plotly/validators/layout/slider/_templateitemname.py +++ b/plotly/validators/layout/slider/_templateitemname.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/slider/_tickcolor.py b/plotly/validators/layout/slider/_tickcolor.py index 3581c3028c..b2758118e1 100644 --- a/plotly/validators/layout/slider/_tickcolor.py +++ b/plotly/validators/layout/slider/_tickcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/slider/_ticklen.py b/plotly/validators/layout/slider/_ticklen.py index de63d0a57c..144fe06f11 100644 --- a/plotly/validators/layout/slider/_ticklen.py +++ b/plotly/validators/layout/slider/_ticklen.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/slider/_tickwidth.py b/plotly/validators/layout/slider/_tickwidth.py index f23e5c15e3..b388b444f7 100644 --- a/plotly/validators/layout/slider/_tickwidth.py +++ b/plotly/validators/layout/slider/_tickwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/slider/_transition.py b/plotly/validators/layout/slider/_transition.py index dd5261b97b..d74f22f07a 100644 --- a/plotly/validators/layout/slider/_transition.py +++ b/plotly/validators/layout/slider/_transition.py @@ -1,20 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TransitionValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/slider/_visible.py b/plotly/validators/layout/slider/_visible.py index b91186fad3..026a3fd1e9 100644 --- a/plotly/validators/layout/slider/_visible.py +++ b/plotly/validators/layout/slider/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/slider/_x.py b/plotly/validators/layout/slider/_x.py index c65f3a28f5..5982968770 100644 --- a/plotly/validators/layout/slider/_x.py +++ b/plotly/validators/layout/slider/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), max=kwargs.pop("max", 3), min=kwargs.pop("min", -2), diff --git a/plotly/validators/layout/slider/_xanchor.py b/plotly/validators/layout/slider/_xanchor.py index 878baf15ee..1b060ae384 100644 --- a/plotly/validators/layout/slider/_xanchor.py +++ b/plotly/validators/layout/slider/_xanchor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop("values", ["auto", "left", "center", "right"]), **kwargs, diff --git a/plotly/validators/layout/slider/_y.py b/plotly/validators/layout/slider/_y.py index 95248eb93c..5728ba0a94 100644 --- a/plotly/validators/layout/slider/_y.py +++ b/plotly/validators/layout/slider/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), max=kwargs.pop("max", 3), min=kwargs.pop("min", -2), diff --git a/plotly/validators/layout/slider/_yanchor.py b/plotly/validators/layout/slider/_yanchor.py index 59e60fb6ea..2ec1c92718 100644 --- a/plotly/validators/layout/slider/_yanchor.py +++ b/plotly/validators/layout/slider/_yanchor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop("values", ["auto", "top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/layout/slider/currentvalue/__init__.py b/plotly/validators/layout/slider/currentvalue/__init__.py index 7d45ab0ca0..4bf8b638e8 100644 --- a/plotly/validators/layout/slider/currentvalue/__init__.py +++ b/plotly/validators/layout/slider/currentvalue/__init__.py @@ -1,25 +1,15 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._xanchor import XanchorValidator - from ._visible import VisibleValidator - from ._suffix import SuffixValidator - from ._prefix import PrefixValidator - from ._offset import OffsetValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._xanchor.XanchorValidator", + "._visible.VisibleValidator", + "._suffix.SuffixValidator", + "._prefix.PrefixValidator", + "._offset.OffsetValidator", + "._font.FontValidator", + ], +) diff --git a/plotly/validators/layout/slider/currentvalue/_font.py b/plotly/validators/layout/slider/currentvalue/_font.py index 386030113e..4b62d98a8a 100644 --- a/plotly/validators/layout/slider/currentvalue/_font.py +++ b/plotly/validators/layout/slider/currentvalue/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/slider/currentvalue/_offset.py b/plotly/validators/layout/slider/currentvalue/_offset.py index 244808499b..29f34e671f 100644 --- a/plotly/validators/layout/slider/currentvalue/_offset.py +++ b/plotly/validators/layout/slider/currentvalue/_offset.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OffsetValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/slider/currentvalue/_prefix.py b/plotly/validators/layout/slider/currentvalue/_prefix.py index 14734e394d..d3a9d9a94e 100644 --- a/plotly/validators/layout/slider/currentvalue/_prefix.py +++ b/plotly/validators/layout/slider/currentvalue/_prefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PrefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/slider/currentvalue/_suffix.py b/plotly/validators/layout/slider/currentvalue/_suffix.py index 1999b6fad5..1bfb55b2df 100644 --- a/plotly/validators/layout/slider/currentvalue/_suffix.py +++ b/plotly/validators/layout/slider/currentvalue/_suffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/slider/currentvalue/_visible.py b/plotly/validators/layout/slider/currentvalue/_visible.py index 43cde0777b..3f73248cb9 100644 --- a/plotly/validators/layout/slider/currentvalue/_visible.py +++ b/plotly/validators/layout/slider/currentvalue/_visible.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/slider/currentvalue/_xanchor.py b/plotly/validators/layout/slider/currentvalue/_xanchor.py index e1e9ef0aaa..5abc5c624c 100644 --- a/plotly/validators/layout/slider/currentvalue/_xanchor.py +++ b/plotly/validators/layout/slider/currentvalue/_xanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/layout/slider/currentvalue/font/__init__.py b/plotly/validators/layout/slider/currentvalue/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/slider/currentvalue/font/__init__.py +++ b/plotly/validators/layout/slider/currentvalue/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/slider/currentvalue/font/_color.py b/plotly/validators/layout/slider/currentvalue/font/_color.py index d4f39799a7..b9085b6ec1 100644 --- a/plotly/validators/layout/slider/currentvalue/font/_color.py +++ b/plotly/validators/layout/slider/currentvalue/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/slider/currentvalue/font/_family.py b/plotly/validators/layout/slider/currentvalue/font/_family.py index 6d3d9b14bd..e76ca622d4 100644 --- a/plotly/validators/layout/slider/currentvalue/font/_family.py +++ b/plotly/validators/layout/slider/currentvalue/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/slider/currentvalue/font/_lineposition.py b/plotly/validators/layout/slider/currentvalue/font/_lineposition.py index 659c9723dc..4a211f5975 100644 --- a/plotly/validators/layout/slider/currentvalue/font/_lineposition.py +++ b/plotly/validators/layout/slider/currentvalue/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/slider/currentvalue/font/_shadow.py b/plotly/validators/layout/slider/currentvalue/font/_shadow.py index d6d1431e84..759f4388ec 100644 --- a/plotly/validators/layout/slider/currentvalue/font/_shadow.py +++ b/plotly/validators/layout/slider/currentvalue/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/slider/currentvalue/font/_size.py b/plotly/validators/layout/slider/currentvalue/font/_size.py index bd4d814ca2..4d4a014ace 100644 --- a/plotly/validators/layout/slider/currentvalue/font/_size.py +++ b/plotly/validators/layout/slider/currentvalue/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/slider/currentvalue/font/_style.py b/plotly/validators/layout/slider/currentvalue/font/_style.py index caf3ed8a5c..09843a10d4 100644 --- a/plotly/validators/layout/slider/currentvalue/font/_style.py +++ b/plotly/validators/layout/slider/currentvalue/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/slider/currentvalue/font/_textcase.py b/plotly/validators/layout/slider/currentvalue/font/_textcase.py index 9c47d0720f..abad547995 100644 --- a/plotly/validators/layout/slider/currentvalue/font/_textcase.py +++ b/plotly/validators/layout/slider/currentvalue/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/slider/currentvalue/font/_variant.py b/plotly/validators/layout/slider/currentvalue/font/_variant.py index d8c6e8896c..6e43287c7c 100644 --- a/plotly/validators/layout/slider/currentvalue/font/_variant.py +++ b/plotly/validators/layout/slider/currentvalue/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/slider/currentvalue/font/_weight.py b/plotly/validators/layout/slider/currentvalue/font/_weight.py index 01192ea148..8c113b9252 100644 --- a/plotly/validators/layout/slider/currentvalue/font/_weight.py +++ b/plotly/validators/layout/slider/currentvalue/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/slider/font/__init__.py b/plotly/validators/layout/slider/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/slider/font/__init__.py +++ b/plotly/validators/layout/slider/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/slider/font/_color.py b/plotly/validators/layout/slider/font/_color.py index a06e2039c1..4e0c423b6d 100644 --- a/plotly/validators/layout/slider/font/_color.py +++ b/plotly/validators/layout/slider/font/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/slider/font/_family.py b/plotly/validators/layout/slider/font/_family.py index f787aff219..48a40f5a82 100644 --- a/plotly/validators/layout/slider/font/_family.py +++ b/plotly/validators/layout/slider/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/slider/font/_lineposition.py b/plotly/validators/layout/slider/font/_lineposition.py index b74ca1010c..af927e0b89 100644 --- a/plotly/validators/layout/slider/font/_lineposition.py +++ b/plotly/validators/layout/slider/font/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/slider/font/_shadow.py b/plotly/validators/layout/slider/font/_shadow.py index f9f8047333..3608b91f20 100644 --- a/plotly/validators/layout/slider/font/_shadow.py +++ b/plotly/validators/layout/slider/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/slider/font/_size.py b/plotly/validators/layout/slider/font/_size.py index f47cb9f63b..57e6b2a82e 100644 --- a/plotly/validators/layout/slider/font/_size.py +++ b/plotly/validators/layout/slider/font/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/slider/font/_style.py b/plotly/validators/layout/slider/font/_style.py index 2bef10c36b..b628b69ec3 100644 --- a/plotly/validators/layout/slider/font/_style.py +++ b/plotly/validators/layout/slider/font/_style.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/slider/font/_textcase.py b/plotly/validators/layout/slider/font/_textcase.py index f3c9a13b3a..b33dafcb8c 100644 --- a/plotly/validators/layout/slider/font/_textcase.py +++ b/plotly/validators/layout/slider/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/slider/font/_variant.py b/plotly/validators/layout/slider/font/_variant.py index 958738d6d7..bcf989735e 100644 --- a/plotly/validators/layout/slider/font/_variant.py +++ b/plotly/validators/layout/slider/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/slider/font/_weight.py b/plotly/validators/layout/slider/font/_weight.py index 89787f4947..7801b327e7 100644 --- a/plotly/validators/layout/slider/font/_weight.py +++ b/plotly/validators/layout/slider/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/slider/pad/__init__.py b/plotly/validators/layout/slider/pad/__init__.py index 04e64dbc5e..4189bfbe1f 100644 --- a/plotly/validators/layout/slider/pad/__init__.py +++ b/plotly/validators/layout/slider/pad/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._t import TValidator - from ._r import RValidator - from ._l import LValidator - 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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._t.TValidator", "._r.RValidator", "._l.LValidator", "._b.BValidator"], +) diff --git a/plotly/validators/layout/slider/pad/_b.py b/plotly/validators/layout/slider/pad/_b.py index db7707de5d..6a795f8c6a 100644 --- a/plotly/validators/layout/slider/pad/_b.py +++ b/plotly/validators/layout/slider/pad/_b.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/slider/pad/_l.py b/plotly/validators/layout/slider/pad/_l.py index a22bd4e56c..003507a5a6 100644 --- a/plotly/validators/layout/slider/pad/_l.py +++ b/plotly/validators/layout/slider/pad/_l.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/slider/pad/_r.py b/plotly/validators/layout/slider/pad/_r.py index 93b4397102..59511673b3 100644 --- a/plotly/validators/layout/slider/pad/_r.py +++ b/plotly/validators/layout/slider/pad/_r.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/slider/pad/_t.py b/plotly/validators/layout/slider/pad/_t.py index 1da3e539cc..3937196cb7 100644 --- a/plotly/validators/layout/slider/pad/_t.py +++ b/plotly/validators/layout/slider/pad/_t.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/slider/step/__init__.py b/plotly/validators/layout/slider/step/__init__.py index 8abecadfbd..945d93ed7f 100644 --- a/plotly/validators/layout/slider/step/__init__.py +++ b/plotly/validators/layout/slider/step/__init__.py @@ -1,29 +1,17 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._visible import VisibleValidator - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._method import MethodValidator - from ._label import LabelValidator - from ._execute import ExecuteValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._visible.VisibleValidator", + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._method.MethodValidator", + "._label.LabelValidator", + "._execute.ExecuteValidator", + "._args.ArgsValidator", + ], +) diff --git a/plotly/validators/layout/slider/step/_args.py b/plotly/validators/layout/slider/step/_args.py index 8a4af5719f..6b43cdbf5d 100644 --- a/plotly/validators/layout/slider/step/_args.py +++ b/plotly/validators/layout/slider/step/_args.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArgsValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), free_length=kwargs.pop("free_length", True), items=kwargs.pop( diff --git a/plotly/validators/layout/slider/step/_execute.py b/plotly/validators/layout/slider/step/_execute.py index 9253f7afe1..2b061c01de 100644 --- a/plotly/validators/layout/slider/step/_execute.py +++ b/plotly/validators/layout/slider/step/_execute.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExecuteValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/slider/step/_label.py b/plotly/validators/layout/slider/step/_label.py index fc68a65250..df5f79c436 100644 --- a/plotly/validators/layout/slider/step/_label.py +++ b/plotly/validators/layout/slider/step/_label.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/slider/step/_method.py b/plotly/validators/layout/slider/step/_method.py index e15d213191..237509ee25 100644 --- a/plotly/validators/layout/slider/step/_method.py +++ b/plotly/validators/layout/slider/step/_method.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MethodValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop( "values", ["restyle", "relayout", "animate", "update", "skip"] diff --git a/plotly/validators/layout/slider/step/_name.py b/plotly/validators/layout/slider/step/_name.py index 4ca1bf0155..0433e23d49 100644 --- a/plotly/validators/layout/slider/step/_name.py +++ b/plotly/validators/layout/slider/step/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/slider/step/_templateitemname.py b/plotly/validators/layout/slider/step/_templateitemname.py index 9faef2901e..da3ba24505 100644 --- a/plotly/validators/layout/slider/step/_templateitemname.py +++ b/plotly/validators/layout/slider/step/_templateitemname.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/slider/step/_value.py b/plotly/validators/layout/slider/step/_value.py index fa77517e27..4b1a25883b 100644 --- a/plotly/validators/layout/slider/step/_value.py +++ b/plotly/validators/layout/slider/step/_value.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/slider/step/_visible.py b/plotly/validators/layout/slider/step/_visible.py index 447d96fbf8..8c621e1e77 100644 --- a/plotly/validators/layout/slider/step/_visible.py +++ b/plotly/validators/layout/slider/step/_visible.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/slider/transition/__init__.py b/plotly/validators/layout/slider/transition/__init__.py index 7d9860a84d..817ac2685a 100644 --- a/plotly/validators/layout/slider/transition/__init__.py +++ b/plotly/validators/layout/slider/transition/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._easing.EasingValidator", "._duration.DurationValidator"] +) diff --git a/plotly/validators/layout/slider/transition/_duration.py b/plotly/validators/layout/slider/transition/_duration.py index 9dbb57cb48..a8070643c9 100644 --- a/plotly/validators/layout/slider/transition/_duration.py +++ b/plotly/validators/layout/slider/transition/_duration.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DurationValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/slider/transition/_easing.py b/plotly/validators/layout/slider/transition/_easing.py index 6a9adbdeed..2b48ec4f57 100644 --- a/plotly/validators/layout/slider/transition/_easing.py +++ b/plotly/validators/layout/slider/transition/_easing.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EasingValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/smith/__init__.py b/plotly/validators/layout/smith/__init__.py index afc951432f..efd6471648 100644 --- a/plotly/validators/layout/smith/__init__.py +++ b/plotly/validators/layout/smith/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._realaxis import RealaxisValidator - from ._imaginaryaxis import ImaginaryaxisValidator - from ._domain import DomainValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._realaxis.RealaxisValidator", + "._imaginaryaxis.ImaginaryaxisValidator", + "._domain.DomainValidator", + "._bgcolor.BgcolorValidator", + ], +) diff --git a/plotly/validators/layout/smith/_bgcolor.py b/plotly/validators/layout/smith/_bgcolor.py index ddc3d8d1bf..700f2545b0 100644 --- a/plotly/validators/layout/smith/_bgcolor.py +++ b/plotly/validators/layout/smith/_bgcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/smith/_domain.py b/plotly/validators/layout/smith/_domain.py index d2623eda7e..b4c08461d4 100644 --- a/plotly/validators/layout/smith/_domain.py +++ b/plotly/validators/layout/smith/_domain.py @@ -1,28 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/smith/_imaginaryaxis.py b/plotly/validators/layout/smith/_imaginaryaxis.py index 64ea5f9407..bde2f45783 100644 --- a/plotly/validators/layout/smith/_imaginaryaxis.py +++ b/plotly/validators/layout/smith/_imaginaryaxis.py @@ -1,133 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ImaginaryaxisValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/smith/_realaxis.py b/plotly/validators/layout/smith/_realaxis.py index 16367a1d47..537d99da11 100644 --- a/plotly/validators/layout/smith/_realaxis.py +++ b/plotly/validators/layout/smith/_realaxis.py @@ -1,137 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RealaxisValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/smith/domain/__init__.py b/plotly/validators/layout/smith/domain/__init__.py index 67de5030d0..42827f1d1e 100644 --- a/plotly/validators/layout/smith/domain/__init__.py +++ b/plotly/validators/layout/smith/domain/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._y import YValidator - from ._x import XValidator - from ._row import RowValidator - from ._column import ColumnValidator -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [], - [ - "._y.YValidator", - "._x.XValidator", - "._row.RowValidator", - "._column.ColumnValidator", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._y.YValidator", + "._x.XValidator", + "._row.RowValidator", + "._column.ColumnValidator", + ], +) diff --git a/plotly/validators/layout/smith/domain/_column.py b/plotly/validators/layout/smith/domain/_column.py index 2b7b61b194..28c29da563 100644 --- a/plotly/validators/layout/smith/domain/_column.py +++ b/plotly/validators/layout/smith/domain/_column.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/smith/domain/_row.py b/plotly/validators/layout/smith/domain/_row.py index 87674164ff..493993c30d 100644 --- a/plotly/validators/layout/smith/domain/_row.py +++ b/plotly/validators/layout/smith/domain/_row.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RowValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/smith/domain/_x.py b/plotly/validators/layout/smith/domain/_x.py index 7a7b727601..71494d25c5 100644 --- a/plotly/validators/layout/smith/domain/_x.py +++ b/plotly/validators/layout/smith/domain/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/smith/domain/_y.py b/plotly/validators/layout/smith/domain/_y.py index 8b7fb032d7..f53823d3ae 100644 --- a/plotly/validators/layout/smith/domain/_y.py +++ b/plotly/validators/layout/smith/domain/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/smith/imaginaryaxis/__init__.py b/plotly/validators/layout/smith/imaginaryaxis/__init__.py index 6cb6e2eb06..73c1cf501b 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/__init__.py +++ b/plotly/validators/layout/smith/imaginaryaxis/__init__.py @@ -1,63 +1,34 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._visible import VisibleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._ticklen import TicklenValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showline import ShowlineValidator - from ._showgrid import ShowgridValidator - from ._linewidth import LinewidthValidator - from ._linecolor import LinecolorValidator - from ._layer import LayerValidator - from ._labelalias import LabelaliasValidator - from ._hoverformat import HoverformatValidator - from ._gridwidth import GridwidthValidator - from ._griddash import GriddashValidator - from ._gridcolor import GridcolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/smith/imaginaryaxis/_color.py b/plotly/validators/layout/smith/imaginaryaxis/_color.py index bebbef2209..4fb9cdc446 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/_color.py +++ b/plotly/validators/layout/smith/imaginaryaxis/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/smith/imaginaryaxis/_gridcolor.py b/plotly/validators/layout/smith/imaginaryaxis/_gridcolor.py index c4b00bb21e..31cb89ae79 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/_gridcolor.py +++ b/plotly/validators/layout/smith/imaginaryaxis/_gridcolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/smith/imaginaryaxis/_griddash.py b/plotly/validators/layout/smith/imaginaryaxis/_griddash.py index 81af5c4040..9cc4a3a4f1 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/_griddash.py +++ b/plotly/validators/layout/smith/imaginaryaxis/_griddash.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GriddashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/layout/smith/imaginaryaxis/_gridwidth.py b/plotly/validators/layout/smith/imaginaryaxis/_gridwidth.py index add49d4eae..4440927cce 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/_gridwidth.py +++ b/plotly/validators/layout/smith/imaginaryaxis/_gridwidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/smith/imaginaryaxis/_hoverformat.py b/plotly/validators/layout/smith/imaginaryaxis/_hoverformat.py index 56971fa3a2..cdc26b99b6 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/_hoverformat.py +++ b/plotly/validators/layout/smith/imaginaryaxis/_hoverformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/smith/imaginaryaxis/_labelalias.py b/plotly/validators/layout/smith/imaginaryaxis/_labelalias.py index 4c03b1e0dd..c1ad690ec2 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/_labelalias.py +++ b/plotly/validators/layout/smith/imaginaryaxis/_labelalias.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/smith/imaginaryaxis/_layer.py b/plotly/validators/layout/smith/imaginaryaxis/_layer.py index ba4a9623d9..fef759743c 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/_layer.py +++ b/plotly/validators/layout/smith/imaginaryaxis/_layer.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LayerValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["above traces", "below traces"]), **kwargs, diff --git a/plotly/validators/layout/smith/imaginaryaxis/_linecolor.py b/plotly/validators/layout/smith/imaginaryaxis/_linecolor.py index 2f32347c89..15464b87f4 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/_linecolor.py +++ b/plotly/validators/layout/smith/imaginaryaxis/_linecolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/smith/imaginaryaxis/_linewidth.py b/plotly/validators/layout/smith/imaginaryaxis/_linewidth.py index 42c7a7fe35..41c026ea58 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/_linewidth.py +++ b/plotly/validators/layout/smith/imaginaryaxis/_linewidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/smith/imaginaryaxis/_showgrid.py b/plotly/validators/layout/smith/imaginaryaxis/_showgrid.py index 5979082bc3..4029139f17 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/_showgrid.py +++ b/plotly/validators/layout/smith/imaginaryaxis/_showgrid.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/smith/imaginaryaxis/_showline.py b/plotly/validators/layout/smith/imaginaryaxis/_showline.py index 89035731f3..4225eaa489 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/_showline.py +++ b/plotly/validators/layout/smith/imaginaryaxis/_showline.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/smith/imaginaryaxis/_showticklabels.py b/plotly/validators/layout/smith/imaginaryaxis/_showticklabels.py index cadd9f5793..0b36c4a105 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/_showticklabels.py +++ b/plotly/validators/layout/smith/imaginaryaxis/_showticklabels.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/smith/imaginaryaxis/_showtickprefix.py b/plotly/validators/layout/smith/imaginaryaxis/_showtickprefix.py index 008a21981b..57e25a38f6 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/_showtickprefix.py +++ b/plotly/validators/layout/smith/imaginaryaxis/_showtickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/smith/imaginaryaxis/_showticksuffix.py b/plotly/validators/layout/smith/imaginaryaxis/_showticksuffix.py index 499911991f..1b1d121eb8 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/_showticksuffix.py +++ b/plotly/validators/layout/smith/imaginaryaxis/_showticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/smith/imaginaryaxis/_tickcolor.py b/plotly/validators/layout/smith/imaginaryaxis/_tickcolor.py index 476444cce4..8ce3edf2c2 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/_tickcolor.py +++ b/plotly/validators/layout/smith/imaginaryaxis/_tickcolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/smith/imaginaryaxis/_tickfont.py b/plotly/validators/layout/smith/imaginaryaxis/_tickfont.py index 0822a7e61a..3ce301fba0 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/_tickfont.py +++ b/plotly/validators/layout/smith/imaginaryaxis/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/smith/imaginaryaxis/_tickformat.py b/plotly/validators/layout/smith/imaginaryaxis/_tickformat.py index 73fb995b82..865b54a88b 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/_tickformat.py +++ b/plotly/validators/layout/smith/imaginaryaxis/_tickformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/smith/imaginaryaxis/_ticklen.py b/plotly/validators/layout/smith/imaginaryaxis/_ticklen.py index 02e68c798d..631b8e8892 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/_ticklen.py +++ b/plotly/validators/layout/smith/imaginaryaxis/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/smith/imaginaryaxis/_tickprefix.py b/plotly/validators/layout/smith/imaginaryaxis/_tickprefix.py index ee51f0b3e2..ef6f86b1b5 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/_tickprefix.py +++ b/plotly/validators/layout/smith/imaginaryaxis/_tickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/smith/imaginaryaxis/_ticks.py b/plotly/validators/layout/smith/imaginaryaxis/_ticks.py index 7dba258e37..dfbf4738c3 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/_ticks.py +++ b/plotly/validators/layout/smith/imaginaryaxis/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/layout/smith/imaginaryaxis/_ticksuffix.py b/plotly/validators/layout/smith/imaginaryaxis/_ticksuffix.py index bdd207293a..28c58663f9 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/_ticksuffix.py +++ b/plotly/validators/layout/smith/imaginaryaxis/_ticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/smith/imaginaryaxis/_tickvals.py b/plotly/validators/layout/smith/imaginaryaxis/_tickvals.py index 0780e13a73..9974309537 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/_tickvals.py +++ b/plotly/validators/layout/smith/imaginaryaxis/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/smith/imaginaryaxis/_tickvalssrc.py b/plotly/validators/layout/smith/imaginaryaxis/_tickvalssrc.py index 56b36ac9cd..85e3a18cfa 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/_tickvalssrc.py +++ b/plotly/validators/layout/smith/imaginaryaxis/_tickvalssrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/smith/imaginaryaxis/_tickwidth.py b/plotly/validators/layout/smith/imaginaryaxis/_tickwidth.py index 29f47d4fc5..08b9b99803 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/_tickwidth.py +++ b/plotly/validators/layout/smith/imaginaryaxis/_tickwidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/smith/imaginaryaxis/_visible.py b/plotly/validators/layout/smith/imaginaryaxis/_visible.py index e4c74b3cd3..286531623b 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/_visible.py +++ b/plotly/validators/layout/smith/imaginaryaxis/_visible.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/smith/imaginaryaxis/tickfont/__init__.py b/plotly/validators/layout/smith/imaginaryaxis/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/tickfont/__init__.py +++ b/plotly/validators/layout/smith/imaginaryaxis/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/smith/imaginaryaxis/tickfont/_color.py b/plotly/validators/layout/smith/imaginaryaxis/tickfont/_color.py index faa650ef73..a1f1144b1f 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/tickfont/_color.py +++ b/plotly/validators/layout/smith/imaginaryaxis/tickfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/smith/imaginaryaxis/tickfont/_family.py b/plotly/validators/layout/smith/imaginaryaxis/tickfont/_family.py index 44d5056bde..a793619d8b 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/tickfont/_family.py +++ b/plotly/validators/layout/smith/imaginaryaxis/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/smith/imaginaryaxis/tickfont/_lineposition.py b/plotly/validators/layout/smith/imaginaryaxis/tickfont/_lineposition.py index ca54eaa883..91b354dbc8 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/tickfont/_lineposition.py +++ b/plotly/validators/layout/smith/imaginaryaxis/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/smith/imaginaryaxis/tickfont/_shadow.py b/plotly/validators/layout/smith/imaginaryaxis/tickfont/_shadow.py index 1b4ebb40f6..fb74f9b1bc 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/tickfont/_shadow.py +++ b/plotly/validators/layout/smith/imaginaryaxis/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/smith/imaginaryaxis/tickfont/_size.py b/plotly/validators/layout/smith/imaginaryaxis/tickfont/_size.py index 3c65941605..1cfd9bc279 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/tickfont/_size.py +++ b/plotly/validators/layout/smith/imaginaryaxis/tickfont/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/smith/imaginaryaxis/tickfont/_style.py b/plotly/validators/layout/smith/imaginaryaxis/tickfont/_style.py index af8bc324dd..ec4137b9a5 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/tickfont/_style.py +++ b/plotly/validators/layout/smith/imaginaryaxis/tickfont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/smith/imaginaryaxis/tickfont/_textcase.py b/plotly/validators/layout/smith/imaginaryaxis/tickfont/_textcase.py index 16312ea64e..4ed787399b 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/tickfont/_textcase.py +++ b/plotly/validators/layout/smith/imaginaryaxis/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/smith/imaginaryaxis/tickfont/_variant.py b/plotly/validators/layout/smith/imaginaryaxis/tickfont/_variant.py index 173511e7a2..6a70fd4781 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/tickfont/_variant.py +++ b/plotly/validators/layout/smith/imaginaryaxis/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/smith/imaginaryaxis/tickfont/_weight.py b/plotly/validators/layout/smith/imaginaryaxis/tickfont/_weight.py index d643e1d9af..d061aa5ffd 100644 --- a/plotly/validators/layout/smith/imaginaryaxis/tickfont/_weight.py +++ b/plotly/validators/layout/smith/imaginaryaxis/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/smith/realaxis/__init__.py b/plotly/validators/layout/smith/realaxis/__init__.py index d70a1c4234..47f058f74e 100644 --- a/plotly/validators/layout/smith/realaxis/__init__.py +++ b/plotly/validators/layout/smith/realaxis/__init__.py @@ -1,67 +1,36 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._visible import VisibleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._ticklen import TicklenValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._side import SideValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showline import ShowlineValidator - from ._showgrid import ShowgridValidator - from ._linewidth import LinewidthValidator - from ._linecolor import LinecolorValidator - from ._layer import LayerValidator - from ._labelalias import LabelaliasValidator - from ._hoverformat import HoverformatValidator - from ._gridwidth import GridwidthValidator - from ._griddash import GriddashValidator - from ._gridcolor import GridcolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/smith/realaxis/_color.py b/plotly/validators/layout/smith/realaxis/_color.py index 462acdffd2..37743723cf 100644 --- a/plotly/validators/layout/smith/realaxis/_color.py +++ b/plotly/validators/layout/smith/realaxis/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/smith/realaxis/_gridcolor.py b/plotly/validators/layout/smith/realaxis/_gridcolor.py index b1ad35ff0e..d4220e1e19 100644 --- a/plotly/validators/layout/smith/realaxis/_gridcolor.py +++ b/plotly/validators/layout/smith/realaxis/_gridcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/smith/realaxis/_griddash.py b/plotly/validators/layout/smith/realaxis/_griddash.py index a5a842d5a6..ca7399daeb 100644 --- a/plotly/validators/layout/smith/realaxis/_griddash.py +++ b/plotly/validators/layout/smith/realaxis/_griddash.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GriddashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/layout/smith/realaxis/_gridwidth.py b/plotly/validators/layout/smith/realaxis/_gridwidth.py index ce891b907d..ec00da4d35 100644 --- a/plotly/validators/layout/smith/realaxis/_gridwidth.py +++ b/plotly/validators/layout/smith/realaxis/_gridwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/smith/realaxis/_hoverformat.py b/plotly/validators/layout/smith/realaxis/_hoverformat.py index 4aba26587d..4d617cacb9 100644 --- a/plotly/validators/layout/smith/realaxis/_hoverformat.py +++ b/plotly/validators/layout/smith/realaxis/_hoverformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/smith/realaxis/_labelalias.py b/plotly/validators/layout/smith/realaxis/_labelalias.py index 65d48cbc8c..dddb641578 100644 --- a/plotly/validators/layout/smith/realaxis/_labelalias.py +++ b/plotly/validators/layout/smith/realaxis/_labelalias.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/smith/realaxis/_layer.py b/plotly/validators/layout/smith/realaxis/_layer.py index d2d2c91944..6e7a477d95 100644 --- a/plotly/validators/layout/smith/realaxis/_layer.py +++ b/plotly/validators/layout/smith/realaxis/_layer.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LayerValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["above traces", "below traces"]), **kwargs, diff --git a/plotly/validators/layout/smith/realaxis/_linecolor.py b/plotly/validators/layout/smith/realaxis/_linecolor.py index 2adec9a47b..a2d8301db1 100644 --- a/plotly/validators/layout/smith/realaxis/_linecolor.py +++ b/plotly/validators/layout/smith/realaxis/_linecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/smith/realaxis/_linewidth.py b/plotly/validators/layout/smith/realaxis/_linewidth.py index ceb2a97bd4..121cfe7083 100644 --- a/plotly/validators/layout/smith/realaxis/_linewidth.py +++ b/plotly/validators/layout/smith/realaxis/_linewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/smith/realaxis/_showgrid.py b/plotly/validators/layout/smith/realaxis/_showgrid.py index 915cdb91d7..164e03c6bf 100644 --- a/plotly/validators/layout/smith/realaxis/_showgrid.py +++ b/plotly/validators/layout/smith/realaxis/_showgrid.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/smith/realaxis/_showline.py b/plotly/validators/layout/smith/realaxis/_showline.py index 366aac83fa..3bd12d6ddb 100644 --- a/plotly/validators/layout/smith/realaxis/_showline.py +++ b/plotly/validators/layout/smith/realaxis/_showline.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/smith/realaxis/_showticklabels.py b/plotly/validators/layout/smith/realaxis/_showticklabels.py index 7e2626ee95..30077297e2 100644 --- a/plotly/validators/layout/smith/realaxis/_showticklabels.py +++ b/plotly/validators/layout/smith/realaxis/_showticklabels.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/smith/realaxis/_showtickprefix.py b/plotly/validators/layout/smith/realaxis/_showtickprefix.py index f0a1ba9b6d..42c13ccc87 100644 --- a/plotly/validators/layout/smith/realaxis/_showtickprefix.py +++ b/plotly/validators/layout/smith/realaxis/_showtickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/smith/realaxis/_showticksuffix.py b/plotly/validators/layout/smith/realaxis/_showticksuffix.py index 3cbc26e428..8fcc8b05fa 100644 --- a/plotly/validators/layout/smith/realaxis/_showticksuffix.py +++ b/plotly/validators/layout/smith/realaxis/_showticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/smith/realaxis/_side.py b/plotly/validators/layout/smith/realaxis/_side.py index 2181306f87..a8b0c41c34 100644 --- a/plotly/validators/layout/smith/realaxis/_side.py +++ b/plotly/validators/layout/smith/realaxis/_side.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["top", "bottom"]), **kwargs, diff --git a/plotly/validators/layout/smith/realaxis/_tickangle.py b/plotly/validators/layout/smith/realaxis/_tickangle.py index ab7b7d09e0..40d8b668d5 100644 --- a/plotly/validators/layout/smith/realaxis/_tickangle.py +++ b/plotly/validators/layout/smith/realaxis/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/smith/realaxis/_tickcolor.py b/plotly/validators/layout/smith/realaxis/_tickcolor.py index bde9e4a3b4..ee8e60eb17 100644 --- a/plotly/validators/layout/smith/realaxis/_tickcolor.py +++ b/plotly/validators/layout/smith/realaxis/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/smith/realaxis/_tickfont.py b/plotly/validators/layout/smith/realaxis/_tickfont.py index 73c64d3de5..10bc7c5ed1 100644 --- a/plotly/validators/layout/smith/realaxis/_tickfont.py +++ b/plotly/validators/layout/smith/realaxis/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/smith/realaxis/_tickformat.py b/plotly/validators/layout/smith/realaxis/_tickformat.py index 2cae60d768..bb74b52c49 100644 --- a/plotly/validators/layout/smith/realaxis/_tickformat.py +++ b/plotly/validators/layout/smith/realaxis/_tickformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/smith/realaxis/_ticklen.py b/plotly/validators/layout/smith/realaxis/_ticklen.py index c60c12ac88..33e674fdfe 100644 --- a/plotly/validators/layout/smith/realaxis/_ticklen.py +++ b/plotly/validators/layout/smith/realaxis/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/smith/realaxis/_tickprefix.py b/plotly/validators/layout/smith/realaxis/_tickprefix.py index 1ad45e19f1..deb7bc8047 100644 --- a/plotly/validators/layout/smith/realaxis/_tickprefix.py +++ b/plotly/validators/layout/smith/realaxis/_tickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/smith/realaxis/_ticks.py b/plotly/validators/layout/smith/realaxis/_ticks.py index 4f2459f4a8..e8c5de2e5c 100644 --- a/plotly/validators/layout/smith/realaxis/_ticks.py +++ b/plotly/validators/layout/smith/realaxis/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop("values", ["top", "bottom", ""]), **kwargs, diff --git a/plotly/validators/layout/smith/realaxis/_ticksuffix.py b/plotly/validators/layout/smith/realaxis/_ticksuffix.py index 7e36de1809..63c81a9695 100644 --- a/plotly/validators/layout/smith/realaxis/_ticksuffix.py +++ b/plotly/validators/layout/smith/realaxis/_ticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/smith/realaxis/_tickvals.py b/plotly/validators/layout/smith/realaxis/_tickvals.py index a9f701c420..6660a10a32 100644 --- a/plotly/validators/layout/smith/realaxis/_tickvals.py +++ b/plotly/validators/layout/smith/realaxis/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/smith/realaxis/_tickvalssrc.py b/plotly/validators/layout/smith/realaxis/_tickvalssrc.py index cc044ab6a2..b925f35844 100644 --- a/plotly/validators/layout/smith/realaxis/_tickvalssrc.py +++ b/plotly/validators/layout/smith/realaxis/_tickvalssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/smith/realaxis/_tickwidth.py b/plotly/validators/layout/smith/realaxis/_tickwidth.py index 32b2fd001b..a7edd728d5 100644 --- a/plotly/validators/layout/smith/realaxis/_tickwidth.py +++ b/plotly/validators/layout/smith/realaxis/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/smith/realaxis/_visible.py b/plotly/validators/layout/smith/realaxis/_visible.py index 177c1fb430..8977abae82 100644 --- a/plotly/validators/layout/smith/realaxis/_visible.py +++ b/plotly/validators/layout/smith/realaxis/_visible.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/smith/realaxis/tickfont/__init__.py b/plotly/validators/layout/smith/realaxis/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/smith/realaxis/tickfont/__init__.py +++ b/plotly/validators/layout/smith/realaxis/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/smith/realaxis/tickfont/_color.py b/plotly/validators/layout/smith/realaxis/tickfont/_color.py index daf36ae190..8a7fdd03b0 100644 --- a/plotly/validators/layout/smith/realaxis/tickfont/_color.py +++ b/plotly/validators/layout/smith/realaxis/tickfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/smith/realaxis/tickfont/_family.py b/plotly/validators/layout/smith/realaxis/tickfont/_family.py index ee5cc26d80..c257ea22f2 100644 --- a/plotly/validators/layout/smith/realaxis/tickfont/_family.py +++ b/plotly/validators/layout/smith/realaxis/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/smith/realaxis/tickfont/_lineposition.py b/plotly/validators/layout/smith/realaxis/tickfont/_lineposition.py index ce957617e9..e52410361f 100644 --- a/plotly/validators/layout/smith/realaxis/tickfont/_lineposition.py +++ b/plotly/validators/layout/smith/realaxis/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/smith/realaxis/tickfont/_shadow.py b/plotly/validators/layout/smith/realaxis/tickfont/_shadow.py index 1b62faee87..1914d460d2 100644 --- a/plotly/validators/layout/smith/realaxis/tickfont/_shadow.py +++ b/plotly/validators/layout/smith/realaxis/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/smith/realaxis/tickfont/_size.py b/plotly/validators/layout/smith/realaxis/tickfont/_size.py index 8a8487ca2e..57157cc023 100644 --- a/plotly/validators/layout/smith/realaxis/tickfont/_size.py +++ b/plotly/validators/layout/smith/realaxis/tickfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/smith/realaxis/tickfont/_style.py b/plotly/validators/layout/smith/realaxis/tickfont/_style.py index 903724edea..d5acd0622d 100644 --- a/plotly/validators/layout/smith/realaxis/tickfont/_style.py +++ b/plotly/validators/layout/smith/realaxis/tickfont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/smith/realaxis/tickfont/_textcase.py b/plotly/validators/layout/smith/realaxis/tickfont/_textcase.py index 3e030c575d..d6087f491b 100644 --- a/plotly/validators/layout/smith/realaxis/tickfont/_textcase.py +++ b/plotly/validators/layout/smith/realaxis/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/smith/realaxis/tickfont/_variant.py b/plotly/validators/layout/smith/realaxis/tickfont/_variant.py index ceed82e406..d7461d836b 100644 --- a/plotly/validators/layout/smith/realaxis/tickfont/_variant.py +++ b/plotly/validators/layout/smith/realaxis/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/smith/realaxis/tickfont/_weight.py b/plotly/validators/layout/smith/realaxis/tickfont/_weight.py index 53a242f218..4284c2b1ce 100644 --- a/plotly/validators/layout/smith/realaxis/tickfont/_weight.py +++ b/plotly/validators/layout/smith/realaxis/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/template/__init__.py b/plotly/validators/layout/template/__init__.py index bba1136f42..6252409e26 100644 --- a/plotly/validators/layout/template/__init__.py +++ b/plotly/validators/layout/template/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._layout.LayoutValidator", "._data.DataValidator"] +) diff --git a/plotly/validators/layout/template/_data.py b/plotly/validators/layout/template/_data.py index a18bd8de06..ddcc195d01 100644 --- a/plotly/validators/layout/template/_data.py +++ b/plotly/validators/layout/template/_data.py @@ -1,196 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DataValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/template/_layout.py b/plotly/validators/layout/template/_layout.py index f0ff4de14f..ed662c5bbe 100644 --- a/plotly/validators/layout/template/_layout.py +++ b/plotly/validators/layout/template/_layout.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LayoutValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Layout"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/__init__.py b/plotly/validators/layout/template/data/__init__.py index da0ae90974..e81f0e0813 100644 --- a/plotly/validators/layout/template/data/__init__.py +++ b/plotly/validators/layout/template/data/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._waterfall import WaterfallValidator - from ._volume import VolumeValidator - from ._violin import ViolinValidator - from ._treemap import TreemapValidator - from ._table import TableValidator - from ._surface import SurfaceValidator - from ._sunburst import SunburstValidator - from ._streamtube import StreamtubeValidator - from ._splom import SplomValidator - from ._scatterternary import ScatterternaryValidator - from ._scattersmith import ScattersmithValidator - from ._scatter import ScatterValidator - from ._scatterpolar import ScatterpolarValidator - from ._scatterpolargl import ScatterpolarglValidator - from ._scattermap import ScattermapValidator - from ._scattermapbox import ScattermapboxValidator - from ._scattergl import ScatterglValidator - from ._scattergeo import ScattergeoValidator - from ._scattercarpet import ScattercarpetValidator - from ._scatter3d import Scatter3DValidator - from ._sankey import SankeyValidator - from ._pie import PieValidator - from ._parcoords import ParcoordsValidator - from ._parcats import ParcatsValidator - from ._ohlc import OhlcValidator - from ._mesh3d import Mesh3DValidator - from ._isosurface import IsosurfaceValidator - from ._indicator import IndicatorValidator - from ._image import ImageValidator - from ._icicle import IcicleValidator - from ._histogram import HistogramValidator - from ._histogram2d import Histogram2DValidator - from ._histogram2dcontour import Histogram2DcontourValidator - from ._heatmap import HeatmapValidator - from ._funnel import FunnelValidator - from ._funnelarea import FunnelareaValidator - from ._densitymap import DensitymapValidator - from ._densitymapbox import DensitymapboxValidator - from ._contour import ContourValidator - from ._contourcarpet import ContourcarpetValidator - from ._cone import ConeValidator - from ._choropleth import ChoroplethValidator - from ._choroplethmap import ChoroplethmapValidator - from ._choroplethmapbox import ChoroplethmapboxValidator - from ._carpet import CarpetValidator - from ._candlestick import CandlestickValidator - from ._box import BoxValidator - from ._bar import BarValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/template/data/_bar.py b/plotly/validators/layout/template/data/_bar.py index b91930642e..e15f2c0be2 100644 --- a/plotly/validators/layout/template/data/_bar.py +++ b/plotly/validators/layout/template/data/_bar.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BarValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Bar"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_barpolar.py b/plotly/validators/layout/template/data/_barpolar.py index ae424bf2f7..9034f1eb86 100644 --- a/plotly/validators/layout/template/data/_barpolar.py +++ b/plotly/validators/layout/template/data/_barpolar.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BarpolarValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Barpolar"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_box.py b/plotly/validators/layout/template/data/_box.py index 803d299448..a3e3f9186d 100644 --- a/plotly/validators/layout/template/data/_box.py +++ b/plotly/validators/layout/template/data/_box.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BoxValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Box"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_candlestick.py b/plotly/validators/layout/template/data/_candlestick.py index f268690028..6edb7990ce 100644 --- a/plotly/validators/layout/template/data/_candlestick.py +++ b/plotly/validators/layout/template/data/_candlestick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CandlestickValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Candlestick"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_carpet.py b/plotly/validators/layout/template/data/_carpet.py index ff93e03085..66516027d0 100644 --- a/plotly/validators/layout/template/data/_carpet.py +++ b/plotly/validators/layout/template/data/_carpet.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CarpetValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Carpet"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_choropleth.py b/plotly/validators/layout/template/data/_choropleth.py index 4253a3d925..02074f1435 100644 --- a/plotly/validators/layout/template/data/_choropleth.py +++ b/plotly/validators/layout/template/data/_choropleth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ChoroplethValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Choropleth"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_choroplethmap.py b/plotly/validators/layout/template/data/_choroplethmap.py index fe8deba541..ecbf2924f2 100644 --- a/plotly/validators/layout/template/data/_choroplethmap.py +++ b/plotly/validators/layout/template/data/_choroplethmap.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ChoroplethmapValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Choroplethmap"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_choroplethmapbox.py b/plotly/validators/layout/template/data/_choroplethmapbox.py index 882279d494..754d06c281 100644 --- a/plotly/validators/layout/template/data/_choroplethmapbox.py +++ b/plotly/validators/layout/template/data/_choroplethmapbox.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ChoroplethmapboxValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Choroplethmapbox"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_cone.py b/plotly/validators/layout/template/data/_cone.py index 73df86f08f..0418ea198a 100644 --- a/plotly/validators/layout/template/data/_cone.py +++ b/plotly/validators/layout/template/data/_cone.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ConeValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Cone"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_contour.py b/plotly/validators/layout/template/data/_contour.py index 47905d5ad4..e33e201458 100644 --- a/plotly/validators/layout/template/data/_contour.py +++ b/plotly/validators/layout/template/data/_contour.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ContourValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Contour"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_contourcarpet.py b/plotly/validators/layout/template/data/_contourcarpet.py index b40e0292b6..3f4e29b1c4 100644 --- a/plotly/validators/layout/template/data/_contourcarpet.py +++ b/plotly/validators/layout/template/data/_contourcarpet.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ContourcarpetValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Contourcarpet"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_densitymap.py b/plotly/validators/layout/template/data/_densitymap.py index 98a867b5d0..ad2226600a 100644 --- a/plotly/validators/layout/template/data/_densitymap.py +++ b/plotly/validators/layout/template/data/_densitymap.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DensitymapValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Densitymap"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_densitymapbox.py b/plotly/validators/layout/template/data/_densitymapbox.py index 6ea6762697..901934bf5a 100644 --- a/plotly/validators/layout/template/data/_densitymapbox.py +++ b/plotly/validators/layout/template/data/_densitymapbox.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DensitymapboxValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Densitymapbox"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_funnel.py b/plotly/validators/layout/template/data/_funnel.py index 1cdd39d3e1..530f07d529 100644 --- a/plotly/validators/layout/template/data/_funnel.py +++ b/plotly/validators/layout/template/data/_funnel.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FunnelValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Funnel"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_funnelarea.py b/plotly/validators/layout/template/data/_funnelarea.py index 5b0ee95af9..45a70f80bc 100644 --- a/plotly/validators/layout/template/data/_funnelarea.py +++ b/plotly/validators/layout/template/data/_funnelarea.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FunnelareaValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Funnelarea"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_heatmap.py b/plotly/validators/layout/template/data/_heatmap.py index 2c49e30cf7..d97f9c546a 100644 --- a/plotly/validators/layout/template/data/_heatmap.py +++ b/plotly/validators/layout/template/data/_heatmap.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HeatmapValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Heatmap"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_histogram.py b/plotly/validators/layout/template/data/_histogram.py index fa3bdbb9f6..555eca320a 100644 --- a/plotly/validators/layout/template/data/_histogram.py +++ b/plotly/validators/layout/template/data/_histogram.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HistogramValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Histogram"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_histogram2d.py b/plotly/validators/layout/template/data/_histogram2d.py index b783a77b4c..9fb8651322 100644 --- a/plotly/validators/layout/template/data/_histogram2d.py +++ b/plotly/validators/layout/template/data/_histogram2d.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Histogram2DValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Histogram2d"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_histogram2dcontour.py b/plotly/validators/layout/template/data/_histogram2dcontour.py index 1d68a410ea..b86a49d1d2 100644 --- a/plotly/validators/layout/template/data/_histogram2dcontour.py +++ b/plotly/validators/layout/template/data/_histogram2dcontour.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Histogram2DcontourValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Histogram2dContour"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_icicle.py b/plotly/validators/layout/template/data/_icicle.py index f57765ae6d..c8c2b008be 100644 --- a/plotly/validators/layout/template/data/_icicle.py +++ b/plotly/validators/layout/template/data/_icicle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IcicleValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Icicle"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_image.py b/plotly/validators/layout/template/data/_image.py index 7eaa9a942c..08d377e7d0 100644 --- a/plotly/validators/layout/template/data/_image.py +++ b/plotly/validators/layout/template/data/_image.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ImageValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Image"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_indicator.py b/plotly/validators/layout/template/data/_indicator.py index c1328703f3..34e135511c 100644 --- a/plotly/validators/layout/template/data/_indicator.py +++ b/plotly/validators/layout/template/data/_indicator.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IndicatorValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Indicator"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_isosurface.py b/plotly/validators/layout/template/data/_isosurface.py index b595eb2d8d..c97174d58e 100644 --- a/plotly/validators/layout/template/data/_isosurface.py +++ b/plotly/validators/layout/template/data/_isosurface.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IsosurfaceValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Isosurface"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_mesh3d.py b/plotly/validators/layout/template/data/_mesh3d.py index ddc72e9c77..caa97a3b0d 100644 --- a/plotly/validators/layout/template/data/_mesh3d.py +++ b/plotly/validators/layout/template/data/_mesh3d.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Mesh3DValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Mesh3d"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_ohlc.py b/plotly/validators/layout/template/data/_ohlc.py index 75f7c0cc6d..7f0ba6669a 100644 --- a/plotly/validators/layout/template/data/_ohlc.py +++ b/plotly/validators/layout/template/data/_ohlc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OhlcValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Ohlc"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_parcats.py b/plotly/validators/layout/template/data/_parcats.py index a92aeeb7e3..f5213fed00 100644 --- a/plotly/validators/layout/template/data/_parcats.py +++ b/plotly/validators/layout/template/data/_parcats.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ParcatsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Parcats"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_parcoords.py b/plotly/validators/layout/template/data/_parcoords.py index 603adc5606..f29d039669 100644 --- a/plotly/validators/layout/template/data/_parcoords.py +++ b/plotly/validators/layout/template/data/_parcoords.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ParcoordsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Parcoords"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_pie.py b/plotly/validators/layout/template/data/_pie.py index 42a39f75a4..518b318225 100644 --- a/plotly/validators/layout/template/data/_pie.py +++ b/plotly/validators/layout/template/data/_pie.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PieValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Pie"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_sankey.py b/plotly/validators/layout/template/data/_sankey.py index c2b7664948..0fe0a72269 100644 --- a/plotly/validators/layout/template/data/_sankey.py +++ b/plotly/validators/layout/template/data/_sankey.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SankeyValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Sankey"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_scatter.py b/plotly/validators/layout/template/data/_scatter.py index caf23cc1de..45e1f467fe 100644 --- a/plotly/validators/layout/template/data/_scatter.py +++ b/plotly/validators/layout/template/data/_scatter.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ScatterValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Scatter"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_scatter3d.py b/plotly/validators/layout/template/data/_scatter3d.py index 810402aeb3..aff984a216 100644 --- a/plotly/validators/layout/template/data/_scatter3d.py +++ b/plotly/validators/layout/template/data/_scatter3d.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Scatter3DValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Scatter3d"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_scattercarpet.py b/plotly/validators/layout/template/data/_scattercarpet.py index eb44a65672..f56f3f30c4 100644 --- a/plotly/validators/layout/template/data/_scattercarpet.py +++ b/plotly/validators/layout/template/data/_scattercarpet.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ScattercarpetValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Scattercarpet"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_scattergeo.py b/plotly/validators/layout/template/data/_scattergeo.py index 55e5277eaa..2f254fb613 100644 --- a/plotly/validators/layout/template/data/_scattergeo.py +++ b/plotly/validators/layout/template/data/_scattergeo.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ScattergeoValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Scattergeo"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_scattergl.py b/plotly/validators/layout/template/data/_scattergl.py index b4400120ad..0495324ea6 100644 --- a/plotly/validators/layout/template/data/_scattergl.py +++ b/plotly/validators/layout/template/data/_scattergl.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ScatterglValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Scattergl"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_scattermap.py b/plotly/validators/layout/template/data/_scattermap.py index 73eab73344..6118ded464 100644 --- a/plotly/validators/layout/template/data/_scattermap.py +++ b/plotly/validators/layout/template/data/_scattermap.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ScattermapValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Scattermap"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_scattermapbox.py b/plotly/validators/layout/template/data/_scattermapbox.py index 970f59110d..e4b357d4da 100644 --- a/plotly/validators/layout/template/data/_scattermapbox.py +++ b/plotly/validators/layout/template/data/_scattermapbox.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ScattermapboxValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Scattermapbox"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_scatterpolar.py b/plotly/validators/layout/template/data/_scatterpolar.py index 77b17da467..f1df5a52eb 100644 --- a/plotly/validators/layout/template/data/_scatterpolar.py +++ b/plotly/validators/layout/template/data/_scatterpolar.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ScatterpolarValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Scatterpolar"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_scatterpolargl.py b/plotly/validators/layout/template/data/_scatterpolargl.py index 6520a3c51c..3e3a9fcfff 100644 --- a/plotly/validators/layout/template/data/_scatterpolargl.py +++ b/plotly/validators/layout/template/data/_scatterpolargl.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ScatterpolarglValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Scatterpolargl"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_scattersmith.py b/plotly/validators/layout/template/data/_scattersmith.py index c62fc95203..9d308baa22 100644 --- a/plotly/validators/layout/template/data/_scattersmith.py +++ b/plotly/validators/layout/template/data/_scattersmith.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ScattersmithValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Scattersmith"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_scatterternary.py b/plotly/validators/layout/template/data/_scatterternary.py index 1902e1ffbf..8ad42a134d 100644 --- a/plotly/validators/layout/template/data/_scatterternary.py +++ b/plotly/validators/layout/template/data/_scatterternary.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ScatterternaryValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Scatterternary"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_splom.py b/plotly/validators/layout/template/data/_splom.py index b259a25692..9f91bce842 100644 --- a/plotly/validators/layout/template/data/_splom.py +++ b/plotly/validators/layout/template/data/_splom.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SplomValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Splom"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_streamtube.py b/plotly/validators/layout/template/data/_streamtube.py index 60e8790ca1..cc7a160619 100644 --- a/plotly/validators/layout/template/data/_streamtube.py +++ b/plotly/validators/layout/template/data/_streamtube.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamtubeValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Streamtube"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_sunburst.py b/plotly/validators/layout/template/data/_sunburst.py index bf8323566b..b824ff56c6 100644 --- a/plotly/validators/layout/template/data/_sunburst.py +++ b/plotly/validators/layout/template/data/_sunburst.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SunburstValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Sunburst"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_surface.py b/plotly/validators/layout/template/data/_surface.py index 3277668fe8..2684e28155 100644 --- a/plotly/validators/layout/template/data/_surface.py +++ b/plotly/validators/layout/template/data/_surface.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SurfaceValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Surface"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_table.py b/plotly/validators/layout/template/data/_table.py index c2e5a49095..e291809702 100644 --- a/plotly/validators/layout/template/data/_table.py +++ b/plotly/validators/layout/template/data/_table.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TableValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Table"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_treemap.py b/plotly/validators/layout/template/data/_treemap.py index 70e380417c..9f898bd627 100644 --- a/plotly/validators/layout/template/data/_treemap.py +++ b/plotly/validators/layout/template/data/_treemap.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TreemapValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Treemap"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_violin.py b/plotly/validators/layout/template/data/_violin.py index 91f6842f52..1d20bbd085 100644 --- a/plotly/validators/layout/template/data/_violin.py +++ b/plotly/validators/layout/template/data/_violin.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ViolinValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Violin"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_volume.py b/plotly/validators/layout/template/data/_volume.py index b7edcfc7b1..29d8ea3a94 100644 --- a/plotly/validators/layout/template/data/_volume.py +++ b/plotly/validators/layout/template/data/_volume.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VolumeValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Volume"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/template/data/_waterfall.py b/plotly/validators/layout/template/data/_waterfall.py index eb59918063..08509f114a 100644 --- a/plotly/validators/layout/template/data/_waterfall.py +++ b/plotly/validators/layout/template/data/_waterfall.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WaterfallValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Waterfall"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/ternary/__init__.py b/plotly/validators/layout/ternary/__init__.py index 6c9d35db38..64f6fa3154 100644 --- a/plotly/validators/layout/ternary/__init__.py +++ b/plotly/validators/layout/ternary/__init__.py @@ -1,27 +1,16 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._uirevision import UirevisionValidator - from ._sum import SumValidator - from ._domain import DomainValidator - from ._caxis import CaxisValidator - from ._bgcolor import BgcolorValidator - from ._baxis import BaxisValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._uirevision.UirevisionValidator", + "._sum.SumValidator", + "._domain.DomainValidator", + "._caxis.CaxisValidator", + "._bgcolor.BgcolorValidator", + "._baxis.BaxisValidator", + "._aaxis.AaxisValidator", + ], +) diff --git a/plotly/validators/layout/ternary/_aaxis.py b/plotly/validators/layout/ternary/_aaxis.py index bcae070c7e..1feddb61d4 100644 --- a/plotly/validators/layout/ternary/_aaxis.py +++ b/plotly/validators/layout/ternary/_aaxis.py @@ -1,247 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AaxisValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/ternary/_baxis.py b/plotly/validators/layout/ternary/_baxis.py index 622aa8704c..7472d8a588 100644 --- a/plotly/validators/layout/ternary/_baxis.py +++ b/plotly/validators/layout/ternary/_baxis.py @@ -1,247 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BaxisValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/ternary/_bgcolor.py b/plotly/validators/layout/ternary/_bgcolor.py index 3f4b320670..9c128a43b7 100644 --- a/plotly/validators/layout/ternary/_bgcolor.py +++ b/plotly/validators/layout/ternary/_bgcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/_caxis.py b/plotly/validators/layout/ternary/_caxis.py index f44ac4681c..595496e09d 100644 --- a/plotly/validators/layout/ternary/_caxis.py +++ b/plotly/validators/layout/ternary/_caxis.py @@ -1,247 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CaxisValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/ternary/_domain.py b/plotly/validators/layout/ternary/_domain.py index b2abda08e5..b864ba33c0 100644 --- a/plotly/validators/layout/ternary/_domain.py +++ b/plotly/validators/layout/ternary/_domain.py @@ -1,28 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/ternary/_sum.py b/plotly/validators/layout/ternary/_sum.py index 6d8e2f30ef..f07a649d24 100644 --- a/plotly/validators/layout/ternary/_sum.py +++ b/plotly/validators/layout/ternary/_sum.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SumValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/ternary/_uirevision.py b/plotly/validators/layout/ternary/_uirevision.py index 2c0e5b4689..bd9167e578 100644 --- a/plotly/validators/layout/ternary/_uirevision.py +++ b/plotly/validators/layout/ternary/_uirevision.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/aaxis/__init__.py b/plotly/validators/layout/ternary/aaxis/__init__.py index 0fafe61824..5f18e86986 100644 --- a/plotly/validators/layout/ternary/aaxis/__init__.py +++ b/plotly/validators/layout/ternary/aaxis/__init__.py @@ -1,95 +1,50 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._uirevision import UirevisionValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showline import ShowlineValidator - from ._showgrid import ShowgridValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._min import MinValidator - from ._linewidth import LinewidthValidator - from ._linecolor import LinecolorValidator - from ._layer import LayerValidator - from ._labelalias import LabelaliasValidator - from ._hoverformat import HoverformatValidator - from ._gridwidth import GridwidthValidator - from ._griddash import GriddashValidator - from ._gridcolor import GridcolorValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/ternary/aaxis/_color.py b/plotly/validators/layout/ternary/aaxis/_color.py index 15bccd0d20..0e7520fce8 100644 --- a/plotly/validators/layout/ternary/aaxis/_color.py +++ b/plotly/validators/layout/ternary/aaxis/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/aaxis/_dtick.py b/plotly/validators/layout/ternary/aaxis/_dtick.py index 49c81600d6..9d3c5096d9 100644 --- a/plotly/validators/layout/ternary/aaxis/_dtick.py +++ b/plotly/validators/layout/ternary/aaxis/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/layout/ternary/aaxis/_exponentformat.py b/plotly/validators/layout/ternary/aaxis/_exponentformat.py index a34627991c..8cb78eed8d 100644 --- a/plotly/validators/layout/ternary/aaxis/_exponentformat.py +++ b/plotly/validators/layout/ternary/aaxis/_exponentformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/layout/ternary/aaxis/_gridcolor.py b/plotly/validators/layout/ternary/aaxis/_gridcolor.py index a371f2748c..9c2f32eb09 100644 --- a/plotly/validators/layout/ternary/aaxis/_gridcolor.py +++ b/plotly/validators/layout/ternary/aaxis/_gridcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/aaxis/_griddash.py b/plotly/validators/layout/ternary/aaxis/_griddash.py index f8df3bd1aa..59ed94ea3f 100644 --- a/plotly/validators/layout/ternary/aaxis/_griddash.py +++ b/plotly/validators/layout/ternary/aaxis/_griddash.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GriddashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/layout/ternary/aaxis/_gridwidth.py b/plotly/validators/layout/ternary/aaxis/_gridwidth.py index 3b9263932f..5f97f7c476 100644 --- a/plotly/validators/layout/ternary/aaxis/_gridwidth.py +++ b/plotly/validators/layout/ternary/aaxis/_gridwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/ternary/aaxis/_hoverformat.py b/plotly/validators/layout/ternary/aaxis/_hoverformat.py index 7443bdc1ac..1afcc48d7d 100644 --- a/plotly/validators/layout/ternary/aaxis/_hoverformat.py +++ b/plotly/validators/layout/ternary/aaxis/_hoverformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/aaxis/_labelalias.py b/plotly/validators/layout/ternary/aaxis/_labelalias.py index 2877292992..d50e63c8d9 100644 --- a/plotly/validators/layout/ternary/aaxis/_labelalias.py +++ b/plotly/validators/layout/ternary/aaxis/_labelalias.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/aaxis/_layer.py b/plotly/validators/layout/ternary/aaxis/_layer.py index 0435365990..37733b9148 100644 --- a/plotly/validators/layout/ternary/aaxis/_layer.py +++ b/plotly/validators/layout/ternary/aaxis/_layer.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LayerValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["above traces", "below traces"]), **kwargs, diff --git a/plotly/validators/layout/ternary/aaxis/_linecolor.py b/plotly/validators/layout/ternary/aaxis/_linecolor.py index 796a86d565..5d08b6e331 100644 --- a/plotly/validators/layout/ternary/aaxis/_linecolor.py +++ b/plotly/validators/layout/ternary/aaxis/_linecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/aaxis/_linewidth.py b/plotly/validators/layout/ternary/aaxis/_linewidth.py index 34a01018a9..64ea55bc17 100644 --- a/plotly/validators/layout/ternary/aaxis/_linewidth.py +++ b/plotly/validators/layout/ternary/aaxis/_linewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/ternary/aaxis/_min.py b/plotly/validators/layout/ternary/aaxis/_min.py index b8f48ee73e..6f1463764e 100644 --- a/plotly/validators/layout/ternary/aaxis/_min.py +++ b/plotly/validators/layout/ternary/aaxis/_min.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/ternary/aaxis/_minexponent.py b/plotly/validators/layout/ternary/aaxis/_minexponent.py index 8196fac9a2..843d0af25b 100644 --- a/plotly/validators/layout/ternary/aaxis/_minexponent.py +++ b/plotly/validators/layout/ternary/aaxis/_minexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/ternary/aaxis/_nticks.py b/plotly/validators/layout/ternary/aaxis/_nticks.py index 9fe2cfd30d..c1f314cb8a 100644 --- a/plotly/validators/layout/ternary/aaxis/_nticks.py +++ b/plotly/validators/layout/ternary/aaxis/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/ternary/aaxis/_separatethousands.py b/plotly/validators/layout/ternary/aaxis/_separatethousands.py index 73db08e248..10eb734020 100644 --- a/plotly/validators/layout/ternary/aaxis/_separatethousands.py +++ b/plotly/validators/layout/ternary/aaxis/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/aaxis/_showexponent.py b/plotly/validators/layout/ternary/aaxis/_showexponent.py index d427c7e5df..33d3d3b762 100644 --- a/plotly/validators/layout/ternary/aaxis/_showexponent.py +++ b/plotly/validators/layout/ternary/aaxis/_showexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/ternary/aaxis/_showgrid.py b/plotly/validators/layout/ternary/aaxis/_showgrid.py index d76eb03791..d6cd943088 100644 --- a/plotly/validators/layout/ternary/aaxis/_showgrid.py +++ b/plotly/validators/layout/ternary/aaxis/_showgrid.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/aaxis/_showline.py b/plotly/validators/layout/ternary/aaxis/_showline.py index b48e7e1fa9..fec27805a1 100644 --- a/plotly/validators/layout/ternary/aaxis/_showline.py +++ b/plotly/validators/layout/ternary/aaxis/_showline.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/aaxis/_showticklabels.py b/plotly/validators/layout/ternary/aaxis/_showticklabels.py index c0c3794e70..199caad7f8 100644 --- a/plotly/validators/layout/ternary/aaxis/_showticklabels.py +++ b/plotly/validators/layout/ternary/aaxis/_showticklabels.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/aaxis/_showtickprefix.py b/plotly/validators/layout/ternary/aaxis/_showtickprefix.py index 69621fa041..7a3fb37998 100644 --- a/plotly/validators/layout/ternary/aaxis/_showtickprefix.py +++ b/plotly/validators/layout/ternary/aaxis/_showtickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/ternary/aaxis/_showticksuffix.py b/plotly/validators/layout/ternary/aaxis/_showticksuffix.py index 86d7a8ed13..2272641a3e 100644 --- a/plotly/validators/layout/ternary/aaxis/_showticksuffix.py +++ b/plotly/validators/layout/ternary/aaxis/_showticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/ternary/aaxis/_tick0.py b/plotly/validators/layout/ternary/aaxis/_tick0.py index 3aa8d005de..0a33e0bbad 100644 --- a/plotly/validators/layout/ternary/aaxis/_tick0.py +++ b/plotly/validators/layout/ternary/aaxis/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/layout/ternary/aaxis/_tickangle.py b/plotly/validators/layout/ternary/aaxis/_tickangle.py index 34595ae574..42eb9e1653 100644 --- a/plotly/validators/layout/ternary/aaxis/_tickangle.py +++ b/plotly/validators/layout/ternary/aaxis/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/aaxis/_tickcolor.py b/plotly/validators/layout/ternary/aaxis/_tickcolor.py index c315fbcc75..ebcca62f1b 100644 --- a/plotly/validators/layout/ternary/aaxis/_tickcolor.py +++ b/plotly/validators/layout/ternary/aaxis/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/aaxis/_tickfont.py b/plotly/validators/layout/ternary/aaxis/_tickfont.py index 3d2a1bc7d4..b189b4bd63 100644 --- a/plotly/validators/layout/ternary/aaxis/_tickfont.py +++ b/plotly/validators/layout/ternary/aaxis/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/ternary/aaxis/_tickformat.py b/plotly/validators/layout/ternary/aaxis/_tickformat.py index 5d506740e0..8c04bbc0bd 100644 --- a/plotly/validators/layout/ternary/aaxis/_tickformat.py +++ b/plotly/validators/layout/ternary/aaxis/_tickformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/aaxis/_tickformatstopdefaults.py b/plotly/validators/layout/ternary/aaxis/_tickformatstopdefaults.py index 9bca349a35..5ea8734da9 100644 --- a/plotly/validators/layout/ternary/aaxis/_tickformatstopdefaults.py +++ b/plotly/validators/layout/ternary/aaxis/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/ternary/aaxis/_tickformatstops.py b/plotly/validators/layout/ternary/aaxis/_tickformatstops.py index f25670c3e4..7600e582f3 100644 --- a/plotly/validators/layout/ternary/aaxis/_tickformatstops.py +++ b/plotly/validators/layout/ternary/aaxis/_tickformatstops.py @@ -1,53 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/ternary/aaxis/_ticklabelstep.py b/plotly/validators/layout/ternary/aaxis/_ticklabelstep.py index 5659106df1..1d2781b966 100644 --- a/plotly/validators/layout/ternary/aaxis/_ticklabelstep.py +++ b/plotly/validators/layout/ternary/aaxis/_ticklabelstep.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/ternary/aaxis/_ticklen.py b/plotly/validators/layout/ternary/aaxis/_ticklen.py index 9157d944f1..5378720968 100644 --- a/plotly/validators/layout/ternary/aaxis/_ticklen.py +++ b/plotly/validators/layout/ternary/aaxis/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/ternary/aaxis/_tickmode.py b/plotly/validators/layout/ternary/aaxis/_tickmode.py index f28c8e99b9..8ff828d0f1 100644 --- a/plotly/validators/layout/ternary/aaxis/_tickmode.py +++ b/plotly/validators/layout/ternary/aaxis/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/layout/ternary/aaxis/_tickprefix.py b/plotly/validators/layout/ternary/aaxis/_tickprefix.py index 4f988fcd29..af6d4bdc4b 100644 --- a/plotly/validators/layout/ternary/aaxis/_tickprefix.py +++ b/plotly/validators/layout/ternary/aaxis/_tickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/aaxis/_ticks.py b/plotly/validators/layout/ternary/aaxis/_ticks.py index c97a73a27e..f4d38101d1 100644 --- a/plotly/validators/layout/ternary/aaxis/_ticks.py +++ b/plotly/validators/layout/ternary/aaxis/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/layout/ternary/aaxis/_ticksuffix.py b/plotly/validators/layout/ternary/aaxis/_ticksuffix.py index 5dbe280eb5..28950b5d85 100644 --- a/plotly/validators/layout/ternary/aaxis/_ticksuffix.py +++ b/plotly/validators/layout/ternary/aaxis/_ticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/aaxis/_ticktext.py b/plotly/validators/layout/ternary/aaxis/_ticktext.py index cc3248e0d7..c2debbf78c 100644 --- a/plotly/validators/layout/ternary/aaxis/_ticktext.py +++ b/plotly/validators/layout/ternary/aaxis/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/aaxis/_ticktextsrc.py b/plotly/validators/layout/ternary/aaxis/_ticktextsrc.py index 7bd6da09b9..63cdd66caf 100644 --- a/plotly/validators/layout/ternary/aaxis/_ticktextsrc.py +++ b/plotly/validators/layout/ternary/aaxis/_ticktextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/aaxis/_tickvals.py b/plotly/validators/layout/ternary/aaxis/_tickvals.py index dc7329e088..1cc8fd0099 100644 --- a/plotly/validators/layout/ternary/aaxis/_tickvals.py +++ b/plotly/validators/layout/ternary/aaxis/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/aaxis/_tickvalssrc.py b/plotly/validators/layout/ternary/aaxis/_tickvalssrc.py index e9950719a6..45e4276f5b 100644 --- a/plotly/validators/layout/ternary/aaxis/_tickvalssrc.py +++ b/plotly/validators/layout/ternary/aaxis/_tickvalssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/aaxis/_tickwidth.py b/plotly/validators/layout/ternary/aaxis/_tickwidth.py index b1c59bdeb9..c81bb1301a 100644 --- a/plotly/validators/layout/ternary/aaxis/_tickwidth.py +++ b/plotly/validators/layout/ternary/aaxis/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/ternary/aaxis/_title.py b/plotly/validators/layout/ternary/aaxis/_title.py index 0024dfcd5f..781f9edd11 100644 --- a/plotly/validators/layout/ternary/aaxis/_title.py +++ b/plotly/validators/layout/ternary/aaxis/_title.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/ternary/aaxis/_uirevision.py b/plotly/validators/layout/ternary/aaxis/_uirevision.py index f9b44f3c61..f2152f5526 100644 --- a/plotly/validators/layout/ternary/aaxis/_uirevision.py +++ b/plotly/validators/layout/ternary/aaxis/_uirevision.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/aaxis/tickfont/__init__.py b/plotly/validators/layout/ternary/aaxis/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/ternary/aaxis/tickfont/__init__.py +++ b/plotly/validators/layout/ternary/aaxis/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/ternary/aaxis/tickfont/_color.py b/plotly/validators/layout/ternary/aaxis/tickfont/_color.py index 15864fee5f..2ebf9e4ff2 100644 --- a/plotly/validators/layout/ternary/aaxis/tickfont/_color.py +++ b/plotly/validators/layout/ternary/aaxis/tickfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/aaxis/tickfont/_family.py b/plotly/validators/layout/ternary/aaxis/tickfont/_family.py index 17257e3d7d..fff31aae31 100644 --- a/plotly/validators/layout/ternary/aaxis/tickfont/_family.py +++ b/plotly/validators/layout/ternary/aaxis/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/ternary/aaxis/tickfont/_lineposition.py b/plotly/validators/layout/ternary/aaxis/tickfont/_lineposition.py index c621ac133e..28c639be99 100644 --- a/plotly/validators/layout/ternary/aaxis/tickfont/_lineposition.py +++ b/plotly/validators/layout/ternary/aaxis/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/ternary/aaxis/tickfont/_shadow.py b/plotly/validators/layout/ternary/aaxis/tickfont/_shadow.py index 2911253ae0..f624113713 100644 --- a/plotly/validators/layout/ternary/aaxis/tickfont/_shadow.py +++ b/plotly/validators/layout/ternary/aaxis/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/aaxis/tickfont/_size.py b/plotly/validators/layout/ternary/aaxis/tickfont/_size.py index 3c3f5193b4..11e5434edd 100644 --- a/plotly/validators/layout/ternary/aaxis/tickfont/_size.py +++ b/plotly/validators/layout/ternary/aaxis/tickfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/ternary/aaxis/tickfont/_style.py b/plotly/validators/layout/ternary/aaxis/tickfont/_style.py index d438c2f75a..a06552740f 100644 --- a/plotly/validators/layout/ternary/aaxis/tickfont/_style.py +++ b/plotly/validators/layout/ternary/aaxis/tickfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/ternary/aaxis/tickfont/_textcase.py b/plotly/validators/layout/ternary/aaxis/tickfont/_textcase.py index 6b7f879542..1b5afdab34 100644 --- a/plotly/validators/layout/ternary/aaxis/tickfont/_textcase.py +++ b/plotly/validators/layout/ternary/aaxis/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/ternary/aaxis/tickfont/_variant.py b/plotly/validators/layout/ternary/aaxis/tickfont/_variant.py index b780f65fd4..ff73c8e5ca 100644 --- a/plotly/validators/layout/ternary/aaxis/tickfont/_variant.py +++ b/plotly/validators/layout/ternary/aaxis/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/ternary/aaxis/tickfont/_weight.py b/plotly/validators/layout/ternary/aaxis/tickfont/_weight.py index e1b3be89d2..666472abe3 100644 --- a/plotly/validators/layout/ternary/aaxis/tickfont/_weight.py +++ b/plotly/validators/layout/ternary/aaxis/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/ternary/aaxis/tickformatstop/__init__.py b/plotly/validators/layout/ternary/aaxis/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/layout/ternary/aaxis/tickformatstop/__init__.py +++ b/plotly/validators/layout/ternary/aaxis/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/layout/ternary/aaxis/tickformatstop/_dtickrange.py b/plotly/validators/layout/ternary/aaxis/tickformatstop/_dtickrange.py index 0c8a5e4d2a..9f501c889b 100644 --- a/plotly/validators/layout/ternary/aaxis/tickformatstop/_dtickrange.py +++ b/plotly/validators/layout/ternary/aaxis/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/ternary/aaxis/tickformatstop/_enabled.py b/plotly/validators/layout/ternary/aaxis/tickformatstop/_enabled.py index 047be9cbc9..a04c2e5db3 100644 --- a/plotly/validators/layout/ternary/aaxis/tickformatstop/_enabled.py +++ b/plotly/validators/layout/ternary/aaxis/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/aaxis/tickformatstop/_name.py b/plotly/validators/layout/ternary/aaxis/tickformatstop/_name.py index cad40679c1..428c0f5fc2 100644 --- a/plotly/validators/layout/ternary/aaxis/tickformatstop/_name.py +++ b/plotly/validators/layout/ternary/aaxis/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/aaxis/tickformatstop/_templateitemname.py b/plotly/validators/layout/ternary/aaxis/tickformatstop/_templateitemname.py index 60672120fb..dd8624310f 100644 --- a/plotly/validators/layout/ternary/aaxis/tickformatstop/_templateitemname.py +++ b/plotly/validators/layout/ternary/aaxis/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/aaxis/tickformatstop/_value.py b/plotly/validators/layout/ternary/aaxis/tickformatstop/_value.py index a9c601c8d5..085a797d59 100644 --- a/plotly/validators/layout/ternary/aaxis/tickformatstop/_value.py +++ b/plotly/validators/layout/ternary/aaxis/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/aaxis/title/__init__.py b/plotly/validators/layout/ternary/aaxis/title/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/layout/ternary/aaxis/title/__init__.py +++ b/plotly/validators/layout/ternary/aaxis/title/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/layout/ternary/aaxis/title/_font.py b/plotly/validators/layout/ternary/aaxis/title/_font.py index 9e6cc35483..2a45072ef5 100644 --- a/plotly/validators/layout/ternary/aaxis/title/_font.py +++ b/plotly/validators/layout/ternary/aaxis/title/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/ternary/aaxis/title/_text.py b/plotly/validators/layout/ternary/aaxis/title/_text.py index 6771e130e1..fc45ba9a84 100644 --- a/plotly/validators/layout/ternary/aaxis/title/_text.py +++ b/plotly/validators/layout/ternary/aaxis/title/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/aaxis/title/font/__init__.py b/plotly/validators/layout/ternary/aaxis/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/ternary/aaxis/title/font/__init__.py +++ b/plotly/validators/layout/ternary/aaxis/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/ternary/aaxis/title/font/_color.py b/plotly/validators/layout/ternary/aaxis/title/font/_color.py index d34a02e65c..5d2df1b896 100644 --- a/plotly/validators/layout/ternary/aaxis/title/font/_color.py +++ b/plotly/validators/layout/ternary/aaxis/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/aaxis/title/font/_family.py b/plotly/validators/layout/ternary/aaxis/title/font/_family.py index 6a2cb30306..c53edd3834 100644 --- a/plotly/validators/layout/ternary/aaxis/title/font/_family.py +++ b/plotly/validators/layout/ternary/aaxis/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/ternary/aaxis/title/font/_lineposition.py b/plotly/validators/layout/ternary/aaxis/title/font/_lineposition.py index 2323013343..4b0e84020c 100644 --- a/plotly/validators/layout/ternary/aaxis/title/font/_lineposition.py +++ b/plotly/validators/layout/ternary/aaxis/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/ternary/aaxis/title/font/_shadow.py b/plotly/validators/layout/ternary/aaxis/title/font/_shadow.py index 754b2ad638..3c4498f5d8 100644 --- a/plotly/validators/layout/ternary/aaxis/title/font/_shadow.py +++ b/plotly/validators/layout/ternary/aaxis/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/aaxis/title/font/_size.py b/plotly/validators/layout/ternary/aaxis/title/font/_size.py index 4f95af68bc..572d5b5976 100644 --- a/plotly/validators/layout/ternary/aaxis/title/font/_size.py +++ b/plotly/validators/layout/ternary/aaxis/title/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/ternary/aaxis/title/font/_style.py b/plotly/validators/layout/ternary/aaxis/title/font/_style.py index dba515e617..c00da25a44 100644 --- a/plotly/validators/layout/ternary/aaxis/title/font/_style.py +++ b/plotly/validators/layout/ternary/aaxis/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/ternary/aaxis/title/font/_textcase.py b/plotly/validators/layout/ternary/aaxis/title/font/_textcase.py index eea2599535..0316e6817f 100644 --- a/plotly/validators/layout/ternary/aaxis/title/font/_textcase.py +++ b/plotly/validators/layout/ternary/aaxis/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/ternary/aaxis/title/font/_variant.py b/plotly/validators/layout/ternary/aaxis/title/font/_variant.py index 7c30d1dad6..1c3817aa21 100644 --- a/plotly/validators/layout/ternary/aaxis/title/font/_variant.py +++ b/plotly/validators/layout/ternary/aaxis/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/ternary/aaxis/title/font/_weight.py b/plotly/validators/layout/ternary/aaxis/title/font/_weight.py index 629b98dc8e..24d9952208 100644 --- a/plotly/validators/layout/ternary/aaxis/title/font/_weight.py +++ b/plotly/validators/layout/ternary/aaxis/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/ternary/baxis/__init__.py b/plotly/validators/layout/ternary/baxis/__init__.py index 0fafe61824..5f18e86986 100644 --- a/plotly/validators/layout/ternary/baxis/__init__.py +++ b/plotly/validators/layout/ternary/baxis/__init__.py @@ -1,95 +1,50 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._uirevision import UirevisionValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showline import ShowlineValidator - from ._showgrid import ShowgridValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._min import MinValidator - from ._linewidth import LinewidthValidator - from ._linecolor import LinecolorValidator - from ._layer import LayerValidator - from ._labelalias import LabelaliasValidator - from ._hoverformat import HoverformatValidator - from ._gridwidth import GridwidthValidator - from ._griddash import GriddashValidator - from ._gridcolor import GridcolorValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/ternary/baxis/_color.py b/plotly/validators/layout/ternary/baxis/_color.py index 81f4118614..101fddda81 100644 --- a/plotly/validators/layout/ternary/baxis/_color.py +++ b/plotly/validators/layout/ternary/baxis/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/baxis/_dtick.py b/plotly/validators/layout/ternary/baxis/_dtick.py index cc8e71bc7b..07bcead8e8 100644 --- a/plotly/validators/layout/ternary/baxis/_dtick.py +++ b/plotly/validators/layout/ternary/baxis/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/layout/ternary/baxis/_exponentformat.py b/plotly/validators/layout/ternary/baxis/_exponentformat.py index 7a8833f6dc..75ddfeb019 100644 --- a/plotly/validators/layout/ternary/baxis/_exponentformat.py +++ b/plotly/validators/layout/ternary/baxis/_exponentformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/layout/ternary/baxis/_gridcolor.py b/plotly/validators/layout/ternary/baxis/_gridcolor.py index 4b8e97783d..c653814f55 100644 --- a/plotly/validators/layout/ternary/baxis/_gridcolor.py +++ b/plotly/validators/layout/ternary/baxis/_gridcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/baxis/_griddash.py b/plotly/validators/layout/ternary/baxis/_griddash.py index 5212538f67..21ca687310 100644 --- a/plotly/validators/layout/ternary/baxis/_griddash.py +++ b/plotly/validators/layout/ternary/baxis/_griddash.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GriddashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/layout/ternary/baxis/_gridwidth.py b/plotly/validators/layout/ternary/baxis/_gridwidth.py index 546c2891ce..214de3bf52 100644 --- a/plotly/validators/layout/ternary/baxis/_gridwidth.py +++ b/plotly/validators/layout/ternary/baxis/_gridwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/ternary/baxis/_hoverformat.py b/plotly/validators/layout/ternary/baxis/_hoverformat.py index 6bfd37b226..70d88366b9 100644 --- a/plotly/validators/layout/ternary/baxis/_hoverformat.py +++ b/plotly/validators/layout/ternary/baxis/_hoverformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/baxis/_labelalias.py b/plotly/validators/layout/ternary/baxis/_labelalias.py index d76024f8e0..d6f97cfffa 100644 --- a/plotly/validators/layout/ternary/baxis/_labelalias.py +++ b/plotly/validators/layout/ternary/baxis/_labelalias.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/baxis/_layer.py b/plotly/validators/layout/ternary/baxis/_layer.py index e18dcf19e5..2e706611a0 100644 --- a/plotly/validators/layout/ternary/baxis/_layer.py +++ b/plotly/validators/layout/ternary/baxis/_layer.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LayerValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["above traces", "below traces"]), **kwargs, diff --git a/plotly/validators/layout/ternary/baxis/_linecolor.py b/plotly/validators/layout/ternary/baxis/_linecolor.py index 1db6adbb3a..e21ea4444f 100644 --- a/plotly/validators/layout/ternary/baxis/_linecolor.py +++ b/plotly/validators/layout/ternary/baxis/_linecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/baxis/_linewidth.py b/plotly/validators/layout/ternary/baxis/_linewidth.py index 2ae4c65cbd..d3033a9f1f 100644 --- a/plotly/validators/layout/ternary/baxis/_linewidth.py +++ b/plotly/validators/layout/ternary/baxis/_linewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/ternary/baxis/_min.py b/plotly/validators/layout/ternary/baxis/_min.py index 90ec078638..3643c148f4 100644 --- a/plotly/validators/layout/ternary/baxis/_min.py +++ b/plotly/validators/layout/ternary/baxis/_min.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/ternary/baxis/_minexponent.py b/plotly/validators/layout/ternary/baxis/_minexponent.py index 142086b3e5..353dfb824b 100644 --- a/plotly/validators/layout/ternary/baxis/_minexponent.py +++ b/plotly/validators/layout/ternary/baxis/_minexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/ternary/baxis/_nticks.py b/plotly/validators/layout/ternary/baxis/_nticks.py index 23c4d8d345..f08387d65d 100644 --- a/plotly/validators/layout/ternary/baxis/_nticks.py +++ b/plotly/validators/layout/ternary/baxis/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/ternary/baxis/_separatethousands.py b/plotly/validators/layout/ternary/baxis/_separatethousands.py index f3512096d9..a58541444f 100644 --- a/plotly/validators/layout/ternary/baxis/_separatethousands.py +++ b/plotly/validators/layout/ternary/baxis/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/baxis/_showexponent.py b/plotly/validators/layout/ternary/baxis/_showexponent.py index 445dd5f5ec..e708d1d9f5 100644 --- a/plotly/validators/layout/ternary/baxis/_showexponent.py +++ b/plotly/validators/layout/ternary/baxis/_showexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/ternary/baxis/_showgrid.py b/plotly/validators/layout/ternary/baxis/_showgrid.py index a02196bbf8..e41176d79f 100644 --- a/plotly/validators/layout/ternary/baxis/_showgrid.py +++ b/plotly/validators/layout/ternary/baxis/_showgrid.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/baxis/_showline.py b/plotly/validators/layout/ternary/baxis/_showline.py index 7b86bb76b5..e32f3770ab 100644 --- a/plotly/validators/layout/ternary/baxis/_showline.py +++ b/plotly/validators/layout/ternary/baxis/_showline.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/baxis/_showticklabels.py b/plotly/validators/layout/ternary/baxis/_showticklabels.py index 922f00c49e..7363dc0c06 100644 --- a/plotly/validators/layout/ternary/baxis/_showticklabels.py +++ b/plotly/validators/layout/ternary/baxis/_showticklabels.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/baxis/_showtickprefix.py b/plotly/validators/layout/ternary/baxis/_showtickprefix.py index 6f57deed79..204d9c4f5b 100644 --- a/plotly/validators/layout/ternary/baxis/_showtickprefix.py +++ b/plotly/validators/layout/ternary/baxis/_showtickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/ternary/baxis/_showticksuffix.py b/plotly/validators/layout/ternary/baxis/_showticksuffix.py index 633a125f7e..2b4e239485 100644 --- a/plotly/validators/layout/ternary/baxis/_showticksuffix.py +++ b/plotly/validators/layout/ternary/baxis/_showticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/ternary/baxis/_tick0.py b/plotly/validators/layout/ternary/baxis/_tick0.py index 011aad01bc..260fd1a66c 100644 --- a/plotly/validators/layout/ternary/baxis/_tick0.py +++ b/plotly/validators/layout/ternary/baxis/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/layout/ternary/baxis/_tickangle.py b/plotly/validators/layout/ternary/baxis/_tickangle.py index 9bf3e01ffa..5ebf3f3c50 100644 --- a/plotly/validators/layout/ternary/baxis/_tickangle.py +++ b/plotly/validators/layout/ternary/baxis/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/baxis/_tickcolor.py b/plotly/validators/layout/ternary/baxis/_tickcolor.py index 7352b2e57c..b84b258d7a 100644 --- a/plotly/validators/layout/ternary/baxis/_tickcolor.py +++ b/plotly/validators/layout/ternary/baxis/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/baxis/_tickfont.py b/plotly/validators/layout/ternary/baxis/_tickfont.py index dc9f1d74da..cf329b6fa0 100644 --- a/plotly/validators/layout/ternary/baxis/_tickfont.py +++ b/plotly/validators/layout/ternary/baxis/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/ternary/baxis/_tickformat.py b/plotly/validators/layout/ternary/baxis/_tickformat.py index 4944fcb3c1..5fe35fd6c7 100644 --- a/plotly/validators/layout/ternary/baxis/_tickformat.py +++ b/plotly/validators/layout/ternary/baxis/_tickformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/baxis/_tickformatstopdefaults.py b/plotly/validators/layout/ternary/baxis/_tickformatstopdefaults.py index 4e5064d76b..7dda1bdbaa 100644 --- a/plotly/validators/layout/ternary/baxis/_tickformatstopdefaults.py +++ b/plotly/validators/layout/ternary/baxis/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/ternary/baxis/_tickformatstops.py b/plotly/validators/layout/ternary/baxis/_tickformatstops.py index 345d97a859..be3bc17456 100644 --- a/plotly/validators/layout/ternary/baxis/_tickformatstops.py +++ b/plotly/validators/layout/ternary/baxis/_tickformatstops.py @@ -1,53 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/ternary/baxis/_ticklabelstep.py b/plotly/validators/layout/ternary/baxis/_ticklabelstep.py index d51c479b62..e86243ed8c 100644 --- a/plotly/validators/layout/ternary/baxis/_ticklabelstep.py +++ b/plotly/validators/layout/ternary/baxis/_ticklabelstep.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/ternary/baxis/_ticklen.py b/plotly/validators/layout/ternary/baxis/_ticklen.py index be3d81e24e..9ae6b01ca3 100644 --- a/plotly/validators/layout/ternary/baxis/_ticklen.py +++ b/plotly/validators/layout/ternary/baxis/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/ternary/baxis/_tickmode.py b/plotly/validators/layout/ternary/baxis/_tickmode.py index 4049721008..ef8ef0966c 100644 --- a/plotly/validators/layout/ternary/baxis/_tickmode.py +++ b/plotly/validators/layout/ternary/baxis/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/layout/ternary/baxis/_tickprefix.py b/plotly/validators/layout/ternary/baxis/_tickprefix.py index 4f9a8faec6..35c8e6abad 100644 --- a/plotly/validators/layout/ternary/baxis/_tickprefix.py +++ b/plotly/validators/layout/ternary/baxis/_tickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/baxis/_ticks.py b/plotly/validators/layout/ternary/baxis/_ticks.py index 9b2e433d7a..4e877403a5 100644 --- a/plotly/validators/layout/ternary/baxis/_ticks.py +++ b/plotly/validators/layout/ternary/baxis/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/layout/ternary/baxis/_ticksuffix.py b/plotly/validators/layout/ternary/baxis/_ticksuffix.py index e65decd24c..272a98bb63 100644 --- a/plotly/validators/layout/ternary/baxis/_ticksuffix.py +++ b/plotly/validators/layout/ternary/baxis/_ticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/baxis/_ticktext.py b/plotly/validators/layout/ternary/baxis/_ticktext.py index ee294edb73..5b731d4250 100644 --- a/plotly/validators/layout/ternary/baxis/_ticktext.py +++ b/plotly/validators/layout/ternary/baxis/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/baxis/_ticktextsrc.py b/plotly/validators/layout/ternary/baxis/_ticktextsrc.py index 4ba97c3b0a..29639bfb31 100644 --- a/plotly/validators/layout/ternary/baxis/_ticktextsrc.py +++ b/plotly/validators/layout/ternary/baxis/_ticktextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/baxis/_tickvals.py b/plotly/validators/layout/ternary/baxis/_tickvals.py index eb508a9505..845ea11371 100644 --- a/plotly/validators/layout/ternary/baxis/_tickvals.py +++ b/plotly/validators/layout/ternary/baxis/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/baxis/_tickvalssrc.py b/plotly/validators/layout/ternary/baxis/_tickvalssrc.py index 3d36fade33..bdc116e02c 100644 --- a/plotly/validators/layout/ternary/baxis/_tickvalssrc.py +++ b/plotly/validators/layout/ternary/baxis/_tickvalssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/baxis/_tickwidth.py b/plotly/validators/layout/ternary/baxis/_tickwidth.py index fb2186d69e..882ea63b00 100644 --- a/plotly/validators/layout/ternary/baxis/_tickwidth.py +++ b/plotly/validators/layout/ternary/baxis/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/ternary/baxis/_title.py b/plotly/validators/layout/ternary/baxis/_title.py index aa188ea51c..e93840682e 100644 --- a/plotly/validators/layout/ternary/baxis/_title.py +++ b/plotly/validators/layout/ternary/baxis/_title.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/ternary/baxis/_uirevision.py b/plotly/validators/layout/ternary/baxis/_uirevision.py index 6dd2a8ff66..cab2e455cc 100644 --- a/plotly/validators/layout/ternary/baxis/_uirevision.py +++ b/plotly/validators/layout/ternary/baxis/_uirevision.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/baxis/tickfont/__init__.py b/plotly/validators/layout/ternary/baxis/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/ternary/baxis/tickfont/__init__.py +++ b/plotly/validators/layout/ternary/baxis/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/ternary/baxis/tickfont/_color.py b/plotly/validators/layout/ternary/baxis/tickfont/_color.py index 1c8db02dcd..923b49043d 100644 --- a/plotly/validators/layout/ternary/baxis/tickfont/_color.py +++ b/plotly/validators/layout/ternary/baxis/tickfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/baxis/tickfont/_family.py b/plotly/validators/layout/ternary/baxis/tickfont/_family.py index 02eb706aba..05596e228e 100644 --- a/plotly/validators/layout/ternary/baxis/tickfont/_family.py +++ b/plotly/validators/layout/ternary/baxis/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/ternary/baxis/tickfont/_lineposition.py b/plotly/validators/layout/ternary/baxis/tickfont/_lineposition.py index 6493683013..270b33b88c 100644 --- a/plotly/validators/layout/ternary/baxis/tickfont/_lineposition.py +++ b/plotly/validators/layout/ternary/baxis/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/ternary/baxis/tickfont/_shadow.py b/plotly/validators/layout/ternary/baxis/tickfont/_shadow.py index dafe10d05d..e0c7c310cf 100644 --- a/plotly/validators/layout/ternary/baxis/tickfont/_shadow.py +++ b/plotly/validators/layout/ternary/baxis/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/baxis/tickfont/_size.py b/plotly/validators/layout/ternary/baxis/tickfont/_size.py index 04bbe0731a..b5ff2bbc91 100644 --- a/plotly/validators/layout/ternary/baxis/tickfont/_size.py +++ b/plotly/validators/layout/ternary/baxis/tickfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/ternary/baxis/tickfont/_style.py b/plotly/validators/layout/ternary/baxis/tickfont/_style.py index 0768a24db4..dcf3c97bb2 100644 --- a/plotly/validators/layout/ternary/baxis/tickfont/_style.py +++ b/plotly/validators/layout/ternary/baxis/tickfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/ternary/baxis/tickfont/_textcase.py b/plotly/validators/layout/ternary/baxis/tickfont/_textcase.py index f5e71e0ee8..70bc393a23 100644 --- a/plotly/validators/layout/ternary/baxis/tickfont/_textcase.py +++ b/plotly/validators/layout/ternary/baxis/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/ternary/baxis/tickfont/_variant.py b/plotly/validators/layout/ternary/baxis/tickfont/_variant.py index 7fabe78bff..1d04e54b39 100644 --- a/plotly/validators/layout/ternary/baxis/tickfont/_variant.py +++ b/plotly/validators/layout/ternary/baxis/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/ternary/baxis/tickfont/_weight.py b/plotly/validators/layout/ternary/baxis/tickfont/_weight.py index cf72a5d20b..dd62ebfaf4 100644 --- a/plotly/validators/layout/ternary/baxis/tickfont/_weight.py +++ b/plotly/validators/layout/ternary/baxis/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/ternary/baxis/tickformatstop/__init__.py b/plotly/validators/layout/ternary/baxis/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/layout/ternary/baxis/tickformatstop/__init__.py +++ b/plotly/validators/layout/ternary/baxis/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/layout/ternary/baxis/tickformatstop/_dtickrange.py b/plotly/validators/layout/ternary/baxis/tickformatstop/_dtickrange.py index b60aceedcc..ee20063ae7 100644 --- a/plotly/validators/layout/ternary/baxis/tickformatstop/_dtickrange.py +++ b/plotly/validators/layout/ternary/baxis/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/ternary/baxis/tickformatstop/_enabled.py b/plotly/validators/layout/ternary/baxis/tickformatstop/_enabled.py index edd5f951d5..c5f71ff341 100644 --- a/plotly/validators/layout/ternary/baxis/tickformatstop/_enabled.py +++ b/plotly/validators/layout/ternary/baxis/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/baxis/tickformatstop/_name.py b/plotly/validators/layout/ternary/baxis/tickformatstop/_name.py index 8eea566639..6819905f72 100644 --- a/plotly/validators/layout/ternary/baxis/tickformatstop/_name.py +++ b/plotly/validators/layout/ternary/baxis/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/baxis/tickformatstop/_templateitemname.py b/plotly/validators/layout/ternary/baxis/tickformatstop/_templateitemname.py index 6307cc6a8b..8b0765d386 100644 --- a/plotly/validators/layout/ternary/baxis/tickformatstop/_templateitemname.py +++ b/plotly/validators/layout/ternary/baxis/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/baxis/tickformatstop/_value.py b/plotly/validators/layout/ternary/baxis/tickformatstop/_value.py index 80b6df39bd..b7071d5601 100644 --- a/plotly/validators/layout/ternary/baxis/tickformatstop/_value.py +++ b/plotly/validators/layout/ternary/baxis/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/baxis/title/__init__.py b/plotly/validators/layout/ternary/baxis/title/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/layout/ternary/baxis/title/__init__.py +++ b/plotly/validators/layout/ternary/baxis/title/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/layout/ternary/baxis/title/_font.py b/plotly/validators/layout/ternary/baxis/title/_font.py index f7424b2798..f9962b2501 100644 --- a/plotly/validators/layout/ternary/baxis/title/_font.py +++ b/plotly/validators/layout/ternary/baxis/title/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/ternary/baxis/title/_text.py b/plotly/validators/layout/ternary/baxis/title/_text.py index 9d4dd5118a..2d50c0c87c 100644 --- a/plotly/validators/layout/ternary/baxis/title/_text.py +++ b/plotly/validators/layout/ternary/baxis/title/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/baxis/title/font/__init__.py b/plotly/validators/layout/ternary/baxis/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/ternary/baxis/title/font/__init__.py +++ b/plotly/validators/layout/ternary/baxis/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/ternary/baxis/title/font/_color.py b/plotly/validators/layout/ternary/baxis/title/font/_color.py index c819cc912e..e36050cb38 100644 --- a/plotly/validators/layout/ternary/baxis/title/font/_color.py +++ b/plotly/validators/layout/ternary/baxis/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/baxis/title/font/_family.py b/plotly/validators/layout/ternary/baxis/title/font/_family.py index f5e6eddaab..eed4988944 100644 --- a/plotly/validators/layout/ternary/baxis/title/font/_family.py +++ b/plotly/validators/layout/ternary/baxis/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/ternary/baxis/title/font/_lineposition.py b/plotly/validators/layout/ternary/baxis/title/font/_lineposition.py index 621d852b3b..dfc5499dbd 100644 --- a/plotly/validators/layout/ternary/baxis/title/font/_lineposition.py +++ b/plotly/validators/layout/ternary/baxis/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/ternary/baxis/title/font/_shadow.py b/plotly/validators/layout/ternary/baxis/title/font/_shadow.py index 40062e44c3..2c2c6c6296 100644 --- a/plotly/validators/layout/ternary/baxis/title/font/_shadow.py +++ b/plotly/validators/layout/ternary/baxis/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/baxis/title/font/_size.py b/plotly/validators/layout/ternary/baxis/title/font/_size.py index 565cfb6360..7e0406fb9d 100644 --- a/plotly/validators/layout/ternary/baxis/title/font/_size.py +++ b/plotly/validators/layout/ternary/baxis/title/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/ternary/baxis/title/font/_style.py b/plotly/validators/layout/ternary/baxis/title/font/_style.py index 168d5658ae..7fe67508ed 100644 --- a/plotly/validators/layout/ternary/baxis/title/font/_style.py +++ b/plotly/validators/layout/ternary/baxis/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/ternary/baxis/title/font/_textcase.py b/plotly/validators/layout/ternary/baxis/title/font/_textcase.py index 2cfa5b44ad..9cb836e6e6 100644 --- a/plotly/validators/layout/ternary/baxis/title/font/_textcase.py +++ b/plotly/validators/layout/ternary/baxis/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/ternary/baxis/title/font/_variant.py b/plotly/validators/layout/ternary/baxis/title/font/_variant.py index 5c420d3a06..092757526c 100644 --- a/plotly/validators/layout/ternary/baxis/title/font/_variant.py +++ b/plotly/validators/layout/ternary/baxis/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/ternary/baxis/title/font/_weight.py b/plotly/validators/layout/ternary/baxis/title/font/_weight.py index 076b993189..e4641a8839 100644 --- a/plotly/validators/layout/ternary/baxis/title/font/_weight.py +++ b/plotly/validators/layout/ternary/baxis/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/ternary/caxis/__init__.py b/plotly/validators/layout/ternary/caxis/__init__.py index 0fafe61824..5f18e86986 100644 --- a/plotly/validators/layout/ternary/caxis/__init__.py +++ b/plotly/validators/layout/ternary/caxis/__init__.py @@ -1,95 +1,50 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._uirevision import UirevisionValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showline import ShowlineValidator - from ._showgrid import ShowgridValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._min import MinValidator - from ._linewidth import LinewidthValidator - from ._linecolor import LinecolorValidator - from ._layer import LayerValidator - from ._labelalias import LabelaliasValidator - from ._hoverformat import HoverformatValidator - from ._gridwidth import GridwidthValidator - from ._griddash import GriddashValidator - from ._gridcolor import GridcolorValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/ternary/caxis/_color.py b/plotly/validators/layout/ternary/caxis/_color.py index 445c83b07f..fa42478c00 100644 --- a/plotly/validators/layout/ternary/caxis/_color.py +++ b/plotly/validators/layout/ternary/caxis/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/caxis/_dtick.py b/plotly/validators/layout/ternary/caxis/_dtick.py index 5b31a874b9..d3d870b221 100644 --- a/plotly/validators/layout/ternary/caxis/_dtick.py +++ b/plotly/validators/layout/ternary/caxis/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/layout/ternary/caxis/_exponentformat.py b/plotly/validators/layout/ternary/caxis/_exponentformat.py index 5fe6734dae..1a30dd377d 100644 --- a/plotly/validators/layout/ternary/caxis/_exponentformat.py +++ b/plotly/validators/layout/ternary/caxis/_exponentformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/layout/ternary/caxis/_gridcolor.py b/plotly/validators/layout/ternary/caxis/_gridcolor.py index 444f930ba9..529831d77c 100644 --- a/plotly/validators/layout/ternary/caxis/_gridcolor.py +++ b/plotly/validators/layout/ternary/caxis/_gridcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/caxis/_griddash.py b/plotly/validators/layout/ternary/caxis/_griddash.py index 6336c362d2..ec2b5c3e81 100644 --- a/plotly/validators/layout/ternary/caxis/_griddash.py +++ b/plotly/validators/layout/ternary/caxis/_griddash.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GriddashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/layout/ternary/caxis/_gridwidth.py b/plotly/validators/layout/ternary/caxis/_gridwidth.py index 77178201e2..b626a1a364 100644 --- a/plotly/validators/layout/ternary/caxis/_gridwidth.py +++ b/plotly/validators/layout/ternary/caxis/_gridwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/ternary/caxis/_hoverformat.py b/plotly/validators/layout/ternary/caxis/_hoverformat.py index df67ce269e..a159512571 100644 --- a/plotly/validators/layout/ternary/caxis/_hoverformat.py +++ b/plotly/validators/layout/ternary/caxis/_hoverformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/caxis/_labelalias.py b/plotly/validators/layout/ternary/caxis/_labelalias.py index 5211c225ce..cf887142f2 100644 --- a/plotly/validators/layout/ternary/caxis/_labelalias.py +++ b/plotly/validators/layout/ternary/caxis/_labelalias.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/caxis/_layer.py b/plotly/validators/layout/ternary/caxis/_layer.py index 71472ff37b..353a180532 100644 --- a/plotly/validators/layout/ternary/caxis/_layer.py +++ b/plotly/validators/layout/ternary/caxis/_layer.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LayerValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["above traces", "below traces"]), **kwargs, diff --git a/plotly/validators/layout/ternary/caxis/_linecolor.py b/plotly/validators/layout/ternary/caxis/_linecolor.py index c21fd97b6c..b190d552a4 100644 --- a/plotly/validators/layout/ternary/caxis/_linecolor.py +++ b/plotly/validators/layout/ternary/caxis/_linecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/caxis/_linewidth.py b/plotly/validators/layout/ternary/caxis/_linewidth.py index f2f88f69bc..162f9074db 100644 --- a/plotly/validators/layout/ternary/caxis/_linewidth.py +++ b/plotly/validators/layout/ternary/caxis/_linewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/ternary/caxis/_min.py b/plotly/validators/layout/ternary/caxis/_min.py index 19ca2f04be..77d45613cc 100644 --- a/plotly/validators/layout/ternary/caxis/_min.py +++ b/plotly/validators/layout/ternary/caxis/_min.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/ternary/caxis/_minexponent.py b/plotly/validators/layout/ternary/caxis/_minexponent.py index b9b0b50d5f..38ca4e7ae0 100644 --- a/plotly/validators/layout/ternary/caxis/_minexponent.py +++ b/plotly/validators/layout/ternary/caxis/_minexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/ternary/caxis/_nticks.py b/plotly/validators/layout/ternary/caxis/_nticks.py index 5c5b0fc32e..50c227296f 100644 --- a/plotly/validators/layout/ternary/caxis/_nticks.py +++ b/plotly/validators/layout/ternary/caxis/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/ternary/caxis/_separatethousands.py b/plotly/validators/layout/ternary/caxis/_separatethousands.py index 58113c40db..95a4bc69e0 100644 --- a/plotly/validators/layout/ternary/caxis/_separatethousands.py +++ b/plotly/validators/layout/ternary/caxis/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/caxis/_showexponent.py b/plotly/validators/layout/ternary/caxis/_showexponent.py index 89d668e881..bbd9b6af4e 100644 --- a/plotly/validators/layout/ternary/caxis/_showexponent.py +++ b/plotly/validators/layout/ternary/caxis/_showexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/ternary/caxis/_showgrid.py b/plotly/validators/layout/ternary/caxis/_showgrid.py index 4d3d8f4e91..b1aa4097a9 100644 --- a/plotly/validators/layout/ternary/caxis/_showgrid.py +++ b/plotly/validators/layout/ternary/caxis/_showgrid.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/caxis/_showline.py b/plotly/validators/layout/ternary/caxis/_showline.py index c8e4d1cb7a..88e9553706 100644 --- a/plotly/validators/layout/ternary/caxis/_showline.py +++ b/plotly/validators/layout/ternary/caxis/_showline.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/caxis/_showticklabels.py b/plotly/validators/layout/ternary/caxis/_showticklabels.py index 4149cd6027..103f2940ed 100644 --- a/plotly/validators/layout/ternary/caxis/_showticklabels.py +++ b/plotly/validators/layout/ternary/caxis/_showticklabels.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/caxis/_showtickprefix.py b/plotly/validators/layout/ternary/caxis/_showtickprefix.py index 1c214423d7..06caab74a4 100644 --- a/plotly/validators/layout/ternary/caxis/_showtickprefix.py +++ b/plotly/validators/layout/ternary/caxis/_showtickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/ternary/caxis/_showticksuffix.py b/plotly/validators/layout/ternary/caxis/_showticksuffix.py index 77db398471..da17ee4525 100644 --- a/plotly/validators/layout/ternary/caxis/_showticksuffix.py +++ b/plotly/validators/layout/ternary/caxis/_showticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/ternary/caxis/_tick0.py b/plotly/validators/layout/ternary/caxis/_tick0.py index 698fa9479c..23a35ef627 100644 --- a/plotly/validators/layout/ternary/caxis/_tick0.py +++ b/plotly/validators/layout/ternary/caxis/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/layout/ternary/caxis/_tickangle.py b/plotly/validators/layout/ternary/caxis/_tickangle.py index 9572f41751..3fa5e69f33 100644 --- a/plotly/validators/layout/ternary/caxis/_tickangle.py +++ b/plotly/validators/layout/ternary/caxis/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/caxis/_tickcolor.py b/plotly/validators/layout/ternary/caxis/_tickcolor.py index 0b2ede38d6..5d6b1b15b5 100644 --- a/plotly/validators/layout/ternary/caxis/_tickcolor.py +++ b/plotly/validators/layout/ternary/caxis/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/caxis/_tickfont.py b/plotly/validators/layout/ternary/caxis/_tickfont.py index 4095c0366c..4b4d3c952b 100644 --- a/plotly/validators/layout/ternary/caxis/_tickfont.py +++ b/plotly/validators/layout/ternary/caxis/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/ternary/caxis/_tickformat.py b/plotly/validators/layout/ternary/caxis/_tickformat.py index 5c19bf57ae..af43f22cfc 100644 --- a/plotly/validators/layout/ternary/caxis/_tickformat.py +++ b/plotly/validators/layout/ternary/caxis/_tickformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/caxis/_tickformatstopdefaults.py b/plotly/validators/layout/ternary/caxis/_tickformatstopdefaults.py index 42fc6530d9..31fe1db84c 100644 --- a/plotly/validators/layout/ternary/caxis/_tickformatstopdefaults.py +++ b/plotly/validators/layout/ternary/caxis/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/ternary/caxis/_tickformatstops.py b/plotly/validators/layout/ternary/caxis/_tickformatstops.py index 2b0e2415fc..505d9ede7b 100644 --- a/plotly/validators/layout/ternary/caxis/_tickformatstops.py +++ b/plotly/validators/layout/ternary/caxis/_tickformatstops.py @@ -1,53 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/ternary/caxis/_ticklabelstep.py b/plotly/validators/layout/ternary/caxis/_ticklabelstep.py index bbcb7a847a..a0b56bb780 100644 --- a/plotly/validators/layout/ternary/caxis/_ticklabelstep.py +++ b/plotly/validators/layout/ternary/caxis/_ticklabelstep.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/ternary/caxis/_ticklen.py b/plotly/validators/layout/ternary/caxis/_ticklen.py index 0216e825f0..7994636935 100644 --- a/plotly/validators/layout/ternary/caxis/_ticklen.py +++ b/plotly/validators/layout/ternary/caxis/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/ternary/caxis/_tickmode.py b/plotly/validators/layout/ternary/caxis/_tickmode.py index f83c3d1199..ee9505cd76 100644 --- a/plotly/validators/layout/ternary/caxis/_tickmode.py +++ b/plotly/validators/layout/ternary/caxis/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/layout/ternary/caxis/_tickprefix.py b/plotly/validators/layout/ternary/caxis/_tickprefix.py index 1d4ac5e86b..98fbb199d4 100644 --- a/plotly/validators/layout/ternary/caxis/_tickprefix.py +++ b/plotly/validators/layout/ternary/caxis/_tickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/caxis/_ticks.py b/plotly/validators/layout/ternary/caxis/_ticks.py index aaf601c9b8..2934331721 100644 --- a/plotly/validators/layout/ternary/caxis/_ticks.py +++ b/plotly/validators/layout/ternary/caxis/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/layout/ternary/caxis/_ticksuffix.py b/plotly/validators/layout/ternary/caxis/_ticksuffix.py index e842481135..09d34e343c 100644 --- a/plotly/validators/layout/ternary/caxis/_ticksuffix.py +++ b/plotly/validators/layout/ternary/caxis/_ticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/caxis/_ticktext.py b/plotly/validators/layout/ternary/caxis/_ticktext.py index 92f428cfd7..4489f8893a 100644 --- a/plotly/validators/layout/ternary/caxis/_ticktext.py +++ b/plotly/validators/layout/ternary/caxis/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/caxis/_ticktextsrc.py b/plotly/validators/layout/ternary/caxis/_ticktextsrc.py index 5ecdfb7003..fe0de8a1b5 100644 --- a/plotly/validators/layout/ternary/caxis/_ticktextsrc.py +++ b/plotly/validators/layout/ternary/caxis/_ticktextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/caxis/_tickvals.py b/plotly/validators/layout/ternary/caxis/_tickvals.py index 986ff5e397..be6a5972ca 100644 --- a/plotly/validators/layout/ternary/caxis/_tickvals.py +++ b/plotly/validators/layout/ternary/caxis/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/caxis/_tickvalssrc.py b/plotly/validators/layout/ternary/caxis/_tickvalssrc.py index bb08253cfa..af90433240 100644 --- a/plotly/validators/layout/ternary/caxis/_tickvalssrc.py +++ b/plotly/validators/layout/ternary/caxis/_tickvalssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/caxis/_tickwidth.py b/plotly/validators/layout/ternary/caxis/_tickwidth.py index 4e1ecd81e3..a91afa51f6 100644 --- a/plotly/validators/layout/ternary/caxis/_tickwidth.py +++ b/plotly/validators/layout/ternary/caxis/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/ternary/caxis/_title.py b/plotly/validators/layout/ternary/caxis/_title.py index ce6321ecf1..04ed5b61a3 100644 --- a/plotly/validators/layout/ternary/caxis/_title.py +++ b/plotly/validators/layout/ternary/caxis/_title.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/ternary/caxis/_uirevision.py b/plotly/validators/layout/ternary/caxis/_uirevision.py index 830d7e213c..e0ae743842 100644 --- a/plotly/validators/layout/ternary/caxis/_uirevision.py +++ b/plotly/validators/layout/ternary/caxis/_uirevision.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/caxis/tickfont/__init__.py b/plotly/validators/layout/ternary/caxis/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/ternary/caxis/tickfont/__init__.py +++ b/plotly/validators/layout/ternary/caxis/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/ternary/caxis/tickfont/_color.py b/plotly/validators/layout/ternary/caxis/tickfont/_color.py index 81b7dcb546..27e6d03aef 100644 --- a/plotly/validators/layout/ternary/caxis/tickfont/_color.py +++ b/plotly/validators/layout/ternary/caxis/tickfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/caxis/tickfont/_family.py b/plotly/validators/layout/ternary/caxis/tickfont/_family.py index 4b4461e3d3..2e1642094e 100644 --- a/plotly/validators/layout/ternary/caxis/tickfont/_family.py +++ b/plotly/validators/layout/ternary/caxis/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/ternary/caxis/tickfont/_lineposition.py b/plotly/validators/layout/ternary/caxis/tickfont/_lineposition.py index 4961449b6c..f04fa9117c 100644 --- a/plotly/validators/layout/ternary/caxis/tickfont/_lineposition.py +++ b/plotly/validators/layout/ternary/caxis/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/ternary/caxis/tickfont/_shadow.py b/plotly/validators/layout/ternary/caxis/tickfont/_shadow.py index 1b4b69acd8..a79db63fce 100644 --- a/plotly/validators/layout/ternary/caxis/tickfont/_shadow.py +++ b/plotly/validators/layout/ternary/caxis/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/caxis/tickfont/_size.py b/plotly/validators/layout/ternary/caxis/tickfont/_size.py index 8bcddbdd0f..0a278105f5 100644 --- a/plotly/validators/layout/ternary/caxis/tickfont/_size.py +++ b/plotly/validators/layout/ternary/caxis/tickfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/ternary/caxis/tickfont/_style.py b/plotly/validators/layout/ternary/caxis/tickfont/_style.py index 5ded3c244a..0ca14a5389 100644 --- a/plotly/validators/layout/ternary/caxis/tickfont/_style.py +++ b/plotly/validators/layout/ternary/caxis/tickfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/ternary/caxis/tickfont/_textcase.py b/plotly/validators/layout/ternary/caxis/tickfont/_textcase.py index acda7aaaaa..748eb7e4ba 100644 --- a/plotly/validators/layout/ternary/caxis/tickfont/_textcase.py +++ b/plotly/validators/layout/ternary/caxis/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/ternary/caxis/tickfont/_variant.py b/plotly/validators/layout/ternary/caxis/tickfont/_variant.py index fc3e098371..4e8b646a35 100644 --- a/plotly/validators/layout/ternary/caxis/tickfont/_variant.py +++ b/plotly/validators/layout/ternary/caxis/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/ternary/caxis/tickfont/_weight.py b/plotly/validators/layout/ternary/caxis/tickfont/_weight.py index f5bbc61a07..d26b41e4c6 100644 --- a/plotly/validators/layout/ternary/caxis/tickfont/_weight.py +++ b/plotly/validators/layout/ternary/caxis/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/ternary/caxis/tickformatstop/__init__.py b/plotly/validators/layout/ternary/caxis/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/layout/ternary/caxis/tickformatstop/__init__.py +++ b/plotly/validators/layout/ternary/caxis/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/layout/ternary/caxis/tickformatstop/_dtickrange.py b/plotly/validators/layout/ternary/caxis/tickformatstop/_dtickrange.py index 985e7edc3a..a5307cbe12 100644 --- a/plotly/validators/layout/ternary/caxis/tickformatstop/_dtickrange.py +++ b/plotly/validators/layout/ternary/caxis/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/ternary/caxis/tickformatstop/_enabled.py b/plotly/validators/layout/ternary/caxis/tickformatstop/_enabled.py index 1102a0996e..26562df807 100644 --- a/plotly/validators/layout/ternary/caxis/tickformatstop/_enabled.py +++ b/plotly/validators/layout/ternary/caxis/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/caxis/tickformatstop/_name.py b/plotly/validators/layout/ternary/caxis/tickformatstop/_name.py index 3a6ff07406..ddb2063203 100644 --- a/plotly/validators/layout/ternary/caxis/tickformatstop/_name.py +++ b/plotly/validators/layout/ternary/caxis/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/caxis/tickformatstop/_templateitemname.py b/plotly/validators/layout/ternary/caxis/tickformatstop/_templateitemname.py index dc4c665fc9..bd6d80650e 100644 --- a/plotly/validators/layout/ternary/caxis/tickformatstop/_templateitemname.py +++ b/plotly/validators/layout/ternary/caxis/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/caxis/tickformatstop/_value.py b/plotly/validators/layout/ternary/caxis/tickformatstop/_value.py index 80fced51dd..73fb6e4624 100644 --- a/plotly/validators/layout/ternary/caxis/tickformatstop/_value.py +++ b/plotly/validators/layout/ternary/caxis/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/caxis/title/__init__.py b/plotly/validators/layout/ternary/caxis/title/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/layout/ternary/caxis/title/__init__.py +++ b/plotly/validators/layout/ternary/caxis/title/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/layout/ternary/caxis/title/_font.py b/plotly/validators/layout/ternary/caxis/title/_font.py index fb15481211..5fe1bd96b8 100644 --- a/plotly/validators/layout/ternary/caxis/title/_font.py +++ b/plotly/validators/layout/ternary/caxis/title/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/ternary/caxis/title/_text.py b/plotly/validators/layout/ternary/caxis/title/_text.py index 706481313c..17c0d79f3e 100644 --- a/plotly/validators/layout/ternary/caxis/title/_text.py +++ b/plotly/validators/layout/ternary/caxis/title/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/caxis/title/font/__init__.py b/plotly/validators/layout/ternary/caxis/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/ternary/caxis/title/font/__init__.py +++ b/plotly/validators/layout/ternary/caxis/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/ternary/caxis/title/font/_color.py b/plotly/validators/layout/ternary/caxis/title/font/_color.py index cba638198b..82a3c15fd9 100644 --- a/plotly/validators/layout/ternary/caxis/title/font/_color.py +++ b/plotly/validators/layout/ternary/caxis/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/caxis/title/font/_family.py b/plotly/validators/layout/ternary/caxis/title/font/_family.py index 4962500a29..4e372e8479 100644 --- a/plotly/validators/layout/ternary/caxis/title/font/_family.py +++ b/plotly/validators/layout/ternary/caxis/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/ternary/caxis/title/font/_lineposition.py b/plotly/validators/layout/ternary/caxis/title/font/_lineposition.py index 163f871f73..31b9f2d11b 100644 --- a/plotly/validators/layout/ternary/caxis/title/font/_lineposition.py +++ b/plotly/validators/layout/ternary/caxis/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/ternary/caxis/title/font/_shadow.py b/plotly/validators/layout/ternary/caxis/title/font/_shadow.py index 732dd3eda0..d7703c1eaf 100644 --- a/plotly/validators/layout/ternary/caxis/title/font/_shadow.py +++ b/plotly/validators/layout/ternary/caxis/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/ternary/caxis/title/font/_size.py b/plotly/validators/layout/ternary/caxis/title/font/_size.py index a104f3fd7c..8fa7fc422a 100644 --- a/plotly/validators/layout/ternary/caxis/title/font/_size.py +++ b/plotly/validators/layout/ternary/caxis/title/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/ternary/caxis/title/font/_style.py b/plotly/validators/layout/ternary/caxis/title/font/_style.py index af8ea85e86..f599cbdd41 100644 --- a/plotly/validators/layout/ternary/caxis/title/font/_style.py +++ b/plotly/validators/layout/ternary/caxis/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/ternary/caxis/title/font/_textcase.py b/plotly/validators/layout/ternary/caxis/title/font/_textcase.py index 99fb0d1804..c4de5eddde 100644 --- a/plotly/validators/layout/ternary/caxis/title/font/_textcase.py +++ b/plotly/validators/layout/ternary/caxis/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/ternary/caxis/title/font/_variant.py b/plotly/validators/layout/ternary/caxis/title/font/_variant.py index 0db41f3296..ac0ec10cb9 100644 --- a/plotly/validators/layout/ternary/caxis/title/font/_variant.py +++ b/plotly/validators/layout/ternary/caxis/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/ternary/caxis/title/font/_weight.py b/plotly/validators/layout/ternary/caxis/title/font/_weight.py index 4859322250..cced6b6851 100644 --- a/plotly/validators/layout/ternary/caxis/title/font/_weight.py +++ b/plotly/validators/layout/ternary/caxis/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/ternary/domain/__init__.py b/plotly/validators/layout/ternary/domain/__init__.py index 67de5030d0..42827f1d1e 100644 --- a/plotly/validators/layout/ternary/domain/__init__.py +++ b/plotly/validators/layout/ternary/domain/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._y import YValidator - from ._x import XValidator - from ._row import RowValidator - from ._column import ColumnValidator -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [], - [ - "._y.YValidator", - "._x.XValidator", - "._row.RowValidator", - "._column.ColumnValidator", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._y.YValidator", + "._x.XValidator", + "._row.RowValidator", + "._column.ColumnValidator", + ], +) diff --git a/plotly/validators/layout/ternary/domain/_column.py b/plotly/validators/layout/ternary/domain/_column.py index 2a69c44e31..82e67903bc 100644 --- a/plotly/validators/layout/ternary/domain/_column.py +++ b/plotly/validators/layout/ternary/domain/_column.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/ternary/domain/_row.py b/plotly/validators/layout/ternary/domain/_row.py index 2322246b72..56daef62b3 100644 --- a/plotly/validators/layout/ternary/domain/_row.py +++ b/plotly/validators/layout/ternary/domain/_row.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RowValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/ternary/domain/_x.py b/plotly/validators/layout/ternary/domain/_x.py index 2ec412e51d..65167b29b5 100644 --- a/plotly/validators/layout/ternary/domain/_x.py +++ b/plotly/validators/layout/ternary/domain/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/ternary/domain/_y.py b/plotly/validators/layout/ternary/domain/_y.py index 0d45bc53a4..86339152be 100644 --- a/plotly/validators/layout/ternary/domain/_y.py +++ b/plotly/validators/layout/ternary/domain/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/title/__init__.py b/plotly/validators/layout/title/__init__.py index ff0523d680..d5874a9ef9 100644 --- a/plotly/validators/layout/title/__init__.py +++ b/plotly/validators/layout/title/__init__.py @@ -1,35 +1,20 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._text import TextValidator - from ._subtitle import SubtitleValidator - from ._pad import PadValidator - from ._font import FontValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/title/_automargin.py b/plotly/validators/layout/title/_automargin.py index 54acf090f0..ce45c0c1a7 100644 --- a/plotly/validators/layout/title/_automargin.py +++ b/plotly/validators/layout/title/_automargin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutomarginValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/title/_font.py b/plotly/validators/layout/title/_font.py index 748bf7a20d..30fa7a9ff3 100644 --- a/plotly/validators/layout/title/_font.py +++ b/plotly/validators/layout/title/_font.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/title/_pad.py b/plotly/validators/layout/title/_pad.py index 4a2ecbc678..3b0aa7aaa5 100644 --- a/plotly/validators/layout/title/_pad.py +++ b/plotly/validators/layout/title/_pad.py @@ -1,27 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PadValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/title/_subtitle.py b/plotly/validators/layout/title/_subtitle.py index b74d1474cb..21b839aa58 100644 --- a/plotly/validators/layout/title/_subtitle.py +++ b/plotly/validators/layout/title/_subtitle.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SubtitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/title/_text.py b/plotly/validators/layout/title/_text.py index 306c672976..63db50fc41 100644 --- a/plotly/validators/layout/title/_text.py +++ b/plotly/validators/layout/title/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "layoutstyle"), **kwargs, ) diff --git a/plotly/validators/layout/title/_x.py b/plotly/validators/layout/title/_x.py index 72f5e357b8..473e5528f8 100644 --- a/plotly/validators/layout/title/_x.py +++ b/plotly/validators/layout/title/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "layoutstyle"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/title/_xanchor.py b/plotly/validators/layout/title/_xanchor.py index 8d1cd362b5..62c00f7507 100644 --- a/plotly/validators/layout/title/_xanchor.py +++ b/plotly/validators/layout/title/_xanchor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "layoutstyle"), values=kwargs.pop("values", ["auto", "left", "center", "right"]), **kwargs, diff --git a/plotly/validators/layout/title/_xref.py b/plotly/validators/layout/title/_xref.py index e1ce968ed4..68a048c66b 100644 --- a/plotly/validators/layout/title/_xref.py +++ b/plotly/validators/layout/title/_xref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "layoutstyle"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/layout/title/_y.py b/plotly/validators/layout/title/_y.py index 9a184bfae8..299a617a9f 100644 --- a/plotly/validators/layout/title/_y.py +++ b/plotly/validators/layout/title/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "layoutstyle"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/title/_yanchor.py b/plotly/validators/layout/title/_yanchor.py index 3a2e60fd15..939ea1974c 100644 --- a/plotly/validators/layout/title/_yanchor.py +++ b/plotly/validators/layout/title/_yanchor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "layoutstyle"), values=kwargs.pop("values", ["auto", "top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/layout/title/_yref.py b/plotly/validators/layout/title/_yref.py index 3e9523fe0d..87ffff6535 100644 --- a/plotly/validators/layout/title/_yref.py +++ b/plotly/validators/layout/title/_yref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "layoutstyle"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/layout/title/font/__init__.py b/plotly/validators/layout/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/title/font/__init__.py +++ b/plotly/validators/layout/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/title/font/_color.py b/plotly/validators/layout/title/font/_color.py index e5c8c451c1..81678f5f54 100644 --- a/plotly/validators/layout/title/font/_color.py +++ b/plotly/validators/layout/title/font/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "layoutstyle"), **kwargs, ) diff --git a/plotly/validators/layout/title/font/_family.py b/plotly/validators/layout/title/font/_family.py index 33803083d5..c2eb443bb2 100644 --- a/plotly/validators/layout/title/font/_family.py +++ b/plotly/validators/layout/title/font/_family.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "layoutstyle"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/title/font/_lineposition.py b/plotly/validators/layout/title/font/_lineposition.py index bbbbea590f..78cdf3fca8 100644 --- a/plotly/validators/layout/title/font/_lineposition.py +++ b/plotly/validators/layout/title/font/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "layoutstyle"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/title/font/_shadow.py b/plotly/validators/layout/title/font/_shadow.py index 309cddd429..2d7f8a09a3 100644 --- a/plotly/validators/layout/title/font/_shadow.py +++ b/plotly/validators/layout/title/font/_shadow.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "layoutstyle"), **kwargs, ) diff --git a/plotly/validators/layout/title/font/_size.py b/plotly/validators/layout/title/font/_size.py index e53e199f32..0dfb68781a 100644 --- a/plotly/validators/layout/title/font/_size.py +++ b/plotly/validators/layout/title/font/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "layoutstyle"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/title/font/_style.py b/plotly/validators/layout/title/font/_style.py index 881f04c499..9ce68e3957 100644 --- a/plotly/validators/layout/title/font/_style.py +++ b/plotly/validators/layout/title/font/_style.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "layoutstyle"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/title/font/_textcase.py b/plotly/validators/layout/title/font/_textcase.py index 2d01a361eb..c7f4044819 100644 --- a/plotly/validators/layout/title/font/_textcase.py +++ b/plotly/validators/layout/title/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "layoutstyle"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/title/font/_variant.py b/plotly/validators/layout/title/font/_variant.py index 0aab05197a..72d2092c49 100644 --- a/plotly/validators/layout/title/font/_variant.py +++ b/plotly/validators/layout/title/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "layoutstyle"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/title/font/_weight.py b/plotly/validators/layout/title/font/_weight.py index 4a05d3ac7a..4804774d5f 100644 --- a/plotly/validators/layout/title/font/_weight.py +++ b/plotly/validators/layout/title/font/_weight.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "layoutstyle"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/title/pad/__init__.py b/plotly/validators/layout/title/pad/__init__.py index 04e64dbc5e..4189bfbe1f 100644 --- a/plotly/validators/layout/title/pad/__init__.py +++ b/plotly/validators/layout/title/pad/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._t import TValidator - from ._r import RValidator - from ._l import LValidator - 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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._t.TValidator", "._r.RValidator", "._l.LValidator", "._b.BValidator"], +) diff --git a/plotly/validators/layout/title/pad/_b.py b/plotly/validators/layout/title/pad/_b.py index fff09d801b..8451062962 100644 --- a/plotly/validators/layout/title/pad/_b.py +++ b/plotly/validators/layout/title/pad/_b.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "layoutstyle"), **kwargs, ) diff --git a/plotly/validators/layout/title/pad/_l.py b/plotly/validators/layout/title/pad/_l.py index 75a1a7e2ad..23df91c358 100644 --- a/plotly/validators/layout/title/pad/_l.py +++ b/plotly/validators/layout/title/pad/_l.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "layoutstyle"), **kwargs, ) diff --git a/plotly/validators/layout/title/pad/_r.py b/plotly/validators/layout/title/pad/_r.py index afa1a1fe5e..c79e88ed80 100644 --- a/plotly/validators/layout/title/pad/_r.py +++ b/plotly/validators/layout/title/pad/_r.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "layoutstyle"), **kwargs, ) diff --git a/plotly/validators/layout/title/pad/_t.py b/plotly/validators/layout/title/pad/_t.py index 53a3f666e4..9b45994c39 100644 --- a/plotly/validators/layout/title/pad/_t.py +++ b/plotly/validators/layout/title/pad/_t.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "layoutstyle"), **kwargs, ) diff --git a/plotly/validators/layout/title/subtitle/__init__.py b/plotly/validators/layout/title/subtitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/layout/title/subtitle/__init__.py +++ b/plotly/validators/layout/title/subtitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/layout/title/subtitle/_font.py b/plotly/validators/layout/title/subtitle/_font.py index 7c6da318c8..9c46883636 100644 --- a/plotly/validators/layout/title/subtitle/_font.py +++ b/plotly/validators/layout/title/subtitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/title/subtitle/_text.py b/plotly/validators/layout/title/subtitle/_text.py index 9b10ca7c2a..476e8a8bfd 100644 --- a/plotly/validators/layout/title/subtitle/_text.py +++ b/plotly/validators/layout/title/subtitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "layoutstyle"), **kwargs, ) diff --git a/plotly/validators/layout/title/subtitle/font/__init__.py b/plotly/validators/layout/title/subtitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/title/subtitle/font/__init__.py +++ b/plotly/validators/layout/title/subtitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/title/subtitle/font/_color.py b/plotly/validators/layout/title/subtitle/font/_color.py index 60e321f2e9..e981c7a754 100644 --- a/plotly/validators/layout/title/subtitle/font/_color.py +++ b/plotly/validators/layout/title/subtitle/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "layoutstyle"), **kwargs, ) diff --git a/plotly/validators/layout/title/subtitle/font/_family.py b/plotly/validators/layout/title/subtitle/font/_family.py index a5ce0803f2..b4ba9a5187 100644 --- a/plotly/validators/layout/title/subtitle/font/_family.py +++ b/plotly/validators/layout/title/subtitle/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "layoutstyle"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/title/subtitle/font/_lineposition.py b/plotly/validators/layout/title/subtitle/font/_lineposition.py index ec92d350f1..1232cc0b85 100644 --- a/plotly/validators/layout/title/subtitle/font/_lineposition.py +++ b/plotly/validators/layout/title/subtitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "layoutstyle"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/title/subtitle/font/_shadow.py b/plotly/validators/layout/title/subtitle/font/_shadow.py index 4587620448..cb3af1c594 100644 --- a/plotly/validators/layout/title/subtitle/font/_shadow.py +++ b/plotly/validators/layout/title/subtitle/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "layoutstyle"), **kwargs, ) diff --git a/plotly/validators/layout/title/subtitle/font/_size.py b/plotly/validators/layout/title/subtitle/font/_size.py index a43ed1d68c..67699435f4 100644 --- a/plotly/validators/layout/title/subtitle/font/_size.py +++ b/plotly/validators/layout/title/subtitle/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "layoutstyle"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/title/subtitle/font/_style.py b/plotly/validators/layout/title/subtitle/font/_style.py index 7515f8df6f..642a8b9eb4 100644 --- a/plotly/validators/layout/title/subtitle/font/_style.py +++ b/plotly/validators/layout/title/subtitle/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "layoutstyle"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/title/subtitle/font/_textcase.py b/plotly/validators/layout/title/subtitle/font/_textcase.py index e857836cf1..3b50acb7b0 100644 --- a/plotly/validators/layout/title/subtitle/font/_textcase.py +++ b/plotly/validators/layout/title/subtitle/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "layoutstyle"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/title/subtitle/font/_variant.py b/plotly/validators/layout/title/subtitle/font/_variant.py index 5ae59c2fc6..05cdc600e8 100644 --- a/plotly/validators/layout/title/subtitle/font/_variant.py +++ b/plotly/validators/layout/title/subtitle/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "layoutstyle"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/title/subtitle/font/_weight.py b/plotly/validators/layout/title/subtitle/font/_weight.py index dfc8934c05..2e7f1e47ca 100644 --- a/plotly/validators/layout/title/subtitle/font/_weight.py +++ b/plotly/validators/layout/title/subtitle/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "layoutstyle"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/transition/__init__.py b/plotly/validators/layout/transition/__init__.py index 07de6dadaf..df8f606b1b 100644 --- a/plotly/validators/layout/transition/__init__.py +++ b/plotly/validators/layout/transition/__init__.py @@ -1,19 +1,12 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._ordering.OrderingValidator", + "._easing.EasingValidator", + "._duration.DurationValidator", + ], +) diff --git a/plotly/validators/layout/transition/_duration.py b/plotly/validators/layout/transition/_duration.py index 7c46ce987f..0b4d9afa16 100644 --- a/plotly/validators/layout/transition/_duration.py +++ b/plotly/validators/layout/transition/_duration.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DurationValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/transition/_easing.py b/plotly/validators/layout/transition/_easing.py index ccad9edea2..f27509f554 100644 --- a/plotly/validators/layout/transition/_easing.py +++ b/plotly/validators/layout/transition/_easing.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EasingValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/transition/_ordering.py b/plotly/validators/layout/transition/_ordering.py index c2bac1855c..fed2168e3b 100644 --- a/plotly/validators/layout/transition/_ordering.py +++ b/plotly/validators/layout/transition/_ordering.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrderingValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["layout first", "traces first"]), **kwargs, diff --git a/plotly/validators/layout/uniformtext/__init__.py b/plotly/validators/layout/uniformtext/__init__.py index 8ddff597fe..b6bb5dfdb9 100644 --- a/plotly/validators/layout/uniformtext/__init__.py +++ b/plotly/validators/layout/uniformtext/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._mode.ModeValidator", "._minsize.MinsizeValidator"] +) diff --git a/plotly/validators/layout/uniformtext/_minsize.py b/plotly/validators/layout/uniformtext/_minsize.py index 69c37d3552..d57815f912 100644 --- a/plotly/validators/layout/uniformtext/_minsize.py +++ b/plotly/validators/layout/uniformtext/_minsize.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinsizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/uniformtext/_mode.py b/plotly/validators/layout/uniformtext/_mode.py index 85b70ef082..6e552457cb 100644 --- a/plotly/validators/layout/uniformtext/_mode.py +++ b/plotly/validators/layout/uniformtext/_mode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ModeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", [False, "hide", "show"]), **kwargs, diff --git a/plotly/validators/layout/updatemenu/__init__.py b/plotly/validators/layout/updatemenu/__init__.py index cedac6271e..4136881a29 100644 --- a/plotly/validators/layout/updatemenu/__init__.py +++ b/plotly/validators/layout/updatemenu/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._visible import VisibleValidator - from ._type import TypeValidator - from ._templateitemname import TemplateitemnameValidator - from ._showactive import ShowactiveValidator - from ._pad import PadValidator - from ._name import NameValidator - from ._font import FontValidator - from ._direction import DirectionValidator - from ._buttondefaults import ButtondefaultsValidator - from ._buttons import ButtonsValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - from ._bgcolor import BgcolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/updatemenu/_active.py b/plotly/validators/layout/updatemenu/_active.py index 8bca3ec41e..3a49763adb 100644 --- a/plotly/validators/layout/updatemenu/_active.py +++ b/plotly/validators/layout/updatemenu/_active.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ActiveValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), min=kwargs.pop("min", -1), **kwargs, diff --git a/plotly/validators/layout/updatemenu/_bgcolor.py b/plotly/validators/layout/updatemenu/_bgcolor.py index 3344dbb1b7..6be6b1b1ec 100644 --- a/plotly/validators/layout/updatemenu/_bgcolor.py +++ b/plotly/validators/layout/updatemenu/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/updatemenu/_bordercolor.py b/plotly/validators/layout/updatemenu/_bordercolor.py index 97bdb33b75..878a10ad2d 100644 --- a/plotly/validators/layout/updatemenu/_bordercolor.py +++ b/plotly/validators/layout/updatemenu/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/updatemenu/_borderwidth.py b/plotly/validators/layout/updatemenu/_borderwidth.py index 11e0852edc..51633f31d4 100644 --- a/plotly/validators/layout/updatemenu/_borderwidth.py +++ b/plotly/validators/layout/updatemenu/_borderwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/updatemenu/_buttondefaults.py b/plotly/validators/layout/updatemenu/_buttondefaults.py index fe7839c756..eae8258491 100644 --- a/plotly/validators/layout/updatemenu/_buttondefaults.py +++ b/plotly/validators/layout/updatemenu/_buttondefaults.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ButtondefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Button"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/updatemenu/_buttons.py b/plotly/validators/layout/updatemenu/_buttons.py index 6f2e43ff41..3133dc84f4 100644 --- a/plotly/validators/layout/updatemenu/_buttons.py +++ b/plotly/validators/layout/updatemenu/_buttons.py @@ -1,70 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ButtonsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/updatemenu/_direction.py b/plotly/validators/layout/updatemenu/_direction.py index c1a469b5c5..2bad7efd81 100644 --- a/plotly/validators/layout/updatemenu/_direction.py +++ b/plotly/validators/layout/updatemenu/_direction.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DirectionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop("values", ["left", "right", "up", "down"]), **kwargs, diff --git a/plotly/validators/layout/updatemenu/_font.py b/plotly/validators/layout/updatemenu/_font.py index 54980bf31c..bf6677bff4 100644 --- a/plotly/validators/layout/updatemenu/_font.py +++ b/plotly/validators/layout/updatemenu/_font.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/updatemenu/_name.py b/plotly/validators/layout/updatemenu/_name.py index 7564825f1c..76737050d9 100644 --- a/plotly/validators/layout/updatemenu/_name.py +++ b/plotly/validators/layout/updatemenu/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/updatemenu/_pad.py b/plotly/validators/layout/updatemenu/_pad.py index 35ab1f298b..f8fff68cfc 100644 --- a/plotly/validators/layout/updatemenu/_pad.py +++ b/plotly/validators/layout/updatemenu/_pad.py @@ -1,27 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PadValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/updatemenu/_showactive.py b/plotly/validators/layout/updatemenu/_showactive.py index baa47a0516..e2cdf5fe1c 100644 --- a/plotly/validators/layout/updatemenu/_showactive.py +++ b/plotly/validators/layout/updatemenu/_showactive.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowactiveValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/updatemenu/_templateitemname.py b/plotly/validators/layout/updatemenu/_templateitemname.py index b0358faa4c..0e68d85e9e 100644 --- a/plotly/validators/layout/updatemenu/_templateitemname.py +++ b/plotly/validators/layout/updatemenu/_templateitemname.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/updatemenu/_type.py b/plotly/validators/layout/updatemenu/_type.py index a6716a7d64..2bca80f6d0 100644 --- a/plotly/validators/layout/updatemenu/_type.py +++ b/plotly/validators/layout/updatemenu/_type.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop("values", ["dropdown", "buttons"]), **kwargs, diff --git a/plotly/validators/layout/updatemenu/_visible.py b/plotly/validators/layout/updatemenu/_visible.py index d225cbf117..98a63d64a3 100644 --- a/plotly/validators/layout/updatemenu/_visible.py +++ b/plotly/validators/layout/updatemenu/_visible.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/updatemenu/_x.py b/plotly/validators/layout/updatemenu/_x.py index bc619b4f3f..0bd1d76cd3 100644 --- a/plotly/validators/layout/updatemenu/_x.py +++ b/plotly/validators/layout/updatemenu/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), max=kwargs.pop("max", 3), min=kwargs.pop("min", -2), diff --git a/plotly/validators/layout/updatemenu/_xanchor.py b/plotly/validators/layout/updatemenu/_xanchor.py index 3bd91bff1a..23138d0465 100644 --- a/plotly/validators/layout/updatemenu/_xanchor.py +++ b/plotly/validators/layout/updatemenu/_xanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop("values", ["auto", "left", "center", "right"]), **kwargs, diff --git a/plotly/validators/layout/updatemenu/_y.py b/plotly/validators/layout/updatemenu/_y.py index 3d0d153064..dc13343b44 100644 --- a/plotly/validators/layout/updatemenu/_y.py +++ b/plotly/validators/layout/updatemenu/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), max=kwargs.pop("max", 3), min=kwargs.pop("min", -2), diff --git a/plotly/validators/layout/updatemenu/_yanchor.py b/plotly/validators/layout/updatemenu/_yanchor.py index 97a132c982..a28d4cfebd 100644 --- a/plotly/validators/layout/updatemenu/_yanchor.py +++ b/plotly/validators/layout/updatemenu/_yanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop("values", ["auto", "top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/layout/updatemenu/button/__init__.py b/plotly/validators/layout/updatemenu/button/__init__.py index e0a90a88c0..de38de558a 100644 --- a/plotly/validators/layout/updatemenu/button/__init__.py +++ b/plotly/validators/layout/updatemenu/button/__init__.py @@ -1,29 +1,17 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._visible import VisibleValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._method import MethodValidator - from ._label import LabelValidator - from ._execute import ExecuteValidator - from ._args2 import Args2Validator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._visible.VisibleValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._method.MethodValidator", + "._label.LabelValidator", + "._execute.ExecuteValidator", + "._args2.Args2Validator", + "._args.ArgsValidator", + ], +) diff --git a/plotly/validators/layout/updatemenu/button/_args.py b/plotly/validators/layout/updatemenu/button/_args.py index 2fc9ff2adb..1ac72f4506 100644 --- a/plotly/validators/layout/updatemenu/button/_args.py +++ b/plotly/validators/layout/updatemenu/button/_args.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArgsValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), free_length=kwargs.pop("free_length", True), items=kwargs.pop( diff --git a/plotly/validators/layout/updatemenu/button/_args2.py b/plotly/validators/layout/updatemenu/button/_args2.py index eaae9d8a9e..c30270eb8e 100644 --- a/plotly/validators/layout/updatemenu/button/_args2.py +++ b/plotly/validators/layout/updatemenu/button/_args2.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Args2Validator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), free_length=kwargs.pop("free_length", True), items=kwargs.pop( diff --git a/plotly/validators/layout/updatemenu/button/_execute.py b/plotly/validators/layout/updatemenu/button/_execute.py index 67b6bdf886..d3f6933614 100644 --- a/plotly/validators/layout/updatemenu/button/_execute.py +++ b/plotly/validators/layout/updatemenu/button/_execute.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExecuteValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/updatemenu/button/_label.py b/plotly/validators/layout/updatemenu/button/_label.py index 29fc32253f..a2afaf9c81 100644 --- a/plotly/validators/layout/updatemenu/button/_label.py +++ b/plotly/validators/layout/updatemenu/button/_label.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/updatemenu/button/_method.py b/plotly/validators/layout/updatemenu/button/_method.py index b1d7c69e8b..b0acb74bfc 100644 --- a/plotly/validators/layout/updatemenu/button/_method.py +++ b/plotly/validators/layout/updatemenu/button/_method.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MethodValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop( "values", ["restyle", "relayout", "animate", "update", "skip"] diff --git a/plotly/validators/layout/updatemenu/button/_name.py b/plotly/validators/layout/updatemenu/button/_name.py index ecd6c0f05b..0039d9bc75 100644 --- a/plotly/validators/layout/updatemenu/button/_name.py +++ b/plotly/validators/layout/updatemenu/button/_name.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/updatemenu/button/_templateitemname.py b/plotly/validators/layout/updatemenu/button/_templateitemname.py index 7e6485fb2d..7bde1e1aff 100644 --- a/plotly/validators/layout/updatemenu/button/_templateitemname.py +++ b/plotly/validators/layout/updatemenu/button/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/updatemenu/button/_visible.py b/plotly/validators/layout/updatemenu/button/_visible.py index 0f6fd75ab3..3dd830ff37 100644 --- a/plotly/validators/layout/updatemenu/button/_visible.py +++ b/plotly/validators/layout/updatemenu/button/_visible.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/updatemenu/font/__init__.py b/plotly/validators/layout/updatemenu/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/updatemenu/font/__init__.py +++ b/plotly/validators/layout/updatemenu/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/updatemenu/font/_color.py b/plotly/validators/layout/updatemenu/font/_color.py index e8f47add9e..58c55d3f83 100644 --- a/plotly/validators/layout/updatemenu/font/_color.py +++ b/plotly/validators/layout/updatemenu/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/updatemenu/font/_family.py b/plotly/validators/layout/updatemenu/font/_family.py index 764f844997..15421e727f 100644 --- a/plotly/validators/layout/updatemenu/font/_family.py +++ b/plotly/validators/layout/updatemenu/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/updatemenu/font/_lineposition.py b/plotly/validators/layout/updatemenu/font/_lineposition.py index 4cb5e3b5f9..5908204086 100644 --- a/plotly/validators/layout/updatemenu/font/_lineposition.py +++ b/plotly/validators/layout/updatemenu/font/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/updatemenu/font/_shadow.py b/plotly/validators/layout/updatemenu/font/_shadow.py index 396b59fa41..fbf750f32b 100644 --- a/plotly/validators/layout/updatemenu/font/_shadow.py +++ b/plotly/validators/layout/updatemenu/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/updatemenu/font/_size.py b/plotly/validators/layout/updatemenu/font/_size.py index bc266124c2..1367d2e1a5 100644 --- a/plotly/validators/layout/updatemenu/font/_size.py +++ b/plotly/validators/layout/updatemenu/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/updatemenu/font/_style.py b/plotly/validators/layout/updatemenu/font/_style.py index 4e8ee7939a..fff5f65f0f 100644 --- a/plotly/validators/layout/updatemenu/font/_style.py +++ b/plotly/validators/layout/updatemenu/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/updatemenu/font/_textcase.py b/plotly/validators/layout/updatemenu/font/_textcase.py index 3045b5de85..31363f6927 100644 --- a/plotly/validators/layout/updatemenu/font/_textcase.py +++ b/plotly/validators/layout/updatemenu/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/updatemenu/font/_variant.py b/plotly/validators/layout/updatemenu/font/_variant.py index f7721474f0..955ed12e67 100644 --- a/plotly/validators/layout/updatemenu/font/_variant.py +++ b/plotly/validators/layout/updatemenu/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/updatemenu/font/_weight.py b/plotly/validators/layout/updatemenu/font/_weight.py index 4eba499598..026018e843 100644 --- a/plotly/validators/layout/updatemenu/font/_weight.py +++ b/plotly/validators/layout/updatemenu/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/updatemenu/pad/__init__.py b/plotly/validators/layout/updatemenu/pad/__init__.py index 04e64dbc5e..4189bfbe1f 100644 --- a/plotly/validators/layout/updatemenu/pad/__init__.py +++ b/plotly/validators/layout/updatemenu/pad/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._t import TValidator - from ._r import RValidator - from ._l import LValidator - 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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._t.TValidator", "._r.RValidator", "._l.LValidator", "._b.BValidator"], +) diff --git a/plotly/validators/layout/updatemenu/pad/_b.py b/plotly/validators/layout/updatemenu/pad/_b.py index 3c45fd96c4..d9bf03e1b7 100644 --- a/plotly/validators/layout/updatemenu/pad/_b.py +++ b/plotly/validators/layout/updatemenu/pad/_b.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/updatemenu/pad/_l.py b/plotly/validators/layout/updatemenu/pad/_l.py index ec9dc3d151..1cde4eee11 100644 --- a/plotly/validators/layout/updatemenu/pad/_l.py +++ b/plotly/validators/layout/updatemenu/pad/_l.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/updatemenu/pad/_r.py b/plotly/validators/layout/updatemenu/pad/_r.py index d0a68cd52a..1b355df152 100644 --- a/plotly/validators/layout/updatemenu/pad/_r.py +++ b/plotly/validators/layout/updatemenu/pad/_r.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/updatemenu/pad/_t.py b/plotly/validators/layout/updatemenu/pad/_t.py index 7b32734bad..ce15fe1ab7 100644 --- a/plotly/validators/layout/updatemenu/pad/_t.py +++ b/plotly/validators/layout/updatemenu/pad/_t.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "arraydraw"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/__init__.py b/plotly/validators/layout/xaxis/__init__.py index be5a049045..ce48cf9b14 100644 --- a/plotly/validators/layout/xaxis/__init__.py +++ b/plotly/validators/layout/xaxis/__init__.py @@ -1,199 +1,102 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zerolinewidth import ZerolinewidthValidator - from ._zerolinecolor import ZerolinecolorValidator - from ._zeroline import ZerolineValidator - from ._visible import VisibleValidator - from ._uirevision import UirevisionValidator - from ._type import TypeValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._tickson import TicksonValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelstandoff import TicklabelstandoffValidator - from ._ticklabelshift import TicklabelshiftValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._ticklabelmode import TicklabelmodeValidator - from ._ticklabelindexsrc import TicklabelindexsrcValidator - from ._ticklabelindex import TicklabelindexValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._spikethickness import SpikethicknessValidator - from ._spikesnap import SpikesnapValidator - from ._spikemode import SpikemodeValidator - from ._spikedash import SpikedashValidator - from ._spikecolor import SpikecolorValidator - from ._side import SideValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showspikes import ShowspikesValidator - from ._showline import ShowlineValidator - from ._showgrid import ShowgridValidator - from ._showexponent import ShowexponentValidator - from ._showdividers import ShowdividersValidator - from ._separatethousands import SeparatethousandsValidator - from ._scaleratio import ScaleratioValidator - from ._scaleanchor import ScaleanchorValidator - from ._rangeslider import RangesliderValidator - from ._rangeselector import RangeselectorValidator - from ._rangemode import RangemodeValidator - from ._rangebreakdefaults import RangebreakdefaultsValidator - from ._rangebreaks import RangebreaksValidator - from ._range import RangeValidator - from ._position import PositionValidator - from ._overlaying import OverlayingValidator - from ._nticks import NticksValidator - from ._mirror import MirrorValidator - from ._minor import MinorValidator - from ._minexponent import MinexponentValidator - from ._minallowed import MinallowedValidator - from ._maxallowed import MaxallowedValidator - from ._matches import MatchesValidator - from ._linewidth import LinewidthValidator - from ._linecolor import LinecolorValidator - from ._layer import LayerValidator - from ._labelalias import LabelaliasValidator - from ._insiderange import InsiderangeValidator - from ._hoverformat import HoverformatValidator - from ._gridwidth import GridwidthValidator - from ._griddash import GriddashValidator - from ._gridcolor import GridcolorValidator - from ._fixedrange import FixedrangeValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._domain import DomainValidator - from ._dividerwidth import DividerwidthValidator - from ._dividercolor import DividercolorValidator - from ._constraintoward import ConstraintowardValidator - from ._constrain import ConstrainValidator - from ._color import ColorValidator - from ._categoryorder import CategoryorderValidator - from ._categoryarraysrc import CategoryarraysrcValidator - from ._categoryarray import CategoryarrayValidator - from ._calendar import CalendarValidator - from ._autotypenumbers import AutotypenumbersValidator - from ._autotickangles import AutotickanglesValidator - from ._autorangeoptions import AutorangeoptionsValidator - from ._autorange import AutorangeValidator - from ._automargin import AutomarginValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/xaxis/_anchor.py b/plotly/validators/layout/xaxis/_anchor.py index 00a1af05f8..70a754bb4c 100644 --- a/plotly/validators/layout/xaxis/_anchor.py +++ b/plotly/validators/layout/xaxis/_anchor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AnchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/xaxis/_automargin.py b/plotly/validators/layout/xaxis/_automargin.py index 1cd1a65657..51b427aaaa 100644 --- a/plotly/validators/layout/xaxis/_automargin.py +++ b/plotly/validators/layout/xaxis/_automargin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutomarginValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), extras=kwargs.pop("extras", [True, False]), flags=kwargs.pop( diff --git a/plotly/validators/layout/xaxis/_autorange.py b/plotly/validators/layout/xaxis/_autorange.py index c703dee9e6..3ca85ec84e 100644 --- a/plotly/validators/layout/xaxis/_autorange.py +++ b/plotly/validators/layout/xaxis/_autorange.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutorangeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "axrange"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop( diff --git a/plotly/validators/layout/xaxis/_autorangeoptions.py b/plotly/validators/layout/xaxis/_autorangeoptions.py index 08d6a22712..e23e96f00e 100644 --- a/plotly/validators/layout/xaxis/_autorangeoptions.py +++ b/plotly/validators/layout/xaxis/_autorangeoptions.py @@ -1,34 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutorangeoptionsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/xaxis/_autotickangles.py b/plotly/validators/layout/xaxis/_autotickangles.py index 6162a92720..9765f1f69a 100644 --- a/plotly/validators/layout/xaxis/_autotickangles.py +++ b/plotly/validators/layout/xaxis/_autotickangles.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutotickanglesValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), free_length=kwargs.pop("free_length", True), items=kwargs.pop("items", {"valType": "angle"}), diff --git a/plotly/validators/layout/xaxis/_autotypenumbers.py b/plotly/validators/layout/xaxis/_autotypenumbers.py index 5862fc718f..d6bf2c3b79 100644 --- a/plotly/validators/layout/xaxis/_autotypenumbers.py +++ b/plotly/validators/layout/xaxis/_autotypenumbers.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutotypenumbersValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["convert types", "strict"]), **kwargs, diff --git a/plotly/validators/layout/xaxis/_calendar.py b/plotly/validators/layout/xaxis/_calendar.py index c4fbd69258..85ddf3da5f 100644 --- a/plotly/validators/layout/xaxis/_calendar.py +++ b/plotly/validators/layout/xaxis/_calendar.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/xaxis/_categoryarray.py b/plotly/validators/layout/xaxis/_categoryarray.py index 5aa4088c1c..148031b97a 100644 --- a/plotly/validators/layout/xaxis/_categoryarray.py +++ b/plotly/validators/layout/xaxis/_categoryarray.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CategoryarrayValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/_categoryarraysrc.py b/plotly/validators/layout/xaxis/_categoryarraysrc.py index c7c6d8c06b..a9223e1fd8 100644 --- a/plotly/validators/layout/xaxis/_categoryarraysrc.py +++ b/plotly/validators/layout/xaxis/_categoryarraysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CategoryarraysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/_categoryorder.py b/plotly/validators/layout/xaxis/_categoryorder.py index c914afc6f4..3de30f50c7 100644 --- a/plotly/validators/layout/xaxis/_categoryorder.py +++ b/plotly/validators/layout/xaxis/_categoryorder.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CategoryorderValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/xaxis/_color.py b/plotly/validators/layout/xaxis/_color.py index 69f981c130..7aaf53fbf7 100644 --- a/plotly/validators/layout/xaxis/_color.py +++ b/plotly/validators/layout/xaxis/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/_constrain.py b/plotly/validators/layout/xaxis/_constrain.py index f8bab252bd..41fd422952 100644 --- a/plotly/validators/layout/xaxis/_constrain.py +++ b/plotly/validators/layout/xaxis/_constrain.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ConstrainValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["range", "domain"]), **kwargs, diff --git a/plotly/validators/layout/xaxis/_constraintoward.py b/plotly/validators/layout/xaxis/_constraintoward.py index 30cb202148..2bf1e56195 100644 --- a/plotly/validators/layout/xaxis/_constraintoward.py +++ b/plotly/validators/layout/xaxis/_constraintoward.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ConstraintowardValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", ["left", "center", "right", "top", "middle", "bottom"] diff --git a/plotly/validators/layout/xaxis/_dividercolor.py b/plotly/validators/layout/xaxis/_dividercolor.py index 3a828151e9..e8196d13a6 100644 --- a/plotly/validators/layout/xaxis/_dividercolor.py +++ b/plotly/validators/layout/xaxis/_dividercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DividercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/_dividerwidth.py b/plotly/validators/layout/xaxis/_dividerwidth.py index 081e530ef4..f6fd01e228 100644 --- a/plotly/validators/layout/xaxis/_dividerwidth.py +++ b/plotly/validators/layout/xaxis/_dividerwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DividerwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/_domain.py b/plotly/validators/layout/xaxis/_domain.py index ba770de97f..9543e487f9 100644 --- a/plotly/validators/layout/xaxis/_domain.py +++ b/plotly/validators/layout/xaxis/_domain.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DomainValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/xaxis/_dtick.py b/plotly/validators/layout/xaxis/_dtick.py index ae40ad3aef..27af6a189e 100644 --- a/plotly/validators/layout/xaxis/_dtick.py +++ b/plotly/validators/layout/xaxis/_dtick.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/layout/xaxis/_exponentformat.py b/plotly/validators/layout/xaxis/_exponentformat.py index 6b460fe80e..8d3fb7a991 100644 --- a/plotly/validators/layout/xaxis/_exponentformat.py +++ b/plotly/validators/layout/xaxis/_exponentformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/layout/xaxis/_fixedrange.py b/plotly/validators/layout/xaxis/_fixedrange.py index 41f2a3adda..e26460f0b2 100644 --- a/plotly/validators/layout/xaxis/_fixedrange.py +++ b/plotly/validators/layout/xaxis/_fixedrange.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FixedrangeValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/_gridcolor.py b/plotly/validators/layout/xaxis/_gridcolor.py index c1b4110e11..e81297b43d 100644 --- a/plotly/validators/layout/xaxis/_gridcolor.py +++ b/plotly/validators/layout/xaxis/_gridcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/_griddash.py b/plotly/validators/layout/xaxis/_griddash.py index db0cb6e991..d4aa6f6254 100644 --- a/plotly/validators/layout/xaxis/_griddash.py +++ b/plotly/validators/layout/xaxis/_griddash.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GriddashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/layout/xaxis/_gridwidth.py b/plotly/validators/layout/xaxis/_gridwidth.py index 5ca0e2299d..aca5e511df 100644 --- a/plotly/validators/layout/xaxis/_gridwidth.py +++ b/plotly/validators/layout/xaxis/_gridwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/xaxis/_hoverformat.py b/plotly/validators/layout/xaxis/_hoverformat.py index 4bbc9ec44a..94b9b105c0 100644 --- a/plotly/validators/layout/xaxis/_hoverformat.py +++ b/plotly/validators/layout/xaxis/_hoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/_insiderange.py b/plotly/validators/layout/xaxis/_insiderange.py index ef193da2e1..00cf037657 100644 --- a/plotly/validators/layout/xaxis/_insiderange.py +++ b/plotly/validators/layout/xaxis/_insiderange.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class InsiderangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/xaxis/_labelalias.py b/plotly/validators/layout/xaxis/_labelalias.py index 57fdd4dafb..463bd86bf9 100644 --- a/plotly/validators/layout/xaxis/_labelalias.py +++ b/plotly/validators/layout/xaxis/_labelalias.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/_layer.py b/plotly/validators/layout/xaxis/_layer.py index ae2f8e0794..07e117c645 100644 --- a/plotly/validators/layout/xaxis/_layer.py +++ b/plotly/validators/layout/xaxis/_layer.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LayerValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["above traces", "below traces"]), **kwargs, diff --git a/plotly/validators/layout/xaxis/_linecolor.py b/plotly/validators/layout/xaxis/_linecolor.py index b802392202..9ca6cfea5e 100644 --- a/plotly/validators/layout/xaxis/_linecolor.py +++ b/plotly/validators/layout/xaxis/_linecolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "layoutstyle"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/_linewidth.py b/plotly/validators/layout/xaxis/_linewidth.py index f4c6542863..8318eedac2 100644 --- a/plotly/validators/layout/xaxis/_linewidth.py +++ b/plotly/validators/layout/xaxis/_linewidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks+layoutstyle"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/xaxis/_matches.py b/plotly/validators/layout/xaxis/_matches.py index 2add8daf21..b399c9bfe6 100644 --- a/plotly/validators/layout/xaxis/_matches.py +++ b/plotly/validators/layout/xaxis/_matches.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MatchesValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/xaxis/_maxallowed.py b/plotly/validators/layout/xaxis/_maxallowed.py index 4f824b8248..b821db2d6d 100644 --- a/plotly/validators/layout/xaxis/_maxallowed.py +++ b/plotly/validators/layout/xaxis/_maxallowed.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxallowedValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"^autorange": False}), **kwargs, diff --git a/plotly/validators/layout/xaxis/_minallowed.py b/plotly/validators/layout/xaxis/_minallowed.py index ef05c31304..b587c0cc3e 100644 --- a/plotly/validators/layout/xaxis/_minallowed.py +++ b/plotly/validators/layout/xaxis/_minallowed.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinallowedValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"^autorange": False}), **kwargs, diff --git a/plotly/validators/layout/xaxis/_minexponent.py b/plotly/validators/layout/xaxis/_minexponent.py index 780cb19030..9fb50c4f32 100644 --- a/plotly/validators/layout/xaxis/_minexponent.py +++ b/plotly/validators/layout/xaxis/_minexponent.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/xaxis/_minor.py b/plotly/validators/layout/xaxis/_minor.py index 5fdb4da1d5..b488b7a26e 100644 --- a/plotly/validators/layout/xaxis/_minor.py +++ b/plotly/validators/layout/xaxis/_minor.py @@ -1,103 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinorValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/xaxis/_mirror.py b/plotly/validators/layout/xaxis/_mirror.py index 892e576cb1..2f0b6d578b 100644 --- a/plotly/validators/layout/xaxis/_mirror.py +++ b/plotly/validators/layout/xaxis/_mirror.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MirrorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks+layoutstyle"), values=kwargs.pop("values", [True, "ticks", False, "all", "allticks"]), **kwargs, diff --git a/plotly/validators/layout/xaxis/_nticks.py b/plotly/validators/layout/xaxis/_nticks.py index 6cb18239e2..0586c56bf1 100644 --- a/plotly/validators/layout/xaxis/_nticks.py +++ b/plotly/validators/layout/xaxis/_nticks.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/xaxis/_overlaying.py b/plotly/validators/layout/xaxis/_overlaying.py index fc009e719b..42cdf374ef 100644 --- a/plotly/validators/layout/xaxis/_overlaying.py +++ b/plotly/validators/layout/xaxis/_overlaying.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OverlayingValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/xaxis/_position.py b/plotly/validators/layout/xaxis/_position.py index 87072a3cc7..b16ba219db 100644 --- a/plotly/validators/layout/xaxis/_position.py +++ b/plotly/validators/layout/xaxis/_position.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PositionValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/xaxis/_range.py b/plotly/validators/layout/xaxis/_range.py index cf7e4d0156..69d33cef97 100644 --- a/plotly/validators/layout/xaxis/_range.py +++ b/plotly/validators/layout/xaxis/_range.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "axrange"), implied_edits=kwargs.pop("implied_edits", {"autorange": False}), diff --git a/plotly/validators/layout/xaxis/_rangebreakdefaults.py b/plotly/validators/layout/xaxis/_rangebreakdefaults.py index 4f1a4af57e..f6c0db12f2 100644 --- a/plotly/validators/layout/xaxis/_rangebreakdefaults.py +++ b/plotly/validators/layout/xaxis/_rangebreakdefaults.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RangebreakdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Rangebreak"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/xaxis/_rangebreaks.py b/plotly/validators/layout/xaxis/_rangebreaks.py index 1936458ac2..c37e9203e4 100644 --- a/plotly/validators/layout/xaxis/_rangebreaks.py +++ b/plotly/validators/layout/xaxis/_rangebreaks.py @@ -1,66 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RangebreaksValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/xaxis/_rangemode.py b/plotly/validators/layout/xaxis/_rangemode.py index 826220881f..6e7d9d5988 100644 --- a/plotly/validators/layout/xaxis/_rangemode.py +++ b/plotly/validators/layout/xaxis/_rangemode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RangemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "tozero", "nonnegative"]), **kwargs, diff --git a/plotly/validators/layout/xaxis/_rangeselector.py b/plotly/validators/layout/xaxis/_rangeselector.py index 1bacb9302b..7c3d17c772 100644 --- a/plotly/validators/layout/xaxis/_rangeselector.py +++ b/plotly/validators/layout/xaxis/_rangeselector.py @@ -1,62 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RangeselectorValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/xaxis/_rangeslider.py b/plotly/validators/layout/xaxis/_rangeslider.py index 1c25c169e1..d3c160ede3 100644 --- a/plotly/validators/layout/xaxis/_rangeslider.py +++ b/plotly/validators/layout/xaxis/_rangeslider.py @@ -1,49 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RangesliderValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/xaxis/_scaleanchor.py b/plotly/validators/layout/xaxis/_scaleanchor.py index 48819032c3..9215fa5008 100644 --- a/plotly/validators/layout/xaxis/_scaleanchor.py +++ b/plotly/validators/layout/xaxis/_scaleanchor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ScaleanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/xaxis/_scaleratio.py b/plotly/validators/layout/xaxis/_scaleratio.py index 5526bcb07e..6638e54c6b 100644 --- a/plotly/validators/layout/xaxis/_scaleratio.py +++ b/plotly/validators/layout/xaxis/_scaleratio.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ScaleratioValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/xaxis/_separatethousands.py b/plotly/validators/layout/xaxis/_separatethousands.py index ca4e2f062f..88aba19aa4 100644 --- a/plotly/validators/layout/xaxis/_separatethousands.py +++ b/plotly/validators/layout/xaxis/_separatethousands.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/_showdividers.py b/plotly/validators/layout/xaxis/_showdividers.py index 8b8b543795..2c5395e4de 100644 --- a/plotly/validators/layout/xaxis/_showdividers.py +++ b/plotly/validators/layout/xaxis/_showdividers.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowdividersValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/_showexponent.py b/plotly/validators/layout/xaxis/_showexponent.py index 18227f2515..c4cea97085 100644 --- a/plotly/validators/layout/xaxis/_showexponent.py +++ b/plotly/validators/layout/xaxis/_showexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/xaxis/_showgrid.py b/plotly/validators/layout/xaxis/_showgrid.py index ace8a2e854..4ccca600c7 100644 --- a/plotly/validators/layout/xaxis/_showgrid.py +++ b/plotly/validators/layout/xaxis/_showgrid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/_showline.py b/plotly/validators/layout/xaxis/_showline.py index e1d2f6544f..1df6095242 100644 --- a/plotly/validators/layout/xaxis/_showline.py +++ b/plotly/validators/layout/xaxis/_showline.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks+layoutstyle"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/_showspikes.py b/plotly/validators/layout/xaxis/_showspikes.py index 44f0c8a5c4..2bb4df002f 100644 --- a/plotly/validators/layout/xaxis/_showspikes.py +++ b/plotly/validators/layout/xaxis/_showspikes.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowspikesValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "modebar"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/_showticklabels.py b/plotly/validators/layout/xaxis/_showticklabels.py index 0b85d7fc67..d400ad5484 100644 --- a/plotly/validators/layout/xaxis/_showticklabels.py +++ b/plotly/validators/layout/xaxis/_showticklabels.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/_showtickprefix.py b/plotly/validators/layout/xaxis/_showtickprefix.py index bc95ebc606..5915f7268d 100644 --- a/plotly/validators/layout/xaxis/_showtickprefix.py +++ b/plotly/validators/layout/xaxis/_showtickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/xaxis/_showticksuffix.py b/plotly/validators/layout/xaxis/_showticksuffix.py index 96c550923a..7ab2e8dd5a 100644 --- a/plotly/validators/layout/xaxis/_showticksuffix.py +++ b/plotly/validators/layout/xaxis/_showticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/xaxis/_side.py b/plotly/validators/layout/xaxis/_side.py index 5ab9c2be12..9747e37f44 100644 --- a/plotly/validators/layout/xaxis/_side.py +++ b/plotly/validators/layout/xaxis/_side.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["top", "bottom", "left", "right"]), **kwargs, diff --git a/plotly/validators/layout/xaxis/_spikecolor.py b/plotly/validators/layout/xaxis/_spikecolor.py index caae434677..a86663f9a0 100644 --- a/plotly/validators/layout/xaxis/_spikecolor.py +++ b/plotly/validators/layout/xaxis/_spikecolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SpikecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/_spikedash.py b/plotly/validators/layout/xaxis/_spikedash.py index b2a425bbe1..cd56cab223 100644 --- a/plotly/validators/layout/xaxis/_spikedash.py +++ b/plotly/validators/layout/xaxis/_spikedash.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SpikedashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/layout/xaxis/_spikemode.py b/plotly/validators/layout/xaxis/_spikemode.py index c94b047b9a..0b73125b80 100644 --- a/plotly/validators/layout/xaxis/_spikemode.py +++ b/plotly/validators/layout/xaxis/_spikemode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SpikemodeValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), flags=kwargs.pop("flags", ["toaxis", "across", "marker"]), **kwargs, diff --git a/plotly/validators/layout/xaxis/_spikesnap.py b/plotly/validators/layout/xaxis/_spikesnap.py index 780256b842..a0d79ab069 100644 --- a/plotly/validators/layout/xaxis/_spikesnap.py +++ b/plotly/validators/layout/xaxis/_spikesnap.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SpikesnapValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["data", "cursor", "hovered data"]), **kwargs, diff --git a/plotly/validators/layout/xaxis/_spikethickness.py b/plotly/validators/layout/xaxis/_spikethickness.py index 949ac5ec8d..7cfb6677ac 100644 --- a/plotly/validators/layout/xaxis/_spikethickness.py +++ b/plotly/validators/layout/xaxis/_spikethickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SpikethicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/_tick0.py b/plotly/validators/layout/xaxis/_tick0.py index bbd05ba561..87b0ef980d 100644 --- a/plotly/validators/layout/xaxis/_tick0.py +++ b/plotly/validators/layout/xaxis/_tick0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/layout/xaxis/_tickangle.py b/plotly/validators/layout/xaxis/_tickangle.py index a1886c8ba9..02fbaff82e 100644 --- a/plotly/validators/layout/xaxis/_tickangle.py +++ b/plotly/validators/layout/xaxis/_tickangle.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/_tickcolor.py b/plotly/validators/layout/xaxis/_tickcolor.py index 14dbd0c63f..d170fe84c8 100644 --- a/plotly/validators/layout/xaxis/_tickcolor.py +++ b/plotly/validators/layout/xaxis/_tickcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/_tickfont.py b/plotly/validators/layout/xaxis/_tickfont.py index 0b33a61249..d01e87fae2 100644 --- a/plotly/validators/layout/xaxis/_tickfont.py +++ b/plotly/validators/layout/xaxis/_tickfont.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/xaxis/_tickformat.py b/plotly/validators/layout/xaxis/_tickformat.py index 5d8e98a10e..3f302cabe4 100644 --- a/plotly/validators/layout/xaxis/_tickformat.py +++ b/plotly/validators/layout/xaxis/_tickformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/_tickformatstopdefaults.py b/plotly/validators/layout/xaxis/_tickformatstopdefaults.py index 1c3b8633a8..4a3c139614 100644 --- a/plotly/validators/layout/xaxis/_tickformatstopdefaults.py +++ b/plotly/validators/layout/xaxis/_tickformatstopdefaults.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/xaxis/_tickformatstops.py b/plotly/validators/layout/xaxis/_tickformatstops.py index 3278895daf..52816ede61 100644 --- a/plotly/validators/layout/xaxis/_tickformatstops.py +++ b/plotly/validators/layout/xaxis/_tickformatstops.py @@ -1,50 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/xaxis/_ticklabelindex.py b/plotly/validators/layout/xaxis/_ticklabelindex.py index 4078bd028b..00935942a8 100644 --- a/plotly/validators/layout/xaxis/_ticklabelindex.py +++ b/plotly/validators/layout/xaxis/_ticklabelindex.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelindexValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/layout/xaxis/_ticklabelindexsrc.py b/plotly/validators/layout/xaxis/_ticklabelindexsrc.py index 0154c702c6..42bd6dac18 100644 --- a/plotly/validators/layout/xaxis/_ticklabelindexsrc.py +++ b/plotly/validators/layout/xaxis/_ticklabelindexsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelindexsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/_ticklabelmode.py b/plotly/validators/layout/xaxis/_ticklabelmode.py index 18be892bd2..093f0e23aa 100644 --- a/plotly/validators/layout/xaxis/_ticklabelmode.py +++ b/plotly/validators/layout/xaxis/_ticklabelmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop("values", ["instant", "period"]), **kwargs, diff --git a/plotly/validators/layout/xaxis/_ticklabeloverflow.py b/plotly/validators/layout/xaxis/_ticklabeloverflow.py index e496d5b845..3202c1abe8 100644 --- a/plotly/validators/layout/xaxis/_ticklabeloverflow.py +++ b/plotly/validators/layout/xaxis/_ticklabeloverflow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/layout/xaxis/_ticklabelposition.py b/plotly/validators/layout/xaxis/_ticklabelposition.py index b8d3b26b47..b1b5fc1ebe 100644 --- a/plotly/validators/layout/xaxis/_ticklabelposition.py +++ b/plotly/validators/layout/xaxis/_ticklabelposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/xaxis/_ticklabelshift.py b/plotly/validators/layout/xaxis/_ticklabelshift.py index 6ae55bbe6a..51aeb4fa7b 100644 --- a/plotly/validators/layout/xaxis/_ticklabelshift.py +++ b/plotly/validators/layout/xaxis/_ticklabelshift.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelshiftValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/_ticklabelstandoff.py b/plotly/validators/layout/xaxis/_ticklabelstandoff.py index 1a8d1e7125..36375499f4 100644 --- a/plotly/validators/layout/xaxis/_ticklabelstandoff.py +++ b/plotly/validators/layout/xaxis/_ticklabelstandoff.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstandoffValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/_ticklabelstep.py b/plotly/validators/layout/xaxis/_ticklabelstep.py index ac38224529..37d893f627 100644 --- a/plotly/validators/layout/xaxis/_ticklabelstep.py +++ b/plotly/validators/layout/xaxis/_ticklabelstep.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/xaxis/_ticklen.py b/plotly/validators/layout/xaxis/_ticklen.py index 3c1979618f..9429c1be66 100644 --- a/plotly/validators/layout/xaxis/_ticklen.py +++ b/plotly/validators/layout/xaxis/_ticklen.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/xaxis/_tickmode.py b/plotly/validators/layout/xaxis/_tickmode.py index b9db01540e..e1c14d4fc5 100644 --- a/plotly/validators/layout/xaxis/_tickmode.py +++ b/plotly/validators/layout/xaxis/_tickmode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array", "sync"]), diff --git a/plotly/validators/layout/xaxis/_tickprefix.py b/plotly/validators/layout/xaxis/_tickprefix.py index 97e94856c1..c40b27f5ae 100644 --- a/plotly/validators/layout/xaxis/_tickprefix.py +++ b/plotly/validators/layout/xaxis/_tickprefix.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/_ticks.py b/plotly/validators/layout/xaxis/_ticks.py index 21023d64a7..b047dbcf93 100644 --- a/plotly/validators/layout/xaxis/_ticks.py +++ b/plotly/validators/layout/xaxis/_ticks.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/layout/xaxis/_tickson.py b/plotly/validators/layout/xaxis/_tickson.py index 889b931b99..dcd7308b95 100644 --- a/plotly/validators/layout/xaxis/_tickson.py +++ b/plotly/validators/layout/xaxis/_tickson.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksonValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop("values", ["labels", "boundaries"]), **kwargs, diff --git a/plotly/validators/layout/xaxis/_ticksuffix.py b/plotly/validators/layout/xaxis/_ticksuffix.py index 69ad94efe8..e32469afcb 100644 --- a/plotly/validators/layout/xaxis/_ticksuffix.py +++ b/plotly/validators/layout/xaxis/_ticksuffix.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/_ticktext.py b/plotly/validators/layout/xaxis/_ticktext.py index 2c6f73f837..25dd1b9d3d 100644 --- a/plotly/validators/layout/xaxis/_ticktext.py +++ b/plotly/validators/layout/xaxis/_ticktext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/_ticktextsrc.py b/plotly/validators/layout/xaxis/_ticktextsrc.py index db0a5c55b5..8e0c773615 100644 --- a/plotly/validators/layout/xaxis/_ticktextsrc.py +++ b/plotly/validators/layout/xaxis/_ticktextsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/_tickvals.py b/plotly/validators/layout/xaxis/_tickvals.py index c0061daf68..cb5920bc02 100644 --- a/plotly/validators/layout/xaxis/_tickvals.py +++ b/plotly/validators/layout/xaxis/_tickvals.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/_tickvalssrc.py b/plotly/validators/layout/xaxis/_tickvalssrc.py index e7dc511535..017cbf5247 100644 --- a/plotly/validators/layout/xaxis/_tickvalssrc.py +++ b/plotly/validators/layout/xaxis/_tickvalssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/_tickwidth.py b/plotly/validators/layout/xaxis/_tickwidth.py index da6d1332ec..14b8d94ad2 100644 --- a/plotly/validators/layout/xaxis/_tickwidth.py +++ b/plotly/validators/layout/xaxis/_tickwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/xaxis/_title.py b/plotly/validators/layout/xaxis/_title.py index ffa67b3dd8..e5e5a3f9f9 100644 --- a/plotly/validators/layout/xaxis/_title.py +++ b/plotly/validators/layout/xaxis/_title.py @@ -1,31 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/xaxis/_type.py b/plotly/validators/layout/xaxis/_type.py index bb76bbb65e..5e44d7cb15 100644 --- a/plotly/validators/layout/xaxis/_type.py +++ b/plotly/validators/layout/xaxis/_type.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", ["-", "linear", "log", "date", "category", "multicategory"] diff --git a/plotly/validators/layout/xaxis/_uirevision.py b/plotly/validators/layout/xaxis/_uirevision.py index da99dc386a..510d5a493d 100644 --- a/plotly/validators/layout/xaxis/_uirevision.py +++ b/plotly/validators/layout/xaxis/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/_visible.py b/plotly/validators/layout/xaxis/_visible.py index ae8d5b0b9d..d3a6d90e35 100644 --- a/plotly/validators/layout/xaxis/_visible.py +++ b/plotly/validators/layout/xaxis/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/_zeroline.py b/plotly/validators/layout/xaxis/_zeroline.py index 132f401b5a..53a8a6f595 100644 --- a/plotly/validators/layout/xaxis/_zeroline.py +++ b/plotly/validators/layout/xaxis/_zeroline.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZerolineValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/_zerolinecolor.py b/plotly/validators/layout/xaxis/_zerolinecolor.py index 276c0ecf04..7632601e75 100644 --- a/plotly/validators/layout/xaxis/_zerolinecolor.py +++ b/plotly/validators/layout/xaxis/_zerolinecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZerolinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/_zerolinewidth.py b/plotly/validators/layout/xaxis/_zerolinewidth.py index 840204575b..4552c46ca7 100644 --- a/plotly/validators/layout/xaxis/_zerolinewidth.py +++ b/plotly/validators/layout/xaxis/_zerolinewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZerolinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/autorangeoptions/__init__.py b/plotly/validators/layout/xaxis/autorangeoptions/__init__.py index 701f84c04e..8ef0b74165 100644 --- a/plotly/validators/layout/xaxis/autorangeoptions/__init__.py +++ b/plotly/validators/layout/xaxis/autorangeoptions/__init__.py @@ -1,25 +1,15 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._minallowed import MinallowedValidator - from ._maxallowed import MaxallowedValidator - from ._includesrc import IncludesrcValidator - from ._include import IncludeValidator - from ._clipmin import ClipminValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._minallowed.MinallowedValidator", + "._maxallowed.MaxallowedValidator", + "._includesrc.IncludesrcValidator", + "._include.IncludeValidator", + "._clipmin.ClipminValidator", + "._clipmax.ClipmaxValidator", + ], +) diff --git a/plotly/validators/layout/xaxis/autorangeoptions/_clipmax.py b/plotly/validators/layout/xaxis/autorangeoptions/_clipmax.py index 341fe48e6e..05462c7f84 100644 --- a/plotly/validators/layout/xaxis/autorangeoptions/_clipmax.py +++ b/plotly/validators/layout/xaxis/autorangeoptions/_clipmax.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ClipmaxValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/layout/xaxis/autorangeoptions/_clipmin.py b/plotly/validators/layout/xaxis/autorangeoptions/_clipmin.py index 22e728fc3a..3ee4e79b12 100644 --- a/plotly/validators/layout/xaxis/autorangeoptions/_clipmin.py +++ b/plotly/validators/layout/xaxis/autorangeoptions/_clipmin.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ClipminValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/layout/xaxis/autorangeoptions/_include.py b/plotly/validators/layout/xaxis/autorangeoptions/_include.py index 31737bfd64..f9a43ddc03 100644 --- a/plotly/validators/layout/xaxis/autorangeoptions/_include.py +++ b/plotly/validators/layout/xaxis/autorangeoptions/_include.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IncludeValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), diff --git a/plotly/validators/layout/xaxis/autorangeoptions/_includesrc.py b/plotly/validators/layout/xaxis/autorangeoptions/_includesrc.py index 593e7937cf..699ae4b7fb 100644 --- a/plotly/validators/layout/xaxis/autorangeoptions/_includesrc.py +++ b/plotly/validators/layout/xaxis/autorangeoptions/_includesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IncludesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/autorangeoptions/_maxallowed.py b/plotly/validators/layout/xaxis/autorangeoptions/_maxallowed.py index cc1c3aa1e6..43bb4683db 100644 --- a/plotly/validators/layout/xaxis/autorangeoptions/_maxallowed.py +++ b/plotly/validators/layout/xaxis/autorangeoptions/_maxallowed.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxallowedValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/layout/xaxis/autorangeoptions/_minallowed.py b/plotly/validators/layout/xaxis/autorangeoptions/_minallowed.py index 4faf5cfbe1..6362f85077 100644 --- a/plotly/validators/layout/xaxis/autorangeoptions/_minallowed.py +++ b/plotly/validators/layout/xaxis/autorangeoptions/_minallowed.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinallowedValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/layout/xaxis/minor/__init__.py b/plotly/validators/layout/xaxis/minor/__init__.py index 27860a82b8..50b8522165 100644 --- a/plotly/validators/layout/xaxis/minor/__init__.py +++ b/plotly/validators/layout/xaxis/minor/__init__.py @@ -1,41 +1,23 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticks import TicksValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._tickcolor import TickcolorValidator - from ._tick0 import Tick0Validator - from ._showgrid import ShowgridValidator - from ._nticks import NticksValidator - from ._gridwidth import GridwidthValidator - from ._griddash import GriddashValidator - from ._gridcolor import GridcolorValidator - from ._dtick import DtickValidator -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [], - [ - "._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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/xaxis/minor/_dtick.py b/plotly/validators/layout/xaxis/minor/_dtick.py index 92aef5224f..a0cfc2b39b 100644 --- a/plotly/validators/layout/xaxis/minor/_dtick.py +++ b/plotly/validators/layout/xaxis/minor/_dtick.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/layout/xaxis/minor/_gridcolor.py b/plotly/validators/layout/xaxis/minor/_gridcolor.py index 0fe85bc1b4..11f586b650 100644 --- a/plotly/validators/layout/xaxis/minor/_gridcolor.py +++ b/plotly/validators/layout/xaxis/minor/_gridcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/minor/_griddash.py b/plotly/validators/layout/xaxis/minor/_griddash.py index 49893ff157..5ec8fad8b8 100644 --- a/plotly/validators/layout/xaxis/minor/_griddash.py +++ b/plotly/validators/layout/xaxis/minor/_griddash.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GriddashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/layout/xaxis/minor/_gridwidth.py b/plotly/validators/layout/xaxis/minor/_gridwidth.py index a98c793aff..079e9009dd 100644 --- a/plotly/validators/layout/xaxis/minor/_gridwidth.py +++ b/plotly/validators/layout/xaxis/minor/_gridwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/xaxis/minor/_nticks.py b/plotly/validators/layout/xaxis/minor/_nticks.py index 80a947aa43..99b4e0a108 100644 --- a/plotly/validators/layout/xaxis/minor/_nticks.py +++ b/plotly/validators/layout/xaxis/minor/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/xaxis/minor/_showgrid.py b/plotly/validators/layout/xaxis/minor/_showgrid.py index 424abbbd26..4f06adf69a 100644 --- a/plotly/validators/layout/xaxis/minor/_showgrid.py +++ b/plotly/validators/layout/xaxis/minor/_showgrid.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/minor/_tick0.py b/plotly/validators/layout/xaxis/minor/_tick0.py index f2413c1c9c..a90a2095d4 100644 --- a/plotly/validators/layout/xaxis/minor/_tick0.py +++ b/plotly/validators/layout/xaxis/minor/_tick0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/layout/xaxis/minor/_tickcolor.py b/plotly/validators/layout/xaxis/minor/_tickcolor.py index fc4ec184b0..29a3784c37 100644 --- a/plotly/validators/layout/xaxis/minor/_tickcolor.py +++ b/plotly/validators/layout/xaxis/minor/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/minor/_ticklen.py b/plotly/validators/layout/xaxis/minor/_ticklen.py index 588224dc0f..5d7285fc7a 100644 --- a/plotly/validators/layout/xaxis/minor/_ticklen.py +++ b/plotly/validators/layout/xaxis/minor/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/xaxis/minor/_tickmode.py b/plotly/validators/layout/xaxis/minor/_tickmode.py index fc6889ba1f..25fa4765e6 100644 --- a/plotly/validators/layout/xaxis/minor/_tickmode.py +++ b/plotly/validators/layout/xaxis/minor/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/layout/xaxis/minor/_ticks.py b/plotly/validators/layout/xaxis/minor/_ticks.py index 7009ebfa56..509ed5a962 100644 --- a/plotly/validators/layout/xaxis/minor/_ticks.py +++ b/plotly/validators/layout/xaxis/minor/_ticks.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/layout/xaxis/minor/_tickvals.py b/plotly/validators/layout/xaxis/minor/_tickvals.py index c31a4883aa..85f537a12d 100644 --- a/plotly/validators/layout/xaxis/minor/_tickvals.py +++ b/plotly/validators/layout/xaxis/minor/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/minor/_tickvalssrc.py b/plotly/validators/layout/xaxis/minor/_tickvalssrc.py index c5d999431b..8226fd6b61 100644 --- a/plotly/validators/layout/xaxis/minor/_tickvalssrc.py +++ b/plotly/validators/layout/xaxis/minor/_tickvalssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/minor/_tickwidth.py b/plotly/validators/layout/xaxis/minor/_tickwidth.py index 11b3a3474d..ab45eb176a 100644 --- a/plotly/validators/layout/xaxis/minor/_tickwidth.py +++ b/plotly/validators/layout/xaxis/minor/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/xaxis/rangebreak/__init__.py b/plotly/validators/layout/xaxis/rangebreak/__init__.py index 0388365853..4cd89140b8 100644 --- a/plotly/validators/layout/xaxis/rangebreak/__init__.py +++ b/plotly/validators/layout/xaxis/rangebreak/__init__.py @@ -1,27 +1,16 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._values import ValuesValidator - from ._templateitemname import TemplateitemnameValidator - from ._pattern import PatternValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - from ._dvalue import DvalueValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._values.ValuesValidator", + "._templateitemname.TemplateitemnameValidator", + "._pattern.PatternValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dvalue.DvalueValidator", + "._bounds.BoundsValidator", + ], +) diff --git a/plotly/validators/layout/xaxis/rangebreak/_bounds.py b/plotly/validators/layout/xaxis/rangebreak/_bounds.py index f2c40b9a5f..84def259cc 100644 --- a/plotly/validators/layout/xaxis/rangebreak/_bounds.py +++ b/plotly/validators/layout/xaxis/rangebreak/_bounds.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BoundsValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/xaxis/rangebreak/_dvalue.py b/plotly/validators/layout/xaxis/rangebreak/_dvalue.py index e89216a4c6..d93dbe37b9 100644 --- a/plotly/validators/layout/xaxis/rangebreak/_dvalue.py +++ b/plotly/validators/layout/xaxis/rangebreak/_dvalue.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DvalueValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/xaxis/rangebreak/_enabled.py b/plotly/validators/layout/xaxis/rangebreak/_enabled.py index 760a704cce..e174c5205f 100644 --- a/plotly/validators/layout/xaxis/rangebreak/_enabled.py +++ b/plotly/validators/layout/xaxis/rangebreak/_enabled.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/rangebreak/_name.py b/plotly/validators/layout/xaxis/rangebreak/_name.py index 6605d7797d..888b955833 100644 --- a/plotly/validators/layout/xaxis/rangebreak/_name.py +++ b/plotly/validators/layout/xaxis/rangebreak/_name.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/rangebreak/_pattern.py b/plotly/validators/layout/xaxis/rangebreak/_pattern.py index d906cd2228..4a2f2cef1d 100644 --- a/plotly/validators/layout/xaxis/rangebreak/_pattern.py +++ b/plotly/validators/layout/xaxis/rangebreak/_pattern.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PatternValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["day of week", "hour", ""]), **kwargs, diff --git a/plotly/validators/layout/xaxis/rangebreak/_templateitemname.py b/plotly/validators/layout/xaxis/rangebreak/_templateitemname.py index 894188d860..36104b3b0e 100644 --- a/plotly/validators/layout/xaxis/rangebreak/_templateitemname.py +++ b/plotly/validators/layout/xaxis/rangebreak/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/rangebreak/_values.py b/plotly/validators/layout/xaxis/rangebreak/_values.py index ff932107fe..307bcc608f 100644 --- a/plotly/validators/layout/xaxis/rangebreak/_values.py +++ b/plotly/validators/layout/xaxis/rangebreak/_values.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValuesValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_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"}), diff --git a/plotly/validators/layout/xaxis/rangeselector/__init__.py b/plotly/validators/layout/xaxis/rangeselector/__init__.py index 4e2ef7c7f3..42354defa5 100644 --- a/plotly/validators/layout/xaxis/rangeselector/__init__.py +++ b/plotly/validators/layout/xaxis/rangeselector/__init__.py @@ -1,37 +1,21 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._visible import VisibleValidator - from ._font import FontValidator - from ._buttondefaults import ButtondefaultsValidator - from ._buttons import ButtonsValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - from ._bgcolor import BgcolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/xaxis/rangeselector/_activecolor.py b/plotly/validators/layout/xaxis/rangeselector/_activecolor.py index 729edd111b..93be87137f 100644 --- a/plotly/validators/layout/xaxis/rangeselector/_activecolor.py +++ b/plotly/validators/layout/xaxis/rangeselector/_activecolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ActivecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/rangeselector/_bgcolor.py b/plotly/validators/layout/xaxis/rangeselector/_bgcolor.py index 1f3dc0061d..739c9561e0 100644 --- a/plotly/validators/layout/xaxis/rangeselector/_bgcolor.py +++ b/plotly/validators/layout/xaxis/rangeselector/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/rangeselector/_bordercolor.py b/plotly/validators/layout/xaxis/rangeselector/_bordercolor.py index 8a2c804a44..07e0fa2fe7 100644 --- a/plotly/validators/layout/xaxis/rangeselector/_bordercolor.py +++ b/plotly/validators/layout/xaxis/rangeselector/_bordercolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/rangeselector/_borderwidth.py b/plotly/validators/layout/xaxis/rangeselector/_borderwidth.py index 8a6d64055c..9a19cf06d1 100644 --- a/plotly/validators/layout/xaxis/rangeselector/_borderwidth.py +++ b/plotly/validators/layout/xaxis/rangeselector/_borderwidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/xaxis/rangeselector/_buttondefaults.py b/plotly/validators/layout/xaxis/rangeselector/_buttondefaults.py index 4d40da0f35..3f64a4b58e 100644 --- a/plotly/validators/layout/xaxis/rangeselector/_buttondefaults.py +++ b/plotly/validators/layout/xaxis/rangeselector/_buttondefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ButtondefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Button"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/xaxis/rangeselector/_buttons.py b/plotly/validators/layout/xaxis/rangeselector/_buttons.py index cdc2514215..64a0042ffe 100644 --- a/plotly/validators/layout/xaxis/rangeselector/_buttons.py +++ b/plotly/validators/layout/xaxis/rangeselector/_buttons.py @@ -1,62 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ButtonsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/xaxis/rangeselector/_font.py b/plotly/validators/layout/xaxis/rangeselector/_font.py index 4a64548f3b..58bab82b67 100644 --- a/plotly/validators/layout/xaxis/rangeselector/_font.py +++ b/plotly/validators/layout/xaxis/rangeselector/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/xaxis/rangeselector/_visible.py b/plotly/validators/layout/xaxis/rangeselector/_visible.py index ec87ff4ec4..14090e1141 100644 --- a/plotly/validators/layout/xaxis/rangeselector/_visible.py +++ b/plotly/validators/layout/xaxis/rangeselector/_visible.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/rangeselector/_x.py b/plotly/validators/layout/xaxis/rangeselector/_x.py index 12d987a9ca..0ff26af877 100644 --- a/plotly/validators/layout/xaxis/rangeselector/_x.py +++ b/plotly/validators/layout/xaxis/rangeselector/_x.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), max=kwargs.pop("max", 3), min=kwargs.pop("min", -2), diff --git a/plotly/validators/layout/xaxis/rangeselector/_xanchor.py b/plotly/validators/layout/xaxis/rangeselector/_xanchor.py index c2f82545b1..975e673f90 100644 --- a/plotly/validators/layout/xaxis/rangeselector/_xanchor.py +++ b/plotly/validators/layout/xaxis/rangeselector/_xanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["auto", "left", "center", "right"]), **kwargs, diff --git a/plotly/validators/layout/xaxis/rangeselector/_y.py b/plotly/validators/layout/xaxis/rangeselector/_y.py index c2fd1b1c3f..e81f451a16 100644 --- a/plotly/validators/layout/xaxis/rangeselector/_y.py +++ b/plotly/validators/layout/xaxis/rangeselector/_y.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), max=kwargs.pop("max", 3), min=kwargs.pop("min", -2), diff --git a/plotly/validators/layout/xaxis/rangeselector/_yanchor.py b/plotly/validators/layout/xaxis/rangeselector/_yanchor.py index e1c0f4935b..763d5377c7 100644 --- a/plotly/validators/layout/xaxis/rangeselector/_yanchor.py +++ b/plotly/validators/layout/xaxis/rangeselector/_yanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["auto", "top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/layout/xaxis/rangeselector/button/__init__.py b/plotly/validators/layout/xaxis/rangeselector/button/__init__.py index 50e76b682d..ac076088f8 100644 --- a/plotly/validators/layout/xaxis/rangeselector/button/__init__.py +++ b/plotly/validators/layout/xaxis/rangeselector/button/__init__.py @@ -1,27 +1,16 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._visible import VisibleValidator - from ._templateitemname import TemplateitemnameValidator - from ._stepmode import StepmodeValidator - from ._step import StepValidator - from ._name import NameValidator - from ._label import LabelValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._visible.VisibleValidator", + "._templateitemname.TemplateitemnameValidator", + "._stepmode.StepmodeValidator", + "._step.StepValidator", + "._name.NameValidator", + "._label.LabelValidator", + "._count.CountValidator", + ], +) diff --git a/plotly/validators/layout/xaxis/rangeselector/button/_count.py b/plotly/validators/layout/xaxis/rangeselector/button/_count.py index c479be13a0..41ffcb54be 100644 --- a/plotly/validators/layout/xaxis/rangeselector/button/_count.py +++ b/plotly/validators/layout/xaxis/rangeselector/button/_count.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CountValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/xaxis/rangeselector/button/_label.py b/plotly/validators/layout/xaxis/rangeselector/button/_label.py index 591edfaf8c..8b37164044 100644 --- a/plotly/validators/layout/xaxis/rangeselector/button/_label.py +++ b/plotly/validators/layout/xaxis/rangeselector/button/_label.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/rangeselector/button/_name.py b/plotly/validators/layout/xaxis/rangeselector/button/_name.py index 7dbb9c668a..6bab6edbcc 100644 --- a/plotly/validators/layout/xaxis/rangeselector/button/_name.py +++ b/plotly/validators/layout/xaxis/rangeselector/button/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/rangeselector/button/_step.py b/plotly/validators/layout/xaxis/rangeselector/button/_step.py index de4f7e2a18..cbb36052c8 100644 --- a/plotly/validators/layout/xaxis/rangeselector/button/_step.py +++ b/plotly/validators/layout/xaxis/rangeselector/button/_step.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StepValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", ["month", "year", "day", "hour", "minute", "second", "all"] diff --git a/plotly/validators/layout/xaxis/rangeselector/button/_stepmode.py b/plotly/validators/layout/xaxis/rangeselector/button/_stepmode.py index 5183664e40..b878ebb0dc 100644 --- a/plotly/validators/layout/xaxis/rangeselector/button/_stepmode.py +++ b/plotly/validators/layout/xaxis/rangeselector/button/_stepmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StepmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["backward", "todate"]), **kwargs, diff --git a/plotly/validators/layout/xaxis/rangeselector/button/_templateitemname.py b/plotly/validators/layout/xaxis/rangeselector/button/_templateitemname.py index 78a9036a9a..01eb1c0ef1 100644 --- a/plotly/validators/layout/xaxis/rangeselector/button/_templateitemname.py +++ b/plotly/validators/layout/xaxis/rangeselector/button/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/rangeselector/button/_visible.py b/plotly/validators/layout/xaxis/rangeselector/button/_visible.py index a03aca5f1c..c1cb1fcd2e 100644 --- a/plotly/validators/layout/xaxis/rangeselector/button/_visible.py +++ b/plotly/validators/layout/xaxis/rangeselector/button/_visible.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/rangeselector/font/__init__.py b/plotly/validators/layout/xaxis/rangeselector/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/xaxis/rangeselector/font/__init__.py +++ b/plotly/validators/layout/xaxis/rangeselector/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/xaxis/rangeselector/font/_color.py b/plotly/validators/layout/xaxis/rangeselector/font/_color.py index 307d3b721a..333b4e1672 100644 --- a/plotly/validators/layout/xaxis/rangeselector/font/_color.py +++ b/plotly/validators/layout/xaxis/rangeselector/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/rangeselector/font/_family.py b/plotly/validators/layout/xaxis/rangeselector/font/_family.py index 60c48fb067..a6ef4ce481 100644 --- a/plotly/validators/layout/xaxis/rangeselector/font/_family.py +++ b/plotly/validators/layout/xaxis/rangeselector/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/xaxis/rangeselector/font/_lineposition.py b/plotly/validators/layout/xaxis/rangeselector/font/_lineposition.py index 3ca2ab2dc3..9f507b3f29 100644 --- a/plotly/validators/layout/xaxis/rangeselector/font/_lineposition.py +++ b/plotly/validators/layout/xaxis/rangeselector/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/xaxis/rangeselector/font/_shadow.py b/plotly/validators/layout/xaxis/rangeselector/font/_shadow.py index 3e761bf6b3..00382f1167 100644 --- a/plotly/validators/layout/xaxis/rangeselector/font/_shadow.py +++ b/plotly/validators/layout/xaxis/rangeselector/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/rangeselector/font/_size.py b/plotly/validators/layout/xaxis/rangeselector/font/_size.py index 7b5fa3ba2f..12c8f09495 100644 --- a/plotly/validators/layout/xaxis/rangeselector/font/_size.py +++ b/plotly/validators/layout/xaxis/rangeselector/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/xaxis/rangeselector/font/_style.py b/plotly/validators/layout/xaxis/rangeselector/font/_style.py index b65be360c2..edc7ae64c6 100644 --- a/plotly/validators/layout/xaxis/rangeselector/font/_style.py +++ b/plotly/validators/layout/xaxis/rangeselector/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/xaxis/rangeselector/font/_textcase.py b/plotly/validators/layout/xaxis/rangeselector/font/_textcase.py index 40d4338b03..1047de9bbc 100644 --- a/plotly/validators/layout/xaxis/rangeselector/font/_textcase.py +++ b/plotly/validators/layout/xaxis/rangeselector/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/xaxis/rangeselector/font/_variant.py b/plotly/validators/layout/xaxis/rangeselector/font/_variant.py index b168211778..05724d48ae 100644 --- a/plotly/validators/layout/xaxis/rangeselector/font/_variant.py +++ b/plotly/validators/layout/xaxis/rangeselector/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/xaxis/rangeselector/font/_weight.py b/plotly/validators/layout/xaxis/rangeselector/font/_weight.py index a4330623f5..ccf6f7bba2 100644 --- a/plotly/validators/layout/xaxis/rangeselector/font/_weight.py +++ b/plotly/validators/layout/xaxis/rangeselector/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/xaxis/rangeslider/__init__.py b/plotly/validators/layout/xaxis/rangeslider/__init__.py index b772996f42..56f0806302 100644 --- a/plotly/validators/layout/xaxis/rangeslider/__init__.py +++ b/plotly/validators/layout/xaxis/rangeslider/__init__.py @@ -1,29 +1,17 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yaxis import YaxisValidator - from ._visible import VisibleValidator - from ._thickness import ThicknessValidator - from ._range import RangeValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - from ._bgcolor import BgcolorValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._yaxis.YaxisValidator", + "._visible.VisibleValidator", + "._thickness.ThicknessValidator", + "._range.RangeValidator", + "._borderwidth.BorderwidthValidator", + "._bordercolor.BordercolorValidator", + "._bgcolor.BgcolorValidator", + "._autorange.AutorangeValidator", + ], +) diff --git a/plotly/validators/layout/xaxis/rangeslider/_autorange.py b/plotly/validators/layout/xaxis/rangeslider/_autorange.py index 0acbff9a6c..0de867253f 100644 --- a/plotly/validators/layout/xaxis/rangeslider/_autorange.py +++ b/plotly/validators/layout/xaxis/rangeslider/_autorange.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutorangeValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/layout/xaxis/rangeslider/_bgcolor.py b/plotly/validators/layout/xaxis/rangeslider/_bgcolor.py index 1cd68f9387..db2b1b77b7 100644 --- a/plotly/validators/layout/xaxis/rangeslider/_bgcolor.py +++ b/plotly/validators/layout/xaxis/rangeslider/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/rangeslider/_bordercolor.py b/plotly/validators/layout/xaxis/rangeslider/_bordercolor.py index 30858da33a..24324f854a 100644 --- a/plotly/validators/layout/xaxis/rangeslider/_bordercolor.py +++ b/plotly/validators/layout/xaxis/rangeslider/_bordercolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/rangeslider/_borderwidth.py b/plotly/validators/layout/xaxis/rangeslider/_borderwidth.py index a3d04dc3c7..fa3722783c 100644 --- a/plotly/validators/layout/xaxis/rangeslider/_borderwidth.py +++ b/plotly/validators/layout/xaxis/rangeslider/_borderwidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/xaxis/rangeslider/_range.py b/plotly/validators/layout/xaxis/rangeslider/_range.py index dd49692a9e..c3b759fe15 100644 --- a/plotly/validators/layout/xaxis/rangeslider/_range.py +++ b/plotly/validators/layout/xaxis/rangeslider/_range.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autorange": False}), items=kwargs.pop( diff --git a/plotly/validators/layout/xaxis/rangeslider/_thickness.py b/plotly/validators/layout/xaxis/rangeslider/_thickness.py index 9269e949e9..f65c08de5b 100644 --- a/plotly/validators/layout/xaxis/rangeslider/_thickness.py +++ b/plotly/validators/layout/xaxis/rangeslider/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/xaxis/rangeslider/_visible.py b/plotly/validators/layout/xaxis/rangeslider/_visible.py index 7c5b31be38..fcf7d86351 100644 --- a/plotly/validators/layout/xaxis/rangeslider/_visible.py +++ b/plotly/validators/layout/xaxis/rangeslider/_visible.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/rangeslider/_yaxis.py b/plotly/validators/layout/xaxis/rangeslider/_yaxis.py index f35578845c..9a3d243368 100644 --- a/plotly/validators/layout/xaxis/rangeslider/_yaxis.py +++ b/plotly/validators/layout/xaxis/rangeslider/_yaxis.py @@ -1,28 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YaxisValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/xaxis/rangeslider/yaxis/__init__.py b/plotly/validators/layout/xaxis/rangeslider/yaxis/__init__.py index 4f27a744de..d0f62faf82 100644 --- a/plotly/validators/layout/xaxis/rangeslider/yaxis/__init__.py +++ b/plotly/validators/layout/xaxis/rangeslider/yaxis/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._rangemode.RangemodeValidator", "._range.RangeValidator"] +) diff --git a/plotly/validators/layout/xaxis/rangeslider/yaxis/_range.py b/plotly/validators/layout/xaxis/rangeslider/yaxis/_range.py index c2b532b316..27b5115078 100644 --- a/plotly/validators/layout/xaxis/rangeslider/yaxis/_range.py +++ b/plotly/validators/layout/xaxis/rangeslider/yaxis/_range.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/xaxis/rangeslider/yaxis/_rangemode.py b/plotly/validators/layout/xaxis/rangeslider/yaxis/_rangemode.py index 94e1436d59..b423f2bf0d 100644 --- a/plotly/validators/layout/xaxis/rangeslider/yaxis/_rangemode.py +++ b/plotly/validators/layout/xaxis/rangeslider/yaxis/_rangemode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RangemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["auto", "fixed", "match"]), **kwargs, diff --git a/plotly/validators/layout/xaxis/tickfont/__init__.py b/plotly/validators/layout/xaxis/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/xaxis/tickfont/__init__.py +++ b/plotly/validators/layout/xaxis/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/xaxis/tickfont/_color.py b/plotly/validators/layout/xaxis/tickfont/_color.py index 8d6016f51a..56a1ee3e23 100644 --- a/plotly/validators/layout/xaxis/tickfont/_color.py +++ b/plotly/validators/layout/xaxis/tickfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/tickfont/_family.py b/plotly/validators/layout/xaxis/tickfont/_family.py index 4de3925644..8fe44871f5 100644 --- a/plotly/validators/layout/xaxis/tickfont/_family.py +++ b/plotly/validators/layout/xaxis/tickfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/xaxis/tickfont/_lineposition.py b/plotly/validators/layout/xaxis/tickfont/_lineposition.py index 9c7d66c749..fbd47b70e3 100644 --- a/plotly/validators/layout/xaxis/tickfont/_lineposition.py +++ b/plotly/validators/layout/xaxis/tickfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/xaxis/tickfont/_shadow.py b/plotly/validators/layout/xaxis/tickfont/_shadow.py index 73842a444f..3ff538ed2c 100644 --- a/plotly/validators/layout/xaxis/tickfont/_shadow.py +++ b/plotly/validators/layout/xaxis/tickfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/tickfont/_size.py b/plotly/validators/layout/xaxis/tickfont/_size.py index 283c2a8d4c..d0717efa29 100644 --- a/plotly/validators/layout/xaxis/tickfont/_size.py +++ b/plotly/validators/layout/xaxis/tickfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/xaxis/tickfont/_style.py b/plotly/validators/layout/xaxis/tickfont/_style.py index 8ce3ab4942..2ecf799529 100644 --- a/plotly/validators/layout/xaxis/tickfont/_style.py +++ b/plotly/validators/layout/xaxis/tickfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/xaxis/tickfont/_textcase.py b/plotly/validators/layout/xaxis/tickfont/_textcase.py index fbc4a9661c..1b14eea85c 100644 --- a/plotly/validators/layout/xaxis/tickfont/_textcase.py +++ b/plotly/validators/layout/xaxis/tickfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/xaxis/tickfont/_variant.py b/plotly/validators/layout/xaxis/tickfont/_variant.py index 463befa4a6..f06b7e4353 100644 --- a/plotly/validators/layout/xaxis/tickfont/_variant.py +++ b/plotly/validators/layout/xaxis/tickfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/xaxis/tickfont/_weight.py b/plotly/validators/layout/xaxis/tickfont/_weight.py index cb10a0db54..97a3ab4453 100644 --- a/plotly/validators/layout/xaxis/tickfont/_weight.py +++ b/plotly/validators/layout/xaxis/tickfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/xaxis/tickformatstop/__init__.py b/plotly/validators/layout/xaxis/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/layout/xaxis/tickformatstop/__init__.py +++ b/plotly/validators/layout/xaxis/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/layout/xaxis/tickformatstop/_dtickrange.py b/plotly/validators/layout/xaxis/tickformatstop/_dtickrange.py index 3c0d740eeb..30ea608412 100644 --- a/plotly/validators/layout/xaxis/tickformatstop/_dtickrange.py +++ b/plotly/validators/layout/xaxis/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/xaxis/tickformatstop/_enabled.py b/plotly/validators/layout/xaxis/tickformatstop/_enabled.py index 26bc2468e0..be60ee6531 100644 --- a/plotly/validators/layout/xaxis/tickformatstop/_enabled.py +++ b/plotly/validators/layout/xaxis/tickformatstop/_enabled.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/tickformatstop/_name.py b/plotly/validators/layout/xaxis/tickformatstop/_name.py index b1624dc31e..68ea166c65 100644 --- a/plotly/validators/layout/xaxis/tickformatstop/_name.py +++ b/plotly/validators/layout/xaxis/tickformatstop/_name.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/tickformatstop/_templateitemname.py b/plotly/validators/layout/xaxis/tickformatstop/_templateitemname.py index 7d5b9b9ad2..0aa75d4388 100644 --- a/plotly/validators/layout/xaxis/tickformatstop/_templateitemname.py +++ b/plotly/validators/layout/xaxis/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/tickformatstop/_value.py b/plotly/validators/layout/xaxis/tickformatstop/_value.py index 4957a99112..bfb4bb0eb8 100644 --- a/plotly/validators/layout/xaxis/tickformatstop/_value.py +++ b/plotly/validators/layout/xaxis/tickformatstop/_value.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/title/__init__.py b/plotly/validators/layout/xaxis/title/__init__.py index e8ad96b4dc..a0bd5d5de8 100644 --- a/plotly/validators/layout/xaxis/title/__init__.py +++ b/plotly/validators/layout/xaxis/title/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._standoff.StandoffValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/layout/xaxis/title/_font.py b/plotly/validators/layout/xaxis/title/_font.py index adf321ba94..0f1beb481c 100644 --- a/plotly/validators/layout/xaxis/title/_font.py +++ b/plotly/validators/layout/xaxis/title/_font.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/xaxis/title/_standoff.py b/plotly/validators/layout/xaxis/title/_standoff.py index 318cbf5814..93b7b2f13d 100644 --- a/plotly/validators/layout/xaxis/title/_standoff.py +++ b/plotly/validators/layout/xaxis/title/_standoff.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StandoffValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/xaxis/title/_text.py b/plotly/validators/layout/xaxis/title/_text.py index d1d6cb2633..0578b24ce8 100644 --- a/plotly/validators/layout/xaxis/title/_text.py +++ b/plotly/validators/layout/xaxis/title/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/title/font/__init__.py b/plotly/validators/layout/xaxis/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/xaxis/title/font/__init__.py +++ b/plotly/validators/layout/xaxis/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/xaxis/title/font/_color.py b/plotly/validators/layout/xaxis/title/font/_color.py index 27d5b3f65c..43db568a56 100644 --- a/plotly/validators/layout/xaxis/title/font/_color.py +++ b/plotly/validators/layout/xaxis/title/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/title/font/_family.py b/plotly/validators/layout/xaxis/title/font/_family.py index 573bb79c43..ebedfef4ea 100644 --- a/plotly/validators/layout/xaxis/title/font/_family.py +++ b/plotly/validators/layout/xaxis/title/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/xaxis/title/font/_lineposition.py b/plotly/validators/layout/xaxis/title/font/_lineposition.py index dcd1591043..7478c9360b 100644 --- a/plotly/validators/layout/xaxis/title/font/_lineposition.py +++ b/plotly/validators/layout/xaxis/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/xaxis/title/font/_shadow.py b/plotly/validators/layout/xaxis/title/font/_shadow.py index 56d9e97391..05654e20d3 100644 --- a/plotly/validators/layout/xaxis/title/font/_shadow.py +++ b/plotly/validators/layout/xaxis/title/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/xaxis/title/font/_size.py b/plotly/validators/layout/xaxis/title/font/_size.py index 5f371bf2dd..cce27501c0 100644 --- a/plotly/validators/layout/xaxis/title/font/_size.py +++ b/plotly/validators/layout/xaxis/title/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/xaxis/title/font/_style.py b/plotly/validators/layout/xaxis/title/font/_style.py index 2e2874af04..46c9b8ea1c 100644 --- a/plotly/validators/layout/xaxis/title/font/_style.py +++ b/plotly/validators/layout/xaxis/title/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/xaxis/title/font/_textcase.py b/plotly/validators/layout/xaxis/title/font/_textcase.py index fb504d1ac5..35dbc22a1a 100644 --- a/plotly/validators/layout/xaxis/title/font/_textcase.py +++ b/plotly/validators/layout/xaxis/title/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/xaxis/title/font/_variant.py b/plotly/validators/layout/xaxis/title/font/_variant.py index 34333db56d..cf31cf60aa 100644 --- a/plotly/validators/layout/xaxis/title/font/_variant.py +++ b/plotly/validators/layout/xaxis/title/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/xaxis/title/font/_weight.py b/plotly/validators/layout/xaxis/title/font/_weight.py index 864d90a61a..b632d8e03b 100644 --- a/plotly/validators/layout/xaxis/title/font/_weight.py +++ b/plotly/validators/layout/xaxis/title/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/yaxis/__init__.py b/plotly/validators/layout/yaxis/__init__.py index b081aee460..6dfe4972b2 100644 --- a/plotly/validators/layout/yaxis/__init__.py +++ b/plotly/validators/layout/yaxis/__init__.py @@ -1,199 +1,102 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zerolinewidth import ZerolinewidthValidator - from ._zerolinecolor import ZerolinecolorValidator - from ._zeroline import ZerolineValidator - from ._visible import VisibleValidator - from ._uirevision import UirevisionValidator - from ._type import TypeValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._tickson import TicksonValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelstandoff import TicklabelstandoffValidator - from ._ticklabelshift import TicklabelshiftValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._ticklabelmode import TicklabelmodeValidator - from ._ticklabelindexsrc import TicklabelindexsrcValidator - from ._ticklabelindex import TicklabelindexValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._spikethickness import SpikethicknessValidator - from ._spikesnap import SpikesnapValidator - from ._spikemode import SpikemodeValidator - from ._spikedash import SpikedashValidator - from ._spikecolor import SpikecolorValidator - from ._side import SideValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showspikes import ShowspikesValidator - from ._showline import ShowlineValidator - from ._showgrid import ShowgridValidator - from ._showexponent import ShowexponentValidator - from ._showdividers import ShowdividersValidator - from ._shift import ShiftValidator - from ._separatethousands import SeparatethousandsValidator - from ._scaleratio import ScaleratioValidator - from ._scaleanchor import ScaleanchorValidator - from ._rangemode import RangemodeValidator - from ._rangebreakdefaults import RangebreakdefaultsValidator - from ._rangebreaks import RangebreaksValidator - from ._range import RangeValidator - from ._position import PositionValidator - from ._overlaying import OverlayingValidator - from ._nticks import NticksValidator - from ._mirror import MirrorValidator - from ._minor import MinorValidator - from ._minexponent import MinexponentValidator - from ._minallowed import MinallowedValidator - from ._maxallowed import MaxallowedValidator - from ._matches import MatchesValidator - from ._linewidth import LinewidthValidator - from ._linecolor import LinecolorValidator - from ._layer import LayerValidator - from ._labelalias import LabelaliasValidator - from ._insiderange import InsiderangeValidator - from ._hoverformat import HoverformatValidator - from ._gridwidth import GridwidthValidator - from ._griddash import GriddashValidator - from ._gridcolor import GridcolorValidator - from ._fixedrange import FixedrangeValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._domain import DomainValidator - from ._dividerwidth import DividerwidthValidator - from ._dividercolor import DividercolorValidator - from ._constraintoward import ConstraintowardValidator - from ._constrain import ConstrainValidator - from ._color import ColorValidator - from ._categoryorder import CategoryorderValidator - from ._categoryarraysrc import CategoryarraysrcValidator - from ._categoryarray import CategoryarrayValidator - from ._calendar import CalendarValidator - from ._autotypenumbers import AutotypenumbersValidator - from ._autotickangles import AutotickanglesValidator - from ._autoshift import AutoshiftValidator - from ._autorangeoptions import AutorangeoptionsValidator - from ._autorange import AutorangeValidator - from ._automargin import AutomarginValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/yaxis/_anchor.py b/plotly/validators/layout/yaxis/_anchor.py index b74acd5746..e473e8b741 100644 --- a/plotly/validators/layout/yaxis/_anchor.py +++ b/plotly/validators/layout/yaxis/_anchor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AnchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/yaxis/_automargin.py b/plotly/validators/layout/yaxis/_automargin.py index e299ba46ec..3099ed8def 100644 --- a/plotly/validators/layout/yaxis/_automargin.py +++ b/plotly/validators/layout/yaxis/_automargin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutomarginValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), extras=kwargs.pop("extras", [True, False]), flags=kwargs.pop( diff --git a/plotly/validators/layout/yaxis/_autorange.py b/plotly/validators/layout/yaxis/_autorange.py index 2f737d4238..764fe65ce9 100644 --- a/plotly/validators/layout/yaxis/_autorange.py +++ b/plotly/validators/layout/yaxis/_autorange.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutorangeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "axrange"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop( diff --git a/plotly/validators/layout/yaxis/_autorangeoptions.py b/plotly/validators/layout/yaxis/_autorangeoptions.py index 88e5afd59e..a6ee2c5ce2 100644 --- a/plotly/validators/layout/yaxis/_autorangeoptions.py +++ b/plotly/validators/layout/yaxis/_autorangeoptions.py @@ -1,34 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutorangeoptionsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/yaxis/_autoshift.py b/plotly/validators/layout/yaxis/_autoshift.py index f2f8638cd1..dd32728ee8 100644 --- a/plotly/validators/layout/yaxis/_autoshift.py +++ b/plotly/validators/layout/yaxis/_autoshift.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutoshiftValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_autotickangles.py b/plotly/validators/layout/yaxis/_autotickangles.py index 261fb45dcb..1e1b456d49 100644 --- a/plotly/validators/layout/yaxis/_autotickangles.py +++ b/plotly/validators/layout/yaxis/_autotickangles.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutotickanglesValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), free_length=kwargs.pop("free_length", True), items=kwargs.pop("items", {"valType": "angle"}), diff --git a/plotly/validators/layout/yaxis/_autotypenumbers.py b/plotly/validators/layout/yaxis/_autotypenumbers.py index 11d2b3fd85..4e39048bf1 100644 --- a/plotly/validators/layout/yaxis/_autotypenumbers.py +++ b/plotly/validators/layout/yaxis/_autotypenumbers.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutotypenumbersValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["convert types", "strict"]), **kwargs, diff --git a/plotly/validators/layout/yaxis/_calendar.py b/plotly/validators/layout/yaxis/_calendar.py index 9643eb4068..126b4e3f9f 100644 --- a/plotly/validators/layout/yaxis/_calendar.py +++ b/plotly/validators/layout/yaxis/_calendar.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/yaxis/_categoryarray.py b/plotly/validators/layout/yaxis/_categoryarray.py index b398ef550c..5561454104 100644 --- a/plotly/validators/layout/yaxis/_categoryarray.py +++ b/plotly/validators/layout/yaxis/_categoryarray.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CategoryarrayValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_categoryarraysrc.py b/plotly/validators/layout/yaxis/_categoryarraysrc.py index 2ab8a85433..fb9bcd8d7f 100644 --- a/plotly/validators/layout/yaxis/_categoryarraysrc.py +++ b/plotly/validators/layout/yaxis/_categoryarraysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CategoryarraysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_categoryorder.py b/plotly/validators/layout/yaxis/_categoryorder.py index 63a43b7267..b0afacf429 100644 --- a/plotly/validators/layout/yaxis/_categoryorder.py +++ b/plotly/validators/layout/yaxis/_categoryorder.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CategoryorderValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/yaxis/_color.py b/plotly/validators/layout/yaxis/_color.py index 8b20ab6faf..25ffaf46a4 100644 --- a/plotly/validators/layout/yaxis/_color.py +++ b/plotly/validators/layout/yaxis/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_constrain.py b/plotly/validators/layout/yaxis/_constrain.py index 889a504e34..cc782e112c 100644 --- a/plotly/validators/layout/yaxis/_constrain.py +++ b/plotly/validators/layout/yaxis/_constrain.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ConstrainValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["range", "domain"]), **kwargs, diff --git a/plotly/validators/layout/yaxis/_constraintoward.py b/plotly/validators/layout/yaxis/_constraintoward.py index 4146c7da74..4d727e2c72 100644 --- a/plotly/validators/layout/yaxis/_constraintoward.py +++ b/plotly/validators/layout/yaxis/_constraintoward.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ConstraintowardValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", ["left", "center", "right", "top", "middle", "bottom"] diff --git a/plotly/validators/layout/yaxis/_dividercolor.py b/plotly/validators/layout/yaxis/_dividercolor.py index 6f9dd0b005..487330db3d 100644 --- a/plotly/validators/layout/yaxis/_dividercolor.py +++ b/plotly/validators/layout/yaxis/_dividercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DividercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_dividerwidth.py b/plotly/validators/layout/yaxis/_dividerwidth.py index afe396f0d8..17691ca18b 100644 --- a/plotly/validators/layout/yaxis/_dividerwidth.py +++ b/plotly/validators/layout/yaxis/_dividerwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DividerwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_domain.py b/plotly/validators/layout/yaxis/_domain.py index 7d8be496ed..a5b9b5d850 100644 --- a/plotly/validators/layout/yaxis/_domain.py +++ b/plotly/validators/layout/yaxis/_domain.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DomainValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/yaxis/_dtick.py b/plotly/validators/layout/yaxis/_dtick.py index ae707f355a..68575dccb9 100644 --- a/plotly/validators/layout/yaxis/_dtick.py +++ b/plotly/validators/layout/yaxis/_dtick.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/layout/yaxis/_exponentformat.py b/plotly/validators/layout/yaxis/_exponentformat.py index 1122a6fcf5..f454a9c85a 100644 --- a/plotly/validators/layout/yaxis/_exponentformat.py +++ b/plotly/validators/layout/yaxis/_exponentformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/layout/yaxis/_fixedrange.py b/plotly/validators/layout/yaxis/_fixedrange.py index f9b65aab56..1a2897b36f 100644 --- a/plotly/validators/layout/yaxis/_fixedrange.py +++ b/plotly/validators/layout/yaxis/_fixedrange.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FixedrangeValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_gridcolor.py b/plotly/validators/layout/yaxis/_gridcolor.py index 75de9acaa1..107c80b887 100644 --- a/plotly/validators/layout/yaxis/_gridcolor.py +++ b/plotly/validators/layout/yaxis/_gridcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_griddash.py b/plotly/validators/layout/yaxis/_griddash.py index 3bfd34783b..2de6b8d17d 100644 --- a/plotly/validators/layout/yaxis/_griddash.py +++ b/plotly/validators/layout/yaxis/_griddash.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GriddashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/layout/yaxis/_gridwidth.py b/plotly/validators/layout/yaxis/_gridwidth.py index a9a9f16e68..0d7bd4a1d7 100644 --- a/plotly/validators/layout/yaxis/_gridwidth.py +++ b/plotly/validators/layout/yaxis/_gridwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/yaxis/_hoverformat.py b/plotly/validators/layout/yaxis/_hoverformat.py index 7281c178da..d6a24ea9df 100644 --- a/plotly/validators/layout/yaxis/_hoverformat.py +++ b/plotly/validators/layout/yaxis/_hoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_insiderange.py b/plotly/validators/layout/yaxis/_insiderange.py index 23873102a4..5ebaee6ad2 100644 --- a/plotly/validators/layout/yaxis/_insiderange.py +++ b/plotly/validators/layout/yaxis/_insiderange.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class InsiderangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/yaxis/_labelalias.py b/plotly/validators/layout/yaxis/_labelalias.py index 0dd665dd74..212ed97f7a 100644 --- a/plotly/validators/layout/yaxis/_labelalias.py +++ b/plotly/validators/layout/yaxis/_labelalias.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_layer.py b/plotly/validators/layout/yaxis/_layer.py index dda4eb090f..16d9091521 100644 --- a/plotly/validators/layout/yaxis/_layer.py +++ b/plotly/validators/layout/yaxis/_layer.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LayerValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["above traces", "below traces"]), **kwargs, diff --git a/plotly/validators/layout/yaxis/_linecolor.py b/plotly/validators/layout/yaxis/_linecolor.py index f5adc30c6d..da926d638e 100644 --- a/plotly/validators/layout/yaxis/_linecolor.py +++ b/plotly/validators/layout/yaxis/_linecolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "layoutstyle"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_linewidth.py b/plotly/validators/layout/yaxis/_linewidth.py index d62ec49412..5053d09149 100644 --- a/plotly/validators/layout/yaxis/_linewidth.py +++ b/plotly/validators/layout/yaxis/_linewidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks+layoutstyle"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/yaxis/_matches.py b/plotly/validators/layout/yaxis/_matches.py index 85b5364721..3c8aaffc54 100644 --- a/plotly/validators/layout/yaxis/_matches.py +++ b/plotly/validators/layout/yaxis/_matches.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MatchesValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/yaxis/_maxallowed.py b/plotly/validators/layout/yaxis/_maxallowed.py index be24ce40aa..a27989a0a4 100644 --- a/plotly/validators/layout/yaxis/_maxallowed.py +++ b/plotly/validators/layout/yaxis/_maxallowed.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxallowedValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"^autorange": False}), **kwargs, diff --git a/plotly/validators/layout/yaxis/_minallowed.py b/plotly/validators/layout/yaxis/_minallowed.py index 098c842966..09ff25a13c 100644 --- a/plotly/validators/layout/yaxis/_minallowed.py +++ b/plotly/validators/layout/yaxis/_minallowed.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinallowedValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"^autorange": False}), **kwargs, diff --git a/plotly/validators/layout/yaxis/_minexponent.py b/plotly/validators/layout/yaxis/_minexponent.py index b1e7145399..0d468b617d 100644 --- a/plotly/validators/layout/yaxis/_minexponent.py +++ b/plotly/validators/layout/yaxis/_minexponent.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/yaxis/_minor.py b/plotly/validators/layout/yaxis/_minor.py index b0b20ae6bb..a6bce1f503 100644 --- a/plotly/validators/layout/yaxis/_minor.py +++ b/plotly/validators/layout/yaxis/_minor.py @@ -1,103 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinorValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/yaxis/_mirror.py b/plotly/validators/layout/yaxis/_mirror.py index 66eec2e3c4..3e527a3bc6 100644 --- a/plotly/validators/layout/yaxis/_mirror.py +++ b/plotly/validators/layout/yaxis/_mirror.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MirrorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks+layoutstyle"), values=kwargs.pop("values", [True, "ticks", False, "all", "allticks"]), **kwargs, diff --git a/plotly/validators/layout/yaxis/_nticks.py b/plotly/validators/layout/yaxis/_nticks.py index a9bc214f04..2ce71c8db7 100644 --- a/plotly/validators/layout/yaxis/_nticks.py +++ b/plotly/validators/layout/yaxis/_nticks.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/yaxis/_overlaying.py b/plotly/validators/layout/yaxis/_overlaying.py index ba0c49c039..8e3ed7a658 100644 --- a/plotly/validators/layout/yaxis/_overlaying.py +++ b/plotly/validators/layout/yaxis/_overlaying.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OverlayingValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/yaxis/_position.py b/plotly/validators/layout/yaxis/_position.py index 86b438df67..755e7537ed 100644 --- a/plotly/validators/layout/yaxis/_position.py +++ b/plotly/validators/layout/yaxis/_position.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PositionValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/layout/yaxis/_range.py b/plotly/validators/layout/yaxis/_range.py index 0ce610d21c..3a07596335 100644 --- a/plotly/validators/layout/yaxis/_range.py +++ b/plotly/validators/layout/yaxis/_range.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "axrange"), implied_edits=kwargs.pop("implied_edits", {"autorange": False}), diff --git a/plotly/validators/layout/yaxis/_rangebreakdefaults.py b/plotly/validators/layout/yaxis/_rangebreakdefaults.py index 4672f81a04..6d3ea7ab07 100644 --- a/plotly/validators/layout/yaxis/_rangebreakdefaults.py +++ b/plotly/validators/layout/yaxis/_rangebreakdefaults.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RangebreakdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Rangebreak"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/yaxis/_rangebreaks.py b/plotly/validators/layout/yaxis/_rangebreaks.py index 0f78ac34f3..7cd823abef 100644 --- a/plotly/validators/layout/yaxis/_rangebreaks.py +++ b/plotly/validators/layout/yaxis/_rangebreaks.py @@ -1,66 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RangebreaksValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/yaxis/_rangemode.py b/plotly/validators/layout/yaxis/_rangemode.py index e59e360ee4..414c183c88 100644 --- a/plotly/validators/layout/yaxis/_rangemode.py +++ b/plotly/validators/layout/yaxis/_rangemode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RangemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "tozero", "nonnegative"]), **kwargs, diff --git a/plotly/validators/layout/yaxis/_scaleanchor.py b/plotly/validators/layout/yaxis/_scaleanchor.py index 241db36938..759c8718ce 100644 --- a/plotly/validators/layout/yaxis/_scaleanchor.py +++ b/plotly/validators/layout/yaxis/_scaleanchor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ScaleanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/yaxis/_scaleratio.py b/plotly/validators/layout/yaxis/_scaleratio.py index 341aa62a96..4ecc920c5b 100644 --- a/plotly/validators/layout/yaxis/_scaleratio.py +++ b/plotly/validators/layout/yaxis/_scaleratio.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ScaleratioValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/yaxis/_separatethousands.py b/plotly/validators/layout/yaxis/_separatethousands.py index 77ec9350d9..1be368231e 100644 --- a/plotly/validators/layout/yaxis/_separatethousands.py +++ b/plotly/validators/layout/yaxis/_separatethousands.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_shift.py b/plotly/validators/layout/yaxis/_shift.py index cdfc87bc25..2882b469d1 100644 --- a/plotly/validators/layout/yaxis/_shift.py +++ b/plotly/validators/layout/yaxis/_shift.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShiftValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_showdividers.py b/plotly/validators/layout/yaxis/_showdividers.py index af3e6d03ae..645a653f28 100644 --- a/plotly/validators/layout/yaxis/_showdividers.py +++ b/plotly/validators/layout/yaxis/_showdividers.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowdividersValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_showexponent.py b/plotly/validators/layout/yaxis/_showexponent.py index 207e2ed444..dbaf04953a 100644 --- a/plotly/validators/layout/yaxis/_showexponent.py +++ b/plotly/validators/layout/yaxis/_showexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/yaxis/_showgrid.py b/plotly/validators/layout/yaxis/_showgrid.py index ccc3013ec4..dd54b2f5a1 100644 --- a/plotly/validators/layout/yaxis/_showgrid.py +++ b/plotly/validators/layout/yaxis/_showgrid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_showline.py b/plotly/validators/layout/yaxis/_showline.py index 9161f56824..897e8261d1 100644 --- a/plotly/validators/layout/yaxis/_showline.py +++ b/plotly/validators/layout/yaxis/_showline.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlineValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks+layoutstyle"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_showspikes.py b/plotly/validators/layout/yaxis/_showspikes.py index bcdefbd81d..0d1d18ee06 100644 --- a/plotly/validators/layout/yaxis/_showspikes.py +++ b/plotly/validators/layout/yaxis/_showspikes.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowspikesValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "modebar"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_showticklabels.py b/plotly/validators/layout/yaxis/_showticklabels.py index 5b26ea3f3c..3aad7fa0fe 100644 --- a/plotly/validators/layout/yaxis/_showticklabels.py +++ b/plotly/validators/layout/yaxis/_showticklabels.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_showtickprefix.py b/plotly/validators/layout/yaxis/_showtickprefix.py index 0b540282e4..6209a20283 100644 --- a/plotly/validators/layout/yaxis/_showtickprefix.py +++ b/plotly/validators/layout/yaxis/_showtickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/yaxis/_showticksuffix.py b/plotly/validators/layout/yaxis/_showticksuffix.py index 70e20229b1..1ca03793e8 100644 --- a/plotly/validators/layout/yaxis/_showticksuffix.py +++ b/plotly/validators/layout/yaxis/_showticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/layout/yaxis/_side.py b/plotly/validators/layout/yaxis/_side.py index 95d7c48ec5..9d29dcc76e 100644 --- a/plotly/validators/layout/yaxis/_side.py +++ b/plotly/validators/layout/yaxis/_side.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["top", "bottom", "left", "right"]), **kwargs, diff --git a/plotly/validators/layout/yaxis/_spikecolor.py b/plotly/validators/layout/yaxis/_spikecolor.py index 87580b7e71..5611e50813 100644 --- a/plotly/validators/layout/yaxis/_spikecolor.py +++ b/plotly/validators/layout/yaxis/_spikecolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SpikecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_spikedash.py b/plotly/validators/layout/yaxis/_spikedash.py index 8f2ae4012d..7f19c493b0 100644 --- a/plotly/validators/layout/yaxis/_spikedash.py +++ b/plotly/validators/layout/yaxis/_spikedash.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SpikedashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/layout/yaxis/_spikemode.py b/plotly/validators/layout/yaxis/_spikemode.py index 0ba05a888a..659c520490 100644 --- a/plotly/validators/layout/yaxis/_spikemode.py +++ b/plotly/validators/layout/yaxis/_spikemode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SpikemodeValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), flags=kwargs.pop("flags", ["toaxis", "across", "marker"]), **kwargs, diff --git a/plotly/validators/layout/yaxis/_spikesnap.py b/plotly/validators/layout/yaxis/_spikesnap.py index 6fdf975858..32f68ccb37 100644 --- a/plotly/validators/layout/yaxis/_spikesnap.py +++ b/plotly/validators/layout/yaxis/_spikesnap.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SpikesnapValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["data", "cursor", "hovered data"]), **kwargs, diff --git a/plotly/validators/layout/yaxis/_spikethickness.py b/plotly/validators/layout/yaxis/_spikethickness.py index c5e28fefc5..c8147e2276 100644 --- a/plotly/validators/layout/yaxis/_spikethickness.py +++ b/plotly/validators/layout/yaxis/_spikethickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SpikethicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_tick0.py b/plotly/validators/layout/yaxis/_tick0.py index 7b324c3a0e..f69a971d56 100644 --- a/plotly/validators/layout/yaxis/_tick0.py +++ b/plotly/validators/layout/yaxis/_tick0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/layout/yaxis/_tickangle.py b/plotly/validators/layout/yaxis/_tickangle.py index ba701e15cb..deb649a452 100644 --- a/plotly/validators/layout/yaxis/_tickangle.py +++ b/plotly/validators/layout/yaxis/_tickangle.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_tickcolor.py b/plotly/validators/layout/yaxis/_tickcolor.py index 1e13c351b5..cb1e1c7316 100644 --- a/plotly/validators/layout/yaxis/_tickcolor.py +++ b/plotly/validators/layout/yaxis/_tickcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_tickfont.py b/plotly/validators/layout/yaxis/_tickfont.py index e55d0167a8..d09a6e0919 100644 --- a/plotly/validators/layout/yaxis/_tickfont.py +++ b/plotly/validators/layout/yaxis/_tickfont.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/yaxis/_tickformat.py b/plotly/validators/layout/yaxis/_tickformat.py index fa8214a043..47746922ab 100644 --- a/plotly/validators/layout/yaxis/_tickformat.py +++ b/plotly/validators/layout/yaxis/_tickformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_tickformatstopdefaults.py b/plotly/validators/layout/yaxis/_tickformatstopdefaults.py index 4a6942dd16..3e82bb4216 100644 --- a/plotly/validators/layout/yaxis/_tickformatstopdefaults.py +++ b/plotly/validators/layout/yaxis/_tickformatstopdefaults.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/layout/yaxis/_tickformatstops.py b/plotly/validators/layout/yaxis/_tickformatstops.py index 1aff114f02..fbb3427ec1 100644 --- a/plotly/validators/layout/yaxis/_tickformatstops.py +++ b/plotly/validators/layout/yaxis/_tickformatstops.py @@ -1,50 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/yaxis/_ticklabelindex.py b/plotly/validators/layout/yaxis/_ticklabelindex.py index 6f3df29d1b..c37dc87772 100644 --- a/plotly/validators/layout/yaxis/_ticklabelindex.py +++ b/plotly/validators/layout/yaxis/_ticklabelindex.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelindexValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/layout/yaxis/_ticklabelindexsrc.py b/plotly/validators/layout/yaxis/_ticklabelindexsrc.py index 0d0c77a6f7..3236735400 100644 --- a/plotly/validators/layout/yaxis/_ticklabelindexsrc.py +++ b/plotly/validators/layout/yaxis/_ticklabelindexsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelindexsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_ticklabelmode.py b/plotly/validators/layout/yaxis/_ticklabelmode.py index 164d49f56a..e6c672ef24 100644 --- a/plotly/validators/layout/yaxis/_ticklabelmode.py +++ b/plotly/validators/layout/yaxis/_ticklabelmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop("values", ["instant", "period"]), **kwargs, diff --git a/plotly/validators/layout/yaxis/_ticklabeloverflow.py b/plotly/validators/layout/yaxis/_ticklabeloverflow.py index ff2bf9766c..84f692a922 100644 --- a/plotly/validators/layout/yaxis/_ticklabeloverflow.py +++ b/plotly/validators/layout/yaxis/_ticklabeloverflow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/layout/yaxis/_ticklabelposition.py b/plotly/validators/layout/yaxis/_ticklabelposition.py index 2f49aee90e..0dbfb73f85 100644 --- a/plotly/validators/layout/yaxis/_ticklabelposition.py +++ b/plotly/validators/layout/yaxis/_ticklabelposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/yaxis/_ticklabelshift.py b/plotly/validators/layout/yaxis/_ticklabelshift.py index bbef76d176..fd062b1911 100644 --- a/plotly/validators/layout/yaxis/_ticklabelshift.py +++ b/plotly/validators/layout/yaxis/_ticklabelshift.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelshiftValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_ticklabelstandoff.py b/plotly/validators/layout/yaxis/_ticklabelstandoff.py index c46e83562a..e13105f9a5 100644 --- a/plotly/validators/layout/yaxis/_ticklabelstandoff.py +++ b/plotly/validators/layout/yaxis/_ticklabelstandoff.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstandoffValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_ticklabelstep.py b/plotly/validators/layout/yaxis/_ticklabelstep.py index 683d7825f2..ea71000f5b 100644 --- a/plotly/validators/layout/yaxis/_ticklabelstep.py +++ b/plotly/validators/layout/yaxis/_ticklabelstep.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/yaxis/_ticklen.py b/plotly/validators/layout/yaxis/_ticklen.py index 38cde5b287..c6e5bfdfc8 100644 --- a/plotly/validators/layout/yaxis/_ticklen.py +++ b/plotly/validators/layout/yaxis/_ticklen.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/yaxis/_tickmode.py b/plotly/validators/layout/yaxis/_tickmode.py index a75c20cfa3..02eff1bd4b 100644 --- a/plotly/validators/layout/yaxis/_tickmode.py +++ b/plotly/validators/layout/yaxis/_tickmode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array", "sync"]), diff --git a/plotly/validators/layout/yaxis/_tickprefix.py b/plotly/validators/layout/yaxis/_tickprefix.py index 452a8fd885..82efcb3d58 100644 --- a/plotly/validators/layout/yaxis/_tickprefix.py +++ b/plotly/validators/layout/yaxis/_tickprefix.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_ticks.py b/plotly/validators/layout/yaxis/_ticks.py index 19830c8a90..c14f6e97ea 100644 --- a/plotly/validators/layout/yaxis/_ticks.py +++ b/plotly/validators/layout/yaxis/_ticks.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/layout/yaxis/_tickson.py b/plotly/validators/layout/yaxis/_tickson.py index 9a1ac3649c..dfb00e753d 100644 --- a/plotly/validators/layout/yaxis/_tickson.py +++ b/plotly/validators/layout/yaxis/_tickson.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksonValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop("values", ["labels", "boundaries"]), **kwargs, diff --git a/plotly/validators/layout/yaxis/_ticksuffix.py b/plotly/validators/layout/yaxis/_ticksuffix.py index 6bc108ff66..180d747336 100644 --- a/plotly/validators/layout/yaxis/_ticksuffix.py +++ b/plotly/validators/layout/yaxis/_ticksuffix.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_ticktext.py b/plotly/validators/layout/yaxis/_ticktext.py index 9246831695..d74eda8cd6 100644 --- a/plotly/validators/layout/yaxis/_ticktext.py +++ b/plotly/validators/layout/yaxis/_ticktext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_ticktextsrc.py b/plotly/validators/layout/yaxis/_ticktextsrc.py index c79b304ba4..ed376005ba 100644 --- a/plotly/validators/layout/yaxis/_ticktextsrc.py +++ b/plotly/validators/layout/yaxis/_ticktextsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_tickvals.py b/plotly/validators/layout/yaxis/_tickvals.py index e5e641835f..542a52de93 100644 --- a/plotly/validators/layout/yaxis/_tickvals.py +++ b/plotly/validators/layout/yaxis/_tickvals.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_tickvalssrc.py b/plotly/validators/layout/yaxis/_tickvalssrc.py index 8cf431ca46..0c2a66a087 100644 --- a/plotly/validators/layout/yaxis/_tickvalssrc.py +++ b/plotly/validators/layout/yaxis/_tickvalssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_tickwidth.py b/plotly/validators/layout/yaxis/_tickwidth.py index 2810f16414..b3a24f5e1a 100644 --- a/plotly/validators/layout/yaxis/_tickwidth.py +++ b/plotly/validators/layout/yaxis/_tickwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/yaxis/_title.py b/plotly/validators/layout/yaxis/_title.py index ef6734d219..3e3409e526 100644 --- a/plotly/validators/layout/yaxis/_title.py +++ b/plotly/validators/layout/yaxis/_title.py @@ -1,31 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/layout/yaxis/_type.py b/plotly/validators/layout/yaxis/_type.py index 18796c814c..5b59b1d882 100644 --- a/plotly/validators/layout/yaxis/_type.py +++ b/plotly/validators/layout/yaxis/_type.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", ["-", "linear", "log", "date", "category", "multicategory"] diff --git a/plotly/validators/layout/yaxis/_uirevision.py b/plotly/validators/layout/yaxis/_uirevision.py index 8a33677076..cba6e3d591 100644 --- a/plotly/validators/layout/yaxis/_uirevision.py +++ b/plotly/validators/layout/yaxis/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_visible.py b/plotly/validators/layout/yaxis/_visible.py index 59a07a109a..9a5ff2e519 100644 --- a/plotly/validators/layout/yaxis/_visible.py +++ b/plotly/validators/layout/yaxis/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_zeroline.py b/plotly/validators/layout/yaxis/_zeroline.py index 94a1455e93..0b0dd18abe 100644 --- a/plotly/validators/layout/yaxis/_zeroline.py +++ b/plotly/validators/layout/yaxis/_zeroline.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZerolineValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_zerolinecolor.py b/plotly/validators/layout/yaxis/_zerolinecolor.py index bc75f09442..78fce46c3a 100644 --- a/plotly/validators/layout/yaxis/_zerolinecolor.py +++ b/plotly/validators/layout/yaxis/_zerolinecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZerolinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/_zerolinewidth.py b/plotly/validators/layout/yaxis/_zerolinewidth.py index 8b1f12a3b9..80feab1da2 100644 --- a/plotly/validators/layout/yaxis/_zerolinewidth.py +++ b/plotly/validators/layout/yaxis/_zerolinewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZerolinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/autorangeoptions/__init__.py b/plotly/validators/layout/yaxis/autorangeoptions/__init__.py index 701f84c04e..8ef0b74165 100644 --- a/plotly/validators/layout/yaxis/autorangeoptions/__init__.py +++ b/plotly/validators/layout/yaxis/autorangeoptions/__init__.py @@ -1,25 +1,15 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._minallowed import MinallowedValidator - from ._maxallowed import MaxallowedValidator - from ._includesrc import IncludesrcValidator - from ._include import IncludeValidator - from ._clipmin import ClipminValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._minallowed.MinallowedValidator", + "._maxallowed.MaxallowedValidator", + "._includesrc.IncludesrcValidator", + "._include.IncludeValidator", + "._clipmin.ClipminValidator", + "._clipmax.ClipmaxValidator", + ], +) diff --git a/plotly/validators/layout/yaxis/autorangeoptions/_clipmax.py b/plotly/validators/layout/yaxis/autorangeoptions/_clipmax.py index 2ff2ca46b4..6ca4632eae 100644 --- a/plotly/validators/layout/yaxis/autorangeoptions/_clipmax.py +++ b/plotly/validators/layout/yaxis/autorangeoptions/_clipmax.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ClipmaxValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/layout/yaxis/autorangeoptions/_clipmin.py b/plotly/validators/layout/yaxis/autorangeoptions/_clipmin.py index 4f7df433a4..e8a8dde4c5 100644 --- a/plotly/validators/layout/yaxis/autorangeoptions/_clipmin.py +++ b/plotly/validators/layout/yaxis/autorangeoptions/_clipmin.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ClipminValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/layout/yaxis/autorangeoptions/_include.py b/plotly/validators/layout/yaxis/autorangeoptions/_include.py index 8dcd1d2a1e..c31156a1f3 100644 --- a/plotly/validators/layout/yaxis/autorangeoptions/_include.py +++ b/plotly/validators/layout/yaxis/autorangeoptions/_include.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IncludeValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), diff --git a/plotly/validators/layout/yaxis/autorangeoptions/_includesrc.py b/plotly/validators/layout/yaxis/autorangeoptions/_includesrc.py index a9bd9fe0b2..fefabe59c9 100644 --- a/plotly/validators/layout/yaxis/autorangeoptions/_includesrc.py +++ b/plotly/validators/layout/yaxis/autorangeoptions/_includesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IncludesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/autorangeoptions/_maxallowed.py b/plotly/validators/layout/yaxis/autorangeoptions/_maxallowed.py index 0059a1dba3..d782fd0f35 100644 --- a/plotly/validators/layout/yaxis/autorangeoptions/_maxallowed.py +++ b/plotly/validators/layout/yaxis/autorangeoptions/_maxallowed.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxallowedValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/layout/yaxis/autorangeoptions/_minallowed.py b/plotly/validators/layout/yaxis/autorangeoptions/_minallowed.py index 8008d2f5c2..8ba0b95b08 100644 --- a/plotly/validators/layout/yaxis/autorangeoptions/_minallowed.py +++ b/plotly/validators/layout/yaxis/autorangeoptions/_minallowed.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinallowedValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/layout/yaxis/minor/__init__.py b/plotly/validators/layout/yaxis/minor/__init__.py index 27860a82b8..50b8522165 100644 --- a/plotly/validators/layout/yaxis/minor/__init__.py +++ b/plotly/validators/layout/yaxis/minor/__init__.py @@ -1,41 +1,23 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticks import TicksValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._tickcolor import TickcolorValidator - from ._tick0 import Tick0Validator - from ._showgrid import ShowgridValidator - from ._nticks import NticksValidator - from ._gridwidth import GridwidthValidator - from ._griddash import GriddashValidator - from ._gridcolor import GridcolorValidator - from ._dtick import DtickValidator -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [], - [ - "._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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/layout/yaxis/minor/_dtick.py b/plotly/validators/layout/yaxis/minor/_dtick.py index c1753b0a6a..a42cc59faa 100644 --- a/plotly/validators/layout/yaxis/minor/_dtick.py +++ b/plotly/validators/layout/yaxis/minor/_dtick.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/layout/yaxis/minor/_gridcolor.py b/plotly/validators/layout/yaxis/minor/_gridcolor.py index 308f17541c..303054ed53 100644 --- a/plotly/validators/layout/yaxis/minor/_gridcolor.py +++ b/plotly/validators/layout/yaxis/minor/_gridcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/minor/_griddash.py b/plotly/validators/layout/yaxis/minor/_griddash.py index 1ca8429bf7..01d5ef91eb 100644 --- a/plotly/validators/layout/yaxis/minor/_griddash.py +++ b/plotly/validators/layout/yaxis/minor/_griddash.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GriddashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/layout/yaxis/minor/_gridwidth.py b/plotly/validators/layout/yaxis/minor/_gridwidth.py index b4988e01ee..f8877eda3c 100644 --- a/plotly/validators/layout/yaxis/minor/_gridwidth.py +++ b/plotly/validators/layout/yaxis/minor/_gridwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GridwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/yaxis/minor/_nticks.py b/plotly/validators/layout/yaxis/minor/_nticks.py index e9178e0b78..b6e37ffb13 100644 --- a/plotly/validators/layout/yaxis/minor/_nticks.py +++ b/plotly/validators/layout/yaxis/minor/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/yaxis/minor/_showgrid.py b/plotly/validators/layout/yaxis/minor/_showgrid.py index de9af91867..6fc3ee2c92 100644 --- a/plotly/validators/layout/yaxis/minor/_showgrid.py +++ b/plotly/validators/layout/yaxis/minor/_showgrid.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowgridValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/minor/_tick0.py b/plotly/validators/layout/yaxis/minor/_tick0.py index 113d05e397..ca9636dd0d 100644 --- a/plotly/validators/layout/yaxis/minor/_tick0.py +++ b/plotly/validators/layout/yaxis/minor/_tick0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/layout/yaxis/minor/_tickcolor.py b/plotly/validators/layout/yaxis/minor/_tickcolor.py index 15c4dfe893..c3f5875e30 100644 --- a/plotly/validators/layout/yaxis/minor/_tickcolor.py +++ b/plotly/validators/layout/yaxis/minor/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/minor/_ticklen.py b/plotly/validators/layout/yaxis/minor/_ticklen.py index 6ef5436ee1..59f494dd88 100644 --- a/plotly/validators/layout/yaxis/minor/_ticklen.py +++ b/plotly/validators/layout/yaxis/minor/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/yaxis/minor/_tickmode.py b/plotly/validators/layout/yaxis/minor/_tickmode.py index 8ea6d4d476..8d898d5f22 100644 --- a/plotly/validators/layout/yaxis/minor/_tickmode.py +++ b/plotly/validators/layout/yaxis/minor/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/layout/yaxis/minor/_ticks.py b/plotly/validators/layout/yaxis/minor/_ticks.py index dcc5ba5a15..be3eb30ca4 100644 --- a/plotly/validators/layout/yaxis/minor/_ticks.py +++ b/plotly/validators/layout/yaxis/minor/_ticks.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/layout/yaxis/minor/_tickvals.py b/plotly/validators/layout/yaxis/minor/_tickvals.py index 9c3e7850f8..1b77de4467 100644 --- a/plotly/validators/layout/yaxis/minor/_tickvals.py +++ b/plotly/validators/layout/yaxis/minor/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/minor/_tickvalssrc.py b/plotly/validators/layout/yaxis/minor/_tickvalssrc.py index 9b16c27d73..006aeee3cc 100644 --- a/plotly/validators/layout/yaxis/minor/_tickvalssrc.py +++ b/plotly/validators/layout/yaxis/minor/_tickvalssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/minor/_tickwidth.py b/plotly/validators/layout/yaxis/minor/_tickwidth.py index 7d12597cad..ba7479c176 100644 --- a/plotly/validators/layout/yaxis/minor/_tickwidth.py +++ b/plotly/validators/layout/yaxis/minor/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/yaxis/rangebreak/__init__.py b/plotly/validators/layout/yaxis/rangebreak/__init__.py index 0388365853..4cd89140b8 100644 --- a/plotly/validators/layout/yaxis/rangebreak/__init__.py +++ b/plotly/validators/layout/yaxis/rangebreak/__init__.py @@ -1,27 +1,16 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._values import ValuesValidator - from ._templateitemname import TemplateitemnameValidator - from ._pattern import PatternValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - from ._dvalue import DvalueValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._values.ValuesValidator", + "._templateitemname.TemplateitemnameValidator", + "._pattern.PatternValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dvalue.DvalueValidator", + "._bounds.BoundsValidator", + ], +) diff --git a/plotly/validators/layout/yaxis/rangebreak/_bounds.py b/plotly/validators/layout/yaxis/rangebreak/_bounds.py index 6caf9a64b5..3471ac5776 100644 --- a/plotly/validators/layout/yaxis/rangebreak/_bounds.py +++ b/plotly/validators/layout/yaxis/rangebreak/_bounds.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BoundsValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/yaxis/rangebreak/_dvalue.py b/plotly/validators/layout/yaxis/rangebreak/_dvalue.py index 85f0744574..5ae548b847 100644 --- a/plotly/validators/layout/yaxis/rangebreak/_dvalue.py +++ b/plotly/validators/layout/yaxis/rangebreak/_dvalue.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DvalueValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/yaxis/rangebreak/_enabled.py b/plotly/validators/layout/yaxis/rangebreak/_enabled.py index a302a7f1c9..fb354660ff 100644 --- a/plotly/validators/layout/yaxis/rangebreak/_enabled.py +++ b/plotly/validators/layout/yaxis/rangebreak/_enabled.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/rangebreak/_name.py b/plotly/validators/layout/yaxis/rangebreak/_name.py index 347ac646ad..42e72994f5 100644 --- a/plotly/validators/layout/yaxis/rangebreak/_name.py +++ b/plotly/validators/layout/yaxis/rangebreak/_name.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/rangebreak/_pattern.py b/plotly/validators/layout/yaxis/rangebreak/_pattern.py index 331317d2e5..17ae6a1618 100644 --- a/plotly/validators/layout/yaxis/rangebreak/_pattern.py +++ b/plotly/validators/layout/yaxis/rangebreak/_pattern.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PatternValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["day of week", "hour", ""]), **kwargs, diff --git a/plotly/validators/layout/yaxis/rangebreak/_templateitemname.py b/plotly/validators/layout/yaxis/rangebreak/_templateitemname.py index 00318042eb..a548afc15d 100644 --- a/plotly/validators/layout/yaxis/rangebreak/_templateitemname.py +++ b/plotly/validators/layout/yaxis/rangebreak/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/rangebreak/_values.py b/plotly/validators/layout/yaxis/rangebreak/_values.py index c1076708fb..84dd0dd19c 100644 --- a/plotly/validators/layout/yaxis/rangebreak/_values.py +++ b/plotly/validators/layout/yaxis/rangebreak/_values.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValuesValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_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"}), diff --git a/plotly/validators/layout/yaxis/tickfont/__init__.py b/plotly/validators/layout/yaxis/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/yaxis/tickfont/__init__.py +++ b/plotly/validators/layout/yaxis/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/yaxis/tickfont/_color.py b/plotly/validators/layout/yaxis/tickfont/_color.py index d3e70c57f2..e7fd8c2a2a 100644 --- a/plotly/validators/layout/yaxis/tickfont/_color.py +++ b/plotly/validators/layout/yaxis/tickfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/tickfont/_family.py b/plotly/validators/layout/yaxis/tickfont/_family.py index d311526674..1f35f1d38f 100644 --- a/plotly/validators/layout/yaxis/tickfont/_family.py +++ b/plotly/validators/layout/yaxis/tickfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/yaxis/tickfont/_lineposition.py b/plotly/validators/layout/yaxis/tickfont/_lineposition.py index 99dc6725df..21eef72120 100644 --- a/plotly/validators/layout/yaxis/tickfont/_lineposition.py +++ b/plotly/validators/layout/yaxis/tickfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/yaxis/tickfont/_shadow.py b/plotly/validators/layout/yaxis/tickfont/_shadow.py index dd3c38dd7b..2bc851381e 100644 --- a/plotly/validators/layout/yaxis/tickfont/_shadow.py +++ b/plotly/validators/layout/yaxis/tickfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/tickfont/_size.py b/plotly/validators/layout/yaxis/tickfont/_size.py index 6bd11497ef..2ba8229d6b 100644 --- a/plotly/validators/layout/yaxis/tickfont/_size.py +++ b/plotly/validators/layout/yaxis/tickfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/yaxis/tickfont/_style.py b/plotly/validators/layout/yaxis/tickfont/_style.py index 360946af75..9c1ca4f932 100644 --- a/plotly/validators/layout/yaxis/tickfont/_style.py +++ b/plotly/validators/layout/yaxis/tickfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/yaxis/tickfont/_textcase.py b/plotly/validators/layout/yaxis/tickfont/_textcase.py index d4564daee7..b9f9209128 100644 --- a/plotly/validators/layout/yaxis/tickfont/_textcase.py +++ b/plotly/validators/layout/yaxis/tickfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/yaxis/tickfont/_variant.py b/plotly/validators/layout/yaxis/tickfont/_variant.py index b704344df0..409c3f755e 100644 --- a/plotly/validators/layout/yaxis/tickfont/_variant.py +++ b/plotly/validators/layout/yaxis/tickfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/yaxis/tickfont/_weight.py b/plotly/validators/layout/yaxis/tickfont/_weight.py index 6fc4b64ad2..6fabf090be 100644 --- a/plotly/validators/layout/yaxis/tickfont/_weight.py +++ b/plotly/validators/layout/yaxis/tickfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/layout/yaxis/tickformatstop/__init__.py b/plotly/validators/layout/yaxis/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/layout/yaxis/tickformatstop/__init__.py +++ b/plotly/validators/layout/yaxis/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/layout/yaxis/tickformatstop/_dtickrange.py b/plotly/validators/layout/yaxis/tickformatstop/_dtickrange.py index abf1131c09..2f40b065b6 100644 --- a/plotly/validators/layout/yaxis/tickformatstop/_dtickrange.py +++ b/plotly/validators/layout/yaxis/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), items=kwargs.pop( "items", diff --git a/plotly/validators/layout/yaxis/tickformatstop/_enabled.py b/plotly/validators/layout/yaxis/tickformatstop/_enabled.py index 8d7ce57f4b..0a4de766c1 100644 --- a/plotly/validators/layout/yaxis/tickformatstop/_enabled.py +++ b/plotly/validators/layout/yaxis/tickformatstop/_enabled.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/tickformatstop/_name.py b/plotly/validators/layout/yaxis/tickformatstop/_name.py index d0280b3ba7..f15b9dac9c 100644 --- a/plotly/validators/layout/yaxis/tickformatstop/_name.py +++ b/plotly/validators/layout/yaxis/tickformatstop/_name.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/tickformatstop/_templateitemname.py b/plotly/validators/layout/yaxis/tickformatstop/_templateitemname.py index 7d930dab93..8d24931647 100644 --- a/plotly/validators/layout/yaxis/tickformatstop/_templateitemname.py +++ b/plotly/validators/layout/yaxis/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/tickformatstop/_value.py b/plotly/validators/layout/yaxis/tickformatstop/_value.py index 0a43d80147..395e0c91ca 100644 --- a/plotly/validators/layout/yaxis/tickformatstop/_value.py +++ b/plotly/validators/layout/yaxis/tickformatstop/_value.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/title/__init__.py b/plotly/validators/layout/yaxis/title/__init__.py index e8ad96b4dc..a0bd5d5de8 100644 --- a/plotly/validators/layout/yaxis/title/__init__.py +++ b/plotly/validators/layout/yaxis/title/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._standoff.StandoffValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/layout/yaxis/title/_font.py b/plotly/validators/layout/yaxis/title/_font.py index 16ba168ff8..7f4698c0e6 100644 --- a/plotly/validators/layout/yaxis/title/_font.py +++ b/plotly/validators/layout/yaxis/title/_font.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/layout/yaxis/title/_standoff.py b/plotly/validators/layout/yaxis/title/_standoff.py index eff34897c6..0ef7941175 100644 --- a/plotly/validators/layout/yaxis/title/_standoff.py +++ b/plotly/validators/layout/yaxis/title/_standoff.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StandoffValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/layout/yaxis/title/_text.py b/plotly/validators/layout/yaxis/title/_text.py index f90a0adfb2..ffbbf057c8 100644 --- a/plotly/validators/layout/yaxis/title/_text.py +++ b/plotly/validators/layout/yaxis/title/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/title/font/__init__.py b/plotly/validators/layout/yaxis/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/layout/yaxis/title/font/__init__.py +++ b/plotly/validators/layout/yaxis/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/layout/yaxis/title/font/_color.py b/plotly/validators/layout/yaxis/title/font/_color.py index b1bb5b4af0..5005072ed1 100644 --- a/plotly/validators/layout/yaxis/title/font/_color.py +++ b/plotly/validators/layout/yaxis/title/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/title/font/_family.py b/plotly/validators/layout/yaxis/title/font/_family.py index 3a5ed8d4aa..c83e2c120b 100644 --- a/plotly/validators/layout/yaxis/title/font/_family.py +++ b/plotly/validators/layout/yaxis/title/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/layout/yaxis/title/font/_lineposition.py b/plotly/validators/layout/yaxis/title/font/_lineposition.py index 7b89c32f78..2e1f0c228c 100644 --- a/plotly/validators/layout/yaxis/title/font/_lineposition.py +++ b/plotly/validators/layout/yaxis/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/layout/yaxis/title/font/_shadow.py b/plotly/validators/layout/yaxis/title/font/_shadow.py index 85e4a71a08..21124147f3 100644 --- a/plotly/validators/layout/yaxis/title/font/_shadow.py +++ b/plotly/validators/layout/yaxis/title/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), **kwargs, ) diff --git a/plotly/validators/layout/yaxis/title/font/_size.py b/plotly/validators/layout/yaxis/title/font/_size.py index d7992ca800..7694279180 100644 --- a/plotly/validators/layout/yaxis/title/font/_size.py +++ b/plotly/validators/layout/yaxis/title/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/layout/yaxis/title/font/_style.py b/plotly/validators/layout/yaxis/title/font/_style.py index 3aa7a6db5e..b75b6c2c36 100644 --- a/plotly/validators/layout/yaxis/title/font/_style.py +++ b/plotly/validators/layout/yaxis/title/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/layout/yaxis/title/font/_textcase.py b/plotly/validators/layout/yaxis/title/font/_textcase.py index 0cf33560fc..595f9a586a 100644 --- a/plotly/validators/layout/yaxis/title/font/_textcase.py +++ b/plotly/validators/layout/yaxis/title/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/layout/yaxis/title/font/_variant.py b/plotly/validators/layout/yaxis/title/font/_variant.py index 573b541159..7415960b61 100644 --- a/plotly/validators/layout/yaxis/title/font/_variant.py +++ b/plotly/validators/layout/yaxis/title/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), values=kwargs.pop( "values", diff --git a/plotly/validators/layout/yaxis/title/font/_weight.py b/plotly/validators/layout/yaxis/title/font/_weight.py index c02757ac8e..dfa90cf46e 100644 --- a/plotly/validators/layout/yaxis/title/font/_weight.py +++ b/plotly/validators/layout/yaxis/title/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "ticks"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/mesh3d/__init__.py b/plotly/validators/mesh3d/__init__.py index fc0281e897..959d3c13f7 100644 --- a/plotly/validators/mesh3d/__init__.py +++ b/plotly/validators/mesh3d/__init__.py @@ -1,153 +1,79 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zsrc import ZsrcValidator - from ._zhoverformat import ZhoverformatValidator - from ._zcalendar import ZcalendarValidator - from ._z import ZValidator - from ._ysrc import YsrcValidator - from ._yhoverformat import YhoverformatValidator - from ._ycalendar import YcalendarValidator - from ._y import YValidator - from ._xsrc import XsrcValidator - from ._xhoverformat import XhoverformatValidator - from ._xcalendar import XcalendarValidator - from ._x import XValidator - from ._visible import VisibleValidator - from ._vertexcolorsrc import VertexcolorsrcValidator - from ._vertexcolor import VertexcolorValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._textsrc import TextsrcValidator - from ._text import TextValidator - from ._stream import StreamValidator - from ._showscale import ShowscaleValidator - from ._showlegend import ShowlegendValidator - from ._scene import SceneValidator - from ._reversescale import ReversescaleValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._lightposition import LightpositionValidator - from ._lighting import LightingValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._ksrc import KsrcValidator - from ._k import KValidator - from ._jsrc import JsrcValidator - from ._j import JValidator - from ._isrc import IsrcValidator - from ._intensitysrc import IntensitysrcValidator - from ._intensitymode import IntensitymodeValidator - from ._intensity import IntensityValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._i import IValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._flatshading import FlatshadingValidator - from ._facecolorsrc import FacecolorsrcValidator - from ._facecolor import FacecolorValidator - from ._delaunayaxis import DelaunayaxisValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._contour import ContourValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._color import ColorValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - from ._autocolorscale import AutocolorscaleValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/mesh3d/_alphahull.py b/plotly/validators/mesh3d/_alphahull.py index 64a586ec84..c418465d90 100644 --- a/plotly/validators/mesh3d/_alphahull.py +++ b/plotly/validators/mesh3d/_alphahull.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlphahullValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_autocolorscale.py b/plotly/validators/mesh3d/_autocolorscale.py index dd8347a975..76681a40e0 100644 --- a/plotly/validators/mesh3d/_autocolorscale.py +++ b/plotly/validators/mesh3d/_autocolorscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/mesh3d/_cauto.py b/plotly/validators/mesh3d/_cauto.py index 7bd3f6f396..dba4ea95cc 100644 --- a/plotly/validators/mesh3d/_cauto.py +++ b/plotly/validators/mesh3d/_cauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/mesh3d/_cmax.py b/plotly/validators/mesh3d/_cmax.py index ebf2d12c7f..2243c87761 100644 --- a/plotly/validators/mesh3d/_cmax.py +++ b/plotly/validators/mesh3d/_cmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/mesh3d/_cmid.py b/plotly/validators/mesh3d/_cmid.py index 6b857eb388..a9d1a5a973 100644 --- a/plotly/validators/mesh3d/_cmid.py +++ b/plotly/validators/mesh3d/_cmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/mesh3d/_cmin.py b/plotly/validators/mesh3d/_cmin.py index a7558840e3..61d263eaea 100644 --- a/plotly/validators/mesh3d/_cmin.py +++ b/plotly/validators/mesh3d/_cmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/mesh3d/_color.py b/plotly/validators/mesh3d/_color.py index cf703588bd..c122401139 100644 --- a/plotly/validators/mesh3d/_color.py +++ b/plotly/validators/mesh3d/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), colorscale_path=kwargs.pop("colorscale_path", "mesh3d.colorscale"), **kwargs, diff --git a/plotly/validators/mesh3d/_coloraxis.py b/plotly/validators/mesh3d/_coloraxis.py index d9824c77dc..d4dc614096 100644 --- a/plotly/validators/mesh3d/_coloraxis.py +++ b/plotly/validators/mesh3d/_coloraxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/mesh3d/_colorbar.py b/plotly/validators/mesh3d/_colorbar.py index 1d305d725e..08ac00af9c 100644 --- a/plotly/validators/mesh3d/_colorbar.py +++ b/plotly/validators/mesh3d/_colorbar.py @@ -1,278 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/mesh3d/_colorscale.py b/plotly/validators/mesh3d/_colorscale.py index ca97432488..48bca3ea5b 100644 --- a/plotly/validators/mesh3d/_colorscale.py +++ b/plotly/validators/mesh3d/_colorscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/mesh3d/_contour.py b/plotly/validators/mesh3d/_contour.py index c7d2905e08..54bca7a286 100644 --- a/plotly/validators/mesh3d/_contour.py +++ b/plotly/validators/mesh3d/_contour.py @@ -1,22 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ContourValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/mesh3d/_customdata.py b/plotly/validators/mesh3d/_customdata.py index a908fd5ee1..5b8a3704c0 100644 --- a/plotly/validators/mesh3d/_customdata.py +++ b/plotly/validators/mesh3d/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_customdatasrc.py b/plotly/validators/mesh3d/_customdatasrc.py index f98d7e6b55..ed84c43900 100644 --- a/plotly/validators/mesh3d/_customdatasrc.py +++ b/plotly/validators/mesh3d/_customdatasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_delaunayaxis.py b/plotly/validators/mesh3d/_delaunayaxis.py index b0a030f2dc..2c1e695d55 100644 --- a/plotly/validators/mesh3d/_delaunayaxis.py +++ b/plotly/validators/mesh3d/_delaunayaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DelaunayaxisValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["x", "y", "z"]), **kwargs, diff --git a/plotly/validators/mesh3d/_facecolor.py b/plotly/validators/mesh3d/_facecolor.py index 7d6a091f02..148d293f23 100644 --- a/plotly/validators/mesh3d/_facecolor.py +++ b/plotly/validators/mesh3d/_facecolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FacecolorValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_facecolorsrc.py b/plotly/validators/mesh3d/_facecolorsrc.py index dbe10eb699..77d9424b8d 100644 --- a/plotly/validators/mesh3d/_facecolorsrc.py +++ b/plotly/validators/mesh3d/_facecolorsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FacecolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_flatshading.py b/plotly/validators/mesh3d/_flatshading.py index 549112ce24..d27605f810 100644 --- a/plotly/validators/mesh3d/_flatshading.py +++ b/plotly/validators/mesh3d/_flatshading.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FlatshadingValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_hoverinfo.py b/plotly/validators/mesh3d/_hoverinfo.py index b290e22332..f67609a50e 100644 --- a/plotly/validators/mesh3d/_hoverinfo.py +++ b/plotly/validators/mesh3d/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/mesh3d/_hoverinfosrc.py b/plotly/validators/mesh3d/_hoverinfosrc.py index a0381f5769..3adfc0fcd8 100644 --- a/plotly/validators/mesh3d/_hoverinfosrc.py +++ b/plotly/validators/mesh3d/_hoverinfosrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_hoverlabel.py b/plotly/validators/mesh3d/_hoverlabel.py index c0c1e22c98..c26f1b8479 100644 --- a/plotly/validators/mesh3d/_hoverlabel.py +++ b/plotly/validators/mesh3d/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/mesh3d/_hovertemplate.py b/plotly/validators/mesh3d/_hovertemplate.py index f77974ac35..063a27e30b 100644 --- a/plotly/validators/mesh3d/_hovertemplate.py +++ b/plotly/validators/mesh3d/_hovertemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/mesh3d/_hovertemplatesrc.py b/plotly/validators/mesh3d/_hovertemplatesrc.py index d55be7aec8..205b8b1320 100644 --- a/plotly/validators/mesh3d/_hovertemplatesrc.py +++ b/plotly/validators/mesh3d/_hovertemplatesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_hovertext.py b/plotly/validators/mesh3d/_hovertext.py index 09be0546e4..94316d8887 100644 --- a/plotly/validators/mesh3d/_hovertext.py +++ b/plotly/validators/mesh3d/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/mesh3d/_hovertextsrc.py b/plotly/validators/mesh3d/_hovertextsrc.py index 134ee5f421..a26cf4d3c6 100644 --- a/plotly/validators/mesh3d/_hovertextsrc.py +++ b/plotly/validators/mesh3d/_hovertextsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_i.py b/plotly/validators/mesh3d/_i.py index a0903808b9..0e0e675d69 100644 --- a/plotly/validators/mesh3d/_i.py +++ b/plotly/validators/mesh3d/_i.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_ids.py b/plotly/validators/mesh3d/_ids.py index 0f938d4679..899d78c0ea 100644 --- a/plotly/validators/mesh3d/_ids.py +++ b/plotly/validators/mesh3d/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_idssrc.py b/plotly/validators/mesh3d/_idssrc.py index e0f3a1647b..03da69b72e 100644 --- a/plotly/validators/mesh3d/_idssrc.py +++ b/plotly/validators/mesh3d/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_intensity.py b/plotly/validators/mesh3d/_intensity.py index 5073ec3810..af6a9c1895 100644 --- a/plotly/validators/mesh3d/_intensity.py +++ b/plotly/validators/mesh3d/_intensity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IntensityValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_intensitymode.py b/plotly/validators/mesh3d/_intensitymode.py index c67df2a369..7d9794760e 100644 --- a/plotly/validators/mesh3d/_intensitymode.py +++ b/plotly/validators/mesh3d/_intensitymode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IntensitymodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["vertex", "cell"]), **kwargs, diff --git a/plotly/validators/mesh3d/_intensitysrc.py b/plotly/validators/mesh3d/_intensitysrc.py index c507ac4f25..d618d360b3 100644 --- a/plotly/validators/mesh3d/_intensitysrc.py +++ b/plotly/validators/mesh3d/_intensitysrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IntensitysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_isrc.py b/plotly/validators/mesh3d/_isrc.py index 2a85c26fef..0b81bde005 100644 --- a/plotly/validators/mesh3d/_isrc.py +++ b/plotly/validators/mesh3d/_isrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_j.py b/plotly/validators/mesh3d/_j.py index 12c5c89ab9..6b432a41cb 100644 --- a/plotly/validators/mesh3d/_j.py +++ b/plotly/validators/mesh3d/_j.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class JValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_jsrc.py b/plotly/validators/mesh3d/_jsrc.py index 5e8a69313c..3f3085de8d 100644 --- a/plotly/validators/mesh3d/_jsrc.py +++ b/plotly/validators/mesh3d/_jsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class JsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_k.py b/plotly/validators/mesh3d/_k.py index 264348e340..bc3b64e02f 100644 --- a/plotly/validators/mesh3d/_k.py +++ b/plotly/validators/mesh3d/_k.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class KValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_ksrc.py b/plotly/validators/mesh3d/_ksrc.py index ada524dd00..b115ec2b81 100644 --- a/plotly/validators/mesh3d/_ksrc.py +++ b/plotly/validators/mesh3d/_ksrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class KsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_legend.py b/plotly/validators/mesh3d/_legend.py index bbef4ace31..b09e242438 100644 --- a/plotly/validators/mesh3d/_legend.py +++ b/plotly/validators/mesh3d/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/mesh3d/_legendgroup.py b/plotly/validators/mesh3d/_legendgroup.py index 98c9c6260b..763b1b658a 100644 --- a/plotly/validators/mesh3d/_legendgroup.py +++ b/plotly/validators/mesh3d/_legendgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_legendgrouptitle.py b/plotly/validators/mesh3d/_legendgrouptitle.py index 92d48623ee..d31a869b2e 100644 --- a/plotly/validators/mesh3d/_legendgrouptitle.py +++ b/plotly/validators/mesh3d/_legendgrouptitle.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/mesh3d/_legendrank.py b/plotly/validators/mesh3d/_legendrank.py index 219fe32f12..832778ce73 100644 --- a/plotly/validators/mesh3d/_legendrank.py +++ b/plotly/validators/mesh3d/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_legendwidth.py b/plotly/validators/mesh3d/_legendwidth.py index f7bf80c1a0..b0e0d88850 100644 --- a/plotly/validators/mesh3d/_legendwidth.py +++ b/plotly/validators/mesh3d/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/mesh3d/_lighting.py b/plotly/validators/mesh3d/_lighting.py index 2d16ba1cf8..fe874189f9 100644 --- a/plotly/validators/mesh3d/_lighting.py +++ b/plotly/validators/mesh3d/_lighting.py @@ -1,39 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LightingValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/mesh3d/_lightposition.py b/plotly/validators/mesh3d/_lightposition.py index 4cbac015f6..0753699bab 100644 --- a/plotly/validators/mesh3d/_lightposition.py +++ b/plotly/validators/mesh3d/_lightposition.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LightpositionValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/mesh3d/_meta.py b/plotly/validators/mesh3d/_meta.py index a5dd042af7..57fa2ce5bf 100644 --- a/plotly/validators/mesh3d/_meta.py +++ b/plotly/validators/mesh3d/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/mesh3d/_metasrc.py b/plotly/validators/mesh3d/_metasrc.py index 48c4086d60..9d981ba985 100644 --- a/plotly/validators/mesh3d/_metasrc.py +++ b/plotly/validators/mesh3d/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_name.py b/plotly/validators/mesh3d/_name.py index fe3be2e4d5..0123b18393 100644 --- a/plotly/validators/mesh3d/_name.py +++ b/plotly/validators/mesh3d/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_opacity.py b/plotly/validators/mesh3d/_opacity.py index 7e7a981748..17a405ac6a 100644 --- a/plotly/validators/mesh3d/_opacity.py +++ b/plotly/validators/mesh3d/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/mesh3d/_reversescale.py b/plotly/validators/mesh3d/_reversescale.py index 87a6a3b31f..957d1f419a 100644 --- a/plotly/validators/mesh3d/_reversescale.py +++ b/plotly/validators/mesh3d/_reversescale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_scene.py b/plotly/validators/mesh3d/_scene.py index c6118838a3..b8e73d46f6 100644 --- a/plotly/validators/mesh3d/_scene.py +++ b/plotly/validators/mesh3d/_scene.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SceneValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "scene"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/mesh3d/_showlegend.py b/plotly/validators/mesh3d/_showlegend.py index 03958c8272..69a8f7a894 100644 --- a/plotly/validators/mesh3d/_showlegend.py +++ b/plotly/validators/mesh3d/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_showscale.py b/plotly/validators/mesh3d/_showscale.py index 524d89beb4..62c6a83025 100644 --- a/plotly/validators/mesh3d/_showscale.py +++ b/plotly/validators/mesh3d/_showscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_stream.py b/plotly/validators/mesh3d/_stream.py index a451436124..2ded02088e 100644 --- a/plotly/validators/mesh3d/_stream.py +++ b/plotly/validators/mesh3d/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/mesh3d/_text.py b/plotly/validators/mesh3d/_text.py index 40db816333..5eb09967b7 100644 --- a/plotly/validators/mesh3d/_text.py +++ b/plotly/validators/mesh3d/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/mesh3d/_textsrc.py b/plotly/validators/mesh3d/_textsrc.py index 3a697c55e1..2bcc6fd25e 100644 --- a/plotly/validators/mesh3d/_textsrc.py +++ b/plotly/validators/mesh3d/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_uid.py b/plotly/validators/mesh3d/_uid.py index b6c0fc41bf..ea6ce0d016 100644 --- a/plotly/validators/mesh3d/_uid.py +++ b/plotly/validators/mesh3d/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_uirevision.py b/plotly/validators/mesh3d/_uirevision.py index a01d04509e..968c44d3af 100644 --- a/plotly/validators/mesh3d/_uirevision.py +++ b/plotly/validators/mesh3d/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_vertexcolor.py b/plotly/validators/mesh3d/_vertexcolor.py index c4d866eb24..f3be6a5e19 100644 --- a/plotly/validators/mesh3d/_vertexcolor.py +++ b/plotly/validators/mesh3d/_vertexcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VertexcolorValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_vertexcolorsrc.py b/plotly/validators/mesh3d/_vertexcolorsrc.py index 2a364caa7c..416a4bce67 100644 --- a/plotly/validators/mesh3d/_vertexcolorsrc.py +++ b/plotly/validators/mesh3d/_vertexcolorsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VertexcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_visible.py b/plotly/validators/mesh3d/_visible.py index 8e560dc8cd..cb4cc3322f 100644 --- a/plotly/validators/mesh3d/_visible.py +++ b/plotly/validators/mesh3d/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/mesh3d/_x.py b/plotly/validators/mesh3d/_x.py index 73acdb050c..dea3d9c542 100644 --- a/plotly/validators/mesh3d/_x.py +++ b/plotly/validators/mesh3d/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_xcalendar.py b/plotly/validators/mesh3d/_xcalendar.py index a1189ac771..613fcf65f2 100644 --- a/plotly/validators/mesh3d/_xcalendar.py +++ b/plotly/validators/mesh3d/_xcalendar.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/mesh3d/_xhoverformat.py b/plotly/validators/mesh3d/_xhoverformat.py index a9b1f072d7..7bb771d5c5 100644 --- a/plotly/validators/mesh3d/_xhoverformat.py +++ b/plotly/validators/mesh3d/_xhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_xsrc.py b/plotly/validators/mesh3d/_xsrc.py index 9f0e33c968..c2fd7e027b 100644 --- a/plotly/validators/mesh3d/_xsrc.py +++ b/plotly/validators/mesh3d/_xsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_y.py b/plotly/validators/mesh3d/_y.py index 547a6c72dc..af5915c83d 100644 --- a/plotly/validators/mesh3d/_y.py +++ b/plotly/validators/mesh3d/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_ycalendar.py b/plotly/validators/mesh3d/_ycalendar.py index 5cc69441f4..23b5cd9f8f 100644 --- a/plotly/validators/mesh3d/_ycalendar.py +++ b/plotly/validators/mesh3d/_ycalendar.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/mesh3d/_yhoverformat.py b/plotly/validators/mesh3d/_yhoverformat.py index e3406c1932..60e6a41a71 100644 --- a/plotly/validators/mesh3d/_yhoverformat.py +++ b/plotly/validators/mesh3d/_yhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_ysrc.py b/plotly/validators/mesh3d/_ysrc.py index c48d7007c3..f15acdc4a8 100644 --- a/plotly/validators/mesh3d/_ysrc.py +++ b/plotly/validators/mesh3d/_ysrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_z.py b/plotly/validators/mesh3d/_z.py index bdce7b2b35..bff3a8ac92 100644 --- a/plotly/validators/mesh3d/_z.py +++ b/plotly/validators/mesh3d/_z.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_zcalendar.py b/plotly/validators/mesh3d/_zcalendar.py index 1e6047057e..175bc64397 100644 --- a/plotly/validators/mesh3d/_zcalendar.py +++ b/plotly/validators/mesh3d/_zcalendar.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/mesh3d/_zhoverformat.py b/plotly/validators/mesh3d/_zhoverformat.py index fb79539b1d..45a3b886e8 100644 --- a/plotly/validators/mesh3d/_zhoverformat.py +++ b/plotly/validators/mesh3d/_zhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/mesh3d/_zsrc.py b/plotly/validators/mesh3d/_zsrc.py index 9ec9082ecf..ee465915b0 100644 --- a/plotly/validators/mesh3d/_zsrc.py +++ b/plotly/validators/mesh3d/_zsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/mesh3d/colorbar/__init__.py b/plotly/validators/mesh3d/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/mesh3d/colorbar/__init__.py +++ b/plotly/validators/mesh3d/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/mesh3d/colorbar/_bgcolor.py b/plotly/validators/mesh3d/colorbar/_bgcolor.py index 6c578e4097..9e2c731740 100644 --- a/plotly/validators/mesh3d/colorbar/_bgcolor.py +++ b/plotly/validators/mesh3d/colorbar/_bgcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/mesh3d/colorbar/_bordercolor.py b/plotly/validators/mesh3d/colorbar/_bordercolor.py index 6a90a357d8..48cfca4383 100644 --- a/plotly/validators/mesh3d/colorbar/_bordercolor.py +++ b/plotly/validators/mesh3d/colorbar/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/mesh3d/colorbar/_borderwidth.py b/plotly/validators/mesh3d/colorbar/_borderwidth.py index d8b97390be..223fcf2e6c 100644 --- a/plotly/validators/mesh3d/colorbar/_borderwidth.py +++ b/plotly/validators/mesh3d/colorbar/_borderwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/mesh3d/colorbar/_dtick.py b/plotly/validators/mesh3d/colorbar/_dtick.py index 3a09436984..c57a7afd07 100644 --- a/plotly/validators/mesh3d/colorbar/_dtick.py +++ b/plotly/validators/mesh3d/colorbar/_dtick.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/mesh3d/colorbar/_exponentformat.py b/plotly/validators/mesh3d/colorbar/_exponentformat.py index 126fc58c6b..7242bf2a70 100644 --- a/plotly/validators/mesh3d/colorbar/_exponentformat.py +++ b/plotly/validators/mesh3d/colorbar/_exponentformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/mesh3d/colorbar/_labelalias.py b/plotly/validators/mesh3d/colorbar/_labelalias.py index d102600a50..624ade507b 100644 --- a/plotly/validators/mesh3d/colorbar/_labelalias.py +++ b/plotly/validators/mesh3d/colorbar/_labelalias.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/mesh3d/colorbar/_len.py b/plotly/validators/mesh3d/colorbar/_len.py index 352c951d7a..38067d191e 100644 --- a/plotly/validators/mesh3d/colorbar/_len.py +++ b/plotly/validators/mesh3d/colorbar/_len.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/mesh3d/colorbar/_lenmode.py b/plotly/validators/mesh3d/colorbar/_lenmode.py index 4afff8033e..98152657ed 100644 --- a/plotly/validators/mesh3d/colorbar/_lenmode.py +++ b/plotly/validators/mesh3d/colorbar/_lenmode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/mesh3d/colorbar/_minexponent.py b/plotly/validators/mesh3d/colorbar/_minexponent.py index 8e85b921cc..839fee54f3 100644 --- a/plotly/validators/mesh3d/colorbar/_minexponent.py +++ b/plotly/validators/mesh3d/colorbar/_minexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/mesh3d/colorbar/_nticks.py b/plotly/validators/mesh3d/colorbar/_nticks.py index 28bcc81a45..1400b6e15c 100644 --- a/plotly/validators/mesh3d/colorbar/_nticks.py +++ b/plotly/validators/mesh3d/colorbar/_nticks.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/mesh3d/colorbar/_orientation.py b/plotly/validators/mesh3d/colorbar/_orientation.py index ed0ed31221..d210e2cf8a 100644 --- a/plotly/validators/mesh3d/colorbar/_orientation.py +++ b/plotly/validators/mesh3d/colorbar/_orientation.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/mesh3d/colorbar/_outlinecolor.py b/plotly/validators/mesh3d/colorbar/_outlinecolor.py index 5d1a547579..0b61265cbc 100644 --- a/plotly/validators/mesh3d/colorbar/_outlinecolor.py +++ b/plotly/validators/mesh3d/colorbar/_outlinecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/mesh3d/colorbar/_outlinewidth.py b/plotly/validators/mesh3d/colorbar/_outlinewidth.py index fcf2832edf..b599f09a9b 100644 --- a/plotly/validators/mesh3d/colorbar/_outlinewidth.py +++ b/plotly/validators/mesh3d/colorbar/_outlinewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/mesh3d/colorbar/_separatethousands.py b/plotly/validators/mesh3d/colorbar/_separatethousands.py index 7d59013812..c6d7b62679 100644 --- a/plotly/validators/mesh3d/colorbar/_separatethousands.py +++ b/plotly/validators/mesh3d/colorbar/_separatethousands.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/mesh3d/colorbar/_showexponent.py b/plotly/validators/mesh3d/colorbar/_showexponent.py index c0c8c71f8b..3ff6a48b40 100644 --- a/plotly/validators/mesh3d/colorbar/_showexponent.py +++ b/plotly/validators/mesh3d/colorbar/_showexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/mesh3d/colorbar/_showticklabels.py b/plotly/validators/mesh3d/colorbar/_showticklabels.py index 095f1d7e1c..c46c29a2a7 100644 --- a/plotly/validators/mesh3d/colorbar/_showticklabels.py +++ b/plotly/validators/mesh3d/colorbar/_showticklabels.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/mesh3d/colorbar/_showtickprefix.py b/plotly/validators/mesh3d/colorbar/_showtickprefix.py index 0e04c2eaaa..35ce298704 100644 --- a/plotly/validators/mesh3d/colorbar/_showtickprefix.py +++ b/plotly/validators/mesh3d/colorbar/_showtickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/mesh3d/colorbar/_showticksuffix.py b/plotly/validators/mesh3d/colorbar/_showticksuffix.py index 01c08f3d72..a3ac0f340e 100644 --- a/plotly/validators/mesh3d/colorbar/_showticksuffix.py +++ b/plotly/validators/mesh3d/colorbar/_showticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/mesh3d/colorbar/_thickness.py b/plotly/validators/mesh3d/colorbar/_thickness.py index 4f5b4ac510..b34ea1ce1e 100644 --- a/plotly/validators/mesh3d/colorbar/_thickness.py +++ b/plotly/validators/mesh3d/colorbar/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/mesh3d/colorbar/_thicknessmode.py b/plotly/validators/mesh3d/colorbar/_thicknessmode.py index 2d79d18d53..fe555f5950 100644 --- a/plotly/validators/mesh3d/colorbar/_thicknessmode.py +++ b/plotly/validators/mesh3d/colorbar/_thicknessmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/mesh3d/colorbar/_tick0.py b/plotly/validators/mesh3d/colorbar/_tick0.py index 4fe4143067..82c653a2be 100644 --- a/plotly/validators/mesh3d/colorbar/_tick0.py +++ b/plotly/validators/mesh3d/colorbar/_tick0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/mesh3d/colorbar/_tickangle.py b/plotly/validators/mesh3d/colorbar/_tickangle.py index 1a0c0043b8..74055fa7a4 100644 --- a/plotly/validators/mesh3d/colorbar/_tickangle.py +++ b/plotly/validators/mesh3d/colorbar/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/mesh3d/colorbar/_tickcolor.py b/plotly/validators/mesh3d/colorbar/_tickcolor.py index 2bb17e502c..5c52c92821 100644 --- a/plotly/validators/mesh3d/colorbar/_tickcolor.py +++ b/plotly/validators/mesh3d/colorbar/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/mesh3d/colorbar/_tickfont.py b/plotly/validators/mesh3d/colorbar/_tickfont.py index 294afe9563..a4837128de 100644 --- a/plotly/validators/mesh3d/colorbar/_tickfont.py +++ b/plotly/validators/mesh3d/colorbar/_tickfont.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/mesh3d/colorbar/_tickformat.py b/plotly/validators/mesh3d/colorbar/_tickformat.py index dfffc66423..8b767a1e90 100644 --- a/plotly/validators/mesh3d/colorbar/_tickformat.py +++ b/plotly/validators/mesh3d/colorbar/_tickformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/mesh3d/colorbar/_tickformatstopdefaults.py b/plotly/validators/mesh3d/colorbar/_tickformatstopdefaults.py index e7287e3b32..b95f5b65d5 100644 --- a/plotly/validators/mesh3d/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/mesh3d/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/mesh3d/colorbar/_tickformatstops.py b/plotly/validators/mesh3d/colorbar/_tickformatstops.py index d0fbcb8e56..f50a688dba 100644 --- a/plotly/validators/mesh3d/colorbar/_tickformatstops.py +++ b/plotly/validators/mesh3d/colorbar/_tickformatstops.py @@ -1,50 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/mesh3d/colorbar/_ticklabeloverflow.py b/plotly/validators/mesh3d/colorbar/_ticklabeloverflow.py index 5ccaf2969c..eef6d05c12 100644 --- a/plotly/validators/mesh3d/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/mesh3d/colorbar/_ticklabeloverflow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/mesh3d/colorbar/_ticklabelposition.py b/plotly/validators/mesh3d/colorbar/_ticklabelposition.py index cd9e75fe3b..ecb424b406 100644 --- a/plotly/validators/mesh3d/colorbar/_ticklabelposition.py +++ b/plotly/validators/mesh3d/colorbar/_ticklabelposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/mesh3d/colorbar/_ticklabelstep.py b/plotly/validators/mesh3d/colorbar/_ticklabelstep.py index a04073019c..3e9a89af09 100644 --- a/plotly/validators/mesh3d/colorbar/_ticklabelstep.py +++ b/plotly/validators/mesh3d/colorbar/_ticklabelstep.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/mesh3d/colorbar/_ticklen.py b/plotly/validators/mesh3d/colorbar/_ticklen.py index fd202c3df1..763472bc3a 100644 --- a/plotly/validators/mesh3d/colorbar/_ticklen.py +++ b/plotly/validators/mesh3d/colorbar/_ticklen.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/mesh3d/colorbar/_tickmode.py b/plotly/validators/mesh3d/colorbar/_tickmode.py index a10a575ef2..6fe5a67a63 100644 --- a/plotly/validators/mesh3d/colorbar/_tickmode.py +++ b/plotly/validators/mesh3d/colorbar/_tickmode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/mesh3d/colorbar/_tickprefix.py b/plotly/validators/mesh3d/colorbar/_tickprefix.py index 93809e0807..8a37379d8f 100644 --- a/plotly/validators/mesh3d/colorbar/_tickprefix.py +++ b/plotly/validators/mesh3d/colorbar/_tickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/mesh3d/colorbar/_ticks.py b/plotly/validators/mesh3d/colorbar/_ticks.py index 394edf64da..98407635af 100644 --- a/plotly/validators/mesh3d/colorbar/_ticks.py +++ b/plotly/validators/mesh3d/colorbar/_ticks.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/mesh3d/colorbar/_ticksuffix.py b/plotly/validators/mesh3d/colorbar/_ticksuffix.py index 4f3a0e8678..d29cf1cc94 100644 --- a/plotly/validators/mesh3d/colorbar/_ticksuffix.py +++ b/plotly/validators/mesh3d/colorbar/_ticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/mesh3d/colorbar/_ticktext.py b/plotly/validators/mesh3d/colorbar/_ticktext.py index 07881b488c..803ee371f5 100644 --- a/plotly/validators/mesh3d/colorbar/_ticktext.py +++ b/plotly/validators/mesh3d/colorbar/_ticktext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/mesh3d/colorbar/_ticktextsrc.py b/plotly/validators/mesh3d/colorbar/_ticktextsrc.py index 6f175f2bc0..449ebcd624 100644 --- a/plotly/validators/mesh3d/colorbar/_ticktextsrc.py +++ b/plotly/validators/mesh3d/colorbar/_ticktextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/mesh3d/colorbar/_tickvals.py b/plotly/validators/mesh3d/colorbar/_tickvals.py index 73c49f26ce..f3cf64e040 100644 --- a/plotly/validators/mesh3d/colorbar/_tickvals.py +++ b/plotly/validators/mesh3d/colorbar/_tickvals.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/mesh3d/colorbar/_tickvalssrc.py b/plotly/validators/mesh3d/colorbar/_tickvalssrc.py index 6d5f809a7d..65365ec5eb 100644 --- a/plotly/validators/mesh3d/colorbar/_tickvalssrc.py +++ b/plotly/validators/mesh3d/colorbar/_tickvalssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/mesh3d/colorbar/_tickwidth.py b/plotly/validators/mesh3d/colorbar/_tickwidth.py index 8bd49e0778..3747513513 100644 --- a/plotly/validators/mesh3d/colorbar/_tickwidth.py +++ b/plotly/validators/mesh3d/colorbar/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/mesh3d/colorbar/_title.py b/plotly/validators/mesh3d/colorbar/_title.py index fe7375c376..e7f6955a37 100644 --- a/plotly/validators/mesh3d/colorbar/_title.py +++ b/plotly/validators/mesh3d/colorbar/_title.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/mesh3d/colorbar/_x.py b/plotly/validators/mesh3d/colorbar/_x.py index 44bb8c3387..cbe158ee4c 100644 --- a/plotly/validators/mesh3d/colorbar/_x.py +++ b/plotly/validators/mesh3d/colorbar/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/mesh3d/colorbar/_xanchor.py b/plotly/validators/mesh3d/colorbar/_xanchor.py index 13a12efb45..223fef2c70 100644 --- a/plotly/validators/mesh3d/colorbar/_xanchor.py +++ b/plotly/validators/mesh3d/colorbar/_xanchor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/mesh3d/colorbar/_xpad.py b/plotly/validators/mesh3d/colorbar/_xpad.py index 72599df24b..a369f7462c 100644 --- a/plotly/validators/mesh3d/colorbar/_xpad.py +++ b/plotly/validators/mesh3d/colorbar/_xpad.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/mesh3d/colorbar/_xref.py b/plotly/validators/mesh3d/colorbar/_xref.py index 4bb7015f83..16acb923c4 100644 --- a/plotly/validators/mesh3d/colorbar/_xref.py +++ b/plotly/validators/mesh3d/colorbar/_xref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/mesh3d/colorbar/_y.py b/plotly/validators/mesh3d/colorbar/_y.py index 8d1d774aa7..9f030bf187 100644 --- a/plotly/validators/mesh3d/colorbar/_y.py +++ b/plotly/validators/mesh3d/colorbar/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/mesh3d/colorbar/_yanchor.py b/plotly/validators/mesh3d/colorbar/_yanchor.py index 71c4498d78..7d3a28e721 100644 --- a/plotly/validators/mesh3d/colorbar/_yanchor.py +++ b/plotly/validators/mesh3d/colorbar/_yanchor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/mesh3d/colorbar/_ypad.py b/plotly/validators/mesh3d/colorbar/_ypad.py index 7287f8f6de..6fc5b10d0a 100644 --- a/plotly/validators/mesh3d/colorbar/_ypad.py +++ b/plotly/validators/mesh3d/colorbar/_ypad.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/mesh3d/colorbar/_yref.py b/plotly/validators/mesh3d/colorbar/_yref.py index d43f94780e..d7128c9342 100644 --- a/plotly/validators/mesh3d/colorbar/_yref.py +++ b/plotly/validators/mesh3d/colorbar/_yref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/mesh3d/colorbar/tickfont/__init__.py b/plotly/validators/mesh3d/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/mesh3d/colorbar/tickfont/__init__.py +++ b/plotly/validators/mesh3d/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/mesh3d/colorbar/tickfont/_color.py b/plotly/validators/mesh3d/colorbar/tickfont/_color.py index 59844b4c83..5201c445c2 100644 --- a/plotly/validators/mesh3d/colorbar/tickfont/_color.py +++ b/plotly/validators/mesh3d/colorbar/tickfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/mesh3d/colorbar/tickfont/_family.py b/plotly/validators/mesh3d/colorbar/tickfont/_family.py index 3385b258c8..b456cede73 100644 --- a/plotly/validators/mesh3d/colorbar/tickfont/_family.py +++ b/plotly/validators/mesh3d/colorbar/tickfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/mesh3d/colorbar/tickfont/_lineposition.py b/plotly/validators/mesh3d/colorbar/tickfont/_lineposition.py index 76bcfe1b7a..915f411efc 100644 --- a/plotly/validators/mesh3d/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/mesh3d/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/mesh3d/colorbar/tickfont/_shadow.py b/plotly/validators/mesh3d/colorbar/tickfont/_shadow.py index 31070d3017..da39047031 100644 --- a/plotly/validators/mesh3d/colorbar/tickfont/_shadow.py +++ b/plotly/validators/mesh3d/colorbar/tickfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/mesh3d/colorbar/tickfont/_size.py b/plotly/validators/mesh3d/colorbar/tickfont/_size.py index 432c1bfa6c..5c92a80948 100644 --- a/plotly/validators/mesh3d/colorbar/tickfont/_size.py +++ b/plotly/validators/mesh3d/colorbar/tickfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/mesh3d/colorbar/tickfont/_style.py b/plotly/validators/mesh3d/colorbar/tickfont/_style.py index ea3f21e26e..1df6021832 100644 --- a/plotly/validators/mesh3d/colorbar/tickfont/_style.py +++ b/plotly/validators/mesh3d/colorbar/tickfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/mesh3d/colorbar/tickfont/_textcase.py b/plotly/validators/mesh3d/colorbar/tickfont/_textcase.py index 0dcb8be556..c7acb81251 100644 --- a/plotly/validators/mesh3d/colorbar/tickfont/_textcase.py +++ b/plotly/validators/mesh3d/colorbar/tickfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/mesh3d/colorbar/tickfont/_variant.py b/plotly/validators/mesh3d/colorbar/tickfont/_variant.py index 46d77e006a..b6ef561b28 100644 --- a/plotly/validators/mesh3d/colorbar/tickfont/_variant.py +++ b/plotly/validators/mesh3d/colorbar/tickfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/mesh3d/colorbar/tickfont/_weight.py b/plotly/validators/mesh3d/colorbar/tickfont/_weight.py index 12db86faa7..f81550c532 100644 --- a/plotly/validators/mesh3d/colorbar/tickfont/_weight.py +++ b/plotly/validators/mesh3d/colorbar/tickfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/mesh3d/colorbar/tickformatstop/__init__.py b/plotly/validators/mesh3d/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/mesh3d/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/mesh3d/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/mesh3d/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/mesh3d/colorbar/tickformatstop/_dtickrange.py index 3bb31f785b..bf4e8d21d0 100644 --- a/plotly/validators/mesh3d/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/mesh3d/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( "items", diff --git a/plotly/validators/mesh3d/colorbar/tickformatstop/_enabled.py b/plotly/validators/mesh3d/colorbar/tickformatstop/_enabled.py index 26cb57def0..49c021c660 100644 --- a/plotly/validators/mesh3d/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/mesh3d/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/mesh3d/colorbar/tickformatstop/_name.py b/plotly/validators/mesh3d/colorbar/tickformatstop/_name.py index cd1368ebbb..2da6563bf7 100644 --- a/plotly/validators/mesh3d/colorbar/tickformatstop/_name.py +++ b/plotly/validators/mesh3d/colorbar/tickformatstop/_name.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/mesh3d/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/mesh3d/colorbar/tickformatstop/_templateitemname.py index 00b6f041a2..0f30578db6 100644 --- a/plotly/validators/mesh3d/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/mesh3d/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/mesh3d/colorbar/tickformatstop/_value.py b/plotly/validators/mesh3d/colorbar/tickformatstop/_value.py index ff420cd3a7..9b9c4f41a3 100644 --- a/plotly/validators/mesh3d/colorbar/tickformatstop/_value.py +++ b/plotly/validators/mesh3d/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/mesh3d/colorbar/title/__init__.py b/plotly/validators/mesh3d/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/mesh3d/colorbar/title/__init__.py +++ b/plotly/validators/mesh3d/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/mesh3d/colorbar/title/_font.py b/plotly/validators/mesh3d/colorbar/title/_font.py index e22394dba8..65cce49000 100644 --- a/plotly/validators/mesh3d/colorbar/title/_font.py +++ b/plotly/validators/mesh3d/colorbar/title/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/mesh3d/colorbar/title/_side.py b/plotly/validators/mesh3d/colorbar/title/_side.py index dd268347fb..482960c000 100644 --- a/plotly/validators/mesh3d/colorbar/title/_side.py +++ b/plotly/validators/mesh3d/colorbar/title/_side.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/mesh3d/colorbar/title/_text.py b/plotly/validators/mesh3d/colorbar/title/_text.py index 1e909db4d7..ace84a839d 100644 --- a/plotly/validators/mesh3d/colorbar/title/_text.py +++ b/plotly/validators/mesh3d/colorbar/title/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/mesh3d/colorbar/title/font/__init__.py b/plotly/validators/mesh3d/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/mesh3d/colorbar/title/font/__init__.py +++ b/plotly/validators/mesh3d/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/mesh3d/colorbar/title/font/_color.py b/plotly/validators/mesh3d/colorbar/title/font/_color.py index f8b7ecbcdd..0c7b43abea 100644 --- a/plotly/validators/mesh3d/colorbar/title/font/_color.py +++ b/plotly/validators/mesh3d/colorbar/title/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/mesh3d/colorbar/title/font/_family.py b/plotly/validators/mesh3d/colorbar/title/font/_family.py index a3513443e9..69c6a8faca 100644 --- a/plotly/validators/mesh3d/colorbar/title/font/_family.py +++ b/plotly/validators/mesh3d/colorbar/title/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/mesh3d/colorbar/title/font/_lineposition.py b/plotly/validators/mesh3d/colorbar/title/font/_lineposition.py index 0b1eab2efb..1a12a4f4b6 100644 --- a/plotly/validators/mesh3d/colorbar/title/font/_lineposition.py +++ b/plotly/validators/mesh3d/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/mesh3d/colorbar/title/font/_shadow.py b/plotly/validators/mesh3d/colorbar/title/font/_shadow.py index e695824e37..75c4a6e1b8 100644 --- a/plotly/validators/mesh3d/colorbar/title/font/_shadow.py +++ b/plotly/validators/mesh3d/colorbar/title/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/mesh3d/colorbar/title/font/_size.py b/plotly/validators/mesh3d/colorbar/title/font/_size.py index 86f9d48012..dbd9ba7e3a 100644 --- a/plotly/validators/mesh3d/colorbar/title/font/_size.py +++ b/plotly/validators/mesh3d/colorbar/title/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/mesh3d/colorbar/title/font/_style.py b/plotly/validators/mesh3d/colorbar/title/font/_style.py index 801faa8d11..3ef5fc8f15 100644 --- a/plotly/validators/mesh3d/colorbar/title/font/_style.py +++ b/plotly/validators/mesh3d/colorbar/title/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/mesh3d/colorbar/title/font/_textcase.py b/plotly/validators/mesh3d/colorbar/title/font/_textcase.py index b89153f3f1..e1f98b80fc 100644 --- a/plotly/validators/mesh3d/colorbar/title/font/_textcase.py +++ b/plotly/validators/mesh3d/colorbar/title/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/mesh3d/colorbar/title/font/_variant.py b/plotly/validators/mesh3d/colorbar/title/font/_variant.py index 0193cbf41c..d2bfc5fd98 100644 --- a/plotly/validators/mesh3d/colorbar/title/font/_variant.py +++ b/plotly/validators/mesh3d/colorbar/title/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/mesh3d/colorbar/title/font/_weight.py b/plotly/validators/mesh3d/colorbar/title/font/_weight.py index 283e157431..8558202991 100644 --- a/plotly/validators/mesh3d/colorbar/title/font/_weight.py +++ b/plotly/validators/mesh3d/colorbar/title/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/mesh3d/contour/__init__.py b/plotly/validators/mesh3d/contour/__init__.py index 8d51b1d4c0..1a1cc3031d 100644 --- a/plotly/validators/mesh3d/contour/__init__.py +++ b/plotly/validators/mesh3d/contour/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._width.WidthValidator", "._show.ShowValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/mesh3d/contour/_color.py b/plotly/validators/mesh3d/contour/_color.py index deb30ad2cf..674429891a 100644 --- a/plotly/validators/mesh3d/contour/_color.py +++ b/plotly/validators/mesh3d/contour/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/mesh3d/contour/_show.py b/plotly/validators/mesh3d/contour/_show.py index c72bca0b0d..d69bf45559 100644 --- a/plotly/validators/mesh3d/contour/_show.py +++ b/plotly/validators/mesh3d/contour/_show.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/mesh3d/contour/_width.py b/plotly/validators/mesh3d/contour/_width.py index c802091da0..018f60e460 100644 --- a/plotly/validators/mesh3d/contour/_width.py +++ b/plotly/validators/mesh3d/contour/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 16), min=kwargs.pop("min", 1), diff --git a/plotly/validators/mesh3d/hoverlabel/__init__.py b/plotly/validators/mesh3d/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/mesh3d/hoverlabel/__init__.py +++ b/plotly/validators/mesh3d/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/mesh3d/hoverlabel/_align.py b/plotly/validators/mesh3d/hoverlabel/_align.py index 68b77db449..276240e03e 100644 --- a/plotly/validators/mesh3d/hoverlabel/_align.py +++ b/plotly/validators/mesh3d/hoverlabel/_align.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/mesh3d/hoverlabel/_alignsrc.py b/plotly/validators/mesh3d/hoverlabel/_alignsrc.py index 2c47097ded..f2cdbae462 100644 --- a/plotly/validators/mesh3d/hoverlabel/_alignsrc.py +++ b/plotly/validators/mesh3d/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/mesh3d/hoverlabel/_bgcolor.py b/plotly/validators/mesh3d/hoverlabel/_bgcolor.py index 53294c715f..0b29de1303 100644 --- a/plotly/validators/mesh3d/hoverlabel/_bgcolor.py +++ b/plotly/validators/mesh3d/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/mesh3d/hoverlabel/_bgcolorsrc.py b/plotly/validators/mesh3d/hoverlabel/_bgcolorsrc.py index c0db8126f1..aaf8be48f5 100644 --- a/plotly/validators/mesh3d/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/mesh3d/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/mesh3d/hoverlabel/_bordercolor.py b/plotly/validators/mesh3d/hoverlabel/_bordercolor.py index 0a78a29107..647f59307e 100644 --- a/plotly/validators/mesh3d/hoverlabel/_bordercolor.py +++ b/plotly/validators/mesh3d/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/mesh3d/hoverlabel/_bordercolorsrc.py b/plotly/validators/mesh3d/hoverlabel/_bordercolorsrc.py index e90b827597..adce26e06d 100644 --- a/plotly/validators/mesh3d/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/mesh3d/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/mesh3d/hoverlabel/_font.py b/plotly/validators/mesh3d/hoverlabel/_font.py index feccc71542..6cf2e6e3b1 100644 --- a/plotly/validators/mesh3d/hoverlabel/_font.py +++ b/plotly/validators/mesh3d/hoverlabel/_font.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/mesh3d/hoverlabel/_namelength.py b/plotly/validators/mesh3d/hoverlabel/_namelength.py index 1e3d1023ce..6c51b4019e 100644 --- a/plotly/validators/mesh3d/hoverlabel/_namelength.py +++ b/plotly/validators/mesh3d/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/mesh3d/hoverlabel/_namelengthsrc.py b/plotly/validators/mesh3d/hoverlabel/_namelengthsrc.py index 99c62351f8..ae21890304 100644 --- a/plotly/validators/mesh3d/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/mesh3d/hoverlabel/_namelengthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/mesh3d/hoverlabel/font/__init__.py b/plotly/validators/mesh3d/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/mesh3d/hoverlabel/font/__init__.py +++ b/plotly/validators/mesh3d/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/mesh3d/hoverlabel/font/_color.py b/plotly/validators/mesh3d/hoverlabel/font/_color.py index f0294f2720..12aa742f76 100644 --- a/plotly/validators/mesh3d/hoverlabel/font/_color.py +++ b/plotly/validators/mesh3d/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/mesh3d/hoverlabel/font/_colorsrc.py b/plotly/validators/mesh3d/hoverlabel/font/_colorsrc.py index 259b05e89b..9da3d2cc1c 100644 --- a/plotly/validators/mesh3d/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/mesh3d/hoverlabel/font/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/mesh3d/hoverlabel/font/_family.py b/plotly/validators/mesh3d/hoverlabel/font/_family.py index 1686bb8da7..840ccc632f 100644 --- a/plotly/validators/mesh3d/hoverlabel/font/_family.py +++ b/plotly/validators/mesh3d/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/mesh3d/hoverlabel/font/_familysrc.py b/plotly/validators/mesh3d/hoverlabel/font/_familysrc.py index c3dc8b5b1c..c46d18b5e3 100644 --- a/plotly/validators/mesh3d/hoverlabel/font/_familysrc.py +++ b/plotly/validators/mesh3d/hoverlabel/font/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/mesh3d/hoverlabel/font/_lineposition.py b/plotly/validators/mesh3d/hoverlabel/font/_lineposition.py index d8e6a68415..f6647ff0db 100644 --- a/plotly/validators/mesh3d/hoverlabel/font/_lineposition.py +++ b/plotly/validators/mesh3d/hoverlabel/font/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/mesh3d/hoverlabel/font/_linepositionsrc.py b/plotly/validators/mesh3d/hoverlabel/font/_linepositionsrc.py index 6a4520f92d..f5877907e8 100644 --- a/plotly/validators/mesh3d/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/mesh3d/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/mesh3d/hoverlabel/font/_shadow.py b/plotly/validators/mesh3d/hoverlabel/font/_shadow.py index 517c4858a0..251036ea6e 100644 --- a/plotly/validators/mesh3d/hoverlabel/font/_shadow.py +++ b/plotly/validators/mesh3d/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/mesh3d/hoverlabel/font/_shadowsrc.py b/plotly/validators/mesh3d/hoverlabel/font/_shadowsrc.py index 5154851b8e..5b55b6c933 100644 --- a/plotly/validators/mesh3d/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/mesh3d/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/mesh3d/hoverlabel/font/_size.py b/plotly/validators/mesh3d/hoverlabel/font/_size.py index ab968fb69d..d115c4700d 100644 --- a/plotly/validators/mesh3d/hoverlabel/font/_size.py +++ b/plotly/validators/mesh3d/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/mesh3d/hoverlabel/font/_sizesrc.py b/plotly/validators/mesh3d/hoverlabel/font/_sizesrc.py index cadd6f52bb..db8edd5f90 100644 --- a/plotly/validators/mesh3d/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/mesh3d/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/mesh3d/hoverlabel/font/_style.py b/plotly/validators/mesh3d/hoverlabel/font/_style.py index 579c39d7a8..027439c7b3 100644 --- a/plotly/validators/mesh3d/hoverlabel/font/_style.py +++ b/plotly/validators/mesh3d/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/mesh3d/hoverlabel/font/_stylesrc.py b/plotly/validators/mesh3d/hoverlabel/font/_stylesrc.py index 3c1d3b2454..e36fb3f987 100644 --- a/plotly/validators/mesh3d/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/mesh3d/hoverlabel/font/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/mesh3d/hoverlabel/font/_textcase.py b/plotly/validators/mesh3d/hoverlabel/font/_textcase.py index 870b59c236..96b704acf0 100644 --- a/plotly/validators/mesh3d/hoverlabel/font/_textcase.py +++ b/plotly/validators/mesh3d/hoverlabel/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/mesh3d/hoverlabel/font/_textcasesrc.py b/plotly/validators/mesh3d/hoverlabel/font/_textcasesrc.py index da0b4d8978..6c7bf4f5d9 100644 --- a/plotly/validators/mesh3d/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/mesh3d/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/mesh3d/hoverlabel/font/_variant.py b/plotly/validators/mesh3d/hoverlabel/font/_variant.py index c8ea2d7f35..6a87506bb0 100644 --- a/plotly/validators/mesh3d/hoverlabel/font/_variant.py +++ b/plotly/validators/mesh3d/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/mesh3d/hoverlabel/font/_variantsrc.py b/plotly/validators/mesh3d/hoverlabel/font/_variantsrc.py index dda2acbfd6..14f84db362 100644 --- a/plotly/validators/mesh3d/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/mesh3d/hoverlabel/font/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/mesh3d/hoverlabel/font/_weight.py b/plotly/validators/mesh3d/hoverlabel/font/_weight.py index 887832e5cd..ef79ce66c0 100644 --- a/plotly/validators/mesh3d/hoverlabel/font/_weight.py +++ b/plotly/validators/mesh3d/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/mesh3d/hoverlabel/font/_weightsrc.py b/plotly/validators/mesh3d/hoverlabel/font/_weightsrc.py index 3a308f1a6b..5c49cd7c24 100644 --- a/plotly/validators/mesh3d/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/mesh3d/hoverlabel/font/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/mesh3d/legendgrouptitle/__init__.py b/plotly/validators/mesh3d/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/mesh3d/legendgrouptitle/__init__.py +++ b/plotly/validators/mesh3d/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/mesh3d/legendgrouptitle/_font.py b/plotly/validators/mesh3d/legendgrouptitle/_font.py index 846e0f7c51..00afb2f6e5 100644 --- a/plotly/validators/mesh3d/legendgrouptitle/_font.py +++ b/plotly/validators/mesh3d/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/mesh3d/legendgrouptitle/_text.py b/plotly/validators/mesh3d/legendgrouptitle/_text.py index 5ce1b70d58..76ee979bb7 100644 --- a/plotly/validators/mesh3d/legendgrouptitle/_text.py +++ b/plotly/validators/mesh3d/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/mesh3d/legendgrouptitle/font/__init__.py b/plotly/validators/mesh3d/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/mesh3d/legendgrouptitle/font/__init__.py +++ b/plotly/validators/mesh3d/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/mesh3d/legendgrouptitle/font/_color.py b/plotly/validators/mesh3d/legendgrouptitle/font/_color.py index 117b25134b..83559f6e05 100644 --- a/plotly/validators/mesh3d/legendgrouptitle/font/_color.py +++ b/plotly/validators/mesh3d/legendgrouptitle/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/mesh3d/legendgrouptitle/font/_family.py b/plotly/validators/mesh3d/legendgrouptitle/font/_family.py index 79bfe78e93..81501bbc4a 100644 --- a/plotly/validators/mesh3d/legendgrouptitle/font/_family.py +++ b/plotly/validators/mesh3d/legendgrouptitle/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/mesh3d/legendgrouptitle/font/_lineposition.py b/plotly/validators/mesh3d/legendgrouptitle/font/_lineposition.py index c71e4d8a81..ed5a79aed1 100644 --- a/plotly/validators/mesh3d/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/mesh3d/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/mesh3d/legendgrouptitle/font/_shadow.py b/plotly/validators/mesh3d/legendgrouptitle/font/_shadow.py index 5bfc135c02..95b6f352af 100644 --- a/plotly/validators/mesh3d/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/mesh3d/legendgrouptitle/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/mesh3d/legendgrouptitle/font/_size.py b/plotly/validators/mesh3d/legendgrouptitle/font/_size.py index b0c6a9d243..879e5f514d 100644 --- a/plotly/validators/mesh3d/legendgrouptitle/font/_size.py +++ b/plotly/validators/mesh3d/legendgrouptitle/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/mesh3d/legendgrouptitle/font/_style.py b/plotly/validators/mesh3d/legendgrouptitle/font/_style.py index cd89b20f22..90874ddcc7 100644 --- a/plotly/validators/mesh3d/legendgrouptitle/font/_style.py +++ b/plotly/validators/mesh3d/legendgrouptitle/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/mesh3d/legendgrouptitle/font/_textcase.py b/plotly/validators/mesh3d/legendgrouptitle/font/_textcase.py index 7462e94d20..6f4dc28d51 100644 --- a/plotly/validators/mesh3d/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/mesh3d/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/mesh3d/legendgrouptitle/font/_variant.py b/plotly/validators/mesh3d/legendgrouptitle/font/_variant.py index c0f1be19da..a69bbaa0cf 100644 --- a/plotly/validators/mesh3d/legendgrouptitle/font/_variant.py +++ b/plotly/validators/mesh3d/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/mesh3d/legendgrouptitle/font/_weight.py b/plotly/validators/mesh3d/legendgrouptitle/font/_weight.py index e15028aad3..3757ffdbed 100644 --- a/plotly/validators/mesh3d/legendgrouptitle/font/_weight.py +++ b/plotly/validators/mesh3d/legendgrouptitle/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/mesh3d/lighting/__init__.py b/plotly/validators/mesh3d/lighting/__init__.py index 028351f35d..1f11e1b86f 100644 --- a/plotly/validators/mesh3d/lighting/__init__.py +++ b/plotly/validators/mesh3d/lighting/__init__.py @@ -1,27 +1,16 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._vertexnormalsepsilon import VertexnormalsepsilonValidator - from ._specular import SpecularValidator - from ._roughness import RoughnessValidator - from ._fresnel import FresnelValidator - from ._facenormalsepsilon import FacenormalsepsilonValidator - from ._diffuse import DiffuseValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._vertexnormalsepsilon.VertexnormalsepsilonValidator", + "._specular.SpecularValidator", + "._roughness.RoughnessValidator", + "._fresnel.FresnelValidator", + "._facenormalsepsilon.FacenormalsepsilonValidator", + "._diffuse.DiffuseValidator", + "._ambient.AmbientValidator", + ], +) diff --git a/plotly/validators/mesh3d/lighting/_ambient.py b/plotly/validators/mesh3d/lighting/_ambient.py index 769de352b7..6d98d714f7 100644 --- a/plotly/validators/mesh3d/lighting/_ambient.py +++ b/plotly/validators/mesh3d/lighting/_ambient.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AmbientValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/mesh3d/lighting/_diffuse.py b/plotly/validators/mesh3d/lighting/_diffuse.py index 127bee655e..a1b05a44ad 100644 --- a/plotly/validators/mesh3d/lighting/_diffuse.py +++ b/plotly/validators/mesh3d/lighting/_diffuse.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DiffuseValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/mesh3d/lighting/_facenormalsepsilon.py b/plotly/validators/mesh3d/lighting/_facenormalsepsilon.py index 111cfb31a5..733aa7565f 100644 --- a/plotly/validators/mesh3d/lighting/_facenormalsepsilon.py +++ b/plotly/validators/mesh3d/lighting/_facenormalsepsilon.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FacenormalsepsilonValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/mesh3d/lighting/_fresnel.py b/plotly/validators/mesh3d/lighting/_fresnel.py index b80d4539ea..61974cc396 100644 --- a/plotly/validators/mesh3d/lighting/_fresnel.py +++ b/plotly/validators/mesh3d/lighting/_fresnel.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FresnelValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 5), min=kwargs.pop("min", 0), diff --git a/plotly/validators/mesh3d/lighting/_roughness.py b/plotly/validators/mesh3d/lighting/_roughness.py index 81e2fbf26e..ebc154d8cd 100644 --- a/plotly/validators/mesh3d/lighting/_roughness.py +++ b/plotly/validators/mesh3d/lighting/_roughness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RoughnessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/mesh3d/lighting/_specular.py b/plotly/validators/mesh3d/lighting/_specular.py index 5de8e034da..12128ef090 100644 --- a/plotly/validators/mesh3d/lighting/_specular.py +++ b/plotly/validators/mesh3d/lighting/_specular.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SpecularValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 2), min=kwargs.pop("min", 0), diff --git a/plotly/validators/mesh3d/lighting/_vertexnormalsepsilon.py b/plotly/validators/mesh3d/lighting/_vertexnormalsepsilon.py index 1b34819b4a..60ba469897 100644 --- a/plotly/validators/mesh3d/lighting/_vertexnormalsepsilon.py +++ b/plotly/validators/mesh3d/lighting/_vertexnormalsepsilon.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VertexnormalsepsilonValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/mesh3d/lightposition/__init__.py b/plotly/validators/mesh3d/lightposition/__init__.py index 52779f59bc..8c47d2db5f 100644 --- a/plotly/validators/mesh3d/lightposition/__init__.py +++ b/plotly/validators/mesh3d/lightposition/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] +) diff --git a/plotly/validators/mesh3d/lightposition/_x.py b/plotly/validators/mesh3d/lightposition/_x.py index 5005071f76..d4e8c71ded 100644 --- a/plotly/validators/mesh3d/lightposition/_x.py +++ b/plotly/validators/mesh3d/lightposition/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 100000), min=kwargs.pop("min", -100000), diff --git a/plotly/validators/mesh3d/lightposition/_y.py b/plotly/validators/mesh3d/lightposition/_y.py index 3e9c8b58b2..54078eb4d9 100644 --- a/plotly/validators/mesh3d/lightposition/_y.py +++ b/plotly/validators/mesh3d/lightposition/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 100000), min=kwargs.pop("min", -100000), diff --git a/plotly/validators/mesh3d/lightposition/_z.py b/plotly/validators/mesh3d/lightposition/_z.py index 886e1e997a..f2251cdb3b 100644 --- a/plotly/validators/mesh3d/lightposition/_z.py +++ b/plotly/validators/mesh3d/lightposition/_z.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 100000), min=kwargs.pop("min", -100000), diff --git a/plotly/validators/mesh3d/stream/__init__.py b/plotly/validators/mesh3d/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/mesh3d/stream/__init__.py +++ b/plotly/validators/mesh3d/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/mesh3d/stream/_maxpoints.py b/plotly/validators/mesh3d/stream/_maxpoints.py index 7fff7ac574..dbb65ae928 100644 --- a/plotly/validators/mesh3d/stream/_maxpoints.py +++ b/plotly/validators/mesh3d/stream/_maxpoints.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/mesh3d/stream/_token.py b/plotly/validators/mesh3d/stream/_token.py index e69cb6fd2a..c262c420c3 100644 --- a/plotly/validators/mesh3d/stream/_token.py +++ b/plotly/validators/mesh3d/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/ohlc/__init__.py b/plotly/validators/ohlc/__init__.py index 1a42406dad..5204a70089 100644 --- a/plotly/validators/ohlc/__init__.py +++ b/plotly/validators/ohlc/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zorder import ZorderValidator - from ._yhoverformat import YhoverformatValidator - from ._yaxis import YaxisValidator - from ._xsrc import XsrcValidator - from ._xperiodalignment import XperiodalignmentValidator - from ._xperiod0 import Xperiod0Validator - from ._xperiod import XperiodValidator - from ._xhoverformat import XhoverformatValidator - from ._xcalendar import XcalendarValidator - from ._xaxis import XaxisValidator - from ._x import XValidator - from ._visible import VisibleValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._tickwidth import TickwidthValidator - from ._textsrc import TextsrcValidator - from ._text import TextValidator - from ._stream import StreamValidator - from ._showlegend import ShowlegendValidator - from ._selectedpoints import SelectedpointsValidator - from ._opensrc import OpensrcValidator - from ._open import OpenValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._lowsrc import LowsrcValidator - from ._low import LowValidator - from ._line import LineValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._increasing import IncreasingValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._highsrc import HighsrcValidator - from ._high import HighValidator - from ._decreasing import DecreasingValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._closesrc import ClosesrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/ohlc/_close.py b/plotly/validators/ohlc/_close.py index db559093b4..0a215bbb76 100644 --- a/plotly/validators/ohlc/_close.py +++ b/plotly/validators/ohlc/_close.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CloseValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/ohlc/_closesrc.py b/plotly/validators/ohlc/_closesrc.py index 2771f53cd3..4e2152cbff 100644 --- a/plotly/validators/ohlc/_closesrc.py +++ b/plotly/validators/ohlc/_closesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ClosesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/ohlc/_customdata.py b/plotly/validators/ohlc/_customdata.py index 3f41e79e0c..8612c2a0a7 100644 --- a/plotly/validators/ohlc/_customdata.py +++ b/plotly/validators/ohlc/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/ohlc/_customdatasrc.py b/plotly/validators/ohlc/_customdatasrc.py index ee03e1cecd..7a38b7b690 100644 --- a/plotly/validators/ohlc/_customdatasrc.py +++ b/plotly/validators/ohlc/_customdatasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/ohlc/_decreasing.py b/plotly/validators/ohlc/_decreasing.py index c381e50479..e33258ccf2 100644 --- a/plotly/validators/ohlc/_decreasing.py +++ b/plotly/validators/ohlc/_decreasing.py @@ -1,18 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DecreasingValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/ohlc/_high.py b/plotly/validators/ohlc/_high.py index a5479d72cc..2d8ecca045 100644 --- a/plotly/validators/ohlc/_high.py +++ b/plotly/validators/ohlc/_high.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HighValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/ohlc/_highsrc.py b/plotly/validators/ohlc/_highsrc.py index f20ed3abf4..52092d82a7 100644 --- a/plotly/validators/ohlc/_highsrc.py +++ b/plotly/validators/ohlc/_highsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HighsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/ohlc/_hoverinfo.py b/plotly/validators/ohlc/_hoverinfo.py index 9254660975..a9b038c46e 100644 --- a/plotly/validators/ohlc/_hoverinfo.py +++ b/plotly/validators/ohlc/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/ohlc/_hoverinfosrc.py b/plotly/validators/ohlc/_hoverinfosrc.py index 72a5b7f29b..d145f304e1 100644 --- a/plotly/validators/ohlc/_hoverinfosrc.py +++ b/plotly/validators/ohlc/_hoverinfosrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/ohlc/_hoverlabel.py b/plotly/validators/ohlc/_hoverlabel.py index 5282edd55c..02e5f9b552 100644 --- a/plotly/validators/ohlc/_hoverlabel.py +++ b/plotly/validators/ohlc/_hoverlabel.py @@ -1,53 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/ohlc/_hovertext.py b/plotly/validators/ohlc/_hovertext.py index 2661378f5d..d22ebb0b9b 100644 --- a/plotly/validators/ohlc/_hovertext.py +++ b/plotly/validators/ohlc/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/ohlc/_hovertextsrc.py b/plotly/validators/ohlc/_hovertextsrc.py index eceaef417d..9f87ea0b15 100644 --- a/plotly/validators/ohlc/_hovertextsrc.py +++ b/plotly/validators/ohlc/_hovertextsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/ohlc/_ids.py b/plotly/validators/ohlc/_ids.py index 8aa15d6bc3..02b5046f71 100644 --- a/plotly/validators/ohlc/_ids.py +++ b/plotly/validators/ohlc/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/ohlc/_idssrc.py b/plotly/validators/ohlc/_idssrc.py index 87560b854a..b99b7ef987 100644 --- a/plotly/validators/ohlc/_idssrc.py +++ b/plotly/validators/ohlc/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/ohlc/_increasing.py b/plotly/validators/ohlc/_increasing.py index cb264e90c5..96e9a74865 100644 --- a/plotly/validators/ohlc/_increasing.py +++ b/plotly/validators/ohlc/_increasing.py @@ -1,18 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IncreasingValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/ohlc/_legend.py b/plotly/validators/ohlc/_legend.py index 9a781df3fb..209f4f6782 100644 --- a/plotly/validators/ohlc/_legend.py +++ b/plotly/validators/ohlc/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/ohlc/_legendgroup.py b/plotly/validators/ohlc/_legendgroup.py index 384e89c7f3..814c8c77c7 100644 --- a/plotly/validators/ohlc/_legendgroup.py +++ b/plotly/validators/ohlc/_legendgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/ohlc/_legendgrouptitle.py b/plotly/validators/ohlc/_legendgrouptitle.py index ce6838a648..5b36554d26 100644 --- a/plotly/validators/ohlc/_legendgrouptitle.py +++ b/plotly/validators/ohlc/_legendgrouptitle.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/ohlc/_legendrank.py b/plotly/validators/ohlc/_legendrank.py index 14de6bd00b..5553c836b5 100644 --- a/plotly/validators/ohlc/_legendrank.py +++ b/plotly/validators/ohlc/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/ohlc/_legendwidth.py b/plotly/validators/ohlc/_legendwidth.py index f56dd212cb..668f5efd35 100644 --- a/plotly/validators/ohlc/_legendwidth.py +++ b/plotly/validators/ohlc/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/ohlc/_line.py b/plotly/validators/ohlc/_line.py index 9a21f90b7e..9a56530552 100644 --- a/plotly/validators/ohlc/_line.py +++ b/plotly/validators/ohlc/_line.py @@ -1,28 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/ohlc/_low.py b/plotly/validators/ohlc/_low.py index 4cd11320ce..52628d018e 100644 --- a/plotly/validators/ohlc/_low.py +++ b/plotly/validators/ohlc/_low.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LowValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/ohlc/_lowsrc.py b/plotly/validators/ohlc/_lowsrc.py index 8f6f1f7579..abe260495e 100644 --- a/plotly/validators/ohlc/_lowsrc.py +++ b/plotly/validators/ohlc/_lowsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/ohlc/_meta.py b/plotly/validators/ohlc/_meta.py index 6c202a044e..f74e3ba8e3 100644 --- a/plotly/validators/ohlc/_meta.py +++ b/plotly/validators/ohlc/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/ohlc/_metasrc.py b/plotly/validators/ohlc/_metasrc.py index ca6abf77b0..ecad58c97f 100644 --- a/plotly/validators/ohlc/_metasrc.py +++ b/plotly/validators/ohlc/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/ohlc/_name.py b/plotly/validators/ohlc/_name.py index 02483d3221..3ef48a505a 100644 --- a/plotly/validators/ohlc/_name.py +++ b/plotly/validators/ohlc/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/ohlc/_opacity.py b/plotly/validators/ohlc/_opacity.py index e6bd77598a..60af5eb55d 100644 --- a/plotly/validators/ohlc/_opacity.py +++ b/plotly/validators/ohlc/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/ohlc/_open.py b/plotly/validators/ohlc/_open.py index 6f24d8ee90..182462ee94 100644 --- a/plotly/validators/ohlc/_open.py +++ b/plotly/validators/ohlc/_open.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpenValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/ohlc/_opensrc.py b/plotly/validators/ohlc/_opensrc.py index 3ff8022c53..66527746a6 100644 --- a/plotly/validators/ohlc/_opensrc.py +++ b/plotly/validators/ohlc/_opensrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpensrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/ohlc/_selectedpoints.py b/plotly/validators/ohlc/_selectedpoints.py index fa0ceaef67..843be09f52 100644 --- a/plotly/validators/ohlc/_selectedpoints.py +++ b/plotly/validators/ohlc/_selectedpoints.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/ohlc/_showlegend.py b/plotly/validators/ohlc/_showlegend.py index 6ae29267b1..99f6685c08 100644 --- a/plotly/validators/ohlc/_showlegend.py +++ b/plotly/validators/ohlc/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/ohlc/_stream.py b/plotly/validators/ohlc/_stream.py index 86c0b2c310..2d3c9b15b5 100644 --- a/plotly/validators/ohlc/_stream.py +++ b/plotly/validators/ohlc/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/ohlc/_text.py b/plotly/validators/ohlc/_text.py index 755cea4df9..455d0bbc0f 100644 --- a/plotly/validators/ohlc/_text.py +++ b/plotly/validators/ohlc/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/ohlc/_textsrc.py b/plotly/validators/ohlc/_textsrc.py index 0e67a0e084..6efb533f0f 100644 --- a/plotly/validators/ohlc/_textsrc.py +++ b/plotly/validators/ohlc/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/ohlc/_tickwidth.py b/plotly/validators/ohlc/_tickwidth.py index 46e86c700b..66d9d494b2 100644 --- a/plotly/validators/ohlc/_tickwidth.py +++ b/plotly/validators/ohlc/_tickwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 0.5), min=kwargs.pop("min", 0), diff --git a/plotly/validators/ohlc/_uid.py b/plotly/validators/ohlc/_uid.py index 49f0605fc4..de4e93288a 100644 --- a/plotly/validators/ohlc/_uid.py +++ b/plotly/validators/ohlc/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/ohlc/_uirevision.py b/plotly/validators/ohlc/_uirevision.py index 6e995793cf..4e1bfc1369 100644 --- a/plotly/validators/ohlc/_uirevision.py +++ b/plotly/validators/ohlc/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/ohlc/_visible.py b/plotly/validators/ohlc/_visible.py index 11b73c8a81..66d8d0672f 100644 --- a/plotly/validators/ohlc/_visible.py +++ b/plotly/validators/ohlc/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/ohlc/_x.py b/plotly/validators/ohlc/_x.py index 0a2f55f8fa..52f1ac1496 100644 --- a/plotly/validators/ohlc/_x.py +++ b/plotly/validators/ohlc/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/ohlc/_xaxis.py b/plotly/validators/ohlc/_xaxis.py index f9c35cdccd..5c3b5a8423 100644 --- a/plotly/validators/ohlc/_xaxis.py +++ b/plotly/validators/ohlc/_xaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "x"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/ohlc/_xcalendar.py b/plotly/validators/ohlc/_xcalendar.py index f28fd4fe9c..e98296052d 100644 --- a/plotly/validators/ohlc/_xcalendar.py +++ b/plotly/validators/ohlc/_xcalendar.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/ohlc/_xhoverformat.py b/plotly/validators/ohlc/_xhoverformat.py index 6799e6862e..fb3ff8d308 100644 --- a/plotly/validators/ohlc/_xhoverformat.py +++ b/plotly/validators/ohlc/_xhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/ohlc/_xperiod.py b/plotly/validators/ohlc/_xperiod.py index 5d5c1db7e9..d9a4bc8eea 100644 --- a/plotly/validators/ohlc/_xperiod.py +++ b/plotly/validators/ohlc/_xperiod.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XperiodValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/ohlc/_xperiod0.py b/plotly/validators/ohlc/_xperiod0.py index af448df0ec..4612c88ee5 100644 --- a/plotly/validators/ohlc/_xperiod0.py +++ b/plotly/validators/ohlc/_xperiod0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Xperiod0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/ohlc/_xperiodalignment.py b/plotly/validators/ohlc/_xperiodalignment.py index 1b7c457c28..5dea0092c6 100644 --- a/plotly/validators/ohlc/_xperiodalignment.py +++ b/plotly/validators/ohlc/_xperiodalignment.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["start", "middle", "end"]), **kwargs, diff --git a/plotly/validators/ohlc/_xsrc.py b/plotly/validators/ohlc/_xsrc.py index 64d3311b0b..a85c06e094 100644 --- a/plotly/validators/ohlc/_xsrc.py +++ b/plotly/validators/ohlc/_xsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/ohlc/_yaxis.py b/plotly/validators/ohlc/_yaxis.py index 1cf93cf090..1e02c63155 100644 --- a/plotly/validators/ohlc/_yaxis.py +++ b/plotly/validators/ohlc/_yaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "y"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/ohlc/_yhoverformat.py b/plotly/validators/ohlc/_yhoverformat.py index 417dd86710..932b581ac5 100644 --- a/plotly/validators/ohlc/_yhoverformat.py +++ b/plotly/validators/ohlc/_yhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/ohlc/_zorder.py b/plotly/validators/ohlc/_zorder.py index b3ad7f3450..fd39867458 100644 --- a/plotly/validators/ohlc/_zorder.py +++ b/plotly/validators/ohlc/_zorder.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZorderValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/ohlc/decreasing/__init__.py b/plotly/validators/ohlc/decreasing/__init__.py index 90c7f7b127..f7acb5b172 100644 --- a/plotly/validators/ohlc/decreasing/__init__.py +++ b/plotly/validators/ohlc/decreasing/__init__.py @@ -1,11 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import(__name__, [], ["._line.LineValidator"]) diff --git a/plotly/validators/ohlc/decreasing/_line.py b/plotly/validators/ohlc/decreasing/_line.py index 49c9834417..443d3d507e 100644 --- a/plotly/validators/ohlc/decreasing/_line.py +++ b/plotly/validators/ohlc/decreasing/_line.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/ohlc/decreasing/line/__init__.py b/plotly/validators/ohlc/decreasing/line/__init__.py index cff4146651..c5140ef758 100644 --- a/plotly/validators/ohlc/decreasing/line/__init__.py +++ b/plotly/validators/ohlc/decreasing/line/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._width.WidthValidator", "._dash.DashValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/ohlc/decreasing/line/_color.py b/plotly/validators/ohlc/decreasing/line/_color.py index c5210d83e1..39c4a61aa7 100644 --- a/plotly/validators/ohlc/decreasing/line/_color.py +++ b/plotly/validators/ohlc/decreasing/line/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/ohlc/decreasing/line/_dash.py b/plotly/validators/ohlc/decreasing/line/_dash.py index 31d708295f..1bae1e5f70 100644 --- a/plotly/validators/ohlc/decreasing/line/_dash.py +++ b/plotly/validators/ohlc/decreasing/line/_dash.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/ohlc/decreasing/line/_width.py b/plotly/validators/ohlc/decreasing/line/_width.py index b7bf0fcc75..545a72c1ea 100644 --- a/plotly/validators/ohlc/decreasing/line/_width.py +++ b/plotly/validators/ohlc/decreasing/line/_width.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/ohlc/hoverlabel/__init__.py b/plotly/validators/ohlc/hoverlabel/__init__.py index 5504c36e76..f4773f7cdd 100644 --- a/plotly/validators/ohlc/hoverlabel/__init__.py +++ b/plotly/validators/ohlc/hoverlabel/__init__.py @@ -1,33 +1,19 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._split import SplitValidator - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/ohlc/hoverlabel/_align.py b/plotly/validators/ohlc/hoverlabel/_align.py index bc7eda954c..ae02eb9aa9 100644 --- a/plotly/validators/ohlc/hoverlabel/_align.py +++ b/plotly/validators/ohlc/hoverlabel/_align.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/ohlc/hoverlabel/_alignsrc.py b/plotly/validators/ohlc/hoverlabel/_alignsrc.py index ec375c561a..64e469d888 100644 --- a/plotly/validators/ohlc/hoverlabel/_alignsrc.py +++ b/plotly/validators/ohlc/hoverlabel/_alignsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/ohlc/hoverlabel/_bgcolor.py b/plotly/validators/ohlc/hoverlabel/_bgcolor.py index 9a75cdeb06..6028afdd1c 100644 --- a/plotly/validators/ohlc/hoverlabel/_bgcolor.py +++ b/plotly/validators/ohlc/hoverlabel/_bgcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/ohlc/hoverlabel/_bgcolorsrc.py b/plotly/validators/ohlc/hoverlabel/_bgcolorsrc.py index 6b45c48e53..5319fd079e 100644 --- a/plotly/validators/ohlc/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/ohlc/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/ohlc/hoverlabel/_bordercolor.py b/plotly/validators/ohlc/hoverlabel/_bordercolor.py index 911d1748cf..13d699709c 100644 --- a/plotly/validators/ohlc/hoverlabel/_bordercolor.py +++ b/plotly/validators/ohlc/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/ohlc/hoverlabel/_bordercolorsrc.py b/plotly/validators/ohlc/hoverlabel/_bordercolorsrc.py index aad3319a42..d3ebe16912 100644 --- a/plotly/validators/ohlc/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/ohlc/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/ohlc/hoverlabel/_font.py b/plotly/validators/ohlc/hoverlabel/_font.py index 95c54cc625..56b5078e87 100644 --- a/plotly/validators/ohlc/hoverlabel/_font.py +++ b/plotly/validators/ohlc/hoverlabel/_font.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/ohlc/hoverlabel/_namelength.py b/plotly/validators/ohlc/hoverlabel/_namelength.py index 7f9c1d44b3..c948ecb20b 100644 --- a/plotly/validators/ohlc/hoverlabel/_namelength.py +++ b/plotly/validators/ohlc/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/ohlc/hoverlabel/_namelengthsrc.py b/plotly/validators/ohlc/hoverlabel/_namelengthsrc.py index dae5da745c..43dccd8161 100644 --- a/plotly/validators/ohlc/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/ohlc/hoverlabel/_namelengthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/ohlc/hoverlabel/_split.py b/plotly/validators/ohlc/hoverlabel/_split.py index fec36fbc9d..b8a0d3bd73 100644 --- a/plotly/validators/ohlc/hoverlabel/_split.py +++ b/plotly/validators/ohlc/hoverlabel/_split.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SplitValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/ohlc/hoverlabel/font/__init__.py b/plotly/validators/ohlc/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/ohlc/hoverlabel/font/__init__.py +++ b/plotly/validators/ohlc/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/ohlc/hoverlabel/font/_color.py b/plotly/validators/ohlc/hoverlabel/font/_color.py index 651f3962ff..45151614b0 100644 --- a/plotly/validators/ohlc/hoverlabel/font/_color.py +++ b/plotly/validators/ohlc/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/ohlc/hoverlabel/font/_colorsrc.py b/plotly/validators/ohlc/hoverlabel/font/_colorsrc.py index ea45957a5b..09424a07bf 100644 --- a/plotly/validators/ohlc/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/ohlc/hoverlabel/font/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/ohlc/hoverlabel/font/_family.py b/plotly/validators/ohlc/hoverlabel/font/_family.py index 069e3ad65e..553ec8235b 100644 --- a/plotly/validators/ohlc/hoverlabel/font/_family.py +++ b/plotly/validators/ohlc/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/ohlc/hoverlabel/font/_familysrc.py b/plotly/validators/ohlc/hoverlabel/font/_familysrc.py index bcca06d013..6533437f12 100644 --- a/plotly/validators/ohlc/hoverlabel/font/_familysrc.py +++ b/plotly/validators/ohlc/hoverlabel/font/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/ohlc/hoverlabel/font/_lineposition.py b/plotly/validators/ohlc/hoverlabel/font/_lineposition.py index f714945af2..29b8558e6d 100644 --- a/plotly/validators/ohlc/hoverlabel/font/_lineposition.py +++ b/plotly/validators/ohlc/hoverlabel/font/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/ohlc/hoverlabel/font/_linepositionsrc.py b/plotly/validators/ohlc/hoverlabel/font/_linepositionsrc.py index 8295e4fb8f..0e373a580e 100644 --- a/plotly/validators/ohlc/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/ohlc/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/ohlc/hoverlabel/font/_shadow.py b/plotly/validators/ohlc/hoverlabel/font/_shadow.py index 9dcd667869..259ed4c81f 100644 --- a/plotly/validators/ohlc/hoverlabel/font/_shadow.py +++ b/plotly/validators/ohlc/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/ohlc/hoverlabel/font/_shadowsrc.py b/plotly/validators/ohlc/hoverlabel/font/_shadowsrc.py index 245a43baa5..815588a68f 100644 --- a/plotly/validators/ohlc/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/ohlc/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/ohlc/hoverlabel/font/_size.py b/plotly/validators/ohlc/hoverlabel/font/_size.py index ee715c4486..4a3d1c2cee 100644 --- a/plotly/validators/ohlc/hoverlabel/font/_size.py +++ b/plotly/validators/ohlc/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/ohlc/hoverlabel/font/_sizesrc.py b/plotly/validators/ohlc/hoverlabel/font/_sizesrc.py index d55cf9b11b..8a382aa330 100644 --- a/plotly/validators/ohlc/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/ohlc/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/ohlc/hoverlabel/font/_style.py b/plotly/validators/ohlc/hoverlabel/font/_style.py index dc163fa92d..f390be993b 100644 --- a/plotly/validators/ohlc/hoverlabel/font/_style.py +++ b/plotly/validators/ohlc/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/ohlc/hoverlabel/font/_stylesrc.py b/plotly/validators/ohlc/hoverlabel/font/_stylesrc.py index bb8b5b3d4d..209c1d30fb 100644 --- a/plotly/validators/ohlc/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/ohlc/hoverlabel/font/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/ohlc/hoverlabel/font/_textcase.py b/plotly/validators/ohlc/hoverlabel/font/_textcase.py index 13dbb51284..a3e19bedc3 100644 --- a/plotly/validators/ohlc/hoverlabel/font/_textcase.py +++ b/plotly/validators/ohlc/hoverlabel/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/ohlc/hoverlabel/font/_textcasesrc.py b/plotly/validators/ohlc/hoverlabel/font/_textcasesrc.py index 71eefd3592..a749bfc5f4 100644 --- a/plotly/validators/ohlc/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/ohlc/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/ohlc/hoverlabel/font/_variant.py b/plotly/validators/ohlc/hoverlabel/font/_variant.py index 6901823618..3bad69e1aa 100644 --- a/plotly/validators/ohlc/hoverlabel/font/_variant.py +++ b/plotly/validators/ohlc/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/ohlc/hoverlabel/font/_variantsrc.py b/plotly/validators/ohlc/hoverlabel/font/_variantsrc.py index 532e222dd8..5de3bbb25d 100644 --- a/plotly/validators/ohlc/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/ohlc/hoverlabel/font/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/ohlc/hoverlabel/font/_weight.py b/plotly/validators/ohlc/hoverlabel/font/_weight.py index f539a52bcb..6829330533 100644 --- a/plotly/validators/ohlc/hoverlabel/font/_weight.py +++ b/plotly/validators/ohlc/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/ohlc/hoverlabel/font/_weightsrc.py b/plotly/validators/ohlc/hoverlabel/font/_weightsrc.py index 4a7af52e77..2ab72d1539 100644 --- a/plotly/validators/ohlc/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/ohlc/hoverlabel/font/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/ohlc/increasing/__init__.py b/plotly/validators/ohlc/increasing/__init__.py index 90c7f7b127..f7acb5b172 100644 --- a/plotly/validators/ohlc/increasing/__init__.py +++ b/plotly/validators/ohlc/increasing/__init__.py @@ -1,11 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import(__name__, [], ["._line.LineValidator"]) diff --git a/plotly/validators/ohlc/increasing/_line.py b/plotly/validators/ohlc/increasing/_line.py index 2ed0a29d83..35f5557246 100644 --- a/plotly/validators/ohlc/increasing/_line.py +++ b/plotly/validators/ohlc/increasing/_line.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/ohlc/increasing/line/__init__.py b/plotly/validators/ohlc/increasing/line/__init__.py index cff4146651..c5140ef758 100644 --- a/plotly/validators/ohlc/increasing/line/__init__.py +++ b/plotly/validators/ohlc/increasing/line/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._width.WidthValidator", "._dash.DashValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/ohlc/increasing/line/_color.py b/plotly/validators/ohlc/increasing/line/_color.py index b1f75cb258..29db7b5306 100644 --- a/plotly/validators/ohlc/increasing/line/_color.py +++ b/plotly/validators/ohlc/increasing/line/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/ohlc/increasing/line/_dash.py b/plotly/validators/ohlc/increasing/line/_dash.py index 9ee2a5a805..23cd32d632 100644 --- a/plotly/validators/ohlc/increasing/line/_dash.py +++ b/plotly/validators/ohlc/increasing/line/_dash.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/ohlc/increasing/line/_width.py b/plotly/validators/ohlc/increasing/line/_width.py index be5368b686..53e72dd50a 100644 --- a/plotly/validators/ohlc/increasing/line/_width.py +++ b/plotly/validators/ohlc/increasing/line/_width.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/ohlc/legendgrouptitle/__init__.py b/plotly/validators/ohlc/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/ohlc/legendgrouptitle/__init__.py +++ b/plotly/validators/ohlc/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/ohlc/legendgrouptitle/_font.py b/plotly/validators/ohlc/legendgrouptitle/_font.py index e6bc08065c..7a9ad1bc13 100644 --- a/plotly/validators/ohlc/legendgrouptitle/_font.py +++ b/plotly/validators/ohlc/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/ohlc/legendgrouptitle/_text.py b/plotly/validators/ohlc/legendgrouptitle/_text.py index 1583995858..327c3f94d7 100644 --- a/plotly/validators/ohlc/legendgrouptitle/_text.py +++ b/plotly/validators/ohlc/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/ohlc/legendgrouptitle/font/__init__.py b/plotly/validators/ohlc/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/ohlc/legendgrouptitle/font/__init__.py +++ b/plotly/validators/ohlc/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/ohlc/legendgrouptitle/font/_color.py b/plotly/validators/ohlc/legendgrouptitle/font/_color.py index 343a4f12ac..1e281ac69d 100644 --- a/plotly/validators/ohlc/legendgrouptitle/font/_color.py +++ b/plotly/validators/ohlc/legendgrouptitle/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/ohlc/legendgrouptitle/font/_family.py b/plotly/validators/ohlc/legendgrouptitle/font/_family.py index d1740416e5..d3f7f7a8d6 100644 --- a/plotly/validators/ohlc/legendgrouptitle/font/_family.py +++ b/plotly/validators/ohlc/legendgrouptitle/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/ohlc/legendgrouptitle/font/_lineposition.py b/plotly/validators/ohlc/legendgrouptitle/font/_lineposition.py index 06acd464a5..df9ea35e0f 100644 --- a/plotly/validators/ohlc/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/ohlc/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/ohlc/legendgrouptitle/font/_shadow.py b/plotly/validators/ohlc/legendgrouptitle/font/_shadow.py index ac884973fb..d60e07a308 100644 --- a/plotly/validators/ohlc/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/ohlc/legendgrouptitle/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/ohlc/legendgrouptitle/font/_size.py b/plotly/validators/ohlc/legendgrouptitle/font/_size.py index de1de19eec..4e6bcb6b49 100644 --- a/plotly/validators/ohlc/legendgrouptitle/font/_size.py +++ b/plotly/validators/ohlc/legendgrouptitle/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/ohlc/legendgrouptitle/font/_style.py b/plotly/validators/ohlc/legendgrouptitle/font/_style.py index d0273427ef..54b200a140 100644 --- a/plotly/validators/ohlc/legendgrouptitle/font/_style.py +++ b/plotly/validators/ohlc/legendgrouptitle/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/ohlc/legendgrouptitle/font/_textcase.py b/plotly/validators/ohlc/legendgrouptitle/font/_textcase.py index f31d5c3f70..c2c02f78e4 100644 --- a/plotly/validators/ohlc/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/ohlc/legendgrouptitle/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/ohlc/legendgrouptitle/font/_variant.py b/plotly/validators/ohlc/legendgrouptitle/font/_variant.py index 8671485770..d70edfcd7a 100644 --- a/plotly/validators/ohlc/legendgrouptitle/font/_variant.py +++ b/plotly/validators/ohlc/legendgrouptitle/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/ohlc/legendgrouptitle/font/_weight.py b/plotly/validators/ohlc/legendgrouptitle/font/_weight.py index c61784a48d..f42a87dedf 100644 --- a/plotly/validators/ohlc/legendgrouptitle/font/_weight.py +++ b/plotly/validators/ohlc/legendgrouptitle/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/ohlc/line/__init__.py b/plotly/validators/ohlc/line/__init__.py index e02935101f..a2136ec59f 100644 --- a/plotly/validators/ohlc/line/__init__.py +++ b/plotly/validators/ohlc/line/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._width.WidthValidator", "._dash.DashValidator"] +) diff --git a/plotly/validators/ohlc/line/_dash.py b/plotly/validators/ohlc/line/_dash.py index ce5e067524..b6bb1d9399 100644 --- a/plotly/validators/ohlc/line/_dash.py +++ b/plotly/validators/ohlc/line/_dash.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/ohlc/line/_width.py b/plotly/validators/ohlc/line/_width.py index 3de1df879d..e70c12d042 100644 --- a/plotly/validators/ohlc/line/_width.py +++ b/plotly/validators/ohlc/line/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/ohlc/stream/__init__.py b/plotly/validators/ohlc/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/ohlc/stream/__init__.py +++ b/plotly/validators/ohlc/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/ohlc/stream/_maxpoints.py b/plotly/validators/ohlc/stream/_maxpoints.py index 365e5701be..5211ef741c 100644 --- a/plotly/validators/ohlc/stream/_maxpoints.py +++ b/plotly/validators/ohlc/stream/_maxpoints.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/ohlc/stream/_token.py b/plotly/validators/ohlc/stream/_token.py index 6ee6e3c09a..23a403765c 100644 --- a/plotly/validators/ohlc/stream/_token.py +++ b/plotly/validators/ohlc/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/parcats/__init__.py b/plotly/validators/parcats/__init__.py index 6e95a64b31..59a4163d02 100644 --- a/plotly/validators/parcats/__init__.py +++ b/plotly/validators/parcats/__init__.py @@ -1,59 +1,32 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._visible import VisibleValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._tickfont import TickfontValidator - from ._stream import StreamValidator - from ._sortpaths import SortpathsValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._line import LineValidator - from ._legendwidth import LegendwidthValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._labelfont import LabelfontValidator - from ._hovertemplate import HovertemplateValidator - from ._hoveron import HoveronValidator - from ._hoverinfo import HoverinfoValidator - from ._domain import DomainValidator - from ._dimensiondefaults import DimensiondefaultsValidator - from ._dimensions import DimensionsValidator - from ._countssrc import CountssrcValidator - from ._counts import CountsValidator - from ._bundlecolors import BundlecolorsValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/parcats/_arrangement.py b/plotly/validators/parcats/_arrangement.py index c8175da421..d59b05faec 100644 --- a/plotly/validators/parcats/_arrangement.py +++ b/plotly/validators/parcats/_arrangement.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrangementValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["perpendicular", "freeform", "fixed"]), **kwargs, diff --git a/plotly/validators/parcats/_bundlecolors.py b/plotly/validators/parcats/_bundlecolors.py index a1c2f611b5..98827f4858 100644 --- a/plotly/validators/parcats/_bundlecolors.py +++ b/plotly/validators/parcats/_bundlecolors.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BundlecolorsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/parcats/_counts.py b/plotly/validators/parcats/_counts.py index 1924953576..2b0be068b7 100644 --- a/plotly/validators/parcats/_counts.py +++ b/plotly/validators/parcats/_counts.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CountsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/parcats/_countssrc.py b/plotly/validators/parcats/_countssrc.py index e67d56d36a..c6cd698792 100644 --- a/plotly/validators/parcats/_countssrc.py +++ b/plotly/validators/parcats/_countssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CountssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/parcats/_dimensiondefaults.py b/plotly/validators/parcats/_dimensiondefaults.py index 0f92a6eaf9..a1ca66ea66 100644 --- a/plotly/validators/parcats/_dimensiondefaults.py +++ b/plotly/validators/parcats/_dimensiondefaults.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DimensiondefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Dimension"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/parcats/_dimensions.py b/plotly/validators/parcats/_dimensions.py index 1c1885e0b5..7a8474c7cb 100644 --- a/plotly/validators/parcats/_dimensions.py +++ b/plotly/validators/parcats/_dimensions.py @@ -1,65 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DimensionsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/parcats/_domain.py b/plotly/validators/parcats/_domain.py index 51dc30225d..5bb5d29fe1 100644 --- a/plotly/validators/parcats/_domain.py +++ b/plotly/validators/parcats/_domain.py @@ -1,28 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/parcats/_hoverinfo.py b/plotly/validators/parcats/_hoverinfo.py index 35d8e40d06..1670fb0f9b 100644 --- a/plotly/validators/parcats/_hoverinfo.py +++ b/plotly/validators/parcats/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/parcats/_hoveron.py b/plotly/validators/parcats/_hoveron.py index 4fc02972c9..cbd56dd8d7 100644 --- a/plotly/validators/parcats/_hoveron.py +++ b/plotly/validators/parcats/_hoveron.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoveronValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["category", "color", "dimension"]), **kwargs, diff --git a/plotly/validators/parcats/_hovertemplate.py b/plotly/validators/parcats/_hovertemplate.py index bf8e6cc382..7bd66364c2 100644 --- a/plotly/validators/parcats/_hovertemplate.py +++ b/plotly/validators/parcats/_hovertemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/parcats/_labelfont.py b/plotly/validators/parcats/_labelfont.py index 591599e26c..18bb786305 100644 --- a/plotly/validators/parcats/_labelfont.py +++ b/plotly/validators/parcats/_labelfont.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Labelfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/parcats/_legendgrouptitle.py b/plotly/validators/parcats/_legendgrouptitle.py index b3cb0262fd..8dc1c19056 100644 --- a/plotly/validators/parcats/_legendgrouptitle.py +++ b/plotly/validators/parcats/_legendgrouptitle.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/parcats/_legendwidth.py b/plotly/validators/parcats/_legendwidth.py index 8e6d18a307..4397378e3d 100644 --- a/plotly/validators/parcats/_legendwidth.py +++ b/plotly/validators/parcats/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/parcats/_line.py b/plotly/validators/parcats/_line.py index 49d3faaeb3..2683e92556 100644 --- a/plotly/validators/parcats/_line.py +++ b/plotly/validators/parcats/_line.py @@ -1,141 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/parcats/_meta.py b/plotly/validators/parcats/_meta.py index 229c939cb9..6724ae81d0 100644 --- a/plotly/validators/parcats/_meta.py +++ b/plotly/validators/parcats/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/parcats/_metasrc.py b/plotly/validators/parcats/_metasrc.py index 552faa3d5c..bbbe0466c5 100644 --- a/plotly/validators/parcats/_metasrc.py +++ b/plotly/validators/parcats/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/parcats/_name.py b/plotly/validators/parcats/_name.py index 6a6f771f47..77b4a74841 100644 --- a/plotly/validators/parcats/_name.py +++ b/plotly/validators/parcats/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/parcats/_sortpaths.py b/plotly/validators/parcats/_sortpaths.py index 467ac173b9..1a1c77c455 100644 --- a/plotly/validators/parcats/_sortpaths.py +++ b/plotly/validators/parcats/_sortpaths.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SortpathsValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["forward", "backward"]), **kwargs, diff --git a/plotly/validators/parcats/_stream.py b/plotly/validators/parcats/_stream.py index 331ecda7f2..07828dca17 100644 --- a/plotly/validators/parcats/_stream.py +++ b/plotly/validators/parcats/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/parcats/_tickfont.py b/plotly/validators/parcats/_tickfont.py index 5abae6a9d9..a8e7adb389 100644 --- a/plotly/validators/parcats/_tickfont.py +++ b/plotly/validators/parcats/_tickfont.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/parcats/_uid.py b/plotly/validators/parcats/_uid.py index ae354803f8..972cd81215 100644 --- a/plotly/validators/parcats/_uid.py +++ b/plotly/validators/parcats/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/parcats/_uirevision.py b/plotly/validators/parcats/_uirevision.py index cadb8a85a3..6870841599 100644 --- a/plotly/validators/parcats/_uirevision.py +++ b/plotly/validators/parcats/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/parcats/_visible.py b/plotly/validators/parcats/_visible.py index 93a4e85aa8..ada66868e6 100644 --- a/plotly/validators/parcats/_visible.py +++ b/plotly/validators/parcats/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/parcats/dimension/__init__.py b/plotly/validators/parcats/dimension/__init__.py index 166d9faa32..976c1fcfe2 100644 --- a/plotly/validators/parcats/dimension/__init__.py +++ b/plotly/validators/parcats/dimension/__init__.py @@ -1,33 +1,19 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._visible import VisibleValidator - from ._valuessrc import ValuessrcValidator - from ._values import ValuesValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._label import LabelValidator - from ._displayindex import DisplayindexValidator - from ._categoryorder import CategoryorderValidator - from ._categoryarraysrc import CategoryarraysrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/parcats/dimension/_categoryarray.py b/plotly/validators/parcats/dimension/_categoryarray.py index 85edeaa9b8..85b657f44b 100644 --- a/plotly/validators/parcats/dimension/_categoryarray.py +++ b/plotly/validators/parcats/dimension/_categoryarray.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CategoryarrayValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/parcats/dimension/_categoryarraysrc.py b/plotly/validators/parcats/dimension/_categoryarraysrc.py index 8b06b340e0..349d1a3d29 100644 --- a/plotly/validators/parcats/dimension/_categoryarraysrc.py +++ b/plotly/validators/parcats/dimension/_categoryarraysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CategoryarraysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/parcats/dimension/_categoryorder.py b/plotly/validators/parcats/dimension/_categoryorder.py index 09968442b3..bc8bedddee 100644 --- a/plotly/validators/parcats/dimension/_categoryorder.py +++ b/plotly/validators/parcats/dimension/_categoryorder.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CategoryorderValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/parcats/dimension/_displayindex.py b/plotly/validators/parcats/dimension/_displayindex.py index 559d125a56..5903e1b05b 100644 --- a/plotly/validators/parcats/dimension/_displayindex.py +++ b/plotly/validators/parcats/dimension/_displayindex.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DisplayindexValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/parcats/dimension/_label.py b/plotly/validators/parcats/dimension/_label.py index 9840d38bdf..3fb41a28a7 100644 --- a/plotly/validators/parcats/dimension/_label.py +++ b/plotly/validators/parcats/dimension/_label.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/parcats/dimension/_ticktext.py b/plotly/validators/parcats/dimension/_ticktext.py index 6c1d645c50..ef3ba5f48d 100644 --- a/plotly/validators/parcats/dimension/_ticktext.py +++ b/plotly/validators/parcats/dimension/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/parcats/dimension/_ticktextsrc.py b/plotly/validators/parcats/dimension/_ticktextsrc.py index bd47fb8a3d..6aead55582 100644 --- a/plotly/validators/parcats/dimension/_ticktextsrc.py +++ b/plotly/validators/parcats/dimension/_ticktextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/parcats/dimension/_values.py b/plotly/validators/parcats/dimension/_values.py index c4cc246d87..a5c11cdd45 100644 --- a/plotly/validators/parcats/dimension/_values.py +++ b/plotly/validators/parcats/dimension/_values.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValuesValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/parcats/dimension/_valuessrc.py b/plotly/validators/parcats/dimension/_valuessrc.py index 187803a5bc..c96a0f6c17 100644 --- a/plotly/validators/parcats/dimension/_valuessrc.py +++ b/plotly/validators/parcats/dimension/_valuessrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValuessrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/parcats/dimension/_visible.py b/plotly/validators/parcats/dimension/_visible.py index 586aa9bff0..87df56889f 100644 --- a/plotly/validators/parcats/dimension/_visible.py +++ b/plotly/validators/parcats/dimension/_visible.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/parcats/domain/__init__.py b/plotly/validators/parcats/domain/__init__.py index 67de5030d0..42827f1d1e 100644 --- a/plotly/validators/parcats/domain/__init__.py +++ b/plotly/validators/parcats/domain/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._y import YValidator - from ._x import XValidator - from ._row import RowValidator - from ._column import ColumnValidator -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [], - [ - "._y.YValidator", - "._x.XValidator", - "._row.RowValidator", - "._column.ColumnValidator", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._y.YValidator", + "._x.XValidator", + "._row.RowValidator", + "._column.ColumnValidator", + ], +) diff --git a/plotly/validators/parcats/domain/_column.py b/plotly/validators/parcats/domain/_column.py index 0f0090ca35..a53eb163fa 100644 --- a/plotly/validators/parcats/domain/_column.py +++ b/plotly/validators/parcats/domain/_column.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/parcats/domain/_row.py b/plotly/validators/parcats/domain/_row.py index 3bd6f4fc95..c35e48b04c 100644 --- a/plotly/validators/parcats/domain/_row.py +++ b/plotly/validators/parcats/domain/_row.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RowValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/parcats/domain/_x.py b/plotly/validators/parcats/domain/_x.py index 94b3271d4d..326188e77d 100644 --- a/plotly/validators/parcats/domain/_x.py +++ b/plotly/validators/parcats/domain/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/parcats/domain/_y.py b/plotly/validators/parcats/domain/_y.py index 12b36630b0..c1f62cad8c 100644 --- a/plotly/validators/parcats/domain/_y.py +++ b/plotly/validators/parcats/domain/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/parcats/labelfont/__init__.py b/plotly/validators/parcats/labelfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/parcats/labelfont/__init__.py +++ b/plotly/validators/parcats/labelfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/parcats/labelfont/_color.py b/plotly/validators/parcats/labelfont/_color.py index 1cf71fd380..2ff7bd1843 100644 --- a/plotly/validators/parcats/labelfont/_color.py +++ b/plotly/validators/parcats/labelfont/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/parcats/labelfont/_family.py b/plotly/validators/parcats/labelfont/_family.py index d8419f848a..b8d17633ba 100644 --- a/plotly/validators/parcats/labelfont/_family.py +++ b/plotly/validators/parcats/labelfont/_family.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/parcats/labelfont/_lineposition.py b/plotly/validators/parcats/labelfont/_lineposition.py index fbdbeda09e..18aafddd32 100644 --- a/plotly/validators/parcats/labelfont/_lineposition.py +++ b/plotly/validators/parcats/labelfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/parcats/labelfont/_shadow.py b/plotly/validators/parcats/labelfont/_shadow.py index 7530a3dc4c..be76c097a7 100644 --- a/plotly/validators/parcats/labelfont/_shadow.py +++ b/plotly/validators/parcats/labelfont/_shadow.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/parcats/labelfont/_size.py b/plotly/validators/parcats/labelfont/_size.py index cef22bb537..7e3898f4ec 100644 --- a/plotly/validators/parcats/labelfont/_size.py +++ b/plotly/validators/parcats/labelfont/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/parcats/labelfont/_style.py b/plotly/validators/parcats/labelfont/_style.py index 013ec79926..84e7626ffe 100644 --- a/plotly/validators/parcats/labelfont/_style.py +++ b/plotly/validators/parcats/labelfont/_style.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/parcats/labelfont/_textcase.py b/plotly/validators/parcats/labelfont/_textcase.py index 6166b0af89..22e5ba903c 100644 --- a/plotly/validators/parcats/labelfont/_textcase.py +++ b/plotly/validators/parcats/labelfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/parcats/labelfont/_variant.py b/plotly/validators/parcats/labelfont/_variant.py index 8ccc6ddbb5..5e4bcd2057 100644 --- a/plotly/validators/parcats/labelfont/_variant.py +++ b/plotly/validators/parcats/labelfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/parcats/labelfont/_weight.py b/plotly/validators/parcats/labelfont/_weight.py index 5089c36209..ccb497c65a 100644 --- a/plotly/validators/parcats/labelfont/_weight.py +++ b/plotly/validators/parcats/labelfont/_weight.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/parcats/legendgrouptitle/__init__.py b/plotly/validators/parcats/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/parcats/legendgrouptitle/__init__.py +++ b/plotly/validators/parcats/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/parcats/legendgrouptitle/_font.py b/plotly/validators/parcats/legendgrouptitle/_font.py index c5f2d716d5..49a386d704 100644 --- a/plotly/validators/parcats/legendgrouptitle/_font.py +++ b/plotly/validators/parcats/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/parcats/legendgrouptitle/_text.py b/plotly/validators/parcats/legendgrouptitle/_text.py index a37d521c33..bc8571de81 100644 --- a/plotly/validators/parcats/legendgrouptitle/_text.py +++ b/plotly/validators/parcats/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/parcats/legendgrouptitle/font/__init__.py b/plotly/validators/parcats/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/parcats/legendgrouptitle/font/__init__.py +++ b/plotly/validators/parcats/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/parcats/legendgrouptitle/font/_color.py b/plotly/validators/parcats/legendgrouptitle/font/_color.py index b9e1d70342..bf1e45f168 100644 --- a/plotly/validators/parcats/legendgrouptitle/font/_color.py +++ b/plotly/validators/parcats/legendgrouptitle/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/parcats/legendgrouptitle/font/_family.py b/plotly/validators/parcats/legendgrouptitle/font/_family.py index 9a37ebacee..48269fe510 100644 --- a/plotly/validators/parcats/legendgrouptitle/font/_family.py +++ b/plotly/validators/parcats/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/parcats/legendgrouptitle/font/_lineposition.py b/plotly/validators/parcats/legendgrouptitle/font/_lineposition.py index f4ad1406b5..4f689a1592 100644 --- a/plotly/validators/parcats/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/parcats/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/parcats/legendgrouptitle/font/_shadow.py b/plotly/validators/parcats/legendgrouptitle/font/_shadow.py index 79fa9a5286..c663ac2af3 100644 --- a/plotly/validators/parcats/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/parcats/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/parcats/legendgrouptitle/font/_size.py b/plotly/validators/parcats/legendgrouptitle/font/_size.py index c8d34f8604..7f3a329e6e 100644 --- a/plotly/validators/parcats/legendgrouptitle/font/_size.py +++ b/plotly/validators/parcats/legendgrouptitle/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/parcats/legendgrouptitle/font/_style.py b/plotly/validators/parcats/legendgrouptitle/font/_style.py index ddf7893202..5b99d6fa2d 100644 --- a/plotly/validators/parcats/legendgrouptitle/font/_style.py +++ b/plotly/validators/parcats/legendgrouptitle/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/parcats/legendgrouptitle/font/_textcase.py b/plotly/validators/parcats/legendgrouptitle/font/_textcase.py index 103103a76a..d301b33c08 100644 --- a/plotly/validators/parcats/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/parcats/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/parcats/legendgrouptitle/font/_variant.py b/plotly/validators/parcats/legendgrouptitle/font/_variant.py index 7f2af78351..8ef518d914 100644 --- a/plotly/validators/parcats/legendgrouptitle/font/_variant.py +++ b/plotly/validators/parcats/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/parcats/legendgrouptitle/font/_weight.py b/plotly/validators/parcats/legendgrouptitle/font/_weight.py index c76add8051..0f304f8b32 100644 --- a/plotly/validators/parcats/legendgrouptitle/font/_weight.py +++ b/plotly/validators/parcats/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/parcats/line/__init__.py b/plotly/validators/parcats/line/__init__.py index a5677cc3e2..4d382fb890 100644 --- a/plotly/validators/parcats/line/__init__.py +++ b/plotly/validators/parcats/line/__init__.py @@ -1,41 +1,23 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._showscale import ShowscaleValidator - from ._shape import ShapeValidator - from ._reversescale import ReversescaleValidator - from ._hovertemplate import HovertemplateValidator - from ._colorsrc import ColorsrcValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._color import ColorValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/parcats/line/_autocolorscale.py b/plotly/validators/parcats/line/_autocolorscale.py index 0f17beae89..548506a008 100644 --- a/plotly/validators/parcats/line/_autocolorscale.py +++ b/plotly/validators/parcats/line/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/parcats/line/_cauto.py b/plotly/validators/parcats/line/_cauto.py index 5441c8a802..fb4270b2ac 100644 --- a/plotly/validators/parcats/line/_cauto.py +++ b/plotly/validators/parcats/line/_cauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/parcats/line/_cmax.py b/plotly/validators/parcats/line/_cmax.py index 847bd8cdab..a39df1b13b 100644 --- a/plotly/validators/parcats/line/_cmax.py +++ b/plotly/validators/parcats/line/_cmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/parcats/line/_cmid.py b/plotly/validators/parcats/line/_cmid.py index 6236b0ddf4..fb1b2f66eb 100644 --- a/plotly/validators/parcats/line/_cmid.py +++ b/plotly/validators/parcats/line/_cmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/parcats/line/_cmin.py b/plotly/validators/parcats/line/_cmin.py index f36ffd0048..38f8db2cef 100644 --- a/plotly/validators/parcats/line/_cmin.py +++ b/plotly/validators/parcats/line/_cmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/parcats/line/_color.py b/plotly/validators/parcats/line/_color.py index c682c57cc6..8fcc1fe647 100644 --- a/plotly/validators/parcats/line/_color.py +++ b/plotly/validators/parcats/line/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_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"), diff --git a/plotly/validators/parcats/line/_coloraxis.py b/plotly/validators/parcats/line/_coloraxis.py index 5c7c89e6f7..47f9697061 100644 --- a/plotly/validators/parcats/line/_coloraxis.py +++ b/plotly/validators/parcats/line/_coloraxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/parcats/line/_colorbar.py b/plotly/validators/parcats/line/_colorbar.py index 4a9a1d0d2d..2c1e04bad8 100644 --- a/plotly/validators/parcats/line/_colorbar.py +++ b/plotly/validators/parcats/line/_colorbar.py @@ -1,279 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/parcats/line/_colorscale.py b/plotly/validators/parcats/line/_colorscale.py index bc14d3dc06..d575ad8afb 100644 --- a/plotly/validators/parcats/line/_colorscale.py +++ b/plotly/validators/parcats/line/_colorscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/parcats/line/_colorsrc.py b/plotly/validators/parcats/line/_colorsrc.py index 672e2fe250..7ea2d58866 100644 --- a/plotly/validators/parcats/line/_colorsrc.py +++ b/plotly/validators/parcats/line/_colorsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/parcats/line/_hovertemplate.py b/plotly/validators/parcats/line/_hovertemplate.py index faee02b33d..123b184bad 100644 --- a/plotly/validators/parcats/line/_hovertemplate.py +++ b/plotly/validators/parcats/line/_hovertemplate.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/parcats/line/_reversescale.py b/plotly/validators/parcats/line/_reversescale.py index 6b90d879ea..9dc69bcd25 100644 --- a/plotly/validators/parcats/line/_reversescale.py +++ b/plotly/validators/parcats/line/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/parcats/line/_shape.py b/plotly/validators/parcats/line/_shape.py index 953a856105..d2db74ba34 100644 --- a/plotly/validators/parcats/line/_shape.py +++ b/plotly/validators/parcats/line/_shape.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["linear", "hspline"]), **kwargs, diff --git a/plotly/validators/parcats/line/_showscale.py b/plotly/validators/parcats/line/_showscale.py index 9680d114d2..a7cf9a4d37 100644 --- a/plotly/validators/parcats/line/_showscale.py +++ b/plotly/validators/parcats/line/_showscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/parcats/line/colorbar/__init__.py b/plotly/validators/parcats/line/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/parcats/line/colorbar/__init__.py +++ b/plotly/validators/parcats/line/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/parcats/line/colorbar/_bgcolor.py b/plotly/validators/parcats/line/colorbar/_bgcolor.py index eb750756c9..7f74ba6c62 100644 --- a/plotly/validators/parcats/line/colorbar/_bgcolor.py +++ b/plotly/validators/parcats/line/colorbar/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcats/line/colorbar/_bordercolor.py b/plotly/validators/parcats/line/colorbar/_bordercolor.py index da5694c062..9cb87556f4 100644 --- a/plotly/validators/parcats/line/colorbar/_bordercolor.py +++ b/plotly/validators/parcats/line/colorbar/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcats/line/colorbar/_borderwidth.py b/plotly/validators/parcats/line/colorbar/_borderwidth.py index f46671833c..8c0fb061c4 100644 --- a/plotly/validators/parcats/line/colorbar/_borderwidth.py +++ b/plotly/validators/parcats/line/colorbar/_borderwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/parcats/line/colorbar/_dtick.py b/plotly/validators/parcats/line/colorbar/_dtick.py index b747c42782..1590171224 100644 --- a/plotly/validators/parcats/line/colorbar/_dtick.py +++ b/plotly/validators/parcats/line/colorbar/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/parcats/line/colorbar/_exponentformat.py b/plotly/validators/parcats/line/colorbar/_exponentformat.py index 2450552137..a52aaea894 100644 --- a/plotly/validators/parcats/line/colorbar/_exponentformat.py +++ b/plotly/validators/parcats/line/colorbar/_exponentformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/parcats/line/colorbar/_labelalias.py b/plotly/validators/parcats/line/colorbar/_labelalias.py index 76a4df3929..edf226bc2d 100644 --- a/plotly/validators/parcats/line/colorbar/_labelalias.py +++ b/plotly/validators/parcats/line/colorbar/_labelalias.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcats/line/colorbar/_len.py b/plotly/validators/parcats/line/colorbar/_len.py index 31fae716b2..55b25b2371 100644 --- a/plotly/validators/parcats/line/colorbar/_len.py +++ b/plotly/validators/parcats/line/colorbar/_len.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/parcats/line/colorbar/_lenmode.py b/plotly/validators/parcats/line/colorbar/_lenmode.py index df7d6e6609..935d0d5e49 100644 --- a/plotly/validators/parcats/line/colorbar/_lenmode.py +++ b/plotly/validators/parcats/line/colorbar/_lenmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/parcats/line/colorbar/_minexponent.py b/plotly/validators/parcats/line/colorbar/_minexponent.py index b2c268a975..87d7610550 100644 --- a/plotly/validators/parcats/line/colorbar/_minexponent.py +++ b/plotly/validators/parcats/line/colorbar/_minexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/parcats/line/colorbar/_nticks.py b/plotly/validators/parcats/line/colorbar/_nticks.py index 62a845c749..63c1b61c13 100644 --- a/plotly/validators/parcats/line/colorbar/_nticks.py +++ b/plotly/validators/parcats/line/colorbar/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/parcats/line/colorbar/_orientation.py b/plotly/validators/parcats/line/colorbar/_orientation.py index c3126fb0b0..020f8fa6f4 100644 --- a/plotly/validators/parcats/line/colorbar/_orientation.py +++ b/plotly/validators/parcats/line/colorbar/_orientation.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/parcats/line/colorbar/_outlinecolor.py b/plotly/validators/parcats/line/colorbar/_outlinecolor.py index 34a452b04f..8f130adfdc 100644 --- a/plotly/validators/parcats/line/colorbar/_outlinecolor.py +++ b/plotly/validators/parcats/line/colorbar/_outlinecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcats/line/colorbar/_outlinewidth.py b/plotly/validators/parcats/line/colorbar/_outlinewidth.py index d7d1a86a60..6092979328 100644 --- a/plotly/validators/parcats/line/colorbar/_outlinewidth.py +++ b/plotly/validators/parcats/line/colorbar/_outlinewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/parcats/line/colorbar/_separatethousands.py b/plotly/validators/parcats/line/colorbar/_separatethousands.py index cd0c24e6cf..ba90b3adea 100644 --- a/plotly/validators/parcats/line/colorbar/_separatethousands.py +++ b/plotly/validators/parcats/line/colorbar/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcats/line/colorbar/_showexponent.py b/plotly/validators/parcats/line/colorbar/_showexponent.py index 7b73c95bd1..502a1bf8b9 100644 --- a/plotly/validators/parcats/line/colorbar/_showexponent.py +++ b/plotly/validators/parcats/line/colorbar/_showexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/parcats/line/colorbar/_showticklabels.py b/plotly/validators/parcats/line/colorbar/_showticklabels.py index df6e5b291c..bedf26d747 100644 --- a/plotly/validators/parcats/line/colorbar/_showticklabels.py +++ b/plotly/validators/parcats/line/colorbar/_showticklabels.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcats/line/colorbar/_showtickprefix.py b/plotly/validators/parcats/line/colorbar/_showtickprefix.py index 87b00c0136..fd30a4507c 100644 --- a/plotly/validators/parcats/line/colorbar/_showtickprefix.py +++ b/plotly/validators/parcats/line/colorbar/_showtickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/parcats/line/colorbar/_showticksuffix.py b/plotly/validators/parcats/line/colorbar/_showticksuffix.py index e88e143a9f..ac03b766c8 100644 --- a/plotly/validators/parcats/line/colorbar/_showticksuffix.py +++ b/plotly/validators/parcats/line/colorbar/_showticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/parcats/line/colorbar/_thickness.py b/plotly/validators/parcats/line/colorbar/_thickness.py index aedb5cb875..696ed1daef 100644 --- a/plotly/validators/parcats/line/colorbar/_thickness.py +++ b/plotly/validators/parcats/line/colorbar/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/parcats/line/colorbar/_thicknessmode.py b/plotly/validators/parcats/line/colorbar/_thicknessmode.py index d3ee8249d7..3a73b77e88 100644 --- a/plotly/validators/parcats/line/colorbar/_thicknessmode.py +++ b/plotly/validators/parcats/line/colorbar/_thicknessmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/parcats/line/colorbar/_tick0.py b/plotly/validators/parcats/line/colorbar/_tick0.py index 0f5555f1a6..2c49c9c41c 100644 --- a/plotly/validators/parcats/line/colorbar/_tick0.py +++ b/plotly/validators/parcats/line/colorbar/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/parcats/line/colorbar/_tickangle.py b/plotly/validators/parcats/line/colorbar/_tickangle.py index 9d7f7a699e..3f177a0ec0 100644 --- a/plotly/validators/parcats/line/colorbar/_tickangle.py +++ b/plotly/validators/parcats/line/colorbar/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcats/line/colorbar/_tickcolor.py b/plotly/validators/parcats/line/colorbar/_tickcolor.py index 4791447d97..597def0dae 100644 --- a/plotly/validators/parcats/line/colorbar/_tickcolor.py +++ b/plotly/validators/parcats/line/colorbar/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcats/line/colorbar/_tickfont.py b/plotly/validators/parcats/line/colorbar/_tickfont.py index 935b7acfdb..db5c385bdb 100644 --- a/plotly/validators/parcats/line/colorbar/_tickfont.py +++ b/plotly/validators/parcats/line/colorbar/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/parcats/line/colorbar/_tickformat.py b/plotly/validators/parcats/line/colorbar/_tickformat.py index c7a02cbfb5..69347e58b2 100644 --- a/plotly/validators/parcats/line/colorbar/_tickformat.py +++ b/plotly/validators/parcats/line/colorbar/_tickformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcats/line/colorbar/_tickformatstopdefaults.py b/plotly/validators/parcats/line/colorbar/_tickformatstopdefaults.py index fa51128464..41ab5a2b64 100644 --- a/plotly/validators/parcats/line/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/parcats/line/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/parcats/line/colorbar/_tickformatstops.py b/plotly/validators/parcats/line/colorbar/_tickformatstops.py index 09fa9b683e..275384af13 100644 --- a/plotly/validators/parcats/line/colorbar/_tickformatstops.py +++ b/plotly/validators/parcats/line/colorbar/_tickformatstops.py @@ -1,53 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/parcats/line/colorbar/_ticklabeloverflow.py b/plotly/validators/parcats/line/colorbar/_ticklabeloverflow.py index 91d9907607..074aa8d62e 100644 --- a/plotly/validators/parcats/line/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/parcats/line/colorbar/_ticklabeloverflow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/parcats/line/colorbar/_ticklabelposition.py b/plotly/validators/parcats/line/colorbar/_ticklabelposition.py index ac9e417af6..be85fdfaca 100644 --- a/plotly/validators/parcats/line/colorbar/_ticklabelposition.py +++ b/plotly/validators/parcats/line/colorbar/_ticklabelposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/parcats/line/colorbar/_ticklabelstep.py b/plotly/validators/parcats/line/colorbar/_ticklabelstep.py index 18faa76f91..ac70a11e12 100644 --- a/plotly/validators/parcats/line/colorbar/_ticklabelstep.py +++ b/plotly/validators/parcats/line/colorbar/_ticklabelstep.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/parcats/line/colorbar/_ticklen.py b/plotly/validators/parcats/line/colorbar/_ticklen.py index 6aae35621d..5cb463856f 100644 --- a/plotly/validators/parcats/line/colorbar/_ticklen.py +++ b/plotly/validators/parcats/line/colorbar/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/parcats/line/colorbar/_tickmode.py b/plotly/validators/parcats/line/colorbar/_tickmode.py index 21cebcc4cf..604277635f 100644 --- a/plotly/validators/parcats/line/colorbar/_tickmode.py +++ b/plotly/validators/parcats/line/colorbar/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/parcats/line/colorbar/_tickprefix.py b/plotly/validators/parcats/line/colorbar/_tickprefix.py index 33e3f94c4b..7d59a47d4c 100644 --- a/plotly/validators/parcats/line/colorbar/_tickprefix.py +++ b/plotly/validators/parcats/line/colorbar/_tickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcats/line/colorbar/_ticks.py b/plotly/validators/parcats/line/colorbar/_ticks.py index e33116c60a..b96f4b9723 100644 --- a/plotly/validators/parcats/line/colorbar/_ticks.py +++ b/plotly/validators/parcats/line/colorbar/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/parcats/line/colorbar/_ticksuffix.py b/plotly/validators/parcats/line/colorbar/_ticksuffix.py index d80f228fc1..d4e36961d4 100644 --- a/plotly/validators/parcats/line/colorbar/_ticksuffix.py +++ b/plotly/validators/parcats/line/colorbar/_ticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcats/line/colorbar/_ticktext.py b/plotly/validators/parcats/line/colorbar/_ticktext.py index 05fe7fa99e..f864deffd9 100644 --- a/plotly/validators/parcats/line/colorbar/_ticktext.py +++ b/plotly/validators/parcats/line/colorbar/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcats/line/colorbar/_ticktextsrc.py b/plotly/validators/parcats/line/colorbar/_ticktextsrc.py index 60711dac2d..f87a6a2ff1 100644 --- a/plotly/validators/parcats/line/colorbar/_ticktextsrc.py +++ b/plotly/validators/parcats/line/colorbar/_ticktextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/parcats/line/colorbar/_tickvals.py b/plotly/validators/parcats/line/colorbar/_tickvals.py index 87ddd2de60..b808e5e018 100644 --- a/plotly/validators/parcats/line/colorbar/_tickvals.py +++ b/plotly/validators/parcats/line/colorbar/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcats/line/colorbar/_tickvalssrc.py b/plotly/validators/parcats/line/colorbar/_tickvalssrc.py index ee8acd9ced..728de4984c 100644 --- a/plotly/validators/parcats/line/colorbar/_tickvalssrc.py +++ b/plotly/validators/parcats/line/colorbar/_tickvalssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/parcats/line/colorbar/_tickwidth.py b/plotly/validators/parcats/line/colorbar/_tickwidth.py index 4ef0dc5f13..fa9bd98521 100644 --- a/plotly/validators/parcats/line/colorbar/_tickwidth.py +++ b/plotly/validators/parcats/line/colorbar/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/parcats/line/colorbar/_title.py b/plotly/validators/parcats/line/colorbar/_title.py index c90e94e47c..fdad287217 100644 --- a/plotly/validators/parcats/line/colorbar/_title.py +++ b/plotly/validators/parcats/line/colorbar/_title.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/parcats/line/colorbar/_x.py b/plotly/validators/parcats/line/colorbar/_x.py index e49d6edf69..7d02a3ea1a 100644 --- a/plotly/validators/parcats/line/colorbar/_x.py +++ b/plotly/validators/parcats/line/colorbar/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcats/line/colorbar/_xanchor.py b/plotly/validators/parcats/line/colorbar/_xanchor.py index e57be71a85..bf3fcb14f6 100644 --- a/plotly/validators/parcats/line/colorbar/_xanchor.py +++ b/plotly/validators/parcats/line/colorbar/_xanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/parcats/line/colorbar/_xpad.py b/plotly/validators/parcats/line/colorbar/_xpad.py index bf7929c1cd..2f58f6b98c 100644 --- a/plotly/validators/parcats/line/colorbar/_xpad.py +++ b/plotly/validators/parcats/line/colorbar/_xpad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/parcats/line/colorbar/_xref.py b/plotly/validators/parcats/line/colorbar/_xref.py index efc88522fb..8bce3dc310 100644 --- a/plotly/validators/parcats/line/colorbar/_xref.py +++ b/plotly/validators/parcats/line/colorbar/_xref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/parcats/line/colorbar/_y.py b/plotly/validators/parcats/line/colorbar/_y.py index 82b78b6a77..942a0cbf41 100644 --- a/plotly/validators/parcats/line/colorbar/_y.py +++ b/plotly/validators/parcats/line/colorbar/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcats/line/colorbar/_yanchor.py b/plotly/validators/parcats/line/colorbar/_yanchor.py index d0444859f1..0b6456641d 100644 --- a/plotly/validators/parcats/line/colorbar/_yanchor.py +++ b/plotly/validators/parcats/line/colorbar/_yanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/parcats/line/colorbar/_ypad.py b/plotly/validators/parcats/line/colorbar/_ypad.py index f95b70ae8c..e8e14f1641 100644 --- a/plotly/validators/parcats/line/colorbar/_ypad.py +++ b/plotly/validators/parcats/line/colorbar/_ypad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/parcats/line/colorbar/_yref.py b/plotly/validators/parcats/line/colorbar/_yref.py index 1d9bc92b8a..ea4536881a 100644 --- a/plotly/validators/parcats/line/colorbar/_yref.py +++ b/plotly/validators/parcats/line/colorbar/_yref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/parcats/line/colorbar/tickfont/__init__.py b/plotly/validators/parcats/line/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/parcats/line/colorbar/tickfont/__init__.py +++ b/plotly/validators/parcats/line/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/parcats/line/colorbar/tickfont/_color.py b/plotly/validators/parcats/line/colorbar/tickfont/_color.py index df7e025705..1cb60e333d 100644 --- a/plotly/validators/parcats/line/colorbar/tickfont/_color.py +++ b/plotly/validators/parcats/line/colorbar/tickfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcats/line/colorbar/tickfont/_family.py b/plotly/validators/parcats/line/colorbar/tickfont/_family.py index 4eae253200..2367133707 100644 --- a/plotly/validators/parcats/line/colorbar/tickfont/_family.py +++ b/plotly/validators/parcats/line/colorbar/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/parcats/line/colorbar/tickfont/_lineposition.py b/plotly/validators/parcats/line/colorbar/tickfont/_lineposition.py index 95c3b3cea0..a3b4a522b5 100644 --- a/plotly/validators/parcats/line/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/parcats/line/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/parcats/line/colorbar/tickfont/_shadow.py b/plotly/validators/parcats/line/colorbar/tickfont/_shadow.py index 67e1f691c4..5b78db51f6 100644 --- a/plotly/validators/parcats/line/colorbar/tickfont/_shadow.py +++ b/plotly/validators/parcats/line/colorbar/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcats/line/colorbar/tickfont/_size.py b/plotly/validators/parcats/line/colorbar/tickfont/_size.py index 0d4adb86b8..44fb1dbf9a 100644 --- a/plotly/validators/parcats/line/colorbar/tickfont/_size.py +++ b/plotly/validators/parcats/line/colorbar/tickfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/parcats/line/colorbar/tickfont/_style.py b/plotly/validators/parcats/line/colorbar/tickfont/_style.py index 884bcdd367..1f99483fed 100644 --- a/plotly/validators/parcats/line/colorbar/tickfont/_style.py +++ b/plotly/validators/parcats/line/colorbar/tickfont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/parcats/line/colorbar/tickfont/_textcase.py b/plotly/validators/parcats/line/colorbar/tickfont/_textcase.py index 9b54a87efd..9f871e0940 100644 --- a/plotly/validators/parcats/line/colorbar/tickfont/_textcase.py +++ b/plotly/validators/parcats/line/colorbar/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/parcats/line/colorbar/tickfont/_variant.py b/plotly/validators/parcats/line/colorbar/tickfont/_variant.py index 9ee38eb2bb..b3aba20ca3 100644 --- a/plotly/validators/parcats/line/colorbar/tickfont/_variant.py +++ b/plotly/validators/parcats/line/colorbar/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/parcats/line/colorbar/tickfont/_weight.py b/plotly/validators/parcats/line/colorbar/tickfont/_weight.py index 52ad471990..935c08f3c7 100644 --- a/plotly/validators/parcats/line/colorbar/tickfont/_weight.py +++ b/plotly/validators/parcats/line/colorbar/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/parcats/line/colorbar/tickformatstop/__init__.py b/plotly/validators/parcats/line/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/parcats/line/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/parcats/line/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/parcats/line/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/parcats/line/colorbar/tickformatstop/_dtickrange.py index d0d0db0c59..6d310ea673 100644 --- a/plotly/validators/parcats/line/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/parcats/line/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( "items", diff --git a/plotly/validators/parcats/line/colorbar/tickformatstop/_enabled.py b/plotly/validators/parcats/line/colorbar/tickformatstop/_enabled.py index 57df853fae..2a3e461f9a 100644 --- a/plotly/validators/parcats/line/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/parcats/line/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcats/line/colorbar/tickformatstop/_name.py b/plotly/validators/parcats/line/colorbar/tickformatstop/_name.py index af8a44de11..f15673fae9 100644 --- a/plotly/validators/parcats/line/colorbar/tickformatstop/_name.py +++ b/plotly/validators/parcats/line/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcats/line/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/parcats/line/colorbar/tickformatstop/_templateitemname.py index b021492b8f..c4081b7be3 100644 --- a/plotly/validators/parcats/line/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/parcats/line/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcats/line/colorbar/tickformatstop/_value.py b/plotly/validators/parcats/line/colorbar/tickformatstop/_value.py index 0940425c3e..6b980e1265 100644 --- a/plotly/validators/parcats/line/colorbar/tickformatstop/_value.py +++ b/plotly/validators/parcats/line/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcats/line/colorbar/title/__init__.py b/plotly/validators/parcats/line/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/parcats/line/colorbar/title/__init__.py +++ b/plotly/validators/parcats/line/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/parcats/line/colorbar/title/_font.py b/plotly/validators/parcats/line/colorbar/title/_font.py index f3c3c9ce63..c10ecfc290 100644 --- a/plotly/validators/parcats/line/colorbar/title/_font.py +++ b/plotly/validators/parcats/line/colorbar/title/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/parcats/line/colorbar/title/_side.py b/plotly/validators/parcats/line/colorbar/title/_side.py index 281c74a94f..8483ecb17d 100644 --- a/plotly/validators/parcats/line/colorbar/title/_side.py +++ b/plotly/validators/parcats/line/colorbar/title/_side.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/parcats/line/colorbar/title/_text.py b/plotly/validators/parcats/line/colorbar/title/_text.py index 120207bdc9..c0ef749d2b 100644 --- a/plotly/validators/parcats/line/colorbar/title/_text.py +++ b/plotly/validators/parcats/line/colorbar/title/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcats/line/colorbar/title/font/__init__.py b/plotly/validators/parcats/line/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/parcats/line/colorbar/title/font/__init__.py +++ b/plotly/validators/parcats/line/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/parcats/line/colorbar/title/font/_color.py b/plotly/validators/parcats/line/colorbar/title/font/_color.py index f709a78792..1ce6798c15 100644 --- a/plotly/validators/parcats/line/colorbar/title/font/_color.py +++ b/plotly/validators/parcats/line/colorbar/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcats/line/colorbar/title/font/_family.py b/plotly/validators/parcats/line/colorbar/title/font/_family.py index d466e80bbd..def6ebaa50 100644 --- a/plotly/validators/parcats/line/colorbar/title/font/_family.py +++ b/plotly/validators/parcats/line/colorbar/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/parcats/line/colorbar/title/font/_lineposition.py b/plotly/validators/parcats/line/colorbar/title/font/_lineposition.py index f0c9f6484f..d5dc60ad9b 100644 --- a/plotly/validators/parcats/line/colorbar/title/font/_lineposition.py +++ b/plotly/validators/parcats/line/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/parcats/line/colorbar/title/font/_shadow.py b/plotly/validators/parcats/line/colorbar/title/font/_shadow.py index be4b53d56f..9f26d286b1 100644 --- a/plotly/validators/parcats/line/colorbar/title/font/_shadow.py +++ b/plotly/validators/parcats/line/colorbar/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcats/line/colorbar/title/font/_size.py b/plotly/validators/parcats/line/colorbar/title/font/_size.py index bbe499555d..3094077205 100644 --- a/plotly/validators/parcats/line/colorbar/title/font/_size.py +++ b/plotly/validators/parcats/line/colorbar/title/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/parcats/line/colorbar/title/font/_style.py b/plotly/validators/parcats/line/colorbar/title/font/_style.py index 396b30e7ed..6c93ad7c6d 100644 --- a/plotly/validators/parcats/line/colorbar/title/font/_style.py +++ b/plotly/validators/parcats/line/colorbar/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/parcats/line/colorbar/title/font/_textcase.py b/plotly/validators/parcats/line/colorbar/title/font/_textcase.py index 3eff304086..1506c0da15 100644 --- a/plotly/validators/parcats/line/colorbar/title/font/_textcase.py +++ b/plotly/validators/parcats/line/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/parcats/line/colorbar/title/font/_variant.py b/plotly/validators/parcats/line/colorbar/title/font/_variant.py index 64972b7d74..eaa7fa00e1 100644 --- a/plotly/validators/parcats/line/colorbar/title/font/_variant.py +++ b/plotly/validators/parcats/line/colorbar/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/parcats/line/colorbar/title/font/_weight.py b/plotly/validators/parcats/line/colorbar/title/font/_weight.py index 8f1ceecc24..846bc3e197 100644 --- a/plotly/validators/parcats/line/colorbar/title/font/_weight.py +++ b/plotly/validators/parcats/line/colorbar/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/parcats/stream/__init__.py b/plotly/validators/parcats/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/parcats/stream/__init__.py +++ b/plotly/validators/parcats/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/parcats/stream/_maxpoints.py b/plotly/validators/parcats/stream/_maxpoints.py index 1c9b05cf83..eb026f7f7a 100644 --- a/plotly/validators/parcats/stream/_maxpoints.py +++ b/plotly/validators/parcats/stream/_maxpoints.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/parcats/stream/_token.py b/plotly/validators/parcats/stream/_token.py index 1050a23907..0b6742fcde 100644 --- a/plotly/validators/parcats/stream/_token.py +++ b/plotly/validators/parcats/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/parcats/tickfont/__init__.py b/plotly/validators/parcats/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/parcats/tickfont/__init__.py +++ b/plotly/validators/parcats/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/parcats/tickfont/_color.py b/plotly/validators/parcats/tickfont/_color.py index 47f1f0acb6..8eec178204 100644 --- a/plotly/validators/parcats/tickfont/_color.py +++ b/plotly/validators/parcats/tickfont/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/parcats/tickfont/_family.py b/plotly/validators/parcats/tickfont/_family.py index 2f164710e6..909da2bca7 100644 --- a/plotly/validators/parcats/tickfont/_family.py +++ b/plotly/validators/parcats/tickfont/_family.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/parcats/tickfont/_lineposition.py b/plotly/validators/parcats/tickfont/_lineposition.py index 4515876ee9..569eea715a 100644 --- a/plotly/validators/parcats/tickfont/_lineposition.py +++ b/plotly/validators/parcats/tickfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/parcats/tickfont/_shadow.py b/plotly/validators/parcats/tickfont/_shadow.py index 486e24acbb..23262f7cc9 100644 --- a/plotly/validators/parcats/tickfont/_shadow.py +++ b/plotly/validators/parcats/tickfont/_shadow.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/parcats/tickfont/_size.py b/plotly/validators/parcats/tickfont/_size.py index 7203dc5be1..f184173592 100644 --- a/plotly/validators/parcats/tickfont/_size.py +++ b/plotly/validators/parcats/tickfont/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/parcats/tickfont/_style.py b/plotly/validators/parcats/tickfont/_style.py index 35135ffca0..8564d352c3 100644 --- a/plotly/validators/parcats/tickfont/_style.py +++ b/plotly/validators/parcats/tickfont/_style.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/parcats/tickfont/_textcase.py b/plotly/validators/parcats/tickfont/_textcase.py index be392db3ed..0a7a0c8e19 100644 --- a/plotly/validators/parcats/tickfont/_textcase.py +++ b/plotly/validators/parcats/tickfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/parcats/tickfont/_variant.py b/plotly/validators/parcats/tickfont/_variant.py index e7973e886f..1f59b16e6c 100644 --- a/plotly/validators/parcats/tickfont/_variant.py +++ b/plotly/validators/parcats/tickfont/_variant.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/parcats/tickfont/_weight.py b/plotly/validators/parcats/tickfont/_weight.py index 6550762ca2..2d5a126e01 100644 --- a/plotly/validators/parcats/tickfont/_weight.py +++ b/plotly/validators/parcats/tickfont/_weight.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/parcoords/__init__.py b/plotly/validators/parcoords/__init__.py index 9fb0212462..ff07cb0370 100644 --- a/plotly/validators/parcoords/__init__.py +++ b/plotly/validators/parcoords/__init__.py @@ -1,63 +1,34 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._visible import VisibleValidator - from ._unselected import UnselectedValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._tickfont import TickfontValidator - from ._stream import StreamValidator - from ._rangefont import RangefontValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._line import LineValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legend import LegendValidator - from ._labelside import LabelsideValidator - from ._labelfont import LabelfontValidator - from ._labelangle import LabelangleValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._domain import DomainValidator - from ._dimensiondefaults import DimensiondefaultsValidator - from ._dimensions import DimensionsValidator - from ._customdatasrc import CustomdatasrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/parcoords/_customdata.py b/plotly/validators/parcoords/_customdata.py index 1ef160fac3..24ad82771a 100644 --- a/plotly/validators/parcoords/_customdata.py +++ b/plotly/validators/parcoords/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/parcoords/_customdatasrc.py b/plotly/validators/parcoords/_customdatasrc.py index ce0fb04e47..f478838496 100644 --- a/plotly/validators/parcoords/_customdatasrc.py +++ b/plotly/validators/parcoords/_customdatasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/parcoords/_dimensiondefaults.py b/plotly/validators/parcoords/_dimensiondefaults.py index 2041264bc8..ebf9db5a96 100644 --- a/plotly/validators/parcoords/_dimensiondefaults.py +++ b/plotly/validators/parcoords/_dimensiondefaults.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DimensiondefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Dimension"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/parcoords/_dimensions.py b/plotly/validators/parcoords/_dimensions.py index 1337b114a7..fa50c63397 100644 --- a/plotly/validators/parcoords/_dimensions.py +++ b/plotly/validators/parcoords/_dimensions.py @@ -1,92 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DimensionsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/parcoords/_domain.py b/plotly/validators/parcoords/_domain.py index 4c231dbadf..0c47cf4783 100644 --- a/plotly/validators/parcoords/_domain.py +++ b/plotly/validators/parcoords/_domain.py @@ -1,28 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/parcoords/_ids.py b/plotly/validators/parcoords/_ids.py index 6b39d08e8b..9af27680ba 100644 --- a/plotly/validators/parcoords/_ids.py +++ b/plotly/validators/parcoords/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/parcoords/_idssrc.py b/plotly/validators/parcoords/_idssrc.py index eb227394ec..a7bd1ccc2d 100644 --- a/plotly/validators/parcoords/_idssrc.py +++ b/plotly/validators/parcoords/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/parcoords/_labelangle.py b/plotly/validators/parcoords/_labelangle.py index e419cf987b..9dc7b80ddc 100644 --- a/plotly/validators/parcoords/_labelangle.py +++ b/plotly/validators/parcoords/_labelangle.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/parcoords/_labelfont.py b/plotly/validators/parcoords/_labelfont.py index ce357bb001..df2bc83f15 100644 --- a/plotly/validators/parcoords/_labelfont.py +++ b/plotly/validators/parcoords/_labelfont.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Labelfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/parcoords/_labelside.py b/plotly/validators/parcoords/_labelside.py index 31a96b934d..2e40c55cd0 100644 --- a/plotly/validators/parcoords/_labelside.py +++ b/plotly/validators/parcoords/_labelside.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelsideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["top", "bottom"]), **kwargs, diff --git a/plotly/validators/parcoords/_legend.py b/plotly/validators/parcoords/_legend.py index 0ae4cf20c0..22ac79fb44 100644 --- a/plotly/validators/parcoords/_legend.py +++ b/plotly/validators/parcoords/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/parcoords/_legendgrouptitle.py b/plotly/validators/parcoords/_legendgrouptitle.py index 58ba2592c5..fe3ddf28ef 100644 --- a/plotly/validators/parcoords/_legendgrouptitle.py +++ b/plotly/validators/parcoords/_legendgrouptitle.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/parcoords/_legendrank.py b/plotly/validators/parcoords/_legendrank.py index 4b44f9c641..0d11eedb6a 100644 --- a/plotly/validators/parcoords/_legendrank.py +++ b/plotly/validators/parcoords/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/parcoords/_legendwidth.py b/plotly/validators/parcoords/_legendwidth.py index 0ee8b65a3e..c70dfbea2b 100644 --- a/plotly/validators/parcoords/_legendwidth.py +++ b/plotly/validators/parcoords/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/parcoords/_line.py b/plotly/validators/parcoords/_line.py index 80c3b67104..0288642402 100644 --- a/plotly/validators/parcoords/_line.py +++ b/plotly/validators/parcoords/_line.py @@ -1,101 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/parcoords/_meta.py b/plotly/validators/parcoords/_meta.py index 28b767b7d1..5fafcf25fb 100644 --- a/plotly/validators/parcoords/_meta.py +++ b/plotly/validators/parcoords/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/parcoords/_metasrc.py b/plotly/validators/parcoords/_metasrc.py index a7371f41ef..1d9831078a 100644 --- a/plotly/validators/parcoords/_metasrc.py +++ b/plotly/validators/parcoords/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/parcoords/_name.py b/plotly/validators/parcoords/_name.py index 014cc51124..fa2e0d86d3 100644 --- a/plotly/validators/parcoords/_name.py +++ b/plotly/validators/parcoords/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/parcoords/_rangefont.py b/plotly/validators/parcoords/_rangefont.py index 0fc0918651..9b12419cba 100644 --- a/plotly/validators/parcoords/_rangefont.py +++ b/plotly/validators/parcoords/_rangefont.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RangefontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Rangefont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/parcoords/_stream.py b/plotly/validators/parcoords/_stream.py index ee96503d69..ca8cede895 100644 --- a/plotly/validators/parcoords/_stream.py +++ b/plotly/validators/parcoords/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/parcoords/_tickfont.py b/plotly/validators/parcoords/_tickfont.py index 1704a71b96..2717816b6a 100644 --- a/plotly/validators/parcoords/_tickfont.py +++ b/plotly/validators/parcoords/_tickfont.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/parcoords/_uid.py b/plotly/validators/parcoords/_uid.py index bf066b6713..26841cce76 100644 --- a/plotly/validators/parcoords/_uid.py +++ b/plotly/validators/parcoords/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/parcoords/_uirevision.py b/plotly/validators/parcoords/_uirevision.py index 20b12b8bb7..1b0994558e 100644 --- a/plotly/validators/parcoords/_uirevision.py +++ b/plotly/validators/parcoords/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/parcoords/_unselected.py b/plotly/validators/parcoords/_unselected.py index 949d237381..0c05867cc1 100644 --- a/plotly/validators/parcoords/_unselected.py +++ b/plotly/validators/parcoords/_unselected.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/parcoords/_visible.py b/plotly/validators/parcoords/_visible.py index fd03a8f709..f97ce18bf0 100644 --- a/plotly/validators/parcoords/_visible.py +++ b/plotly/validators/parcoords/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/parcoords/dimension/__init__.py b/plotly/validators/parcoords/dimension/__init__.py index 69bde72cd6..0177ed8b24 100644 --- a/plotly/validators/parcoords/dimension/__init__.py +++ b/plotly/validators/parcoords/dimension/__init__.py @@ -1,41 +1,23 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._visible import VisibleValidator - from ._valuessrc import ValuessrcValidator - from ._values import ValuesValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._tickformat import TickformatValidator - from ._templateitemname import TemplateitemnameValidator - from ._range import RangeValidator - from ._name import NameValidator - from ._multiselect import MultiselectValidator - from ._label import LabelValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/parcoords/dimension/_constraintrange.py b/plotly/validators/parcoords/dimension/_constraintrange.py index f1055a75c2..a2e5573502 100644 --- a/plotly/validators/parcoords/dimension/_constraintrange.py +++ b/plotly/validators/parcoords/dimension/_constraintrange.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ConstraintrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, dimensions=kwargs.pop("dimensions", "1-2"), edit_type=kwargs.pop("edit_type", "plot"), free_length=kwargs.pop("free_length", True), diff --git a/plotly/validators/parcoords/dimension/_label.py b/plotly/validators/parcoords/dimension/_label.py index 58bbd6bd5f..66fe0fdac7 100644 --- a/plotly/validators/parcoords/dimension/_label.py +++ b/plotly/validators/parcoords/dimension/_label.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/parcoords/dimension/_multiselect.py b/plotly/validators/parcoords/dimension/_multiselect.py index a0b43f108c..bcd11ce618 100644 --- a/plotly/validators/parcoords/dimension/_multiselect.py +++ b/plotly/validators/parcoords/dimension/_multiselect.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MultiselectValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/parcoords/dimension/_name.py b/plotly/validators/parcoords/dimension/_name.py index b071e2f22a..f84bcb7f28 100644 --- a/plotly/validators/parcoords/dimension/_name.py +++ b/plotly/validators/parcoords/dimension/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/parcoords/dimension/_range.py b/plotly/validators/parcoords/dimension/_range.py index fe9a4b7a7c..465d0c069d 100644 --- a/plotly/validators/parcoords/dimension/_range.py +++ b/plotly/validators/parcoords/dimension/_range.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/parcoords/dimension/_templateitemname.py b/plotly/validators/parcoords/dimension/_templateitemname.py index 7a8ac7d753..4ead5c55f7 100644 --- a/plotly/validators/parcoords/dimension/_templateitemname.py +++ b/plotly/validators/parcoords/dimension/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/parcoords/dimension/_tickformat.py b/plotly/validators/parcoords/dimension/_tickformat.py index 1000206453..89bbee6451 100644 --- a/plotly/validators/parcoords/dimension/_tickformat.py +++ b/plotly/validators/parcoords/dimension/_tickformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/parcoords/dimension/_ticktext.py b/plotly/validators/parcoords/dimension/_ticktext.py index ceaa611889..c330873f88 100644 --- a/plotly/validators/parcoords/dimension/_ticktext.py +++ b/plotly/validators/parcoords/dimension/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/parcoords/dimension/_ticktextsrc.py b/plotly/validators/parcoords/dimension/_ticktextsrc.py index 7d1958bf66..b79ca902fc 100644 --- a/plotly/validators/parcoords/dimension/_ticktextsrc.py +++ b/plotly/validators/parcoords/dimension/_ticktextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/parcoords/dimension/_tickvals.py b/plotly/validators/parcoords/dimension/_tickvals.py index b1d5672a9f..f3fd262a50 100644 --- a/plotly/validators/parcoords/dimension/_tickvals.py +++ b/plotly/validators/parcoords/dimension/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/parcoords/dimension/_tickvalssrc.py b/plotly/validators/parcoords/dimension/_tickvalssrc.py index 9460b5268a..d80a947e45 100644 --- a/plotly/validators/parcoords/dimension/_tickvalssrc.py +++ b/plotly/validators/parcoords/dimension/_tickvalssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/parcoords/dimension/_values.py b/plotly/validators/parcoords/dimension/_values.py index a1543a15af..8881698eb1 100644 --- a/plotly/validators/parcoords/dimension/_values.py +++ b/plotly/validators/parcoords/dimension/_values.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValuesValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/parcoords/dimension/_valuessrc.py b/plotly/validators/parcoords/dimension/_valuessrc.py index d81641aa6a..ce56d730fc 100644 --- a/plotly/validators/parcoords/dimension/_valuessrc.py +++ b/plotly/validators/parcoords/dimension/_valuessrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValuessrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/parcoords/dimension/_visible.py b/plotly/validators/parcoords/dimension/_visible.py index 3d214cf1d1..e9dd4c8ea6 100644 --- a/plotly/validators/parcoords/dimension/_visible.py +++ b/plotly/validators/parcoords/dimension/_visible.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/parcoords/domain/__init__.py b/plotly/validators/parcoords/domain/__init__.py index 67de5030d0..42827f1d1e 100644 --- a/plotly/validators/parcoords/domain/__init__.py +++ b/plotly/validators/parcoords/domain/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._y import YValidator - from ._x import XValidator - from ._row import RowValidator - from ._column import ColumnValidator -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [], - [ - "._y.YValidator", - "._x.XValidator", - "._row.RowValidator", - "._column.ColumnValidator", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._y.YValidator", + "._x.XValidator", + "._row.RowValidator", + "._column.ColumnValidator", + ], +) diff --git a/plotly/validators/parcoords/domain/_column.py b/plotly/validators/parcoords/domain/_column.py index 02bbeacd34..506951d246 100644 --- a/plotly/validators/parcoords/domain/_column.py +++ b/plotly/validators/parcoords/domain/_column.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/parcoords/domain/_row.py b/plotly/validators/parcoords/domain/_row.py index 449e22cefb..481f7a07c7 100644 --- a/plotly/validators/parcoords/domain/_row.py +++ b/plotly/validators/parcoords/domain/_row.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RowValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/parcoords/domain/_x.py b/plotly/validators/parcoords/domain/_x.py index 515d581d60..5fb338ed27 100644 --- a/plotly/validators/parcoords/domain/_x.py +++ b/plotly/validators/parcoords/domain/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/parcoords/domain/_y.py b/plotly/validators/parcoords/domain/_y.py index 3daf0b4b89..13deadb681 100644 --- a/plotly/validators/parcoords/domain/_y.py +++ b/plotly/validators/parcoords/domain/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), items=kwargs.pop( "items", diff --git a/plotly/validators/parcoords/labelfont/__init__.py b/plotly/validators/parcoords/labelfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/parcoords/labelfont/__init__.py +++ b/plotly/validators/parcoords/labelfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/parcoords/labelfont/_color.py b/plotly/validators/parcoords/labelfont/_color.py index cdee801230..478764f036 100644 --- a/plotly/validators/parcoords/labelfont/_color.py +++ b/plotly/validators/parcoords/labelfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/parcoords/labelfont/_family.py b/plotly/validators/parcoords/labelfont/_family.py index 6452497079..77f6076aca 100644 --- a/plotly/validators/parcoords/labelfont/_family.py +++ b/plotly/validators/parcoords/labelfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/parcoords/labelfont/_lineposition.py b/plotly/validators/parcoords/labelfont/_lineposition.py index e8bf3b59bd..478d5dc0bb 100644 --- a/plotly/validators/parcoords/labelfont/_lineposition.py +++ b/plotly/validators/parcoords/labelfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/parcoords/labelfont/_shadow.py b/plotly/validators/parcoords/labelfont/_shadow.py index 075507bf05..dedd857d2d 100644 --- a/plotly/validators/parcoords/labelfont/_shadow.py +++ b/plotly/validators/parcoords/labelfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/parcoords/labelfont/_size.py b/plotly/validators/parcoords/labelfont/_size.py index 49b61ab91e..50cebcfc13 100644 --- a/plotly/validators/parcoords/labelfont/_size.py +++ b/plotly/validators/parcoords/labelfont/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/parcoords/labelfont/_style.py b/plotly/validators/parcoords/labelfont/_style.py index 1daf7ebee5..be0578f96a 100644 --- a/plotly/validators/parcoords/labelfont/_style.py +++ b/plotly/validators/parcoords/labelfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/parcoords/labelfont/_textcase.py b/plotly/validators/parcoords/labelfont/_textcase.py index 759d7b89ec..8a02f83c20 100644 --- a/plotly/validators/parcoords/labelfont/_textcase.py +++ b/plotly/validators/parcoords/labelfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/parcoords/labelfont/_variant.py b/plotly/validators/parcoords/labelfont/_variant.py index 6090fddaef..f8d3b9f898 100644 --- a/plotly/validators/parcoords/labelfont/_variant.py +++ b/plotly/validators/parcoords/labelfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/parcoords/labelfont/_weight.py b/plotly/validators/parcoords/labelfont/_weight.py index 3593a5744f..390c7db51f 100644 --- a/plotly/validators/parcoords/labelfont/_weight.py +++ b/plotly/validators/parcoords/labelfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/parcoords/legendgrouptitle/__init__.py b/plotly/validators/parcoords/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/parcoords/legendgrouptitle/__init__.py +++ b/plotly/validators/parcoords/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/parcoords/legendgrouptitle/_font.py b/plotly/validators/parcoords/legendgrouptitle/_font.py index 0eee46907e..d0a6a16908 100644 --- a/plotly/validators/parcoords/legendgrouptitle/_font.py +++ b/plotly/validators/parcoords/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/parcoords/legendgrouptitle/_text.py b/plotly/validators/parcoords/legendgrouptitle/_text.py index b59e1b8201..668b74ed2f 100644 --- a/plotly/validators/parcoords/legendgrouptitle/_text.py +++ b/plotly/validators/parcoords/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/parcoords/legendgrouptitle/font/__init__.py b/plotly/validators/parcoords/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/parcoords/legendgrouptitle/font/__init__.py +++ b/plotly/validators/parcoords/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/parcoords/legendgrouptitle/font/_color.py b/plotly/validators/parcoords/legendgrouptitle/font/_color.py index 882105ec04..d256eb2d81 100644 --- a/plotly/validators/parcoords/legendgrouptitle/font/_color.py +++ b/plotly/validators/parcoords/legendgrouptitle/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/parcoords/legendgrouptitle/font/_family.py b/plotly/validators/parcoords/legendgrouptitle/font/_family.py index c8ec06e829..8f420c91aa 100644 --- a/plotly/validators/parcoords/legendgrouptitle/font/_family.py +++ b/plotly/validators/parcoords/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/parcoords/legendgrouptitle/font/_lineposition.py b/plotly/validators/parcoords/legendgrouptitle/font/_lineposition.py index 0a166b98a3..68c31d3eb4 100644 --- a/plotly/validators/parcoords/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/parcoords/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/parcoords/legendgrouptitle/font/_shadow.py b/plotly/validators/parcoords/legendgrouptitle/font/_shadow.py index 6acb9988d1..6e589c4b85 100644 --- a/plotly/validators/parcoords/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/parcoords/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/parcoords/legendgrouptitle/font/_size.py b/plotly/validators/parcoords/legendgrouptitle/font/_size.py index 25ebae0a3c..170edfd1c7 100644 --- a/plotly/validators/parcoords/legendgrouptitle/font/_size.py +++ b/plotly/validators/parcoords/legendgrouptitle/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/parcoords/legendgrouptitle/font/_style.py b/plotly/validators/parcoords/legendgrouptitle/font/_style.py index 309510bf71..7e97b9b8c2 100644 --- a/plotly/validators/parcoords/legendgrouptitle/font/_style.py +++ b/plotly/validators/parcoords/legendgrouptitle/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/parcoords/legendgrouptitle/font/_textcase.py b/plotly/validators/parcoords/legendgrouptitle/font/_textcase.py index 40e54fe237..6990fcfdf5 100644 --- a/plotly/validators/parcoords/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/parcoords/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/parcoords/legendgrouptitle/font/_variant.py b/plotly/validators/parcoords/legendgrouptitle/font/_variant.py index 595471dba3..154d961c25 100644 --- a/plotly/validators/parcoords/legendgrouptitle/font/_variant.py +++ b/plotly/validators/parcoords/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/parcoords/legendgrouptitle/font/_weight.py b/plotly/validators/parcoords/legendgrouptitle/font/_weight.py index ea20c87731..73bd1d76ac 100644 --- a/plotly/validators/parcoords/legendgrouptitle/font/_weight.py +++ b/plotly/validators/parcoords/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/parcoords/line/__init__.py b/plotly/validators/parcoords/line/__init__.py index acf6c173d8..4ec1631b84 100644 --- a/plotly/validators/parcoords/line/__init__.py +++ b/plotly/validators/parcoords/line/__init__.py @@ -1,37 +1,21 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._showscale import ShowscaleValidator - from ._reversescale import ReversescaleValidator - from ._colorsrc import ColorsrcValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._color import ColorValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/parcoords/line/_autocolorscale.py b/plotly/validators/parcoords/line/_autocolorscale.py index 8cb53c8084..c5c14b29d8 100644 --- a/plotly/validators/parcoords/line/_autocolorscale.py +++ b/plotly/validators/parcoords/line/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/parcoords/line/_cauto.py b/plotly/validators/parcoords/line/_cauto.py index 1f83f16a77..862910f0b2 100644 --- a/plotly/validators/parcoords/line/_cauto.py +++ b/plotly/validators/parcoords/line/_cauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/parcoords/line/_cmax.py b/plotly/validators/parcoords/line/_cmax.py index 0dcb28f846..02afb7be90 100644 --- a/plotly/validators/parcoords/line/_cmax.py +++ b/plotly/validators/parcoords/line/_cmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/parcoords/line/_cmid.py b/plotly/validators/parcoords/line/_cmid.py index fa8869a9ba..bb94a00c58 100644 --- a/plotly/validators/parcoords/line/_cmid.py +++ b/plotly/validators/parcoords/line/_cmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/parcoords/line/_cmin.py b/plotly/validators/parcoords/line/_cmin.py index 479e6d2b66..6d4187f743 100644 --- a/plotly/validators/parcoords/line/_cmin.py +++ b/plotly/validators/parcoords/line/_cmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/parcoords/line/_color.py b/plotly/validators/parcoords/line/_color.py index 2e415f461c..829085a583 100644 --- a/plotly/validators/parcoords/line/_color.py +++ b/plotly/validators/parcoords/line/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_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"), diff --git a/plotly/validators/parcoords/line/_coloraxis.py b/plotly/validators/parcoords/line/_coloraxis.py index 078e6bd02e..452ac7c249 100644 --- a/plotly/validators/parcoords/line/_coloraxis.py +++ b/plotly/validators/parcoords/line/_coloraxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/parcoords/line/_colorbar.py b/plotly/validators/parcoords/line/_colorbar.py index fa178b76b5..98d394b92b 100644 --- a/plotly/validators/parcoords/line/_colorbar.py +++ b/plotly/validators/parcoords/line/_colorbar.py @@ -1,279 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/parcoords/line/_colorscale.py b/plotly/validators/parcoords/line/_colorscale.py index 794b2bfe8f..9b894752ab 100644 --- a/plotly/validators/parcoords/line/_colorscale.py +++ b/plotly/validators/parcoords/line/_colorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/parcoords/line/_colorsrc.py b/plotly/validators/parcoords/line/_colorsrc.py index beeef7d621..a494d1fd6c 100644 --- a/plotly/validators/parcoords/line/_colorsrc.py +++ b/plotly/validators/parcoords/line/_colorsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/parcoords/line/_reversescale.py b/plotly/validators/parcoords/line/_reversescale.py index 994ec4692b..e123443048 100644 --- a/plotly/validators/parcoords/line/_reversescale.py +++ b/plotly/validators/parcoords/line/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/parcoords/line/_showscale.py b/plotly/validators/parcoords/line/_showscale.py index 9dad256baf..50892095fb 100644 --- a/plotly/validators/parcoords/line/_showscale.py +++ b/plotly/validators/parcoords/line/_showscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/parcoords/line/colorbar/__init__.py b/plotly/validators/parcoords/line/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/parcoords/line/colorbar/__init__.py +++ b/plotly/validators/parcoords/line/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/parcoords/line/colorbar/_bgcolor.py b/plotly/validators/parcoords/line/colorbar/_bgcolor.py index e3b6c54eea..287dceba02 100644 --- a/plotly/validators/parcoords/line/colorbar/_bgcolor.py +++ b/plotly/validators/parcoords/line/colorbar/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcoords/line/colorbar/_bordercolor.py b/plotly/validators/parcoords/line/colorbar/_bordercolor.py index e61a76630b..52ca1ad3a6 100644 --- a/plotly/validators/parcoords/line/colorbar/_bordercolor.py +++ b/plotly/validators/parcoords/line/colorbar/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcoords/line/colorbar/_borderwidth.py b/plotly/validators/parcoords/line/colorbar/_borderwidth.py index 9f5ab54511..78adc47c43 100644 --- a/plotly/validators/parcoords/line/colorbar/_borderwidth.py +++ b/plotly/validators/parcoords/line/colorbar/_borderwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/parcoords/line/colorbar/_dtick.py b/plotly/validators/parcoords/line/colorbar/_dtick.py index 1676df8443..91e76fcd08 100644 --- a/plotly/validators/parcoords/line/colorbar/_dtick.py +++ b/plotly/validators/parcoords/line/colorbar/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/parcoords/line/colorbar/_exponentformat.py b/plotly/validators/parcoords/line/colorbar/_exponentformat.py index 55b0670b59..9d2225438a 100644 --- a/plotly/validators/parcoords/line/colorbar/_exponentformat.py +++ b/plotly/validators/parcoords/line/colorbar/_exponentformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/parcoords/line/colorbar/_labelalias.py b/plotly/validators/parcoords/line/colorbar/_labelalias.py index 88383e38e9..4d8f98afda 100644 --- a/plotly/validators/parcoords/line/colorbar/_labelalias.py +++ b/plotly/validators/parcoords/line/colorbar/_labelalias.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcoords/line/colorbar/_len.py b/plotly/validators/parcoords/line/colorbar/_len.py index a2cf4185ad..60694128b1 100644 --- a/plotly/validators/parcoords/line/colorbar/_len.py +++ b/plotly/validators/parcoords/line/colorbar/_len.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/parcoords/line/colorbar/_lenmode.py b/plotly/validators/parcoords/line/colorbar/_lenmode.py index 3bee0ef6af..7b651900bc 100644 --- a/plotly/validators/parcoords/line/colorbar/_lenmode.py +++ b/plotly/validators/parcoords/line/colorbar/_lenmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/parcoords/line/colorbar/_minexponent.py b/plotly/validators/parcoords/line/colorbar/_minexponent.py index 09af0d007a..911bdc2213 100644 --- a/plotly/validators/parcoords/line/colorbar/_minexponent.py +++ b/plotly/validators/parcoords/line/colorbar/_minexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/parcoords/line/colorbar/_nticks.py b/plotly/validators/parcoords/line/colorbar/_nticks.py index bf293c27b2..b76b8abb8a 100644 --- a/plotly/validators/parcoords/line/colorbar/_nticks.py +++ b/plotly/validators/parcoords/line/colorbar/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/parcoords/line/colorbar/_orientation.py b/plotly/validators/parcoords/line/colorbar/_orientation.py index dfada88699..4d4e4fb1c6 100644 --- a/plotly/validators/parcoords/line/colorbar/_orientation.py +++ b/plotly/validators/parcoords/line/colorbar/_orientation.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/parcoords/line/colorbar/_outlinecolor.py b/plotly/validators/parcoords/line/colorbar/_outlinecolor.py index ef80296511..03d0594b51 100644 --- a/plotly/validators/parcoords/line/colorbar/_outlinecolor.py +++ b/plotly/validators/parcoords/line/colorbar/_outlinecolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcoords/line/colorbar/_outlinewidth.py b/plotly/validators/parcoords/line/colorbar/_outlinewidth.py index 49fce61d26..a03cf61f42 100644 --- a/plotly/validators/parcoords/line/colorbar/_outlinewidth.py +++ b/plotly/validators/parcoords/line/colorbar/_outlinewidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/parcoords/line/colorbar/_separatethousands.py b/plotly/validators/parcoords/line/colorbar/_separatethousands.py index b8461009ae..a821b6d378 100644 --- a/plotly/validators/parcoords/line/colorbar/_separatethousands.py +++ b/plotly/validators/parcoords/line/colorbar/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcoords/line/colorbar/_showexponent.py b/plotly/validators/parcoords/line/colorbar/_showexponent.py index 923ce477b6..3c1f09b309 100644 --- a/plotly/validators/parcoords/line/colorbar/_showexponent.py +++ b/plotly/validators/parcoords/line/colorbar/_showexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/parcoords/line/colorbar/_showticklabels.py b/plotly/validators/parcoords/line/colorbar/_showticklabels.py index 2a0f1dc477..9c3918d691 100644 --- a/plotly/validators/parcoords/line/colorbar/_showticklabels.py +++ b/plotly/validators/parcoords/line/colorbar/_showticklabels.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcoords/line/colorbar/_showtickprefix.py b/plotly/validators/parcoords/line/colorbar/_showtickprefix.py index 4905209a39..309cdd575f 100644 --- a/plotly/validators/parcoords/line/colorbar/_showtickprefix.py +++ b/plotly/validators/parcoords/line/colorbar/_showtickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/parcoords/line/colorbar/_showticksuffix.py b/plotly/validators/parcoords/line/colorbar/_showticksuffix.py index 521ff7870a..9320ffef3b 100644 --- a/plotly/validators/parcoords/line/colorbar/_showticksuffix.py +++ b/plotly/validators/parcoords/line/colorbar/_showticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/parcoords/line/colorbar/_thickness.py b/plotly/validators/parcoords/line/colorbar/_thickness.py index 42aa471ea6..18165d7cfc 100644 --- a/plotly/validators/parcoords/line/colorbar/_thickness.py +++ b/plotly/validators/parcoords/line/colorbar/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/parcoords/line/colorbar/_thicknessmode.py b/plotly/validators/parcoords/line/colorbar/_thicknessmode.py index 5a0c6b7fed..b2881b4ff9 100644 --- a/plotly/validators/parcoords/line/colorbar/_thicknessmode.py +++ b/plotly/validators/parcoords/line/colorbar/_thicknessmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/parcoords/line/colorbar/_tick0.py b/plotly/validators/parcoords/line/colorbar/_tick0.py index 0471333c67..2634796eeb 100644 --- a/plotly/validators/parcoords/line/colorbar/_tick0.py +++ b/plotly/validators/parcoords/line/colorbar/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/parcoords/line/colorbar/_tickangle.py b/plotly/validators/parcoords/line/colorbar/_tickangle.py index 0ee19a40d3..148f01310c 100644 --- a/plotly/validators/parcoords/line/colorbar/_tickangle.py +++ b/plotly/validators/parcoords/line/colorbar/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcoords/line/colorbar/_tickcolor.py b/plotly/validators/parcoords/line/colorbar/_tickcolor.py index 0510bec604..65b2c24733 100644 --- a/plotly/validators/parcoords/line/colorbar/_tickcolor.py +++ b/plotly/validators/parcoords/line/colorbar/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcoords/line/colorbar/_tickfont.py b/plotly/validators/parcoords/line/colorbar/_tickfont.py index 101e257345..88ae58a6a2 100644 --- a/plotly/validators/parcoords/line/colorbar/_tickfont.py +++ b/plotly/validators/parcoords/line/colorbar/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/parcoords/line/colorbar/_tickformat.py b/plotly/validators/parcoords/line/colorbar/_tickformat.py index f0a944a572..63256c60aa 100644 --- a/plotly/validators/parcoords/line/colorbar/_tickformat.py +++ b/plotly/validators/parcoords/line/colorbar/_tickformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcoords/line/colorbar/_tickformatstopdefaults.py b/plotly/validators/parcoords/line/colorbar/_tickformatstopdefaults.py index 181a3b1f88..3f9327a5b9 100644 --- a/plotly/validators/parcoords/line/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/parcoords/line/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/parcoords/line/colorbar/_tickformatstops.py b/plotly/validators/parcoords/line/colorbar/_tickformatstops.py index bf3c939f0a..0134f727c0 100644 --- a/plotly/validators/parcoords/line/colorbar/_tickformatstops.py +++ b/plotly/validators/parcoords/line/colorbar/_tickformatstops.py @@ -1,53 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/parcoords/line/colorbar/_ticklabeloverflow.py b/plotly/validators/parcoords/line/colorbar/_ticklabeloverflow.py index 477858bd96..54de03411f 100644 --- a/plotly/validators/parcoords/line/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/parcoords/line/colorbar/_ticklabeloverflow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/parcoords/line/colorbar/_ticklabelposition.py b/plotly/validators/parcoords/line/colorbar/_ticklabelposition.py index 05d93b7f8c..bb361b002e 100644 --- a/plotly/validators/parcoords/line/colorbar/_ticklabelposition.py +++ b/plotly/validators/parcoords/line/colorbar/_ticklabelposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/parcoords/line/colorbar/_ticklabelstep.py b/plotly/validators/parcoords/line/colorbar/_ticklabelstep.py index 1b92e9ce9c..93fcd2fd97 100644 --- a/plotly/validators/parcoords/line/colorbar/_ticklabelstep.py +++ b/plotly/validators/parcoords/line/colorbar/_ticklabelstep.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/parcoords/line/colorbar/_ticklen.py b/plotly/validators/parcoords/line/colorbar/_ticklen.py index d202cf8c6d..6c83ca9fcb 100644 --- a/plotly/validators/parcoords/line/colorbar/_ticklen.py +++ b/plotly/validators/parcoords/line/colorbar/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/parcoords/line/colorbar/_tickmode.py b/plotly/validators/parcoords/line/colorbar/_tickmode.py index 84a9507828..46cb897fcf 100644 --- a/plotly/validators/parcoords/line/colorbar/_tickmode.py +++ b/plotly/validators/parcoords/line/colorbar/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/parcoords/line/colorbar/_tickprefix.py b/plotly/validators/parcoords/line/colorbar/_tickprefix.py index 52423d41d3..761d21d7fe 100644 --- a/plotly/validators/parcoords/line/colorbar/_tickprefix.py +++ b/plotly/validators/parcoords/line/colorbar/_tickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcoords/line/colorbar/_ticks.py b/plotly/validators/parcoords/line/colorbar/_ticks.py index b1ec58d1cb..4341ef9bc0 100644 --- a/plotly/validators/parcoords/line/colorbar/_ticks.py +++ b/plotly/validators/parcoords/line/colorbar/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/parcoords/line/colorbar/_ticksuffix.py b/plotly/validators/parcoords/line/colorbar/_ticksuffix.py index e95e7e18e9..f456dfc779 100644 --- a/plotly/validators/parcoords/line/colorbar/_ticksuffix.py +++ b/plotly/validators/parcoords/line/colorbar/_ticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcoords/line/colorbar/_ticktext.py b/plotly/validators/parcoords/line/colorbar/_ticktext.py index 5ba0cd8e25..5604cba003 100644 --- a/plotly/validators/parcoords/line/colorbar/_ticktext.py +++ b/plotly/validators/parcoords/line/colorbar/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcoords/line/colorbar/_ticktextsrc.py b/plotly/validators/parcoords/line/colorbar/_ticktextsrc.py index bae22a9e69..a3ae332acf 100644 --- a/plotly/validators/parcoords/line/colorbar/_ticktextsrc.py +++ b/plotly/validators/parcoords/line/colorbar/_ticktextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/parcoords/line/colorbar/_tickvals.py b/plotly/validators/parcoords/line/colorbar/_tickvals.py index 6fcf5f1ea0..d65fe7b192 100644 --- a/plotly/validators/parcoords/line/colorbar/_tickvals.py +++ b/plotly/validators/parcoords/line/colorbar/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcoords/line/colorbar/_tickvalssrc.py b/plotly/validators/parcoords/line/colorbar/_tickvalssrc.py index 44e37a13c9..1b59e167d5 100644 --- a/plotly/validators/parcoords/line/colorbar/_tickvalssrc.py +++ b/plotly/validators/parcoords/line/colorbar/_tickvalssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/parcoords/line/colorbar/_tickwidth.py b/plotly/validators/parcoords/line/colorbar/_tickwidth.py index 27599896fb..9839073e18 100644 --- a/plotly/validators/parcoords/line/colorbar/_tickwidth.py +++ b/plotly/validators/parcoords/line/colorbar/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/parcoords/line/colorbar/_title.py b/plotly/validators/parcoords/line/colorbar/_title.py index 12eca3ff07..94133ab9ce 100644 --- a/plotly/validators/parcoords/line/colorbar/_title.py +++ b/plotly/validators/parcoords/line/colorbar/_title.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/parcoords/line/colorbar/_x.py b/plotly/validators/parcoords/line/colorbar/_x.py index 1b6a9e3b55..82e7d624e7 100644 --- a/plotly/validators/parcoords/line/colorbar/_x.py +++ b/plotly/validators/parcoords/line/colorbar/_x.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcoords/line/colorbar/_xanchor.py b/plotly/validators/parcoords/line/colorbar/_xanchor.py index 8658ec58b4..e1add61751 100644 --- a/plotly/validators/parcoords/line/colorbar/_xanchor.py +++ b/plotly/validators/parcoords/line/colorbar/_xanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/parcoords/line/colorbar/_xpad.py b/plotly/validators/parcoords/line/colorbar/_xpad.py index 823422ba86..b69dbbbd85 100644 --- a/plotly/validators/parcoords/line/colorbar/_xpad.py +++ b/plotly/validators/parcoords/line/colorbar/_xpad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/parcoords/line/colorbar/_xref.py b/plotly/validators/parcoords/line/colorbar/_xref.py index 900ae3a9d1..16d13a45d5 100644 --- a/plotly/validators/parcoords/line/colorbar/_xref.py +++ b/plotly/validators/parcoords/line/colorbar/_xref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/parcoords/line/colorbar/_y.py b/plotly/validators/parcoords/line/colorbar/_y.py index c08ef88a13..48ef201721 100644 --- a/plotly/validators/parcoords/line/colorbar/_y.py +++ b/plotly/validators/parcoords/line/colorbar/_y.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcoords/line/colorbar/_yanchor.py b/plotly/validators/parcoords/line/colorbar/_yanchor.py index 9d680370a6..9a464cdeb5 100644 --- a/plotly/validators/parcoords/line/colorbar/_yanchor.py +++ b/plotly/validators/parcoords/line/colorbar/_yanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/parcoords/line/colorbar/_ypad.py b/plotly/validators/parcoords/line/colorbar/_ypad.py index 9f204b9768..4bdb272e9a 100644 --- a/plotly/validators/parcoords/line/colorbar/_ypad.py +++ b/plotly/validators/parcoords/line/colorbar/_ypad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/parcoords/line/colorbar/_yref.py b/plotly/validators/parcoords/line/colorbar/_yref.py index 556d1ab028..fdb4548b3c 100644 --- a/plotly/validators/parcoords/line/colorbar/_yref.py +++ b/plotly/validators/parcoords/line/colorbar/_yref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/parcoords/line/colorbar/tickfont/__init__.py b/plotly/validators/parcoords/line/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/parcoords/line/colorbar/tickfont/__init__.py +++ b/plotly/validators/parcoords/line/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/parcoords/line/colorbar/tickfont/_color.py b/plotly/validators/parcoords/line/colorbar/tickfont/_color.py index ad52474434..1ad65aeb78 100644 --- a/plotly/validators/parcoords/line/colorbar/tickfont/_color.py +++ b/plotly/validators/parcoords/line/colorbar/tickfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcoords/line/colorbar/tickfont/_family.py b/plotly/validators/parcoords/line/colorbar/tickfont/_family.py index 769fecb50e..5a29a956b3 100644 --- a/plotly/validators/parcoords/line/colorbar/tickfont/_family.py +++ b/plotly/validators/parcoords/line/colorbar/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/parcoords/line/colorbar/tickfont/_lineposition.py b/plotly/validators/parcoords/line/colorbar/tickfont/_lineposition.py index 69a94e736d..eeb8be84b6 100644 --- a/plotly/validators/parcoords/line/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/parcoords/line/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/parcoords/line/colorbar/tickfont/_shadow.py b/plotly/validators/parcoords/line/colorbar/tickfont/_shadow.py index ecdc95d0f2..6c17c64333 100644 --- a/plotly/validators/parcoords/line/colorbar/tickfont/_shadow.py +++ b/plotly/validators/parcoords/line/colorbar/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcoords/line/colorbar/tickfont/_size.py b/plotly/validators/parcoords/line/colorbar/tickfont/_size.py index bcf2971fef..f2b736454f 100644 --- a/plotly/validators/parcoords/line/colorbar/tickfont/_size.py +++ b/plotly/validators/parcoords/line/colorbar/tickfont/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/parcoords/line/colorbar/tickfont/_style.py b/plotly/validators/parcoords/line/colorbar/tickfont/_style.py index a163c19ae8..1c296558db 100644 --- a/plotly/validators/parcoords/line/colorbar/tickfont/_style.py +++ b/plotly/validators/parcoords/line/colorbar/tickfont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/parcoords/line/colorbar/tickfont/_textcase.py b/plotly/validators/parcoords/line/colorbar/tickfont/_textcase.py index b91079eeb1..a3849201c8 100644 --- a/plotly/validators/parcoords/line/colorbar/tickfont/_textcase.py +++ b/plotly/validators/parcoords/line/colorbar/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/parcoords/line/colorbar/tickfont/_variant.py b/plotly/validators/parcoords/line/colorbar/tickfont/_variant.py index 458ec8dd28..014163fda0 100644 --- a/plotly/validators/parcoords/line/colorbar/tickfont/_variant.py +++ b/plotly/validators/parcoords/line/colorbar/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/parcoords/line/colorbar/tickfont/_weight.py b/plotly/validators/parcoords/line/colorbar/tickfont/_weight.py index 18afa72e5e..ee6ed145d5 100644 --- a/plotly/validators/parcoords/line/colorbar/tickfont/_weight.py +++ b/plotly/validators/parcoords/line/colorbar/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/parcoords/line/colorbar/tickformatstop/__init__.py b/plotly/validators/parcoords/line/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/parcoords/line/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/parcoords/line/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/parcoords/line/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/parcoords/line/colorbar/tickformatstop/_dtickrange.py index 73e75dc915..9163324596 100644 --- a/plotly/validators/parcoords/line/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/parcoords/line/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( "items", diff --git a/plotly/validators/parcoords/line/colorbar/tickformatstop/_enabled.py b/plotly/validators/parcoords/line/colorbar/tickformatstop/_enabled.py index abd001c608..51f8e52123 100644 --- a/plotly/validators/parcoords/line/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/parcoords/line/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcoords/line/colorbar/tickformatstop/_name.py b/plotly/validators/parcoords/line/colorbar/tickformatstop/_name.py index 3b62af4e0b..7023b5f26e 100644 --- a/plotly/validators/parcoords/line/colorbar/tickformatstop/_name.py +++ b/plotly/validators/parcoords/line/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcoords/line/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/parcoords/line/colorbar/tickformatstop/_templateitemname.py index 04007c62d9..5f5c3ad3ad 100644 --- a/plotly/validators/parcoords/line/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/parcoords/line/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcoords/line/colorbar/tickformatstop/_value.py b/plotly/validators/parcoords/line/colorbar/tickformatstop/_value.py index b1d4645936..dffa0c326f 100644 --- a/plotly/validators/parcoords/line/colorbar/tickformatstop/_value.py +++ b/plotly/validators/parcoords/line/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcoords/line/colorbar/title/__init__.py b/plotly/validators/parcoords/line/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/parcoords/line/colorbar/title/__init__.py +++ b/plotly/validators/parcoords/line/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/parcoords/line/colorbar/title/_font.py b/plotly/validators/parcoords/line/colorbar/title/_font.py index 4ca22c3ad0..6ba2e69657 100644 --- a/plotly/validators/parcoords/line/colorbar/title/_font.py +++ b/plotly/validators/parcoords/line/colorbar/title/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/parcoords/line/colorbar/title/_side.py b/plotly/validators/parcoords/line/colorbar/title/_side.py index 0e8156b146..991bf25eb3 100644 --- a/plotly/validators/parcoords/line/colorbar/title/_side.py +++ b/plotly/validators/parcoords/line/colorbar/title/_side.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/parcoords/line/colorbar/title/_text.py b/plotly/validators/parcoords/line/colorbar/title/_text.py index 7657b8d0de..71018b1bef 100644 --- a/plotly/validators/parcoords/line/colorbar/title/_text.py +++ b/plotly/validators/parcoords/line/colorbar/title/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcoords/line/colorbar/title/font/__init__.py b/plotly/validators/parcoords/line/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/parcoords/line/colorbar/title/font/__init__.py +++ b/plotly/validators/parcoords/line/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/parcoords/line/colorbar/title/font/_color.py b/plotly/validators/parcoords/line/colorbar/title/font/_color.py index 40a3788988..1320e48fa4 100644 --- a/plotly/validators/parcoords/line/colorbar/title/font/_color.py +++ b/plotly/validators/parcoords/line/colorbar/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcoords/line/colorbar/title/font/_family.py b/plotly/validators/parcoords/line/colorbar/title/font/_family.py index 19c23f12ab..55d40f4acc 100644 --- a/plotly/validators/parcoords/line/colorbar/title/font/_family.py +++ b/plotly/validators/parcoords/line/colorbar/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/parcoords/line/colorbar/title/font/_lineposition.py b/plotly/validators/parcoords/line/colorbar/title/font/_lineposition.py index 9c6fa3a895..f1c3aa9485 100644 --- a/plotly/validators/parcoords/line/colorbar/title/font/_lineposition.py +++ b/plotly/validators/parcoords/line/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/parcoords/line/colorbar/title/font/_shadow.py b/plotly/validators/parcoords/line/colorbar/title/font/_shadow.py index aa23688003..562bd64a86 100644 --- a/plotly/validators/parcoords/line/colorbar/title/font/_shadow.py +++ b/plotly/validators/parcoords/line/colorbar/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/parcoords/line/colorbar/title/font/_size.py b/plotly/validators/parcoords/line/colorbar/title/font/_size.py index d67224836c..b1e26ac064 100644 --- a/plotly/validators/parcoords/line/colorbar/title/font/_size.py +++ b/plotly/validators/parcoords/line/colorbar/title/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/parcoords/line/colorbar/title/font/_style.py b/plotly/validators/parcoords/line/colorbar/title/font/_style.py index 782529b7a3..74d673c3d1 100644 --- a/plotly/validators/parcoords/line/colorbar/title/font/_style.py +++ b/plotly/validators/parcoords/line/colorbar/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/parcoords/line/colorbar/title/font/_textcase.py b/plotly/validators/parcoords/line/colorbar/title/font/_textcase.py index cc29356d87..a9eae9b4f9 100644 --- a/plotly/validators/parcoords/line/colorbar/title/font/_textcase.py +++ b/plotly/validators/parcoords/line/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/parcoords/line/colorbar/title/font/_variant.py b/plotly/validators/parcoords/line/colorbar/title/font/_variant.py index abbc47ceb6..23b9094c2a 100644 --- a/plotly/validators/parcoords/line/colorbar/title/font/_variant.py +++ b/plotly/validators/parcoords/line/colorbar/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/parcoords/line/colorbar/title/font/_weight.py b/plotly/validators/parcoords/line/colorbar/title/font/_weight.py index a678c66683..92a8b732ed 100644 --- a/plotly/validators/parcoords/line/colorbar/title/font/_weight.py +++ b/plotly/validators/parcoords/line/colorbar/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/parcoords/rangefont/__init__.py b/plotly/validators/parcoords/rangefont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/parcoords/rangefont/__init__.py +++ b/plotly/validators/parcoords/rangefont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/parcoords/rangefont/_color.py b/plotly/validators/parcoords/rangefont/_color.py index 3ead31b559..c7b9ccf04c 100644 --- a/plotly/validators/parcoords/rangefont/_color.py +++ b/plotly/validators/parcoords/rangefont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/parcoords/rangefont/_family.py b/plotly/validators/parcoords/rangefont/_family.py index 083709e706..ee6e51cdf5 100644 --- a/plotly/validators/parcoords/rangefont/_family.py +++ b/plotly/validators/parcoords/rangefont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/parcoords/rangefont/_lineposition.py b/plotly/validators/parcoords/rangefont/_lineposition.py index 6db2d17f98..04706ed335 100644 --- a/plotly/validators/parcoords/rangefont/_lineposition.py +++ b/plotly/validators/parcoords/rangefont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/parcoords/rangefont/_shadow.py b/plotly/validators/parcoords/rangefont/_shadow.py index 7c6ebfcb98..f684e01897 100644 --- a/plotly/validators/parcoords/rangefont/_shadow.py +++ b/plotly/validators/parcoords/rangefont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/parcoords/rangefont/_size.py b/plotly/validators/parcoords/rangefont/_size.py index 12952c829c..020b5db10c 100644 --- a/plotly/validators/parcoords/rangefont/_size.py +++ b/plotly/validators/parcoords/rangefont/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/parcoords/rangefont/_style.py b/plotly/validators/parcoords/rangefont/_style.py index 75566065b5..31387025bb 100644 --- a/plotly/validators/parcoords/rangefont/_style.py +++ b/plotly/validators/parcoords/rangefont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/parcoords/rangefont/_textcase.py b/plotly/validators/parcoords/rangefont/_textcase.py index f1105bc3f4..cdf8b3d75e 100644 --- a/plotly/validators/parcoords/rangefont/_textcase.py +++ b/plotly/validators/parcoords/rangefont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/parcoords/rangefont/_variant.py b/plotly/validators/parcoords/rangefont/_variant.py index a48fc037f3..c4eb0ca37c 100644 --- a/plotly/validators/parcoords/rangefont/_variant.py +++ b/plotly/validators/parcoords/rangefont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/parcoords/rangefont/_weight.py b/plotly/validators/parcoords/rangefont/_weight.py index fcbc6de39f..447b2ac116 100644 --- a/plotly/validators/parcoords/rangefont/_weight.py +++ b/plotly/validators/parcoords/rangefont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/parcoords/stream/__init__.py b/plotly/validators/parcoords/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/parcoords/stream/__init__.py +++ b/plotly/validators/parcoords/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/parcoords/stream/_maxpoints.py b/plotly/validators/parcoords/stream/_maxpoints.py index 84107754f1..14eb34d18c 100644 --- a/plotly/validators/parcoords/stream/_maxpoints.py +++ b/plotly/validators/parcoords/stream/_maxpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/parcoords/stream/_token.py b/plotly/validators/parcoords/stream/_token.py index c431f1a940..c4d618087d 100644 --- a/plotly/validators/parcoords/stream/_token.py +++ b/plotly/validators/parcoords/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/parcoords/tickfont/__init__.py b/plotly/validators/parcoords/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/parcoords/tickfont/__init__.py +++ b/plotly/validators/parcoords/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/parcoords/tickfont/_color.py b/plotly/validators/parcoords/tickfont/_color.py index 827066d526..4a8bc4ba0e 100644 --- a/plotly/validators/parcoords/tickfont/_color.py +++ b/plotly/validators/parcoords/tickfont/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/parcoords/tickfont/_family.py b/plotly/validators/parcoords/tickfont/_family.py index dcf8986739..9def919a6d 100644 --- a/plotly/validators/parcoords/tickfont/_family.py +++ b/plotly/validators/parcoords/tickfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/parcoords/tickfont/_lineposition.py b/plotly/validators/parcoords/tickfont/_lineposition.py index 4025a150d5..e35701763f 100644 --- a/plotly/validators/parcoords/tickfont/_lineposition.py +++ b/plotly/validators/parcoords/tickfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/parcoords/tickfont/_shadow.py b/plotly/validators/parcoords/tickfont/_shadow.py index 85ee51fe87..7b2cc2a92b 100644 --- a/plotly/validators/parcoords/tickfont/_shadow.py +++ b/plotly/validators/parcoords/tickfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/parcoords/tickfont/_size.py b/plotly/validators/parcoords/tickfont/_size.py index 8ef1dcd12c..af838fc445 100644 --- a/plotly/validators/parcoords/tickfont/_size.py +++ b/plotly/validators/parcoords/tickfont/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/parcoords/tickfont/_style.py b/plotly/validators/parcoords/tickfont/_style.py index 93a02485a4..33d39ddbe9 100644 --- a/plotly/validators/parcoords/tickfont/_style.py +++ b/plotly/validators/parcoords/tickfont/_style.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/parcoords/tickfont/_textcase.py b/plotly/validators/parcoords/tickfont/_textcase.py index 273a0040cb..26eb7f8e00 100644 --- a/plotly/validators/parcoords/tickfont/_textcase.py +++ b/plotly/validators/parcoords/tickfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/parcoords/tickfont/_variant.py b/plotly/validators/parcoords/tickfont/_variant.py index e5a056b77f..9f3c668ba7 100644 --- a/plotly/validators/parcoords/tickfont/_variant.py +++ b/plotly/validators/parcoords/tickfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/parcoords/tickfont/_weight.py b/plotly/validators/parcoords/tickfont/_weight.py index 6f764db0c8..5e0a1380a8 100644 --- a/plotly/validators/parcoords/tickfont/_weight.py +++ b/plotly/validators/parcoords/tickfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/parcoords/unselected/__init__.py b/plotly/validators/parcoords/unselected/__init__.py index 90c7f7b127..f7acb5b172 100644 --- a/plotly/validators/parcoords/unselected/__init__.py +++ b/plotly/validators/parcoords/unselected/__init__.py @@ -1,11 +1,4 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import(__name__, [], ["._line.LineValidator"]) diff --git a/plotly/validators/parcoords/unselected/_line.py b/plotly/validators/parcoords/unselected/_line.py index 1df68c100c..b9e4255138 100644 --- a/plotly/validators/parcoords/unselected/_line.py +++ b/plotly/validators/parcoords/unselected/_line.py @@ -1,25 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/parcoords/unselected/line/__init__.py b/plotly/validators/parcoords/unselected/line/__init__.py index d8f31347bf..653e572933 100644 --- a/plotly/validators/parcoords/unselected/line/__init__.py +++ b/plotly/validators/parcoords/unselected/line/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._opacity.OpacityValidator", "._color.ColorValidator"] +) diff --git a/plotly/validators/parcoords/unselected/line/_color.py b/plotly/validators/parcoords/unselected/line/_color.py index b7b91d730e..a490691706 100644 --- a/plotly/validators/parcoords/unselected/line/_color.py +++ b/plotly/validators/parcoords/unselected/line/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/parcoords/unselected/line/_opacity.py b/plotly/validators/parcoords/unselected/line/_opacity.py index 2348b092f4..b31ec79e36 100644 --- a/plotly/validators/parcoords/unselected/line/_opacity.py +++ b/plotly/validators/parcoords/unselected/line/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/pie/__init__.py b/plotly/validators/pie/__init__.py index 7ee355c1cb..90f4ec7513 100644 --- a/plotly/validators/pie/__init__.py +++ b/plotly/validators/pie/__init__.py @@ -1,119 +1,62 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._visible import VisibleValidator - from ._valuessrc import ValuessrcValidator - from ._values import ValuesValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._title import TitleValidator - from ._texttemplatesrc import TexttemplatesrcValidator - from ._texttemplate import TexttemplateValidator - from ._textsrc import TextsrcValidator - from ._textpositionsrc import TextpositionsrcValidator - from ._textposition import TextpositionValidator - from ._textinfo import TextinfoValidator - from ._textfont import TextfontValidator - from ._text import TextValidator - from ._stream import StreamValidator - from ._sort import SortValidator - from ._showlegend import ShowlegendValidator - from ._scalegroup import ScalegroupValidator - from ._rotation import RotationValidator - from ._pullsrc import PullsrcValidator - from ._pull import PullValidator - from ._outsidetextfont import OutsidetextfontValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._marker import MarkerValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._labelssrc import LabelssrcValidator - from ._labels import LabelsValidator - from ._label0 import Label0Validator - from ._insidetextorientation import InsidetextorientationValidator - from ._insidetextfont import InsidetextfontValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._hole import HoleValidator - from ._domain import DomainValidator - from ._dlabel import DlabelValidator - from ._direction import DirectionValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/pie/_automargin.py b/plotly/validators/pie/_automargin.py index 40d0c9c698..8ab6ab801c 100644 --- a/plotly/validators/pie/_automargin.py +++ b/plotly/validators/pie/_automargin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutomarginValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/pie/_customdata.py b/plotly/validators/pie/_customdata.py index 00f5f52ba6..bf43c3c6ab 100644 --- a/plotly/validators/pie/_customdata.py +++ b/plotly/validators/pie/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/pie/_customdatasrc.py b/plotly/validators/pie/_customdatasrc.py index b3ea7a5d1c..1ed0123897 100644 --- a/plotly/validators/pie/_customdatasrc.py +++ b/plotly/validators/pie/_customdatasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/_direction.py b/plotly/validators/pie/_direction.py index bc706c9f50..7a6a411d92 100644 --- a/plotly/validators/pie/_direction.py +++ b/plotly/validators/pie/_direction.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DirectionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["clockwise", "counterclockwise"]), **kwargs, diff --git a/plotly/validators/pie/_dlabel.py b/plotly/validators/pie/_dlabel.py index 986fc84fdd..a2a7b2cccb 100644 --- a/plotly/validators/pie/_dlabel.py +++ b/plotly/validators/pie/_dlabel.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DlabelValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/pie/_domain.py b/plotly/validators/pie/_domain.py index ff1d81a9de..5b3f932f11 100644 --- a/plotly/validators/pie/_domain.py +++ b/plotly/validators/pie/_domain.py @@ -1,27 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/pie/_hole.py b/plotly/validators/pie/_hole.py index b539d85bb3..5985beaaea 100644 --- a/plotly/validators/pie/_hole.py +++ b/plotly/validators/pie/_hole.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoleValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/pie/_hoverinfo.py b/plotly/validators/pie/_hoverinfo.py index 3fdeadd900..d9f059b319 100644 --- a/plotly/validators/pie/_hoverinfo.py +++ b/plotly/validators/pie/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/pie/_hoverinfosrc.py b/plotly/validators/pie/_hoverinfosrc.py index 5b67b1c833..90e7108b16 100644 --- a/plotly/validators/pie/_hoverinfosrc.py +++ b/plotly/validators/pie/_hoverinfosrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/_hoverlabel.py b/plotly/validators/pie/_hoverlabel.py index 82e9a98d6c..38162f813a 100644 --- a/plotly/validators/pie/_hoverlabel.py +++ b/plotly/validators/pie/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/pie/_hovertemplate.py b/plotly/validators/pie/_hovertemplate.py index 008669a285..9c6bffda8c 100644 --- a/plotly/validators/pie/_hovertemplate.py +++ b/plotly/validators/pie/_hovertemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/pie/_hovertemplatesrc.py b/plotly/validators/pie/_hovertemplatesrc.py index 27bd761eb6..f4d01e7aed 100644 --- a/plotly/validators/pie/_hovertemplatesrc.py +++ b/plotly/validators/pie/_hovertemplatesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/_hovertext.py b/plotly/validators/pie/_hovertext.py index 6dfc626320..7f42a9624e 100644 --- a/plotly/validators/pie/_hovertext.py +++ b/plotly/validators/pie/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/pie/_hovertextsrc.py b/plotly/validators/pie/_hovertextsrc.py index 43292c62e8..fd5cf53fd0 100644 --- a/plotly/validators/pie/_hovertextsrc.py +++ b/plotly/validators/pie/_hovertextsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/_ids.py b/plotly/validators/pie/_ids.py index 1762f18a12..cc33e4999f 100644 --- a/plotly/validators/pie/_ids.py +++ b/plotly/validators/pie/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/pie/_idssrc.py b/plotly/validators/pie/_idssrc.py index 80072a90ed..824a16d76c 100644 --- a/plotly/validators/pie/_idssrc.py +++ b/plotly/validators/pie/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/_insidetextfont.py b/plotly/validators/pie/_insidetextfont.py index 2317e84b9f..3b06b75093 100644 --- a/plotly/validators/pie/_insidetextfont.py +++ b/plotly/validators/pie/_insidetextfont.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class InsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Insidetextfont"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/pie/_insidetextorientation.py b/plotly/validators/pie/_insidetextorientation.py index f7f95efe46..a18e7aadf1 100644 --- a/plotly/validators/pie/_insidetextorientation.py +++ b/plotly/validators/pie/_insidetextorientation.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class InsidetextorientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["horizontal", "radial", "tangential", "auto"]), **kwargs, diff --git a/plotly/validators/pie/_label0.py b/plotly/validators/pie/_label0.py index 754dee98dd..7097dd3083 100644 --- a/plotly/validators/pie/_label0.py +++ b/plotly/validators/pie/_label0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Label0Validator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/pie/_labels.py b/plotly/validators/pie/_labels.py index c08b30e8a2..3c0464055d 100644 --- a/plotly/validators/pie/_labels.py +++ b/plotly/validators/pie/_labels.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/pie/_labelssrc.py b/plotly/validators/pie/_labelssrc.py index fea5f08445..5a62a66231 100644 --- a/plotly/validators/pie/_labelssrc.py +++ b/plotly/validators/pie/_labelssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/_legend.py b/plotly/validators/pie/_legend.py index ea35729c43..8f6b155912 100644 --- a/plotly/validators/pie/_legend.py +++ b/plotly/validators/pie/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/pie/_legendgroup.py b/plotly/validators/pie/_legendgroup.py index 6b0275bd56..6402c16234 100644 --- a/plotly/validators/pie/_legendgroup.py +++ b/plotly/validators/pie/_legendgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/pie/_legendgrouptitle.py b/plotly/validators/pie/_legendgrouptitle.py index 554e619ac5..0ce030fa6f 100644 --- a/plotly/validators/pie/_legendgrouptitle.py +++ b/plotly/validators/pie/_legendgrouptitle.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/pie/_legendrank.py b/plotly/validators/pie/_legendrank.py index 47a2e363cd..7c75fe6031 100644 --- a/plotly/validators/pie/_legendrank.py +++ b/plotly/validators/pie/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/pie/_legendwidth.py b/plotly/validators/pie/_legendwidth.py index 7db5dbdb2e..de12297be9 100644 --- a/plotly/validators/pie/_legendwidth.py +++ b/plotly/validators/pie/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/pie/_marker.py b/plotly/validators/pie/_marker.py index 5134bed1d8..d6b92e89a7 100644 --- a/plotly/validators/pie/_marker.py +++ b/plotly/validators/pie/_marker.py @@ -1,27 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/pie/_meta.py b/plotly/validators/pie/_meta.py index 54fd038294..c1b5fbd9ef 100644 --- a/plotly/validators/pie/_meta.py +++ b/plotly/validators/pie/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/pie/_metasrc.py b/plotly/validators/pie/_metasrc.py index dd7b78a6da..4ad8f3d116 100644 --- a/plotly/validators/pie/_metasrc.py +++ b/plotly/validators/pie/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/_name.py b/plotly/validators/pie/_name.py index 4997093701..2e44bb64a2 100644 --- a/plotly/validators/pie/_name.py +++ b/plotly/validators/pie/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/pie/_opacity.py b/plotly/validators/pie/_opacity.py index 19d7b58f57..39f95f5a5c 100644 --- a/plotly/validators/pie/_opacity.py +++ b/plotly/validators/pie/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/pie/_outsidetextfont.py b/plotly/validators/pie/_outsidetextfont.py index 3556ed0bea..b05473a9f3 100644 --- a/plotly/validators/pie/_outsidetextfont.py +++ b/plotly/validators/pie/_outsidetextfont.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Outsidetextfont"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/pie/_pull.py b/plotly/validators/pie/_pull.py index 8d4b6856e0..6ead305571 100644 --- a/plotly/validators/pie/_pull.py +++ b/plotly/validators/pie/_pull.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PullValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), diff --git a/plotly/validators/pie/_pullsrc.py b/plotly/validators/pie/_pullsrc.py index c1057e5560..953352b26e 100644 --- a/plotly/validators/pie/_pullsrc.py +++ b/plotly/validators/pie/_pullsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PullsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/_rotation.py b/plotly/validators/pie/_rotation.py index 449553a04e..d8b3a07080 100644 --- a/plotly/validators/pie/_rotation.py +++ b/plotly/validators/pie/_rotation.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RotationValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/pie/_scalegroup.py b/plotly/validators/pie/_scalegroup.py index b1d8f35707..0c932dd532 100644 --- a/plotly/validators/pie/_scalegroup.py +++ b/plotly/validators/pie/_scalegroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ScalegroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/pie/_showlegend.py b/plotly/validators/pie/_showlegend.py index b076d79362..4074a7355f 100644 --- a/plotly/validators/pie/_showlegend.py +++ b/plotly/validators/pie/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/pie/_sort.py b/plotly/validators/pie/_sort.py index 7452878a24..f564237323 100644 --- a/plotly/validators/pie/_sort.py +++ b/plotly/validators/pie/_sort.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SortValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/pie/_stream.py b/plotly/validators/pie/_stream.py index 918ddba8ea..e8ebb81051 100644 --- a/plotly/validators/pie/_stream.py +++ b/plotly/validators/pie/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/pie/_text.py b/plotly/validators/pie/_text.py index aa0d25493b..07289eb1fe 100644 --- a/plotly/validators/pie/_text.py +++ b/plotly/validators/pie/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/pie/_textfont.py b/plotly/validators/pie/_textfont.py index ccb8131e66..794e4dac30 100644 --- a/plotly/validators/pie/_textfont.py +++ b/plotly/validators/pie/_textfont.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/pie/_textinfo.py b/plotly/validators/pie/_textinfo.py index 438b045c82..5f2764df3f 100644 --- a/plotly/validators/pie/_textinfo.py +++ b/plotly/validators/pie/_textinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["label", "text", "value", "percent"]), diff --git a/plotly/validators/pie/_textposition.py b/plotly/validators/pie/_textposition.py index 126819c1b8..7fd5f98153 100644 --- a/plotly/validators/pie/_textposition.py +++ b/plotly/validators/pie/_textposition.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/pie/_textpositionsrc.py b/plotly/validators/pie/_textpositionsrc.py index 614e7095f7..a500103b59 100644 --- a/plotly/validators/pie/_textpositionsrc.py +++ b/plotly/validators/pie/_textpositionsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/_textsrc.py b/plotly/validators/pie/_textsrc.py index 9086eca8b9..340a7ca776 100644 --- a/plotly/validators/pie/_textsrc.py +++ b/plotly/validators/pie/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/_texttemplate.py b/plotly/validators/pie/_texttemplate.py index ca4ed09880..0493d34c1d 100644 --- a/plotly/validators/pie/_texttemplate.py +++ b/plotly/validators/pie/_texttemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/pie/_texttemplatesrc.py b/plotly/validators/pie/_texttemplatesrc.py index 3b91319faf..b7e01898b7 100644 --- a/plotly/validators/pie/_texttemplatesrc.py +++ b/plotly/validators/pie/_texttemplatesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/_title.py b/plotly/validators/pie/_title.py index 4fe46334ae..1f8768a879 100644 --- a/plotly/validators/pie/_title.py +++ b/plotly/validators/pie/_title.py @@ -1,22 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/pie/_uid.py b/plotly/validators/pie/_uid.py index d339151f5b..e5dd503f7e 100644 --- a/plotly/validators/pie/_uid.py +++ b/plotly/validators/pie/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/pie/_uirevision.py b/plotly/validators/pie/_uirevision.py index a0b6c31895..304ba9feb1 100644 --- a/plotly/validators/pie/_uirevision.py +++ b/plotly/validators/pie/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/_values.py b/plotly/validators/pie/_values.py index 17be9a9c8f..ed2da50445 100644 --- a/plotly/validators/pie/_values.py +++ b/plotly/validators/pie/_values.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValuesValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/pie/_valuessrc.py b/plotly/validators/pie/_valuessrc.py index 73310c9d24..af5899ae88 100644 --- a/plotly/validators/pie/_valuessrc.py +++ b/plotly/validators/pie/_valuessrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValuessrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/_visible.py b/plotly/validators/pie/_visible.py index 99cd1f7214..cb5b63fe15 100644 --- a/plotly/validators/pie/_visible.py +++ b/plotly/validators/pie/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/pie/domain/__init__.py b/plotly/validators/pie/domain/__init__.py index 67de5030d0..42827f1d1e 100644 --- a/plotly/validators/pie/domain/__init__.py +++ b/plotly/validators/pie/domain/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._y import YValidator - from ._x import XValidator - from ._row import RowValidator - from ._column import ColumnValidator -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [], - [ - "._y.YValidator", - "._x.XValidator", - "._row.RowValidator", - "._column.ColumnValidator", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._y.YValidator", + "._x.XValidator", + "._row.RowValidator", + "._column.ColumnValidator", + ], +) diff --git a/plotly/validators/pie/domain/_column.py b/plotly/validators/pie/domain/_column.py index 0c258cc510..b644dac07d 100644 --- a/plotly/validators/pie/domain/_column.py +++ b/plotly/validators/pie/domain/_column.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/pie/domain/_row.py b/plotly/validators/pie/domain/_row.py index b1817d17e6..46b7c38aea 100644 --- a/plotly/validators/pie/domain/_row.py +++ b/plotly/validators/pie/domain/_row.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RowValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/pie/domain/_x.py b/plotly/validators/pie/domain/_x.py index 0a45400d88..cfd5cf90c7 100644 --- a/plotly/validators/pie/domain/_x.py +++ b/plotly/validators/pie/domain/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/pie/domain/_y.py b/plotly/validators/pie/domain/_y.py index b8a4b9f334..a8165f6136 100644 --- a/plotly/validators/pie/domain/_y.py +++ b/plotly/validators/pie/domain/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/pie/hoverlabel/__init__.py b/plotly/validators/pie/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/pie/hoverlabel/__init__.py +++ b/plotly/validators/pie/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/pie/hoverlabel/_align.py b/plotly/validators/pie/hoverlabel/_align.py index 9969ab0fd7..ad63f97eec 100644 --- a/plotly/validators/pie/hoverlabel/_align.py +++ b/plotly/validators/pie/hoverlabel/_align.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/pie/hoverlabel/_alignsrc.py b/plotly/validators/pie/hoverlabel/_alignsrc.py index 34ce493aca..2346e4d926 100644 --- a/plotly/validators/pie/hoverlabel/_alignsrc.py +++ b/plotly/validators/pie/hoverlabel/_alignsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/hoverlabel/_bgcolor.py b/plotly/validators/pie/hoverlabel/_bgcolor.py index 1638710073..140bd40295 100644 --- a/plotly/validators/pie/hoverlabel/_bgcolor.py +++ b/plotly/validators/pie/hoverlabel/_bgcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/pie/hoverlabel/_bgcolorsrc.py b/plotly/validators/pie/hoverlabel/_bgcolorsrc.py index 78213f5ee1..caf932a8bd 100644 --- a/plotly/validators/pie/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/pie/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/hoverlabel/_bordercolor.py b/plotly/validators/pie/hoverlabel/_bordercolor.py index 6548cb3968..fa79931c72 100644 --- a/plotly/validators/pie/hoverlabel/_bordercolor.py +++ b/plotly/validators/pie/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/pie/hoverlabel/_bordercolorsrc.py b/plotly/validators/pie/hoverlabel/_bordercolorsrc.py index d8058ab466..dc920119c6 100644 --- a/plotly/validators/pie/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/pie/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/hoverlabel/_font.py b/plotly/validators/pie/hoverlabel/_font.py index 458c518a83..2ef25ec10d 100644 --- a/plotly/validators/pie/hoverlabel/_font.py +++ b/plotly/validators/pie/hoverlabel/_font.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/pie/hoverlabel/_namelength.py b/plotly/validators/pie/hoverlabel/_namelength.py index 7f42c7fdad..6851cd51f4 100644 --- a/plotly/validators/pie/hoverlabel/_namelength.py +++ b/plotly/validators/pie/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/pie/hoverlabel/_namelengthsrc.py b/plotly/validators/pie/hoverlabel/_namelengthsrc.py index b467682d2b..3f30c86d87 100644 --- a/plotly/validators/pie/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/pie/hoverlabel/_namelengthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/hoverlabel/font/__init__.py b/plotly/validators/pie/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/pie/hoverlabel/font/__init__.py +++ b/plotly/validators/pie/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/pie/hoverlabel/font/_color.py b/plotly/validators/pie/hoverlabel/font/_color.py index cee4bff0cd..42d7e867a0 100644 --- a/plotly/validators/pie/hoverlabel/font/_color.py +++ b/plotly/validators/pie/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/pie/hoverlabel/font/_colorsrc.py b/plotly/validators/pie/hoverlabel/font/_colorsrc.py index ba0b5a0155..34b4e80d38 100644 --- a/plotly/validators/pie/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/pie/hoverlabel/font/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/hoverlabel/font/_family.py b/plotly/validators/pie/hoverlabel/font/_family.py index 88afed15a2..90fe50d41c 100644 --- a/plotly/validators/pie/hoverlabel/font/_family.py +++ b/plotly/validators/pie/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/pie/hoverlabel/font/_familysrc.py b/plotly/validators/pie/hoverlabel/font/_familysrc.py index 1e66e6e1d8..29bb842882 100644 --- a/plotly/validators/pie/hoverlabel/font/_familysrc.py +++ b/plotly/validators/pie/hoverlabel/font/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/hoverlabel/font/_lineposition.py b/plotly/validators/pie/hoverlabel/font/_lineposition.py index bff23d0843..cebbeb615a 100644 --- a/plotly/validators/pie/hoverlabel/font/_lineposition.py +++ b/plotly/validators/pie/hoverlabel/font/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/pie/hoverlabel/font/_linepositionsrc.py b/plotly/validators/pie/hoverlabel/font/_linepositionsrc.py index 9bfa0fbf50..243303d70e 100644 --- a/plotly/validators/pie/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/pie/hoverlabel/font/_linepositionsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/hoverlabel/font/_shadow.py b/plotly/validators/pie/hoverlabel/font/_shadow.py index f22498fe21..a3b5eef49f 100644 --- a/plotly/validators/pie/hoverlabel/font/_shadow.py +++ b/plotly/validators/pie/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/pie/hoverlabel/font/_shadowsrc.py b/plotly/validators/pie/hoverlabel/font/_shadowsrc.py index a76ca8e0c5..c87e498919 100644 --- a/plotly/validators/pie/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/pie/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/hoverlabel/font/_size.py b/plotly/validators/pie/hoverlabel/font/_size.py index 61830ff395..3d3bc0df24 100644 --- a/plotly/validators/pie/hoverlabel/font/_size.py +++ b/plotly/validators/pie/hoverlabel/font/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/pie/hoverlabel/font/_sizesrc.py b/plotly/validators/pie/hoverlabel/font/_sizesrc.py index 772e5a71f0..6e6ddf1573 100644 --- a/plotly/validators/pie/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/pie/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/hoverlabel/font/_style.py b/plotly/validators/pie/hoverlabel/font/_style.py index bc1081d6bc..94afaa4a83 100644 --- a/plotly/validators/pie/hoverlabel/font/_style.py +++ b/plotly/validators/pie/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/pie/hoverlabel/font/_stylesrc.py b/plotly/validators/pie/hoverlabel/font/_stylesrc.py index 3b3af9af33..1dbd789bd4 100644 --- a/plotly/validators/pie/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/pie/hoverlabel/font/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/hoverlabel/font/_textcase.py b/plotly/validators/pie/hoverlabel/font/_textcase.py index 7547a425ec..d69ebf6adc 100644 --- a/plotly/validators/pie/hoverlabel/font/_textcase.py +++ b/plotly/validators/pie/hoverlabel/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/pie/hoverlabel/font/_textcasesrc.py b/plotly/validators/pie/hoverlabel/font/_textcasesrc.py index 4985affcac..181d576f43 100644 --- a/plotly/validators/pie/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/pie/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/hoverlabel/font/_variant.py b/plotly/validators/pie/hoverlabel/font/_variant.py index b0b324b2a5..84e2e002ae 100644 --- a/plotly/validators/pie/hoverlabel/font/_variant.py +++ b/plotly/validators/pie/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/pie/hoverlabel/font/_variantsrc.py b/plotly/validators/pie/hoverlabel/font/_variantsrc.py index f726e7082b..bfd18db68d 100644 --- a/plotly/validators/pie/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/pie/hoverlabel/font/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/hoverlabel/font/_weight.py b/plotly/validators/pie/hoverlabel/font/_weight.py index b8a9c31a93..7c39148e4c 100644 --- a/plotly/validators/pie/hoverlabel/font/_weight.py +++ b/plotly/validators/pie/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/pie/hoverlabel/font/_weightsrc.py b/plotly/validators/pie/hoverlabel/font/_weightsrc.py index 25932b7bfb..93e8c58232 100644 --- a/plotly/validators/pie/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/pie/hoverlabel/font/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/insidetextfont/__init__.py b/plotly/validators/pie/insidetextfont/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/pie/insidetextfont/__init__.py +++ b/plotly/validators/pie/insidetextfont/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/pie/insidetextfont/_color.py b/plotly/validators/pie/insidetextfont/_color.py index 766d4a5f19..97fd7f6f0e 100644 --- a/plotly/validators/pie/insidetextfont/_color.py +++ b/plotly/validators/pie/insidetextfont/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/pie/insidetextfont/_colorsrc.py b/plotly/validators/pie/insidetextfont/_colorsrc.py index ce1bfb2bda..1ce19d6504 100644 --- a/plotly/validators/pie/insidetextfont/_colorsrc.py +++ b/plotly/validators/pie/insidetextfont/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/insidetextfont/_family.py b/plotly/validators/pie/insidetextfont/_family.py index b5a0591c73..2e762596a6 100644 --- a/plotly/validators/pie/insidetextfont/_family.py +++ b/plotly/validators/pie/insidetextfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/pie/insidetextfont/_familysrc.py b/plotly/validators/pie/insidetextfont/_familysrc.py index 1619bc278f..0f93734c27 100644 --- a/plotly/validators/pie/insidetextfont/_familysrc.py +++ b/plotly/validators/pie/insidetextfont/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/insidetextfont/_lineposition.py b/plotly/validators/pie/insidetextfont/_lineposition.py index 73d4e15f44..c94effdd0c 100644 --- a/plotly/validators/pie/insidetextfont/_lineposition.py +++ b/plotly/validators/pie/insidetextfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/pie/insidetextfont/_linepositionsrc.py b/plotly/validators/pie/insidetextfont/_linepositionsrc.py index 549a5cd5f2..781270a583 100644 --- a/plotly/validators/pie/insidetextfont/_linepositionsrc.py +++ b/plotly/validators/pie/insidetextfont/_linepositionsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/insidetextfont/_shadow.py b/plotly/validators/pie/insidetextfont/_shadow.py index 071e336092..87ac32ad12 100644 --- a/plotly/validators/pie/insidetextfont/_shadow.py +++ b/plotly/validators/pie/insidetextfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/pie/insidetextfont/_shadowsrc.py b/plotly/validators/pie/insidetextfont/_shadowsrc.py index 5c1ff1c7bc..7f3c256e41 100644 --- a/plotly/validators/pie/insidetextfont/_shadowsrc.py +++ b/plotly/validators/pie/insidetextfont/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/insidetextfont/_size.py b/plotly/validators/pie/insidetextfont/_size.py index 61e49b12c9..83e2392ace 100644 --- a/plotly/validators/pie/insidetextfont/_size.py +++ b/plotly/validators/pie/insidetextfont/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/pie/insidetextfont/_sizesrc.py b/plotly/validators/pie/insidetextfont/_sizesrc.py index d91b5f7820..c671a0db64 100644 --- a/plotly/validators/pie/insidetextfont/_sizesrc.py +++ b/plotly/validators/pie/insidetextfont/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/insidetextfont/_style.py b/plotly/validators/pie/insidetextfont/_style.py index 9cddcf17c7..f1b6063b24 100644 --- a/plotly/validators/pie/insidetextfont/_style.py +++ b/plotly/validators/pie/insidetextfont/_style.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/pie/insidetextfont/_stylesrc.py b/plotly/validators/pie/insidetextfont/_stylesrc.py index eb571706b0..4eacb09a68 100644 --- a/plotly/validators/pie/insidetextfont/_stylesrc.py +++ b/plotly/validators/pie/insidetextfont/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/insidetextfont/_textcase.py b/plotly/validators/pie/insidetextfont/_textcase.py index 7f9eb4d6ca..7922075030 100644 --- a/plotly/validators/pie/insidetextfont/_textcase.py +++ b/plotly/validators/pie/insidetextfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/pie/insidetextfont/_textcasesrc.py b/plotly/validators/pie/insidetextfont/_textcasesrc.py index e1e6a7fb64..8470072d84 100644 --- a/plotly/validators/pie/insidetextfont/_textcasesrc.py +++ b/plotly/validators/pie/insidetextfont/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/insidetextfont/_variant.py b/plotly/validators/pie/insidetextfont/_variant.py index b7c4898b16..11ab7640ff 100644 --- a/plotly/validators/pie/insidetextfont/_variant.py +++ b/plotly/validators/pie/insidetextfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( diff --git a/plotly/validators/pie/insidetextfont/_variantsrc.py b/plotly/validators/pie/insidetextfont/_variantsrc.py index d983c78ebf..3369b33131 100644 --- a/plotly/validators/pie/insidetextfont/_variantsrc.py +++ b/plotly/validators/pie/insidetextfont/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/insidetextfont/_weight.py b/plotly/validators/pie/insidetextfont/_weight.py index 44dbb65969..64d89ee284 100644 --- a/plotly/validators/pie/insidetextfont/_weight.py +++ b/plotly/validators/pie/insidetextfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/pie/insidetextfont/_weightsrc.py b/plotly/validators/pie/insidetextfont/_weightsrc.py index 13f0f39554..f894da33f8 100644 --- a/plotly/validators/pie/insidetextfont/_weightsrc.py +++ b/plotly/validators/pie/insidetextfont/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/legendgrouptitle/__init__.py b/plotly/validators/pie/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/pie/legendgrouptitle/__init__.py +++ b/plotly/validators/pie/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/pie/legendgrouptitle/_font.py b/plotly/validators/pie/legendgrouptitle/_font.py index 021bba6030..ec5cc26ee7 100644 --- a/plotly/validators/pie/legendgrouptitle/_font.py +++ b/plotly/validators/pie/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/pie/legendgrouptitle/_text.py b/plotly/validators/pie/legendgrouptitle/_text.py index 625fdaf756..25df0e0d85 100644 --- a/plotly/validators/pie/legendgrouptitle/_text.py +++ b/plotly/validators/pie/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/pie/legendgrouptitle/font/__init__.py b/plotly/validators/pie/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/pie/legendgrouptitle/font/__init__.py +++ b/plotly/validators/pie/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/pie/legendgrouptitle/font/_color.py b/plotly/validators/pie/legendgrouptitle/font/_color.py index a3d4f718a5..8cd027e99f 100644 --- a/plotly/validators/pie/legendgrouptitle/font/_color.py +++ b/plotly/validators/pie/legendgrouptitle/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/pie/legendgrouptitle/font/_family.py b/plotly/validators/pie/legendgrouptitle/font/_family.py index 861181b871..be748167f5 100644 --- a/plotly/validators/pie/legendgrouptitle/font/_family.py +++ b/plotly/validators/pie/legendgrouptitle/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/pie/legendgrouptitle/font/_lineposition.py b/plotly/validators/pie/legendgrouptitle/font/_lineposition.py index 2d7e00d3e4..8606cec1fd 100644 --- a/plotly/validators/pie/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/pie/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/pie/legendgrouptitle/font/_shadow.py b/plotly/validators/pie/legendgrouptitle/font/_shadow.py index bea3fdad67..ab12547be4 100644 --- a/plotly/validators/pie/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/pie/legendgrouptitle/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/pie/legendgrouptitle/font/_size.py b/plotly/validators/pie/legendgrouptitle/font/_size.py index e3e710fa5f..345b61cb4c 100644 --- a/plotly/validators/pie/legendgrouptitle/font/_size.py +++ b/plotly/validators/pie/legendgrouptitle/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/pie/legendgrouptitle/font/_style.py b/plotly/validators/pie/legendgrouptitle/font/_style.py index e3824fea45..4b1636e496 100644 --- a/plotly/validators/pie/legendgrouptitle/font/_style.py +++ b/plotly/validators/pie/legendgrouptitle/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/pie/legendgrouptitle/font/_textcase.py b/plotly/validators/pie/legendgrouptitle/font/_textcase.py index 81c2f2edb5..d1274f8dcd 100644 --- a/plotly/validators/pie/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/pie/legendgrouptitle/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/pie/legendgrouptitle/font/_variant.py b/plotly/validators/pie/legendgrouptitle/font/_variant.py index 6213aae355..26c211dd8a 100644 --- a/plotly/validators/pie/legendgrouptitle/font/_variant.py +++ b/plotly/validators/pie/legendgrouptitle/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/pie/legendgrouptitle/font/_weight.py b/plotly/validators/pie/legendgrouptitle/font/_weight.py index bea2b3a83e..3d0247d4d5 100644 --- a/plotly/validators/pie/legendgrouptitle/font/_weight.py +++ b/plotly/validators/pie/legendgrouptitle/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/pie/marker/__init__.py b/plotly/validators/pie/marker/__init__.py index aeae3564f6..22860e3333 100644 --- a/plotly/validators/pie/marker/__init__.py +++ b/plotly/validators/pie/marker/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._pattern import PatternValidator - from ._line import LineValidator - from ._colorssrc import ColorssrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._pattern.PatternValidator", + "._line.LineValidator", + "._colorssrc.ColorssrcValidator", + "._colors.ColorsValidator", + ], +) diff --git a/plotly/validators/pie/marker/_colors.py b/plotly/validators/pie/marker/_colors.py index 4d1ce95030..ce65a9baf3 100644 --- a/plotly/validators/pie/marker/_colors.py +++ b/plotly/validators/pie/marker/_colors.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/pie/marker/_colorssrc.py b/plotly/validators/pie/marker/_colorssrc.py index bf222615f2..8eb16c576e 100644 --- a/plotly/validators/pie/marker/_colorssrc.py +++ b/plotly/validators/pie/marker/_colorssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/marker/_line.py b/plotly/validators/pie/marker/_line.py index 05f8f1dc82..514406fa34 100644 --- a/plotly/validators/pie/marker/_line.py +++ b/plotly/validators/pie/marker/_line.py @@ -1,27 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/pie/marker/_pattern.py b/plotly/validators/pie/marker/_pattern.py index 4e0277de40..4b59672c25 100644 --- a/plotly/validators/pie/marker/_pattern.py +++ b/plotly/validators/pie/marker/_pattern.py @@ -1,63 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PatternValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/pie/marker/line/__init__.py b/plotly/validators/pie/marker/line/__init__.py index a2b9e1ae50..ca6d32f725 100644 --- a/plotly/validators/pie/marker/line/__init__.py +++ b/plotly/validators/pie/marker/line/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._widthsrc import WidthsrcValidator - from ._width import WidthValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._widthsrc.WidthsrcValidator", + "._width.WidthValidator", + "._colorsrc.ColorsrcValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/pie/marker/line/_color.py b/plotly/validators/pie/marker/line/_color.py index 2fb231f787..5b74ee5924 100644 --- a/plotly/validators/pie/marker/line/_color.py +++ b/plotly/validators/pie/marker/line/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/pie/marker/line/_colorsrc.py b/plotly/validators/pie/marker/line/_colorsrc.py index 9178fffd55..0920ac3868 100644 --- a/plotly/validators/pie/marker/line/_colorsrc.py +++ b/plotly/validators/pie/marker/line/_colorsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/marker/line/_width.py b/plotly/validators/pie/marker/line/_width.py index a754a75ab1..592c12b251 100644 --- a/plotly/validators/pie/marker/line/_width.py +++ b/plotly/validators/pie/marker/line/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/pie/marker/line/_widthsrc.py b/plotly/validators/pie/marker/line/_widthsrc.py index f20132c2bf..dea62e33a2 100644 --- a/plotly/validators/pie/marker/line/_widthsrc.py +++ b/plotly/validators/pie/marker/line/_widthsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/marker/pattern/__init__.py b/plotly/validators/pie/marker/pattern/__init__.py index e190f962c4..e42ccc4d0f 100644 --- a/plotly/validators/pie/marker/pattern/__init__.py +++ b/plotly/validators/pie/marker/pattern/__init__.py @@ -1,37 +1,21 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._soliditysrc import SoliditysrcValidator - from ._solidity import SolidityValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shapesrc import ShapesrcValidator - from ._shape import ShapeValidator - from ._fillmode import FillmodeValidator - from ._fgopacity import FgopacityValidator - from ._fgcolorsrc import FgcolorsrcValidator - from ._fgcolor import FgcolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/pie/marker/pattern/_bgcolor.py b/plotly/validators/pie/marker/pattern/_bgcolor.py index 4dedd28ff5..097b007096 100644 --- a/plotly/validators/pie/marker/pattern/_bgcolor.py +++ b/plotly/validators/pie/marker/pattern/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/pie/marker/pattern/_bgcolorsrc.py b/plotly/validators/pie/marker/pattern/_bgcolorsrc.py index 874028535e..057e846888 100644 --- a/plotly/validators/pie/marker/pattern/_bgcolorsrc.py +++ b/plotly/validators/pie/marker/pattern/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/marker/pattern/_fgcolor.py b/plotly/validators/pie/marker/pattern/_fgcolor.py index f21b05dc0f..8ee004424f 100644 --- a/plotly/validators/pie/marker/pattern/_fgcolor.py +++ b/plotly/validators/pie/marker/pattern/_fgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/pie/marker/pattern/_fgcolorsrc.py b/plotly/validators/pie/marker/pattern/_fgcolorsrc.py index 74c793c646..e9cbb52e3d 100644 --- a/plotly/validators/pie/marker/pattern/_fgcolorsrc.py +++ b/plotly/validators/pie/marker/pattern/_fgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/marker/pattern/_fgopacity.py b/plotly/validators/pie/marker/pattern/_fgopacity.py index 0c1532e719..c37f40d477 100644 --- a/plotly/validators/pie/marker/pattern/_fgopacity.py +++ b/plotly/validators/pie/marker/pattern/_fgopacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FgopacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/pie/marker/pattern/_fillmode.py b/plotly/validators/pie/marker/pattern/_fillmode.py index bf9a1e9556..c4c6fc0a67 100644 --- a/plotly/validators/pie/marker/pattern/_fillmode.py +++ b/plotly/validators/pie/marker/pattern/_fillmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["replace", "overlay"]), **kwargs, diff --git a/plotly/validators/pie/marker/pattern/_shape.py b/plotly/validators/pie/marker/pattern/_shape.py index f87457d72e..f3bf0ff51e 100644 --- a/plotly/validators/pie/marker/pattern/_shape.py +++ b/plotly/validators/pie/marker/pattern/_shape.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["", "/", "\\", "x", "-", "|", "+", "."]), diff --git a/plotly/validators/pie/marker/pattern/_shapesrc.py b/plotly/validators/pie/marker/pattern/_shapesrc.py index aaff7d1bdf..b0296cc740 100644 --- a/plotly/validators/pie/marker/pattern/_shapesrc.py +++ b/plotly/validators/pie/marker/pattern/_shapesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShapesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/marker/pattern/_size.py b/plotly/validators/pie/marker/pattern/_size.py index 60b1369ae7..905ec0ab00 100644 --- a/plotly/validators/pie/marker/pattern/_size.py +++ b/plotly/validators/pie/marker/pattern/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/pie/marker/pattern/_sizesrc.py b/plotly/validators/pie/marker/pattern/_sizesrc.py index d461056afc..094cc089f7 100644 --- a/plotly/validators/pie/marker/pattern/_sizesrc.py +++ b/plotly/validators/pie/marker/pattern/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/marker/pattern/_solidity.py b/plotly/validators/pie/marker/pattern/_solidity.py index 5b6b873891..ae8b715d93 100644 --- a/plotly/validators/pie/marker/pattern/_solidity.py +++ b/plotly/validators/pie/marker/pattern/_solidity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SolidityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), diff --git a/plotly/validators/pie/marker/pattern/_soliditysrc.py b/plotly/validators/pie/marker/pattern/_soliditysrc.py index 0a5d34df31..031754215d 100644 --- a/plotly/validators/pie/marker/pattern/_soliditysrc.py +++ b/plotly/validators/pie/marker/pattern/_soliditysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SoliditysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/outsidetextfont/__init__.py b/plotly/validators/pie/outsidetextfont/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/pie/outsidetextfont/__init__.py +++ b/plotly/validators/pie/outsidetextfont/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/pie/outsidetextfont/_color.py b/plotly/validators/pie/outsidetextfont/_color.py index f4a3293445..4fab46ab52 100644 --- a/plotly/validators/pie/outsidetextfont/_color.py +++ b/plotly/validators/pie/outsidetextfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/pie/outsidetextfont/_colorsrc.py b/plotly/validators/pie/outsidetextfont/_colorsrc.py index 762400b6a9..223dc82be8 100644 --- a/plotly/validators/pie/outsidetextfont/_colorsrc.py +++ b/plotly/validators/pie/outsidetextfont/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/outsidetextfont/_family.py b/plotly/validators/pie/outsidetextfont/_family.py index 6f5602956f..c0330a04a2 100644 --- a/plotly/validators/pie/outsidetextfont/_family.py +++ b/plotly/validators/pie/outsidetextfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/pie/outsidetextfont/_familysrc.py b/plotly/validators/pie/outsidetextfont/_familysrc.py index db526c184a..a3795e3318 100644 --- a/plotly/validators/pie/outsidetextfont/_familysrc.py +++ b/plotly/validators/pie/outsidetextfont/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/outsidetextfont/_lineposition.py b/plotly/validators/pie/outsidetextfont/_lineposition.py index bbd9f2f9a8..dac662f2ca 100644 --- a/plotly/validators/pie/outsidetextfont/_lineposition.py +++ b/plotly/validators/pie/outsidetextfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/pie/outsidetextfont/_linepositionsrc.py b/plotly/validators/pie/outsidetextfont/_linepositionsrc.py index 542347140a..cfcdcebbe5 100644 --- a/plotly/validators/pie/outsidetextfont/_linepositionsrc.py +++ b/plotly/validators/pie/outsidetextfont/_linepositionsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/outsidetextfont/_shadow.py b/plotly/validators/pie/outsidetextfont/_shadow.py index 51d51e11e4..8dcff926be 100644 --- a/plotly/validators/pie/outsidetextfont/_shadow.py +++ b/plotly/validators/pie/outsidetextfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/pie/outsidetextfont/_shadowsrc.py b/plotly/validators/pie/outsidetextfont/_shadowsrc.py index 06af4c478b..957768f37f 100644 --- a/plotly/validators/pie/outsidetextfont/_shadowsrc.py +++ b/plotly/validators/pie/outsidetextfont/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/outsidetextfont/_size.py b/plotly/validators/pie/outsidetextfont/_size.py index 4078cfb9d2..f0061db08e 100644 --- a/plotly/validators/pie/outsidetextfont/_size.py +++ b/plotly/validators/pie/outsidetextfont/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/pie/outsidetextfont/_sizesrc.py b/plotly/validators/pie/outsidetextfont/_sizesrc.py index 9e4318a4d6..09c783bf69 100644 --- a/plotly/validators/pie/outsidetextfont/_sizesrc.py +++ b/plotly/validators/pie/outsidetextfont/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/outsidetextfont/_style.py b/plotly/validators/pie/outsidetextfont/_style.py index 18818047ec..6322172d3f 100644 --- a/plotly/validators/pie/outsidetextfont/_style.py +++ b/plotly/validators/pie/outsidetextfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/pie/outsidetextfont/_stylesrc.py b/plotly/validators/pie/outsidetextfont/_stylesrc.py index 3ca7e751e6..551d1833f5 100644 --- a/plotly/validators/pie/outsidetextfont/_stylesrc.py +++ b/plotly/validators/pie/outsidetextfont/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/outsidetextfont/_textcase.py b/plotly/validators/pie/outsidetextfont/_textcase.py index 7a32a1542b..2e78076eee 100644 --- a/plotly/validators/pie/outsidetextfont/_textcase.py +++ b/plotly/validators/pie/outsidetextfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/pie/outsidetextfont/_textcasesrc.py b/plotly/validators/pie/outsidetextfont/_textcasesrc.py index 6fdb93bb06..9d0fd3fdbb 100644 --- a/plotly/validators/pie/outsidetextfont/_textcasesrc.py +++ b/plotly/validators/pie/outsidetextfont/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/outsidetextfont/_variant.py b/plotly/validators/pie/outsidetextfont/_variant.py index 39fa39f1d7..4588ab814f 100644 --- a/plotly/validators/pie/outsidetextfont/_variant.py +++ b/plotly/validators/pie/outsidetextfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( diff --git a/plotly/validators/pie/outsidetextfont/_variantsrc.py b/plotly/validators/pie/outsidetextfont/_variantsrc.py index 32a9ad3e19..c4ef56dc28 100644 --- a/plotly/validators/pie/outsidetextfont/_variantsrc.py +++ b/plotly/validators/pie/outsidetextfont/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/outsidetextfont/_weight.py b/plotly/validators/pie/outsidetextfont/_weight.py index 6688663e82..25e5cbf08a 100644 --- a/plotly/validators/pie/outsidetextfont/_weight.py +++ b/plotly/validators/pie/outsidetextfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/pie/outsidetextfont/_weightsrc.py b/plotly/validators/pie/outsidetextfont/_weightsrc.py index 650d7367dd..6dde76ecc5 100644 --- a/plotly/validators/pie/outsidetextfont/_weightsrc.py +++ b/plotly/validators/pie/outsidetextfont/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/stream/__init__.py b/plotly/validators/pie/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/pie/stream/__init__.py +++ b/plotly/validators/pie/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/pie/stream/_maxpoints.py b/plotly/validators/pie/stream/_maxpoints.py index 3f152ff71a..72dbfbc7c4 100644 --- a/plotly/validators/pie/stream/_maxpoints.py +++ b/plotly/validators/pie/stream/_maxpoints.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/pie/stream/_token.py b/plotly/validators/pie/stream/_token.py index 58022ebab7..7bca6dc056 100644 --- a/plotly/validators/pie/stream/_token.py +++ b/plotly/validators/pie/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/pie/textfont/__init__.py b/plotly/validators/pie/textfont/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/pie/textfont/__init__.py +++ b/plotly/validators/pie/textfont/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/pie/textfont/_color.py b/plotly/validators/pie/textfont/_color.py index 150670ebd0..e5ee48699a 100644 --- a/plotly/validators/pie/textfont/_color.py +++ b/plotly/validators/pie/textfont/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/pie/textfont/_colorsrc.py b/plotly/validators/pie/textfont/_colorsrc.py index 40006c00be..e7f3863606 100644 --- a/plotly/validators/pie/textfont/_colorsrc.py +++ b/plotly/validators/pie/textfont/_colorsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/textfont/_family.py b/plotly/validators/pie/textfont/_family.py index 0bb6404dc6..e5a63ddee6 100644 --- a/plotly/validators/pie/textfont/_family.py +++ b/plotly/validators/pie/textfont/_family.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/pie/textfont/_familysrc.py b/plotly/validators/pie/textfont/_familysrc.py index f3d83a1dd9..8d5e1ed2e7 100644 --- a/plotly/validators/pie/textfont/_familysrc.py +++ b/plotly/validators/pie/textfont/_familysrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/textfont/_lineposition.py b/plotly/validators/pie/textfont/_lineposition.py index a70daf89df..fab8d356a7 100644 --- a/plotly/validators/pie/textfont/_lineposition.py +++ b/plotly/validators/pie/textfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/pie/textfont/_linepositionsrc.py b/plotly/validators/pie/textfont/_linepositionsrc.py index 6894e5700a..c24a4f6c9f 100644 --- a/plotly/validators/pie/textfont/_linepositionsrc.py +++ b/plotly/validators/pie/textfont/_linepositionsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/textfont/_shadow.py b/plotly/validators/pie/textfont/_shadow.py index a1a4791c23..a762d4e55a 100644 --- a/plotly/validators/pie/textfont/_shadow.py +++ b/plotly/validators/pie/textfont/_shadow.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/pie/textfont/_shadowsrc.py b/plotly/validators/pie/textfont/_shadowsrc.py index 313072823e..a02fbc7bcf 100644 --- a/plotly/validators/pie/textfont/_shadowsrc.py +++ b/plotly/validators/pie/textfont/_shadowsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/textfont/_size.py b/plotly/validators/pie/textfont/_size.py index bc163ab534..c4f56853a9 100644 --- a/plotly/validators/pie/textfont/_size.py +++ b/plotly/validators/pie/textfont/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/pie/textfont/_sizesrc.py b/plotly/validators/pie/textfont/_sizesrc.py index e8c4d79fd5..7534e7d125 100644 --- a/plotly/validators/pie/textfont/_sizesrc.py +++ b/plotly/validators/pie/textfont/_sizesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/textfont/_style.py b/plotly/validators/pie/textfont/_style.py index d4c169651a..c119e6e7e4 100644 --- a/plotly/validators/pie/textfont/_style.py +++ b/plotly/validators/pie/textfont/_style.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/pie/textfont/_stylesrc.py b/plotly/validators/pie/textfont/_stylesrc.py index 7fb87ebdb2..bee047c768 100644 --- a/plotly/validators/pie/textfont/_stylesrc.py +++ b/plotly/validators/pie/textfont/_stylesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/textfont/_textcase.py b/plotly/validators/pie/textfont/_textcase.py index a9df1d8b06..ceedeb7f2a 100644 --- a/plotly/validators/pie/textfont/_textcase.py +++ b/plotly/validators/pie/textfont/_textcase.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/pie/textfont/_textcasesrc.py b/plotly/validators/pie/textfont/_textcasesrc.py index 9714e8e4b2..f6e5dab8c2 100644 --- a/plotly/validators/pie/textfont/_textcasesrc.py +++ b/plotly/validators/pie/textfont/_textcasesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/textfont/_variant.py b/plotly/validators/pie/textfont/_variant.py index 27bc860dc6..a2d8a7d0ed 100644 --- a/plotly/validators/pie/textfont/_variant.py +++ b/plotly/validators/pie/textfont/_variant.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( diff --git a/plotly/validators/pie/textfont/_variantsrc.py b/plotly/validators/pie/textfont/_variantsrc.py index a79cf5d843..887ee7097f 100644 --- a/plotly/validators/pie/textfont/_variantsrc.py +++ b/plotly/validators/pie/textfont/_variantsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/textfont/_weight.py b/plotly/validators/pie/textfont/_weight.py index eb2ed903f2..3ab1d63044 100644 --- a/plotly/validators/pie/textfont/_weight.py +++ b/plotly/validators/pie/textfont/_weight.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/pie/textfont/_weightsrc.py b/plotly/validators/pie/textfont/_weightsrc.py index 8cc58186e4..073cf9f177 100644 --- a/plotly/validators/pie/textfont/_weightsrc.py +++ b/plotly/validators/pie/textfont/_weightsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/title/__init__.py b/plotly/validators/pie/title/__init__.py index bedd4ba176..8d5c91b29e 100644 --- a/plotly/validators/pie/title/__init__.py +++ b/plotly/validators/pie/title/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._position.PositionValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/pie/title/_font.py b/plotly/validators/pie/title/_font.py index dc7359145a..f92c6f36e1 100644 --- a/plotly/validators/pie/title/_font.py +++ b/plotly/validators/pie/title/_font.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/pie/title/_position.py b/plotly/validators/pie/title/_position.py index de1de712a2..281a93d0c5 100644 --- a/plotly/validators/pie/title/_position.py +++ b/plotly/validators/pie/title/_position.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/pie/title/_text.py b/plotly/validators/pie/title/_text.py index 45178d2e64..f1ea0f47f3 100644 --- a/plotly/validators/pie/title/_text.py +++ b/plotly/validators/pie/title/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/pie/title/font/__init__.py b/plotly/validators/pie/title/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/pie/title/font/__init__.py +++ b/plotly/validators/pie/title/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/pie/title/font/_color.py b/plotly/validators/pie/title/font/_color.py index ebca1fb016..a924274978 100644 --- a/plotly/validators/pie/title/font/_color.py +++ b/plotly/validators/pie/title/font/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/pie/title/font/_colorsrc.py b/plotly/validators/pie/title/font/_colorsrc.py index 5244a8ff1c..ebadcb81db 100644 --- a/plotly/validators/pie/title/font/_colorsrc.py +++ b/plotly/validators/pie/title/font/_colorsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/title/font/_family.py b/plotly/validators/pie/title/font/_family.py index 04cb80f5b4..903bf34001 100644 --- a/plotly/validators/pie/title/font/_family.py +++ b/plotly/validators/pie/title/font/_family.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/pie/title/font/_familysrc.py b/plotly/validators/pie/title/font/_familysrc.py index 1415d300f6..d038716fe4 100644 --- a/plotly/validators/pie/title/font/_familysrc.py +++ b/plotly/validators/pie/title/font/_familysrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/title/font/_lineposition.py b/plotly/validators/pie/title/font/_lineposition.py index f5bc7cab64..65ce3d21f3 100644 --- a/plotly/validators/pie/title/font/_lineposition.py +++ b/plotly/validators/pie/title/font/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/pie/title/font/_linepositionsrc.py b/plotly/validators/pie/title/font/_linepositionsrc.py index 0d6aa40f68..46c0be46a2 100644 --- a/plotly/validators/pie/title/font/_linepositionsrc.py +++ b/plotly/validators/pie/title/font/_linepositionsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/title/font/_shadow.py b/plotly/validators/pie/title/font/_shadow.py index b250380958..d8bdedd38d 100644 --- a/plotly/validators/pie/title/font/_shadow.py +++ b/plotly/validators/pie/title/font/_shadow.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/pie/title/font/_shadowsrc.py b/plotly/validators/pie/title/font/_shadowsrc.py index f92c1c3179..177f7cea37 100644 --- a/plotly/validators/pie/title/font/_shadowsrc.py +++ b/plotly/validators/pie/title/font/_shadowsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/title/font/_size.py b/plotly/validators/pie/title/font/_size.py index 2b643a0f2c..88687d5df2 100644 --- a/plotly/validators/pie/title/font/_size.py +++ b/plotly/validators/pie/title/font/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/pie/title/font/_sizesrc.py b/plotly/validators/pie/title/font/_sizesrc.py index 0e6a1711d1..cd227cd873 100644 --- a/plotly/validators/pie/title/font/_sizesrc.py +++ b/plotly/validators/pie/title/font/_sizesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/title/font/_style.py b/plotly/validators/pie/title/font/_style.py index b86b4fa9ce..fe7ff2a5cc 100644 --- a/plotly/validators/pie/title/font/_style.py +++ b/plotly/validators/pie/title/font/_style.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/pie/title/font/_stylesrc.py b/plotly/validators/pie/title/font/_stylesrc.py index 0b92871703..ccfbe95443 100644 --- a/plotly/validators/pie/title/font/_stylesrc.py +++ b/plotly/validators/pie/title/font/_stylesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/title/font/_textcase.py b/plotly/validators/pie/title/font/_textcase.py index 289055989a..2365a8f70b 100644 --- a/plotly/validators/pie/title/font/_textcase.py +++ b/plotly/validators/pie/title/font/_textcase.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/pie/title/font/_textcasesrc.py b/plotly/validators/pie/title/font/_textcasesrc.py index 556cadde04..224c534892 100644 --- a/plotly/validators/pie/title/font/_textcasesrc.py +++ b/plotly/validators/pie/title/font/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/title/font/_variant.py b/plotly/validators/pie/title/font/_variant.py index eb19f35fa9..ce3d222e5c 100644 --- a/plotly/validators/pie/title/font/_variant.py +++ b/plotly/validators/pie/title/font/_variant.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( diff --git a/plotly/validators/pie/title/font/_variantsrc.py b/plotly/validators/pie/title/font/_variantsrc.py index f0afc43e79..4a6e7a788e 100644 --- a/plotly/validators/pie/title/font/_variantsrc.py +++ b/plotly/validators/pie/title/font/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/pie/title/font/_weight.py b/plotly/validators/pie/title/font/_weight.py index 3b856f65a2..f0b8ac3d61 100644 --- a/plotly/validators/pie/title/font/_weight.py +++ b/plotly/validators/pie/title/font/_weight.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/pie/title/font/_weightsrc.py b/plotly/validators/pie/title/font/_weightsrc.py index e9e8568e76..e8035ae8c2 100644 --- a/plotly/validators/pie/title/font/_weightsrc.py +++ b/plotly/validators/pie/title/font/_weightsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/__init__.py b/plotly/validators/sankey/__init__.py index 0dd341cd80..9cde0f22be 100644 --- a/plotly/validators/sankey/__init__.py +++ b/plotly/validators/sankey/__init__.py @@ -1,65 +1,35 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._visible import VisibleValidator - from ._valuesuffix import ValuesuffixValidator - from ._valueformat import ValueformatValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._textfont import TextfontValidator - from ._stream import StreamValidator - from ._selectedpoints import SelectedpointsValidator - from ._orientation import OrientationValidator - from ._node import NodeValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._link import LinkValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legend import LegendValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfo import HoverinfoValidator - from ._domain import DomainValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/sankey/_arrangement.py b/plotly/validators/sankey/_arrangement.py index eaa87b4218..f52b60e4bc 100644 --- a/plotly/validators/sankey/_arrangement.py +++ b/plotly/validators/sankey/_arrangement.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrangementValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["snap", "perpendicular", "freeform", "fixed"]), **kwargs, diff --git a/plotly/validators/sankey/_customdata.py b/plotly/validators/sankey/_customdata.py index 82d6f56ded..4d31c5a36e 100644 --- a/plotly/validators/sankey/_customdata.py +++ b/plotly/validators/sankey/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/sankey/_customdatasrc.py b/plotly/validators/sankey/_customdatasrc.py index 28d0375322..ca7fc4bc95 100644 --- a/plotly/validators/sankey/_customdatasrc.py +++ b/plotly/validators/sankey/_customdatasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/_domain.py b/plotly/validators/sankey/_domain.py index 49f08934c4..d006fa8c32 100644 --- a/plotly/validators/sankey/_domain.py +++ b/plotly/validators/sankey/_domain.py @@ -1,27 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/sankey/_hoverinfo.py b/plotly/validators/sankey/_hoverinfo.py index 0eaec18c76..74d0637a0d 100644 --- a/plotly/validators/sankey/_hoverinfo.py +++ b/plotly/validators/sankey/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/sankey/_hoverlabel.py b/plotly/validators/sankey/_hoverlabel.py index 274e3802ed..169c36bb4b 100644 --- a/plotly/validators/sankey/_hoverlabel.py +++ b/plotly/validators/sankey/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/sankey/_ids.py b/plotly/validators/sankey/_ids.py index 17f678fb7d..928878741e 100644 --- a/plotly/validators/sankey/_ids.py +++ b/plotly/validators/sankey/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/sankey/_idssrc.py b/plotly/validators/sankey/_idssrc.py index b11c849c89..e3af460b83 100644 --- a/plotly/validators/sankey/_idssrc.py +++ b/plotly/validators/sankey/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/_legend.py b/plotly/validators/sankey/_legend.py index e67b2337e6..22193f5dc6 100644 --- a/plotly/validators/sankey/_legend.py +++ b/plotly/validators/sankey/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/sankey/_legendgrouptitle.py b/plotly/validators/sankey/_legendgrouptitle.py index 146731e416..374663bafa 100644 --- a/plotly/validators/sankey/_legendgrouptitle.py +++ b/plotly/validators/sankey/_legendgrouptitle.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/sankey/_legendrank.py b/plotly/validators/sankey/_legendrank.py index efca79efb6..b4a60fbfab 100644 --- a/plotly/validators/sankey/_legendrank.py +++ b/plotly/validators/sankey/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/sankey/_legendwidth.py b/plotly/validators/sankey/_legendwidth.py index 1fe5d518ca..78b95abc68 100644 --- a/plotly/validators/sankey/_legendwidth.py +++ b/plotly/validators/sankey/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/sankey/_link.py b/plotly/validators/sankey/_link.py index bf04e16e76..e87339346d 100644 --- a/plotly/validators/sankey/_link.py +++ b/plotly/validators/sankey/_link.py @@ -1,125 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinkValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/sankey/_meta.py b/plotly/validators/sankey/_meta.py index b9c24c5929..4f591f34bc 100644 --- a/plotly/validators/sankey/_meta.py +++ b/plotly/validators/sankey/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/sankey/_metasrc.py b/plotly/validators/sankey/_metasrc.py index 081283b280..190fb76492 100644 --- a/plotly/validators/sankey/_metasrc.py +++ b/plotly/validators/sankey/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/_name.py b/plotly/validators/sankey/_name.py index ad0332850f..b0d365867a 100644 --- a/plotly/validators/sankey/_name.py +++ b/plotly/validators/sankey/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/sankey/_node.py b/plotly/validators/sankey/_node.py index 8454ce9285..d7bdecaf2b 100644 --- a/plotly/validators/sankey/_node.py +++ b/plotly/validators/sankey/_node.py @@ -1,109 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NodeValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/sankey/_orientation.py b/plotly/validators/sankey/_orientation.py index 40ecb8b773..1458b99487 100644 --- a/plotly/validators/sankey/_orientation.py +++ b/plotly/validators/sankey/_orientation.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["v", "h"]), **kwargs, diff --git a/plotly/validators/sankey/_selectedpoints.py b/plotly/validators/sankey/_selectedpoints.py index cd67a735ac..0d27385af2 100644 --- a/plotly/validators/sankey/_selectedpoints.py +++ b/plotly/validators/sankey/_selectedpoints.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/sankey/_stream.py b/plotly/validators/sankey/_stream.py index e834751cde..d161e3164d 100644 --- a/plotly/validators/sankey/_stream.py +++ b/plotly/validators/sankey/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/sankey/_textfont.py b/plotly/validators/sankey/_textfont.py index ec33a088eb..2f23c459a3 100644 --- a/plotly/validators/sankey/_textfont.py +++ b/plotly/validators/sankey/_textfont.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/sankey/_uid.py b/plotly/validators/sankey/_uid.py index fc04ad24fb..baea26a70b 100644 --- a/plotly/validators/sankey/_uid.py +++ b/plotly/validators/sankey/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/sankey/_uirevision.py b/plotly/validators/sankey/_uirevision.py index 9e35762607..24cdc9b30c 100644 --- a/plotly/validators/sankey/_uirevision.py +++ b/plotly/validators/sankey/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/_valueformat.py b/plotly/validators/sankey/_valueformat.py index ea67d39309..a0f90e1e9a 100644 --- a/plotly/validators/sankey/_valueformat.py +++ b/plotly/validators/sankey/_valueformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/sankey/_valuesuffix.py b/plotly/validators/sankey/_valuesuffix.py index 2b452a6902..57551d1504 100644 --- a/plotly/validators/sankey/_valuesuffix.py +++ b/plotly/validators/sankey/_valuesuffix.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValuesuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/sankey/_visible.py b/plotly/validators/sankey/_visible.py index 67349bb0c5..4df87b1ff1 100644 --- a/plotly/validators/sankey/_visible.py +++ b/plotly/validators/sankey/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/sankey/domain/__init__.py b/plotly/validators/sankey/domain/__init__.py index 67de5030d0..42827f1d1e 100644 --- a/plotly/validators/sankey/domain/__init__.py +++ b/plotly/validators/sankey/domain/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._y import YValidator - from ._x import XValidator - from ._row import RowValidator - from ._column import ColumnValidator -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [], - [ - "._y.YValidator", - "._x.XValidator", - "._row.RowValidator", - "._column.ColumnValidator", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._y.YValidator", + "._x.XValidator", + "._row.RowValidator", + "._column.ColumnValidator", + ], +) diff --git a/plotly/validators/sankey/domain/_column.py b/plotly/validators/sankey/domain/_column.py index 0682b9ddcc..1360c4b589 100644 --- a/plotly/validators/sankey/domain/_column.py +++ b/plotly/validators/sankey/domain/_column.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/sankey/domain/_row.py b/plotly/validators/sankey/domain/_row.py index 61904898d1..0d18fbaa6e 100644 --- a/plotly/validators/sankey/domain/_row.py +++ b/plotly/validators/sankey/domain/_row.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RowValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/sankey/domain/_x.py b/plotly/validators/sankey/domain/_x.py index a4439e0d9a..031325fe58 100644 --- a/plotly/validators/sankey/domain/_x.py +++ b/plotly/validators/sankey/domain/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/sankey/domain/_y.py b/plotly/validators/sankey/domain/_y.py index 7b27417cf5..b2cffc306a 100644 --- a/plotly/validators/sankey/domain/_y.py +++ b/plotly/validators/sankey/domain/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/sankey/hoverlabel/__init__.py b/plotly/validators/sankey/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/sankey/hoverlabel/__init__.py +++ b/plotly/validators/sankey/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/sankey/hoverlabel/_align.py b/plotly/validators/sankey/hoverlabel/_align.py index 6eb102f7d4..7206602ee9 100644 --- a/plotly/validators/sankey/hoverlabel/_align.py +++ b/plotly/validators/sankey/hoverlabel/_align.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/sankey/hoverlabel/_alignsrc.py b/plotly/validators/sankey/hoverlabel/_alignsrc.py index f37beff299..51d4594cba 100644 --- a/plotly/validators/sankey/hoverlabel/_alignsrc.py +++ b/plotly/validators/sankey/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/hoverlabel/_bgcolor.py b/plotly/validators/sankey/hoverlabel/_bgcolor.py index c515e878d6..a0e3403d51 100644 --- a/plotly/validators/sankey/hoverlabel/_bgcolor.py +++ b/plotly/validators/sankey/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/sankey/hoverlabel/_bgcolorsrc.py b/plotly/validators/sankey/hoverlabel/_bgcolorsrc.py index e82e40fdf0..08ce78b86e 100644 --- a/plotly/validators/sankey/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/sankey/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/hoverlabel/_bordercolor.py b/plotly/validators/sankey/hoverlabel/_bordercolor.py index 58ad66911d..c5b661b2d2 100644 --- a/plotly/validators/sankey/hoverlabel/_bordercolor.py +++ b/plotly/validators/sankey/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/sankey/hoverlabel/_bordercolorsrc.py b/plotly/validators/sankey/hoverlabel/_bordercolorsrc.py index 1473c4760f..eb15ba6689 100644 --- a/plotly/validators/sankey/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/sankey/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/hoverlabel/_font.py b/plotly/validators/sankey/hoverlabel/_font.py index bf27a49656..85c24f5cc7 100644 --- a/plotly/validators/sankey/hoverlabel/_font.py +++ b/plotly/validators/sankey/hoverlabel/_font.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/sankey/hoverlabel/_namelength.py b/plotly/validators/sankey/hoverlabel/_namelength.py index dcddc578c7..caba17e324 100644 --- a/plotly/validators/sankey/hoverlabel/_namelength.py +++ b/plotly/validators/sankey/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/sankey/hoverlabel/_namelengthsrc.py b/plotly/validators/sankey/hoverlabel/_namelengthsrc.py index c0dc818d58..00fcc5b2fd 100644 --- a/plotly/validators/sankey/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/sankey/hoverlabel/_namelengthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/hoverlabel/font/__init__.py b/plotly/validators/sankey/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/sankey/hoverlabel/font/__init__.py +++ b/plotly/validators/sankey/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/sankey/hoverlabel/font/_color.py b/plotly/validators/sankey/hoverlabel/font/_color.py index fa5012a6ba..51476a7c8e 100644 --- a/plotly/validators/sankey/hoverlabel/font/_color.py +++ b/plotly/validators/sankey/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/sankey/hoverlabel/font/_colorsrc.py b/plotly/validators/sankey/hoverlabel/font/_colorsrc.py index cd50f46e98..e4ce72227c 100644 --- a/plotly/validators/sankey/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/sankey/hoverlabel/font/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/hoverlabel/font/_family.py b/plotly/validators/sankey/hoverlabel/font/_family.py index fbf81b801b..5ee1865954 100644 --- a/plotly/validators/sankey/hoverlabel/font/_family.py +++ b/plotly/validators/sankey/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/sankey/hoverlabel/font/_familysrc.py b/plotly/validators/sankey/hoverlabel/font/_familysrc.py index 7a965cd6e6..d23ef9b1f7 100644 --- a/plotly/validators/sankey/hoverlabel/font/_familysrc.py +++ b/plotly/validators/sankey/hoverlabel/font/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/hoverlabel/font/_lineposition.py b/plotly/validators/sankey/hoverlabel/font/_lineposition.py index 1d7d1e2a88..80691e393b 100644 --- a/plotly/validators/sankey/hoverlabel/font/_lineposition.py +++ b/plotly/validators/sankey/hoverlabel/font/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/sankey/hoverlabel/font/_linepositionsrc.py b/plotly/validators/sankey/hoverlabel/font/_linepositionsrc.py index c0abdb6157..55c1aeae12 100644 --- a/plotly/validators/sankey/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/sankey/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/hoverlabel/font/_shadow.py b/plotly/validators/sankey/hoverlabel/font/_shadow.py index 6c8af66ff6..618eb4226e 100644 --- a/plotly/validators/sankey/hoverlabel/font/_shadow.py +++ b/plotly/validators/sankey/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/sankey/hoverlabel/font/_shadowsrc.py b/plotly/validators/sankey/hoverlabel/font/_shadowsrc.py index 611023ae42..81d52e5530 100644 --- a/plotly/validators/sankey/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/sankey/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/hoverlabel/font/_size.py b/plotly/validators/sankey/hoverlabel/font/_size.py index 2db6aad84d..7ea020d61c 100644 --- a/plotly/validators/sankey/hoverlabel/font/_size.py +++ b/plotly/validators/sankey/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/sankey/hoverlabel/font/_sizesrc.py b/plotly/validators/sankey/hoverlabel/font/_sizesrc.py index 1e2d99dc81..12c894d179 100644 --- a/plotly/validators/sankey/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/sankey/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/hoverlabel/font/_style.py b/plotly/validators/sankey/hoverlabel/font/_style.py index 7c1e5b85d7..9c6dad54f6 100644 --- a/plotly/validators/sankey/hoverlabel/font/_style.py +++ b/plotly/validators/sankey/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/sankey/hoverlabel/font/_stylesrc.py b/plotly/validators/sankey/hoverlabel/font/_stylesrc.py index 049091162d..b0be37b724 100644 --- a/plotly/validators/sankey/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/sankey/hoverlabel/font/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/hoverlabel/font/_textcase.py b/plotly/validators/sankey/hoverlabel/font/_textcase.py index d904a2257d..70a9e7e880 100644 --- a/plotly/validators/sankey/hoverlabel/font/_textcase.py +++ b/plotly/validators/sankey/hoverlabel/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/sankey/hoverlabel/font/_textcasesrc.py b/plotly/validators/sankey/hoverlabel/font/_textcasesrc.py index 54227cb8dd..52119ee68f 100644 --- a/plotly/validators/sankey/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/sankey/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/hoverlabel/font/_variant.py b/plotly/validators/sankey/hoverlabel/font/_variant.py index f648db56a0..f0ffe812d5 100644 --- a/plotly/validators/sankey/hoverlabel/font/_variant.py +++ b/plotly/validators/sankey/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( diff --git a/plotly/validators/sankey/hoverlabel/font/_variantsrc.py b/plotly/validators/sankey/hoverlabel/font/_variantsrc.py index 9a86416f1b..7d3d268f13 100644 --- a/plotly/validators/sankey/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/sankey/hoverlabel/font/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/hoverlabel/font/_weight.py b/plotly/validators/sankey/hoverlabel/font/_weight.py index b9f9cf32a4..da6a1747fb 100644 --- a/plotly/validators/sankey/hoverlabel/font/_weight.py +++ b/plotly/validators/sankey/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/sankey/hoverlabel/font/_weightsrc.py b/plotly/validators/sankey/hoverlabel/font/_weightsrc.py index ef19f80f20..7e7ac49236 100644 --- a/plotly/validators/sankey/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/sankey/hoverlabel/font/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/legendgrouptitle/__init__.py b/plotly/validators/sankey/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/sankey/legendgrouptitle/__init__.py +++ b/plotly/validators/sankey/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/sankey/legendgrouptitle/_font.py b/plotly/validators/sankey/legendgrouptitle/_font.py index e5b84314e5..7aaa27b434 100644 --- a/plotly/validators/sankey/legendgrouptitle/_font.py +++ b/plotly/validators/sankey/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/sankey/legendgrouptitle/_text.py b/plotly/validators/sankey/legendgrouptitle/_text.py index 0da2bdbadd..b2e011481d 100644 --- a/plotly/validators/sankey/legendgrouptitle/_text.py +++ b/plotly/validators/sankey/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/sankey/legendgrouptitle/font/__init__.py b/plotly/validators/sankey/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/sankey/legendgrouptitle/font/__init__.py +++ b/plotly/validators/sankey/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/sankey/legendgrouptitle/font/_color.py b/plotly/validators/sankey/legendgrouptitle/font/_color.py index d02c13ed52..08e60bcff7 100644 --- a/plotly/validators/sankey/legendgrouptitle/font/_color.py +++ b/plotly/validators/sankey/legendgrouptitle/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/sankey/legendgrouptitle/font/_family.py b/plotly/validators/sankey/legendgrouptitle/font/_family.py index 1c7721f28c..5079570c19 100644 --- a/plotly/validators/sankey/legendgrouptitle/font/_family.py +++ b/plotly/validators/sankey/legendgrouptitle/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/sankey/legendgrouptitle/font/_lineposition.py b/plotly/validators/sankey/legendgrouptitle/font/_lineposition.py index b94a122918..31cc0d1711 100644 --- a/plotly/validators/sankey/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/sankey/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/sankey/legendgrouptitle/font/_shadow.py b/plotly/validators/sankey/legendgrouptitle/font/_shadow.py index c12d45b878..f51cd2607d 100644 --- a/plotly/validators/sankey/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/sankey/legendgrouptitle/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/sankey/legendgrouptitle/font/_size.py b/plotly/validators/sankey/legendgrouptitle/font/_size.py index f4128c909c..3e2265ad82 100644 --- a/plotly/validators/sankey/legendgrouptitle/font/_size.py +++ b/plotly/validators/sankey/legendgrouptitle/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/sankey/legendgrouptitle/font/_style.py b/plotly/validators/sankey/legendgrouptitle/font/_style.py index 643c954783..d462d15c95 100644 --- a/plotly/validators/sankey/legendgrouptitle/font/_style.py +++ b/plotly/validators/sankey/legendgrouptitle/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/sankey/legendgrouptitle/font/_textcase.py b/plotly/validators/sankey/legendgrouptitle/font/_textcase.py index e2e288b0ce..c9dce9fd1f 100644 --- a/plotly/validators/sankey/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/sankey/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/sankey/legendgrouptitle/font/_variant.py b/plotly/validators/sankey/legendgrouptitle/font/_variant.py index b51817c849..839c88f3cd 100644 --- a/plotly/validators/sankey/legendgrouptitle/font/_variant.py +++ b/plotly/validators/sankey/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/sankey/legendgrouptitle/font/_weight.py b/plotly/validators/sankey/legendgrouptitle/font/_weight.py index 2578cebc61..cd4baf2759 100644 --- a/plotly/validators/sankey/legendgrouptitle/font/_weight.py +++ b/plotly/validators/sankey/legendgrouptitle/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/sankey/link/__init__.py b/plotly/validators/sankey/link/__init__.py index 8305b5d1d3..3b101a070f 100644 --- a/plotly/validators/sankey/link/__init__.py +++ b/plotly/validators/sankey/link/__init__.py @@ -1,57 +1,31 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._valuesrc import ValuesrcValidator - from ._value import ValueValidator - from ._targetsrc import TargetsrcValidator - from ._target import TargetValidator - from ._sourcesrc import SourcesrcValidator - from ._source import SourceValidator - from ._line import LineValidator - from ._labelsrc import LabelsrcValidator - from ._label import LabelValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfo import HoverinfoValidator - from ._hovercolorsrc import HovercolorsrcValidator - from ._hovercolor import HovercolorValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._colorsrc import ColorsrcValidator - from ._colorscaledefaults import ColorscaledefaultsValidator - from ._colorscales import ColorscalesValidator - from ._color import ColorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/sankey/link/_arrowlen.py b/plotly/validators/sankey/link/_arrowlen.py index b3d9f5e276..bf84bf22fa 100644 --- a/plotly/validators/sankey/link/_arrowlen.py +++ b/plotly/validators/sankey/link/_arrowlen.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrowlenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/sankey/link/_color.py b/plotly/validators/sankey/link/_color.py index d9bb10306b..a0289f5f87 100644 --- a/plotly/validators/sankey/link/_color.py +++ b/plotly/validators/sankey/link/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/sankey/link/_colorscaledefaults.py b/plotly/validators/sankey/link/_colorscaledefaults.py index e43c7c95c9..8beb9c2a45 100644 --- a/plotly/validators/sankey/link/_colorscaledefaults.py +++ b/plotly/validators/sankey/link/_colorscaledefaults.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaledefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Colorscale"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/sankey/link/_colorscales.py b/plotly/validators/sankey/link/_colorscales.py index a4b70322ac..b94a51294b 100644 --- a/plotly/validators/sankey/link/_colorscales.py +++ b/plotly/validators/sankey/link/_colorscales.py @@ -1,57 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscalesValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/sankey/link/_colorsrc.py b/plotly/validators/sankey/link/_colorsrc.py index 23dfa88716..58871528d6 100644 --- a/plotly/validators/sankey/link/_colorsrc.py +++ b/plotly/validators/sankey/link/_colorsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/link/_customdata.py b/plotly/validators/sankey/link/_customdata.py index 93b888cbe6..a5f7021e9c 100644 --- a/plotly/validators/sankey/link/_customdata.py +++ b/plotly/validators/sankey/link/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/sankey/link/_customdatasrc.py b/plotly/validators/sankey/link/_customdatasrc.py index 644e9e69dc..c70121e9b1 100644 --- a/plotly/validators/sankey/link/_customdatasrc.py +++ b/plotly/validators/sankey/link/_customdatasrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/link/_hovercolor.py b/plotly/validators/sankey/link/_hovercolor.py index d5ce4c2b15..501110af42 100644 --- a/plotly/validators/sankey/link/_hovercolor.py +++ b/plotly/validators/sankey/link/_hovercolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/sankey/link/_hovercolorsrc.py b/plotly/validators/sankey/link/_hovercolorsrc.py index 027057cac4..614ee51d02 100644 --- a/plotly/validators/sankey/link/_hovercolorsrc.py +++ b/plotly/validators/sankey/link/_hovercolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/link/_hoverinfo.py b/plotly/validators/sankey/link/_hoverinfo.py index 67539c8a1d..361ca128ae 100644 --- a/plotly/validators/sankey/link/_hoverinfo.py +++ b/plotly/validators/sankey/link/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "none", "skip"]), **kwargs, diff --git a/plotly/validators/sankey/link/_hoverlabel.py b/plotly/validators/sankey/link/_hoverlabel.py index 3c16e4f345..ea7ad8f638 100644 --- a/plotly/validators/sankey/link/_hoverlabel.py +++ b/plotly/validators/sankey/link/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/sankey/link/_hovertemplate.py b/plotly/validators/sankey/link/_hovertemplate.py index bdcbf9e3b5..a50d04629b 100644 --- a/plotly/validators/sankey/link/_hovertemplate.py +++ b/plotly/validators/sankey/link/_hovertemplate.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/sankey/link/_hovertemplatesrc.py b/plotly/validators/sankey/link/_hovertemplatesrc.py index f46bdaa4a1..ba1979c8ae 100644 --- a/plotly/validators/sankey/link/_hovertemplatesrc.py +++ b/plotly/validators/sankey/link/_hovertemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/link/_label.py b/plotly/validators/sankey/link/_label.py index 3e8f2b7605..6e7ea9159e 100644 --- a/plotly/validators/sankey/link/_label.py +++ b/plotly/validators/sankey/link/_label.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/sankey/link/_labelsrc.py b/plotly/validators/sankey/link/_labelsrc.py index 6f4908b823..a7bb59f310 100644 --- a/plotly/validators/sankey/link/_labelsrc.py +++ b/plotly/validators/sankey/link/_labelsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/link/_line.py b/plotly/validators/sankey/link/_line.py index d1c7160a30..aed948193d 100644 --- a/plotly/validators/sankey/link/_line.py +++ b/plotly/validators/sankey/link/_line.py @@ -1,27 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/sankey/link/_source.py b/plotly/validators/sankey/link/_source.py index dd043fca01..99aeb4ae3b 100644 --- a/plotly/validators/sankey/link/_source.py +++ b/plotly/validators/sankey/link/_source.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SourceValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/sankey/link/_sourcesrc.py b/plotly/validators/sankey/link/_sourcesrc.py index 1f614cc76e..c87fdbe69a 100644 --- a/plotly/validators/sankey/link/_sourcesrc.py +++ b/plotly/validators/sankey/link/_sourcesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SourcesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/link/_target.py b/plotly/validators/sankey/link/_target.py index 753a795b26..8a7abde695 100644 --- a/plotly/validators/sankey/link/_target.py +++ b/plotly/validators/sankey/link/_target.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TargetValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/sankey/link/_targetsrc.py b/plotly/validators/sankey/link/_targetsrc.py index 0ee7b2a4db..d845b91305 100644 --- a/plotly/validators/sankey/link/_targetsrc.py +++ b/plotly/validators/sankey/link/_targetsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TargetsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/link/_value.py b/plotly/validators/sankey/link/_value.py index 8ab0b55d3e..46611d0d0b 100644 --- a/plotly/validators/sankey/link/_value.py +++ b/plotly/validators/sankey/link/_value.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/sankey/link/_valuesrc.py b/plotly/validators/sankey/link/_valuesrc.py index 421f12e3d4..2d377218db 100644 --- a/plotly/validators/sankey/link/_valuesrc.py +++ b/plotly/validators/sankey/link/_valuesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValuesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/link/colorscale/__init__.py b/plotly/validators/sankey/link/colorscale/__init__.py index a254f9c121..2a01143969 100644 --- a/plotly/validators/sankey/link/colorscale/__init__.py +++ b/plotly/validators/sankey/link/colorscale/__init__.py @@ -1,25 +1,15 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._label import LabelValidator - from ._colorscale import ColorscaleValidator - from ._cmin import CminValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._label.LabelValidator", + "._colorscale.ColorscaleValidator", + "._cmin.CminValidator", + "._cmax.CmaxValidator", + ], +) diff --git a/plotly/validators/sankey/link/colorscale/_cmax.py b/plotly/validators/sankey/link/colorscale/_cmax.py index b353593e07..ffa044b998 100644 --- a/plotly/validators/sankey/link/colorscale/_cmax.py +++ b/plotly/validators/sankey/link/colorscale/_cmax.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/sankey/link/colorscale/_cmin.py b/plotly/validators/sankey/link/colorscale/_cmin.py index 876d83969c..ed932608c7 100644 --- a/plotly/validators/sankey/link/colorscale/_cmin.py +++ b/plotly/validators/sankey/link/colorscale/_cmin.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/sankey/link/colorscale/_colorscale.py b/plotly/validators/sankey/link/colorscale/_colorscale.py index 35d5c01920..5ec2ea7509 100644 --- a/plotly/validators/sankey/link/colorscale/_colorscale.py +++ b/plotly/validators/sankey/link/colorscale/_colorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/sankey/link/colorscale/_label.py b/plotly/validators/sankey/link/colorscale/_label.py index 9be3de6a21..a54b2fc505 100644 --- a/plotly/validators/sankey/link/colorscale/_label.py +++ b/plotly/validators/sankey/link/colorscale/_label.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/sankey/link/colorscale/_name.py b/plotly/validators/sankey/link/colorscale/_name.py index dcf794b4a9..4854391018 100644 --- a/plotly/validators/sankey/link/colorscale/_name.py +++ b/plotly/validators/sankey/link/colorscale/_name.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/sankey/link/colorscale/_templateitemname.py b/plotly/validators/sankey/link/colorscale/_templateitemname.py index e916f97bfe..b60bcaf10f 100644 --- a/plotly/validators/sankey/link/colorscale/_templateitemname.py +++ b/plotly/validators/sankey/link/colorscale/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/sankey/link/hoverlabel/__init__.py b/plotly/validators/sankey/link/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/sankey/link/hoverlabel/__init__.py +++ b/plotly/validators/sankey/link/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/sankey/link/hoverlabel/_align.py b/plotly/validators/sankey/link/hoverlabel/_align.py index 3ff1d4e270..e213a95502 100644 --- a/plotly/validators/sankey/link/hoverlabel/_align.py +++ b/plotly/validators/sankey/link/hoverlabel/_align.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/sankey/link/hoverlabel/_alignsrc.py b/plotly/validators/sankey/link/hoverlabel/_alignsrc.py index 50f3532e93..46e689bdac 100644 --- a/plotly/validators/sankey/link/hoverlabel/_alignsrc.py +++ b/plotly/validators/sankey/link/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/link/hoverlabel/_bgcolor.py b/plotly/validators/sankey/link/hoverlabel/_bgcolor.py index ee7d9dd453..205fd250d0 100644 --- a/plotly/validators/sankey/link/hoverlabel/_bgcolor.py +++ b/plotly/validators/sankey/link/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/sankey/link/hoverlabel/_bgcolorsrc.py b/plotly/validators/sankey/link/hoverlabel/_bgcolorsrc.py index 3ac467a64a..9aa878303c 100644 --- a/plotly/validators/sankey/link/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/sankey/link/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/link/hoverlabel/_bordercolor.py b/plotly/validators/sankey/link/hoverlabel/_bordercolor.py index 74ffe40114..18c57cfb21 100644 --- a/plotly/validators/sankey/link/hoverlabel/_bordercolor.py +++ b/plotly/validators/sankey/link/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/sankey/link/hoverlabel/_bordercolorsrc.py b/plotly/validators/sankey/link/hoverlabel/_bordercolorsrc.py index 63d6a35537..8bf5dbd4ae 100644 --- a/plotly/validators/sankey/link/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/sankey/link/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/link/hoverlabel/_font.py b/plotly/validators/sankey/link/hoverlabel/_font.py index 79ca7b1a7b..2d623fc52e 100644 --- a/plotly/validators/sankey/link/hoverlabel/_font.py +++ b/plotly/validators/sankey/link/hoverlabel/_font.py @@ -1,87 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/sankey/link/hoverlabel/_namelength.py b/plotly/validators/sankey/link/hoverlabel/_namelength.py index 9008b94cde..1294e10b93 100644 --- a/plotly/validators/sankey/link/hoverlabel/_namelength.py +++ b/plotly/validators/sankey/link/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/sankey/link/hoverlabel/_namelengthsrc.py b/plotly/validators/sankey/link/hoverlabel/_namelengthsrc.py index 70a235d33b..ffb4276dfa 100644 --- a/plotly/validators/sankey/link/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/sankey/link/hoverlabel/_namelengthsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/link/hoverlabel/font/__init__.py b/plotly/validators/sankey/link/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/sankey/link/hoverlabel/font/__init__.py +++ b/plotly/validators/sankey/link/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/sankey/link/hoverlabel/font/_color.py b/plotly/validators/sankey/link/hoverlabel/font/_color.py index 00aa579368..0c9c62ff4c 100644 --- a/plotly/validators/sankey/link/hoverlabel/font/_color.py +++ b/plotly/validators/sankey/link/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/sankey/link/hoverlabel/font/_colorsrc.py b/plotly/validators/sankey/link/hoverlabel/font/_colorsrc.py index b0dda7a535..f22acbe582 100644 --- a/plotly/validators/sankey/link/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/sankey/link/hoverlabel/font/_colorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/link/hoverlabel/font/_family.py b/plotly/validators/sankey/link/hoverlabel/font/_family.py index fc08e322b2..13c6ba687e 100644 --- a/plotly/validators/sankey/link/hoverlabel/font/_family.py +++ b/plotly/validators/sankey/link/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/sankey/link/hoverlabel/font/_familysrc.py b/plotly/validators/sankey/link/hoverlabel/font/_familysrc.py index df32dae0ab..677744d8e6 100644 --- a/plotly/validators/sankey/link/hoverlabel/font/_familysrc.py +++ b/plotly/validators/sankey/link/hoverlabel/font/_familysrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/link/hoverlabel/font/_lineposition.py b/plotly/validators/sankey/link/hoverlabel/font/_lineposition.py index 2280559321..f284355265 100644 --- a/plotly/validators/sankey/link/hoverlabel/font/_lineposition.py +++ b/plotly/validators/sankey/link/hoverlabel/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/sankey/link/hoverlabel/font/_linepositionsrc.py b/plotly/validators/sankey/link/hoverlabel/font/_linepositionsrc.py index 181f820a25..dd58970de3 100644 --- a/plotly/validators/sankey/link/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/sankey/link/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/link/hoverlabel/font/_shadow.py b/plotly/validators/sankey/link/hoverlabel/font/_shadow.py index 910220d7f7..062238a57a 100644 --- a/plotly/validators/sankey/link/hoverlabel/font/_shadow.py +++ b/plotly/validators/sankey/link/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/sankey/link/hoverlabel/font/_shadowsrc.py b/plotly/validators/sankey/link/hoverlabel/font/_shadowsrc.py index 55701ddaa4..ce92489927 100644 --- a/plotly/validators/sankey/link/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/sankey/link/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/link/hoverlabel/font/_size.py b/plotly/validators/sankey/link/hoverlabel/font/_size.py index 1ebcc88521..d016bdb7ab 100644 --- a/plotly/validators/sankey/link/hoverlabel/font/_size.py +++ b/plotly/validators/sankey/link/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/sankey/link/hoverlabel/font/_sizesrc.py b/plotly/validators/sankey/link/hoverlabel/font/_sizesrc.py index 4b6dcc6c1d..92223f07cd 100644 --- a/plotly/validators/sankey/link/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/sankey/link/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/link/hoverlabel/font/_style.py b/plotly/validators/sankey/link/hoverlabel/font/_style.py index 03146f4090..e6f875becd 100644 --- a/plotly/validators/sankey/link/hoverlabel/font/_style.py +++ b/plotly/validators/sankey/link/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/sankey/link/hoverlabel/font/_stylesrc.py b/plotly/validators/sankey/link/hoverlabel/font/_stylesrc.py index 631ad9eb4c..d20305b979 100644 --- a/plotly/validators/sankey/link/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/sankey/link/hoverlabel/font/_stylesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/link/hoverlabel/font/_textcase.py b/plotly/validators/sankey/link/hoverlabel/font/_textcase.py index 5bd609f5ae..ad99e14822 100644 --- a/plotly/validators/sankey/link/hoverlabel/font/_textcase.py +++ b/plotly/validators/sankey/link/hoverlabel/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/sankey/link/hoverlabel/font/_textcasesrc.py b/plotly/validators/sankey/link/hoverlabel/font/_textcasesrc.py index 3f7091b4d6..8b9ac3f00f 100644 --- a/plotly/validators/sankey/link/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/sankey/link/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/link/hoverlabel/font/_variant.py b/plotly/validators/sankey/link/hoverlabel/font/_variant.py index 40b47e8ed2..5a60cb5045 100644 --- a/plotly/validators/sankey/link/hoverlabel/font/_variant.py +++ b/plotly/validators/sankey/link/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( diff --git a/plotly/validators/sankey/link/hoverlabel/font/_variantsrc.py b/plotly/validators/sankey/link/hoverlabel/font/_variantsrc.py index ae2d861985..0adb4ef4c7 100644 --- a/plotly/validators/sankey/link/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/sankey/link/hoverlabel/font/_variantsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/link/hoverlabel/font/_weight.py b/plotly/validators/sankey/link/hoverlabel/font/_weight.py index 16a2d5319a..044d37c484 100644 --- a/plotly/validators/sankey/link/hoverlabel/font/_weight.py +++ b/plotly/validators/sankey/link/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/sankey/link/hoverlabel/font/_weightsrc.py b/plotly/validators/sankey/link/hoverlabel/font/_weightsrc.py index f99fb456d7..c4e411e158 100644 --- a/plotly/validators/sankey/link/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/sankey/link/hoverlabel/font/_weightsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/link/line/__init__.py b/plotly/validators/sankey/link/line/__init__.py index a2b9e1ae50..ca6d32f725 100644 --- a/plotly/validators/sankey/link/line/__init__.py +++ b/plotly/validators/sankey/link/line/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._widthsrc import WidthsrcValidator - from ._width import WidthValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._widthsrc.WidthsrcValidator", + "._width.WidthValidator", + "._colorsrc.ColorsrcValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/sankey/link/line/_color.py b/plotly/validators/sankey/link/line/_color.py index 35020a81d8..c7a5c61275 100644 --- a/plotly/validators/sankey/link/line/_color.py +++ b/plotly/validators/sankey/link/line/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/sankey/link/line/_colorsrc.py b/plotly/validators/sankey/link/line/_colorsrc.py index 91c79d3b0c..f9767ae443 100644 --- a/plotly/validators/sankey/link/line/_colorsrc.py +++ b/plotly/validators/sankey/link/line/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/link/line/_width.py b/plotly/validators/sankey/link/line/_width.py index 69cf8d4c75..636e95869b 100644 --- a/plotly/validators/sankey/link/line/_width.py +++ b/plotly/validators/sankey/link/line/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/sankey/link/line/_widthsrc.py b/plotly/validators/sankey/link/line/_widthsrc.py index b36b401b32..91e5de37c4 100644 --- a/plotly/validators/sankey/link/line/_widthsrc.py +++ b/plotly/validators/sankey/link/line/_widthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/node/__init__.py b/plotly/validators/sankey/node/__init__.py index 276f46d65c..5d472034bf 100644 --- a/plotly/validators/sankey/node/__init__.py +++ b/plotly/validators/sankey/node/__init__.py @@ -1,51 +1,28 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._ysrc import YsrcValidator - from ._y import YValidator - from ._xsrc import XsrcValidator - from ._x import XValidator - from ._thickness import ThicknessValidator - from ._pad import PadValidator - from ._line import LineValidator - from ._labelsrc import LabelsrcValidator - from ._label import LabelValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfo import HoverinfoValidator - from ._groups import GroupsValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._colorsrc import ColorsrcValidator - from ._color import ColorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/sankey/node/_align.py b/plotly/validators/sankey/node/_align.py index 8fb0e5d4ff..176366e154 100644 --- a/plotly/validators/sankey/node/_align.py +++ b/plotly/validators/sankey/node/_align.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["justify", "left", "right", "center"]), **kwargs, diff --git a/plotly/validators/sankey/node/_color.py b/plotly/validators/sankey/node/_color.py index 38d96c1b5e..c66edf6f40 100644 --- a/plotly/validators/sankey/node/_color.py +++ b/plotly/validators/sankey/node/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/sankey/node/_colorsrc.py b/plotly/validators/sankey/node/_colorsrc.py index 2ee3d54553..72f5909d43 100644 --- a/plotly/validators/sankey/node/_colorsrc.py +++ b/plotly/validators/sankey/node/_colorsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/node/_customdata.py b/plotly/validators/sankey/node/_customdata.py index 732a433fbc..3074894a1e 100644 --- a/plotly/validators/sankey/node/_customdata.py +++ b/plotly/validators/sankey/node/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/sankey/node/_customdatasrc.py b/plotly/validators/sankey/node/_customdatasrc.py index aa461679bf..8ca9a396f2 100644 --- a/plotly/validators/sankey/node/_customdatasrc.py +++ b/plotly/validators/sankey/node/_customdatasrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/node/_groups.py b/plotly/validators/sankey/node/_groups.py index fbfeef94c4..fe52e38a2f 100644 --- a/plotly/validators/sankey/node/_groups.py +++ b/plotly/validators/sankey/node/_groups.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GroupsValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, dimensions=kwargs.pop("dimensions", 2), edit_type=kwargs.pop("edit_type", "calc"), free_length=kwargs.pop("free_length", True), diff --git a/plotly/validators/sankey/node/_hoverinfo.py b/plotly/validators/sankey/node/_hoverinfo.py index c2b14f208d..a47cc4e078 100644 --- a/plotly/validators/sankey/node/_hoverinfo.py +++ b/plotly/validators/sankey/node/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "none", "skip"]), **kwargs, diff --git a/plotly/validators/sankey/node/_hoverlabel.py b/plotly/validators/sankey/node/_hoverlabel.py index fb122b3de5..6c83a3a262 100644 --- a/plotly/validators/sankey/node/_hoverlabel.py +++ b/plotly/validators/sankey/node/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/sankey/node/_hovertemplate.py b/plotly/validators/sankey/node/_hovertemplate.py index c3e7c48bd0..2627bf5ec0 100644 --- a/plotly/validators/sankey/node/_hovertemplate.py +++ b/plotly/validators/sankey/node/_hovertemplate.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/sankey/node/_hovertemplatesrc.py b/plotly/validators/sankey/node/_hovertemplatesrc.py index cb51f2d1be..ef3acc2838 100644 --- a/plotly/validators/sankey/node/_hovertemplatesrc.py +++ b/plotly/validators/sankey/node/_hovertemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/node/_label.py b/plotly/validators/sankey/node/_label.py index bfd193e6b3..765021d946 100644 --- a/plotly/validators/sankey/node/_label.py +++ b/plotly/validators/sankey/node/_label.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/sankey/node/_labelsrc.py b/plotly/validators/sankey/node/_labelsrc.py index 1d838efc9a..2a4a2056e0 100644 --- a/plotly/validators/sankey/node/_labelsrc.py +++ b/plotly/validators/sankey/node/_labelsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/node/_line.py b/plotly/validators/sankey/node/_line.py index 12b142be92..507e7f03ec 100644 --- a/plotly/validators/sankey/node/_line.py +++ b/plotly/validators/sankey/node/_line.py @@ -1,27 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/sankey/node/_pad.py b/plotly/validators/sankey/node/_pad.py index 4e0555f9fc..333cf12efd 100644 --- a/plotly/validators/sankey/node/_pad.py +++ b/plotly/validators/sankey/node/_pad.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/sankey/node/_thickness.py b/plotly/validators/sankey/node/_thickness.py index 61278520d2..c1cd0fe1f1 100644 --- a/plotly/validators/sankey/node/_thickness.py +++ b/plotly/validators/sankey/node/_thickness.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/sankey/node/_x.py b/plotly/validators/sankey/node/_x.py index a3294d6e52..a018718528 100644 --- a/plotly/validators/sankey/node/_x.py +++ b/plotly/validators/sankey/node/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/sankey/node/_xsrc.py b/plotly/validators/sankey/node/_xsrc.py index 8e8608365b..fe8ddb3a27 100644 --- a/plotly/validators/sankey/node/_xsrc.py +++ b/plotly/validators/sankey/node/_xsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/node/_y.py b/plotly/validators/sankey/node/_y.py index 427b5f8440..0f0ab94192 100644 --- a/plotly/validators/sankey/node/_y.py +++ b/plotly/validators/sankey/node/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/sankey/node/_ysrc.py b/plotly/validators/sankey/node/_ysrc.py index 7f98949907..92ba1c0855 100644 --- a/plotly/validators/sankey/node/_ysrc.py +++ b/plotly/validators/sankey/node/_ysrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/node/hoverlabel/__init__.py b/plotly/validators/sankey/node/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/sankey/node/hoverlabel/__init__.py +++ b/plotly/validators/sankey/node/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/sankey/node/hoverlabel/_align.py b/plotly/validators/sankey/node/hoverlabel/_align.py index 3bfa41a8bd..be2a37eb92 100644 --- a/plotly/validators/sankey/node/hoverlabel/_align.py +++ b/plotly/validators/sankey/node/hoverlabel/_align.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/sankey/node/hoverlabel/_alignsrc.py b/plotly/validators/sankey/node/hoverlabel/_alignsrc.py index 634ace9bf4..8fcb005753 100644 --- a/plotly/validators/sankey/node/hoverlabel/_alignsrc.py +++ b/plotly/validators/sankey/node/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/node/hoverlabel/_bgcolor.py b/plotly/validators/sankey/node/hoverlabel/_bgcolor.py index 262e5b9ef8..04b5f56f28 100644 --- a/plotly/validators/sankey/node/hoverlabel/_bgcolor.py +++ b/plotly/validators/sankey/node/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/sankey/node/hoverlabel/_bgcolorsrc.py b/plotly/validators/sankey/node/hoverlabel/_bgcolorsrc.py index dba4f6661a..5dc3fd086e 100644 --- a/plotly/validators/sankey/node/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/sankey/node/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/node/hoverlabel/_bordercolor.py b/plotly/validators/sankey/node/hoverlabel/_bordercolor.py index 126fdacddf..6c69b87a1a 100644 --- a/plotly/validators/sankey/node/hoverlabel/_bordercolor.py +++ b/plotly/validators/sankey/node/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/sankey/node/hoverlabel/_bordercolorsrc.py b/plotly/validators/sankey/node/hoverlabel/_bordercolorsrc.py index 56b9ad6e32..fc5792b4ba 100644 --- a/plotly/validators/sankey/node/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/sankey/node/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/node/hoverlabel/_font.py b/plotly/validators/sankey/node/hoverlabel/_font.py index 23cb89b925..163838126c 100644 --- a/plotly/validators/sankey/node/hoverlabel/_font.py +++ b/plotly/validators/sankey/node/hoverlabel/_font.py @@ -1,87 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/sankey/node/hoverlabel/_namelength.py b/plotly/validators/sankey/node/hoverlabel/_namelength.py index 2861043ecc..2f31851754 100644 --- a/plotly/validators/sankey/node/hoverlabel/_namelength.py +++ b/plotly/validators/sankey/node/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/sankey/node/hoverlabel/_namelengthsrc.py b/plotly/validators/sankey/node/hoverlabel/_namelengthsrc.py index accdb33406..68865aff25 100644 --- a/plotly/validators/sankey/node/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/sankey/node/hoverlabel/_namelengthsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/node/hoverlabel/font/__init__.py b/plotly/validators/sankey/node/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/sankey/node/hoverlabel/font/__init__.py +++ b/plotly/validators/sankey/node/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/sankey/node/hoverlabel/font/_color.py b/plotly/validators/sankey/node/hoverlabel/font/_color.py index 66768a82ba..faef0e09d0 100644 --- a/plotly/validators/sankey/node/hoverlabel/font/_color.py +++ b/plotly/validators/sankey/node/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/sankey/node/hoverlabel/font/_colorsrc.py b/plotly/validators/sankey/node/hoverlabel/font/_colorsrc.py index b7202c304b..3541da3478 100644 --- a/plotly/validators/sankey/node/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/sankey/node/hoverlabel/font/_colorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/node/hoverlabel/font/_family.py b/plotly/validators/sankey/node/hoverlabel/font/_family.py index 77d0a78ab0..6e36bb475c 100644 --- a/plotly/validators/sankey/node/hoverlabel/font/_family.py +++ b/plotly/validators/sankey/node/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/sankey/node/hoverlabel/font/_familysrc.py b/plotly/validators/sankey/node/hoverlabel/font/_familysrc.py index 6aca70b020..b8088d4837 100644 --- a/plotly/validators/sankey/node/hoverlabel/font/_familysrc.py +++ b/plotly/validators/sankey/node/hoverlabel/font/_familysrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/node/hoverlabel/font/_lineposition.py b/plotly/validators/sankey/node/hoverlabel/font/_lineposition.py index daf70f34a8..f3b4690629 100644 --- a/plotly/validators/sankey/node/hoverlabel/font/_lineposition.py +++ b/plotly/validators/sankey/node/hoverlabel/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/sankey/node/hoverlabel/font/_linepositionsrc.py b/plotly/validators/sankey/node/hoverlabel/font/_linepositionsrc.py index 19fd6d0b6f..b0be37fb29 100644 --- a/plotly/validators/sankey/node/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/sankey/node/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/node/hoverlabel/font/_shadow.py b/plotly/validators/sankey/node/hoverlabel/font/_shadow.py index ecf1fa534d..5f5fed9966 100644 --- a/plotly/validators/sankey/node/hoverlabel/font/_shadow.py +++ b/plotly/validators/sankey/node/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/sankey/node/hoverlabel/font/_shadowsrc.py b/plotly/validators/sankey/node/hoverlabel/font/_shadowsrc.py index 7f7a8c66eb..4565fc248f 100644 --- a/plotly/validators/sankey/node/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/sankey/node/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/node/hoverlabel/font/_size.py b/plotly/validators/sankey/node/hoverlabel/font/_size.py index 604fadb607..86943c6b51 100644 --- a/plotly/validators/sankey/node/hoverlabel/font/_size.py +++ b/plotly/validators/sankey/node/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/sankey/node/hoverlabel/font/_sizesrc.py b/plotly/validators/sankey/node/hoverlabel/font/_sizesrc.py index 881e8afaf3..324733b983 100644 --- a/plotly/validators/sankey/node/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/sankey/node/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/node/hoverlabel/font/_style.py b/plotly/validators/sankey/node/hoverlabel/font/_style.py index 842eb81fbe..dc693667db 100644 --- a/plotly/validators/sankey/node/hoverlabel/font/_style.py +++ b/plotly/validators/sankey/node/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/sankey/node/hoverlabel/font/_stylesrc.py b/plotly/validators/sankey/node/hoverlabel/font/_stylesrc.py index e7ad82d34d..90e49d9385 100644 --- a/plotly/validators/sankey/node/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/sankey/node/hoverlabel/font/_stylesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/node/hoverlabel/font/_textcase.py b/plotly/validators/sankey/node/hoverlabel/font/_textcase.py index f216f8ec52..4e677fa6d3 100644 --- a/plotly/validators/sankey/node/hoverlabel/font/_textcase.py +++ b/plotly/validators/sankey/node/hoverlabel/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/sankey/node/hoverlabel/font/_textcasesrc.py b/plotly/validators/sankey/node/hoverlabel/font/_textcasesrc.py index a8a4ebdfba..007dbb07a4 100644 --- a/plotly/validators/sankey/node/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/sankey/node/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/node/hoverlabel/font/_variant.py b/plotly/validators/sankey/node/hoverlabel/font/_variant.py index 7c9899669a..2ba3b720ba 100644 --- a/plotly/validators/sankey/node/hoverlabel/font/_variant.py +++ b/plotly/validators/sankey/node/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( diff --git a/plotly/validators/sankey/node/hoverlabel/font/_variantsrc.py b/plotly/validators/sankey/node/hoverlabel/font/_variantsrc.py index 63d7222579..3e9917d8bd 100644 --- a/plotly/validators/sankey/node/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/sankey/node/hoverlabel/font/_variantsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/node/hoverlabel/font/_weight.py b/plotly/validators/sankey/node/hoverlabel/font/_weight.py index 27b24f234a..a1d8fcaa9a 100644 --- a/plotly/validators/sankey/node/hoverlabel/font/_weight.py +++ b/plotly/validators/sankey/node/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/sankey/node/hoverlabel/font/_weightsrc.py b/plotly/validators/sankey/node/hoverlabel/font/_weightsrc.py index bf7357c747..708128f0ee 100644 --- a/plotly/validators/sankey/node/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/sankey/node/hoverlabel/font/_weightsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/node/line/__init__.py b/plotly/validators/sankey/node/line/__init__.py index a2b9e1ae50..ca6d32f725 100644 --- a/plotly/validators/sankey/node/line/__init__.py +++ b/plotly/validators/sankey/node/line/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._widthsrc import WidthsrcValidator - from ._width import WidthValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._widthsrc.WidthsrcValidator", + "._width.WidthValidator", + "._colorsrc.ColorsrcValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/sankey/node/line/_color.py b/plotly/validators/sankey/node/line/_color.py index a624332355..589e095eb3 100644 --- a/plotly/validators/sankey/node/line/_color.py +++ b/plotly/validators/sankey/node/line/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/sankey/node/line/_colorsrc.py b/plotly/validators/sankey/node/line/_colorsrc.py index 080e1036cc..546c54714f 100644 --- a/plotly/validators/sankey/node/line/_colorsrc.py +++ b/plotly/validators/sankey/node/line/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/node/line/_width.py b/plotly/validators/sankey/node/line/_width.py index 4bf6758432..d9deed7d4d 100644 --- a/plotly/validators/sankey/node/line/_width.py +++ b/plotly/validators/sankey/node/line/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/sankey/node/line/_widthsrc.py b/plotly/validators/sankey/node/line/_widthsrc.py index fa20b58773..df54bc60d3 100644 --- a/plotly/validators/sankey/node/line/_widthsrc.py +++ b/plotly/validators/sankey/node/line/_widthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sankey/stream/__init__.py b/plotly/validators/sankey/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/sankey/stream/__init__.py +++ b/plotly/validators/sankey/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/sankey/stream/_maxpoints.py b/plotly/validators/sankey/stream/_maxpoints.py index a1c24121ac..1eebd535bc 100644 --- a/plotly/validators/sankey/stream/_maxpoints.py +++ b/plotly/validators/sankey/stream/_maxpoints.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/sankey/stream/_token.py b/plotly/validators/sankey/stream/_token.py index f320836bc4..8be9fd0dfc 100644 --- a/plotly/validators/sankey/stream/_token.py +++ b/plotly/validators/sankey/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/sankey/textfont/__init__.py b/plotly/validators/sankey/textfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/sankey/textfont/__init__.py +++ b/plotly/validators/sankey/textfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/sankey/textfont/_color.py b/plotly/validators/sankey/textfont/_color.py index 269cf114c2..c97b278461 100644 --- a/plotly/validators/sankey/textfont/_color.py +++ b/plotly/validators/sankey/textfont/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/sankey/textfont/_family.py b/plotly/validators/sankey/textfont/_family.py index 46acb450e8..cb83fb6cdf 100644 --- a/plotly/validators/sankey/textfont/_family.py +++ b/plotly/validators/sankey/textfont/_family.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/sankey/textfont/_lineposition.py b/plotly/validators/sankey/textfont/_lineposition.py index 8db1857a8d..115a11cc9f 100644 --- a/plotly/validators/sankey/textfont/_lineposition.py +++ b/plotly/validators/sankey/textfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/sankey/textfont/_shadow.py b/plotly/validators/sankey/textfont/_shadow.py index 57dadf284e..f9c8b205a8 100644 --- a/plotly/validators/sankey/textfont/_shadow.py +++ b/plotly/validators/sankey/textfont/_shadow.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/sankey/textfont/_size.py b/plotly/validators/sankey/textfont/_size.py index 4d3ccdd73a..2780993b68 100644 --- a/plotly/validators/sankey/textfont/_size.py +++ b/plotly/validators/sankey/textfont/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/sankey/textfont/_style.py b/plotly/validators/sankey/textfont/_style.py index 04ee72afc6..dd5c31a597 100644 --- a/plotly/validators/sankey/textfont/_style.py +++ b/plotly/validators/sankey/textfont/_style.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/sankey/textfont/_textcase.py b/plotly/validators/sankey/textfont/_textcase.py index 7e2a8788f6..7d150f2e89 100644 --- a/plotly/validators/sankey/textfont/_textcase.py +++ b/plotly/validators/sankey/textfont/_textcase.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/sankey/textfont/_variant.py b/plotly/validators/sankey/textfont/_variant.py index b61bd5ebd5..08c4c624cc 100644 --- a/plotly/validators/sankey/textfont/_variant.py +++ b/plotly/validators/sankey/textfont/_variant.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/sankey/textfont/_weight.py b/plotly/validators/sankey/textfont/_weight.py index 886b67fb3e..d6e1e9e678 100644 --- a/plotly/validators/sankey/textfont/_weight.py +++ b/plotly/validators/sankey/textfont/_weight.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scatter/__init__.py b/plotly/validators/scatter/__init__.py index e159bfe456..3788649bfd 100644 --- a/plotly/validators/scatter/__init__.py +++ b/plotly/validators/scatter/__init__.py @@ -1,161 +1,83 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zorder import ZorderValidator - from ._ysrc import YsrcValidator - from ._yperiodalignment import YperiodalignmentValidator - from ._yperiod0 import Yperiod0Validator - from ._yperiod import YperiodValidator - from ._yhoverformat import YhoverformatValidator - from ._ycalendar import YcalendarValidator - from ._yaxis import YaxisValidator - from ._y0 import Y0Validator - from ._y import YValidator - from ._xsrc import XsrcValidator - from ._xperiodalignment import XperiodalignmentValidator - from ._xperiod0 import Xperiod0Validator - from ._xperiod import XperiodValidator - from ._xhoverformat import XhoverformatValidator - from ._xcalendar import XcalendarValidator - from ._xaxis import XaxisValidator - from ._x0 import X0Validator - from ._x import XValidator - from ._visible import VisibleValidator - from ._unselected import UnselectedValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._texttemplatesrc import TexttemplatesrcValidator - from ._texttemplate import TexttemplateValidator - from ._textsrc import TextsrcValidator - from ._textpositionsrc import TextpositionsrcValidator - from ._textposition import TextpositionValidator - from ._textfont import TextfontValidator - from ._text import TextValidator - from ._stream import StreamValidator - from ._stackgroup import StackgroupValidator - from ._stackgaps import StackgapsValidator - from ._showlegend import ShowlegendValidator - from ._selectedpoints import SelectedpointsValidator - from ._selected import SelectedValidator - from ._orientation import OrientationValidator - from ._opacity import OpacityValidator - from ._offsetgroup import OffsetgroupValidator - from ._name import NameValidator - from ._mode import ModeValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._marker import MarkerValidator - from ._line import LineValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoveron import HoveronValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._groupnorm import GroupnormValidator - from ._fillpattern import FillpatternValidator - from ._fillgradient import FillgradientValidator - from ._fillcolor import FillcolorValidator - from ._fill import FillValidator - from ._error_y import Error_YValidator - from ._error_x import Error_XValidator - from ._dy import DyValidator - from ._dx import DxValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._connectgaps import ConnectgapsValidator - from ._cliponaxis import CliponaxisValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatter/_alignmentgroup.py b/plotly/validators/scatter/_alignmentgroup.py index ca18b414bd..875e0dc86d 100644 --- a/plotly/validators/scatter/_alignmentgroup.py +++ b/plotly/validators/scatter/_alignmentgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignmentgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter/_cliponaxis.py b/plotly/validators/scatter/_cliponaxis.py index 59c66acfef..2e56ee7adb 100644 --- a/plotly/validators/scatter/_cliponaxis.py +++ b/plotly/validators/scatter/_cliponaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CliponaxisValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/scatter/_connectgaps.py b/plotly/validators/scatter/_connectgaps.py index c4bd997167..8839c7b404 100644 --- a/plotly/validators/scatter/_connectgaps.py +++ b/plotly/validators/scatter/_connectgaps.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter/_customdata.py b/plotly/validators/scatter/_customdata.py index 090b0d59f8..5d5355cc7f 100644 --- a/plotly/validators/scatter/_customdata.py +++ b/plotly/validators/scatter/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter/_customdatasrc.py b/plotly/validators/scatter/_customdatasrc.py index 2706d06389..36c6e4fe33 100644 --- a/plotly/validators/scatter/_customdatasrc.py +++ b/plotly/validators/scatter/_customdatasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/_dx.py b/plotly/validators/scatter/_dx.py index 01b2f94bd8..f759a7173c 100644 --- a/plotly/validators/scatter/_dx.py +++ b/plotly/validators/scatter/_dx.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scatter/_dy.py b/plotly/validators/scatter/_dy.py index 21736ea402..b6df717e5b 100644 --- a/plotly/validators/scatter/_dy.py +++ b/plotly/validators/scatter/_dy.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DyValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scatter/_error_x.py b/plotly/validators/scatter/_error_x.py index e5346b58da..465306ee76 100644 --- a/plotly/validators/scatter/_error_x.py +++ b/plotly/validators/scatter/_error_x.py @@ -1,72 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Error_XValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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 - - 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, diff --git a/plotly/validators/scatter/_error_y.py b/plotly/validators/scatter/_error_y.py index e07a28ac01..4193d1c906 100644 --- a/plotly/validators/scatter/_error_y.py +++ b/plotly/validators/scatter/_error_y.py @@ -1,70 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Error_YValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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 - - 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, diff --git a/plotly/validators/scatter/_fill.py b/plotly/validators/scatter/_fill.py index d15757193c..1b6261481a 100644 --- a/plotly/validators/scatter/_fill.py +++ b/plotly/validators/scatter/_fill.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/scatter/_fillcolor.py b/plotly/validators/scatter/_fillcolor.py index fe530a47c7..112d1fdecb 100644 --- a/plotly/validators/scatter/_fillcolor.py +++ b/plotly/validators/scatter/_fillcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/scatter/_fillgradient.py b/plotly/validators/scatter/_fillgradient.py index 73720a9a9f..6a6be14b63 100644 --- a/plotly/validators/scatter/_fillgradient.py +++ b/plotly/validators/scatter/_fillgradient.py @@ -1,44 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillgradientValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatter/_fillpattern.py b/plotly/validators/scatter/_fillpattern.py index fdb1c740b3..b7b3928ff3 100644 --- a/plotly/validators/scatter/_fillpattern.py +++ b/plotly/validators/scatter/_fillpattern.py @@ -1,63 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillpatternValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatter/_groupnorm.py b/plotly/validators/scatter/_groupnorm.py index 0632d4d67d..35159f9013 100644 --- a/plotly/validators/scatter/_groupnorm.py +++ b/plotly/validators/scatter/_groupnorm.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GroupnormValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["", "fraction", "percent"]), **kwargs, diff --git a/plotly/validators/scatter/_hoverinfo.py b/plotly/validators/scatter/_hoverinfo.py index 43634ee462..dce36f1312 100644 --- a/plotly/validators/scatter/_hoverinfo.py +++ b/plotly/validators/scatter/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/scatter/_hoverinfosrc.py b/plotly/validators/scatter/_hoverinfosrc.py index 06019dd614..4eda245ef9 100644 --- a/plotly/validators/scatter/_hoverinfosrc.py +++ b/plotly/validators/scatter/_hoverinfosrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/_hoverlabel.py b/plotly/validators/scatter/_hoverlabel.py index 1b64a02fec..8db148e909 100644 --- a/plotly/validators/scatter/_hoverlabel.py +++ b/plotly/validators/scatter/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatter/_hoveron.py b/plotly/validators/scatter/_hoveron.py index baabd08330..bc742d0a32 100644 --- a/plotly/validators/scatter/_hoveron.py +++ b/plotly/validators/scatter/_hoveron.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoveronValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), flags=kwargs.pop("flags", ["points", "fills"]), **kwargs, diff --git a/plotly/validators/scatter/_hovertemplate.py b/plotly/validators/scatter/_hovertemplate.py index 52e197df31..a30a5a312d 100644 --- a/plotly/validators/scatter/_hovertemplate.py +++ b/plotly/validators/scatter/_hovertemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scatter/_hovertemplatesrc.py b/plotly/validators/scatter/_hovertemplatesrc.py index e627b9e02a..8984538f7c 100644 --- a/plotly/validators/scatter/_hovertemplatesrc.py +++ b/plotly/validators/scatter/_hovertemplatesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/_hovertext.py b/plotly/validators/scatter/_hovertext.py index 22b354ab60..62f9857e9f 100644 --- a/plotly/validators/scatter/_hovertext.py +++ b/plotly/validators/scatter/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/scatter/_hovertextsrc.py b/plotly/validators/scatter/_hovertextsrc.py index 81d223fb59..722ebbab0b 100644 --- a/plotly/validators/scatter/_hovertextsrc.py +++ b/plotly/validators/scatter/_hovertextsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/_ids.py b/plotly/validators/scatter/_ids.py index c3cfad87ca..6e8c61c3aa 100644 --- a/plotly/validators/scatter/_ids.py +++ b/plotly/validators/scatter/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scatter/_idssrc.py b/plotly/validators/scatter/_idssrc.py index f0fe9f6452..eeb5187b4f 100644 --- a/plotly/validators/scatter/_idssrc.py +++ b/plotly/validators/scatter/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/_legend.py b/plotly/validators/scatter/_legend.py index d7dc121acf..38fdaef218 100644 --- a/plotly/validators/scatter/_legend.py +++ b/plotly/validators/scatter/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/scatter/_legendgroup.py b/plotly/validators/scatter/_legendgroup.py index 9e1dfe1371..87f40b085b 100644 --- a/plotly/validators/scatter/_legendgroup.py +++ b/plotly/validators/scatter/_legendgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatter/_legendgrouptitle.py b/plotly/validators/scatter/_legendgrouptitle.py index 971b297a12..93a9235b44 100644 --- a/plotly/validators/scatter/_legendgrouptitle.py +++ b/plotly/validators/scatter/_legendgrouptitle.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatter/_legendrank.py b/plotly/validators/scatter/_legendrank.py index e9c879ad94..fb2fea592e 100644 --- a/plotly/validators/scatter/_legendrank.py +++ b/plotly/validators/scatter/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatter/_legendwidth.py b/plotly/validators/scatter/_legendwidth.py index 13ea667e05..07e7952399 100644 --- a/plotly/validators/scatter/_legendwidth.py +++ b/plotly/validators/scatter/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter/_line.py b/plotly/validators/scatter/_line.py index b6d3c5fa7e..a74bed5d18 100644 --- a/plotly/validators/scatter/_line.py +++ b/plotly/validators/scatter/_line.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatter/_marker.py b/plotly/validators/scatter/_marker.py index 596ed6b44f..7f208259ae 100644 --- a/plotly/validators/scatter/_marker.py +++ b/plotly/validators/scatter/_marker.py @@ -1,164 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatter/_meta.py b/plotly/validators/scatter/_meta.py index 32d824432a..f6278074f7 100644 --- a/plotly/validators/scatter/_meta.py +++ b/plotly/validators/scatter/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/scatter/_metasrc.py b/plotly/validators/scatter/_metasrc.py index c5066dbc4d..eb58b50c0e 100644 --- a/plotly/validators/scatter/_metasrc.py +++ b/plotly/validators/scatter/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/_mode.py b/plotly/validators/scatter/_mode.py index cdadf40778..881a226228 100644 --- a/plotly/validators/scatter/_mode.py +++ b/plotly/validators/scatter/_mode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["lines", "markers", "text"]), diff --git a/plotly/validators/scatter/_name.py b/plotly/validators/scatter/_name.py index 270756f04e..5d0e099661 100644 --- a/plotly/validators/scatter/_name.py +++ b/plotly/validators/scatter/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatter/_offsetgroup.py b/plotly/validators/scatter/_offsetgroup.py index 562452b2fa..380aa048d4 100644 --- a/plotly/validators/scatter/_offsetgroup.py +++ b/plotly/validators/scatter/_offsetgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OffsetgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter/_opacity.py b/plotly/validators/scatter/_opacity.py index 4f6ca3e662..c97a67fad3 100644 --- a/plotly/validators/scatter/_opacity.py +++ b/plotly/validators/scatter/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatter/_orientation.py b/plotly/validators/scatter/_orientation.py index 2594fcfa17..1b91df8b10 100644 --- a/plotly/validators/scatter/_orientation.py +++ b/plotly/validators/scatter/_orientation.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["v", "h"]), **kwargs, diff --git a/plotly/validators/scatter/_selected.py b/plotly/validators/scatter/_selected.py index b4064ab903..c9ae94ebb4 100644 --- a/plotly/validators/scatter/_selected.py +++ b/plotly/validators/scatter/_selected.py @@ -1,23 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatter/_selectedpoints.py b/plotly/validators/scatter/_selectedpoints.py index 4aa2fc147c..3e1dc46efd 100644 --- a/plotly/validators/scatter/_selectedpoints.py +++ b/plotly/validators/scatter/_selectedpoints.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter/_showlegend.py b/plotly/validators/scatter/_showlegend.py index 767864b227..aea63ecb87 100644 --- a/plotly/validators/scatter/_showlegend.py +++ b/plotly/validators/scatter/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatter/_stackgaps.py b/plotly/validators/scatter/_stackgaps.py index 3c2018ee41..b0d5c01e29 100644 --- a/plotly/validators/scatter/_stackgaps.py +++ b/plotly/validators/scatter/_stackgaps.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StackgapsValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["infer zero", "interpolate"]), **kwargs, diff --git a/plotly/validators/scatter/_stackgroup.py b/plotly/validators/scatter/_stackgroup.py index 0bc8462aa7..dcbb4485bd 100644 --- a/plotly/validators/scatter/_stackgroup.py +++ b/plotly/validators/scatter/_stackgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StackgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter/_stream.py b/plotly/validators/scatter/_stream.py index cd45d6fc92..1e05f7328a 100644 --- a/plotly/validators/scatter/_stream.py +++ b/plotly/validators/scatter/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatter/_text.py b/plotly/validators/scatter/_text.py index 009be0982a..8280e5c949 100644 --- a/plotly/validators/scatter/_text.py +++ b/plotly/validators/scatter/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scatter/_textfont.py b/plotly/validators/scatter/_textfont.py index 0bb1e18a7a..8fca45ab47 100644 --- a/plotly/validators/scatter/_textfont.py +++ b/plotly/validators/scatter/_textfont.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/scatter/_textposition.py b/plotly/validators/scatter/_textposition.py index 4a5ae5c9da..09c418ba4b 100644 --- a/plotly/validators/scatter/_textposition.py +++ b/plotly/validators/scatter/_textposition.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( diff --git a/plotly/validators/scatter/_textpositionsrc.py b/plotly/validators/scatter/_textpositionsrc.py index c4b1798204..e7399a25b5 100644 --- a/plotly/validators/scatter/_textpositionsrc.py +++ b/plotly/validators/scatter/_textpositionsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/_textsrc.py b/plotly/validators/scatter/_textsrc.py index d4173b0af3..5e4bc7309e 100644 --- a/plotly/validators/scatter/_textsrc.py +++ b/plotly/validators/scatter/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/_texttemplate.py b/plotly/validators/scatter/_texttemplate.py index f95e1320db..a34c68e526 100644 --- a/plotly/validators/scatter/_texttemplate.py +++ b/plotly/validators/scatter/_texttemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scatter/_texttemplatesrc.py b/plotly/validators/scatter/_texttemplatesrc.py index 948b3d67b7..aa427fc652 100644 --- a/plotly/validators/scatter/_texttemplatesrc.py +++ b/plotly/validators/scatter/_texttemplatesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/_uid.py b/plotly/validators/scatter/_uid.py index ff5ab866ba..564b871cc4 100644 --- a/plotly/validators/scatter/_uid.py +++ b/plotly/validators/scatter/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/scatter/_uirevision.py b/plotly/validators/scatter/_uirevision.py index 762dbccbfe..65d0b7cd98 100644 --- a/plotly/validators/scatter/_uirevision.py +++ b/plotly/validators/scatter/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/_unselected.py b/plotly/validators/scatter/_unselected.py index 3dd7715799..f7358a5751 100644 --- a/plotly/validators/scatter/_unselected.py +++ b/plotly/validators/scatter/_unselected.py @@ -1,23 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatter/_visible.py b/plotly/validators/scatter/_visible.py index 8a087b5671..84e0607eac 100644 --- a/plotly/validators/scatter/_visible.py +++ b/plotly/validators/scatter/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/scatter/_x.py b/plotly/validators/scatter/_x.py index 41178ffcc9..9431adfa14 100644 --- a/plotly/validators/scatter/_x.py +++ b/plotly/validators/scatter/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/scatter/_x0.py b/plotly/validators/scatter/_x0.py index a07880bc94..a91958a46e 100644 --- a/plotly/validators/scatter/_x0.py +++ b/plotly/validators/scatter/_x0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class X0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/scatter/_xaxis.py b/plotly/validators/scatter/_xaxis.py index a060bea706..b934f06b31 100644 --- a/plotly/validators/scatter/_xaxis.py +++ b/plotly/validators/scatter/_xaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "x"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/scatter/_xcalendar.py b/plotly/validators/scatter/_xcalendar.py index caa42cc058..75f47f8712 100644 --- a/plotly/validators/scatter/_xcalendar.py +++ b/plotly/validators/scatter/_xcalendar.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/scatter/_xhoverformat.py b/plotly/validators/scatter/_xhoverformat.py index c7bf4af3c6..3bfab2699f 100644 --- a/plotly/validators/scatter/_xhoverformat.py +++ b/plotly/validators/scatter/_xhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/_xperiod.py b/plotly/validators/scatter/_xperiod.py index 4a3d78dba6..23deeba350 100644 --- a/plotly/validators/scatter/_xperiod.py +++ b/plotly/validators/scatter/_xperiod.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XperiodValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter/_xperiod0.py b/plotly/validators/scatter/_xperiod0.py index 033f8b73a2..83abb25e4a 100644 --- a/plotly/validators/scatter/_xperiod0.py +++ b/plotly/validators/scatter/_xperiod0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Xperiod0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter/_xperiodalignment.py b/plotly/validators/scatter/_xperiodalignment.py index 3318575063..8555c4a506 100644 --- a/plotly/validators/scatter/_xperiodalignment.py +++ b/plotly/validators/scatter/_xperiodalignment.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["start", "middle", "end"]), **kwargs, diff --git a/plotly/validators/scatter/_xsrc.py b/plotly/validators/scatter/_xsrc.py index 81f0105c7e..00b7b85c20 100644 --- a/plotly/validators/scatter/_xsrc.py +++ b/plotly/validators/scatter/_xsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/_y.py b/plotly/validators/scatter/_y.py index e7b80e1b11..cea01cb144 100644 --- a/plotly/validators/scatter/_y.py +++ b/plotly/validators/scatter/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/scatter/_y0.py b/plotly/validators/scatter/_y0.py index 8cc00eaedd..5ff338ea8a 100644 --- a/plotly/validators/scatter/_y0.py +++ b/plotly/validators/scatter/_y0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Y0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/scatter/_yaxis.py b/plotly/validators/scatter/_yaxis.py index c1e40f7bda..89cb259e5d 100644 --- a/plotly/validators/scatter/_yaxis.py +++ b/plotly/validators/scatter/_yaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "y"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/scatter/_ycalendar.py b/plotly/validators/scatter/_ycalendar.py index 3e0f9dab2c..5509d6a93f 100644 --- a/plotly/validators/scatter/_ycalendar.py +++ b/plotly/validators/scatter/_ycalendar.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/scatter/_yhoverformat.py b/plotly/validators/scatter/_yhoverformat.py index 4edd1f1c9d..cb6f2a41bf 100644 --- a/plotly/validators/scatter/_yhoverformat.py +++ b/plotly/validators/scatter/_yhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/_yperiod.py b/plotly/validators/scatter/_yperiod.py index c4657b1df7..dfcfd44c40 100644 --- a/plotly/validators/scatter/_yperiod.py +++ b/plotly/validators/scatter/_yperiod.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YperiodValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter/_yperiod0.py b/plotly/validators/scatter/_yperiod0.py index b4fb0416a2..0b432a8e60 100644 --- a/plotly/validators/scatter/_yperiod0.py +++ b/plotly/validators/scatter/_yperiod0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Yperiod0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter/_yperiodalignment.py b/plotly/validators/scatter/_yperiodalignment.py index 3ea1c231f0..c9e80c7f23 100644 --- a/plotly/validators/scatter/_yperiodalignment.py +++ b/plotly/validators/scatter/_yperiodalignment.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["start", "middle", "end"]), **kwargs, diff --git a/plotly/validators/scatter/_ysrc.py b/plotly/validators/scatter/_ysrc.py index cc2de3a27f..72b6355c47 100644 --- a/plotly/validators/scatter/_ysrc.py +++ b/plotly/validators/scatter/_ysrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/_zorder.py b/plotly/validators/scatter/_zorder.py index 5bb39056b5..45201b6be6 100644 --- a/plotly/validators/scatter/_zorder.py +++ b/plotly/validators/scatter/_zorder.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZorderValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/scatter/error_x/__init__.py b/plotly/validators/scatter/error_x/__init__.py index 2e3ce59d75..62838bdb73 100644 --- a/plotly/validators/scatter/error_x/__init__.py +++ b/plotly/validators/scatter/error_x/__init__.py @@ -1,43 +1,24 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._width import WidthValidator - from ._visible import VisibleValidator - from ._valueminus import ValueminusValidator - from ._value import ValueValidator - from ._type import TypeValidator - from ._tracerefminus import TracerefminusValidator - from ._traceref import TracerefValidator - from ._thickness import ThicknessValidator - from ._symmetric import SymmetricValidator - from ._copy_ystyle import Copy_YstyleValidator - from ._color import ColorValidator - from ._arraysrc import ArraysrcValidator - from ._arrayminussrc import ArrayminussrcValidator - from ._arrayminus import ArrayminusValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatter/error_x/_array.py b/plotly/validators/scatter/error_x/_array.py index 222cd9d2a3..cbc66fc9af 100644 --- a/plotly/validators/scatter/error_x/_array.py +++ b/plotly/validators/scatter/error_x/_array.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrayValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter/error_x/_arrayminus.py b/plotly/validators/scatter/error_x/_arrayminus.py index 1fc78a4f5e..72632e3e9f 100644 --- a/plotly/validators/scatter/error_x/_arrayminus.py +++ b/plotly/validators/scatter/error_x/_arrayminus.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrayminusValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter/error_x/_arrayminussrc.py b/plotly/validators/scatter/error_x/_arrayminussrc.py index 91529e2573..0508f836cf 100644 --- a/plotly/validators/scatter/error_x/_arrayminussrc.py +++ b/plotly/validators/scatter/error_x/_arrayminussrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrayminussrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/error_x/_arraysrc.py b/plotly/validators/scatter/error_x/_arraysrc.py index 5c18154586..b5578f759b 100644 --- a/plotly/validators/scatter/error_x/_arraysrc.py +++ b/plotly/validators/scatter/error_x/_arraysrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArraysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/error_x/_color.py b/plotly/validators/scatter/error_x/_color.py index 6b3fe1a13d..6ce9e42bd8 100644 --- a/plotly/validators/scatter/error_x/_color.py +++ b/plotly/validators/scatter/error_x/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatter/error_x/_copy_ystyle.py b/plotly/validators/scatter/error_x/_copy_ystyle.py index bd5f336939..44ceefeba6 100644 --- a/plotly/validators/scatter/error_x/_copy_ystyle.py +++ b/plotly/validators/scatter/error_x/_copy_ystyle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Copy_YstyleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/scatter/error_x/_symmetric.py b/plotly/validators/scatter/error_x/_symmetric.py index df1d35d6a2..ec70ee8cd8 100644 --- a/plotly/validators/scatter/error_x/_symmetric.py +++ b/plotly/validators/scatter/error_x/_symmetric.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymmetricValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter/error_x/_thickness.py b/plotly/validators/scatter/error_x/_thickness.py index 9bc697502f..d40f057e95 100644 --- a/plotly/validators/scatter/error_x/_thickness.py +++ b/plotly/validators/scatter/error_x/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter/error_x/_traceref.py b/plotly/validators/scatter/error_x/_traceref.py index 82f4ee39a4..e88c91d6bf 100644 --- a/plotly/validators/scatter/error_x/_traceref.py +++ b/plotly/validators/scatter/error_x/_traceref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TracerefValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter/error_x/_tracerefminus.py b/plotly/validators/scatter/error_x/_tracerefminus.py index 08827e0e6e..80b8e552eb 100644 --- a/plotly/validators/scatter/error_x/_tracerefminus.py +++ b/plotly/validators/scatter/error_x/_tracerefminus.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TracerefminusValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter/error_x/_type.py b/plotly/validators/scatter/error_x/_type.py index 2c43ca4fda..6c6925feae 100644 --- a/plotly/validators/scatter/error_x/_type.py +++ b/plotly/validators/scatter/error_x/_type.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["percent", "constant", "sqrt", "data"]), **kwargs, diff --git a/plotly/validators/scatter/error_x/_value.py b/plotly/validators/scatter/error_x/_value.py index f4169d7342..b0dd1b45d4 100644 --- a/plotly/validators/scatter/error_x/_value.py +++ b/plotly/validators/scatter/error_x/_value.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter/error_x/_valueminus.py b/plotly/validators/scatter/error_x/_valueminus.py index 0077160bb2..0412c22786 100644 --- a/plotly/validators/scatter/error_x/_valueminus.py +++ b/plotly/validators/scatter/error_x/_valueminus.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueminusValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter/error_x/_visible.py b/plotly/validators/scatter/error_x/_visible.py index 521cc72b4c..e93873c419 100644 --- a/plotly/validators/scatter/error_x/_visible.py +++ b/plotly/validators/scatter/error_x/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter/error_x/_width.py b/plotly/validators/scatter/error_x/_width.py index 60a0920a86..9ab4b89f4f 100644 --- a/plotly/validators/scatter/error_x/_width.py +++ b/plotly/validators/scatter/error_x/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter/error_y/__init__.py b/plotly/validators/scatter/error_y/__init__.py index eff09cd6a0..ea49850d5f 100644 --- a/plotly/validators/scatter/error_y/__init__.py +++ b/plotly/validators/scatter/error_y/__init__.py @@ -1,41 +1,23 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._width import WidthValidator - from ._visible import VisibleValidator - from ._valueminus import ValueminusValidator - from ._value import ValueValidator - from ._type import TypeValidator - from ._tracerefminus import TracerefminusValidator - from ._traceref import TracerefValidator - from ._thickness import ThicknessValidator - from ._symmetric import SymmetricValidator - from ._color import ColorValidator - from ._arraysrc import ArraysrcValidator - from ._arrayminussrc import ArrayminussrcValidator - from ._arrayminus import ArrayminusValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatter/error_y/_array.py b/plotly/validators/scatter/error_y/_array.py index d8e7e3024b..c78760980a 100644 --- a/plotly/validators/scatter/error_y/_array.py +++ b/plotly/validators/scatter/error_y/_array.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrayValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter/error_y/_arrayminus.py b/plotly/validators/scatter/error_y/_arrayminus.py index 1f991a14b7..b0bb4c7112 100644 --- a/plotly/validators/scatter/error_y/_arrayminus.py +++ b/plotly/validators/scatter/error_y/_arrayminus.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrayminusValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter/error_y/_arrayminussrc.py b/plotly/validators/scatter/error_y/_arrayminussrc.py index 35b50b1995..86851425aa 100644 --- a/plotly/validators/scatter/error_y/_arrayminussrc.py +++ b/plotly/validators/scatter/error_y/_arrayminussrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrayminussrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/error_y/_arraysrc.py b/plotly/validators/scatter/error_y/_arraysrc.py index 144f5a1c97..dc6f98c8aa 100644 --- a/plotly/validators/scatter/error_y/_arraysrc.py +++ b/plotly/validators/scatter/error_y/_arraysrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArraysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/error_y/_color.py b/plotly/validators/scatter/error_y/_color.py index bcae05a8c2..618ba97b3a 100644 --- a/plotly/validators/scatter/error_y/_color.py +++ b/plotly/validators/scatter/error_y/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatter/error_y/_symmetric.py b/plotly/validators/scatter/error_y/_symmetric.py index 19e54a4589..4faadeba59 100644 --- a/plotly/validators/scatter/error_y/_symmetric.py +++ b/plotly/validators/scatter/error_y/_symmetric.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymmetricValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter/error_y/_thickness.py b/plotly/validators/scatter/error_y/_thickness.py index d063d2dc85..ec0369d701 100644 --- a/plotly/validators/scatter/error_y/_thickness.py +++ b/plotly/validators/scatter/error_y/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter/error_y/_traceref.py b/plotly/validators/scatter/error_y/_traceref.py index 8437b20f7d..964be70b0c 100644 --- a/plotly/validators/scatter/error_y/_traceref.py +++ b/plotly/validators/scatter/error_y/_traceref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TracerefValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter/error_y/_tracerefminus.py b/plotly/validators/scatter/error_y/_tracerefminus.py index d192f3ad44..2de2238e96 100644 --- a/plotly/validators/scatter/error_y/_tracerefminus.py +++ b/plotly/validators/scatter/error_y/_tracerefminus.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TracerefminusValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter/error_y/_type.py b/plotly/validators/scatter/error_y/_type.py index 88cbd1d9a3..695521253f 100644 --- a/plotly/validators/scatter/error_y/_type.py +++ b/plotly/validators/scatter/error_y/_type.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["percent", "constant", "sqrt", "data"]), **kwargs, diff --git a/plotly/validators/scatter/error_y/_value.py b/plotly/validators/scatter/error_y/_value.py index 62e538325d..8b2747a197 100644 --- a/plotly/validators/scatter/error_y/_value.py +++ b/plotly/validators/scatter/error_y/_value.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter/error_y/_valueminus.py b/plotly/validators/scatter/error_y/_valueminus.py index 64d8c502bd..7345a40604 100644 --- a/plotly/validators/scatter/error_y/_valueminus.py +++ b/plotly/validators/scatter/error_y/_valueminus.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueminusValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter/error_y/_visible.py b/plotly/validators/scatter/error_y/_visible.py index a6210764ea..716b6b68c5 100644 --- a/plotly/validators/scatter/error_y/_visible.py +++ b/plotly/validators/scatter/error_y/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter/error_y/_width.py b/plotly/validators/scatter/error_y/_width.py index 0bba545099..900bde99f1 100644 --- a/plotly/validators/scatter/error_y/_width.py +++ b/plotly/validators/scatter/error_y/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter/fillgradient/__init__.py b/plotly/validators/scatter/fillgradient/__init__.py index 27798f1e38..a286cf0919 100644 --- a/plotly/validators/scatter/fillgradient/__init__.py +++ b/plotly/validators/scatter/fillgradient/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._type import TypeValidator - from ._stop import StopValidator - from ._start import StartValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._type.TypeValidator", + "._stop.StopValidator", + "._start.StartValidator", + "._colorscale.ColorscaleValidator", + ], +) diff --git a/plotly/validators/scatter/fillgradient/_colorscale.py b/plotly/validators/scatter/fillgradient/_colorscale.py index 558b59c454..4b38af9cd4 100644 --- a/plotly/validators/scatter/fillgradient/_colorscale.py +++ b/plotly/validators/scatter/fillgradient/_colorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatter/fillgradient/_start.py b/plotly/validators/scatter/fillgradient/_start.py index 1b7209f2a0..c8fea05ca7 100644 --- a/plotly/validators/scatter/fillgradient/_start.py +++ b/plotly/validators/scatter/fillgradient/_start.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StartValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter/fillgradient/_stop.py b/plotly/validators/scatter/fillgradient/_stop.py index 7ec359aaef..c0675392de 100644 --- a/plotly/validators/scatter/fillgradient/_stop.py +++ b/plotly/validators/scatter/fillgradient/_stop.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StopValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter/fillgradient/_type.py b/plotly/validators/scatter/fillgradient/_type.py index 1d3d80a00b..0f21440e86 100644 --- a/plotly/validators/scatter/fillgradient/_type.py +++ b/plotly/validators/scatter/fillgradient/_type.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["radial", "horizontal", "vertical", "none"]), **kwargs, diff --git a/plotly/validators/scatter/fillpattern/__init__.py b/plotly/validators/scatter/fillpattern/__init__.py index e190f962c4..e42ccc4d0f 100644 --- a/plotly/validators/scatter/fillpattern/__init__.py +++ b/plotly/validators/scatter/fillpattern/__init__.py @@ -1,37 +1,21 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._soliditysrc import SoliditysrcValidator - from ._solidity import SolidityValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shapesrc import ShapesrcValidator - from ._shape import ShapeValidator - from ._fillmode import FillmodeValidator - from ._fgopacity import FgopacityValidator - from ._fgcolorsrc import FgcolorsrcValidator - from ._fgcolor import FgcolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatter/fillpattern/_bgcolor.py b/plotly/validators/scatter/fillpattern/_bgcolor.py index 6ff0c13525..de83ee3ed4 100644 --- a/plotly/validators/scatter/fillpattern/_bgcolor.py +++ b/plotly/validators/scatter/fillpattern/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/scatter/fillpattern/_bgcolorsrc.py b/plotly/validators/scatter/fillpattern/_bgcolorsrc.py index 584639630b..848062aaa6 100644 --- a/plotly/validators/scatter/fillpattern/_bgcolorsrc.py +++ b/plotly/validators/scatter/fillpattern/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/fillpattern/_fgcolor.py b/plotly/validators/scatter/fillpattern/_fgcolor.py index 14d1c20917..afaaa18d89 100644 --- a/plotly/validators/scatter/fillpattern/_fgcolor.py +++ b/plotly/validators/scatter/fillpattern/_fgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/scatter/fillpattern/_fgcolorsrc.py b/plotly/validators/scatter/fillpattern/_fgcolorsrc.py index efa81555fd..e626eac05a 100644 --- a/plotly/validators/scatter/fillpattern/_fgcolorsrc.py +++ b/plotly/validators/scatter/fillpattern/_fgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/fillpattern/_fgopacity.py b/plotly/validators/scatter/fillpattern/_fgopacity.py index 4b6c2237a1..2c465ab4d8 100644 --- a/plotly/validators/scatter/fillpattern/_fgopacity.py +++ b/plotly/validators/scatter/fillpattern/_fgopacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FgopacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatter/fillpattern/_fillmode.py b/plotly/validators/scatter/fillpattern/_fillmode.py index bb46ec29df..8f569fd417 100644 --- a/plotly/validators/scatter/fillpattern/_fillmode.py +++ b/plotly/validators/scatter/fillpattern/_fillmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["replace", "overlay"]), **kwargs, diff --git a/plotly/validators/scatter/fillpattern/_shape.py b/plotly/validators/scatter/fillpattern/_shape.py index 610cbf7aa6..7bc05dc9f8 100644 --- a/plotly/validators/scatter/fillpattern/_shape.py +++ b/plotly/validators/scatter/fillpattern/_shape.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["", "/", "\\", "x", "-", "|", "+", "."]), diff --git a/plotly/validators/scatter/fillpattern/_shapesrc.py b/plotly/validators/scatter/fillpattern/_shapesrc.py index a31925a4df..a7535632a5 100644 --- a/plotly/validators/scatter/fillpattern/_shapesrc.py +++ b/plotly/validators/scatter/fillpattern/_shapesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShapesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/fillpattern/_size.py b/plotly/validators/scatter/fillpattern/_size.py index 3275e1633e..7de4db3af2 100644 --- a/plotly/validators/scatter/fillpattern/_size.py +++ b/plotly/validators/scatter/fillpattern/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatter/fillpattern/_sizesrc.py b/plotly/validators/scatter/fillpattern/_sizesrc.py index 9927fe6e54..d8890d7589 100644 --- a/plotly/validators/scatter/fillpattern/_sizesrc.py +++ b/plotly/validators/scatter/fillpattern/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/fillpattern/_solidity.py b/plotly/validators/scatter/fillpattern/_solidity.py index 51b03b2efb..f8b65a8c09 100644 --- a/plotly/validators/scatter/fillpattern/_solidity.py +++ b/plotly/validators/scatter/fillpattern/_solidity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SolidityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), diff --git a/plotly/validators/scatter/fillpattern/_soliditysrc.py b/plotly/validators/scatter/fillpattern/_soliditysrc.py index 021727fed5..f066d93107 100644 --- a/plotly/validators/scatter/fillpattern/_soliditysrc.py +++ b/plotly/validators/scatter/fillpattern/_soliditysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SoliditysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/hoverlabel/__init__.py b/plotly/validators/scatter/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/scatter/hoverlabel/__init__.py +++ b/plotly/validators/scatter/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/scatter/hoverlabel/_align.py b/plotly/validators/scatter/hoverlabel/_align.py index 77322a3818..7bcbbc4819 100644 --- a/plotly/validators/scatter/hoverlabel/_align.py +++ b/plotly/validators/scatter/hoverlabel/_align.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/scatter/hoverlabel/_alignsrc.py b/plotly/validators/scatter/hoverlabel/_alignsrc.py index b93ed10f3e..df315225ce 100644 --- a/plotly/validators/scatter/hoverlabel/_alignsrc.py +++ b/plotly/validators/scatter/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/hoverlabel/_bgcolor.py b/plotly/validators/scatter/hoverlabel/_bgcolor.py index d1c3b31d94..1760f6674d 100644 --- a/plotly/validators/scatter/hoverlabel/_bgcolor.py +++ b/plotly/validators/scatter/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scatter/hoverlabel/_bgcolorsrc.py b/plotly/validators/scatter/hoverlabel/_bgcolorsrc.py index 6df63e17a0..23c7f8eab6 100644 --- a/plotly/validators/scatter/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/scatter/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/hoverlabel/_bordercolor.py b/plotly/validators/scatter/hoverlabel/_bordercolor.py index 479a9ea9ed..08095f402e 100644 --- a/plotly/validators/scatter/hoverlabel/_bordercolor.py +++ b/plotly/validators/scatter/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scatter/hoverlabel/_bordercolorsrc.py b/plotly/validators/scatter/hoverlabel/_bordercolorsrc.py index 82d84690ba..4b58d215c1 100644 --- a/plotly/validators/scatter/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/scatter/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/hoverlabel/_font.py b/plotly/validators/scatter/hoverlabel/_font.py index 14da90933c..549abc37e3 100644 --- a/plotly/validators/scatter/hoverlabel/_font.py +++ b/plotly/validators/scatter/hoverlabel/_font.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/scatter/hoverlabel/_namelength.py b/plotly/validators/scatter/hoverlabel/_namelength.py index b6833359f9..1baa014969 100644 --- a/plotly/validators/scatter/hoverlabel/_namelength.py +++ b/plotly/validators/scatter/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/scatter/hoverlabel/_namelengthsrc.py b/plotly/validators/scatter/hoverlabel/_namelengthsrc.py index aea5b68f3f..33c225be3d 100644 --- a/plotly/validators/scatter/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/scatter/hoverlabel/_namelengthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/hoverlabel/font/__init__.py b/plotly/validators/scatter/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/scatter/hoverlabel/font/__init__.py +++ b/plotly/validators/scatter/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatter/hoverlabel/font/_color.py b/plotly/validators/scatter/hoverlabel/font/_color.py index 7125d00bde..e10788b316 100644 --- a/plotly/validators/scatter/hoverlabel/font/_color.py +++ b/plotly/validators/scatter/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scatter/hoverlabel/font/_colorsrc.py b/plotly/validators/scatter/hoverlabel/font/_colorsrc.py index 8cda62bd6a..a13b38c11e 100644 --- a/plotly/validators/scatter/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/scatter/hoverlabel/font/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/hoverlabel/font/_family.py b/plotly/validators/scatter/hoverlabel/font/_family.py index 784ac54faf..7ebdff13a8 100644 --- a/plotly/validators/scatter/hoverlabel/font/_family.py +++ b/plotly/validators/scatter/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/scatter/hoverlabel/font/_familysrc.py b/plotly/validators/scatter/hoverlabel/font/_familysrc.py index 0913ae6199..d115a6e839 100644 --- a/plotly/validators/scatter/hoverlabel/font/_familysrc.py +++ b/plotly/validators/scatter/hoverlabel/font/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/hoverlabel/font/_lineposition.py b/plotly/validators/scatter/hoverlabel/font/_lineposition.py index e1b7289c88..cad4c29dc0 100644 --- a/plotly/validators/scatter/hoverlabel/font/_lineposition.py +++ b/plotly/validators/scatter/hoverlabel/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/scatter/hoverlabel/font/_linepositionsrc.py b/plotly/validators/scatter/hoverlabel/font/_linepositionsrc.py index 353399cf80..693042eaa5 100644 --- a/plotly/validators/scatter/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/scatter/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/hoverlabel/font/_shadow.py b/plotly/validators/scatter/hoverlabel/font/_shadow.py index 583920befe..39e3726e71 100644 --- a/plotly/validators/scatter/hoverlabel/font/_shadow.py +++ b/plotly/validators/scatter/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scatter/hoverlabel/font/_shadowsrc.py b/plotly/validators/scatter/hoverlabel/font/_shadowsrc.py index 244d554f1d..7a10ecae4b 100644 --- a/plotly/validators/scatter/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/scatter/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/hoverlabel/font/_size.py b/plotly/validators/scatter/hoverlabel/font/_size.py index 7f8af7de0f..a7e4306350 100644 --- a/plotly/validators/scatter/hoverlabel/font/_size.py +++ b/plotly/validators/scatter/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/scatter/hoverlabel/font/_sizesrc.py b/plotly/validators/scatter/hoverlabel/font/_sizesrc.py index 3f415ba684..16597aa02a 100644 --- a/plotly/validators/scatter/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/scatter/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/hoverlabel/font/_style.py b/plotly/validators/scatter/hoverlabel/font/_style.py index 1b83932149..3f850416a7 100644 --- a/plotly/validators/scatter/hoverlabel/font/_style.py +++ b/plotly/validators/scatter/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/scatter/hoverlabel/font/_stylesrc.py b/plotly/validators/scatter/hoverlabel/font/_stylesrc.py index f0c06fd8a3..7627a834a6 100644 --- a/plotly/validators/scatter/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/scatter/hoverlabel/font/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/hoverlabel/font/_textcase.py b/plotly/validators/scatter/hoverlabel/font/_textcase.py index 258d009c54..b80a3c9e69 100644 --- a/plotly/validators/scatter/hoverlabel/font/_textcase.py +++ b/plotly/validators/scatter/hoverlabel/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/scatter/hoverlabel/font/_textcasesrc.py b/plotly/validators/scatter/hoverlabel/font/_textcasesrc.py index c30fc3aad6..9c02828866 100644 --- a/plotly/validators/scatter/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/scatter/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/hoverlabel/font/_variant.py b/plotly/validators/scatter/hoverlabel/font/_variant.py index 07dab09b74..4477934b47 100644 --- a/plotly/validators/scatter/hoverlabel/font/_variant.py +++ b/plotly/validators/scatter/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/scatter/hoverlabel/font/_variantsrc.py b/plotly/validators/scatter/hoverlabel/font/_variantsrc.py index dc601ac91c..40d1ab87ef 100644 --- a/plotly/validators/scatter/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/scatter/hoverlabel/font/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/hoverlabel/font/_weight.py b/plotly/validators/scatter/hoverlabel/font/_weight.py index eefe12fa98..e08850dc09 100644 --- a/plotly/validators/scatter/hoverlabel/font/_weight.py +++ b/plotly/validators/scatter/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/scatter/hoverlabel/font/_weightsrc.py b/plotly/validators/scatter/hoverlabel/font/_weightsrc.py index 503445f8bc..e28a6ee23d 100644 --- a/plotly/validators/scatter/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/scatter/hoverlabel/font/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/legendgrouptitle/__init__.py b/plotly/validators/scatter/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/scatter/legendgrouptitle/__init__.py +++ b/plotly/validators/scatter/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/scatter/legendgrouptitle/_font.py b/plotly/validators/scatter/legendgrouptitle/_font.py index c630f5b067..0da5dab048 100644 --- a/plotly/validators/scatter/legendgrouptitle/_font.py +++ b/plotly/validators/scatter/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/scatter/legendgrouptitle/_text.py b/plotly/validators/scatter/legendgrouptitle/_text.py index 2f96abde4e..3a645e03ca 100644 --- a/plotly/validators/scatter/legendgrouptitle/_text.py +++ b/plotly/validators/scatter/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatter/legendgrouptitle/font/__init__.py b/plotly/validators/scatter/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/scatter/legendgrouptitle/font/__init__.py +++ b/plotly/validators/scatter/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scatter/legendgrouptitle/font/_color.py b/plotly/validators/scatter/legendgrouptitle/font/_color.py index 3e2d6a41cf..494a045be7 100644 --- a/plotly/validators/scatter/legendgrouptitle/font/_color.py +++ b/plotly/validators/scatter/legendgrouptitle/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatter/legendgrouptitle/font/_family.py b/plotly/validators/scatter/legendgrouptitle/font/_family.py index 630d096579..6a7a7591ab 100644 --- a/plotly/validators/scatter/legendgrouptitle/font/_family.py +++ b/plotly/validators/scatter/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scatter/legendgrouptitle/font/_lineposition.py b/plotly/validators/scatter/legendgrouptitle/font/_lineposition.py index 0c761ffdfa..e699ffb4b5 100644 --- a/plotly/validators/scatter/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/scatter/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/scatter/legendgrouptitle/font/_shadow.py b/plotly/validators/scatter/legendgrouptitle/font/_shadow.py index eaa79c5221..5b8f892312 100644 --- a/plotly/validators/scatter/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/scatter/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatter/legendgrouptitle/font/_size.py b/plotly/validators/scatter/legendgrouptitle/font/_size.py index 131a6edd36..6491e6e745 100644 --- a/plotly/validators/scatter/legendgrouptitle/font/_size.py +++ b/plotly/validators/scatter/legendgrouptitle/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scatter/legendgrouptitle/font/_style.py b/plotly/validators/scatter/legendgrouptitle/font/_style.py index bb55cf3786..b3e51498da 100644 --- a/plotly/validators/scatter/legendgrouptitle/font/_style.py +++ b/plotly/validators/scatter/legendgrouptitle/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scatter/legendgrouptitle/font/_textcase.py b/plotly/validators/scatter/legendgrouptitle/font/_textcase.py index 9cbda07f02..90df45c5bd 100644 --- a/plotly/validators/scatter/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/scatter/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/scatter/legendgrouptitle/font/_variant.py b/plotly/validators/scatter/legendgrouptitle/font/_variant.py index 5e1f0ea60b..f3357db37a 100644 --- a/plotly/validators/scatter/legendgrouptitle/font/_variant.py +++ b/plotly/validators/scatter/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/scatter/legendgrouptitle/font/_weight.py b/plotly/validators/scatter/legendgrouptitle/font/_weight.py index caca940630..0274be31b9 100644 --- a/plotly/validators/scatter/legendgrouptitle/font/_weight.py +++ b/plotly/validators/scatter/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scatter/line/__init__.py b/plotly/validators/scatter/line/__init__.py index ddf365c6a4..95279b84d5 100644 --- a/plotly/validators/scatter/line/__init__.py +++ b/plotly/validators/scatter/line/__init__.py @@ -1,29 +1,17 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._width import WidthValidator - from ._smoothing import SmoothingValidator - from ._simplify import SimplifyValidator - from ._shape import ShapeValidator - from ._dash import DashValidator - from ._color import ColorValidator - from ._backoffsrc import BackoffsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._width.WidthValidator", + "._smoothing.SmoothingValidator", + "._simplify.SimplifyValidator", + "._shape.ShapeValidator", + "._dash.DashValidator", + "._color.ColorValidator", + "._backoffsrc.BackoffsrcValidator", + "._backoff.BackoffValidator", + ], +) diff --git a/plotly/validators/scatter/line/_backoff.py b/plotly/validators/scatter/line/_backoff.py index 35a35ceea4..9a845e479c 100644 --- a/plotly/validators/scatter/line/_backoff.py +++ b/plotly/validators/scatter/line/_backoff.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BackoffValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatter/line/_backoffsrc.py b/plotly/validators/scatter/line/_backoffsrc.py index ff71261707..52f20a3979 100644 --- a/plotly/validators/scatter/line/_backoffsrc.py +++ b/plotly/validators/scatter/line/_backoffsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BackoffsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/line/_color.py b/plotly/validators/scatter/line/_color.py index 80cb638daa..faa06535dc 100644 --- a/plotly/validators/scatter/line/_color.py +++ b/plotly/validators/scatter/line/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/scatter/line/_dash.py b/plotly/validators/scatter/line/_dash.py index fb7fb9eaa9..08dc566691 100644 --- a/plotly/validators/scatter/line/_dash.py +++ b/plotly/validators/scatter/line/_dash.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/scatter/line/_shape.py b/plotly/validators/scatter/line/_shape.py index 4b0f922990..790e748aba 100644 --- a/plotly/validators/scatter/line/_shape.py +++ b/plotly/validators/scatter/line/_shape.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["linear", "spline", "hv", "vh", "hvh", "vhv"]), **kwargs, diff --git a/plotly/validators/scatter/line/_simplify.py b/plotly/validators/scatter/line/_simplify.py index 5a2b92838b..4f2198e797 100644 --- a/plotly/validators/scatter/line/_simplify.py +++ b/plotly/validators/scatter/line/_simplify.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SimplifyValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/scatter/line/_smoothing.py b/plotly/validators/scatter/line/_smoothing.py index 8bb515da45..2322a09b29 100644 --- a/plotly/validators/scatter/line/_smoothing.py +++ b/plotly/validators/scatter/line/_smoothing.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SmoothingValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), max=kwargs.pop("max", 1.3), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatter/line/_width.py b/plotly/validators/scatter/line/_width.py index d85f619276..f24b0cdfca 100644 --- a/plotly/validators/scatter/line/_width.py +++ b/plotly/validators/scatter/line/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatter/marker/__init__.py b/plotly/validators/scatter/marker/__init__.py index 8434e73e3f..fea9868a7b 100644 --- a/plotly/validators/scatter/marker/__init__.py +++ b/plotly/validators/scatter/marker/__init__.py @@ -1,71 +1,38 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._symbolsrc import SymbolsrcValidator - from ._symbol import SymbolValidator - from ._standoffsrc import StandoffsrcValidator - from ._standoff import StandoffValidator - from ._sizesrc import SizesrcValidator - from ._sizeref import SizerefValidator - from ._sizemode import SizemodeValidator - from ._sizemin import SizeminValidator - from ._size import SizeValidator - from ._showscale import ShowscaleValidator - from ._reversescale import ReversescaleValidator - from ._opacitysrc import OpacitysrcValidator - from ._opacity import OpacityValidator - from ._maxdisplayed import MaxdisplayedValidator - from ._line import LineValidator - from ._gradient import GradientValidator - from ._colorsrc import ColorsrcValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._color import ColorValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - from ._autocolorscale import AutocolorscaleValidator - from ._anglesrc import AnglesrcValidator - from ._angleref import AnglerefValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatter/marker/_angle.py b/plotly/validators/scatter/marker/_angle.py index f2cdb6cba3..44a7178494 100644 --- a/plotly/validators/scatter/marker/_angle.py +++ b/plotly/validators/scatter/marker/_angle.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AngleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", False), array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), diff --git a/plotly/validators/scatter/marker/_angleref.py b/plotly/validators/scatter/marker/_angleref.py index 885a961f20..220352ff8d 100644 --- a/plotly/validators/scatter/marker/_angleref.py +++ b/plotly/validators/scatter/marker/_angleref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AnglerefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", False), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["previous", "up"]), diff --git a/plotly/validators/scatter/marker/_anglesrc.py b/plotly/validators/scatter/marker/_anglesrc.py index 232d4419b9..5fbe48238d 100644 --- a/plotly/validators/scatter/marker/_anglesrc.py +++ b/plotly/validators/scatter/marker/_anglesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AnglesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/_autocolorscale.py b/plotly/validators/scatter/marker/_autocolorscale.py index 025d3d340d..fc60417361 100644 --- a/plotly/validators/scatter/marker/_autocolorscale.py +++ b/plotly/validators/scatter/marker/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scatter/marker/_cauto.py b/plotly/validators/scatter/marker/_cauto.py index ad3a3e6c9b..19429fa62e 100644 --- a/plotly/validators/scatter/marker/_cauto.py +++ b/plotly/validators/scatter/marker/_cauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scatter/marker/_cmax.py b/plotly/validators/scatter/marker/_cmax.py index 213a3248c8..7d3d7c391e 100644 --- a/plotly/validators/scatter/marker/_cmax.py +++ b/plotly/validators/scatter/marker/_cmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scatter/marker/_cmid.py b/plotly/validators/scatter/marker/_cmid.py index bd71a27db7..ef68cab68a 100644 --- a/plotly/validators/scatter/marker/_cmid.py +++ b/plotly/validators/scatter/marker/_cmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scatter/marker/_cmin.py b/plotly/validators/scatter/marker/_cmin.py index df94a4727f..2cb5541a64 100644 --- a/plotly/validators/scatter/marker/_cmin.py +++ b/plotly/validators/scatter/marker/_cmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scatter/marker/_color.py b/plotly/validators/scatter/marker/_color.py index 0c5492a1dd..3005d790e7 100644 --- a/plotly/validators/scatter/marker/_color.py +++ b/plotly/validators/scatter/marker/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), diff --git a/plotly/validators/scatter/marker/_coloraxis.py b/plotly/validators/scatter/marker/_coloraxis.py index 74772c21c7..3b3070dd8d 100644 --- a/plotly/validators/scatter/marker/_coloraxis.py +++ b/plotly/validators/scatter/marker/_coloraxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/scatter/marker/_colorbar.py b/plotly/validators/scatter/marker/_colorbar.py index fdbcf0aac8..2a237efa71 100644 --- a/plotly/validators/scatter/marker/_colorbar.py +++ b/plotly/validators/scatter/marker/_colorbar.py @@ -1,279 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatter/marker/_colorscale.py b/plotly/validators/scatter/marker/_colorscale.py index 1967b9999f..3cf9de53b2 100644 --- a/plotly/validators/scatter/marker/_colorscale.py +++ b/plotly/validators/scatter/marker/_colorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/scatter/marker/_colorsrc.py b/plotly/validators/scatter/marker/_colorsrc.py index 9ac999f477..80c4ff1e0a 100644 --- a/plotly/validators/scatter/marker/_colorsrc.py +++ b/plotly/validators/scatter/marker/_colorsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/_gradient.py b/plotly/validators/scatter/marker/_gradient.py index a16c95a666..2ca2703719 100644 --- a/plotly/validators/scatter/marker/_gradient.py +++ b/plotly/validators/scatter/marker/_gradient.py @@ -1,28 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GradientValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatter/marker/_line.py b/plotly/validators/scatter/marker/_line.py index 3702b2d832..0d0d6f23fc 100644 --- a/plotly/validators/scatter/marker/_line.py +++ b/plotly/validators/scatter/marker/_line.py @@ -1,104 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatter/marker/_maxdisplayed.py b/plotly/validators/scatter/marker/_maxdisplayed.py index 7819f8f40a..066cd2e3c7 100644 --- a/plotly/validators/scatter/marker/_maxdisplayed.py +++ b/plotly/validators/scatter/marker/_maxdisplayed.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxdisplayedValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter/marker/_opacity.py b/plotly/validators/scatter/marker/_opacity.py index 7f10af8c31..491e7ff05c 100644 --- a/plotly/validators/scatter/marker/_opacity.py +++ b/plotly/validators/scatter/marker/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), diff --git a/plotly/validators/scatter/marker/_opacitysrc.py b/plotly/validators/scatter/marker/_opacitysrc.py index 8e44976291..34b3ab4b75 100644 --- a/plotly/validators/scatter/marker/_opacitysrc.py +++ b/plotly/validators/scatter/marker/_opacitysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/_reversescale.py b/plotly/validators/scatter/marker/_reversescale.py index afd3f1be25..0233782368 100644 --- a/plotly/validators/scatter/marker/_reversescale.py +++ b/plotly/validators/scatter/marker/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/_showscale.py b/plotly/validators/scatter/marker/_showscale.py index b1f1b7197c..1128f03696 100644 --- a/plotly/validators/scatter/marker/_showscale.py +++ b/plotly/validators/scatter/marker/_showscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/_size.py b/plotly/validators/scatter/marker/_size.py index c9bf9eb27f..59dd148456 100644 --- a/plotly/validators/scatter/marker/_size.py +++ b/plotly/validators/scatter/marker/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), diff --git a/plotly/validators/scatter/marker/_sizemin.py b/plotly/validators/scatter/marker/_sizemin.py index a03781f33a..0767c58441 100644 --- a/plotly/validators/scatter/marker/_sizemin.py +++ b/plotly/validators/scatter/marker/_sizemin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter/marker/_sizemode.py b/plotly/validators/scatter/marker/_sizemode.py index f2fd3887f3..a52c16d6ab 100644 --- a/plotly/validators/scatter/marker/_sizemode.py +++ b/plotly/validators/scatter/marker/_sizemode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["diameter", "area"]), **kwargs, diff --git a/plotly/validators/scatter/marker/_sizeref.py b/plotly/validators/scatter/marker/_sizeref.py index 6741790a14..8e23872e38 100644 --- a/plotly/validators/scatter/marker/_sizeref.py +++ b/plotly/validators/scatter/marker/_sizeref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/_sizesrc.py b/plotly/validators/scatter/marker/_sizesrc.py index be0d9f2002..f3b95b19ea 100644 --- a/plotly/validators/scatter/marker/_sizesrc.py +++ b/plotly/validators/scatter/marker/_sizesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/_standoff.py b/plotly/validators/scatter/marker/_standoff.py index 65b594e7a8..f142cb3c36 100644 --- a/plotly/validators/scatter/marker/_standoff.py +++ b/plotly/validators/scatter/marker/_standoff.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StandoffValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), diff --git a/plotly/validators/scatter/marker/_standoffsrc.py b/plotly/validators/scatter/marker/_standoffsrc.py index 5997eae1ad..93d6927d6e 100644 --- a/plotly/validators/scatter/marker/_standoffsrc.py +++ b/plotly/validators/scatter/marker/_standoffsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StandoffsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/_symbol.py b/plotly/validators/scatter/marker/_symbol.py index 3a364f7f52..5a0c1a5721 100644 --- a/plotly/validators/scatter/marker/_symbol.py +++ b/plotly/validators/scatter/marker/_symbol.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( diff --git a/plotly/validators/scatter/marker/_symbolsrc.py b/plotly/validators/scatter/marker/_symbolsrc.py index 13719d4570..4079660e5c 100644 --- a/plotly/validators/scatter/marker/_symbolsrc.py +++ b/plotly/validators/scatter/marker/_symbolsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/colorbar/__init__.py b/plotly/validators/scatter/marker/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/scatter/marker/colorbar/__init__.py +++ b/plotly/validators/scatter/marker/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatter/marker/colorbar/_bgcolor.py b/plotly/validators/scatter/marker/colorbar/_bgcolor.py index 8399887bb5..bf9a4ca2c9 100644 --- a/plotly/validators/scatter/marker/colorbar/_bgcolor.py +++ b/plotly/validators/scatter/marker/colorbar/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/colorbar/_bordercolor.py b/plotly/validators/scatter/marker/colorbar/_bordercolor.py index 03657f4800..c11fed40dd 100644 --- a/plotly/validators/scatter/marker/colorbar/_bordercolor.py +++ b/plotly/validators/scatter/marker/colorbar/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/colorbar/_borderwidth.py b/plotly/validators/scatter/marker/colorbar/_borderwidth.py index 38ee39414c..55aec79685 100644 --- a/plotly/validators/scatter/marker/colorbar/_borderwidth.py +++ b/plotly/validators/scatter/marker/colorbar/_borderwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter/marker/colorbar/_dtick.py b/plotly/validators/scatter/marker/colorbar/_dtick.py index cd0eef9765..d4d1d61cd1 100644 --- a/plotly/validators/scatter/marker/colorbar/_dtick.py +++ b/plotly/validators/scatter/marker/colorbar/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/scatter/marker/colorbar/_exponentformat.py b/plotly/validators/scatter/marker/colorbar/_exponentformat.py index d68dfcb484..a912120460 100644 --- a/plotly/validators/scatter/marker/colorbar/_exponentformat.py +++ b/plotly/validators/scatter/marker/colorbar/_exponentformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/scatter/marker/colorbar/_labelalias.py b/plotly/validators/scatter/marker/colorbar/_labelalias.py index ba654ed7a4..7b18ab86b0 100644 --- a/plotly/validators/scatter/marker/colorbar/_labelalias.py +++ b/plotly/validators/scatter/marker/colorbar/_labelalias.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/colorbar/_len.py b/plotly/validators/scatter/marker/colorbar/_len.py index 39628d302a..8824f0bde6 100644 --- a/plotly/validators/scatter/marker/colorbar/_len.py +++ b/plotly/validators/scatter/marker/colorbar/_len.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter/marker/colorbar/_lenmode.py b/plotly/validators/scatter/marker/colorbar/_lenmode.py index ceb8cc60c3..5bf50ba54e 100644 --- a/plotly/validators/scatter/marker/colorbar/_lenmode.py +++ b/plotly/validators/scatter/marker/colorbar/_lenmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/scatter/marker/colorbar/_minexponent.py b/plotly/validators/scatter/marker/colorbar/_minexponent.py index 5124bf48a2..3365459db0 100644 --- a/plotly/validators/scatter/marker/colorbar/_minexponent.py +++ b/plotly/validators/scatter/marker/colorbar/_minexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter/marker/colorbar/_nticks.py b/plotly/validators/scatter/marker/colorbar/_nticks.py index 542f13d926..bc550b217b 100644 --- a/plotly/validators/scatter/marker/colorbar/_nticks.py +++ b/plotly/validators/scatter/marker/colorbar/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter/marker/colorbar/_orientation.py b/plotly/validators/scatter/marker/colorbar/_orientation.py index cc15904ff2..b4d8de266f 100644 --- a/plotly/validators/scatter/marker/colorbar/_orientation.py +++ b/plotly/validators/scatter/marker/colorbar/_orientation.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/scatter/marker/colorbar/_outlinecolor.py b/plotly/validators/scatter/marker/colorbar/_outlinecolor.py index 5f22c33174..2e5159961e 100644 --- a/plotly/validators/scatter/marker/colorbar/_outlinecolor.py +++ b/plotly/validators/scatter/marker/colorbar/_outlinecolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/colorbar/_outlinewidth.py b/plotly/validators/scatter/marker/colorbar/_outlinewidth.py index 0b8a2ae217..39c9c49220 100644 --- a/plotly/validators/scatter/marker/colorbar/_outlinewidth.py +++ b/plotly/validators/scatter/marker/colorbar/_outlinewidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter/marker/colorbar/_separatethousands.py b/plotly/validators/scatter/marker/colorbar/_separatethousands.py index 0db06d828e..5dbdfa1aa8 100644 --- a/plotly/validators/scatter/marker/colorbar/_separatethousands.py +++ b/plotly/validators/scatter/marker/colorbar/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/colorbar/_showexponent.py b/plotly/validators/scatter/marker/colorbar/_showexponent.py index 6cbcb649e0..8b5b34fd94 100644 --- a/plotly/validators/scatter/marker/colorbar/_showexponent.py +++ b/plotly/validators/scatter/marker/colorbar/_showexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scatter/marker/colorbar/_showticklabels.py b/plotly/validators/scatter/marker/colorbar/_showticklabels.py index 8d0e06d5fe..97836cbb7d 100644 --- a/plotly/validators/scatter/marker/colorbar/_showticklabels.py +++ b/plotly/validators/scatter/marker/colorbar/_showticklabels.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/colorbar/_showtickprefix.py b/plotly/validators/scatter/marker/colorbar/_showtickprefix.py index 3633be1961..8193ede0f4 100644 --- a/plotly/validators/scatter/marker/colorbar/_showtickprefix.py +++ b/plotly/validators/scatter/marker/colorbar/_showtickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scatter/marker/colorbar/_showticksuffix.py b/plotly/validators/scatter/marker/colorbar/_showticksuffix.py index 8ed606588e..10f0a32af6 100644 --- a/plotly/validators/scatter/marker/colorbar/_showticksuffix.py +++ b/plotly/validators/scatter/marker/colorbar/_showticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scatter/marker/colorbar/_thickness.py b/plotly/validators/scatter/marker/colorbar/_thickness.py index cddf5855a5..937b74c4e5 100644 --- a/plotly/validators/scatter/marker/colorbar/_thickness.py +++ b/plotly/validators/scatter/marker/colorbar/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter/marker/colorbar/_thicknessmode.py b/plotly/validators/scatter/marker/colorbar/_thicknessmode.py index 5f57990374..06261f56bd 100644 --- a/plotly/validators/scatter/marker/colorbar/_thicknessmode.py +++ b/plotly/validators/scatter/marker/colorbar/_thicknessmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/scatter/marker/colorbar/_tick0.py b/plotly/validators/scatter/marker/colorbar/_tick0.py index 91825a2cbe..adea92c396 100644 --- a/plotly/validators/scatter/marker/colorbar/_tick0.py +++ b/plotly/validators/scatter/marker/colorbar/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/scatter/marker/colorbar/_tickangle.py b/plotly/validators/scatter/marker/colorbar/_tickangle.py index 36a38a2178..0e478b6320 100644 --- a/plotly/validators/scatter/marker/colorbar/_tickangle.py +++ b/plotly/validators/scatter/marker/colorbar/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/colorbar/_tickcolor.py b/plotly/validators/scatter/marker/colorbar/_tickcolor.py index 18455234c8..f3b2ae68fb 100644 --- a/plotly/validators/scatter/marker/colorbar/_tickcolor.py +++ b/plotly/validators/scatter/marker/colorbar/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/colorbar/_tickfont.py b/plotly/validators/scatter/marker/colorbar/_tickfont.py index dd40df2ece..5204653629 100644 --- a/plotly/validators/scatter/marker/colorbar/_tickfont.py +++ b/plotly/validators/scatter/marker/colorbar/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/scatter/marker/colorbar/_tickformat.py b/plotly/validators/scatter/marker/colorbar/_tickformat.py index a7ff49a95d..d95941ed36 100644 --- a/plotly/validators/scatter/marker/colorbar/_tickformat.py +++ b/plotly/validators/scatter/marker/colorbar/_tickformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/colorbar/_tickformatstopdefaults.py b/plotly/validators/scatter/marker/colorbar/_tickformatstopdefaults.py index 25b1abc181..6a6837585b 100644 --- a/plotly/validators/scatter/marker/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/scatter/marker/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/scatter/marker/colorbar/_tickformatstops.py b/plotly/validators/scatter/marker/colorbar/_tickformatstops.py index 8e9a4afcc7..0c7d122466 100644 --- a/plotly/validators/scatter/marker/colorbar/_tickformatstops.py +++ b/plotly/validators/scatter/marker/colorbar/_tickformatstops.py @@ -1,53 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatter/marker/colorbar/_ticklabeloverflow.py b/plotly/validators/scatter/marker/colorbar/_ticklabeloverflow.py index 70aa30b39b..a1493b5562 100644 --- a/plotly/validators/scatter/marker/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/scatter/marker/colorbar/_ticklabeloverflow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/scatter/marker/colorbar/_ticklabelposition.py b/plotly/validators/scatter/marker/colorbar/_ticklabelposition.py index 86f5740c32..a462922196 100644 --- a/plotly/validators/scatter/marker/colorbar/_ticklabelposition.py +++ b/plotly/validators/scatter/marker/colorbar/_ticklabelposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/scatter/marker/colorbar/_ticklabelstep.py b/plotly/validators/scatter/marker/colorbar/_ticklabelstep.py index 2d6694e778..9eab04d779 100644 --- a/plotly/validators/scatter/marker/colorbar/_ticklabelstep.py +++ b/plotly/validators/scatter/marker/colorbar/_ticklabelstep.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scatter/marker/colorbar/_ticklen.py b/plotly/validators/scatter/marker/colorbar/_ticklen.py index c8f1bd62cd..fc341e404c 100644 --- a/plotly/validators/scatter/marker/colorbar/_ticklen.py +++ b/plotly/validators/scatter/marker/colorbar/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter/marker/colorbar/_tickmode.py b/plotly/validators/scatter/marker/colorbar/_tickmode.py index b9f1b8d341..e8b78dc071 100644 --- a/plotly/validators/scatter/marker/colorbar/_tickmode.py +++ b/plotly/validators/scatter/marker/colorbar/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/scatter/marker/colorbar/_tickprefix.py b/plotly/validators/scatter/marker/colorbar/_tickprefix.py index 26b171a4c9..ab364bbb8f 100644 --- a/plotly/validators/scatter/marker/colorbar/_tickprefix.py +++ b/plotly/validators/scatter/marker/colorbar/_tickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/colorbar/_ticks.py b/plotly/validators/scatter/marker/colorbar/_ticks.py index 2635fdb156..0785203833 100644 --- a/plotly/validators/scatter/marker/colorbar/_ticks.py +++ b/plotly/validators/scatter/marker/colorbar/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/scatter/marker/colorbar/_ticksuffix.py b/plotly/validators/scatter/marker/colorbar/_ticksuffix.py index 06f0fca10f..952fb88402 100644 --- a/plotly/validators/scatter/marker/colorbar/_ticksuffix.py +++ b/plotly/validators/scatter/marker/colorbar/_ticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/colorbar/_ticktext.py b/plotly/validators/scatter/marker/colorbar/_ticktext.py index 98f03d13e2..a387b7e9fc 100644 --- a/plotly/validators/scatter/marker/colorbar/_ticktext.py +++ b/plotly/validators/scatter/marker/colorbar/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/colorbar/_ticktextsrc.py b/plotly/validators/scatter/marker/colorbar/_ticktextsrc.py index e5c860dfa6..f793048d3c 100644 --- a/plotly/validators/scatter/marker/colorbar/_ticktextsrc.py +++ b/plotly/validators/scatter/marker/colorbar/_ticktextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/colorbar/_tickvals.py b/plotly/validators/scatter/marker/colorbar/_tickvals.py index 67df929226..e0d7d5c595 100644 --- a/plotly/validators/scatter/marker/colorbar/_tickvals.py +++ b/plotly/validators/scatter/marker/colorbar/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/colorbar/_tickvalssrc.py b/plotly/validators/scatter/marker/colorbar/_tickvalssrc.py index da7f018792..90a669cdbd 100644 --- a/plotly/validators/scatter/marker/colorbar/_tickvalssrc.py +++ b/plotly/validators/scatter/marker/colorbar/_tickvalssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/colorbar/_tickwidth.py b/plotly/validators/scatter/marker/colorbar/_tickwidth.py index 604f512473..0f5ec49f1b 100644 --- a/plotly/validators/scatter/marker/colorbar/_tickwidth.py +++ b/plotly/validators/scatter/marker/colorbar/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter/marker/colorbar/_title.py b/plotly/validators/scatter/marker/colorbar/_title.py index 9b1439b3a9..511f41a2bb 100644 --- a/plotly/validators/scatter/marker/colorbar/_title.py +++ b/plotly/validators/scatter/marker/colorbar/_title.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatter/marker/colorbar/_x.py b/plotly/validators/scatter/marker/colorbar/_x.py index 374e27f0ef..29f8db4d75 100644 --- a/plotly/validators/scatter/marker/colorbar/_x.py +++ b/plotly/validators/scatter/marker/colorbar/_x.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/colorbar/_xanchor.py b/plotly/validators/scatter/marker/colorbar/_xanchor.py index 1573a09d65..5fc1376c12 100644 --- a/plotly/validators/scatter/marker/colorbar/_xanchor.py +++ b/plotly/validators/scatter/marker/colorbar/_xanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/scatter/marker/colorbar/_xpad.py b/plotly/validators/scatter/marker/colorbar/_xpad.py index 10c81c1c23..edf4986f55 100644 --- a/plotly/validators/scatter/marker/colorbar/_xpad.py +++ b/plotly/validators/scatter/marker/colorbar/_xpad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter/marker/colorbar/_xref.py b/plotly/validators/scatter/marker/colorbar/_xref.py index ffceac8c47..aacee9b48a 100644 --- a/plotly/validators/scatter/marker/colorbar/_xref.py +++ b/plotly/validators/scatter/marker/colorbar/_xref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/scatter/marker/colorbar/_y.py b/plotly/validators/scatter/marker/colorbar/_y.py index 5a19c4bb25..bb72889ad6 100644 --- a/plotly/validators/scatter/marker/colorbar/_y.py +++ b/plotly/validators/scatter/marker/colorbar/_y.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/colorbar/_yanchor.py b/plotly/validators/scatter/marker/colorbar/_yanchor.py index 83e742fb2b..6e0a7c8aa9 100644 --- a/plotly/validators/scatter/marker/colorbar/_yanchor.py +++ b/plotly/validators/scatter/marker/colorbar/_yanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/scatter/marker/colorbar/_ypad.py b/plotly/validators/scatter/marker/colorbar/_ypad.py index 19901d1b40..fce9d8e343 100644 --- a/plotly/validators/scatter/marker/colorbar/_ypad.py +++ b/plotly/validators/scatter/marker/colorbar/_ypad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter/marker/colorbar/_yref.py b/plotly/validators/scatter/marker/colorbar/_yref.py index 63fe32254f..61452458c1 100644 --- a/plotly/validators/scatter/marker/colorbar/_yref.py +++ b/plotly/validators/scatter/marker/colorbar/_yref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/scatter/marker/colorbar/tickfont/__init__.py b/plotly/validators/scatter/marker/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/scatter/marker/colorbar/tickfont/__init__.py +++ b/plotly/validators/scatter/marker/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scatter/marker/colorbar/tickfont/_color.py b/plotly/validators/scatter/marker/colorbar/tickfont/_color.py index 85548b7a2b..5cfa33a60a 100644 --- a/plotly/validators/scatter/marker/colorbar/tickfont/_color.py +++ b/plotly/validators/scatter/marker/colorbar/tickfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/colorbar/tickfont/_family.py b/plotly/validators/scatter/marker/colorbar/tickfont/_family.py index 53c4140896..04ccb5553a 100644 --- a/plotly/validators/scatter/marker/colorbar/tickfont/_family.py +++ b/plotly/validators/scatter/marker/colorbar/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scatter/marker/colorbar/tickfont/_lineposition.py b/plotly/validators/scatter/marker/colorbar/tickfont/_lineposition.py index 2faff5b4a9..242f077f30 100644 --- a/plotly/validators/scatter/marker/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/scatter/marker/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/scatter/marker/colorbar/tickfont/_shadow.py b/plotly/validators/scatter/marker/colorbar/tickfont/_shadow.py index 0cde2dc989..4850f88224 100644 --- a/plotly/validators/scatter/marker/colorbar/tickfont/_shadow.py +++ b/plotly/validators/scatter/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/colorbar/tickfont/_size.py b/plotly/validators/scatter/marker/colorbar/tickfont/_size.py index b1c2d86c73..ede2d27e0e 100644 --- a/plotly/validators/scatter/marker/colorbar/tickfont/_size.py +++ b/plotly/validators/scatter/marker/colorbar/tickfont/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scatter/marker/colorbar/tickfont/_style.py b/plotly/validators/scatter/marker/colorbar/tickfont/_style.py index 6576e53fea..77917065ad 100644 --- a/plotly/validators/scatter/marker/colorbar/tickfont/_style.py +++ b/plotly/validators/scatter/marker/colorbar/tickfont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scatter/marker/colorbar/tickfont/_textcase.py b/plotly/validators/scatter/marker/colorbar/tickfont/_textcase.py index dac54fc6fa..69eb267692 100644 --- a/plotly/validators/scatter/marker/colorbar/tickfont/_textcase.py +++ b/plotly/validators/scatter/marker/colorbar/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/scatter/marker/colorbar/tickfont/_variant.py b/plotly/validators/scatter/marker/colorbar/tickfont/_variant.py index 268d74686c..79ef29ae04 100644 --- a/plotly/validators/scatter/marker/colorbar/tickfont/_variant.py +++ b/plotly/validators/scatter/marker/colorbar/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/scatter/marker/colorbar/tickfont/_weight.py b/plotly/validators/scatter/marker/colorbar/tickfont/_weight.py index 6a9e1f198a..234c7b0240 100644 --- a/plotly/validators/scatter/marker/colorbar/tickfont/_weight.py +++ b/plotly/validators/scatter/marker/colorbar/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scatter/marker/colorbar/tickformatstop/__init__.py b/plotly/validators/scatter/marker/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/scatter/marker/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/scatter/marker/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/scatter/marker/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/scatter/marker/colorbar/tickformatstop/_dtickrange.py index c90cdf4df0..d9815a0446 100644 --- a/plotly/validators/scatter/marker/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/scatter/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( "items", diff --git a/plotly/validators/scatter/marker/colorbar/tickformatstop/_enabled.py b/plotly/validators/scatter/marker/colorbar/tickformatstop/_enabled.py index 060a29194a..956119d907 100644 --- a/plotly/validators/scatter/marker/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/scatter/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/colorbar/tickformatstop/_name.py b/plotly/validators/scatter/marker/colorbar/tickformatstop/_name.py index 6d95858edd..0f08ad63fd 100644 --- a/plotly/validators/scatter/marker/colorbar/tickformatstop/_name.py +++ b/plotly/validators/scatter/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/scatter/marker/colorbar/tickformatstop/_templateitemname.py index a23eed0287..49c5b2f310 100644 --- a/plotly/validators/scatter/marker/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/scatter/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/colorbar/tickformatstop/_value.py b/plotly/validators/scatter/marker/colorbar/tickformatstop/_value.py index f0897036a7..eb8120536f 100644 --- a/plotly/validators/scatter/marker/colorbar/tickformatstop/_value.py +++ b/plotly/validators/scatter/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/colorbar/title/__init__.py b/plotly/validators/scatter/marker/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/scatter/marker/colorbar/title/__init__.py +++ b/plotly/validators/scatter/marker/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/scatter/marker/colorbar/title/_font.py b/plotly/validators/scatter/marker/colorbar/title/_font.py index 3862f5d7b2..21050a7ecd 100644 --- a/plotly/validators/scatter/marker/colorbar/title/_font.py +++ b/plotly/validators/scatter/marker/colorbar/title/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/scatter/marker/colorbar/title/_side.py b/plotly/validators/scatter/marker/colorbar/title/_side.py index 42c6668e74..18d4c1f779 100644 --- a/plotly/validators/scatter/marker/colorbar/title/_side.py +++ b/plotly/validators/scatter/marker/colorbar/title/_side.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/scatter/marker/colorbar/title/_text.py b/plotly/validators/scatter/marker/colorbar/title/_text.py index 6f709415e0..c5da184880 100644 --- a/plotly/validators/scatter/marker/colorbar/title/_text.py +++ b/plotly/validators/scatter/marker/colorbar/title/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/colorbar/title/font/__init__.py b/plotly/validators/scatter/marker/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/scatter/marker/colorbar/title/font/__init__.py +++ b/plotly/validators/scatter/marker/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scatter/marker/colorbar/title/font/_color.py b/plotly/validators/scatter/marker/colorbar/title/font/_color.py index 73654ca655..612e9d6be2 100644 --- a/plotly/validators/scatter/marker/colorbar/title/font/_color.py +++ b/plotly/validators/scatter/marker/colorbar/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/colorbar/title/font/_family.py b/plotly/validators/scatter/marker/colorbar/title/font/_family.py index a3555ac265..bbc7eb42de 100644 --- a/plotly/validators/scatter/marker/colorbar/title/font/_family.py +++ b/plotly/validators/scatter/marker/colorbar/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scatter/marker/colorbar/title/font/_lineposition.py b/plotly/validators/scatter/marker/colorbar/title/font/_lineposition.py index 9adbdd11c7..10e8b8c6d8 100644 --- a/plotly/validators/scatter/marker/colorbar/title/font/_lineposition.py +++ b/plotly/validators/scatter/marker/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/scatter/marker/colorbar/title/font/_shadow.py b/plotly/validators/scatter/marker/colorbar/title/font/_shadow.py index 7dd64d6978..fde081b376 100644 --- a/plotly/validators/scatter/marker/colorbar/title/font/_shadow.py +++ b/plotly/validators/scatter/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/colorbar/title/font/_size.py b/plotly/validators/scatter/marker/colorbar/title/font/_size.py index f97d150a4a..c7ef23788c 100644 --- a/plotly/validators/scatter/marker/colorbar/title/font/_size.py +++ b/plotly/validators/scatter/marker/colorbar/title/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scatter/marker/colorbar/title/font/_style.py b/plotly/validators/scatter/marker/colorbar/title/font/_style.py index ae7a966d6b..4ecebf3029 100644 --- a/plotly/validators/scatter/marker/colorbar/title/font/_style.py +++ b/plotly/validators/scatter/marker/colorbar/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scatter/marker/colorbar/title/font/_textcase.py b/plotly/validators/scatter/marker/colorbar/title/font/_textcase.py index ba66bc23fc..a15d4c727f 100644 --- a/plotly/validators/scatter/marker/colorbar/title/font/_textcase.py +++ b/plotly/validators/scatter/marker/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/scatter/marker/colorbar/title/font/_variant.py b/plotly/validators/scatter/marker/colorbar/title/font/_variant.py index 569d383050..c7c88d62b6 100644 --- a/plotly/validators/scatter/marker/colorbar/title/font/_variant.py +++ b/plotly/validators/scatter/marker/colorbar/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/scatter/marker/colorbar/title/font/_weight.py b/plotly/validators/scatter/marker/colorbar/title/font/_weight.py index b8660f270c..cb1d59e7dd 100644 --- a/plotly/validators/scatter/marker/colorbar/title/font/_weight.py +++ b/plotly/validators/scatter/marker/colorbar/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scatter/marker/gradient/__init__.py b/plotly/validators/scatter/marker/gradient/__init__.py index 624a280ea4..f5373e7822 100644 --- a/plotly/validators/scatter/marker/gradient/__init__.py +++ b/plotly/validators/scatter/marker/gradient/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._typesrc import TypesrcValidator - from ._type import TypeValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._typesrc.TypesrcValidator", + "._type.TypeValidator", + "._colorsrc.ColorsrcValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scatter/marker/gradient/_color.py b/plotly/validators/scatter/marker/gradient/_color.py index 225a4231a2..94112f2713 100644 --- a/plotly/validators/scatter/marker/gradient/_color.py +++ b/plotly/validators/scatter/marker/gradient/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scatter/marker/gradient/_colorsrc.py b/plotly/validators/scatter/marker/gradient/_colorsrc.py index 8d15c7bf79..805d958b48 100644 --- a/plotly/validators/scatter/marker/gradient/_colorsrc.py +++ b/plotly/validators/scatter/marker/gradient/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/gradient/_type.py b/plotly/validators/scatter/marker/gradient/_type.py index c042dc4720..c02087a860 100644 --- a/plotly/validators/scatter/marker/gradient/_type.py +++ b/plotly/validators/scatter/marker/gradient/_type.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/scatter/marker/gradient/_typesrc.py b/plotly/validators/scatter/marker/gradient/_typesrc.py index 9a61056811..bea4e002da 100644 --- a/plotly/validators/scatter/marker/gradient/_typesrc.py +++ b/plotly/validators/scatter/marker/gradient/_typesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/line/__init__.py b/plotly/validators/scatter/marker/line/__init__.py index facbe33f88..4ba3ea340b 100644 --- a/plotly/validators/scatter/marker/line/__init__.py +++ b/plotly/validators/scatter/marker/line/__init__.py @@ -1,37 +1,21 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._widthsrc import WidthsrcValidator - from ._width import WidthValidator - from ._reversescale import ReversescaleValidator - from ._colorsrc import ColorsrcValidator - from ._colorscale import ColorscaleValidator - from ._coloraxis import ColoraxisValidator - from ._color import ColorValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatter/marker/line/_autocolorscale.py b/plotly/validators/scatter/marker/line/_autocolorscale.py index f3573a2670..572145e53a 100644 --- a/plotly/validators/scatter/marker/line/_autocolorscale.py +++ b/plotly/validators/scatter/marker/line/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scatter/marker/line/_cauto.py b/plotly/validators/scatter/marker/line/_cauto.py index 88661a2419..548f85b6a8 100644 --- a/plotly/validators/scatter/marker/line/_cauto.py +++ b/plotly/validators/scatter/marker/line/_cauto.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scatter/marker/line/_cmax.py b/plotly/validators/scatter/marker/line/_cmax.py index 353b719082..c9c221714c 100644 --- a/plotly/validators/scatter/marker/line/_cmax.py +++ b/plotly/validators/scatter/marker/line/_cmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scatter/marker/line/_cmid.py b/plotly/validators/scatter/marker/line/_cmid.py index ff5e31f556..6c009b71d2 100644 --- a/plotly/validators/scatter/marker/line/_cmid.py +++ b/plotly/validators/scatter/marker/line/_cmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scatter/marker/line/_cmin.py b/plotly/validators/scatter/marker/line/_cmin.py index 29de8b74c5..6f8f2b79e9 100644 --- a/plotly/validators/scatter/marker/line/_cmin.py +++ b/plotly/validators/scatter/marker/line/_cmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scatter/marker/line/_color.py b/plotly/validators/scatter/marker/line/_color.py index 63b13ff685..3888188d5d 100644 --- a/plotly/validators/scatter/marker/line/_color.py +++ b/plotly/validators/scatter/marker/line/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), diff --git a/plotly/validators/scatter/marker/line/_coloraxis.py b/plotly/validators/scatter/marker/line/_coloraxis.py index 825e0a12a5..4177fe4041 100644 --- a/plotly/validators/scatter/marker/line/_coloraxis.py +++ b/plotly/validators/scatter/marker/line/_coloraxis.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/scatter/marker/line/_colorscale.py b/plotly/validators/scatter/marker/line/_colorscale.py index 24d642325f..8eaae72ee5 100644 --- a/plotly/validators/scatter/marker/line/_colorscale.py +++ b/plotly/validators/scatter/marker/line/_colorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/scatter/marker/line/_colorsrc.py b/plotly/validators/scatter/marker/line/_colorsrc.py index 76fbd64c8b..471f0c266d 100644 --- a/plotly/validators/scatter/marker/line/_colorsrc.py +++ b/plotly/validators/scatter/marker/line/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/line/_reversescale.py b/plotly/validators/scatter/marker/line/_reversescale.py index e7a3797fe2..583b9da128 100644 --- a/plotly/validators/scatter/marker/line/_reversescale.py +++ b/plotly/validators/scatter/marker/line/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/scatter/marker/line/_width.py b/plotly/validators/scatter/marker/line/_width.py index d5794557aa..45027269c4 100644 --- a/plotly/validators/scatter/marker/line/_width.py +++ b/plotly/validators/scatter/marker/line/_width.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), diff --git a/plotly/validators/scatter/marker/line/_widthsrc.py b/plotly/validators/scatter/marker/line/_widthsrc.py index 3e71e64a15..d7eb8958e4 100644 --- a/plotly/validators/scatter/marker/line/_widthsrc.py +++ b/plotly/validators/scatter/marker/line/_widthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/selected/__init__.py b/plotly/validators/scatter/selected/__init__.py index 3b0aeed383..9d2a313b83 100644 --- a/plotly/validators/scatter/selected/__init__.py +++ b/plotly/validators/scatter/selected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] +) diff --git a/plotly/validators/scatter/selected/_marker.py b/plotly/validators/scatter/selected/_marker.py index dce7eb58ad..5212ad5a8a 100644 --- a/plotly/validators/scatter/selected/_marker.py +++ b/plotly/validators/scatter/selected/_marker.py @@ -1,21 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatter/selected/_textfont.py b/plotly/validators/scatter/selected/_textfont.py index 0a4b2c7564..3bb8207255 100644 --- a/plotly/validators/scatter/selected/_textfont.py +++ b/plotly/validators/scatter/selected/_textfont.py @@ -1,19 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatter/selected/marker/__init__.py b/plotly/validators/scatter/selected/marker/__init__.py index 8c321a38bc..c9c7226fe4 100644 --- a/plotly/validators/scatter/selected/marker/__init__.py +++ b/plotly/validators/scatter/selected/marker/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._size.SizeValidator", "._opacity.OpacityValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/scatter/selected/marker/_color.py b/plotly/validators/scatter/selected/marker/_color.py index f3e57a99c2..06051a9c00 100644 --- a/plotly/validators/scatter/selected/marker/_color.py +++ b/plotly/validators/scatter/selected/marker/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatter/selected/marker/_opacity.py b/plotly/validators/scatter/selected/marker/_opacity.py index e75d21d2c6..d1c8b7f31a 100644 --- a/plotly/validators/scatter/selected/marker/_opacity.py +++ b/plotly/validators/scatter/selected/marker/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatter/selected/marker/_size.py b/plotly/validators/scatter/selected/marker/_size.py index ba6e41849d..4c51e756c6 100644 --- a/plotly/validators/scatter/selected/marker/_size.py +++ b/plotly/validators/scatter/selected/marker/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter/selected/textfont/__init__.py b/plotly/validators/scatter/selected/textfont/__init__.py index a9f087e5af..85a4cc9573 100644 --- a/plotly/validators/scatter/selected/textfont/__init__.py +++ b/plotly/validators/scatter/selected/textfont/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._color.ColorValidator"] +) diff --git a/plotly/validators/scatter/selected/textfont/_color.py b/plotly/validators/scatter/selected/textfont/_color.py index 1cdfaedc7a..e7ac6ebdb7 100644 --- a/plotly/validators/scatter/selected/textfont/_color.py +++ b/plotly/validators/scatter/selected/textfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatter/stream/__init__.py b/plotly/validators/scatter/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/scatter/stream/__init__.py +++ b/plotly/validators/scatter/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/scatter/stream/_maxpoints.py b/plotly/validators/scatter/stream/_maxpoints.py index 0e1bcf3cbc..96e641a7e6 100644 --- a/plotly/validators/scatter/stream/_maxpoints.py +++ b/plotly/validators/scatter/stream/_maxpoints.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatter/stream/_token.py b/plotly/validators/scatter/stream/_token.py index 112a934f65..4e991e8963 100644 --- a/plotly/validators/scatter/stream/_token.py +++ b/plotly/validators/scatter/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scatter/textfont/__init__.py b/plotly/validators/scatter/textfont/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/scatter/textfont/__init__.py +++ b/plotly/validators/scatter/textfont/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatter/textfont/_color.py b/plotly/validators/scatter/textfont/_color.py index f1ce7da825..5e527772f3 100644 --- a/plotly/validators/scatter/textfont/_color.py +++ b/plotly/validators/scatter/textfont/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/scatter/textfont/_colorsrc.py b/plotly/validators/scatter/textfont/_colorsrc.py index 573902c913..b67bb09fb1 100644 --- a/plotly/validators/scatter/textfont/_colorsrc.py +++ b/plotly/validators/scatter/textfont/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/textfont/_family.py b/plotly/validators/scatter/textfont/_family.py index 4ccd896264..1b7be2fdc4 100644 --- a/plotly/validators/scatter/textfont/_family.py +++ b/plotly/validators/scatter/textfont/_family.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/scatter/textfont/_familysrc.py b/plotly/validators/scatter/textfont/_familysrc.py index 7ada4031b4..fb318f4320 100644 --- a/plotly/validators/scatter/textfont/_familysrc.py +++ b/plotly/validators/scatter/textfont/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/textfont/_lineposition.py b/plotly/validators/scatter/textfont/_lineposition.py index 589c2e32fb..2c88a44bf4 100644 --- a/plotly/validators/scatter/textfont/_lineposition.py +++ b/plotly/validators/scatter/textfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/scatter/textfont/_linepositionsrc.py b/plotly/validators/scatter/textfont/_linepositionsrc.py index 1e42a594dc..65a47bb34f 100644 --- a/plotly/validators/scatter/textfont/_linepositionsrc.py +++ b/plotly/validators/scatter/textfont/_linepositionsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/textfont/_shadow.py b/plotly/validators/scatter/textfont/_shadow.py index 7183993c6c..3df8fc3a7d 100644 --- a/plotly/validators/scatter/textfont/_shadow.py +++ b/plotly/validators/scatter/textfont/_shadow.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scatter/textfont/_shadowsrc.py b/plotly/validators/scatter/textfont/_shadowsrc.py index 50266bc55c..60de730822 100644 --- a/plotly/validators/scatter/textfont/_shadowsrc.py +++ b/plotly/validators/scatter/textfont/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/textfont/_size.py b/plotly/validators/scatter/textfont/_size.py index 73df2ed828..f82cb6f3ab 100644 --- a/plotly/validators/scatter/textfont/_size.py +++ b/plotly/validators/scatter/textfont/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/scatter/textfont/_sizesrc.py b/plotly/validators/scatter/textfont/_sizesrc.py index 77c09ca8b2..56d57ea9dd 100644 --- a/plotly/validators/scatter/textfont/_sizesrc.py +++ b/plotly/validators/scatter/textfont/_sizesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/textfont/_style.py b/plotly/validators/scatter/textfont/_style.py index 46afb529fb..5c52144941 100644 --- a/plotly/validators/scatter/textfont/_style.py +++ b/plotly/validators/scatter/textfont/_style.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/scatter/textfont/_stylesrc.py b/plotly/validators/scatter/textfont/_stylesrc.py index 3ae67d1036..cb520ca75a 100644 --- a/plotly/validators/scatter/textfont/_stylesrc.py +++ b/plotly/validators/scatter/textfont/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/textfont/_textcase.py b/plotly/validators/scatter/textfont/_textcase.py index 8c846d5139..e74802e707 100644 --- a/plotly/validators/scatter/textfont/_textcase.py +++ b/plotly/validators/scatter/textfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/scatter/textfont/_textcasesrc.py b/plotly/validators/scatter/textfont/_textcasesrc.py index 17158530dd..f6dbca91b0 100644 --- a/plotly/validators/scatter/textfont/_textcasesrc.py +++ b/plotly/validators/scatter/textfont/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/textfont/_variant.py b/plotly/validators/scatter/textfont/_variant.py index 239e307fe8..e8a8706c56 100644 --- a/plotly/validators/scatter/textfont/_variant.py +++ b/plotly/validators/scatter/textfont/_variant.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( diff --git a/plotly/validators/scatter/textfont/_variantsrc.py b/plotly/validators/scatter/textfont/_variantsrc.py index 69a43995bc..f7186a3dee 100644 --- a/plotly/validators/scatter/textfont/_variantsrc.py +++ b/plotly/validators/scatter/textfont/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/textfont/_weight.py b/plotly/validators/scatter/textfont/_weight.py index e3e1c3340a..87fdd1fd22 100644 --- a/plotly/validators/scatter/textfont/_weight.py +++ b/plotly/validators/scatter/textfont/_weight.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/scatter/textfont/_weightsrc.py b/plotly/validators/scatter/textfont/_weightsrc.py index fc3fedd3d6..97f002fbb6 100644 --- a/plotly/validators/scatter/textfont/_weightsrc.py +++ b/plotly/validators/scatter/textfont/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter/unselected/__init__.py b/plotly/validators/scatter/unselected/__init__.py index 3b0aeed383..9d2a313b83 100644 --- a/plotly/validators/scatter/unselected/__init__.py +++ b/plotly/validators/scatter/unselected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] +) diff --git a/plotly/validators/scatter/unselected/_marker.py b/plotly/validators/scatter/unselected/_marker.py index 7cacde8ce7..371bd4746c 100644 --- a/plotly/validators/scatter/unselected/_marker.py +++ b/plotly/validators/scatter/unselected/_marker.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatter/unselected/_textfont.py b/plotly/validators/scatter/unselected/_textfont.py index 4ad7ec772f..9fd5a56b30 100644 --- a/plotly/validators/scatter/unselected/_textfont.py +++ b/plotly/validators/scatter/unselected/_textfont.py @@ -1,20 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatter/unselected/marker/__init__.py b/plotly/validators/scatter/unselected/marker/__init__.py index 8c321a38bc..c9c7226fe4 100644 --- a/plotly/validators/scatter/unselected/marker/__init__.py +++ b/plotly/validators/scatter/unselected/marker/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._size.SizeValidator", "._opacity.OpacityValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/scatter/unselected/marker/_color.py b/plotly/validators/scatter/unselected/marker/_color.py index 331c776b01..e0fea88a23 100644 --- a/plotly/validators/scatter/unselected/marker/_color.py +++ b/plotly/validators/scatter/unselected/marker/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatter/unselected/marker/_opacity.py b/plotly/validators/scatter/unselected/marker/_opacity.py index b0b5539463..a3d655d867 100644 --- a/plotly/validators/scatter/unselected/marker/_opacity.py +++ b/plotly/validators/scatter/unselected/marker/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatter/unselected/marker/_size.py b/plotly/validators/scatter/unselected/marker/_size.py index 5b9c79a570..83f3bce2ec 100644 --- a/plotly/validators/scatter/unselected/marker/_size.py +++ b/plotly/validators/scatter/unselected/marker/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter/unselected/textfont/__init__.py b/plotly/validators/scatter/unselected/textfont/__init__.py index a9f087e5af..85a4cc9573 100644 --- a/plotly/validators/scatter/unselected/textfont/__init__.py +++ b/plotly/validators/scatter/unselected/textfont/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._color.ColorValidator"] +) diff --git a/plotly/validators/scatter/unselected/textfont/_color.py b/plotly/validators/scatter/unselected/textfont/_color.py index ba4eda7a51..3d5765969d 100644 --- a/plotly/validators/scatter/unselected/textfont/_color.py +++ b/plotly/validators/scatter/unselected/textfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatter3d/__init__.py b/plotly/validators/scatter3d/__init__.py index c9a28b14c3..abc965ced2 100644 --- a/plotly/validators/scatter3d/__init__.py +++ b/plotly/validators/scatter3d/__init__.py @@ -1,123 +1,64 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zsrc import ZsrcValidator - from ._zhoverformat import ZhoverformatValidator - from ._zcalendar import ZcalendarValidator - from ._z import ZValidator - from ._ysrc import YsrcValidator - from ._yhoverformat import YhoverformatValidator - from ._ycalendar import YcalendarValidator - from ._y import YValidator - from ._xsrc import XsrcValidator - from ._xhoverformat import XhoverformatValidator - from ._xcalendar import XcalendarValidator - from ._x import XValidator - from ._visible import VisibleValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._texttemplatesrc import TexttemplatesrcValidator - from ._texttemplate import TexttemplateValidator - from ._textsrc import TextsrcValidator - from ._textpositionsrc import TextpositionsrcValidator - from ._textposition import TextpositionValidator - from ._textfont import TextfontValidator - from ._text import TextValidator - from ._surfacecolor import SurfacecolorValidator - from ._surfaceaxis import SurfaceaxisValidator - from ._stream import StreamValidator - from ._showlegend import ShowlegendValidator - from ._scene import SceneValidator - from ._projection import ProjectionValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - from ._mode import ModeValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._marker import MarkerValidator - from ._line import LineValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._error_z import Error_ZValidator - from ._error_y import Error_YValidator - from ._error_x import Error_XValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatter3d/_connectgaps.py b/plotly/validators/scatter3d/_connectgaps.py index 0c907c5d4c..8408e46147 100644 --- a/plotly/validators/scatter3d/_connectgaps.py +++ b/plotly/validators/scatter3d/_connectgaps.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/_customdata.py b/plotly/validators/scatter3d/_customdata.py index e78c83272c..90796a2fa0 100644 --- a/plotly/validators/scatter3d/_customdata.py +++ b/plotly/validators/scatter3d/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/_customdatasrc.py b/plotly/validators/scatter3d/_customdatasrc.py index eeaaa1b47d..03db3a9821 100644 --- a/plotly/validators/scatter3d/_customdatasrc.py +++ b/plotly/validators/scatter3d/_customdatasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/_error_x.py b/plotly/validators/scatter3d/_error_x.py index 414c380877..4abb377b07 100644 --- a/plotly/validators/scatter3d/_error_x.py +++ b/plotly/validators/scatter3d/_error_x.py @@ -1,72 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Error_XValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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 - - 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, diff --git a/plotly/validators/scatter3d/_error_y.py b/plotly/validators/scatter3d/_error_y.py index dc2b70655a..9e84c7aec2 100644 --- a/plotly/validators/scatter3d/_error_y.py +++ b/plotly/validators/scatter3d/_error_y.py @@ -1,72 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Error_YValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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 - - 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, diff --git a/plotly/validators/scatter3d/_error_z.py b/plotly/validators/scatter3d/_error_z.py index 35d4c03dd9..c7e344c9a1 100644 --- a/plotly/validators/scatter3d/_error_z.py +++ b/plotly/validators/scatter3d/_error_z.py @@ -1,70 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Error_ZValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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 - - 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, diff --git a/plotly/validators/scatter3d/_hoverinfo.py b/plotly/validators/scatter3d/_hoverinfo.py index 3858928672..d1d34774d1 100644 --- a/plotly/validators/scatter3d/_hoverinfo.py +++ b/plotly/validators/scatter3d/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/scatter3d/_hoverinfosrc.py b/plotly/validators/scatter3d/_hoverinfosrc.py index 2e4ca6ac82..0b7a5eaf37 100644 --- a/plotly/validators/scatter3d/_hoverinfosrc.py +++ b/plotly/validators/scatter3d/_hoverinfosrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/_hoverlabel.py b/plotly/validators/scatter3d/_hoverlabel.py index ab2ae97868..9d53c57f2f 100644 --- a/plotly/validators/scatter3d/_hoverlabel.py +++ b/plotly/validators/scatter3d/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatter3d/_hovertemplate.py b/plotly/validators/scatter3d/_hovertemplate.py index cab0520f7b..93cff1a848 100644 --- a/plotly/validators/scatter3d/_hovertemplate.py +++ b/plotly/validators/scatter3d/_hovertemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scatter3d/_hovertemplatesrc.py b/plotly/validators/scatter3d/_hovertemplatesrc.py index 6cd9ce9e21..b0202082cd 100644 --- a/plotly/validators/scatter3d/_hovertemplatesrc.py +++ b/plotly/validators/scatter3d/_hovertemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/_hovertext.py b/plotly/validators/scatter3d/_hovertext.py index ae55845ad8..92c3a627a2 100644 --- a/plotly/validators/scatter3d/_hovertext.py +++ b/plotly/validators/scatter3d/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scatter3d/_hovertextsrc.py b/plotly/validators/scatter3d/_hovertextsrc.py index 32aaaffc11..044c89f91d 100644 --- a/plotly/validators/scatter3d/_hovertextsrc.py +++ b/plotly/validators/scatter3d/_hovertextsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/_ids.py b/plotly/validators/scatter3d/_ids.py index db8096b52b..ed90d87919 100644 --- a/plotly/validators/scatter3d/_ids.py +++ b/plotly/validators/scatter3d/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/_idssrc.py b/plotly/validators/scatter3d/_idssrc.py index 42574639cc..53e47df96a 100644 --- a/plotly/validators/scatter3d/_idssrc.py +++ b/plotly/validators/scatter3d/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/_legend.py b/plotly/validators/scatter3d/_legend.py index 03291a667e..57447be4f4 100644 --- a/plotly/validators/scatter3d/_legend.py +++ b/plotly/validators/scatter3d/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/scatter3d/_legendgroup.py b/plotly/validators/scatter3d/_legendgroup.py index f9e5ebd962..04baa3f5dd 100644 --- a/plotly/validators/scatter3d/_legendgroup.py +++ b/plotly/validators/scatter3d/_legendgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatter3d/_legendgrouptitle.py b/plotly/validators/scatter3d/_legendgrouptitle.py index dd490f6a0e..c7fad7eb34 100644 --- a/plotly/validators/scatter3d/_legendgrouptitle.py +++ b/plotly/validators/scatter3d/_legendgrouptitle.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatter3d/_legendrank.py b/plotly/validators/scatter3d/_legendrank.py index 014a5ea674..3e36daedf2 100644 --- a/plotly/validators/scatter3d/_legendrank.py +++ b/plotly/validators/scatter3d/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatter3d/_legendwidth.py b/plotly/validators/scatter3d/_legendwidth.py index 943ae7c2dc..223d616338 100644 --- a/plotly/validators/scatter3d/_legendwidth.py +++ b/plotly/validators/scatter3d/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/_line.py b/plotly/validators/scatter3d/_line.py index 09dd280aec..9a001c841f 100644 --- a/plotly/validators/scatter3d/_line.py +++ b/plotly/validators/scatter3d/_line.py @@ -1,105 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatter3d/_marker.py b/plotly/validators/scatter3d/_marker.py index 98a9dcf479..f391209c8a 100644 --- a/plotly/validators/scatter3d/_marker.py +++ b/plotly/validators/scatter3d/_marker.py @@ -1,136 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatter3d/_meta.py b/plotly/validators/scatter3d/_meta.py index 4087a15364..3e86677186 100644 --- a/plotly/validators/scatter3d/_meta.py +++ b/plotly/validators/scatter3d/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/scatter3d/_metasrc.py b/plotly/validators/scatter3d/_metasrc.py index cc1ee2d8c6..9f47987b6c 100644 --- a/plotly/validators/scatter3d/_metasrc.py +++ b/plotly/validators/scatter3d/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/_mode.py b/plotly/validators/scatter3d/_mode.py index 2cbcd36a1d..2f272f3447 100644 --- a/plotly/validators/scatter3d/_mode.py +++ b/plotly/validators/scatter3d/_mode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["lines", "markers", "text"]), diff --git a/plotly/validators/scatter3d/_name.py b/plotly/validators/scatter3d/_name.py index cb0558f813..a9ccbbcc89 100644 --- a/plotly/validators/scatter3d/_name.py +++ b/plotly/validators/scatter3d/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatter3d/_opacity.py b/plotly/validators/scatter3d/_opacity.py index 2223000e21..8439bc7989 100644 --- a/plotly/validators/scatter3d/_opacity.py +++ b/plotly/validators/scatter3d/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatter3d/_projection.py b/plotly/validators/scatter3d/_projection.py index b3cc0fdbac..c3b144565c 100644 --- a/plotly/validators/scatter3d/_projection.py +++ b/plotly/validators/scatter3d/_projection.py @@ -1,27 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ProjectionValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatter3d/_scene.py b/plotly/validators/scatter3d/_scene.py index e06212869f..a0e7ac8333 100644 --- a/plotly/validators/scatter3d/_scene.py +++ b/plotly/validators/scatter3d/_scene.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SceneValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "scene"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/scatter3d/_showlegend.py b/plotly/validators/scatter3d/_showlegend.py index 3e604c5e2f..2270ff229f 100644 --- a/plotly/validators/scatter3d/_showlegend.py +++ b/plotly/validators/scatter3d/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatter3d/_stream.py b/plotly/validators/scatter3d/_stream.py index 61ea3739a1..8e6764cd7c 100644 --- a/plotly/validators/scatter3d/_stream.py +++ b/plotly/validators/scatter3d/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatter3d/_surfaceaxis.py b/plotly/validators/scatter3d/_surfaceaxis.py index 0c994a4113..b4d2d06141 100644 --- a/plotly/validators/scatter3d/_surfaceaxis.py +++ b/plotly/validators/scatter3d/_surfaceaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SurfaceaxisValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [-1, 0, 1, 2]), **kwargs, diff --git a/plotly/validators/scatter3d/_surfacecolor.py b/plotly/validators/scatter3d/_surfacecolor.py index af54219bb7..bf01a9fbc2 100644 --- a/plotly/validators/scatter3d/_surfacecolor.py +++ b/plotly/validators/scatter3d/_surfacecolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SurfacecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/_text.py b/plotly/validators/scatter3d/_text.py index b892ce9880..125f075ce7 100644 --- a/plotly/validators/scatter3d/_text.py +++ b/plotly/validators/scatter3d/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scatter3d/_textfont.py b/plotly/validators/scatter3d/_textfont.py index fbab9e734a..5f93dd0424 100644 --- a/plotly/validators/scatter3d/_textfont.py +++ b/plotly/validators/scatter3d/_textfont.py @@ -1,61 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/scatter3d/_textposition.py b/plotly/validators/scatter3d/_textposition.py index 56164a1b15..6b4055c568 100644 --- a/plotly/validators/scatter3d/_textposition.py +++ b/plotly/validators/scatter3d/_textposition.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( diff --git a/plotly/validators/scatter3d/_textpositionsrc.py b/plotly/validators/scatter3d/_textpositionsrc.py index 6ed87d9c2e..1b9651fc7b 100644 --- a/plotly/validators/scatter3d/_textpositionsrc.py +++ b/plotly/validators/scatter3d/_textpositionsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/_textsrc.py b/plotly/validators/scatter3d/_textsrc.py index 4219c5aa36..8515d310c4 100644 --- a/plotly/validators/scatter3d/_textsrc.py +++ b/plotly/validators/scatter3d/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/_texttemplate.py b/plotly/validators/scatter3d/_texttemplate.py index 1bc2049844..46fb41205c 100644 --- a/plotly/validators/scatter3d/_texttemplate.py +++ b/plotly/validators/scatter3d/_texttemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scatter3d/_texttemplatesrc.py b/plotly/validators/scatter3d/_texttemplatesrc.py index fa96152174..b89ec90602 100644 --- a/plotly/validators/scatter3d/_texttemplatesrc.py +++ b/plotly/validators/scatter3d/_texttemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/_uid.py b/plotly/validators/scatter3d/_uid.py index 19725b8303..8851138d76 100644 --- a/plotly/validators/scatter3d/_uid.py +++ b/plotly/validators/scatter3d/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/scatter3d/_uirevision.py b/plotly/validators/scatter3d/_uirevision.py index 3781e14c22..4b8f31824a 100644 --- a/plotly/validators/scatter3d/_uirevision.py +++ b/plotly/validators/scatter3d/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/_visible.py b/plotly/validators/scatter3d/_visible.py index 1bf2894bb0..f05ec7559b 100644 --- a/plotly/validators/scatter3d/_visible.py +++ b/plotly/validators/scatter3d/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/scatter3d/_x.py b/plotly/validators/scatter3d/_x.py index a7a59dc05c..e3ddeece57 100644 --- a/plotly/validators/scatter3d/_x.py +++ b/plotly/validators/scatter3d/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/scatter3d/_xcalendar.py b/plotly/validators/scatter3d/_xcalendar.py index 4233e10672..16e7606ab0 100644 --- a/plotly/validators/scatter3d/_xcalendar.py +++ b/plotly/validators/scatter3d/_xcalendar.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/scatter3d/_xhoverformat.py b/plotly/validators/scatter3d/_xhoverformat.py index f434175bf9..0b2c5a8686 100644 --- a/plotly/validators/scatter3d/_xhoverformat.py +++ b/plotly/validators/scatter3d/_xhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/_xsrc.py b/plotly/validators/scatter3d/_xsrc.py index fedd96d67d..500fd49242 100644 --- a/plotly/validators/scatter3d/_xsrc.py +++ b/plotly/validators/scatter3d/_xsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/_y.py b/plotly/validators/scatter3d/_y.py index 3e92f7856b..d24690e5ce 100644 --- a/plotly/validators/scatter3d/_y.py +++ b/plotly/validators/scatter3d/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/scatter3d/_ycalendar.py b/plotly/validators/scatter3d/_ycalendar.py index a3bb86e925..a195062367 100644 --- a/plotly/validators/scatter3d/_ycalendar.py +++ b/plotly/validators/scatter3d/_ycalendar.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/scatter3d/_yhoverformat.py b/plotly/validators/scatter3d/_yhoverformat.py index 2dec92fd01..6ddf04d186 100644 --- a/plotly/validators/scatter3d/_yhoverformat.py +++ b/plotly/validators/scatter3d/_yhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/_ysrc.py b/plotly/validators/scatter3d/_ysrc.py index ee1d761a3d..3bedf38dc1 100644 --- a/plotly/validators/scatter3d/_ysrc.py +++ b/plotly/validators/scatter3d/_ysrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/_z.py b/plotly/validators/scatter3d/_z.py index 6827617087..be12473517 100644 --- a/plotly/validators/scatter3d/_z.py +++ b/plotly/validators/scatter3d/_z.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/scatter3d/_zcalendar.py b/plotly/validators/scatter3d/_zcalendar.py index 71a0b8a726..21d295c5b4 100644 --- a/plotly/validators/scatter3d/_zcalendar.py +++ b/plotly/validators/scatter3d/_zcalendar.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/scatter3d/_zhoverformat.py b/plotly/validators/scatter3d/_zhoverformat.py index 543d7e8098..5176b72a91 100644 --- a/plotly/validators/scatter3d/_zhoverformat.py +++ b/plotly/validators/scatter3d/_zhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/_zsrc.py b/plotly/validators/scatter3d/_zsrc.py index 35c1051cb5..f50a332a10 100644 --- a/plotly/validators/scatter3d/_zsrc.py +++ b/plotly/validators/scatter3d/_zsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/error_x/__init__.py b/plotly/validators/scatter3d/error_x/__init__.py index ff9282973c..1572917759 100644 --- a/plotly/validators/scatter3d/error_x/__init__.py +++ b/plotly/validators/scatter3d/error_x/__init__.py @@ -1,43 +1,24 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._width import WidthValidator - from ._visible import VisibleValidator - from ._valueminus import ValueminusValidator - from ._value import ValueValidator - from ._type import TypeValidator - from ._tracerefminus import TracerefminusValidator - from ._traceref import TracerefValidator - from ._thickness import ThicknessValidator - from ._symmetric import SymmetricValidator - from ._copy_zstyle import Copy_ZstyleValidator - from ._color import ColorValidator - from ._arraysrc import ArraysrcValidator - from ._arrayminussrc import ArrayminussrcValidator - from ._arrayminus import ArrayminusValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatter3d/error_x/_array.py b/plotly/validators/scatter3d/error_x/_array.py index e062504d97..6602081599 100644 --- a/plotly/validators/scatter3d/error_x/_array.py +++ b/plotly/validators/scatter3d/error_x/_array.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrayValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/error_x/_arrayminus.py b/plotly/validators/scatter3d/error_x/_arrayminus.py index 378e0cbb2c..52e32a0d0a 100644 --- a/plotly/validators/scatter3d/error_x/_arrayminus.py +++ b/plotly/validators/scatter3d/error_x/_arrayminus.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrayminusValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/error_x/_arrayminussrc.py b/plotly/validators/scatter3d/error_x/_arrayminussrc.py index edb69ba1c7..a41d287b75 100644 --- a/plotly/validators/scatter3d/error_x/_arrayminussrc.py +++ b/plotly/validators/scatter3d/error_x/_arrayminussrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrayminussrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/error_x/_arraysrc.py b/plotly/validators/scatter3d/error_x/_arraysrc.py index cf4d8f7420..30ac53443b 100644 --- a/plotly/validators/scatter3d/error_x/_arraysrc.py +++ b/plotly/validators/scatter3d/error_x/_arraysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArraysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/error_x/_color.py b/plotly/validators/scatter3d/error_x/_color.py index b634d53abc..db6f2b1206 100644 --- a/plotly/validators/scatter3d/error_x/_color.py +++ b/plotly/validators/scatter3d/error_x/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/error_x/_copy_zstyle.py b/plotly/validators/scatter3d/error_x/_copy_zstyle.py index 683b9493b7..5f08578fb8 100644 --- a/plotly/validators/scatter3d/error_x/_copy_zstyle.py +++ b/plotly/validators/scatter3d/error_x/_copy_zstyle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Copy_ZstyleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/error_x/_symmetric.py b/plotly/validators/scatter3d/error_x/_symmetric.py index 4400e330ef..6d4b8f5dbd 100644 --- a/plotly/validators/scatter3d/error_x/_symmetric.py +++ b/plotly/validators/scatter3d/error_x/_symmetric.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymmetricValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/error_x/_thickness.py b/plotly/validators/scatter3d/error_x/_thickness.py index 8d9a6a1d7c..cc0d39700c 100644 --- a/plotly/validators/scatter3d/error_x/_thickness.py +++ b/plotly/validators/scatter3d/error_x/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/error_x/_traceref.py b/plotly/validators/scatter3d/error_x/_traceref.py index 29ab9e594a..2e04333a70 100644 --- a/plotly/validators/scatter3d/error_x/_traceref.py +++ b/plotly/validators/scatter3d/error_x/_traceref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TracerefValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/error_x/_tracerefminus.py b/plotly/validators/scatter3d/error_x/_tracerefminus.py index afc73820cb..831b6727c8 100644 --- a/plotly/validators/scatter3d/error_x/_tracerefminus.py +++ b/plotly/validators/scatter3d/error_x/_tracerefminus.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TracerefminusValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/error_x/_type.py b/plotly/validators/scatter3d/error_x/_type.py index 381798c7ac..67ef87caf6 100644 --- a/plotly/validators/scatter3d/error_x/_type.py +++ b/plotly/validators/scatter3d/error_x/_type.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["percent", "constant", "sqrt", "data"]), **kwargs, diff --git a/plotly/validators/scatter3d/error_x/_value.py b/plotly/validators/scatter3d/error_x/_value.py index 358b176e62..d3f9c81199 100644 --- a/plotly/validators/scatter3d/error_x/_value.py +++ b/plotly/validators/scatter3d/error_x/_value.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/error_x/_valueminus.py b/plotly/validators/scatter3d/error_x/_valueminus.py index 4664beb661..f52cfe72be 100644 --- a/plotly/validators/scatter3d/error_x/_valueminus.py +++ b/plotly/validators/scatter3d/error_x/_valueminus.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueminusValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/error_x/_visible.py b/plotly/validators/scatter3d/error_x/_visible.py index f69873fb04..07dd87fe67 100644 --- a/plotly/validators/scatter3d/error_x/_visible.py +++ b/plotly/validators/scatter3d/error_x/_visible.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/error_x/_width.py b/plotly/validators/scatter3d/error_x/_width.py index 253aca9e57..8c20eb0834 100644 --- a/plotly/validators/scatter3d/error_x/_width.py +++ b/plotly/validators/scatter3d/error_x/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/error_y/__init__.py b/plotly/validators/scatter3d/error_y/__init__.py index ff9282973c..1572917759 100644 --- a/plotly/validators/scatter3d/error_y/__init__.py +++ b/plotly/validators/scatter3d/error_y/__init__.py @@ -1,43 +1,24 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._width import WidthValidator - from ._visible import VisibleValidator - from ._valueminus import ValueminusValidator - from ._value import ValueValidator - from ._type import TypeValidator - from ._tracerefminus import TracerefminusValidator - from ._traceref import TracerefValidator - from ._thickness import ThicknessValidator - from ._symmetric import SymmetricValidator - from ._copy_zstyle import Copy_ZstyleValidator - from ._color import ColorValidator - from ._arraysrc import ArraysrcValidator - from ._arrayminussrc import ArrayminussrcValidator - from ._arrayminus import ArrayminusValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatter3d/error_y/_array.py b/plotly/validators/scatter3d/error_y/_array.py index 67372cfcfd..bddd619489 100644 --- a/plotly/validators/scatter3d/error_y/_array.py +++ b/plotly/validators/scatter3d/error_y/_array.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrayValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/error_y/_arrayminus.py b/plotly/validators/scatter3d/error_y/_arrayminus.py index c24fe735de..ca8ad8e142 100644 --- a/plotly/validators/scatter3d/error_y/_arrayminus.py +++ b/plotly/validators/scatter3d/error_y/_arrayminus.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrayminusValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/error_y/_arrayminussrc.py b/plotly/validators/scatter3d/error_y/_arrayminussrc.py index bba9b0a20c..660ab9296f 100644 --- a/plotly/validators/scatter3d/error_y/_arrayminussrc.py +++ b/plotly/validators/scatter3d/error_y/_arrayminussrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrayminussrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/error_y/_arraysrc.py b/plotly/validators/scatter3d/error_y/_arraysrc.py index 47b7b6c275..ca7951217a 100644 --- a/plotly/validators/scatter3d/error_y/_arraysrc.py +++ b/plotly/validators/scatter3d/error_y/_arraysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArraysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/error_y/_color.py b/plotly/validators/scatter3d/error_y/_color.py index 0b63777fb3..0a1453d11c 100644 --- a/plotly/validators/scatter3d/error_y/_color.py +++ b/plotly/validators/scatter3d/error_y/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/error_y/_copy_zstyle.py b/plotly/validators/scatter3d/error_y/_copy_zstyle.py index e63722ce7f..aa40bc1ec9 100644 --- a/plotly/validators/scatter3d/error_y/_copy_zstyle.py +++ b/plotly/validators/scatter3d/error_y/_copy_zstyle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Copy_ZstyleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/error_y/_symmetric.py b/plotly/validators/scatter3d/error_y/_symmetric.py index df5b406e98..3d5848dc0b 100644 --- a/plotly/validators/scatter3d/error_y/_symmetric.py +++ b/plotly/validators/scatter3d/error_y/_symmetric.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymmetricValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/error_y/_thickness.py b/plotly/validators/scatter3d/error_y/_thickness.py index 7324919049..3d47657cd2 100644 --- a/plotly/validators/scatter3d/error_y/_thickness.py +++ b/plotly/validators/scatter3d/error_y/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/error_y/_traceref.py b/plotly/validators/scatter3d/error_y/_traceref.py index e78c278dce..3cb4d87822 100644 --- a/plotly/validators/scatter3d/error_y/_traceref.py +++ b/plotly/validators/scatter3d/error_y/_traceref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TracerefValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/error_y/_tracerefminus.py b/plotly/validators/scatter3d/error_y/_tracerefminus.py index 2785c51742..7cd2326739 100644 --- a/plotly/validators/scatter3d/error_y/_tracerefminus.py +++ b/plotly/validators/scatter3d/error_y/_tracerefminus.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TracerefminusValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/error_y/_type.py b/plotly/validators/scatter3d/error_y/_type.py index 4b0fd287f8..e7baa28dc3 100644 --- a/plotly/validators/scatter3d/error_y/_type.py +++ b/plotly/validators/scatter3d/error_y/_type.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["percent", "constant", "sqrt", "data"]), **kwargs, diff --git a/plotly/validators/scatter3d/error_y/_value.py b/plotly/validators/scatter3d/error_y/_value.py index dc722c8d4f..4e525b9e6f 100644 --- a/plotly/validators/scatter3d/error_y/_value.py +++ b/plotly/validators/scatter3d/error_y/_value.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/error_y/_valueminus.py b/plotly/validators/scatter3d/error_y/_valueminus.py index a64a64f3a4..bd50c47ca5 100644 --- a/plotly/validators/scatter3d/error_y/_valueminus.py +++ b/plotly/validators/scatter3d/error_y/_valueminus.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueminusValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/error_y/_visible.py b/plotly/validators/scatter3d/error_y/_visible.py index a798aaabf7..b211f590fa 100644 --- a/plotly/validators/scatter3d/error_y/_visible.py +++ b/plotly/validators/scatter3d/error_y/_visible.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/error_y/_width.py b/plotly/validators/scatter3d/error_y/_width.py index d8b34cb7cf..bd7e80ce9a 100644 --- a/plotly/validators/scatter3d/error_y/_width.py +++ b/plotly/validators/scatter3d/error_y/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/error_z/__init__.py b/plotly/validators/scatter3d/error_z/__init__.py index eff09cd6a0..ea49850d5f 100644 --- a/plotly/validators/scatter3d/error_z/__init__.py +++ b/plotly/validators/scatter3d/error_z/__init__.py @@ -1,41 +1,23 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._width import WidthValidator - from ._visible import VisibleValidator - from ._valueminus import ValueminusValidator - from ._value import ValueValidator - from ._type import TypeValidator - from ._tracerefminus import TracerefminusValidator - from ._traceref import TracerefValidator - from ._thickness import ThicknessValidator - from ._symmetric import SymmetricValidator - from ._color import ColorValidator - from ._arraysrc import ArraysrcValidator - from ._arrayminussrc import ArrayminussrcValidator - from ._arrayminus import ArrayminusValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatter3d/error_z/_array.py b/plotly/validators/scatter3d/error_z/_array.py index 81159c4e10..03890c425c 100644 --- a/plotly/validators/scatter3d/error_z/_array.py +++ b/plotly/validators/scatter3d/error_z/_array.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrayValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/error_z/_arrayminus.py b/plotly/validators/scatter3d/error_z/_arrayminus.py index 628266cca0..699039b307 100644 --- a/plotly/validators/scatter3d/error_z/_arrayminus.py +++ b/plotly/validators/scatter3d/error_z/_arrayminus.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrayminusValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/error_z/_arrayminussrc.py b/plotly/validators/scatter3d/error_z/_arrayminussrc.py index 354f09870f..26a9bd423c 100644 --- a/plotly/validators/scatter3d/error_z/_arrayminussrc.py +++ b/plotly/validators/scatter3d/error_z/_arrayminussrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrayminussrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/error_z/_arraysrc.py b/plotly/validators/scatter3d/error_z/_arraysrc.py index 65a3f9aa8d..e352e78e83 100644 --- a/plotly/validators/scatter3d/error_z/_arraysrc.py +++ b/plotly/validators/scatter3d/error_z/_arraysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArraysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/error_z/_color.py b/plotly/validators/scatter3d/error_z/_color.py index 3decda02d7..75f8a61801 100644 --- a/plotly/validators/scatter3d/error_z/_color.py +++ b/plotly/validators/scatter3d/error_z/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/error_z/_symmetric.py b/plotly/validators/scatter3d/error_z/_symmetric.py index d9afdfeeb1..19a42cabf3 100644 --- a/plotly/validators/scatter3d/error_z/_symmetric.py +++ b/plotly/validators/scatter3d/error_z/_symmetric.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymmetricValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/error_z/_thickness.py b/plotly/validators/scatter3d/error_z/_thickness.py index 6d43b0fe19..c80c3104bd 100644 --- a/plotly/validators/scatter3d/error_z/_thickness.py +++ b/plotly/validators/scatter3d/error_z/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/error_z/_traceref.py b/plotly/validators/scatter3d/error_z/_traceref.py index 2776060047..af3e1b8c5a 100644 --- a/plotly/validators/scatter3d/error_z/_traceref.py +++ b/plotly/validators/scatter3d/error_z/_traceref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TracerefValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/error_z/_tracerefminus.py b/plotly/validators/scatter3d/error_z/_tracerefminus.py index 93b615f9f2..1bf78272db 100644 --- a/plotly/validators/scatter3d/error_z/_tracerefminus.py +++ b/plotly/validators/scatter3d/error_z/_tracerefminus.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TracerefminusValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/error_z/_type.py b/plotly/validators/scatter3d/error_z/_type.py index 187bc65b62..dc88525760 100644 --- a/plotly/validators/scatter3d/error_z/_type.py +++ b/plotly/validators/scatter3d/error_z/_type.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["percent", "constant", "sqrt", "data"]), **kwargs, diff --git a/plotly/validators/scatter3d/error_z/_value.py b/plotly/validators/scatter3d/error_z/_value.py index 39a984336a..64888d6c4b 100644 --- a/plotly/validators/scatter3d/error_z/_value.py +++ b/plotly/validators/scatter3d/error_z/_value.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/error_z/_valueminus.py b/plotly/validators/scatter3d/error_z/_valueminus.py index c1cfde01e7..0d2ba8ff82 100644 --- a/plotly/validators/scatter3d/error_z/_valueminus.py +++ b/plotly/validators/scatter3d/error_z/_valueminus.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueminusValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/error_z/_visible.py b/plotly/validators/scatter3d/error_z/_visible.py index 1f89124a6b..7f59e97b87 100644 --- a/plotly/validators/scatter3d/error_z/_visible.py +++ b/plotly/validators/scatter3d/error_z/_visible.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/error_z/_width.py b/plotly/validators/scatter3d/error_z/_width.py index 2f96c52335..92926e7ef2 100644 --- a/plotly/validators/scatter3d/error_z/_width.py +++ b/plotly/validators/scatter3d/error_z/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/hoverlabel/__init__.py b/plotly/validators/scatter3d/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/scatter3d/hoverlabel/__init__.py +++ b/plotly/validators/scatter3d/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/scatter3d/hoverlabel/_align.py b/plotly/validators/scatter3d/hoverlabel/_align.py index ac3e366008..c1fd64340c 100644 --- a/plotly/validators/scatter3d/hoverlabel/_align.py +++ b/plotly/validators/scatter3d/hoverlabel/_align.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/scatter3d/hoverlabel/_alignsrc.py b/plotly/validators/scatter3d/hoverlabel/_alignsrc.py index de7eb695af..df8dbcecf0 100644 --- a/plotly/validators/scatter3d/hoverlabel/_alignsrc.py +++ b/plotly/validators/scatter3d/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/hoverlabel/_bgcolor.py b/plotly/validators/scatter3d/hoverlabel/_bgcolor.py index abf7cb7658..0ea11f7adf 100644 --- a/plotly/validators/scatter3d/hoverlabel/_bgcolor.py +++ b/plotly/validators/scatter3d/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scatter3d/hoverlabel/_bgcolorsrc.py b/plotly/validators/scatter3d/hoverlabel/_bgcolorsrc.py index 831c8c2bf4..966e5adec5 100644 --- a/plotly/validators/scatter3d/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/scatter3d/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/hoverlabel/_bordercolor.py b/plotly/validators/scatter3d/hoverlabel/_bordercolor.py index 067ead44c9..3c759cd337 100644 --- a/plotly/validators/scatter3d/hoverlabel/_bordercolor.py +++ b/plotly/validators/scatter3d/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scatter3d/hoverlabel/_bordercolorsrc.py b/plotly/validators/scatter3d/hoverlabel/_bordercolorsrc.py index 246454f6cb..35f8a34974 100644 --- a/plotly/validators/scatter3d/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/scatter3d/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/hoverlabel/_font.py b/plotly/validators/scatter3d/hoverlabel/_font.py index b403a6575b..83e70c5a9c 100644 --- a/plotly/validators/scatter3d/hoverlabel/_font.py +++ b/plotly/validators/scatter3d/hoverlabel/_font.py @@ -1,87 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/scatter3d/hoverlabel/_namelength.py b/plotly/validators/scatter3d/hoverlabel/_namelength.py index b4a336dcf1..29124ca3ac 100644 --- a/plotly/validators/scatter3d/hoverlabel/_namelength.py +++ b/plotly/validators/scatter3d/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/scatter3d/hoverlabel/_namelengthsrc.py b/plotly/validators/scatter3d/hoverlabel/_namelengthsrc.py index 934cac3d06..9b53ffe59b 100644 --- a/plotly/validators/scatter3d/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/scatter3d/hoverlabel/_namelengthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/hoverlabel/font/__init__.py b/plotly/validators/scatter3d/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/scatter3d/hoverlabel/font/__init__.py +++ b/plotly/validators/scatter3d/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatter3d/hoverlabel/font/_color.py b/plotly/validators/scatter3d/hoverlabel/font/_color.py index f4d11d44e2..04db5f7356 100644 --- a/plotly/validators/scatter3d/hoverlabel/font/_color.py +++ b/plotly/validators/scatter3d/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scatter3d/hoverlabel/font/_colorsrc.py b/plotly/validators/scatter3d/hoverlabel/font/_colorsrc.py index fdd2201dec..84835d514b 100644 --- a/plotly/validators/scatter3d/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/scatter3d/hoverlabel/font/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/hoverlabel/font/_family.py b/plotly/validators/scatter3d/hoverlabel/font/_family.py index 092fa88901..bc31ddd0e8 100644 --- a/plotly/validators/scatter3d/hoverlabel/font/_family.py +++ b/plotly/validators/scatter3d/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/scatter3d/hoverlabel/font/_familysrc.py b/plotly/validators/scatter3d/hoverlabel/font/_familysrc.py index 38a22080e9..36586afce3 100644 --- a/plotly/validators/scatter3d/hoverlabel/font/_familysrc.py +++ b/plotly/validators/scatter3d/hoverlabel/font/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/hoverlabel/font/_lineposition.py b/plotly/validators/scatter3d/hoverlabel/font/_lineposition.py index b8b6c7a943..cf99339132 100644 --- a/plotly/validators/scatter3d/hoverlabel/font/_lineposition.py +++ b/plotly/validators/scatter3d/hoverlabel/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/scatter3d/hoverlabel/font/_linepositionsrc.py b/plotly/validators/scatter3d/hoverlabel/font/_linepositionsrc.py index 6f653a3ae9..8f539f11d0 100644 --- a/plotly/validators/scatter3d/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/scatter3d/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/hoverlabel/font/_shadow.py b/plotly/validators/scatter3d/hoverlabel/font/_shadow.py index e2d9319a29..c1b2b0b713 100644 --- a/plotly/validators/scatter3d/hoverlabel/font/_shadow.py +++ b/plotly/validators/scatter3d/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scatter3d/hoverlabel/font/_shadowsrc.py b/plotly/validators/scatter3d/hoverlabel/font/_shadowsrc.py index 129e918dfd..b0d69e4f78 100644 --- a/plotly/validators/scatter3d/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/scatter3d/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/hoverlabel/font/_size.py b/plotly/validators/scatter3d/hoverlabel/font/_size.py index 9c2d7beb57..ddb47a8e77 100644 --- a/plotly/validators/scatter3d/hoverlabel/font/_size.py +++ b/plotly/validators/scatter3d/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/scatter3d/hoverlabel/font/_sizesrc.py b/plotly/validators/scatter3d/hoverlabel/font/_sizesrc.py index b488b78541..184f854509 100644 --- a/plotly/validators/scatter3d/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/scatter3d/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/hoverlabel/font/_style.py b/plotly/validators/scatter3d/hoverlabel/font/_style.py index 8ad74f1d0c..7076ac7e1a 100644 --- a/plotly/validators/scatter3d/hoverlabel/font/_style.py +++ b/plotly/validators/scatter3d/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/scatter3d/hoverlabel/font/_stylesrc.py b/plotly/validators/scatter3d/hoverlabel/font/_stylesrc.py index 40c4004d28..9c127285ea 100644 --- a/plotly/validators/scatter3d/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/scatter3d/hoverlabel/font/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/hoverlabel/font/_textcase.py b/plotly/validators/scatter3d/hoverlabel/font/_textcase.py index e2da3580a9..82a1c8029f 100644 --- a/plotly/validators/scatter3d/hoverlabel/font/_textcase.py +++ b/plotly/validators/scatter3d/hoverlabel/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/scatter3d/hoverlabel/font/_textcasesrc.py b/plotly/validators/scatter3d/hoverlabel/font/_textcasesrc.py index 6114364f18..b71a0b4eaf 100644 --- a/plotly/validators/scatter3d/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/scatter3d/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/hoverlabel/font/_variant.py b/plotly/validators/scatter3d/hoverlabel/font/_variant.py index 59c3c355fc..cb742de6a8 100644 --- a/plotly/validators/scatter3d/hoverlabel/font/_variant.py +++ b/plotly/validators/scatter3d/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/scatter3d/hoverlabel/font/_variantsrc.py b/plotly/validators/scatter3d/hoverlabel/font/_variantsrc.py index 410565d42d..8b5afb2e63 100644 --- a/plotly/validators/scatter3d/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/scatter3d/hoverlabel/font/_variantsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/hoverlabel/font/_weight.py b/plotly/validators/scatter3d/hoverlabel/font/_weight.py index 886493ab14..ef018cc487 100644 --- a/plotly/validators/scatter3d/hoverlabel/font/_weight.py +++ b/plotly/validators/scatter3d/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/scatter3d/hoverlabel/font/_weightsrc.py b/plotly/validators/scatter3d/hoverlabel/font/_weightsrc.py index 02947a1c25..0315c88cff 100644 --- a/plotly/validators/scatter3d/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/scatter3d/hoverlabel/font/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/legendgrouptitle/__init__.py b/plotly/validators/scatter3d/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/scatter3d/legendgrouptitle/__init__.py +++ b/plotly/validators/scatter3d/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/scatter3d/legendgrouptitle/_font.py b/plotly/validators/scatter3d/legendgrouptitle/_font.py index eb137c8d6b..17be3f9dcd 100644 --- a/plotly/validators/scatter3d/legendgrouptitle/_font.py +++ b/plotly/validators/scatter3d/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/scatter3d/legendgrouptitle/_text.py b/plotly/validators/scatter3d/legendgrouptitle/_text.py index 98e1fb5c43..b0a853c6a2 100644 --- a/plotly/validators/scatter3d/legendgrouptitle/_text.py +++ b/plotly/validators/scatter3d/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatter3d/legendgrouptitle/font/__init__.py b/plotly/validators/scatter3d/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/scatter3d/legendgrouptitle/font/__init__.py +++ b/plotly/validators/scatter3d/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scatter3d/legendgrouptitle/font/_color.py b/plotly/validators/scatter3d/legendgrouptitle/font/_color.py index 5ac3b6cede..e09ffe0dc3 100644 --- a/plotly/validators/scatter3d/legendgrouptitle/font/_color.py +++ b/plotly/validators/scatter3d/legendgrouptitle/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatter3d/legendgrouptitle/font/_family.py b/plotly/validators/scatter3d/legendgrouptitle/font/_family.py index 07bf7fa01d..a43a56dc9e 100644 --- a/plotly/validators/scatter3d/legendgrouptitle/font/_family.py +++ b/plotly/validators/scatter3d/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scatter3d/legendgrouptitle/font/_lineposition.py b/plotly/validators/scatter3d/legendgrouptitle/font/_lineposition.py index 465a0e60f7..34255fd82b 100644 --- a/plotly/validators/scatter3d/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/scatter3d/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/scatter3d/legendgrouptitle/font/_shadow.py b/plotly/validators/scatter3d/legendgrouptitle/font/_shadow.py index d063b6285c..3c04ee6296 100644 --- a/plotly/validators/scatter3d/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/scatter3d/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatter3d/legendgrouptitle/font/_size.py b/plotly/validators/scatter3d/legendgrouptitle/font/_size.py index 2b99d89ee0..6c95584ab2 100644 --- a/plotly/validators/scatter3d/legendgrouptitle/font/_size.py +++ b/plotly/validators/scatter3d/legendgrouptitle/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scatter3d/legendgrouptitle/font/_style.py b/plotly/validators/scatter3d/legendgrouptitle/font/_style.py index c8f17514da..e1747a3e04 100644 --- a/plotly/validators/scatter3d/legendgrouptitle/font/_style.py +++ b/plotly/validators/scatter3d/legendgrouptitle/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scatter3d/legendgrouptitle/font/_textcase.py b/plotly/validators/scatter3d/legendgrouptitle/font/_textcase.py index ef725dfc72..c1e52c021e 100644 --- a/plotly/validators/scatter3d/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/scatter3d/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/scatter3d/legendgrouptitle/font/_variant.py b/plotly/validators/scatter3d/legendgrouptitle/font/_variant.py index 7ab5cfc52c..25ea334a8f 100644 --- a/plotly/validators/scatter3d/legendgrouptitle/font/_variant.py +++ b/plotly/validators/scatter3d/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/scatter3d/legendgrouptitle/font/_weight.py b/plotly/validators/scatter3d/legendgrouptitle/font/_weight.py index 50476f2fa9..d6f37ea764 100644 --- a/plotly/validators/scatter3d/legendgrouptitle/font/_weight.py +++ b/plotly/validators/scatter3d/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scatter3d/line/__init__.py b/plotly/validators/scatter3d/line/__init__.py index acdb8a9fbc..680c0d2ac5 100644 --- a/plotly/validators/scatter3d/line/__init__.py +++ b/plotly/validators/scatter3d/line/__init__.py @@ -1,41 +1,23 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._width import WidthValidator - from ._showscale import ShowscaleValidator - from ._reversescale import ReversescaleValidator - from ._dash import DashValidator - from ._colorsrc import ColorsrcValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._color import ColorValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatter3d/line/_autocolorscale.py b/plotly/validators/scatter3d/line/_autocolorscale.py index 793e1e2f13..c106e8345b 100644 --- a/plotly/validators/scatter3d/line/_autocolorscale.py +++ b/plotly/validators/scatter3d/line/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scatter3d/line/_cauto.py b/plotly/validators/scatter3d/line/_cauto.py index c88ebf1d2b..09aac41405 100644 --- a/plotly/validators/scatter3d/line/_cauto.py +++ b/plotly/validators/scatter3d/line/_cauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scatter3d/line/_cmax.py b/plotly/validators/scatter3d/line/_cmax.py index a4f17f84d5..281917d01d 100644 --- a/plotly/validators/scatter3d/line/_cmax.py +++ b/plotly/validators/scatter3d/line/_cmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scatter3d/line/_cmid.py b/plotly/validators/scatter3d/line/_cmid.py index 8a81d28242..961bd32ad2 100644 --- a/plotly/validators/scatter3d/line/_cmid.py +++ b/plotly/validators/scatter3d/line/_cmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scatter3d/line/_cmin.py b/plotly/validators/scatter3d/line/_cmin.py index 95ae39019b..f80090327e 100644 --- a/plotly/validators/scatter3d/line/_cmin.py +++ b/plotly/validators/scatter3d/line/_cmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scatter3d/line/_color.py b/plotly/validators/scatter3d/line/_color.py index bc2ca01a1a..35b2796ca3 100644 --- a/plotly/validators/scatter3d/line/_color.py +++ b/plotly/validators/scatter3d/line/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_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"), diff --git a/plotly/validators/scatter3d/line/_coloraxis.py b/plotly/validators/scatter3d/line/_coloraxis.py index c680d4e0a7..4bc1b9e924 100644 --- a/plotly/validators/scatter3d/line/_coloraxis.py +++ b/plotly/validators/scatter3d/line/_coloraxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/scatter3d/line/_colorbar.py b/plotly/validators/scatter3d/line/_colorbar.py index cdfe435f69..cf177b9155 100644 --- a/plotly/validators/scatter3d/line/_colorbar.py +++ b/plotly/validators/scatter3d/line/_colorbar.py @@ -1,279 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatter3d/line/_colorscale.py b/plotly/validators/scatter3d/line/_colorscale.py index c8b8af4c59..02536a684a 100644 --- a/plotly/validators/scatter3d/line/_colorscale.py +++ b/plotly/validators/scatter3d/line/_colorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/scatter3d/line/_colorsrc.py b/plotly/validators/scatter3d/line/_colorsrc.py index ba2f770b35..e2ce46f5cb 100644 --- a/plotly/validators/scatter3d/line/_colorsrc.py +++ b/plotly/validators/scatter3d/line/_colorsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/line/_dash.py b/plotly/validators/scatter3d/line/_dash.py index c0eebf312e..a324459be5 100644 --- a/plotly/validators/scatter3d/line/_dash.py +++ b/plotly/validators/scatter3d/line/_dash.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DashValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", ["dash", "dashdot", "dot", "longdash", "longdashdot", "solid"] diff --git a/plotly/validators/scatter3d/line/_reversescale.py b/plotly/validators/scatter3d/line/_reversescale.py index f5a3c6e270..daa502c161 100644 --- a/plotly/validators/scatter3d/line/_reversescale.py +++ b/plotly/validators/scatter3d/line/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/line/_showscale.py b/plotly/validators/scatter3d/line/_showscale.py index 52a8c6d436..9c9dcc89db 100644 --- a/plotly/validators/scatter3d/line/_showscale.py +++ b/plotly/validators/scatter3d/line/_showscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/line/_width.py b/plotly/validators/scatter3d/line/_width.py index b983384a50..58df995b48 100644 --- a/plotly/validators/scatter3d/line/_width.py +++ b/plotly/validators/scatter3d/line/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/line/colorbar/__init__.py b/plotly/validators/scatter3d/line/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/scatter3d/line/colorbar/__init__.py +++ b/plotly/validators/scatter3d/line/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatter3d/line/colorbar/_bgcolor.py b/plotly/validators/scatter3d/line/colorbar/_bgcolor.py index 27be612729..ce6ae36b86 100644 --- a/plotly/validators/scatter3d/line/colorbar/_bgcolor.py +++ b/plotly/validators/scatter3d/line/colorbar/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/line/colorbar/_bordercolor.py b/plotly/validators/scatter3d/line/colorbar/_bordercolor.py index 09eaff48ed..541936a599 100644 --- a/plotly/validators/scatter3d/line/colorbar/_bordercolor.py +++ b/plotly/validators/scatter3d/line/colorbar/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/line/colorbar/_borderwidth.py b/plotly/validators/scatter3d/line/colorbar/_borderwidth.py index 27a09121cd..336c9e6b8f 100644 --- a/plotly/validators/scatter3d/line/colorbar/_borderwidth.py +++ b/plotly/validators/scatter3d/line/colorbar/_borderwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/line/colorbar/_dtick.py b/plotly/validators/scatter3d/line/colorbar/_dtick.py index 320e3d57cd..6930930a2f 100644 --- a/plotly/validators/scatter3d/line/colorbar/_dtick.py +++ b/plotly/validators/scatter3d/line/colorbar/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/scatter3d/line/colorbar/_exponentformat.py b/plotly/validators/scatter3d/line/colorbar/_exponentformat.py index 7be282c94d..da419bcf75 100644 --- a/plotly/validators/scatter3d/line/colorbar/_exponentformat.py +++ b/plotly/validators/scatter3d/line/colorbar/_exponentformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/scatter3d/line/colorbar/_labelalias.py b/plotly/validators/scatter3d/line/colorbar/_labelalias.py index 72131b932f..5a0b0e68bb 100644 --- a/plotly/validators/scatter3d/line/colorbar/_labelalias.py +++ b/plotly/validators/scatter3d/line/colorbar/_labelalias.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/line/colorbar/_len.py b/plotly/validators/scatter3d/line/colorbar/_len.py index d532170efe..d87d1bd852 100644 --- a/plotly/validators/scatter3d/line/colorbar/_len.py +++ b/plotly/validators/scatter3d/line/colorbar/_len.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/line/colorbar/_lenmode.py b/plotly/validators/scatter3d/line/colorbar/_lenmode.py index d33ac15a4b..b552fad572 100644 --- a/plotly/validators/scatter3d/line/colorbar/_lenmode.py +++ b/plotly/validators/scatter3d/line/colorbar/_lenmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/scatter3d/line/colorbar/_minexponent.py b/plotly/validators/scatter3d/line/colorbar/_minexponent.py index 5a6df8218c..aa4cd459e7 100644 --- a/plotly/validators/scatter3d/line/colorbar/_minexponent.py +++ b/plotly/validators/scatter3d/line/colorbar/_minexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/line/colorbar/_nticks.py b/plotly/validators/scatter3d/line/colorbar/_nticks.py index 9c9272ccc1..f6ee8c872c 100644 --- a/plotly/validators/scatter3d/line/colorbar/_nticks.py +++ b/plotly/validators/scatter3d/line/colorbar/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/line/colorbar/_orientation.py b/plotly/validators/scatter3d/line/colorbar/_orientation.py index 7ca09a0384..94677bdc10 100644 --- a/plotly/validators/scatter3d/line/colorbar/_orientation.py +++ b/plotly/validators/scatter3d/line/colorbar/_orientation.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/scatter3d/line/colorbar/_outlinecolor.py b/plotly/validators/scatter3d/line/colorbar/_outlinecolor.py index c2093eb904..49c7416f19 100644 --- a/plotly/validators/scatter3d/line/colorbar/_outlinecolor.py +++ b/plotly/validators/scatter3d/line/colorbar/_outlinecolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/line/colorbar/_outlinewidth.py b/plotly/validators/scatter3d/line/colorbar/_outlinewidth.py index 69791e51d7..f771bb84a7 100644 --- a/plotly/validators/scatter3d/line/colorbar/_outlinewidth.py +++ b/plotly/validators/scatter3d/line/colorbar/_outlinewidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/line/colorbar/_separatethousands.py b/plotly/validators/scatter3d/line/colorbar/_separatethousands.py index fe675ecbcd..ee8d581538 100644 --- a/plotly/validators/scatter3d/line/colorbar/_separatethousands.py +++ b/plotly/validators/scatter3d/line/colorbar/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/line/colorbar/_showexponent.py b/plotly/validators/scatter3d/line/colorbar/_showexponent.py index 819d794be1..f591969d51 100644 --- a/plotly/validators/scatter3d/line/colorbar/_showexponent.py +++ b/plotly/validators/scatter3d/line/colorbar/_showexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scatter3d/line/colorbar/_showticklabels.py b/plotly/validators/scatter3d/line/colorbar/_showticklabels.py index 551093a97e..cf20991391 100644 --- a/plotly/validators/scatter3d/line/colorbar/_showticklabels.py +++ b/plotly/validators/scatter3d/line/colorbar/_showticklabels.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/line/colorbar/_showtickprefix.py b/plotly/validators/scatter3d/line/colorbar/_showtickprefix.py index 8db9b612ce..014ec9b51e 100644 --- a/plotly/validators/scatter3d/line/colorbar/_showtickprefix.py +++ b/plotly/validators/scatter3d/line/colorbar/_showtickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scatter3d/line/colorbar/_showticksuffix.py b/plotly/validators/scatter3d/line/colorbar/_showticksuffix.py index 896afabca4..0ba6729e5c 100644 --- a/plotly/validators/scatter3d/line/colorbar/_showticksuffix.py +++ b/plotly/validators/scatter3d/line/colorbar/_showticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scatter3d/line/colorbar/_thickness.py b/plotly/validators/scatter3d/line/colorbar/_thickness.py index 7ceaa6c7f4..991c81efaf 100644 --- a/plotly/validators/scatter3d/line/colorbar/_thickness.py +++ b/plotly/validators/scatter3d/line/colorbar/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/line/colorbar/_thicknessmode.py b/plotly/validators/scatter3d/line/colorbar/_thicknessmode.py index debf58bec9..3720870873 100644 --- a/plotly/validators/scatter3d/line/colorbar/_thicknessmode.py +++ b/plotly/validators/scatter3d/line/colorbar/_thicknessmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/scatter3d/line/colorbar/_tick0.py b/plotly/validators/scatter3d/line/colorbar/_tick0.py index b4b2be240e..c015f21fb2 100644 --- a/plotly/validators/scatter3d/line/colorbar/_tick0.py +++ b/plotly/validators/scatter3d/line/colorbar/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/scatter3d/line/colorbar/_tickangle.py b/plotly/validators/scatter3d/line/colorbar/_tickangle.py index 92093ca262..6ddfb48a97 100644 --- a/plotly/validators/scatter3d/line/colorbar/_tickangle.py +++ b/plotly/validators/scatter3d/line/colorbar/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/line/colorbar/_tickcolor.py b/plotly/validators/scatter3d/line/colorbar/_tickcolor.py index 35e2f865f9..7d4739de2f 100644 --- a/plotly/validators/scatter3d/line/colorbar/_tickcolor.py +++ b/plotly/validators/scatter3d/line/colorbar/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/line/colorbar/_tickfont.py b/plotly/validators/scatter3d/line/colorbar/_tickfont.py index 9bb9b41d5c..d754210497 100644 --- a/plotly/validators/scatter3d/line/colorbar/_tickfont.py +++ b/plotly/validators/scatter3d/line/colorbar/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/scatter3d/line/colorbar/_tickformat.py b/plotly/validators/scatter3d/line/colorbar/_tickformat.py index c4bcf7f10f..7959f8a897 100644 --- a/plotly/validators/scatter3d/line/colorbar/_tickformat.py +++ b/plotly/validators/scatter3d/line/colorbar/_tickformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/line/colorbar/_tickformatstopdefaults.py b/plotly/validators/scatter3d/line/colorbar/_tickformatstopdefaults.py index ea6356fb4a..dd40792b8e 100644 --- a/plotly/validators/scatter3d/line/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/scatter3d/line/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/scatter3d/line/colorbar/_tickformatstops.py b/plotly/validators/scatter3d/line/colorbar/_tickformatstops.py index b1049f046a..864f8c07d1 100644 --- a/plotly/validators/scatter3d/line/colorbar/_tickformatstops.py +++ b/plotly/validators/scatter3d/line/colorbar/_tickformatstops.py @@ -1,53 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatter3d/line/colorbar/_ticklabeloverflow.py b/plotly/validators/scatter3d/line/colorbar/_ticklabeloverflow.py index 82cdc73882..69210822e8 100644 --- a/plotly/validators/scatter3d/line/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/scatter3d/line/colorbar/_ticklabeloverflow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/scatter3d/line/colorbar/_ticklabelposition.py b/plotly/validators/scatter3d/line/colorbar/_ticklabelposition.py index ab23ea60bd..2dee782dc1 100644 --- a/plotly/validators/scatter3d/line/colorbar/_ticklabelposition.py +++ b/plotly/validators/scatter3d/line/colorbar/_ticklabelposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/scatter3d/line/colorbar/_ticklabelstep.py b/plotly/validators/scatter3d/line/colorbar/_ticklabelstep.py index 1f7122aaa8..845452e598 100644 --- a/plotly/validators/scatter3d/line/colorbar/_ticklabelstep.py +++ b/plotly/validators/scatter3d/line/colorbar/_ticklabelstep.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scatter3d/line/colorbar/_ticklen.py b/plotly/validators/scatter3d/line/colorbar/_ticklen.py index b6a84f2010..fb3b84141b 100644 --- a/plotly/validators/scatter3d/line/colorbar/_ticklen.py +++ b/plotly/validators/scatter3d/line/colorbar/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/line/colorbar/_tickmode.py b/plotly/validators/scatter3d/line/colorbar/_tickmode.py index c848a97a72..576023363e 100644 --- a/plotly/validators/scatter3d/line/colorbar/_tickmode.py +++ b/plotly/validators/scatter3d/line/colorbar/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/scatter3d/line/colorbar/_tickprefix.py b/plotly/validators/scatter3d/line/colorbar/_tickprefix.py index e7e412ba9e..155defe756 100644 --- a/plotly/validators/scatter3d/line/colorbar/_tickprefix.py +++ b/plotly/validators/scatter3d/line/colorbar/_tickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/line/colorbar/_ticks.py b/plotly/validators/scatter3d/line/colorbar/_ticks.py index 13f2a8d77a..de874e6e50 100644 --- a/plotly/validators/scatter3d/line/colorbar/_ticks.py +++ b/plotly/validators/scatter3d/line/colorbar/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/scatter3d/line/colorbar/_ticksuffix.py b/plotly/validators/scatter3d/line/colorbar/_ticksuffix.py index 8833af0e8c..b5e186c91c 100644 --- a/plotly/validators/scatter3d/line/colorbar/_ticksuffix.py +++ b/plotly/validators/scatter3d/line/colorbar/_ticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/line/colorbar/_ticktext.py b/plotly/validators/scatter3d/line/colorbar/_ticktext.py index 3070d2c12e..96a797a1b2 100644 --- a/plotly/validators/scatter3d/line/colorbar/_ticktext.py +++ b/plotly/validators/scatter3d/line/colorbar/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/line/colorbar/_ticktextsrc.py b/plotly/validators/scatter3d/line/colorbar/_ticktextsrc.py index 1605dbee81..ef50def2ad 100644 --- a/plotly/validators/scatter3d/line/colorbar/_ticktextsrc.py +++ b/plotly/validators/scatter3d/line/colorbar/_ticktextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/line/colorbar/_tickvals.py b/plotly/validators/scatter3d/line/colorbar/_tickvals.py index 14a6766c5d..d626110834 100644 --- a/plotly/validators/scatter3d/line/colorbar/_tickvals.py +++ b/plotly/validators/scatter3d/line/colorbar/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/line/colorbar/_tickvalssrc.py b/plotly/validators/scatter3d/line/colorbar/_tickvalssrc.py index 100291f4c8..a447dacc09 100644 --- a/plotly/validators/scatter3d/line/colorbar/_tickvalssrc.py +++ b/plotly/validators/scatter3d/line/colorbar/_tickvalssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/line/colorbar/_tickwidth.py b/plotly/validators/scatter3d/line/colorbar/_tickwidth.py index 088aab879d..762b02a3fa 100644 --- a/plotly/validators/scatter3d/line/colorbar/_tickwidth.py +++ b/plotly/validators/scatter3d/line/colorbar/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/line/colorbar/_title.py b/plotly/validators/scatter3d/line/colorbar/_title.py index f7d4a7d374..28370738bf 100644 --- a/plotly/validators/scatter3d/line/colorbar/_title.py +++ b/plotly/validators/scatter3d/line/colorbar/_title.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatter3d/line/colorbar/_x.py b/plotly/validators/scatter3d/line/colorbar/_x.py index 17cf104506..7b236aef16 100644 --- a/plotly/validators/scatter3d/line/colorbar/_x.py +++ b/plotly/validators/scatter3d/line/colorbar/_x.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/line/colorbar/_xanchor.py b/plotly/validators/scatter3d/line/colorbar/_xanchor.py index 97e9d1f2ce..199e8e55ec 100644 --- a/plotly/validators/scatter3d/line/colorbar/_xanchor.py +++ b/plotly/validators/scatter3d/line/colorbar/_xanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/scatter3d/line/colorbar/_xpad.py b/plotly/validators/scatter3d/line/colorbar/_xpad.py index fecd40ca8a..099b9070d1 100644 --- a/plotly/validators/scatter3d/line/colorbar/_xpad.py +++ b/plotly/validators/scatter3d/line/colorbar/_xpad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/line/colorbar/_xref.py b/plotly/validators/scatter3d/line/colorbar/_xref.py index 648c83b885..5f37f4a098 100644 --- a/plotly/validators/scatter3d/line/colorbar/_xref.py +++ b/plotly/validators/scatter3d/line/colorbar/_xref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/scatter3d/line/colorbar/_y.py b/plotly/validators/scatter3d/line/colorbar/_y.py index de686f4892..eb4225b07a 100644 --- a/plotly/validators/scatter3d/line/colorbar/_y.py +++ b/plotly/validators/scatter3d/line/colorbar/_y.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/line/colorbar/_yanchor.py b/plotly/validators/scatter3d/line/colorbar/_yanchor.py index 2b8a8aafc0..8ceb8d3ddd 100644 --- a/plotly/validators/scatter3d/line/colorbar/_yanchor.py +++ b/plotly/validators/scatter3d/line/colorbar/_yanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/scatter3d/line/colorbar/_ypad.py b/plotly/validators/scatter3d/line/colorbar/_ypad.py index b1c359f2f9..cd904359cf 100644 --- a/plotly/validators/scatter3d/line/colorbar/_ypad.py +++ b/plotly/validators/scatter3d/line/colorbar/_ypad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/line/colorbar/_yref.py b/plotly/validators/scatter3d/line/colorbar/_yref.py index ff66e14184..c50229ad2a 100644 --- a/plotly/validators/scatter3d/line/colorbar/_yref.py +++ b/plotly/validators/scatter3d/line/colorbar/_yref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/scatter3d/line/colorbar/tickfont/__init__.py b/plotly/validators/scatter3d/line/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/scatter3d/line/colorbar/tickfont/__init__.py +++ b/plotly/validators/scatter3d/line/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scatter3d/line/colorbar/tickfont/_color.py b/plotly/validators/scatter3d/line/colorbar/tickfont/_color.py index bfcf8616ac..b4383d65fa 100644 --- a/plotly/validators/scatter3d/line/colorbar/tickfont/_color.py +++ b/plotly/validators/scatter3d/line/colorbar/tickfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/line/colorbar/tickfont/_family.py b/plotly/validators/scatter3d/line/colorbar/tickfont/_family.py index 5e17421c72..f2f8c82145 100644 --- a/plotly/validators/scatter3d/line/colorbar/tickfont/_family.py +++ b/plotly/validators/scatter3d/line/colorbar/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scatter3d/line/colorbar/tickfont/_lineposition.py b/plotly/validators/scatter3d/line/colorbar/tickfont/_lineposition.py index 28c1bff5d5..6fa920ef96 100644 --- a/plotly/validators/scatter3d/line/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/scatter3d/line/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/scatter3d/line/colorbar/tickfont/_shadow.py b/plotly/validators/scatter3d/line/colorbar/tickfont/_shadow.py index 3a7c340d05..e11d2cff8a 100644 --- a/plotly/validators/scatter3d/line/colorbar/tickfont/_shadow.py +++ b/plotly/validators/scatter3d/line/colorbar/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/line/colorbar/tickfont/_size.py b/plotly/validators/scatter3d/line/colorbar/tickfont/_size.py index 54e8aa0607..e2e436882b 100644 --- a/plotly/validators/scatter3d/line/colorbar/tickfont/_size.py +++ b/plotly/validators/scatter3d/line/colorbar/tickfont/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scatter3d/line/colorbar/tickfont/_style.py b/plotly/validators/scatter3d/line/colorbar/tickfont/_style.py index 3908d5f745..ca00312f09 100644 --- a/plotly/validators/scatter3d/line/colorbar/tickfont/_style.py +++ b/plotly/validators/scatter3d/line/colorbar/tickfont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scatter3d/line/colorbar/tickfont/_textcase.py b/plotly/validators/scatter3d/line/colorbar/tickfont/_textcase.py index ec21d07af3..dce69dd002 100644 --- a/plotly/validators/scatter3d/line/colorbar/tickfont/_textcase.py +++ b/plotly/validators/scatter3d/line/colorbar/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/scatter3d/line/colorbar/tickfont/_variant.py b/plotly/validators/scatter3d/line/colorbar/tickfont/_variant.py index 3ef5c22223..68f7d4a26f 100644 --- a/plotly/validators/scatter3d/line/colorbar/tickfont/_variant.py +++ b/plotly/validators/scatter3d/line/colorbar/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/scatter3d/line/colorbar/tickfont/_weight.py b/plotly/validators/scatter3d/line/colorbar/tickfont/_weight.py index d9227749df..d7215fa48b 100644 --- a/plotly/validators/scatter3d/line/colorbar/tickfont/_weight.py +++ b/plotly/validators/scatter3d/line/colorbar/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scatter3d/line/colorbar/tickformatstop/__init__.py b/plotly/validators/scatter3d/line/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/scatter3d/line/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/scatter3d/line/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/scatter3d/line/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/scatter3d/line/colorbar/tickformatstop/_dtickrange.py index 6be52c8f1f..613a9a25a6 100644 --- a/plotly/validators/scatter3d/line/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/scatter3d/line/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/scatter3d/line/colorbar/tickformatstop/_enabled.py b/plotly/validators/scatter3d/line/colorbar/tickformatstop/_enabled.py index 68a27a7029..3120f4a40e 100644 --- a/plotly/validators/scatter3d/line/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/scatter3d/line/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/line/colorbar/tickformatstop/_name.py b/plotly/validators/scatter3d/line/colorbar/tickformatstop/_name.py index 100dc1ed7d..1cab82129c 100644 --- a/plotly/validators/scatter3d/line/colorbar/tickformatstop/_name.py +++ b/plotly/validators/scatter3d/line/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/line/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/scatter3d/line/colorbar/tickformatstop/_templateitemname.py index e7db0d6ce5..300e092bfa 100644 --- a/plotly/validators/scatter3d/line/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/scatter3d/line/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/line/colorbar/tickformatstop/_value.py b/plotly/validators/scatter3d/line/colorbar/tickformatstop/_value.py index db86016fe8..76fd171339 100644 --- a/plotly/validators/scatter3d/line/colorbar/tickformatstop/_value.py +++ b/plotly/validators/scatter3d/line/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/line/colorbar/title/__init__.py b/plotly/validators/scatter3d/line/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/scatter3d/line/colorbar/title/__init__.py +++ b/plotly/validators/scatter3d/line/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/scatter3d/line/colorbar/title/_font.py b/plotly/validators/scatter3d/line/colorbar/title/_font.py index 268e7c90c2..0f8dff1e55 100644 --- a/plotly/validators/scatter3d/line/colorbar/title/_font.py +++ b/plotly/validators/scatter3d/line/colorbar/title/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/scatter3d/line/colorbar/title/_side.py b/plotly/validators/scatter3d/line/colorbar/title/_side.py index c5faf5f5b9..8595d78c5d 100644 --- a/plotly/validators/scatter3d/line/colorbar/title/_side.py +++ b/plotly/validators/scatter3d/line/colorbar/title/_side.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/scatter3d/line/colorbar/title/_text.py b/plotly/validators/scatter3d/line/colorbar/title/_text.py index 789c9ef91e..f4fc553efd 100644 --- a/plotly/validators/scatter3d/line/colorbar/title/_text.py +++ b/plotly/validators/scatter3d/line/colorbar/title/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/line/colorbar/title/font/__init__.py b/plotly/validators/scatter3d/line/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/scatter3d/line/colorbar/title/font/__init__.py +++ b/plotly/validators/scatter3d/line/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scatter3d/line/colorbar/title/font/_color.py b/plotly/validators/scatter3d/line/colorbar/title/font/_color.py index 684a609ed3..7b65148db5 100644 --- a/plotly/validators/scatter3d/line/colorbar/title/font/_color.py +++ b/plotly/validators/scatter3d/line/colorbar/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/line/colorbar/title/font/_family.py b/plotly/validators/scatter3d/line/colorbar/title/font/_family.py index 85f9c97fd6..9231df47cc 100644 --- a/plotly/validators/scatter3d/line/colorbar/title/font/_family.py +++ b/plotly/validators/scatter3d/line/colorbar/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scatter3d/line/colorbar/title/font/_lineposition.py b/plotly/validators/scatter3d/line/colorbar/title/font/_lineposition.py index b8b6be5933..f8e6fe31ba 100644 --- a/plotly/validators/scatter3d/line/colorbar/title/font/_lineposition.py +++ b/plotly/validators/scatter3d/line/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/scatter3d/line/colorbar/title/font/_shadow.py b/plotly/validators/scatter3d/line/colorbar/title/font/_shadow.py index f9377e6f60..8898573725 100644 --- a/plotly/validators/scatter3d/line/colorbar/title/font/_shadow.py +++ b/plotly/validators/scatter3d/line/colorbar/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/line/colorbar/title/font/_size.py b/plotly/validators/scatter3d/line/colorbar/title/font/_size.py index a6a879261e..26fed9019b 100644 --- a/plotly/validators/scatter3d/line/colorbar/title/font/_size.py +++ b/plotly/validators/scatter3d/line/colorbar/title/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scatter3d/line/colorbar/title/font/_style.py b/plotly/validators/scatter3d/line/colorbar/title/font/_style.py index 7529684935..548160e9b4 100644 --- a/plotly/validators/scatter3d/line/colorbar/title/font/_style.py +++ b/plotly/validators/scatter3d/line/colorbar/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scatter3d/line/colorbar/title/font/_textcase.py b/plotly/validators/scatter3d/line/colorbar/title/font/_textcase.py index f17e5fddd9..8221de8cf1 100644 --- a/plotly/validators/scatter3d/line/colorbar/title/font/_textcase.py +++ b/plotly/validators/scatter3d/line/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/scatter3d/line/colorbar/title/font/_variant.py b/plotly/validators/scatter3d/line/colorbar/title/font/_variant.py index ee491c87ea..30ba0b2aa1 100644 --- a/plotly/validators/scatter3d/line/colorbar/title/font/_variant.py +++ b/plotly/validators/scatter3d/line/colorbar/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/scatter3d/line/colorbar/title/font/_weight.py b/plotly/validators/scatter3d/line/colorbar/title/font/_weight.py index 650dfcbe80..1ac86ee07d 100644 --- a/plotly/validators/scatter3d/line/colorbar/title/font/_weight.py +++ b/plotly/validators/scatter3d/line/colorbar/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scatter3d/marker/__init__.py b/plotly/validators/scatter3d/marker/__init__.py index df67bfdf21..94e235e239 100644 --- a/plotly/validators/scatter3d/marker/__init__.py +++ b/plotly/validators/scatter3d/marker/__init__.py @@ -1,55 +1,30 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._symbolsrc import SymbolsrcValidator - from ._symbol import SymbolValidator - from ._sizesrc import SizesrcValidator - from ._sizeref import SizerefValidator - from ._sizemode import SizemodeValidator - from ._sizemin import SizeminValidator - from ._size import SizeValidator - from ._showscale import ShowscaleValidator - from ._reversescale import ReversescaleValidator - from ._opacity import OpacityValidator - from ._line import LineValidator - from ._colorsrc import ColorsrcValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._color import ColorValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatter3d/marker/_autocolorscale.py b/plotly/validators/scatter3d/marker/_autocolorscale.py index ea297da088..a5feb8b1b3 100644 --- a/plotly/validators/scatter3d/marker/_autocolorscale.py +++ b/plotly/validators/scatter3d/marker/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scatter3d/marker/_cauto.py b/plotly/validators/scatter3d/marker/_cauto.py index d9b14ddc26..d4c8de06fc 100644 --- a/plotly/validators/scatter3d/marker/_cauto.py +++ b/plotly/validators/scatter3d/marker/_cauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scatter3d/marker/_cmax.py b/plotly/validators/scatter3d/marker/_cmax.py index 1234c7b97e..43a9b65f5e 100644 --- a/plotly/validators/scatter3d/marker/_cmax.py +++ b/plotly/validators/scatter3d/marker/_cmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scatter3d/marker/_cmid.py b/plotly/validators/scatter3d/marker/_cmid.py index f61aa7dd02..aeeeb3c5ee 100644 --- a/plotly/validators/scatter3d/marker/_cmid.py +++ b/plotly/validators/scatter3d/marker/_cmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scatter3d/marker/_cmin.py b/plotly/validators/scatter3d/marker/_cmin.py index 409f8a398a..7d509c6001 100644 --- a/plotly/validators/scatter3d/marker/_cmin.py +++ b/plotly/validators/scatter3d/marker/_cmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scatter3d/marker/_color.py b/plotly/validators/scatter3d/marker/_color.py index 2a6fdad40e..0dc5a3d6c6 100644 --- a/plotly/validators/scatter3d/marker/_color.py +++ b/plotly/validators/scatter3d/marker/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), colorscale_path=kwargs.pop( diff --git a/plotly/validators/scatter3d/marker/_coloraxis.py b/plotly/validators/scatter3d/marker/_coloraxis.py index afabb9845f..5fa9a77dc0 100644 --- a/plotly/validators/scatter3d/marker/_coloraxis.py +++ b/plotly/validators/scatter3d/marker/_coloraxis.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/scatter3d/marker/_colorbar.py b/plotly/validators/scatter3d/marker/_colorbar.py index 9a1043503d..7d4b0d3fa6 100644 --- a/plotly/validators/scatter3d/marker/_colorbar.py +++ b/plotly/validators/scatter3d/marker/_colorbar.py @@ -1,281 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatter3d/marker/_colorscale.py b/plotly/validators/scatter3d/marker/_colorscale.py index eb80064c8c..cc4c110573 100644 --- a/plotly/validators/scatter3d/marker/_colorscale.py +++ b/plotly/validators/scatter3d/marker/_colorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/scatter3d/marker/_colorsrc.py b/plotly/validators/scatter3d/marker/_colorsrc.py index 73389abbfb..e830f8f5fd 100644 --- a/plotly/validators/scatter3d/marker/_colorsrc.py +++ b/plotly/validators/scatter3d/marker/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/marker/_line.py b/plotly/validators/scatter3d/marker/_line.py index 4b51f5c59d..fcd2d982b7 100644 --- a/plotly/validators/scatter3d/marker/_line.py +++ b/plotly/validators/scatter3d/marker/_line.py @@ -1,101 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatter3d/marker/_opacity.py b/plotly/validators/scatter3d/marker/_opacity.py index aa924b93c1..17f2a1a502 100644 --- a/plotly/validators/scatter3d/marker/_opacity.py +++ b/plotly/validators/scatter3d/marker/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), diff --git a/plotly/validators/scatter3d/marker/_reversescale.py b/plotly/validators/scatter3d/marker/_reversescale.py index 1a24d8abe2..67e4fda254 100644 --- a/plotly/validators/scatter3d/marker/_reversescale.py +++ b/plotly/validators/scatter3d/marker/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/marker/_showscale.py b/plotly/validators/scatter3d/marker/_showscale.py index 0b2bcadcab..796662677d 100644 --- a/plotly/validators/scatter3d/marker/_showscale.py +++ b/plotly/validators/scatter3d/marker/_showscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/marker/_size.py b/plotly/validators/scatter3d/marker/_size.py index 5a4ecf2958..b8682a330e 100644 --- a/plotly/validators/scatter3d/marker/_size.py +++ b/plotly/validators/scatter3d/marker/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatter3d/marker/_sizemin.py b/plotly/validators/scatter3d/marker/_sizemin.py index 746c694812..e3873ac201 100644 --- a/plotly/validators/scatter3d/marker/_sizemin.py +++ b/plotly/validators/scatter3d/marker/_sizemin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/marker/_sizemode.py b/plotly/validators/scatter3d/marker/_sizemode.py index b51038d9ec..35a7be0327 100644 --- a/plotly/validators/scatter3d/marker/_sizemode.py +++ b/plotly/validators/scatter3d/marker/_sizemode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["diameter", "area"]), **kwargs, diff --git a/plotly/validators/scatter3d/marker/_sizeref.py b/plotly/validators/scatter3d/marker/_sizeref.py index 854c81f769..b88a667f5d 100644 --- a/plotly/validators/scatter3d/marker/_sizeref.py +++ b/plotly/validators/scatter3d/marker/_sizeref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/marker/_sizesrc.py b/plotly/validators/scatter3d/marker/_sizesrc.py index e6c440d591..1a77f637a1 100644 --- a/plotly/validators/scatter3d/marker/_sizesrc.py +++ b/plotly/validators/scatter3d/marker/_sizesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/marker/_symbol.py b/plotly/validators/scatter3d/marker/_symbol.py index 1f0b388195..1ac9d187f5 100644 --- a/plotly/validators/scatter3d/marker/_symbol.py +++ b/plotly/validators/scatter3d/marker/_symbol.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( diff --git a/plotly/validators/scatter3d/marker/_symbolsrc.py b/plotly/validators/scatter3d/marker/_symbolsrc.py index bbf6d9ef5b..5595fdab74 100644 --- a/plotly/validators/scatter3d/marker/_symbolsrc.py +++ b/plotly/validators/scatter3d/marker/_symbolsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/marker/colorbar/__init__.py b/plotly/validators/scatter3d/marker/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/scatter3d/marker/colorbar/__init__.py +++ b/plotly/validators/scatter3d/marker/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatter3d/marker/colorbar/_bgcolor.py b/plotly/validators/scatter3d/marker/colorbar/_bgcolor.py index b07fea5dc4..c2ac12dd26 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_bgcolor.py +++ b/plotly/validators/scatter3d/marker/colorbar/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/marker/colorbar/_bordercolor.py b/plotly/validators/scatter3d/marker/colorbar/_bordercolor.py index bd7c903ee6..9c773ebc07 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_bordercolor.py +++ b/plotly/validators/scatter3d/marker/colorbar/_bordercolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/marker/colorbar/_borderwidth.py b/plotly/validators/scatter3d/marker/colorbar/_borderwidth.py index 26a4d2a2b6..30d28021af 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_borderwidth.py +++ b/plotly/validators/scatter3d/marker/colorbar/_borderwidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/marker/colorbar/_dtick.py b/plotly/validators/scatter3d/marker/colorbar/_dtick.py index 90f82df075..43dba037b0 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_dtick.py +++ b/plotly/validators/scatter3d/marker/colorbar/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/scatter3d/marker/colorbar/_exponentformat.py b/plotly/validators/scatter3d/marker/colorbar/_exponentformat.py index 8cdba73d5a..ffcfd6274b 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_exponentformat.py +++ b/plotly/validators/scatter3d/marker/colorbar/_exponentformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/scatter3d/marker/colorbar/_labelalias.py b/plotly/validators/scatter3d/marker/colorbar/_labelalias.py index 7b6256f59a..c77ee13ea4 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_labelalias.py +++ b/plotly/validators/scatter3d/marker/colorbar/_labelalias.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/marker/colorbar/_len.py b/plotly/validators/scatter3d/marker/colorbar/_len.py index be818b6b48..7ed3f8be5b 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_len.py +++ b/plotly/validators/scatter3d/marker/colorbar/_len.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/marker/colorbar/_lenmode.py b/plotly/validators/scatter3d/marker/colorbar/_lenmode.py index 6528eefcc4..9ec924b51f 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_lenmode.py +++ b/plotly/validators/scatter3d/marker/colorbar/_lenmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/scatter3d/marker/colorbar/_minexponent.py b/plotly/validators/scatter3d/marker/colorbar/_minexponent.py index 35f234bf43..f87e64db4e 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_minexponent.py +++ b/plotly/validators/scatter3d/marker/colorbar/_minexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/marker/colorbar/_nticks.py b/plotly/validators/scatter3d/marker/colorbar/_nticks.py index 70a97d4a7a..050145c605 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_nticks.py +++ b/plotly/validators/scatter3d/marker/colorbar/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/marker/colorbar/_orientation.py b/plotly/validators/scatter3d/marker/colorbar/_orientation.py index 7b302b54ee..2010e39fb9 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_orientation.py +++ b/plotly/validators/scatter3d/marker/colorbar/_orientation.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/scatter3d/marker/colorbar/_outlinecolor.py b/plotly/validators/scatter3d/marker/colorbar/_outlinecolor.py index 9c8ad73cdc..8a07749f96 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_outlinecolor.py +++ b/plotly/validators/scatter3d/marker/colorbar/_outlinecolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/marker/colorbar/_outlinewidth.py b/plotly/validators/scatter3d/marker/colorbar/_outlinewidth.py index ea86bf2333..d12ce21cd7 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_outlinewidth.py +++ b/plotly/validators/scatter3d/marker/colorbar/_outlinewidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/marker/colorbar/_separatethousands.py b/plotly/validators/scatter3d/marker/colorbar/_separatethousands.py index 1a9049e72e..4aa9030976 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_separatethousands.py +++ b/plotly/validators/scatter3d/marker/colorbar/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/marker/colorbar/_showexponent.py b/plotly/validators/scatter3d/marker/colorbar/_showexponent.py index b5b6ab4871..5405dcf176 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_showexponent.py +++ b/plotly/validators/scatter3d/marker/colorbar/_showexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scatter3d/marker/colorbar/_showticklabels.py b/plotly/validators/scatter3d/marker/colorbar/_showticklabels.py index ce6a9e4101..50ed02d498 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_showticklabels.py +++ b/plotly/validators/scatter3d/marker/colorbar/_showticklabels.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/marker/colorbar/_showtickprefix.py b/plotly/validators/scatter3d/marker/colorbar/_showtickprefix.py index f47f6084ab..8a661a51e6 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_showtickprefix.py +++ b/plotly/validators/scatter3d/marker/colorbar/_showtickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scatter3d/marker/colorbar/_showticksuffix.py b/plotly/validators/scatter3d/marker/colorbar/_showticksuffix.py index 5d767f1cda..42b6f63a50 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_showticksuffix.py +++ b/plotly/validators/scatter3d/marker/colorbar/_showticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scatter3d/marker/colorbar/_thickness.py b/plotly/validators/scatter3d/marker/colorbar/_thickness.py index 29ab16d8f5..a0e6513b35 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_thickness.py +++ b/plotly/validators/scatter3d/marker/colorbar/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/marker/colorbar/_thicknessmode.py b/plotly/validators/scatter3d/marker/colorbar/_thicknessmode.py index 71978b23ad..1ca80a86e2 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_thicknessmode.py +++ b/plotly/validators/scatter3d/marker/colorbar/_thicknessmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/scatter3d/marker/colorbar/_tick0.py b/plotly/validators/scatter3d/marker/colorbar/_tick0.py index 850a1d2da9..f4ee54d2d0 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_tick0.py +++ b/plotly/validators/scatter3d/marker/colorbar/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/scatter3d/marker/colorbar/_tickangle.py b/plotly/validators/scatter3d/marker/colorbar/_tickangle.py index 4eb3951dd7..9cd8529286 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_tickangle.py +++ b/plotly/validators/scatter3d/marker/colorbar/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/marker/colorbar/_tickcolor.py b/plotly/validators/scatter3d/marker/colorbar/_tickcolor.py index 12584141cb..2e30c8ffa4 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_tickcolor.py +++ b/plotly/validators/scatter3d/marker/colorbar/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/marker/colorbar/_tickfont.py b/plotly/validators/scatter3d/marker/colorbar/_tickfont.py index 394f2e011d..479e2d2628 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_tickfont.py +++ b/plotly/validators/scatter3d/marker/colorbar/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/scatter3d/marker/colorbar/_tickformat.py b/plotly/validators/scatter3d/marker/colorbar/_tickformat.py index 23844545c1..737a7d0fa3 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_tickformat.py +++ b/plotly/validators/scatter3d/marker/colorbar/_tickformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/marker/colorbar/_tickformatstopdefaults.py b/plotly/validators/scatter3d/marker/colorbar/_tickformatstopdefaults.py index 560d760668..78572728cf 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/scatter3d/marker/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/scatter3d/marker/colorbar/_tickformatstops.py b/plotly/validators/scatter3d/marker/colorbar/_tickformatstops.py index 095d278a54..d1e5d23940 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_tickformatstops.py +++ b/plotly/validators/scatter3d/marker/colorbar/_tickformatstops.py @@ -1,53 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatter3d/marker/colorbar/_ticklabeloverflow.py b/plotly/validators/scatter3d/marker/colorbar/_ticklabeloverflow.py index f0511cde01..4064b9d6d3 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/scatter3d/marker/colorbar/_ticklabeloverflow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/scatter3d/marker/colorbar/_ticklabelposition.py b/plotly/validators/scatter3d/marker/colorbar/_ticklabelposition.py index d962f68faa..4cab82bf96 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_ticklabelposition.py +++ b/plotly/validators/scatter3d/marker/colorbar/_ticklabelposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/scatter3d/marker/colorbar/_ticklabelstep.py b/plotly/validators/scatter3d/marker/colorbar/_ticklabelstep.py index b00a4ed7e9..b6869d823c 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_ticklabelstep.py +++ b/plotly/validators/scatter3d/marker/colorbar/_ticklabelstep.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scatter3d/marker/colorbar/_ticklen.py b/plotly/validators/scatter3d/marker/colorbar/_ticklen.py index 1271ab1c2f..cbd4702c9d 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_ticklen.py +++ b/plotly/validators/scatter3d/marker/colorbar/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/marker/colorbar/_tickmode.py b/plotly/validators/scatter3d/marker/colorbar/_tickmode.py index 3631269d0c..da6f31f440 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_tickmode.py +++ b/plotly/validators/scatter3d/marker/colorbar/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/scatter3d/marker/colorbar/_tickprefix.py b/plotly/validators/scatter3d/marker/colorbar/_tickprefix.py index 7bf750cb78..8fd2268a91 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_tickprefix.py +++ b/plotly/validators/scatter3d/marker/colorbar/_tickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/marker/colorbar/_ticks.py b/plotly/validators/scatter3d/marker/colorbar/_ticks.py index 316d4d91ee..9af3b66ece 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_ticks.py +++ b/plotly/validators/scatter3d/marker/colorbar/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/scatter3d/marker/colorbar/_ticksuffix.py b/plotly/validators/scatter3d/marker/colorbar/_ticksuffix.py index 847e197576..d5a69861ca 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_ticksuffix.py +++ b/plotly/validators/scatter3d/marker/colorbar/_ticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/marker/colorbar/_ticktext.py b/plotly/validators/scatter3d/marker/colorbar/_ticktext.py index 9352dae8f7..72b0275914 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_ticktext.py +++ b/plotly/validators/scatter3d/marker/colorbar/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/marker/colorbar/_ticktextsrc.py b/plotly/validators/scatter3d/marker/colorbar/_ticktextsrc.py index 2d536e3df7..e33e992d65 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_ticktextsrc.py +++ b/plotly/validators/scatter3d/marker/colorbar/_ticktextsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/marker/colorbar/_tickvals.py b/plotly/validators/scatter3d/marker/colorbar/_tickvals.py index af9c28be75..f41d0c6222 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_tickvals.py +++ b/plotly/validators/scatter3d/marker/colorbar/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/marker/colorbar/_tickvalssrc.py b/plotly/validators/scatter3d/marker/colorbar/_tickvalssrc.py index 1a964b8300..a798a205f7 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_tickvalssrc.py +++ b/plotly/validators/scatter3d/marker/colorbar/_tickvalssrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/marker/colorbar/_tickwidth.py b/plotly/validators/scatter3d/marker/colorbar/_tickwidth.py index 2d330f06af..e2034903d3 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_tickwidth.py +++ b/plotly/validators/scatter3d/marker/colorbar/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/marker/colorbar/_title.py b/plotly/validators/scatter3d/marker/colorbar/_title.py index 01c69afbeb..1713fc0f33 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_title.py +++ b/plotly/validators/scatter3d/marker/colorbar/_title.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatter3d/marker/colorbar/_x.py b/plotly/validators/scatter3d/marker/colorbar/_x.py index bd73c2d214..f28325a77b 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_x.py +++ b/plotly/validators/scatter3d/marker/colorbar/_x.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/marker/colorbar/_xanchor.py b/plotly/validators/scatter3d/marker/colorbar/_xanchor.py index 44801e4193..63166b16a3 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_xanchor.py +++ b/plotly/validators/scatter3d/marker/colorbar/_xanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/scatter3d/marker/colorbar/_xpad.py b/plotly/validators/scatter3d/marker/colorbar/_xpad.py index 8311e32411..053b4160c8 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_xpad.py +++ b/plotly/validators/scatter3d/marker/colorbar/_xpad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/marker/colorbar/_xref.py b/plotly/validators/scatter3d/marker/colorbar/_xref.py index 81b315ae11..c46d4ac090 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_xref.py +++ b/plotly/validators/scatter3d/marker/colorbar/_xref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/scatter3d/marker/colorbar/_y.py b/plotly/validators/scatter3d/marker/colorbar/_y.py index cfaef8d5c0..840dfaf4ca 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_y.py +++ b/plotly/validators/scatter3d/marker/colorbar/_y.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/marker/colorbar/_yanchor.py b/plotly/validators/scatter3d/marker/colorbar/_yanchor.py index c13713f3da..e7730191ac 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_yanchor.py +++ b/plotly/validators/scatter3d/marker/colorbar/_yanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/scatter3d/marker/colorbar/_ypad.py b/plotly/validators/scatter3d/marker/colorbar/_ypad.py index cc58b0eef2..dee6987ccd 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_ypad.py +++ b/plotly/validators/scatter3d/marker/colorbar/_ypad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatter3d/marker/colorbar/_yref.py b/plotly/validators/scatter3d/marker/colorbar/_yref.py index 7e6de12fbd..93eea4b65c 100644 --- a/plotly/validators/scatter3d/marker/colorbar/_yref.py +++ b/plotly/validators/scatter3d/marker/colorbar/_yref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/scatter3d/marker/colorbar/tickfont/__init__.py b/plotly/validators/scatter3d/marker/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/scatter3d/marker/colorbar/tickfont/__init__.py +++ b/plotly/validators/scatter3d/marker/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scatter3d/marker/colorbar/tickfont/_color.py b/plotly/validators/scatter3d/marker/colorbar/tickfont/_color.py index e347735936..586a34f594 100644 --- a/plotly/validators/scatter3d/marker/colorbar/tickfont/_color.py +++ b/plotly/validators/scatter3d/marker/colorbar/tickfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/marker/colorbar/tickfont/_family.py b/plotly/validators/scatter3d/marker/colorbar/tickfont/_family.py index be720be38b..f665c99227 100644 --- a/plotly/validators/scatter3d/marker/colorbar/tickfont/_family.py +++ b/plotly/validators/scatter3d/marker/colorbar/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scatter3d/marker/colorbar/tickfont/_lineposition.py b/plotly/validators/scatter3d/marker/colorbar/tickfont/_lineposition.py index 5bcac68e1e..381ac94671 100644 --- a/plotly/validators/scatter3d/marker/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/scatter3d/marker/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/scatter3d/marker/colorbar/tickfont/_shadow.py b/plotly/validators/scatter3d/marker/colorbar/tickfont/_shadow.py index e76c76bf0f..c2cd8a3d8a 100644 --- a/plotly/validators/scatter3d/marker/colorbar/tickfont/_shadow.py +++ b/plotly/validators/scatter3d/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/marker/colorbar/tickfont/_size.py b/plotly/validators/scatter3d/marker/colorbar/tickfont/_size.py index 40c753833a..ea3b9be71f 100644 --- a/plotly/validators/scatter3d/marker/colorbar/tickfont/_size.py +++ b/plotly/validators/scatter3d/marker/colorbar/tickfont/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scatter3d/marker/colorbar/tickfont/_style.py b/plotly/validators/scatter3d/marker/colorbar/tickfont/_style.py index 27118e0776..f010c45bc0 100644 --- a/plotly/validators/scatter3d/marker/colorbar/tickfont/_style.py +++ b/plotly/validators/scatter3d/marker/colorbar/tickfont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scatter3d/marker/colorbar/tickfont/_textcase.py b/plotly/validators/scatter3d/marker/colorbar/tickfont/_textcase.py index a2eaba214b..a5b742862f 100644 --- a/plotly/validators/scatter3d/marker/colorbar/tickfont/_textcase.py +++ b/plotly/validators/scatter3d/marker/colorbar/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/scatter3d/marker/colorbar/tickfont/_variant.py b/plotly/validators/scatter3d/marker/colorbar/tickfont/_variant.py index 5f575b0ed4..cbcf8fa9b3 100644 --- a/plotly/validators/scatter3d/marker/colorbar/tickfont/_variant.py +++ b/plotly/validators/scatter3d/marker/colorbar/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/scatter3d/marker/colorbar/tickfont/_weight.py b/plotly/validators/scatter3d/marker/colorbar/tickfont/_weight.py index 6f532507ba..dda7ba46e1 100644 --- a/plotly/validators/scatter3d/marker/colorbar/tickfont/_weight.py +++ b/plotly/validators/scatter3d/marker/colorbar/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scatter3d/marker/colorbar/tickformatstop/__init__.py b/plotly/validators/scatter3d/marker/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/scatter3d/marker/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/scatter3d/marker/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_dtickrange.py index 186c73e386..7cd17f40c3 100644 --- a/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_enabled.py b/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_enabled.py index d888ead133..67ec14e82f 100644 --- a/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_name.py b/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_name.py index 9b265afaad..a18a8713f8 100644 --- a/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_name.py +++ b/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_templateitemname.py index fa6a2b515e..4054f434d4 100644 --- a/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_value.py b/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_value.py index 57230795e7..5b857c4ab7 100644 --- a/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_value.py +++ b/plotly/validators/scatter3d/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/marker/colorbar/title/__init__.py b/plotly/validators/scatter3d/marker/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/scatter3d/marker/colorbar/title/__init__.py +++ b/plotly/validators/scatter3d/marker/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/scatter3d/marker/colorbar/title/_font.py b/plotly/validators/scatter3d/marker/colorbar/title/_font.py index c465a43b95..b66980e9cf 100644 --- a/plotly/validators/scatter3d/marker/colorbar/title/_font.py +++ b/plotly/validators/scatter3d/marker/colorbar/title/_font.py @@ -1,63 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/scatter3d/marker/colorbar/title/_side.py b/plotly/validators/scatter3d/marker/colorbar/title/_side.py index d8ad402b00..70c7c8479e 100644 --- a/plotly/validators/scatter3d/marker/colorbar/title/_side.py +++ b/plotly/validators/scatter3d/marker/colorbar/title/_side.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/scatter3d/marker/colorbar/title/_text.py b/plotly/validators/scatter3d/marker/colorbar/title/_text.py index 8c10f4dd00..66c3f81cd9 100644 --- a/plotly/validators/scatter3d/marker/colorbar/title/_text.py +++ b/plotly/validators/scatter3d/marker/colorbar/title/_text.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/marker/colorbar/title/font/__init__.py b/plotly/validators/scatter3d/marker/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/scatter3d/marker/colorbar/title/font/__init__.py +++ b/plotly/validators/scatter3d/marker/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scatter3d/marker/colorbar/title/font/_color.py b/plotly/validators/scatter3d/marker/colorbar/title/font/_color.py index f7d28ef23f..3bf9f0fde5 100644 --- a/plotly/validators/scatter3d/marker/colorbar/title/font/_color.py +++ b/plotly/validators/scatter3d/marker/colorbar/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/marker/colorbar/title/font/_family.py b/plotly/validators/scatter3d/marker/colorbar/title/font/_family.py index 91115a68b8..0c5b3c6f18 100644 --- a/plotly/validators/scatter3d/marker/colorbar/title/font/_family.py +++ b/plotly/validators/scatter3d/marker/colorbar/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scatter3d/marker/colorbar/title/font/_lineposition.py b/plotly/validators/scatter3d/marker/colorbar/title/font/_lineposition.py index 9db07f906f..97a4dfbe90 100644 --- a/plotly/validators/scatter3d/marker/colorbar/title/font/_lineposition.py +++ b/plotly/validators/scatter3d/marker/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/scatter3d/marker/colorbar/title/font/_shadow.py b/plotly/validators/scatter3d/marker/colorbar/title/font/_shadow.py index 2306bf9836..0bb83aec76 100644 --- a/plotly/validators/scatter3d/marker/colorbar/title/font/_shadow.py +++ b/plotly/validators/scatter3d/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/marker/colorbar/title/font/_size.py b/plotly/validators/scatter3d/marker/colorbar/title/font/_size.py index 68a35db225..947f869588 100644 --- a/plotly/validators/scatter3d/marker/colorbar/title/font/_size.py +++ b/plotly/validators/scatter3d/marker/colorbar/title/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scatter3d/marker/colorbar/title/font/_style.py b/plotly/validators/scatter3d/marker/colorbar/title/font/_style.py index ebf85e8695..035a8aca88 100644 --- a/plotly/validators/scatter3d/marker/colorbar/title/font/_style.py +++ b/plotly/validators/scatter3d/marker/colorbar/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scatter3d/marker/colorbar/title/font/_textcase.py b/plotly/validators/scatter3d/marker/colorbar/title/font/_textcase.py index 01932bd667..929632bbdc 100644 --- a/plotly/validators/scatter3d/marker/colorbar/title/font/_textcase.py +++ b/plotly/validators/scatter3d/marker/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/scatter3d/marker/colorbar/title/font/_variant.py b/plotly/validators/scatter3d/marker/colorbar/title/font/_variant.py index bdf5a60a34..7dfe63ed63 100644 --- a/plotly/validators/scatter3d/marker/colorbar/title/font/_variant.py +++ b/plotly/validators/scatter3d/marker/colorbar/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/scatter3d/marker/colorbar/title/font/_weight.py b/plotly/validators/scatter3d/marker/colorbar/title/font/_weight.py index 192a8f29d9..5ea08ffb3a 100644 --- a/plotly/validators/scatter3d/marker/colorbar/title/font/_weight.py +++ b/plotly/validators/scatter3d/marker/colorbar/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scatter3d/marker/line/__init__.py b/plotly/validators/scatter3d/marker/line/__init__.py index cb1dba3be1..d59e454a39 100644 --- a/plotly/validators/scatter3d/marker/line/__init__.py +++ b/plotly/validators/scatter3d/marker/line/__init__.py @@ -1,35 +1,20 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._width import WidthValidator - from ._reversescale import ReversescaleValidator - from ._colorsrc import ColorsrcValidator - from ._colorscale import ColorscaleValidator - from ._coloraxis import ColoraxisValidator - from ._color import ColorValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatter3d/marker/line/_autocolorscale.py b/plotly/validators/scatter3d/marker/line/_autocolorscale.py index 7cbe677269..407dfebb81 100644 --- a/plotly/validators/scatter3d/marker/line/_autocolorscale.py +++ b/plotly/validators/scatter3d/marker/line/_autocolorscale.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scatter3d/marker/line/_cauto.py b/plotly/validators/scatter3d/marker/line/_cauto.py index 887a755de9..542b9b6ab4 100644 --- a/plotly/validators/scatter3d/marker/line/_cauto.py +++ b/plotly/validators/scatter3d/marker/line/_cauto.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scatter3d/marker/line/_cmax.py b/plotly/validators/scatter3d/marker/line/_cmax.py index a908489fbd..9961a83f81 100644 --- a/plotly/validators/scatter3d/marker/line/_cmax.py +++ b/plotly/validators/scatter3d/marker/line/_cmax.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scatter3d/marker/line/_cmid.py b/plotly/validators/scatter3d/marker/line/_cmid.py index dd572905b5..cf84e2ae3e 100644 --- a/plotly/validators/scatter3d/marker/line/_cmid.py +++ b/plotly/validators/scatter3d/marker/line/_cmid.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scatter3d/marker/line/_cmin.py b/plotly/validators/scatter3d/marker/line/_cmin.py index 41440f586c..56d2427a5d 100644 --- a/plotly/validators/scatter3d/marker/line/_cmin.py +++ b/plotly/validators/scatter3d/marker/line/_cmin.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scatter3d/marker/line/_color.py b/plotly/validators/scatter3d/marker/line/_color.py index fcc741a456..e789c2b666 100644 --- a/plotly/validators/scatter3d/marker/line/_color.py +++ b/plotly/validators/scatter3d/marker/line/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), colorscale_path=kwargs.pop( diff --git a/plotly/validators/scatter3d/marker/line/_coloraxis.py b/plotly/validators/scatter3d/marker/line/_coloraxis.py index 923c1cc9ce..c73f09adb9 100644 --- a/plotly/validators/scatter3d/marker/line/_coloraxis.py +++ b/plotly/validators/scatter3d/marker/line/_coloraxis.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/scatter3d/marker/line/_colorscale.py b/plotly/validators/scatter3d/marker/line/_colorscale.py index 786711f414..a81e5e728a 100644 --- a/plotly/validators/scatter3d/marker/line/_colorscale.py +++ b/plotly/validators/scatter3d/marker/line/_colorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/scatter3d/marker/line/_colorsrc.py b/plotly/validators/scatter3d/marker/line/_colorsrc.py index e83a33f52c..b66d32ee6c 100644 --- a/plotly/validators/scatter3d/marker/line/_colorsrc.py +++ b/plotly/validators/scatter3d/marker/line/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/marker/line/_reversescale.py b/plotly/validators/scatter3d/marker/line/_reversescale.py index 51262d6806..520823493d 100644 --- a/plotly/validators/scatter3d/marker/line/_reversescale.py +++ b/plotly/validators/scatter3d/marker/line/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/marker/line/_width.py b/plotly/validators/scatter3d/marker/line/_width.py index af159b59eb..133bd9695b 100644 --- a/plotly/validators/scatter3d/marker/line/_width.py +++ b/plotly/validators/scatter3d/marker/line/_width.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatter3d/projection/__init__.py b/plotly/validators/scatter3d/projection/__init__.py index 52779f59bc..8c47d2db5f 100644 --- a/plotly/validators/scatter3d/projection/__init__.py +++ b/plotly/validators/scatter3d/projection/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] +) diff --git a/plotly/validators/scatter3d/projection/_x.py b/plotly/validators/scatter3d/projection/_x.py index 6560c649cf..1c4408e84c 100644 --- a/plotly/validators/scatter3d/projection/_x.py +++ b/plotly/validators/scatter3d/projection/_x.py @@ -1,23 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatter3d/projection/_y.py b/plotly/validators/scatter3d/projection/_y.py index e6a83c5a1d..ee4664c3be 100644 --- a/plotly/validators/scatter3d/projection/_y.py +++ b/plotly/validators/scatter3d/projection/_y.py @@ -1,23 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatter3d/projection/_z.py b/plotly/validators/scatter3d/projection/_z.py index db4b4de5a7..7a66ec3cd2 100644 --- a/plotly/validators/scatter3d/projection/_z.py +++ b/plotly/validators/scatter3d/projection/_z.py @@ -1,23 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatter3d/projection/x/__init__.py b/plotly/validators/scatter3d/projection/x/__init__.py index 45005776b7..1f45773815 100644 --- a/plotly/validators/scatter3d/projection/x/__init__.py +++ b/plotly/validators/scatter3d/projection/x/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._show.ShowValidator", "._scale.ScaleValidator", "._opacity.OpacityValidator"], +) diff --git a/plotly/validators/scatter3d/projection/x/_opacity.py b/plotly/validators/scatter3d/projection/x/_opacity.py index 44430fa0ab..beb662c635 100644 --- a/plotly/validators/scatter3d/projection/x/_opacity.py +++ b/plotly/validators/scatter3d/projection/x/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatter3d/projection/x/_scale.py b/plotly/validators/scatter3d/projection/x/_scale.py index 8f945191c8..be233cb18d 100644 --- a/plotly/validators/scatter3d/projection/x/_scale.py +++ b/plotly/validators/scatter3d/projection/x/_scale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ScaleValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatter3d/projection/x/_show.py b/plotly/validators/scatter3d/projection/x/_show.py index f82418090d..1264509688 100644 --- a/plotly/validators/scatter3d/projection/x/_show.py +++ b/plotly/validators/scatter3d/projection/x/_show.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/projection/y/__init__.py b/plotly/validators/scatter3d/projection/y/__init__.py index 45005776b7..1f45773815 100644 --- a/plotly/validators/scatter3d/projection/y/__init__.py +++ b/plotly/validators/scatter3d/projection/y/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._show.ShowValidator", "._scale.ScaleValidator", "._opacity.OpacityValidator"], +) diff --git a/plotly/validators/scatter3d/projection/y/_opacity.py b/plotly/validators/scatter3d/projection/y/_opacity.py index a65e91b201..2d8404e147 100644 --- a/plotly/validators/scatter3d/projection/y/_opacity.py +++ b/plotly/validators/scatter3d/projection/y/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatter3d/projection/y/_scale.py b/plotly/validators/scatter3d/projection/y/_scale.py index 2e5a922a6e..8534b6de4d 100644 --- a/plotly/validators/scatter3d/projection/y/_scale.py +++ b/plotly/validators/scatter3d/projection/y/_scale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ScaleValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatter3d/projection/y/_show.py b/plotly/validators/scatter3d/projection/y/_show.py index f75cd1bdd2..abd3422b17 100644 --- a/plotly/validators/scatter3d/projection/y/_show.py +++ b/plotly/validators/scatter3d/projection/y/_show.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/projection/z/__init__.py b/plotly/validators/scatter3d/projection/z/__init__.py index 45005776b7..1f45773815 100644 --- a/plotly/validators/scatter3d/projection/z/__init__.py +++ b/plotly/validators/scatter3d/projection/z/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._show.ShowValidator", "._scale.ScaleValidator", "._opacity.OpacityValidator"], +) diff --git a/plotly/validators/scatter3d/projection/z/_opacity.py b/plotly/validators/scatter3d/projection/z/_opacity.py index 19883878d5..adef389e76 100644 --- a/plotly/validators/scatter3d/projection/z/_opacity.py +++ b/plotly/validators/scatter3d/projection/z/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatter3d/projection/z/_scale.py b/plotly/validators/scatter3d/projection/z/_scale.py index e8c0a9ccaa..13bd55544f 100644 --- a/plotly/validators/scatter3d/projection/z/_scale.py +++ b/plotly/validators/scatter3d/projection/z/_scale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ScaleValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatter3d/projection/z/_show.py b/plotly/validators/scatter3d/projection/z/_show.py index cca198fd3b..3d9bca1fb1 100644 --- a/plotly/validators/scatter3d/projection/z/_show.py +++ b/plotly/validators/scatter3d/projection/z/_show.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatter3d/stream/__init__.py b/plotly/validators/scatter3d/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/scatter3d/stream/__init__.py +++ b/plotly/validators/scatter3d/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/scatter3d/stream/_maxpoints.py b/plotly/validators/scatter3d/stream/_maxpoints.py index 4b7eeb3fc9..a31d9391ee 100644 --- a/plotly/validators/scatter3d/stream/_maxpoints.py +++ b/plotly/validators/scatter3d/stream/_maxpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatter3d/stream/_token.py b/plotly/validators/scatter3d/stream/_token.py index d3e7111304..95f9100e2d 100644 --- a/plotly/validators/scatter3d/stream/_token.py +++ b/plotly/validators/scatter3d/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scatter3d/textfont/__init__.py b/plotly/validators/scatter3d/textfont/__init__.py index d87c37ff7a..35d589957b 100644 --- a/plotly/validators/scatter3d/textfont/__init__.py +++ b/plotly/validators/scatter3d/textfont/__init__.py @@ -1,37 +1,21 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatter3d/textfont/_color.py b/plotly/validators/scatter3d/textfont/_color.py index e109dffc11..de8896bfe6 100644 --- a/plotly/validators/scatter3d/textfont/_color.py +++ b/plotly/validators/scatter3d/textfont/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scatter3d/textfont/_colorsrc.py b/plotly/validators/scatter3d/textfont/_colorsrc.py index 9a6e2c1408..6823cce930 100644 --- a/plotly/validators/scatter3d/textfont/_colorsrc.py +++ b/plotly/validators/scatter3d/textfont/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/textfont/_family.py b/plotly/validators/scatter3d/textfont/_family.py index ecdb237563..9813101ce5 100644 --- a/plotly/validators/scatter3d/textfont/_family.py +++ b/plotly/validators/scatter3d/textfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/scatter3d/textfont/_familysrc.py b/plotly/validators/scatter3d/textfont/_familysrc.py index a74fed52cf..ac9bc8c8ee 100644 --- a/plotly/validators/scatter3d/textfont/_familysrc.py +++ b/plotly/validators/scatter3d/textfont/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/textfont/_size.py b/plotly/validators/scatter3d/textfont/_size.py index 78ca2c4c6e..0998f2b357 100644 --- a/plotly/validators/scatter3d/textfont/_size.py +++ b/plotly/validators/scatter3d/textfont/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/scatter3d/textfont/_sizesrc.py b/plotly/validators/scatter3d/textfont/_sizesrc.py index e7e7084bce..bf49c88382 100644 --- a/plotly/validators/scatter3d/textfont/_sizesrc.py +++ b/plotly/validators/scatter3d/textfont/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/textfont/_style.py b/plotly/validators/scatter3d/textfont/_style.py index 2e73f475cf..78ef93d68b 100644 --- a/plotly/validators/scatter3d/textfont/_style.py +++ b/plotly/validators/scatter3d/textfont/_style.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/scatter3d/textfont/_stylesrc.py b/plotly/validators/scatter3d/textfont/_stylesrc.py index 09ecec3319..8a3c16ed74 100644 --- a/plotly/validators/scatter3d/textfont/_stylesrc.py +++ b/plotly/validators/scatter3d/textfont/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/textfont/_variant.py b/plotly/validators/scatter3d/textfont/_variant.py index b239853ee7..2c14531c07 100644 --- a/plotly/validators/scatter3d/textfont/_variant.py +++ b/plotly/validators/scatter3d/textfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "small-caps"]), diff --git a/plotly/validators/scatter3d/textfont/_variantsrc.py b/plotly/validators/scatter3d/textfont/_variantsrc.py index 02945e49d6..4bccf6568b 100644 --- a/plotly/validators/scatter3d/textfont/_variantsrc.py +++ b/plotly/validators/scatter3d/textfont/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatter3d/textfont/_weight.py b/plotly/validators/scatter3d/textfont/_weight.py index 138df0542b..76f6825d6c 100644 --- a/plotly/validators/scatter3d/textfont/_weight.py +++ b/plotly/validators/scatter3d/textfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/scatter3d/textfont/_weightsrc.py b/plotly/validators/scatter3d/textfont/_weightsrc.py index 23f242498d..16eb4c4752 100644 --- a/plotly/validators/scatter3d/textfont/_weightsrc.py +++ b/plotly/validators/scatter3d/textfont/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/__init__.py b/plotly/validators/scattercarpet/__init__.py index 2a6cd88e3e..4714c2ce84 100644 --- a/plotly/validators/scattercarpet/__init__.py +++ b/plotly/validators/scattercarpet/__init__.py @@ -1,113 +1,59 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zorder import ZorderValidator - from ._yaxis import YaxisValidator - from ._xaxis import XaxisValidator - from ._visible import VisibleValidator - from ._unselected import UnselectedValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._texttemplatesrc import TexttemplatesrcValidator - from ._texttemplate import TexttemplateValidator - from ._textsrc import TextsrcValidator - from ._textpositionsrc import TextpositionsrcValidator - from ._textposition import TextpositionValidator - from ._textfont import TextfontValidator - from ._text import TextValidator - from ._stream import StreamValidator - from ._showlegend import ShowlegendValidator - from ._selectedpoints import SelectedpointsValidator - from ._selected import SelectedValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - from ._mode import ModeValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._marker import MarkerValidator - from ._line import LineValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoveron import HoveronValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._fillcolor import FillcolorValidator - from ._fill import FillValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._connectgaps import ConnectgapsValidator - from ._carpet import CarpetValidator - from ._bsrc import BsrcValidator - from ._b import BValidator - from ._asrc import AsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattercarpet/_a.py b/plotly/validators/scattercarpet/_a.py index 4b796e0f91..5365b422da 100644 --- a/plotly/validators/scattercarpet/_a.py +++ b/plotly/validators/scattercarpet/_a.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/_asrc.py b/plotly/validators/scattercarpet/_asrc.py index 3eef85462b..218a749d74 100644 --- a/plotly/validators/scattercarpet/_asrc.py +++ b/plotly/validators/scattercarpet/_asrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/_b.py b/plotly/validators/scattercarpet/_b.py index 79de8dadc8..665361cdfe 100644 --- a/plotly/validators/scattercarpet/_b.py +++ b/plotly/validators/scattercarpet/_b.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/_bsrc.py b/plotly/validators/scattercarpet/_bsrc.py index 6f5305c0a4..81de272144 100644 --- a/plotly/validators/scattercarpet/_bsrc.py +++ b/plotly/validators/scattercarpet/_bsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/_carpet.py b/plotly/validators/scattercarpet/_carpet.py index 55a5c7ebec..75ab4faff8 100644 --- a/plotly/validators/scattercarpet/_carpet.py +++ b/plotly/validators/scattercarpet/_carpet.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CarpetValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/_connectgaps.py b/plotly/validators/scattercarpet/_connectgaps.py index 6c2ea9c62e..80ba7091f7 100644 --- a/plotly/validators/scattercarpet/_connectgaps.py +++ b/plotly/validators/scattercarpet/_connectgaps.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/_customdata.py b/plotly/validators/scattercarpet/_customdata.py index ff842872a0..8f56b1bba3 100644 --- a/plotly/validators/scattercarpet/_customdata.py +++ b/plotly/validators/scattercarpet/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/_customdatasrc.py b/plotly/validators/scattercarpet/_customdatasrc.py index 3c77561a5a..4dab0bdeba 100644 --- a/plotly/validators/scattercarpet/_customdatasrc.py +++ b/plotly/validators/scattercarpet/_customdatasrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/_fill.py b/plotly/validators/scattercarpet/_fill.py index 2d95e5b914..3bccf3cd09 100644 --- a/plotly/validators/scattercarpet/_fill.py +++ b/plotly/validators/scattercarpet/_fill.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["none", "toself", "tonext"]), **kwargs, diff --git a/plotly/validators/scattercarpet/_fillcolor.py b/plotly/validators/scattercarpet/_fillcolor.py index c2192e2df7..ac5cd4f5a7 100644 --- a/plotly/validators/scattercarpet/_fillcolor.py +++ b/plotly/validators/scattercarpet/_fillcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/_hoverinfo.py b/plotly/validators/scattercarpet/_hoverinfo.py index 96825bb1ff..3ea7a95e33 100644 --- a/plotly/validators/scattercarpet/_hoverinfo.py +++ b/plotly/validators/scattercarpet/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/scattercarpet/_hoverinfosrc.py b/plotly/validators/scattercarpet/_hoverinfosrc.py index de7c27c0d0..81745e896b 100644 --- a/plotly/validators/scattercarpet/_hoverinfosrc.py +++ b/plotly/validators/scattercarpet/_hoverinfosrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/_hoverlabel.py b/plotly/validators/scattercarpet/_hoverlabel.py index 55feac5cd2..cbe9ffccec 100644 --- a/plotly/validators/scattercarpet/_hoverlabel.py +++ b/plotly/validators/scattercarpet/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattercarpet/_hoveron.py b/plotly/validators/scattercarpet/_hoveron.py index b1e9c27064..d2c64f6853 100644 --- a/plotly/validators/scattercarpet/_hoveron.py +++ b/plotly/validators/scattercarpet/_hoveron.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoveronValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), flags=kwargs.pop("flags", ["points", "fills"]), **kwargs, diff --git a/plotly/validators/scattercarpet/_hovertemplate.py b/plotly/validators/scattercarpet/_hovertemplate.py index 87227d6b14..14edfb9491 100644 --- a/plotly/validators/scattercarpet/_hovertemplate.py +++ b/plotly/validators/scattercarpet/_hovertemplate.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scattercarpet/_hovertemplatesrc.py b/plotly/validators/scattercarpet/_hovertemplatesrc.py index 7c3fbff16a..e06939d0f0 100644 --- a/plotly/validators/scattercarpet/_hovertemplatesrc.py +++ b/plotly/validators/scattercarpet/_hovertemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/_hovertext.py b/plotly/validators/scattercarpet/_hovertext.py index 475715b067..fa5915fb53 100644 --- a/plotly/validators/scattercarpet/_hovertext.py +++ b/plotly/validators/scattercarpet/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/scattercarpet/_hovertextsrc.py b/plotly/validators/scattercarpet/_hovertextsrc.py index 45549ca3b7..40f7d34ad8 100644 --- a/plotly/validators/scattercarpet/_hovertextsrc.py +++ b/plotly/validators/scattercarpet/_hovertextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/_ids.py b/plotly/validators/scattercarpet/_ids.py index 711905e858..1e15710bcb 100644 --- a/plotly/validators/scattercarpet/_ids.py +++ b/plotly/validators/scattercarpet/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/_idssrc.py b/plotly/validators/scattercarpet/_idssrc.py index d3e11c606d..b32b6a43f8 100644 --- a/plotly/validators/scattercarpet/_idssrc.py +++ b/plotly/validators/scattercarpet/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/_legend.py b/plotly/validators/scattercarpet/_legend.py index c018a7ae89..860228d804 100644 --- a/plotly/validators/scattercarpet/_legend.py +++ b/plotly/validators/scattercarpet/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/scattercarpet/_legendgroup.py b/plotly/validators/scattercarpet/_legendgroup.py index 50558a8c53..fb642f4490 100644 --- a/plotly/validators/scattercarpet/_legendgroup.py +++ b/plotly/validators/scattercarpet/_legendgroup.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/_legendgrouptitle.py b/plotly/validators/scattercarpet/_legendgrouptitle.py index ec57722f88..0841d5805a 100644 --- a/plotly/validators/scattercarpet/_legendgrouptitle.py +++ b/plotly/validators/scattercarpet/_legendgrouptitle.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattercarpet/_legendrank.py b/plotly/validators/scattercarpet/_legendrank.py index 83cf20ad41..4b8712f308 100644 --- a/plotly/validators/scattercarpet/_legendrank.py +++ b/plotly/validators/scattercarpet/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/_legendwidth.py b/plotly/validators/scattercarpet/_legendwidth.py index 788e67a919..16cdd62d6a 100644 --- a/plotly/validators/scattercarpet/_legendwidth.py +++ b/plotly/validators/scattercarpet/_legendwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattercarpet/_line.py b/plotly/validators/scattercarpet/_line.py index 41c1a8c2d1..10eddcfac0 100644 --- a/plotly/validators/scattercarpet/_line.py +++ b/plotly/validators/scattercarpet/_line.py @@ -1,44 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattercarpet/_marker.py b/plotly/validators/scattercarpet/_marker.py index 80948b07de..b81c44fab0 100644 --- a/plotly/validators/scattercarpet/_marker.py +++ b/plotly/validators/scattercarpet/_marker.py @@ -1,165 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattercarpet/_meta.py b/plotly/validators/scattercarpet/_meta.py index 34e60c2266..a2f6f32430 100644 --- a/plotly/validators/scattercarpet/_meta.py +++ b/plotly/validators/scattercarpet/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/scattercarpet/_metasrc.py b/plotly/validators/scattercarpet/_metasrc.py index cba343cd37..d8c90dd04e 100644 --- a/plotly/validators/scattercarpet/_metasrc.py +++ b/plotly/validators/scattercarpet/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/_mode.py b/plotly/validators/scattercarpet/_mode.py index 4ee5a5940b..e2c7b3b08a 100644 --- a/plotly/validators/scattercarpet/_mode.py +++ b/plotly/validators/scattercarpet/_mode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["lines", "markers", "text"]), diff --git a/plotly/validators/scattercarpet/_name.py b/plotly/validators/scattercarpet/_name.py index adbb32d849..cfd47c9840 100644 --- a/plotly/validators/scattercarpet/_name.py +++ b/plotly/validators/scattercarpet/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/_opacity.py b/plotly/validators/scattercarpet/_opacity.py index a8e1324beb..5410ab909c 100644 --- a/plotly/validators/scattercarpet/_opacity.py +++ b/plotly/validators/scattercarpet/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattercarpet/_selected.py b/plotly/validators/scattercarpet/_selected.py index 08bc9a5640..6a45eff7b3 100644 --- a/plotly/validators/scattercarpet/_selected.py +++ b/plotly/validators/scattercarpet/_selected.py @@ -1,23 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattercarpet/_selectedpoints.py b/plotly/validators/scattercarpet/_selectedpoints.py index f97bf902b5..f30d43f394 100644 --- a/plotly/validators/scattercarpet/_selectedpoints.py +++ b/plotly/validators/scattercarpet/_selectedpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/_showlegend.py b/plotly/validators/scattercarpet/_showlegend.py index 2708b88f04..1a6f62e619 100644 --- a/plotly/validators/scattercarpet/_showlegend.py +++ b/plotly/validators/scattercarpet/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/_stream.py b/plotly/validators/scattercarpet/_stream.py index 9bd596b155..877cbe5aeb 100644 --- a/plotly/validators/scattercarpet/_stream.py +++ b/plotly/validators/scattercarpet/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattercarpet/_text.py b/plotly/validators/scattercarpet/_text.py index e035068b3d..40e35b2a3f 100644 --- a/plotly/validators/scattercarpet/_text.py +++ b/plotly/validators/scattercarpet/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattercarpet/_textfont.py b/plotly/validators/scattercarpet/_textfont.py index 83a3c45b01..ca78dc108e 100644 --- a/plotly/validators/scattercarpet/_textfont.py +++ b/plotly/validators/scattercarpet/_textfont.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/scattercarpet/_textposition.py b/plotly/validators/scattercarpet/_textposition.py index c4089bffc6..9d0f52d566 100644 --- a/plotly/validators/scattercarpet/_textposition.py +++ b/plotly/validators/scattercarpet/_textposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( diff --git a/plotly/validators/scattercarpet/_textpositionsrc.py b/plotly/validators/scattercarpet/_textpositionsrc.py index 937b7297b4..4364e127d8 100644 --- a/plotly/validators/scattercarpet/_textpositionsrc.py +++ b/plotly/validators/scattercarpet/_textpositionsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/_textsrc.py b/plotly/validators/scattercarpet/_textsrc.py index 09c2e079b8..cac129a70b 100644 --- a/plotly/validators/scattercarpet/_textsrc.py +++ b/plotly/validators/scattercarpet/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/_texttemplate.py b/plotly/validators/scattercarpet/_texttemplate.py index 33a9f07448..b1363e6add 100644 --- a/plotly/validators/scattercarpet/_texttemplate.py +++ b/plotly/validators/scattercarpet/_texttemplate.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/scattercarpet/_texttemplatesrc.py b/plotly/validators/scattercarpet/_texttemplatesrc.py index 4a80f38af8..fd69bc91c4 100644 --- a/plotly/validators/scattercarpet/_texttemplatesrc.py +++ b/plotly/validators/scattercarpet/_texttemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/_uid.py b/plotly/validators/scattercarpet/_uid.py index 857394a80b..f39f66e965 100644 --- a/plotly/validators/scattercarpet/_uid.py +++ b/plotly/validators/scattercarpet/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/_uirevision.py b/plotly/validators/scattercarpet/_uirevision.py index a94337daaa..8728402bce 100644 --- a/plotly/validators/scattercarpet/_uirevision.py +++ b/plotly/validators/scattercarpet/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/_unselected.py b/plotly/validators/scattercarpet/_unselected.py index 505a46a304..93e491d297 100644 --- a/plotly/validators/scattercarpet/_unselected.py +++ b/plotly/validators/scattercarpet/_unselected.py @@ -1,23 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattercarpet/_visible.py b/plotly/validators/scattercarpet/_visible.py index 5e71959c15..9ca30bf0a7 100644 --- a/plotly/validators/scattercarpet/_visible.py +++ b/plotly/validators/scattercarpet/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/scattercarpet/_xaxis.py b/plotly/validators/scattercarpet/_xaxis.py index 020d54151a..9106c45e5a 100644 --- a/plotly/validators/scattercarpet/_xaxis.py +++ b/plotly/validators/scattercarpet/_xaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "x"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/scattercarpet/_yaxis.py b/plotly/validators/scattercarpet/_yaxis.py index d31689ebd6..0a5993d78f 100644 --- a/plotly/validators/scattercarpet/_yaxis.py +++ b/plotly/validators/scattercarpet/_yaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "y"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/scattercarpet/_zorder.py b/plotly/validators/scattercarpet/_zorder.py index 2400b66a9a..60b98b765f 100644 --- a/plotly/validators/scattercarpet/_zorder.py +++ b/plotly/validators/scattercarpet/_zorder.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZorderValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/hoverlabel/__init__.py b/plotly/validators/scattercarpet/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/scattercarpet/hoverlabel/__init__.py +++ b/plotly/validators/scattercarpet/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/scattercarpet/hoverlabel/_align.py b/plotly/validators/scattercarpet/hoverlabel/_align.py index ac3a859e54..f6f649c34d 100644 --- a/plotly/validators/scattercarpet/hoverlabel/_align.py +++ b/plotly/validators/scattercarpet/hoverlabel/_align.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/scattercarpet/hoverlabel/_alignsrc.py b/plotly/validators/scattercarpet/hoverlabel/_alignsrc.py index cd2f1c6f75..cc6a24f2dc 100644 --- a/plotly/validators/scattercarpet/hoverlabel/_alignsrc.py +++ b/plotly/validators/scattercarpet/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/hoverlabel/_bgcolor.py b/plotly/validators/scattercarpet/hoverlabel/_bgcolor.py index 847dd1f80b..b3592b221c 100644 --- a/plotly/validators/scattercarpet/hoverlabel/_bgcolor.py +++ b/plotly/validators/scattercarpet/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scattercarpet/hoverlabel/_bgcolorsrc.py b/plotly/validators/scattercarpet/hoverlabel/_bgcolorsrc.py index 5e2ab9797f..e5a5f04019 100644 --- a/plotly/validators/scattercarpet/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/scattercarpet/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/hoverlabel/_bordercolor.py b/plotly/validators/scattercarpet/hoverlabel/_bordercolor.py index 281e0523ce..f4dc265311 100644 --- a/plotly/validators/scattercarpet/hoverlabel/_bordercolor.py +++ b/plotly/validators/scattercarpet/hoverlabel/_bordercolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scattercarpet/hoverlabel/_bordercolorsrc.py b/plotly/validators/scattercarpet/hoverlabel/_bordercolorsrc.py index 0eed31fd5d..e41d761f5f 100644 --- a/plotly/validators/scattercarpet/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/scattercarpet/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/hoverlabel/_font.py b/plotly/validators/scattercarpet/hoverlabel/_font.py index d418fca00a..0d8cd15940 100644 --- a/plotly/validators/scattercarpet/hoverlabel/_font.py +++ b/plotly/validators/scattercarpet/hoverlabel/_font.py @@ -1,87 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/scattercarpet/hoverlabel/_namelength.py b/plotly/validators/scattercarpet/hoverlabel/_namelength.py index 514ea7487d..78db8207d8 100644 --- a/plotly/validators/scattercarpet/hoverlabel/_namelength.py +++ b/plotly/validators/scattercarpet/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/scattercarpet/hoverlabel/_namelengthsrc.py b/plotly/validators/scattercarpet/hoverlabel/_namelengthsrc.py index fb6f8c6fa1..657ed0a1c4 100644 --- a/plotly/validators/scattercarpet/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/scattercarpet/hoverlabel/_namelengthsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/hoverlabel/font/__init__.py b/plotly/validators/scattercarpet/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/scattercarpet/hoverlabel/font/__init__.py +++ b/plotly/validators/scattercarpet/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattercarpet/hoverlabel/font/_color.py b/plotly/validators/scattercarpet/hoverlabel/font/_color.py index d557187ed9..f780e97180 100644 --- a/plotly/validators/scattercarpet/hoverlabel/font/_color.py +++ b/plotly/validators/scattercarpet/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scattercarpet/hoverlabel/font/_colorsrc.py b/plotly/validators/scattercarpet/hoverlabel/font/_colorsrc.py index 734cc24535..4e3f4ff159 100644 --- a/plotly/validators/scattercarpet/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/scattercarpet/hoverlabel/font/_colorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/hoverlabel/font/_family.py b/plotly/validators/scattercarpet/hoverlabel/font/_family.py index a547b392d4..dd25248729 100644 --- a/plotly/validators/scattercarpet/hoverlabel/font/_family.py +++ b/plotly/validators/scattercarpet/hoverlabel/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/scattercarpet/hoverlabel/font/_familysrc.py b/plotly/validators/scattercarpet/hoverlabel/font/_familysrc.py index eb2bc2fc57..ada9fba8c7 100644 --- a/plotly/validators/scattercarpet/hoverlabel/font/_familysrc.py +++ b/plotly/validators/scattercarpet/hoverlabel/font/_familysrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/hoverlabel/font/_lineposition.py b/plotly/validators/scattercarpet/hoverlabel/font/_lineposition.py index 7e124a93b8..d4fc25fcaa 100644 --- a/plotly/validators/scattercarpet/hoverlabel/font/_lineposition.py +++ b/plotly/validators/scattercarpet/hoverlabel/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/scattercarpet/hoverlabel/font/_linepositionsrc.py b/plotly/validators/scattercarpet/hoverlabel/font/_linepositionsrc.py index c1f7a6b59a..ea0d37b232 100644 --- a/plotly/validators/scattercarpet/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/scattercarpet/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/hoverlabel/font/_shadow.py b/plotly/validators/scattercarpet/hoverlabel/font/_shadow.py index 2d8e98e33e..ca27a29ae4 100644 --- a/plotly/validators/scattercarpet/hoverlabel/font/_shadow.py +++ b/plotly/validators/scattercarpet/hoverlabel/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scattercarpet/hoverlabel/font/_shadowsrc.py b/plotly/validators/scattercarpet/hoverlabel/font/_shadowsrc.py index aa817b779a..44f319599d 100644 --- a/plotly/validators/scattercarpet/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/scattercarpet/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/hoverlabel/font/_size.py b/plotly/validators/scattercarpet/hoverlabel/font/_size.py index 4f55b7c689..a7f2ff8cc5 100644 --- a/plotly/validators/scattercarpet/hoverlabel/font/_size.py +++ b/plotly/validators/scattercarpet/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/scattercarpet/hoverlabel/font/_sizesrc.py b/plotly/validators/scattercarpet/hoverlabel/font/_sizesrc.py index 701c9f5ad4..e12063d518 100644 --- a/plotly/validators/scattercarpet/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/scattercarpet/hoverlabel/font/_sizesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/hoverlabel/font/_style.py b/plotly/validators/scattercarpet/hoverlabel/font/_style.py index 21ed336e5b..b0c790c30f 100644 --- a/plotly/validators/scattercarpet/hoverlabel/font/_style.py +++ b/plotly/validators/scattercarpet/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/scattercarpet/hoverlabel/font/_stylesrc.py b/plotly/validators/scattercarpet/hoverlabel/font/_stylesrc.py index 3637136987..5175e4becf 100644 --- a/plotly/validators/scattercarpet/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/scattercarpet/hoverlabel/font/_stylesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/hoverlabel/font/_textcase.py b/plotly/validators/scattercarpet/hoverlabel/font/_textcase.py index efdb75fdf9..be74ac4fce 100644 --- a/plotly/validators/scattercarpet/hoverlabel/font/_textcase.py +++ b/plotly/validators/scattercarpet/hoverlabel/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/scattercarpet/hoverlabel/font/_textcasesrc.py b/plotly/validators/scattercarpet/hoverlabel/font/_textcasesrc.py index 52a89ee152..3f831ebeec 100644 --- a/plotly/validators/scattercarpet/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/scattercarpet/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/hoverlabel/font/_variant.py b/plotly/validators/scattercarpet/hoverlabel/font/_variant.py index bf246b0ab5..191917a199 100644 --- a/plotly/validators/scattercarpet/hoverlabel/font/_variant.py +++ b/plotly/validators/scattercarpet/hoverlabel/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/scattercarpet/hoverlabel/font/_variantsrc.py b/plotly/validators/scattercarpet/hoverlabel/font/_variantsrc.py index ec1ec0fdaf..8f6a3e279d 100644 --- a/plotly/validators/scattercarpet/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/scattercarpet/hoverlabel/font/_variantsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/hoverlabel/font/_weight.py b/plotly/validators/scattercarpet/hoverlabel/font/_weight.py index ff9d32157c..0fb5fcaa9f 100644 --- a/plotly/validators/scattercarpet/hoverlabel/font/_weight.py +++ b/plotly/validators/scattercarpet/hoverlabel/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/scattercarpet/hoverlabel/font/_weightsrc.py b/plotly/validators/scattercarpet/hoverlabel/font/_weightsrc.py index 6bf9b80888..d5fb1da636 100644 --- a/plotly/validators/scattercarpet/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/scattercarpet/hoverlabel/font/_weightsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/legendgrouptitle/__init__.py b/plotly/validators/scattercarpet/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/scattercarpet/legendgrouptitle/__init__.py +++ b/plotly/validators/scattercarpet/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/scattercarpet/legendgrouptitle/_font.py b/plotly/validators/scattercarpet/legendgrouptitle/_font.py index 84793aa2d0..73564337da 100644 --- a/plotly/validators/scattercarpet/legendgrouptitle/_font.py +++ b/plotly/validators/scattercarpet/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/scattercarpet/legendgrouptitle/_text.py b/plotly/validators/scattercarpet/legendgrouptitle/_text.py index 34a0c36b35..c6f7fea01a 100644 --- a/plotly/validators/scattercarpet/legendgrouptitle/_text.py +++ b/plotly/validators/scattercarpet/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/legendgrouptitle/font/__init__.py b/plotly/validators/scattercarpet/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/scattercarpet/legendgrouptitle/font/__init__.py +++ b/plotly/validators/scattercarpet/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scattercarpet/legendgrouptitle/font/_color.py b/plotly/validators/scattercarpet/legendgrouptitle/font/_color.py index 1e2b245519..6ef6c722c9 100644 --- a/plotly/validators/scattercarpet/legendgrouptitle/font/_color.py +++ b/plotly/validators/scattercarpet/legendgrouptitle/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/legendgrouptitle/font/_family.py b/plotly/validators/scattercarpet/legendgrouptitle/font/_family.py index a2fdecfcfe..d25f68debe 100644 --- a/plotly/validators/scattercarpet/legendgrouptitle/font/_family.py +++ b/plotly/validators/scattercarpet/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scattercarpet/legendgrouptitle/font/_lineposition.py b/plotly/validators/scattercarpet/legendgrouptitle/font/_lineposition.py index 2ee04a8466..36c694ecc8 100644 --- a/plotly/validators/scattercarpet/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/scattercarpet/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/scattercarpet/legendgrouptitle/font/_shadow.py b/plotly/validators/scattercarpet/legendgrouptitle/font/_shadow.py index effe300f8b..23c8fab5bc 100644 --- a/plotly/validators/scattercarpet/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/scattercarpet/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/legendgrouptitle/font/_size.py b/plotly/validators/scattercarpet/legendgrouptitle/font/_size.py index e3f4039149..bdc4e299da 100644 --- a/plotly/validators/scattercarpet/legendgrouptitle/font/_size.py +++ b/plotly/validators/scattercarpet/legendgrouptitle/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scattercarpet/legendgrouptitle/font/_style.py b/plotly/validators/scattercarpet/legendgrouptitle/font/_style.py index c198f0d601..279ba4dd70 100644 --- a/plotly/validators/scattercarpet/legendgrouptitle/font/_style.py +++ b/plotly/validators/scattercarpet/legendgrouptitle/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scattercarpet/legendgrouptitle/font/_textcase.py b/plotly/validators/scattercarpet/legendgrouptitle/font/_textcase.py index 589bef4389..e4e516325a 100644 --- a/plotly/validators/scattercarpet/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/scattercarpet/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/scattercarpet/legendgrouptitle/font/_variant.py b/plotly/validators/scattercarpet/legendgrouptitle/font/_variant.py index 6ba0811864..8ba950647f 100644 --- a/plotly/validators/scattercarpet/legendgrouptitle/font/_variant.py +++ b/plotly/validators/scattercarpet/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/scattercarpet/legendgrouptitle/font/_weight.py b/plotly/validators/scattercarpet/legendgrouptitle/font/_weight.py index b8177744bc..a6ae767459 100644 --- a/plotly/validators/scattercarpet/legendgrouptitle/font/_weight.py +++ b/plotly/validators/scattercarpet/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scattercarpet/line/__init__.py b/plotly/validators/scattercarpet/line/__init__.py index 7045562597..d9c0ff9500 100644 --- a/plotly/validators/scattercarpet/line/__init__.py +++ b/plotly/validators/scattercarpet/line/__init__.py @@ -1,27 +1,16 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._width import WidthValidator - from ._smoothing import SmoothingValidator - from ._shape import ShapeValidator - from ._dash import DashValidator - from ._color import ColorValidator - from ._backoffsrc import BackoffsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._width.WidthValidator", + "._smoothing.SmoothingValidator", + "._shape.ShapeValidator", + "._dash.DashValidator", + "._color.ColorValidator", + "._backoffsrc.BackoffsrcValidator", + "._backoff.BackoffValidator", + ], +) diff --git a/plotly/validators/scattercarpet/line/_backoff.py b/plotly/validators/scattercarpet/line/_backoff.py index 43a5882734..cc9125efc3 100644 --- a/plotly/validators/scattercarpet/line/_backoff.py +++ b/plotly/validators/scattercarpet/line/_backoff.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BackoffValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattercarpet/line/_backoffsrc.py b/plotly/validators/scattercarpet/line/_backoffsrc.py index e7cfda5067..b8a759cd02 100644 --- a/plotly/validators/scattercarpet/line/_backoffsrc.py +++ b/plotly/validators/scattercarpet/line/_backoffsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BackoffsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/line/_color.py b/plotly/validators/scattercarpet/line/_color.py index bddc763b1f..cab4d6b7b5 100644 --- a/plotly/validators/scattercarpet/line/_color.py +++ b/plotly/validators/scattercarpet/line/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/line/_dash.py b/plotly/validators/scattercarpet/line/_dash.py index b4c7cab49d..df1567be77 100644 --- a/plotly/validators/scattercarpet/line/_dash.py +++ b/plotly/validators/scattercarpet/line/_dash.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/scattercarpet/line/_shape.py b/plotly/validators/scattercarpet/line/_shape.py index bf3b7d18d1..9c791075b5 100644 --- a/plotly/validators/scattercarpet/line/_shape.py +++ b/plotly/validators/scattercarpet/line/_shape.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["linear", "spline"]), **kwargs, diff --git a/plotly/validators/scattercarpet/line/_smoothing.py b/plotly/validators/scattercarpet/line/_smoothing.py index 246eb890d6..139e25c502 100644 --- a/plotly/validators/scattercarpet/line/_smoothing.py +++ b/plotly/validators/scattercarpet/line/_smoothing.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SmoothingValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), max=kwargs.pop("max", 1.3), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattercarpet/line/_width.py b/plotly/validators/scattercarpet/line/_width.py index 8f408e82de..58cda31229 100644 --- a/plotly/validators/scattercarpet/line/_width.py +++ b/plotly/validators/scattercarpet/line/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/__init__.py b/plotly/validators/scattercarpet/marker/__init__.py index 8434e73e3f..fea9868a7b 100644 --- a/plotly/validators/scattercarpet/marker/__init__.py +++ b/plotly/validators/scattercarpet/marker/__init__.py @@ -1,71 +1,38 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._symbolsrc import SymbolsrcValidator - from ._symbol import SymbolValidator - from ._standoffsrc import StandoffsrcValidator - from ._standoff import StandoffValidator - from ._sizesrc import SizesrcValidator - from ._sizeref import SizerefValidator - from ._sizemode import SizemodeValidator - from ._sizemin import SizeminValidator - from ._size import SizeValidator - from ._showscale import ShowscaleValidator - from ._reversescale import ReversescaleValidator - from ._opacitysrc import OpacitysrcValidator - from ._opacity import OpacityValidator - from ._maxdisplayed import MaxdisplayedValidator - from ._line import LineValidator - from ._gradient import GradientValidator - from ._colorsrc import ColorsrcValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._color import ColorValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - from ._autocolorscale import AutocolorscaleValidator - from ._anglesrc import AnglesrcValidator - from ._angleref import AnglerefValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattercarpet/marker/_angle.py b/plotly/validators/scattercarpet/marker/_angle.py index f5c125465f..62fd0633f9 100644 --- a/plotly/validators/scattercarpet/marker/_angle.py +++ b/plotly/validators/scattercarpet/marker/_angle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AngleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/_angleref.py b/plotly/validators/scattercarpet/marker/_angleref.py index f41f56e480..f708c6acb7 100644 --- a/plotly/validators/scattercarpet/marker/_angleref.py +++ b/plotly/validators/scattercarpet/marker/_angleref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AnglerefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["previous", "up"]), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/_anglesrc.py b/plotly/validators/scattercarpet/marker/_anglesrc.py index 3d469a5002..08f4d3b36b 100644 --- a/plotly/validators/scattercarpet/marker/_anglesrc.py +++ b/plotly/validators/scattercarpet/marker/_anglesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AnglesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/_autocolorscale.py b/plotly/validators/scattercarpet/marker/_autocolorscale.py index a658bed956..85567c8334 100644 --- a/plotly/validators/scattercarpet/marker/_autocolorscale.py +++ b/plotly/validators/scattercarpet/marker/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/_cauto.py b/plotly/validators/scattercarpet/marker/_cauto.py index a405248471..7c3528fc8b 100644 --- a/plotly/validators/scattercarpet/marker/_cauto.py +++ b/plotly/validators/scattercarpet/marker/_cauto.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/_cmax.py b/plotly/validators/scattercarpet/marker/_cmax.py index 9e8f39a9e8..ee89b527f3 100644 --- a/plotly/validators/scattercarpet/marker/_cmax.py +++ b/plotly/validators/scattercarpet/marker/_cmax.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/_cmid.py b/plotly/validators/scattercarpet/marker/_cmid.py index 56671938e9..a5ff51219c 100644 --- a/plotly/validators/scattercarpet/marker/_cmid.py +++ b/plotly/validators/scattercarpet/marker/_cmid.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/_cmin.py b/plotly/validators/scattercarpet/marker/_cmin.py index 8a52fb98d2..7d4bfb36b3 100644 --- a/plotly/validators/scattercarpet/marker/_cmin.py +++ b/plotly/validators/scattercarpet/marker/_cmin.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/_color.py b/plotly/validators/scattercarpet/marker/_color.py index 1eeb4f0fb8..b38d3b0e54 100644 --- a/plotly/validators/scattercarpet/marker/_color.py +++ b/plotly/validators/scattercarpet/marker/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), colorscale_path=kwargs.pop( diff --git a/plotly/validators/scattercarpet/marker/_coloraxis.py b/plotly/validators/scattercarpet/marker/_coloraxis.py index 4d245e514d..3965fb9356 100644 --- a/plotly/validators/scattercarpet/marker/_coloraxis.py +++ b/plotly/validators/scattercarpet/marker/_coloraxis.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/scattercarpet/marker/_colorbar.py b/plotly/validators/scattercarpet/marker/_colorbar.py index 8d2226095e..a4e34c7371 100644 --- a/plotly/validators/scattercarpet/marker/_colorbar.py +++ b/plotly/validators/scattercarpet/marker/_colorbar.py @@ -1,281 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattercarpet/marker/_colorscale.py b/plotly/validators/scattercarpet/marker/_colorscale.py index 56ff5828de..e3fa7314fc 100644 --- a/plotly/validators/scattercarpet/marker/_colorscale.py +++ b/plotly/validators/scattercarpet/marker/_colorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/_colorsrc.py b/plotly/validators/scattercarpet/marker/_colorsrc.py index 4d3627fa2b..dee04c72f4 100644 --- a/plotly/validators/scattercarpet/marker/_colorsrc.py +++ b/plotly/validators/scattercarpet/marker/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/_gradient.py b/plotly/validators/scattercarpet/marker/_gradient.py index 1571d45579..6360ec8d05 100644 --- a/plotly/validators/scattercarpet/marker/_gradient.py +++ b/plotly/validators/scattercarpet/marker/_gradient.py @@ -1,30 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GradientValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattercarpet/marker/_line.py b/plotly/validators/scattercarpet/marker/_line.py index 2eb9d2be32..bc1554ceba 100644 --- a/plotly/validators/scattercarpet/marker/_line.py +++ b/plotly/validators/scattercarpet/marker/_line.py @@ -1,106 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattercarpet/marker/_maxdisplayed.py b/plotly/validators/scattercarpet/marker/_maxdisplayed.py index 96fd3072a7..4dd151e9d9 100644 --- a/plotly/validators/scattercarpet/marker/_maxdisplayed.py +++ b/plotly/validators/scattercarpet/marker/_maxdisplayed.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxdisplayedValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/_opacity.py b/plotly/validators/scattercarpet/marker/_opacity.py index e2cdbb9100..b4a95574e4 100644 --- a/plotly/validators/scattercarpet/marker/_opacity.py +++ b/plotly/validators/scattercarpet/marker/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), diff --git a/plotly/validators/scattercarpet/marker/_opacitysrc.py b/plotly/validators/scattercarpet/marker/_opacitysrc.py index a60fee74c6..070233a2c4 100644 --- a/plotly/validators/scattercarpet/marker/_opacitysrc.py +++ b/plotly/validators/scattercarpet/marker/_opacitysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/_reversescale.py b/plotly/validators/scattercarpet/marker/_reversescale.py index 625ccb04bc..7c93bac675 100644 --- a/plotly/validators/scattercarpet/marker/_reversescale.py +++ b/plotly/validators/scattercarpet/marker/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/_showscale.py b/plotly/validators/scattercarpet/marker/_showscale.py index 4df21f8bf1..3833e8f266 100644 --- a/plotly/validators/scattercarpet/marker/_showscale.py +++ b/plotly/validators/scattercarpet/marker/_showscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/_size.py b/plotly/validators/scattercarpet/marker/_size.py index 7676c02c7b..b5cd12c4b0 100644 --- a/plotly/validators/scattercarpet/marker/_size.py +++ b/plotly/validators/scattercarpet/marker/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattercarpet/marker/_sizemin.py b/plotly/validators/scattercarpet/marker/_sizemin.py index 96c1fcdc8f..f59d5dc5b4 100644 --- a/plotly/validators/scattercarpet/marker/_sizemin.py +++ b/plotly/validators/scattercarpet/marker/_sizemin.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/_sizemode.py b/plotly/validators/scattercarpet/marker/_sizemode.py index f710fc9750..2db864c4f6 100644 --- a/plotly/validators/scattercarpet/marker/_sizemode.py +++ b/plotly/validators/scattercarpet/marker/_sizemode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["diameter", "area"]), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/_sizeref.py b/plotly/validators/scattercarpet/marker/_sizeref.py index 1e39279afb..256c7ca392 100644 --- a/plotly/validators/scattercarpet/marker/_sizeref.py +++ b/plotly/validators/scattercarpet/marker/_sizeref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/_sizesrc.py b/plotly/validators/scattercarpet/marker/_sizesrc.py index b5e2938136..8404167d7d 100644 --- a/plotly/validators/scattercarpet/marker/_sizesrc.py +++ b/plotly/validators/scattercarpet/marker/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/_standoff.py b/plotly/validators/scattercarpet/marker/_standoff.py index ca37ed66f1..56736ba1a8 100644 --- a/plotly/validators/scattercarpet/marker/_standoff.py +++ b/plotly/validators/scattercarpet/marker/_standoff.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StandoffValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattercarpet/marker/_standoffsrc.py b/plotly/validators/scattercarpet/marker/_standoffsrc.py index 096673f377..8e58200e57 100644 --- a/plotly/validators/scattercarpet/marker/_standoffsrc.py +++ b/plotly/validators/scattercarpet/marker/_standoffsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StandoffsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/_symbol.py b/plotly/validators/scattercarpet/marker/_symbol.py index 8a66a7852f..260f22f9ca 100644 --- a/plotly/validators/scattercarpet/marker/_symbol.py +++ b/plotly/validators/scattercarpet/marker/_symbol.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( diff --git a/plotly/validators/scattercarpet/marker/_symbolsrc.py b/plotly/validators/scattercarpet/marker/_symbolsrc.py index 950142054a..51f003c56c 100644 --- a/plotly/validators/scattercarpet/marker/_symbolsrc.py +++ b/plotly/validators/scattercarpet/marker/_symbolsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/colorbar/__init__.py b/plotly/validators/scattercarpet/marker/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/__init__.py +++ b/plotly/validators/scattercarpet/marker/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattercarpet/marker/colorbar/_bgcolor.py b/plotly/validators/scattercarpet/marker/colorbar/_bgcolor.py index 14d8d44017..cef88a200a 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_bgcolor.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_bgcolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/colorbar/_bordercolor.py b/plotly/validators/scattercarpet/marker/colorbar/_bordercolor.py index a7d81afb97..fe1fc7c5e6 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_bordercolor.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_bordercolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/colorbar/_borderwidth.py b/plotly/validators/scattercarpet/marker/colorbar/_borderwidth.py index 6c14054c3a..d4f3a94194 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_borderwidth.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_borderwidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/colorbar/_dtick.py b/plotly/validators/scattercarpet/marker/colorbar/_dtick.py index 52007629e8..1e22e6efbf 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_dtick.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/colorbar/_exponentformat.py b/plotly/validators/scattercarpet/marker/colorbar/_exponentformat.py index 4b7ad45486..cf308b916c 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_exponentformat.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_exponentformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/colorbar/_labelalias.py b/plotly/validators/scattercarpet/marker/colorbar/_labelalias.py index 54598bee82..5ec9f9446a 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_labelalias.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_labelalias.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/colorbar/_len.py b/plotly/validators/scattercarpet/marker/colorbar/_len.py index 909c27f4c9..a02e80d394 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_len.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_len.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/colorbar/_lenmode.py b/plotly/validators/scattercarpet/marker/colorbar/_lenmode.py index 1d950a183d..5b7d7a3fbd 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_lenmode.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_lenmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/colorbar/_minexponent.py b/plotly/validators/scattercarpet/marker/colorbar/_minexponent.py index 899f52cd66..ab202aef4f 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_minexponent.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_minexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/colorbar/_nticks.py b/plotly/validators/scattercarpet/marker/colorbar/_nticks.py index a27230d204..c3747a4af0 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_nticks.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_nticks.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/colorbar/_orientation.py b/plotly/validators/scattercarpet/marker/colorbar/_orientation.py index d9747b0fc2..890a063ad5 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_orientation.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_orientation.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/colorbar/_outlinecolor.py b/plotly/validators/scattercarpet/marker/colorbar/_outlinecolor.py index 21c7ae72f0..ab7a894fe3 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_outlinecolor.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_outlinecolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/colorbar/_outlinewidth.py b/plotly/validators/scattercarpet/marker/colorbar/_outlinewidth.py index 37b2931d50..8e98b304bf 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_outlinewidth.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_outlinewidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/colorbar/_separatethousands.py b/plotly/validators/scattercarpet/marker/colorbar/_separatethousands.py index 47fe1ce672..519afd8d19 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_separatethousands.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/colorbar/_showexponent.py b/plotly/validators/scattercarpet/marker/colorbar/_showexponent.py index 021a46814f..ce37d246f9 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_showexponent.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_showexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/colorbar/_showticklabels.py b/plotly/validators/scattercarpet/marker/colorbar/_showticklabels.py index 4c739cf26a..583cdad1a0 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_showticklabels.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_showticklabels.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/colorbar/_showtickprefix.py b/plotly/validators/scattercarpet/marker/colorbar/_showtickprefix.py index 756fdc9ccc..f8d308cc72 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_showtickprefix.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_showtickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/colorbar/_showticksuffix.py b/plotly/validators/scattercarpet/marker/colorbar/_showticksuffix.py index 65362ecd76..2627d6ce5c 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_showticksuffix.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_showticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/colorbar/_thickness.py b/plotly/validators/scattercarpet/marker/colorbar/_thickness.py index aa69d2bd9c..8ffa31d97c 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_thickness.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_thickness.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/colorbar/_thicknessmode.py b/plotly/validators/scattercarpet/marker/colorbar/_thicknessmode.py index 1aff8c25b0..714efadcc6 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_thicknessmode.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_thicknessmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/colorbar/_tick0.py b/plotly/validators/scattercarpet/marker/colorbar/_tick0.py index 49fb269ac4..b936de7fbb 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_tick0.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/colorbar/_tickangle.py b/plotly/validators/scattercarpet/marker/colorbar/_tickangle.py index 9a7ef6641b..f7af0a8e67 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_tickangle.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_tickangle.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/colorbar/_tickcolor.py b/plotly/validators/scattercarpet/marker/colorbar/_tickcolor.py index 32df0b6588..fc0047f25f 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_tickcolor.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_tickcolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/colorbar/_tickfont.py b/plotly/validators/scattercarpet/marker/colorbar/_tickfont.py index 9404fe8207..12a21ac87f 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_tickfont.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_tickfont.py @@ -1,63 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/scattercarpet/marker/colorbar/_tickformat.py b/plotly/validators/scattercarpet/marker/colorbar/_tickformat.py index 52ca25092e..c759bae397 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_tickformat.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_tickformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/colorbar/_tickformatstopdefaults.py b/plotly/validators/scattercarpet/marker/colorbar/_tickformatstopdefaults.py index c8a7fb0da0..b68fdf7488 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/scattercarpet/marker/colorbar/_tickformatstops.py b/plotly/validators/scattercarpet/marker/colorbar/_tickformatstops.py index 4bca67ff08..78d77ea354 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_tickformatstops.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_tickformatstops.py @@ -1,53 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattercarpet/marker/colorbar/_ticklabeloverflow.py b/plotly/validators/scattercarpet/marker/colorbar/_ticklabeloverflow.py index 44f5514fd4..fbff110daf 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_ticklabeloverflow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/colorbar/_ticklabelposition.py b/plotly/validators/scattercarpet/marker/colorbar/_ticklabelposition.py index b28a577be1..128fd74aa9 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_ticklabelposition.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_ticklabelposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/scattercarpet/marker/colorbar/_ticklabelstep.py b/plotly/validators/scattercarpet/marker/colorbar/_ticklabelstep.py index 8d1dc0bb82..eca48eb572 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_ticklabelstep.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_ticklabelstep.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/colorbar/_ticklen.py b/plotly/validators/scattercarpet/marker/colorbar/_ticklen.py index 24ae73ac23..5d4d9b3623 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_ticklen.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_ticklen.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/colorbar/_tickmode.py b/plotly/validators/scattercarpet/marker/colorbar/_tickmode.py index 83c1465f4c..760424a049 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_tickmode.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_tickmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/scattercarpet/marker/colorbar/_tickprefix.py b/plotly/validators/scattercarpet/marker/colorbar/_tickprefix.py index 5a9b3158f5..88738529e4 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_tickprefix.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_tickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/colorbar/_ticks.py b/plotly/validators/scattercarpet/marker/colorbar/_ticks.py index e1d9fd675e..399445589b 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_ticks.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/colorbar/_ticksuffix.py b/plotly/validators/scattercarpet/marker/colorbar/_ticksuffix.py index 7dd6d7ce8f..e05a522841 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_ticksuffix.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_ticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/colorbar/_ticktext.py b/plotly/validators/scattercarpet/marker/colorbar/_ticktext.py index 9078cc68fd..394423e889 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_ticktext.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_ticktext.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/colorbar/_ticktextsrc.py b/plotly/validators/scattercarpet/marker/colorbar/_ticktextsrc.py index fe2d8279c5..50a9e68588 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_ticktextsrc.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_ticktextsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/colorbar/_tickvals.py b/plotly/validators/scattercarpet/marker/colorbar/_tickvals.py index 3773574430..a924100d64 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_tickvals.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_tickvals.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/colorbar/_tickvalssrc.py b/plotly/validators/scattercarpet/marker/colorbar/_tickvalssrc.py index 2c49686ebf..28aede701c 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_tickvalssrc.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_tickvalssrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/colorbar/_tickwidth.py b/plotly/validators/scattercarpet/marker/colorbar/_tickwidth.py index a5c1a77906..f09272934a 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_tickwidth.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_tickwidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/colorbar/_title.py b/plotly/validators/scattercarpet/marker/colorbar/_title.py index ff2d5ac949..d7a100a7bf 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_title.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_title.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattercarpet/marker/colorbar/_x.py b/plotly/validators/scattercarpet/marker/colorbar/_x.py index 16366085ee..0b1094d467 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_x.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_x.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/colorbar/_xanchor.py b/plotly/validators/scattercarpet/marker/colorbar/_xanchor.py index 5d04c05e97..b297a2a3f3 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_xanchor.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_xanchor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/colorbar/_xpad.py b/plotly/validators/scattercarpet/marker/colorbar/_xpad.py index 1e67b49254..5df6647007 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_xpad.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_xpad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/colorbar/_xref.py b/plotly/validators/scattercarpet/marker/colorbar/_xref.py index eab939038a..cae3d6bd01 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_xref.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_xref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/colorbar/_y.py b/plotly/validators/scattercarpet/marker/colorbar/_y.py index e90c052704..9154eec3cc 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_y.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_y.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/colorbar/_yanchor.py b/plotly/validators/scattercarpet/marker/colorbar/_yanchor.py index 186b5b7d51..3097233373 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_yanchor.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_yanchor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/colorbar/_ypad.py b/plotly/validators/scattercarpet/marker/colorbar/_ypad.py index cfa15b511e..8b73dabc79 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_ypad.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_ypad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/colorbar/_yref.py b/plotly/validators/scattercarpet/marker/colorbar/_yref.py index 2fdab2766d..b6b42a313a 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/_yref.py +++ b/plotly/validators/scattercarpet/marker/colorbar/_yref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/colorbar/tickfont/__init__.py b/plotly/validators/scattercarpet/marker/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/tickfont/__init__.py +++ b/plotly/validators/scattercarpet/marker/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scattercarpet/marker/colorbar/tickfont/_color.py b/plotly/validators/scattercarpet/marker/colorbar/tickfont/_color.py index 4f3e47e6c1..92c2d6bd86 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/tickfont/_color.py +++ b/plotly/validators/scattercarpet/marker/colorbar/tickfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/colorbar/tickfont/_family.py b/plotly/validators/scattercarpet/marker/colorbar/tickfont/_family.py index 8cf7e70ad8..75846370be 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/tickfont/_family.py +++ b/plotly/validators/scattercarpet/marker/colorbar/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scattercarpet/marker/colorbar/tickfont/_lineposition.py b/plotly/validators/scattercarpet/marker/colorbar/tickfont/_lineposition.py index 79182f3836..658273ee75 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/scattercarpet/marker/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/scattercarpet/marker/colorbar/tickfont/_shadow.py b/plotly/validators/scattercarpet/marker/colorbar/tickfont/_shadow.py index 48ae865387..d021e37cd9 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/tickfont/_shadow.py +++ b/plotly/validators/scattercarpet/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/colorbar/tickfont/_size.py b/plotly/validators/scattercarpet/marker/colorbar/tickfont/_size.py index 86e0c213fc..936aa20e9e 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/tickfont/_size.py +++ b/plotly/validators/scattercarpet/marker/colorbar/tickfont/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/colorbar/tickfont/_style.py b/plotly/validators/scattercarpet/marker/colorbar/tickfont/_style.py index bf56014668..f4d9af0682 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/tickfont/_style.py +++ b/plotly/validators/scattercarpet/marker/colorbar/tickfont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/colorbar/tickfont/_textcase.py b/plotly/validators/scattercarpet/marker/colorbar/tickfont/_textcase.py index bfcc614c34..e38f6ab5b1 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/tickfont/_textcase.py +++ b/plotly/validators/scattercarpet/marker/colorbar/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/colorbar/tickfont/_variant.py b/plotly/validators/scattercarpet/marker/colorbar/tickfont/_variant.py index 12f482e4aa..788586c11f 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/tickfont/_variant.py +++ b/plotly/validators/scattercarpet/marker/colorbar/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/scattercarpet/marker/colorbar/tickfont/_weight.py b/plotly/validators/scattercarpet/marker/colorbar/tickfont/_weight.py index 082e9e3b9d..d09eddb134 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/tickfont/_weight.py +++ b/plotly/validators/scattercarpet/marker/colorbar/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/__init__.py b/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_dtickrange.py index bcdb24c318..736a21508b 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( "items", diff --git a/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_enabled.py b/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_enabled.py index 09d124c1b2..3e5a465138 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_name.py b/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_name.py index 63a065256f..0dfce685a3 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_name.py +++ b/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_templateitemname.py index 3d1a1841b0..2bba17f20f 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_value.py b/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_value.py index 82f8fda17a..43ebfc421f 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_value.py +++ b/plotly/validators/scattercarpet/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/colorbar/title/__init__.py b/plotly/validators/scattercarpet/marker/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/title/__init__.py +++ b/plotly/validators/scattercarpet/marker/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/scattercarpet/marker/colorbar/title/_font.py b/plotly/validators/scattercarpet/marker/colorbar/title/_font.py index f0906bbfb2..82a8393a89 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/title/_font.py +++ b/plotly/validators/scattercarpet/marker/colorbar/title/_font.py @@ -1,63 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/scattercarpet/marker/colorbar/title/_side.py b/plotly/validators/scattercarpet/marker/colorbar/title/_side.py index 49917508db..2823463d07 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/title/_side.py +++ b/plotly/validators/scattercarpet/marker/colorbar/title/_side.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/colorbar/title/_text.py b/plotly/validators/scattercarpet/marker/colorbar/title/_text.py index d5b74f2fad..14df69f60b 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/title/_text.py +++ b/plotly/validators/scattercarpet/marker/colorbar/title/_text.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/colorbar/title/font/__init__.py b/plotly/validators/scattercarpet/marker/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/title/font/__init__.py +++ b/plotly/validators/scattercarpet/marker/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scattercarpet/marker/colorbar/title/font/_color.py b/plotly/validators/scattercarpet/marker/colorbar/title/font/_color.py index a7e6569fb5..70c116939d 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/title/font/_color.py +++ b/plotly/validators/scattercarpet/marker/colorbar/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/colorbar/title/font/_family.py b/plotly/validators/scattercarpet/marker/colorbar/title/font/_family.py index 46dd394b7d..53d8972899 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/title/font/_family.py +++ b/plotly/validators/scattercarpet/marker/colorbar/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scattercarpet/marker/colorbar/title/font/_lineposition.py b/plotly/validators/scattercarpet/marker/colorbar/title/font/_lineposition.py index 8b04ada878..ecab48c883 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/title/font/_lineposition.py +++ b/plotly/validators/scattercarpet/marker/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/scattercarpet/marker/colorbar/title/font/_shadow.py b/plotly/validators/scattercarpet/marker/colorbar/title/font/_shadow.py index 7da9153fb3..f0fee0dc95 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/title/font/_shadow.py +++ b/plotly/validators/scattercarpet/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/colorbar/title/font/_size.py b/plotly/validators/scattercarpet/marker/colorbar/title/font/_size.py index 8237d52eca..fff4240492 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/title/font/_size.py +++ b/plotly/validators/scattercarpet/marker/colorbar/title/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/colorbar/title/font/_style.py b/plotly/validators/scattercarpet/marker/colorbar/title/font/_style.py index 512db0b933..61018d6f7e 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/title/font/_style.py +++ b/plotly/validators/scattercarpet/marker/colorbar/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/colorbar/title/font/_textcase.py b/plotly/validators/scattercarpet/marker/colorbar/title/font/_textcase.py index 4f47cdf47f..c21a62fcf3 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/title/font/_textcase.py +++ b/plotly/validators/scattercarpet/marker/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/colorbar/title/font/_variant.py b/plotly/validators/scattercarpet/marker/colorbar/title/font/_variant.py index c552cc6172..546ec2ce72 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/title/font/_variant.py +++ b/plotly/validators/scattercarpet/marker/colorbar/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/scattercarpet/marker/colorbar/title/font/_weight.py b/plotly/validators/scattercarpet/marker/colorbar/title/font/_weight.py index 8f4cc32565..789be155b7 100644 --- a/plotly/validators/scattercarpet/marker/colorbar/title/font/_weight.py +++ b/plotly/validators/scattercarpet/marker/colorbar/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scattercarpet/marker/gradient/__init__.py b/plotly/validators/scattercarpet/marker/gradient/__init__.py index 624a280ea4..f5373e7822 100644 --- a/plotly/validators/scattercarpet/marker/gradient/__init__.py +++ b/plotly/validators/scattercarpet/marker/gradient/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._typesrc import TypesrcValidator - from ._type import TypeValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._typesrc.TypesrcValidator", + "._type.TypeValidator", + "._colorsrc.ColorsrcValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scattercarpet/marker/gradient/_color.py b/plotly/validators/scattercarpet/marker/gradient/_color.py index 44dfe26a2f..892b42fd41 100644 --- a/plotly/validators/scattercarpet/marker/gradient/_color.py +++ b/plotly/validators/scattercarpet/marker/gradient/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/gradient/_colorsrc.py b/plotly/validators/scattercarpet/marker/gradient/_colorsrc.py index 96465db791..c68fc13bc3 100644 --- a/plotly/validators/scattercarpet/marker/gradient/_colorsrc.py +++ b/plotly/validators/scattercarpet/marker/gradient/_colorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/gradient/_type.py b/plotly/validators/scattercarpet/marker/gradient/_type.py index 43d6a2f59f..7249765a66 100644 --- a/plotly/validators/scattercarpet/marker/gradient/_type.py +++ b/plotly/validators/scattercarpet/marker/gradient/_type.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/scattercarpet/marker/gradient/_typesrc.py b/plotly/validators/scattercarpet/marker/gradient/_typesrc.py index 6e33fa6383..677eb6184d 100644 --- a/plotly/validators/scattercarpet/marker/gradient/_typesrc.py +++ b/plotly/validators/scattercarpet/marker/gradient/_typesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/line/__init__.py b/plotly/validators/scattercarpet/marker/line/__init__.py index facbe33f88..4ba3ea340b 100644 --- a/plotly/validators/scattercarpet/marker/line/__init__.py +++ b/plotly/validators/scattercarpet/marker/line/__init__.py @@ -1,37 +1,21 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._widthsrc import WidthsrcValidator - from ._width import WidthValidator - from ._reversescale import ReversescaleValidator - from ._colorsrc import ColorsrcValidator - from ._colorscale import ColorscaleValidator - from ._coloraxis import ColoraxisValidator - from ._color import ColorValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattercarpet/marker/line/_autocolorscale.py b/plotly/validators/scattercarpet/marker/line/_autocolorscale.py index 003b42a478..4d30a0aba2 100644 --- a/plotly/validators/scattercarpet/marker/line/_autocolorscale.py +++ b/plotly/validators/scattercarpet/marker/line/_autocolorscale.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/line/_cauto.py b/plotly/validators/scattercarpet/marker/line/_cauto.py index 1792950d16..5781844024 100644 --- a/plotly/validators/scattercarpet/marker/line/_cauto.py +++ b/plotly/validators/scattercarpet/marker/line/_cauto.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/line/_cmax.py b/plotly/validators/scattercarpet/marker/line/_cmax.py index b2419e987d..813a521aa0 100644 --- a/plotly/validators/scattercarpet/marker/line/_cmax.py +++ b/plotly/validators/scattercarpet/marker/line/_cmax.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/line/_cmid.py b/plotly/validators/scattercarpet/marker/line/_cmid.py index d755b2accd..54f228a7b7 100644 --- a/plotly/validators/scattercarpet/marker/line/_cmid.py +++ b/plotly/validators/scattercarpet/marker/line/_cmid.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/line/_cmin.py b/plotly/validators/scattercarpet/marker/line/_cmin.py index ea7443b0d2..e5a1c104ea 100644 --- a/plotly/validators/scattercarpet/marker/line/_cmin.py +++ b/plotly/validators/scattercarpet/marker/line/_cmin.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/line/_color.py b/plotly/validators/scattercarpet/marker/line/_color.py index aa83de730b..11a9dacd02 100644 --- a/plotly/validators/scattercarpet/marker/line/_color.py +++ b/plotly/validators/scattercarpet/marker/line/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), colorscale_path=kwargs.pop( diff --git a/plotly/validators/scattercarpet/marker/line/_coloraxis.py b/plotly/validators/scattercarpet/marker/line/_coloraxis.py index 9e081a9a23..75368326e0 100644 --- a/plotly/validators/scattercarpet/marker/line/_coloraxis.py +++ b/plotly/validators/scattercarpet/marker/line/_coloraxis.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/scattercarpet/marker/line/_colorscale.py b/plotly/validators/scattercarpet/marker/line/_colorscale.py index 651b0a448d..c96f5a5fbd 100644 --- a/plotly/validators/scattercarpet/marker/line/_colorscale.py +++ b/plotly/validators/scattercarpet/marker/line/_colorscale.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/scattercarpet/marker/line/_colorsrc.py b/plotly/validators/scattercarpet/marker/line/_colorsrc.py index 205692ff6c..13cd251b98 100644 --- a/plotly/validators/scattercarpet/marker/line/_colorsrc.py +++ b/plotly/validators/scattercarpet/marker/line/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/line/_reversescale.py b/plotly/validators/scattercarpet/marker/line/_reversescale.py index 8adeea7679..7a1788383d 100644 --- a/plotly/validators/scattercarpet/marker/line/_reversescale.py +++ b/plotly/validators/scattercarpet/marker/line/_reversescale.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/marker/line/_width.py b/plotly/validators/scattercarpet/marker/line/_width.py index 16add7fbe9..d6e8574641 100644 --- a/plotly/validators/scattercarpet/marker/line/_width.py +++ b/plotly/validators/scattercarpet/marker/line/_width.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattercarpet/marker/line/_widthsrc.py b/plotly/validators/scattercarpet/marker/line/_widthsrc.py index 9127cf566f..c87a5187ee 100644 --- a/plotly/validators/scattercarpet/marker/line/_widthsrc.py +++ b/plotly/validators/scattercarpet/marker/line/_widthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/selected/__init__.py b/plotly/validators/scattercarpet/selected/__init__.py index 3b0aeed383..9d2a313b83 100644 --- a/plotly/validators/scattercarpet/selected/__init__.py +++ b/plotly/validators/scattercarpet/selected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] +) diff --git a/plotly/validators/scattercarpet/selected/_marker.py b/plotly/validators/scattercarpet/selected/_marker.py index 4ccd864da6..a2e97574bc 100644 --- a/plotly/validators/scattercarpet/selected/_marker.py +++ b/plotly/validators/scattercarpet/selected/_marker.py @@ -1,23 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattercarpet/selected/_textfont.py b/plotly/validators/scattercarpet/selected/_textfont.py index 512f1181c8..80fdc60656 100644 --- a/plotly/validators/scattercarpet/selected/_textfont.py +++ b/plotly/validators/scattercarpet/selected/_textfont.py @@ -1,19 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattercarpet/selected/marker/__init__.py b/plotly/validators/scattercarpet/selected/marker/__init__.py index 8c321a38bc..c9c7226fe4 100644 --- a/plotly/validators/scattercarpet/selected/marker/__init__.py +++ b/plotly/validators/scattercarpet/selected/marker/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._size.SizeValidator", "._opacity.OpacityValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/scattercarpet/selected/marker/_color.py b/plotly/validators/scattercarpet/selected/marker/_color.py index af81930c0e..a87e37c1d0 100644 --- a/plotly/validators/scattercarpet/selected/marker/_color.py +++ b/plotly/validators/scattercarpet/selected/marker/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/selected/marker/_opacity.py b/plotly/validators/scattercarpet/selected/marker/_opacity.py index f6584e6cab..92672df498 100644 --- a/plotly/validators/scattercarpet/selected/marker/_opacity.py +++ b/plotly/validators/scattercarpet/selected/marker/_opacity.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattercarpet/selected/marker/_size.py b/plotly/validators/scattercarpet/selected/marker/_size.py index e6745d42a0..8db37660ef 100644 --- a/plotly/validators/scattercarpet/selected/marker/_size.py +++ b/plotly/validators/scattercarpet/selected/marker/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattercarpet/selected/textfont/__init__.py b/plotly/validators/scattercarpet/selected/textfont/__init__.py index a9f087e5af..85a4cc9573 100644 --- a/plotly/validators/scattercarpet/selected/textfont/__init__.py +++ b/plotly/validators/scattercarpet/selected/textfont/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._color.ColorValidator"] +) diff --git a/plotly/validators/scattercarpet/selected/textfont/_color.py b/plotly/validators/scattercarpet/selected/textfont/_color.py index fa97b35361..3f76862908 100644 --- a/plotly/validators/scattercarpet/selected/textfont/_color.py +++ b/plotly/validators/scattercarpet/selected/textfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/stream/__init__.py b/plotly/validators/scattercarpet/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/scattercarpet/stream/__init__.py +++ b/plotly/validators/scattercarpet/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/scattercarpet/stream/_maxpoints.py b/plotly/validators/scattercarpet/stream/_maxpoints.py index bb86d46112..4bb0d9f44d 100644 --- a/plotly/validators/scattercarpet/stream/_maxpoints.py +++ b/plotly/validators/scattercarpet/stream/_maxpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattercarpet/stream/_token.py b/plotly/validators/scattercarpet/stream/_token.py index 4f70acb406..7fd87728b7 100644 --- a/plotly/validators/scattercarpet/stream/_token.py +++ b/plotly/validators/scattercarpet/stream/_token.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scattercarpet/textfont/__init__.py b/plotly/validators/scattercarpet/textfont/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/scattercarpet/textfont/__init__.py +++ b/plotly/validators/scattercarpet/textfont/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattercarpet/textfont/_color.py b/plotly/validators/scattercarpet/textfont/_color.py index 3758b5c9a2..4b5802f942 100644 --- a/plotly/validators/scattercarpet/textfont/_color.py +++ b/plotly/validators/scattercarpet/textfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/scattercarpet/textfont/_colorsrc.py b/plotly/validators/scattercarpet/textfont/_colorsrc.py index 185d6d538d..1bc0ca51df 100644 --- a/plotly/validators/scattercarpet/textfont/_colorsrc.py +++ b/plotly/validators/scattercarpet/textfont/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/textfont/_family.py b/plotly/validators/scattercarpet/textfont/_family.py index 42020c181a..c898e6f10e 100644 --- a/plotly/validators/scattercarpet/textfont/_family.py +++ b/plotly/validators/scattercarpet/textfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/scattercarpet/textfont/_familysrc.py b/plotly/validators/scattercarpet/textfont/_familysrc.py index 9570b6f228..0cd111d509 100644 --- a/plotly/validators/scattercarpet/textfont/_familysrc.py +++ b/plotly/validators/scattercarpet/textfont/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/textfont/_lineposition.py b/plotly/validators/scattercarpet/textfont/_lineposition.py index cc21e7cf70..4716585f65 100644 --- a/plotly/validators/scattercarpet/textfont/_lineposition.py +++ b/plotly/validators/scattercarpet/textfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/scattercarpet/textfont/_linepositionsrc.py b/plotly/validators/scattercarpet/textfont/_linepositionsrc.py index 3575b8c7f5..f27fa22f8e 100644 --- a/plotly/validators/scattercarpet/textfont/_linepositionsrc.py +++ b/plotly/validators/scattercarpet/textfont/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/textfont/_shadow.py b/plotly/validators/scattercarpet/textfont/_shadow.py index 610a87df60..5e77f09583 100644 --- a/plotly/validators/scattercarpet/textfont/_shadow.py +++ b/plotly/validators/scattercarpet/textfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattercarpet/textfont/_shadowsrc.py b/plotly/validators/scattercarpet/textfont/_shadowsrc.py index 5f75f61463..a18ff4d0b5 100644 --- a/plotly/validators/scattercarpet/textfont/_shadowsrc.py +++ b/plotly/validators/scattercarpet/textfont/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/textfont/_size.py b/plotly/validators/scattercarpet/textfont/_size.py index 0d843093a5..d73d970462 100644 --- a/plotly/validators/scattercarpet/textfont/_size.py +++ b/plotly/validators/scattercarpet/textfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/scattercarpet/textfont/_sizesrc.py b/plotly/validators/scattercarpet/textfont/_sizesrc.py index 4f2edf3fb3..280723fb43 100644 --- a/plotly/validators/scattercarpet/textfont/_sizesrc.py +++ b/plotly/validators/scattercarpet/textfont/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/textfont/_style.py b/plotly/validators/scattercarpet/textfont/_style.py index e35f2dba16..418b9946fa 100644 --- a/plotly/validators/scattercarpet/textfont/_style.py +++ b/plotly/validators/scattercarpet/textfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/scattercarpet/textfont/_stylesrc.py b/plotly/validators/scattercarpet/textfont/_stylesrc.py index ace1520775..731a1d66f3 100644 --- a/plotly/validators/scattercarpet/textfont/_stylesrc.py +++ b/plotly/validators/scattercarpet/textfont/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/textfont/_textcase.py b/plotly/validators/scattercarpet/textfont/_textcase.py index 48d8d15990..6a3ef17093 100644 --- a/plotly/validators/scattercarpet/textfont/_textcase.py +++ b/plotly/validators/scattercarpet/textfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/scattercarpet/textfont/_textcasesrc.py b/plotly/validators/scattercarpet/textfont/_textcasesrc.py index 2c6b1d0e8e..12c3c766e1 100644 --- a/plotly/validators/scattercarpet/textfont/_textcasesrc.py +++ b/plotly/validators/scattercarpet/textfont/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/textfont/_variant.py b/plotly/validators/scattercarpet/textfont/_variant.py index 87dfcc45f4..3572705428 100644 --- a/plotly/validators/scattercarpet/textfont/_variant.py +++ b/plotly/validators/scattercarpet/textfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( diff --git a/plotly/validators/scattercarpet/textfont/_variantsrc.py b/plotly/validators/scattercarpet/textfont/_variantsrc.py index 5ea2e23288..e5e4c5ec1b 100644 --- a/plotly/validators/scattercarpet/textfont/_variantsrc.py +++ b/plotly/validators/scattercarpet/textfont/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/textfont/_weight.py b/plotly/validators/scattercarpet/textfont/_weight.py index baf0015ead..e7a896c7e4 100644 --- a/plotly/validators/scattercarpet/textfont/_weight.py +++ b/plotly/validators/scattercarpet/textfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/scattercarpet/textfont/_weightsrc.py b/plotly/validators/scattercarpet/textfont/_weightsrc.py index bedc19e002..a518668ea7 100644 --- a/plotly/validators/scattercarpet/textfont/_weightsrc.py +++ b/plotly/validators/scattercarpet/textfont/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/unselected/__init__.py b/plotly/validators/scattercarpet/unselected/__init__.py index 3b0aeed383..9d2a313b83 100644 --- a/plotly/validators/scattercarpet/unselected/__init__.py +++ b/plotly/validators/scattercarpet/unselected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] +) diff --git a/plotly/validators/scattercarpet/unselected/_marker.py b/plotly/validators/scattercarpet/unselected/_marker.py index d3cb334186..f8bf7d6799 100644 --- a/plotly/validators/scattercarpet/unselected/_marker.py +++ b/plotly/validators/scattercarpet/unselected/_marker.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattercarpet/unselected/_textfont.py b/plotly/validators/scattercarpet/unselected/_textfont.py index 6cc481316b..0d232b137b 100644 --- a/plotly/validators/scattercarpet/unselected/_textfont.py +++ b/plotly/validators/scattercarpet/unselected/_textfont.py @@ -1,20 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattercarpet/unselected/marker/__init__.py b/plotly/validators/scattercarpet/unselected/marker/__init__.py index 8c321a38bc..c9c7226fe4 100644 --- a/plotly/validators/scattercarpet/unselected/marker/__init__.py +++ b/plotly/validators/scattercarpet/unselected/marker/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._size.SizeValidator", "._opacity.OpacityValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/scattercarpet/unselected/marker/_color.py b/plotly/validators/scattercarpet/unselected/marker/_color.py index 7c4d37b690..33219e9608 100644 --- a/plotly/validators/scattercarpet/unselected/marker/_color.py +++ b/plotly/validators/scattercarpet/unselected/marker/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattercarpet/unselected/marker/_opacity.py b/plotly/validators/scattercarpet/unselected/marker/_opacity.py index ac3a547829..c2f109becd 100644 --- a/plotly/validators/scattercarpet/unselected/marker/_opacity.py +++ b/plotly/validators/scattercarpet/unselected/marker/_opacity.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattercarpet/unselected/marker/_size.py b/plotly/validators/scattercarpet/unselected/marker/_size.py index 7cdfb46f46..250fcbc5c8 100644 --- a/plotly/validators/scattercarpet/unselected/marker/_size.py +++ b/plotly/validators/scattercarpet/unselected/marker/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattercarpet/unselected/textfont/__init__.py b/plotly/validators/scattercarpet/unselected/textfont/__init__.py index a9f087e5af..85a4cc9573 100644 --- a/plotly/validators/scattercarpet/unselected/textfont/__init__.py +++ b/plotly/validators/scattercarpet/unselected/textfont/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._color.ColorValidator"] +) diff --git a/plotly/validators/scattercarpet/unselected/textfont/_color.py b/plotly/validators/scattercarpet/unselected/textfont/_color.py index 5053e14f1d..7215c49549 100644 --- a/plotly/validators/scattercarpet/unselected/textfont/_color.py +++ b/plotly/validators/scattercarpet/unselected/textfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattergeo/__init__.py b/plotly/validators/scattergeo/__init__.py index fd1f0586a2..920b558fa0 100644 --- a/plotly/validators/scattergeo/__init__.py +++ b/plotly/validators/scattergeo/__init__.py @@ -1,115 +1,60 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._visible import VisibleValidator - from ._unselected import UnselectedValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._texttemplatesrc import TexttemplatesrcValidator - from ._texttemplate import TexttemplateValidator - from ._textsrc import TextsrcValidator - from ._textpositionsrc import TextpositionsrcValidator - from ._textposition import TextpositionValidator - from ._textfont import TextfontValidator - from ._text import TextValidator - from ._stream import StreamValidator - from ._showlegend import ShowlegendValidator - from ._selectedpoints import SelectedpointsValidator - from ._selected import SelectedValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - from ._mode import ModeValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._marker import MarkerValidator - from ._lonsrc import LonsrcValidator - from ._lon import LonValidator - from ._locationssrc import LocationssrcValidator - from ._locations import LocationsValidator - from ._locationmode import LocationmodeValidator - from ._line import LineValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._latsrc import LatsrcValidator - from ._lat import LatValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._geojson import GeojsonValidator - from ._geo import GeoValidator - from ._fillcolor import FillcolorValidator - from ._fill import FillValidator - from ._featureidkey import FeatureidkeyValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattergeo/_connectgaps.py b/plotly/validators/scattergeo/_connectgaps.py index c0e43ad24c..de4fc51be2 100644 --- a/plotly/validators/scattergeo/_connectgaps.py +++ b/plotly/validators/scattergeo/_connectgaps.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/_customdata.py b/plotly/validators/scattergeo/_customdata.py index 987668b3b4..3fec428d22 100644 --- a/plotly/validators/scattergeo/_customdata.py +++ b/plotly/validators/scattergeo/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/_customdatasrc.py b/plotly/validators/scattergeo/_customdatasrc.py index 366b856e69..b51452648d 100644 --- a/plotly/validators/scattergeo/_customdatasrc.py +++ b/plotly/validators/scattergeo/_customdatasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/_featureidkey.py b/plotly/validators/scattergeo/_featureidkey.py index 285101b46a..aa0ee4e064 100644 --- a/plotly/validators/scattergeo/_featureidkey.py +++ b/plotly/validators/scattergeo/_featureidkey.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FeatureidkeyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/_fill.py b/plotly/validators/scattergeo/_fill.py index 477a0d953e..6553271c33 100644 --- a/plotly/validators/scattergeo/_fill.py +++ b/plotly/validators/scattergeo/_fill.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["none", "toself"]), **kwargs, diff --git a/plotly/validators/scattergeo/_fillcolor.py b/plotly/validators/scattergeo/_fillcolor.py index a17e6188e0..9a915e7d4c 100644 --- a/plotly/validators/scattergeo/_fillcolor.py +++ b/plotly/validators/scattergeo/_fillcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/_geo.py b/plotly/validators/scattergeo/_geo.py index 7dab6184bc..76fb2b8ad1 100644 --- a/plotly/validators/scattergeo/_geo.py +++ b/plotly/validators/scattergeo/_geo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GeoValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "geo"), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattergeo/_geojson.py b/plotly/validators/scattergeo/_geojson.py index b4e9705cd6..33ec97fb9b 100644 --- a/plotly/validators/scattergeo/_geojson.py +++ b/plotly/validators/scattergeo/_geojson.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GeojsonValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/_hoverinfo.py b/plotly/validators/scattergeo/_hoverinfo.py index be74e724e0..7f371d8eef 100644 --- a/plotly/validators/scattergeo/_hoverinfo.py +++ b/plotly/validators/scattergeo/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/scattergeo/_hoverinfosrc.py b/plotly/validators/scattergeo/_hoverinfosrc.py index b2d4022c9d..54a811b399 100644 --- a/plotly/validators/scattergeo/_hoverinfosrc.py +++ b/plotly/validators/scattergeo/_hoverinfosrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/_hoverlabel.py b/plotly/validators/scattergeo/_hoverlabel.py index baedba345e..92e2bcf36a 100644 --- a/plotly/validators/scattergeo/_hoverlabel.py +++ b/plotly/validators/scattergeo/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattergeo/_hovertemplate.py b/plotly/validators/scattergeo/_hovertemplate.py index a82de196e7..9318f9fe1e 100644 --- a/plotly/validators/scattergeo/_hovertemplate.py +++ b/plotly/validators/scattergeo/_hovertemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattergeo/_hovertemplatesrc.py b/plotly/validators/scattergeo/_hovertemplatesrc.py index 2ce4f12778..9784f7fd8e 100644 --- a/plotly/validators/scattergeo/_hovertemplatesrc.py +++ b/plotly/validators/scattergeo/_hovertemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/_hovertext.py b/plotly/validators/scattergeo/_hovertext.py index dd7d14a804..777ce1100e 100644 --- a/plotly/validators/scattergeo/_hovertext.py +++ b/plotly/validators/scattergeo/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattergeo/_hovertextsrc.py b/plotly/validators/scattergeo/_hovertextsrc.py index d8714f0bb3..3d4bbbd207 100644 --- a/plotly/validators/scattergeo/_hovertextsrc.py +++ b/plotly/validators/scattergeo/_hovertextsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/_ids.py b/plotly/validators/scattergeo/_ids.py index fd17b831d6..2ece010329 100644 --- a/plotly/validators/scattergeo/_ids.py +++ b/plotly/validators/scattergeo/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/_idssrc.py b/plotly/validators/scattergeo/_idssrc.py index 01e9b87c26..068cc5b290 100644 --- a/plotly/validators/scattergeo/_idssrc.py +++ b/plotly/validators/scattergeo/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/_lat.py b/plotly/validators/scattergeo/_lat.py index 2e1d76e027..23e4fd6437 100644 --- a/plotly/validators/scattergeo/_lat.py +++ b/plotly/validators/scattergeo/_lat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LatValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/_latsrc.py b/plotly/validators/scattergeo/_latsrc.py index 8c4203afcd..3a57ae8995 100644 --- a/plotly/validators/scattergeo/_latsrc.py +++ b/plotly/validators/scattergeo/_latsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LatsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/_legend.py b/plotly/validators/scattergeo/_legend.py index 797123073a..0aa5b6227a 100644 --- a/plotly/validators/scattergeo/_legend.py +++ b/plotly/validators/scattergeo/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/scattergeo/_legendgroup.py b/plotly/validators/scattergeo/_legendgroup.py index 6cf7d52220..741a255c7b 100644 --- a/plotly/validators/scattergeo/_legendgroup.py +++ b/plotly/validators/scattergeo/_legendgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattergeo/_legendgrouptitle.py b/plotly/validators/scattergeo/_legendgrouptitle.py index b106e0b799..a9cff29e38 100644 --- a/plotly/validators/scattergeo/_legendgrouptitle.py +++ b/plotly/validators/scattergeo/_legendgrouptitle.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattergeo/_legendrank.py b/plotly/validators/scattergeo/_legendrank.py index 9557cb7803..86836864d1 100644 --- a/plotly/validators/scattergeo/_legendrank.py +++ b/plotly/validators/scattergeo/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattergeo/_legendwidth.py b/plotly/validators/scattergeo/_legendwidth.py index 5c5c4d003e..de127c220d 100644 --- a/plotly/validators/scattergeo/_legendwidth.py +++ b/plotly/validators/scattergeo/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergeo/_line.py b/plotly/validators/scattergeo/_line.py index f820ef78af..57ebc03141 100644 --- a/plotly/validators/scattergeo/_line.py +++ b/plotly/validators/scattergeo/_line.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattergeo/_locationmode.py b/plotly/validators/scattergeo/_locationmode.py index fce0b83675..3903eb917b 100644 --- a/plotly/validators/scattergeo/_locationmode.py +++ b/plotly/validators/scattergeo/_locationmode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LocationmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", ["ISO-3", "USA-states", "country names", "geojson-id"] diff --git a/plotly/validators/scattergeo/_locations.py b/plotly/validators/scattergeo/_locations.py index 36e7b05eb9..b2fb29c397 100644 --- a/plotly/validators/scattergeo/_locations.py +++ b/plotly/validators/scattergeo/_locations.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LocationsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/_locationssrc.py b/plotly/validators/scattergeo/_locationssrc.py index 95db52e455..ba6ab59788 100644 --- a/plotly/validators/scattergeo/_locationssrc.py +++ b/plotly/validators/scattergeo/_locationssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LocationssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/_lon.py b/plotly/validators/scattergeo/_lon.py index 32472916de..6e8423fb13 100644 --- a/plotly/validators/scattergeo/_lon.py +++ b/plotly/validators/scattergeo/_lon.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LonValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/_lonsrc.py b/plotly/validators/scattergeo/_lonsrc.py index c6ac8c5490..9b56e2eb0c 100644 --- a/plotly/validators/scattergeo/_lonsrc.py +++ b/plotly/validators/scattergeo/_lonsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LonsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/_marker.py b/plotly/validators/scattergeo/_marker.py index 099726f979..a161740ffa 100644 --- a/plotly/validators/scattergeo/_marker.py +++ b/plotly/validators/scattergeo/_marker.py @@ -1,164 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattergeo/_meta.py b/plotly/validators/scattergeo/_meta.py index 01d11c35d7..863f36f661 100644 --- a/plotly/validators/scattergeo/_meta.py +++ b/plotly/validators/scattergeo/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/scattergeo/_metasrc.py b/plotly/validators/scattergeo/_metasrc.py index d192d8f267..0f04641601 100644 --- a/plotly/validators/scattergeo/_metasrc.py +++ b/plotly/validators/scattergeo/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/_mode.py b/plotly/validators/scattergeo/_mode.py index 5a68eb3363..88a42450d8 100644 --- a/plotly/validators/scattergeo/_mode.py +++ b/plotly/validators/scattergeo/_mode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["lines", "markers", "text"]), diff --git a/plotly/validators/scattergeo/_name.py b/plotly/validators/scattergeo/_name.py index 1a0640d841..072a8949a9 100644 --- a/plotly/validators/scattergeo/_name.py +++ b/plotly/validators/scattergeo/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattergeo/_opacity.py b/plotly/validators/scattergeo/_opacity.py index 2b21869bdb..02bdca53f3 100644 --- a/plotly/validators/scattergeo/_opacity.py +++ b/plotly/validators/scattergeo/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattergeo/_selected.py b/plotly/validators/scattergeo/_selected.py index e29d965717..a7622828c2 100644 --- a/plotly/validators/scattergeo/_selected.py +++ b/plotly/validators/scattergeo/_selected.py @@ -1,23 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattergeo/_selectedpoints.py b/plotly/validators/scattergeo/_selectedpoints.py index e74d6348cd..de2c110f5f 100644 --- a/plotly/validators/scattergeo/_selectedpoints.py +++ b/plotly/validators/scattergeo/_selectedpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/_showlegend.py b/plotly/validators/scattergeo/_showlegend.py index 03f7d79902..027d9d2230 100644 --- a/plotly/validators/scattergeo/_showlegend.py +++ b/plotly/validators/scattergeo/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattergeo/_stream.py b/plotly/validators/scattergeo/_stream.py index 676215c7ed..207d1ddc17 100644 --- a/plotly/validators/scattergeo/_stream.py +++ b/plotly/validators/scattergeo/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattergeo/_text.py b/plotly/validators/scattergeo/_text.py index 347d5bd236..8b9ce2c818 100644 --- a/plotly/validators/scattergeo/_text.py +++ b/plotly/validators/scattergeo/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattergeo/_textfont.py b/plotly/validators/scattergeo/_textfont.py index 2a211359b8..b7d4328006 100644 --- a/plotly/validators/scattergeo/_textfont.py +++ b/plotly/validators/scattergeo/_textfont.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/scattergeo/_textposition.py b/plotly/validators/scattergeo/_textposition.py index 2658b4e53e..5c1fe0d650 100644 --- a/plotly/validators/scattergeo/_textposition.py +++ b/plotly/validators/scattergeo/_textposition.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( diff --git a/plotly/validators/scattergeo/_textpositionsrc.py b/plotly/validators/scattergeo/_textpositionsrc.py index 7404f1c3ef..627c715d12 100644 --- a/plotly/validators/scattergeo/_textpositionsrc.py +++ b/plotly/validators/scattergeo/_textpositionsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/_textsrc.py b/plotly/validators/scattergeo/_textsrc.py index 5621e1cd2e..b2e624400b 100644 --- a/plotly/validators/scattergeo/_textsrc.py +++ b/plotly/validators/scattergeo/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/_texttemplate.py b/plotly/validators/scattergeo/_texttemplate.py index e38dbc3de2..3d92e7d2b4 100644 --- a/plotly/validators/scattergeo/_texttemplate.py +++ b/plotly/validators/scattergeo/_texttemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattergeo/_texttemplatesrc.py b/plotly/validators/scattergeo/_texttemplatesrc.py index f31311935a..3a6fe7793c 100644 --- a/plotly/validators/scattergeo/_texttemplatesrc.py +++ b/plotly/validators/scattergeo/_texttemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/_uid.py b/plotly/validators/scattergeo/_uid.py index de1ce3fd39..78d2beddb4 100644 --- a/plotly/validators/scattergeo/_uid.py +++ b/plotly/validators/scattergeo/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/scattergeo/_uirevision.py b/plotly/validators/scattergeo/_uirevision.py index b96df6e52d..7f1936b121 100644 --- a/plotly/validators/scattergeo/_uirevision.py +++ b/plotly/validators/scattergeo/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/_unselected.py b/plotly/validators/scattergeo/_unselected.py index 7f50cec248..c2de91357d 100644 --- a/plotly/validators/scattergeo/_unselected.py +++ b/plotly/validators/scattergeo/_unselected.py @@ -1,23 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattergeo/_visible.py b/plotly/validators/scattergeo/_visible.py index d8ab0ebb17..9b5f29d506 100644 --- a/plotly/validators/scattergeo/_visible.py +++ b/plotly/validators/scattergeo/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/scattergeo/hoverlabel/__init__.py b/plotly/validators/scattergeo/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/scattergeo/hoverlabel/__init__.py +++ b/plotly/validators/scattergeo/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/scattergeo/hoverlabel/_align.py b/plotly/validators/scattergeo/hoverlabel/_align.py index 1f357e5487..9589f2af57 100644 --- a/plotly/validators/scattergeo/hoverlabel/_align.py +++ b/plotly/validators/scattergeo/hoverlabel/_align.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/scattergeo/hoverlabel/_alignsrc.py b/plotly/validators/scattergeo/hoverlabel/_alignsrc.py index 2efe0fc6dc..ca59ed21b9 100644 --- a/plotly/validators/scattergeo/hoverlabel/_alignsrc.py +++ b/plotly/validators/scattergeo/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/hoverlabel/_bgcolor.py b/plotly/validators/scattergeo/hoverlabel/_bgcolor.py index 5fb6f19a4b..ee87f129af 100644 --- a/plotly/validators/scattergeo/hoverlabel/_bgcolor.py +++ b/plotly/validators/scattergeo/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scattergeo/hoverlabel/_bgcolorsrc.py b/plotly/validators/scattergeo/hoverlabel/_bgcolorsrc.py index 9d3cb4d62e..2efa1bfec9 100644 --- a/plotly/validators/scattergeo/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/scattergeo/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/hoverlabel/_bordercolor.py b/plotly/validators/scattergeo/hoverlabel/_bordercolor.py index f61ad982fb..7ba70b0d9a 100644 --- a/plotly/validators/scattergeo/hoverlabel/_bordercolor.py +++ b/plotly/validators/scattergeo/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scattergeo/hoverlabel/_bordercolorsrc.py b/plotly/validators/scattergeo/hoverlabel/_bordercolorsrc.py index 5f52ba12ea..1b7b070e20 100644 --- a/plotly/validators/scattergeo/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/scattergeo/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/hoverlabel/_font.py b/plotly/validators/scattergeo/hoverlabel/_font.py index 17a3a00b5e..e54c741562 100644 --- a/plotly/validators/scattergeo/hoverlabel/_font.py +++ b/plotly/validators/scattergeo/hoverlabel/_font.py @@ -1,87 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/scattergeo/hoverlabel/_namelength.py b/plotly/validators/scattergeo/hoverlabel/_namelength.py index 3568b4bfd8..c9c718967f 100644 --- a/plotly/validators/scattergeo/hoverlabel/_namelength.py +++ b/plotly/validators/scattergeo/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/scattergeo/hoverlabel/_namelengthsrc.py b/plotly/validators/scattergeo/hoverlabel/_namelengthsrc.py index e8ba385033..96e688f03f 100644 --- a/plotly/validators/scattergeo/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/scattergeo/hoverlabel/_namelengthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/hoverlabel/font/__init__.py b/plotly/validators/scattergeo/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/scattergeo/hoverlabel/font/__init__.py +++ b/plotly/validators/scattergeo/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattergeo/hoverlabel/font/_color.py b/plotly/validators/scattergeo/hoverlabel/font/_color.py index 865c8a3b52..9e04d184db 100644 --- a/plotly/validators/scattergeo/hoverlabel/font/_color.py +++ b/plotly/validators/scattergeo/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scattergeo/hoverlabel/font/_colorsrc.py b/plotly/validators/scattergeo/hoverlabel/font/_colorsrc.py index 9f4b61ec13..b8e412c869 100644 --- a/plotly/validators/scattergeo/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/scattergeo/hoverlabel/font/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/hoverlabel/font/_family.py b/plotly/validators/scattergeo/hoverlabel/font/_family.py index dca9574c24..d7df75cc0d 100644 --- a/plotly/validators/scattergeo/hoverlabel/font/_family.py +++ b/plotly/validators/scattergeo/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/scattergeo/hoverlabel/font/_familysrc.py b/plotly/validators/scattergeo/hoverlabel/font/_familysrc.py index 6432ab515d..6d458f25db 100644 --- a/plotly/validators/scattergeo/hoverlabel/font/_familysrc.py +++ b/plotly/validators/scattergeo/hoverlabel/font/_familysrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/hoverlabel/font/_lineposition.py b/plotly/validators/scattergeo/hoverlabel/font/_lineposition.py index 08a7544db1..8842383c12 100644 --- a/plotly/validators/scattergeo/hoverlabel/font/_lineposition.py +++ b/plotly/validators/scattergeo/hoverlabel/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/scattergeo/hoverlabel/font/_linepositionsrc.py b/plotly/validators/scattergeo/hoverlabel/font/_linepositionsrc.py index 893b858bbd..800004a9c6 100644 --- a/plotly/validators/scattergeo/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/scattergeo/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/hoverlabel/font/_shadow.py b/plotly/validators/scattergeo/hoverlabel/font/_shadow.py index 592cfb8128..2fd78b39ed 100644 --- a/plotly/validators/scattergeo/hoverlabel/font/_shadow.py +++ b/plotly/validators/scattergeo/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scattergeo/hoverlabel/font/_shadowsrc.py b/plotly/validators/scattergeo/hoverlabel/font/_shadowsrc.py index 685bcc5e5e..e96951bb13 100644 --- a/plotly/validators/scattergeo/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/scattergeo/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/hoverlabel/font/_size.py b/plotly/validators/scattergeo/hoverlabel/font/_size.py index 047977a1d7..8ddfe31875 100644 --- a/plotly/validators/scattergeo/hoverlabel/font/_size.py +++ b/plotly/validators/scattergeo/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/scattergeo/hoverlabel/font/_sizesrc.py b/plotly/validators/scattergeo/hoverlabel/font/_sizesrc.py index 746b0e923d..3c0b9db568 100644 --- a/plotly/validators/scattergeo/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/scattergeo/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/hoverlabel/font/_style.py b/plotly/validators/scattergeo/hoverlabel/font/_style.py index fb4bf5589c..fd1135a5ce 100644 --- a/plotly/validators/scattergeo/hoverlabel/font/_style.py +++ b/plotly/validators/scattergeo/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/scattergeo/hoverlabel/font/_stylesrc.py b/plotly/validators/scattergeo/hoverlabel/font/_stylesrc.py index 30a5242186..9228a7bee6 100644 --- a/plotly/validators/scattergeo/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/scattergeo/hoverlabel/font/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/hoverlabel/font/_textcase.py b/plotly/validators/scattergeo/hoverlabel/font/_textcase.py index f46dcd091a..d654bcb823 100644 --- a/plotly/validators/scattergeo/hoverlabel/font/_textcase.py +++ b/plotly/validators/scattergeo/hoverlabel/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/scattergeo/hoverlabel/font/_textcasesrc.py b/plotly/validators/scattergeo/hoverlabel/font/_textcasesrc.py index 5aebd510dd..a90253a0c4 100644 --- a/plotly/validators/scattergeo/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/scattergeo/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/hoverlabel/font/_variant.py b/plotly/validators/scattergeo/hoverlabel/font/_variant.py index 5d6f287fd0..82a895cab4 100644 --- a/plotly/validators/scattergeo/hoverlabel/font/_variant.py +++ b/plotly/validators/scattergeo/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/scattergeo/hoverlabel/font/_variantsrc.py b/plotly/validators/scattergeo/hoverlabel/font/_variantsrc.py index 58069c2454..11033df7db 100644 --- a/plotly/validators/scattergeo/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/scattergeo/hoverlabel/font/_variantsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/hoverlabel/font/_weight.py b/plotly/validators/scattergeo/hoverlabel/font/_weight.py index c98e65e0f1..d78752d055 100644 --- a/plotly/validators/scattergeo/hoverlabel/font/_weight.py +++ b/plotly/validators/scattergeo/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/scattergeo/hoverlabel/font/_weightsrc.py b/plotly/validators/scattergeo/hoverlabel/font/_weightsrc.py index d4b422fe43..a89bf823d8 100644 --- a/plotly/validators/scattergeo/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/scattergeo/hoverlabel/font/_weightsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/legendgrouptitle/__init__.py b/plotly/validators/scattergeo/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/scattergeo/legendgrouptitle/__init__.py +++ b/plotly/validators/scattergeo/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/scattergeo/legendgrouptitle/_font.py b/plotly/validators/scattergeo/legendgrouptitle/_font.py index cf5af5ded5..7ddc06eef3 100644 --- a/plotly/validators/scattergeo/legendgrouptitle/_font.py +++ b/plotly/validators/scattergeo/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/scattergeo/legendgrouptitle/_text.py b/plotly/validators/scattergeo/legendgrouptitle/_text.py index 205e8f7f39..c2f3f9181b 100644 --- a/plotly/validators/scattergeo/legendgrouptitle/_text.py +++ b/plotly/validators/scattergeo/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattergeo/legendgrouptitle/font/__init__.py b/plotly/validators/scattergeo/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/scattergeo/legendgrouptitle/font/__init__.py +++ b/plotly/validators/scattergeo/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scattergeo/legendgrouptitle/font/_color.py b/plotly/validators/scattergeo/legendgrouptitle/font/_color.py index 2a5cacd593..df5b8cc2f6 100644 --- a/plotly/validators/scattergeo/legendgrouptitle/font/_color.py +++ b/plotly/validators/scattergeo/legendgrouptitle/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattergeo/legendgrouptitle/font/_family.py b/plotly/validators/scattergeo/legendgrouptitle/font/_family.py index 85adebfb28..8ca3c238ea 100644 --- a/plotly/validators/scattergeo/legendgrouptitle/font/_family.py +++ b/plotly/validators/scattergeo/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scattergeo/legendgrouptitle/font/_lineposition.py b/plotly/validators/scattergeo/legendgrouptitle/font/_lineposition.py index bea3dba47c..f31de8626e 100644 --- a/plotly/validators/scattergeo/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/scattergeo/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/scattergeo/legendgrouptitle/font/_shadow.py b/plotly/validators/scattergeo/legendgrouptitle/font/_shadow.py index 1373d48557..1298b7cf7c 100644 --- a/plotly/validators/scattergeo/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/scattergeo/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattergeo/legendgrouptitle/font/_size.py b/plotly/validators/scattergeo/legendgrouptitle/font/_size.py index 30df6561cb..acaab89dd6 100644 --- a/plotly/validators/scattergeo/legendgrouptitle/font/_size.py +++ b/plotly/validators/scattergeo/legendgrouptitle/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scattergeo/legendgrouptitle/font/_style.py b/plotly/validators/scattergeo/legendgrouptitle/font/_style.py index aa64318af2..8c6df7d59d 100644 --- a/plotly/validators/scattergeo/legendgrouptitle/font/_style.py +++ b/plotly/validators/scattergeo/legendgrouptitle/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scattergeo/legendgrouptitle/font/_textcase.py b/plotly/validators/scattergeo/legendgrouptitle/font/_textcase.py index 44d71906a5..92d3b35f51 100644 --- a/plotly/validators/scattergeo/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/scattergeo/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/scattergeo/legendgrouptitle/font/_variant.py b/plotly/validators/scattergeo/legendgrouptitle/font/_variant.py index eb15ca13a7..8c4be282d1 100644 --- a/plotly/validators/scattergeo/legendgrouptitle/font/_variant.py +++ b/plotly/validators/scattergeo/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/scattergeo/legendgrouptitle/font/_weight.py b/plotly/validators/scattergeo/legendgrouptitle/font/_weight.py index c5c20d9056..9de8c01439 100644 --- a/plotly/validators/scattergeo/legendgrouptitle/font/_weight.py +++ b/plotly/validators/scattergeo/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scattergeo/line/__init__.py b/plotly/validators/scattergeo/line/__init__.py index cff4146651..c5140ef758 100644 --- a/plotly/validators/scattergeo/line/__init__.py +++ b/plotly/validators/scattergeo/line/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._width.WidthValidator", "._dash.DashValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/scattergeo/line/_color.py b/plotly/validators/scattergeo/line/_color.py index ef2f6ece50..4e80f740dd 100644 --- a/plotly/validators/scattergeo/line/_color.py +++ b/plotly/validators/scattergeo/line/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/line/_dash.py b/plotly/validators/scattergeo/line/_dash.py index 19e0141147..8cd0e4c67d 100644 --- a/plotly/validators/scattergeo/line/_dash.py +++ b/plotly/validators/scattergeo/line/_dash.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/scattergeo/line/_width.py b/plotly/validators/scattergeo/line/_width.py index 67016792b0..80279ef498 100644 --- a/plotly/validators/scattergeo/line/_width.py +++ b/plotly/validators/scattergeo/line/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergeo/marker/__init__.py b/plotly/validators/scattergeo/marker/__init__.py index 48545a32a3..3db73a0afd 100644 --- a/plotly/validators/scattergeo/marker/__init__.py +++ b/plotly/validators/scattergeo/marker/__init__.py @@ -1,69 +1,37 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._symbolsrc import SymbolsrcValidator - from ._symbol import SymbolValidator - from ._standoffsrc import StandoffsrcValidator - from ._standoff import StandoffValidator - from ._sizesrc import SizesrcValidator - from ._sizeref import SizerefValidator - from ._sizemode import SizemodeValidator - from ._sizemin import SizeminValidator - from ._size import SizeValidator - from ._showscale import ShowscaleValidator - from ._reversescale import ReversescaleValidator - from ._opacitysrc import OpacitysrcValidator - from ._opacity import OpacityValidator - from ._line import LineValidator - from ._gradient import GradientValidator - from ._colorsrc import ColorsrcValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._color import ColorValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - from ._autocolorscale import AutocolorscaleValidator - from ._anglesrc import AnglesrcValidator - from ._angleref import AnglerefValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattergeo/marker/_angle.py b/plotly/validators/scattergeo/marker/_angle.py index 41e354fa56..d44146959e 100644 --- a/plotly/validators/scattergeo/marker/_angle.py +++ b/plotly/validators/scattergeo/marker/_angle.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AngleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattergeo/marker/_angleref.py b/plotly/validators/scattergeo/marker/_angleref.py index a92ef988e8..5609fafba3 100644 --- a/plotly/validators/scattergeo/marker/_angleref.py +++ b/plotly/validators/scattergeo/marker/_angleref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AnglerefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["previous", "up", "north"]), **kwargs, diff --git a/plotly/validators/scattergeo/marker/_anglesrc.py b/plotly/validators/scattergeo/marker/_anglesrc.py index acc8a395e4..89a394c8c9 100644 --- a/plotly/validators/scattergeo/marker/_anglesrc.py +++ b/plotly/validators/scattergeo/marker/_anglesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AnglesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/_autocolorscale.py b/plotly/validators/scattergeo/marker/_autocolorscale.py index 31c823bf23..95beae3482 100644 --- a/plotly/validators/scattergeo/marker/_autocolorscale.py +++ b/plotly/validators/scattergeo/marker/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scattergeo/marker/_cauto.py b/plotly/validators/scattergeo/marker/_cauto.py index 5c0cfa5816..3303984e9a 100644 --- a/plotly/validators/scattergeo/marker/_cauto.py +++ b/plotly/validators/scattergeo/marker/_cauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scattergeo/marker/_cmax.py b/plotly/validators/scattergeo/marker/_cmax.py index 5c67557638..a00a818159 100644 --- a/plotly/validators/scattergeo/marker/_cmax.py +++ b/plotly/validators/scattergeo/marker/_cmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scattergeo/marker/_cmid.py b/plotly/validators/scattergeo/marker/_cmid.py index 489b30b6c0..2fe44d6e51 100644 --- a/plotly/validators/scattergeo/marker/_cmid.py +++ b/plotly/validators/scattergeo/marker/_cmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scattergeo/marker/_cmin.py b/plotly/validators/scattergeo/marker/_cmin.py index 26153b34e6..5877648fad 100644 --- a/plotly/validators/scattergeo/marker/_cmin.py +++ b/plotly/validators/scattergeo/marker/_cmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scattergeo/marker/_color.py b/plotly/validators/scattergeo/marker/_color.py index 69ff579108..b06523acf6 100644 --- a/plotly/validators/scattergeo/marker/_color.py +++ b/plotly/validators/scattergeo/marker/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), colorscale_path=kwargs.pop( diff --git a/plotly/validators/scattergeo/marker/_coloraxis.py b/plotly/validators/scattergeo/marker/_coloraxis.py index cb110116e5..efa1a2ea6e 100644 --- a/plotly/validators/scattergeo/marker/_coloraxis.py +++ b/plotly/validators/scattergeo/marker/_coloraxis.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/scattergeo/marker/_colorbar.py b/plotly/validators/scattergeo/marker/_colorbar.py index 2911383b4e..8212b7e203 100644 --- a/plotly/validators/scattergeo/marker/_colorbar.py +++ b/plotly/validators/scattergeo/marker/_colorbar.py @@ -1,281 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattergeo/marker/_colorscale.py b/plotly/validators/scattergeo/marker/_colorscale.py index 349b6f7c31..bfa4f90bdd 100644 --- a/plotly/validators/scattergeo/marker/_colorscale.py +++ b/plotly/validators/scattergeo/marker/_colorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/scattergeo/marker/_colorsrc.py b/plotly/validators/scattergeo/marker/_colorsrc.py index 1edf5b8dee..3fda3552fa 100644 --- a/plotly/validators/scattergeo/marker/_colorsrc.py +++ b/plotly/validators/scattergeo/marker/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/_gradient.py b/plotly/validators/scattergeo/marker/_gradient.py index 570e6cca8f..097f038b4b 100644 --- a/plotly/validators/scattergeo/marker/_gradient.py +++ b/plotly/validators/scattergeo/marker/_gradient.py @@ -1,30 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GradientValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattergeo/marker/_line.py b/plotly/validators/scattergeo/marker/_line.py index 5e91543e30..8d432c5e2c 100644 --- a/plotly/validators/scattergeo/marker/_line.py +++ b/plotly/validators/scattergeo/marker/_line.py @@ -1,104 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattergeo/marker/_opacity.py b/plotly/validators/scattergeo/marker/_opacity.py index 06fe12c54a..9bdb3bef99 100644 --- a/plotly/validators/scattergeo/marker/_opacity.py +++ b/plotly/validators/scattergeo/marker/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), diff --git a/plotly/validators/scattergeo/marker/_opacitysrc.py b/plotly/validators/scattergeo/marker/_opacitysrc.py index d497a11023..48ef277c97 100644 --- a/plotly/validators/scattergeo/marker/_opacitysrc.py +++ b/plotly/validators/scattergeo/marker/_opacitysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/_reversescale.py b/plotly/validators/scattergeo/marker/_reversescale.py index 6eea92e3b6..565b8c4a1c 100644 --- a/plotly/validators/scattergeo/marker/_reversescale.py +++ b/plotly/validators/scattergeo/marker/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/_showscale.py b/plotly/validators/scattergeo/marker/_showscale.py index 744f564e14..25bb799bfb 100644 --- a/plotly/validators/scattergeo/marker/_showscale.py +++ b/plotly/validators/scattergeo/marker/_showscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/_size.py b/plotly/validators/scattergeo/marker/_size.py index 11d86d8926..d3d7fe7090 100644 --- a/plotly/validators/scattergeo/marker/_size.py +++ b/plotly/validators/scattergeo/marker/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattergeo/marker/_sizemin.py b/plotly/validators/scattergeo/marker/_sizemin.py index 6750f3c315..d7b6041bc4 100644 --- a/plotly/validators/scattergeo/marker/_sizemin.py +++ b/plotly/validators/scattergeo/marker/_sizemin.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergeo/marker/_sizemode.py b/plotly/validators/scattergeo/marker/_sizemode.py index 55e10e10ac..ed61878c5f 100644 --- a/plotly/validators/scattergeo/marker/_sizemode.py +++ b/plotly/validators/scattergeo/marker/_sizemode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["diameter", "area"]), **kwargs, diff --git a/plotly/validators/scattergeo/marker/_sizeref.py b/plotly/validators/scattergeo/marker/_sizeref.py index 9d40a1574c..0470f6b579 100644 --- a/plotly/validators/scattergeo/marker/_sizeref.py +++ b/plotly/validators/scattergeo/marker/_sizeref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/_sizesrc.py b/plotly/validators/scattergeo/marker/_sizesrc.py index b1a2f8ae52..40f9bae324 100644 --- a/plotly/validators/scattergeo/marker/_sizesrc.py +++ b/plotly/validators/scattergeo/marker/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/_standoff.py b/plotly/validators/scattergeo/marker/_standoff.py index 41d5310068..f30f1e5279 100644 --- a/plotly/validators/scattergeo/marker/_standoff.py +++ b/plotly/validators/scattergeo/marker/_standoff.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StandoffValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattergeo/marker/_standoffsrc.py b/plotly/validators/scattergeo/marker/_standoffsrc.py index c9f8a8e3e0..2f01531b4c 100644 --- a/plotly/validators/scattergeo/marker/_standoffsrc.py +++ b/plotly/validators/scattergeo/marker/_standoffsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StandoffsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/_symbol.py b/plotly/validators/scattergeo/marker/_symbol.py index 39e6e99eb0..b305818040 100644 --- a/plotly/validators/scattergeo/marker/_symbol.py +++ b/plotly/validators/scattergeo/marker/_symbol.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( diff --git a/plotly/validators/scattergeo/marker/_symbolsrc.py b/plotly/validators/scattergeo/marker/_symbolsrc.py index e3c73ef93b..84f4c908b4 100644 --- a/plotly/validators/scattergeo/marker/_symbolsrc.py +++ b/plotly/validators/scattergeo/marker/_symbolsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/colorbar/__init__.py b/plotly/validators/scattergeo/marker/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/scattergeo/marker/colorbar/__init__.py +++ b/plotly/validators/scattergeo/marker/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattergeo/marker/colorbar/_bgcolor.py b/plotly/validators/scattergeo/marker/colorbar/_bgcolor.py index 542dab5a15..83a6e2d13e 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_bgcolor.py +++ b/plotly/validators/scattergeo/marker/colorbar/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/colorbar/_bordercolor.py b/plotly/validators/scattergeo/marker/colorbar/_bordercolor.py index f5f5e89df6..8cdfcea4d6 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_bordercolor.py +++ b/plotly/validators/scattergeo/marker/colorbar/_bordercolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/colorbar/_borderwidth.py b/plotly/validators/scattergeo/marker/colorbar/_borderwidth.py index 3ad242f0dd..af241c6652 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_borderwidth.py +++ b/plotly/validators/scattergeo/marker/colorbar/_borderwidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergeo/marker/colorbar/_dtick.py b/plotly/validators/scattergeo/marker/colorbar/_dtick.py index 0b815c4e5c..ce2fd1da40 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_dtick.py +++ b/plotly/validators/scattergeo/marker/colorbar/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/scattergeo/marker/colorbar/_exponentformat.py b/plotly/validators/scattergeo/marker/colorbar/_exponentformat.py index 34ccf9c354..a367564257 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_exponentformat.py +++ b/plotly/validators/scattergeo/marker/colorbar/_exponentformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/scattergeo/marker/colorbar/_labelalias.py b/plotly/validators/scattergeo/marker/colorbar/_labelalias.py index 91c6d0ca44..05e8406b0d 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_labelalias.py +++ b/plotly/validators/scattergeo/marker/colorbar/_labelalias.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/colorbar/_len.py b/plotly/validators/scattergeo/marker/colorbar/_len.py index 510e4ea6c3..8b71c1b844 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_len.py +++ b/plotly/validators/scattergeo/marker/colorbar/_len.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergeo/marker/colorbar/_lenmode.py b/plotly/validators/scattergeo/marker/colorbar/_lenmode.py index becfdef4f4..799bc0af42 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_lenmode.py +++ b/plotly/validators/scattergeo/marker/colorbar/_lenmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/scattergeo/marker/colorbar/_minexponent.py b/plotly/validators/scattergeo/marker/colorbar/_minexponent.py index 1a6fab28ea..8ea04ab93e 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_minexponent.py +++ b/plotly/validators/scattergeo/marker/colorbar/_minexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergeo/marker/colorbar/_nticks.py b/plotly/validators/scattergeo/marker/colorbar/_nticks.py index 2adc3e3c3a..4af51855b6 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_nticks.py +++ b/plotly/validators/scattergeo/marker/colorbar/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergeo/marker/colorbar/_orientation.py b/plotly/validators/scattergeo/marker/colorbar/_orientation.py index 81d6a01ed3..8e900ea277 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_orientation.py +++ b/plotly/validators/scattergeo/marker/colorbar/_orientation.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/scattergeo/marker/colorbar/_outlinecolor.py b/plotly/validators/scattergeo/marker/colorbar/_outlinecolor.py index 60fbda3250..eeabd214a7 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_outlinecolor.py +++ b/plotly/validators/scattergeo/marker/colorbar/_outlinecolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/colorbar/_outlinewidth.py b/plotly/validators/scattergeo/marker/colorbar/_outlinewidth.py index 843bd102cc..2a7611f5a8 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_outlinewidth.py +++ b/plotly/validators/scattergeo/marker/colorbar/_outlinewidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergeo/marker/colorbar/_separatethousands.py b/plotly/validators/scattergeo/marker/colorbar/_separatethousands.py index 3fb93ddea5..73986c11a9 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_separatethousands.py +++ b/plotly/validators/scattergeo/marker/colorbar/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/colorbar/_showexponent.py b/plotly/validators/scattergeo/marker/colorbar/_showexponent.py index 5e26f90e50..6b7f3c4dd8 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_showexponent.py +++ b/plotly/validators/scattergeo/marker/colorbar/_showexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scattergeo/marker/colorbar/_showticklabels.py b/plotly/validators/scattergeo/marker/colorbar/_showticklabels.py index 923b5b5dcb..c91e56bad9 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_showticklabels.py +++ b/plotly/validators/scattergeo/marker/colorbar/_showticklabels.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/colorbar/_showtickprefix.py b/plotly/validators/scattergeo/marker/colorbar/_showtickprefix.py index a608eb4cf8..56acdc0e79 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_showtickprefix.py +++ b/plotly/validators/scattergeo/marker/colorbar/_showtickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scattergeo/marker/colorbar/_showticksuffix.py b/plotly/validators/scattergeo/marker/colorbar/_showticksuffix.py index 9cc80fbe78..71c4664e23 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_showticksuffix.py +++ b/plotly/validators/scattergeo/marker/colorbar/_showticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scattergeo/marker/colorbar/_thickness.py b/plotly/validators/scattergeo/marker/colorbar/_thickness.py index 45162e5711..8a8d0a8a98 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_thickness.py +++ b/plotly/validators/scattergeo/marker/colorbar/_thickness.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergeo/marker/colorbar/_thicknessmode.py b/plotly/validators/scattergeo/marker/colorbar/_thicknessmode.py index 4a388281b5..4983cdeaaf 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_thicknessmode.py +++ b/plotly/validators/scattergeo/marker/colorbar/_thicknessmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/scattergeo/marker/colorbar/_tick0.py b/plotly/validators/scattergeo/marker/colorbar/_tick0.py index 289a703440..d07fd0d4c2 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_tick0.py +++ b/plotly/validators/scattergeo/marker/colorbar/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/scattergeo/marker/colorbar/_tickangle.py b/plotly/validators/scattergeo/marker/colorbar/_tickangle.py index b3d94ae0ce..8bedfef558 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_tickangle.py +++ b/plotly/validators/scattergeo/marker/colorbar/_tickangle.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/colorbar/_tickcolor.py b/plotly/validators/scattergeo/marker/colorbar/_tickcolor.py index 3ab9ac35be..0ccd47f57a 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_tickcolor.py +++ b/plotly/validators/scattergeo/marker/colorbar/_tickcolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/colorbar/_tickfont.py b/plotly/validators/scattergeo/marker/colorbar/_tickfont.py index 0c94c6b4b8..f3d58e96d7 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_tickfont.py +++ b/plotly/validators/scattergeo/marker/colorbar/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/scattergeo/marker/colorbar/_tickformat.py b/plotly/validators/scattergeo/marker/colorbar/_tickformat.py index 0be2aa15b8..afc0ddaf13 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_tickformat.py +++ b/plotly/validators/scattergeo/marker/colorbar/_tickformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/colorbar/_tickformatstopdefaults.py b/plotly/validators/scattergeo/marker/colorbar/_tickformatstopdefaults.py index 9bb452dc6f..4992c74c84 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/scattergeo/marker/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/scattergeo/marker/colorbar/_tickformatstops.py b/plotly/validators/scattergeo/marker/colorbar/_tickformatstops.py index 6743065713..23c9599ba3 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_tickformatstops.py +++ b/plotly/validators/scattergeo/marker/colorbar/_tickformatstops.py @@ -1,53 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattergeo/marker/colorbar/_ticklabeloverflow.py b/plotly/validators/scattergeo/marker/colorbar/_ticklabeloverflow.py index 34f86220f8..b3d925b5f1 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/scattergeo/marker/colorbar/_ticklabeloverflow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/scattergeo/marker/colorbar/_ticklabelposition.py b/plotly/validators/scattergeo/marker/colorbar/_ticklabelposition.py index 5e17d47df7..3dd4338675 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_ticklabelposition.py +++ b/plotly/validators/scattergeo/marker/colorbar/_ticklabelposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/scattergeo/marker/colorbar/_ticklabelstep.py b/plotly/validators/scattergeo/marker/colorbar/_ticklabelstep.py index 90546541cf..49fa894a66 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_ticklabelstep.py +++ b/plotly/validators/scattergeo/marker/colorbar/_ticklabelstep.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scattergeo/marker/colorbar/_ticklen.py b/plotly/validators/scattergeo/marker/colorbar/_ticklen.py index a4fadf9e42..e1e6924c55 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_ticklen.py +++ b/plotly/validators/scattergeo/marker/colorbar/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergeo/marker/colorbar/_tickmode.py b/plotly/validators/scattergeo/marker/colorbar/_tickmode.py index 89714dbfdc..018932db98 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_tickmode.py +++ b/plotly/validators/scattergeo/marker/colorbar/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/scattergeo/marker/colorbar/_tickprefix.py b/plotly/validators/scattergeo/marker/colorbar/_tickprefix.py index f94ac797d5..56eabcc51e 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_tickprefix.py +++ b/plotly/validators/scattergeo/marker/colorbar/_tickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/colorbar/_ticks.py b/plotly/validators/scattergeo/marker/colorbar/_ticks.py index 2738cdbbf9..5699ed9fd0 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_ticks.py +++ b/plotly/validators/scattergeo/marker/colorbar/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/scattergeo/marker/colorbar/_ticksuffix.py b/plotly/validators/scattergeo/marker/colorbar/_ticksuffix.py index eea82deeeb..76c1799de1 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_ticksuffix.py +++ b/plotly/validators/scattergeo/marker/colorbar/_ticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/colorbar/_ticktext.py b/plotly/validators/scattergeo/marker/colorbar/_ticktext.py index 66a7daa9be..a0d903c32c 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_ticktext.py +++ b/plotly/validators/scattergeo/marker/colorbar/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/colorbar/_ticktextsrc.py b/plotly/validators/scattergeo/marker/colorbar/_ticktextsrc.py index bf142a9902..3f98c30453 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_ticktextsrc.py +++ b/plotly/validators/scattergeo/marker/colorbar/_ticktextsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/colorbar/_tickvals.py b/plotly/validators/scattergeo/marker/colorbar/_tickvals.py index 8cda6cdca3..8d5b26be02 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_tickvals.py +++ b/plotly/validators/scattergeo/marker/colorbar/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/colorbar/_tickvalssrc.py b/plotly/validators/scattergeo/marker/colorbar/_tickvalssrc.py index 9e539576cd..ca2e3b584e 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_tickvalssrc.py +++ b/plotly/validators/scattergeo/marker/colorbar/_tickvalssrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/colorbar/_tickwidth.py b/plotly/validators/scattergeo/marker/colorbar/_tickwidth.py index c7a9da8457..25665791be 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_tickwidth.py +++ b/plotly/validators/scattergeo/marker/colorbar/_tickwidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergeo/marker/colorbar/_title.py b/plotly/validators/scattergeo/marker/colorbar/_title.py index c0c8aa7930..7924e5f1d4 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_title.py +++ b/plotly/validators/scattergeo/marker/colorbar/_title.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattergeo/marker/colorbar/_x.py b/plotly/validators/scattergeo/marker/colorbar/_x.py index 1455eb2ba1..1002317dd0 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_x.py +++ b/plotly/validators/scattergeo/marker/colorbar/_x.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/colorbar/_xanchor.py b/plotly/validators/scattergeo/marker/colorbar/_xanchor.py index c307ddc6b7..8d6df7583c 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_xanchor.py +++ b/plotly/validators/scattergeo/marker/colorbar/_xanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/scattergeo/marker/colorbar/_xpad.py b/plotly/validators/scattergeo/marker/colorbar/_xpad.py index a1c3586491..7ee696acd8 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_xpad.py +++ b/plotly/validators/scattergeo/marker/colorbar/_xpad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergeo/marker/colorbar/_xref.py b/plotly/validators/scattergeo/marker/colorbar/_xref.py index 4083c0a82d..fb31a5b5b9 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_xref.py +++ b/plotly/validators/scattergeo/marker/colorbar/_xref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/scattergeo/marker/colorbar/_y.py b/plotly/validators/scattergeo/marker/colorbar/_y.py index 58d8c255ea..3dac241482 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_y.py +++ b/plotly/validators/scattergeo/marker/colorbar/_y.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/colorbar/_yanchor.py b/plotly/validators/scattergeo/marker/colorbar/_yanchor.py index f032952444..4cfca74856 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_yanchor.py +++ b/plotly/validators/scattergeo/marker/colorbar/_yanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/scattergeo/marker/colorbar/_ypad.py b/plotly/validators/scattergeo/marker/colorbar/_ypad.py index cdb9138895..6604ca7546 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_ypad.py +++ b/plotly/validators/scattergeo/marker/colorbar/_ypad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergeo/marker/colorbar/_yref.py b/plotly/validators/scattergeo/marker/colorbar/_yref.py index 9700dda52b..222b20a328 100644 --- a/plotly/validators/scattergeo/marker/colorbar/_yref.py +++ b/plotly/validators/scattergeo/marker/colorbar/_yref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/scattergeo/marker/colorbar/tickfont/__init__.py b/plotly/validators/scattergeo/marker/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/scattergeo/marker/colorbar/tickfont/__init__.py +++ b/plotly/validators/scattergeo/marker/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scattergeo/marker/colorbar/tickfont/_color.py b/plotly/validators/scattergeo/marker/colorbar/tickfont/_color.py index cfbcf0432d..c1d7ec3e5a 100644 --- a/plotly/validators/scattergeo/marker/colorbar/tickfont/_color.py +++ b/plotly/validators/scattergeo/marker/colorbar/tickfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/colorbar/tickfont/_family.py b/plotly/validators/scattergeo/marker/colorbar/tickfont/_family.py index d117c3be72..b8f73e98c5 100644 --- a/plotly/validators/scattergeo/marker/colorbar/tickfont/_family.py +++ b/plotly/validators/scattergeo/marker/colorbar/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scattergeo/marker/colorbar/tickfont/_lineposition.py b/plotly/validators/scattergeo/marker/colorbar/tickfont/_lineposition.py index 096059b890..4c0a7cbdfe 100644 --- a/plotly/validators/scattergeo/marker/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/scattergeo/marker/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/scattergeo/marker/colorbar/tickfont/_shadow.py b/plotly/validators/scattergeo/marker/colorbar/tickfont/_shadow.py index 724f84d1e7..3bea192c44 100644 --- a/plotly/validators/scattergeo/marker/colorbar/tickfont/_shadow.py +++ b/plotly/validators/scattergeo/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/colorbar/tickfont/_size.py b/plotly/validators/scattergeo/marker/colorbar/tickfont/_size.py index 5038fc69b9..99df718c81 100644 --- a/plotly/validators/scattergeo/marker/colorbar/tickfont/_size.py +++ b/plotly/validators/scattergeo/marker/colorbar/tickfont/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scattergeo/marker/colorbar/tickfont/_style.py b/plotly/validators/scattergeo/marker/colorbar/tickfont/_style.py index 6249934b3f..241c032774 100644 --- a/plotly/validators/scattergeo/marker/colorbar/tickfont/_style.py +++ b/plotly/validators/scattergeo/marker/colorbar/tickfont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scattergeo/marker/colorbar/tickfont/_textcase.py b/plotly/validators/scattergeo/marker/colorbar/tickfont/_textcase.py index 93ae5498f6..6d3d975cc2 100644 --- a/plotly/validators/scattergeo/marker/colorbar/tickfont/_textcase.py +++ b/plotly/validators/scattergeo/marker/colorbar/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/scattergeo/marker/colorbar/tickfont/_variant.py b/plotly/validators/scattergeo/marker/colorbar/tickfont/_variant.py index 61823b398b..3cdc3ea8bf 100644 --- a/plotly/validators/scattergeo/marker/colorbar/tickfont/_variant.py +++ b/plotly/validators/scattergeo/marker/colorbar/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/scattergeo/marker/colorbar/tickfont/_weight.py b/plotly/validators/scattergeo/marker/colorbar/tickfont/_weight.py index c7fab9d6ee..2b6909b60f 100644 --- a/plotly/validators/scattergeo/marker/colorbar/tickfont/_weight.py +++ b/plotly/validators/scattergeo/marker/colorbar/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scattergeo/marker/colorbar/tickformatstop/__init__.py b/plotly/validators/scattergeo/marker/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/scattergeo/marker/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/scattergeo/marker/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_dtickrange.py index f8fc7db8a2..39f3e8ebf9 100644 --- a/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_enabled.py b/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_enabled.py index c28d95d14a..d96f190b15 100644 --- a/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_name.py b/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_name.py index 2adabbf99e..07e8330005 100644 --- a/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_name.py +++ b/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_templateitemname.py index 6b840af6c7..8fc8ed74d3 100644 --- a/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_value.py b/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_value.py index f7a9e6442b..caecd29cba 100644 --- a/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_value.py +++ b/plotly/validators/scattergeo/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/colorbar/title/__init__.py b/plotly/validators/scattergeo/marker/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/scattergeo/marker/colorbar/title/__init__.py +++ b/plotly/validators/scattergeo/marker/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/scattergeo/marker/colorbar/title/_font.py b/plotly/validators/scattergeo/marker/colorbar/title/_font.py index 268bc8171b..5b23d61c2f 100644 --- a/plotly/validators/scattergeo/marker/colorbar/title/_font.py +++ b/plotly/validators/scattergeo/marker/colorbar/title/_font.py @@ -1,63 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/scattergeo/marker/colorbar/title/_side.py b/plotly/validators/scattergeo/marker/colorbar/title/_side.py index eafe0f4b2e..ef21148990 100644 --- a/plotly/validators/scattergeo/marker/colorbar/title/_side.py +++ b/plotly/validators/scattergeo/marker/colorbar/title/_side.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/scattergeo/marker/colorbar/title/_text.py b/plotly/validators/scattergeo/marker/colorbar/title/_text.py index cddf13572d..501f699ba1 100644 --- a/plotly/validators/scattergeo/marker/colorbar/title/_text.py +++ b/plotly/validators/scattergeo/marker/colorbar/title/_text.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/colorbar/title/font/__init__.py b/plotly/validators/scattergeo/marker/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/scattergeo/marker/colorbar/title/font/__init__.py +++ b/plotly/validators/scattergeo/marker/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scattergeo/marker/colorbar/title/font/_color.py b/plotly/validators/scattergeo/marker/colorbar/title/font/_color.py index 43d8e2bb28..8c4b7e4cad 100644 --- a/plotly/validators/scattergeo/marker/colorbar/title/font/_color.py +++ b/plotly/validators/scattergeo/marker/colorbar/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/colorbar/title/font/_family.py b/plotly/validators/scattergeo/marker/colorbar/title/font/_family.py index 501e4872ed..0044aca2b8 100644 --- a/plotly/validators/scattergeo/marker/colorbar/title/font/_family.py +++ b/plotly/validators/scattergeo/marker/colorbar/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scattergeo/marker/colorbar/title/font/_lineposition.py b/plotly/validators/scattergeo/marker/colorbar/title/font/_lineposition.py index 6d69755184..f6751fcbcb 100644 --- a/plotly/validators/scattergeo/marker/colorbar/title/font/_lineposition.py +++ b/plotly/validators/scattergeo/marker/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/scattergeo/marker/colorbar/title/font/_shadow.py b/plotly/validators/scattergeo/marker/colorbar/title/font/_shadow.py index 958aad8b8e..b39b9cbdca 100644 --- a/plotly/validators/scattergeo/marker/colorbar/title/font/_shadow.py +++ b/plotly/validators/scattergeo/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/colorbar/title/font/_size.py b/plotly/validators/scattergeo/marker/colorbar/title/font/_size.py index 282efc7c15..d46c572dd1 100644 --- a/plotly/validators/scattergeo/marker/colorbar/title/font/_size.py +++ b/plotly/validators/scattergeo/marker/colorbar/title/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scattergeo/marker/colorbar/title/font/_style.py b/plotly/validators/scattergeo/marker/colorbar/title/font/_style.py index 0649c61012..4496ed4473 100644 --- a/plotly/validators/scattergeo/marker/colorbar/title/font/_style.py +++ b/plotly/validators/scattergeo/marker/colorbar/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scattergeo/marker/colorbar/title/font/_textcase.py b/plotly/validators/scattergeo/marker/colorbar/title/font/_textcase.py index 5306e1b6b7..18bd2b2be8 100644 --- a/plotly/validators/scattergeo/marker/colorbar/title/font/_textcase.py +++ b/plotly/validators/scattergeo/marker/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/scattergeo/marker/colorbar/title/font/_variant.py b/plotly/validators/scattergeo/marker/colorbar/title/font/_variant.py index a9b5a72a91..64a83d49b3 100644 --- a/plotly/validators/scattergeo/marker/colorbar/title/font/_variant.py +++ b/plotly/validators/scattergeo/marker/colorbar/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/scattergeo/marker/colorbar/title/font/_weight.py b/plotly/validators/scattergeo/marker/colorbar/title/font/_weight.py index cd304761a9..c57250ec1a 100644 --- a/plotly/validators/scattergeo/marker/colorbar/title/font/_weight.py +++ b/plotly/validators/scattergeo/marker/colorbar/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scattergeo/marker/gradient/__init__.py b/plotly/validators/scattergeo/marker/gradient/__init__.py index 624a280ea4..f5373e7822 100644 --- a/plotly/validators/scattergeo/marker/gradient/__init__.py +++ b/plotly/validators/scattergeo/marker/gradient/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._typesrc import TypesrcValidator - from ._type import TypeValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._typesrc.TypesrcValidator", + "._type.TypeValidator", + "._colorsrc.ColorsrcValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scattergeo/marker/gradient/_color.py b/plotly/validators/scattergeo/marker/gradient/_color.py index d3b066ba0d..4636c2a97d 100644 --- a/plotly/validators/scattergeo/marker/gradient/_color.py +++ b/plotly/validators/scattergeo/marker/gradient/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattergeo/marker/gradient/_colorsrc.py b/plotly/validators/scattergeo/marker/gradient/_colorsrc.py index 9aba8d168e..84384e07e6 100644 --- a/plotly/validators/scattergeo/marker/gradient/_colorsrc.py +++ b/plotly/validators/scattergeo/marker/gradient/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/gradient/_type.py b/plotly/validators/scattergeo/marker/gradient/_type.py index 949b5d51ed..e53eca4552 100644 --- a/plotly/validators/scattergeo/marker/gradient/_type.py +++ b/plotly/validators/scattergeo/marker/gradient/_type.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/scattergeo/marker/gradient/_typesrc.py b/plotly/validators/scattergeo/marker/gradient/_typesrc.py index 0f861dea55..c59095efca 100644 --- a/plotly/validators/scattergeo/marker/gradient/_typesrc.py +++ b/plotly/validators/scattergeo/marker/gradient/_typesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/line/__init__.py b/plotly/validators/scattergeo/marker/line/__init__.py index facbe33f88..4ba3ea340b 100644 --- a/plotly/validators/scattergeo/marker/line/__init__.py +++ b/plotly/validators/scattergeo/marker/line/__init__.py @@ -1,37 +1,21 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._widthsrc import WidthsrcValidator - from ._width import WidthValidator - from ._reversescale import ReversescaleValidator - from ._colorsrc import ColorsrcValidator - from ._colorscale import ColorscaleValidator - from ._coloraxis import ColoraxisValidator - from ._color import ColorValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattergeo/marker/line/_autocolorscale.py b/plotly/validators/scattergeo/marker/line/_autocolorscale.py index 720169fdaa..f3dce996ce 100644 --- a/plotly/validators/scattergeo/marker/line/_autocolorscale.py +++ b/plotly/validators/scattergeo/marker/line/_autocolorscale.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scattergeo/marker/line/_cauto.py b/plotly/validators/scattergeo/marker/line/_cauto.py index 4721e6126d..f0240a1de1 100644 --- a/plotly/validators/scattergeo/marker/line/_cauto.py +++ b/plotly/validators/scattergeo/marker/line/_cauto.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scattergeo/marker/line/_cmax.py b/plotly/validators/scattergeo/marker/line/_cmax.py index 8850ff110c..563cb08908 100644 --- a/plotly/validators/scattergeo/marker/line/_cmax.py +++ b/plotly/validators/scattergeo/marker/line/_cmax.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scattergeo/marker/line/_cmid.py b/plotly/validators/scattergeo/marker/line/_cmid.py index 8e8abc502d..2e79535944 100644 --- a/plotly/validators/scattergeo/marker/line/_cmid.py +++ b/plotly/validators/scattergeo/marker/line/_cmid.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scattergeo/marker/line/_cmin.py b/plotly/validators/scattergeo/marker/line/_cmin.py index 5f101408b3..7171bba9ff 100644 --- a/plotly/validators/scattergeo/marker/line/_cmin.py +++ b/plotly/validators/scattergeo/marker/line/_cmin.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scattergeo/marker/line/_color.py b/plotly/validators/scattergeo/marker/line/_color.py index 88432183cc..33cf9a865d 100644 --- a/plotly/validators/scattergeo/marker/line/_color.py +++ b/plotly/validators/scattergeo/marker/line/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), colorscale_path=kwargs.pop( diff --git a/plotly/validators/scattergeo/marker/line/_coloraxis.py b/plotly/validators/scattergeo/marker/line/_coloraxis.py index 970ccb54eb..e94149387e 100644 --- a/plotly/validators/scattergeo/marker/line/_coloraxis.py +++ b/plotly/validators/scattergeo/marker/line/_coloraxis.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/scattergeo/marker/line/_colorscale.py b/plotly/validators/scattergeo/marker/line/_colorscale.py index dd35de5093..3115b54053 100644 --- a/plotly/validators/scattergeo/marker/line/_colorscale.py +++ b/plotly/validators/scattergeo/marker/line/_colorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/scattergeo/marker/line/_colorsrc.py b/plotly/validators/scattergeo/marker/line/_colorsrc.py index 4938686eb7..bd90f97946 100644 --- a/plotly/validators/scattergeo/marker/line/_colorsrc.py +++ b/plotly/validators/scattergeo/marker/line/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/line/_reversescale.py b/plotly/validators/scattergeo/marker/line/_reversescale.py index b03a417352..16da9387a6 100644 --- a/plotly/validators/scattergeo/marker/line/_reversescale.py +++ b/plotly/validators/scattergeo/marker/line/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/marker/line/_width.py b/plotly/validators/scattergeo/marker/line/_width.py index bd3b464df3..09b86a2031 100644 --- a/plotly/validators/scattergeo/marker/line/_width.py +++ b/plotly/validators/scattergeo/marker/line/_width.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattergeo/marker/line/_widthsrc.py b/plotly/validators/scattergeo/marker/line/_widthsrc.py index a220ccac4f..02019e9717 100644 --- a/plotly/validators/scattergeo/marker/line/_widthsrc.py +++ b/plotly/validators/scattergeo/marker/line/_widthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/selected/__init__.py b/plotly/validators/scattergeo/selected/__init__.py index 3b0aeed383..9d2a313b83 100644 --- a/plotly/validators/scattergeo/selected/__init__.py +++ b/plotly/validators/scattergeo/selected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] +) diff --git a/plotly/validators/scattergeo/selected/_marker.py b/plotly/validators/scattergeo/selected/_marker.py index de2a5a84a5..04686e9ab9 100644 --- a/plotly/validators/scattergeo/selected/_marker.py +++ b/plotly/validators/scattergeo/selected/_marker.py @@ -1,23 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattergeo/selected/_textfont.py b/plotly/validators/scattergeo/selected/_textfont.py index 277e71fb0d..9549666c0d 100644 --- a/plotly/validators/scattergeo/selected/_textfont.py +++ b/plotly/validators/scattergeo/selected/_textfont.py @@ -1,19 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattergeo/selected/marker/__init__.py b/plotly/validators/scattergeo/selected/marker/__init__.py index 8c321a38bc..c9c7226fe4 100644 --- a/plotly/validators/scattergeo/selected/marker/__init__.py +++ b/plotly/validators/scattergeo/selected/marker/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._size.SizeValidator", "._opacity.OpacityValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/scattergeo/selected/marker/_color.py b/plotly/validators/scattergeo/selected/marker/_color.py index 2245425c1f..a2433c7717 100644 --- a/plotly/validators/scattergeo/selected/marker/_color.py +++ b/plotly/validators/scattergeo/selected/marker/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/selected/marker/_opacity.py b/plotly/validators/scattergeo/selected/marker/_opacity.py index 9efef74d5b..47c7b9c513 100644 --- a/plotly/validators/scattergeo/selected/marker/_opacity.py +++ b/plotly/validators/scattergeo/selected/marker/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattergeo/selected/marker/_size.py b/plotly/validators/scattergeo/selected/marker/_size.py index 3ff7ba82e9..67be2fef74 100644 --- a/plotly/validators/scattergeo/selected/marker/_size.py +++ b/plotly/validators/scattergeo/selected/marker/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergeo/selected/textfont/__init__.py b/plotly/validators/scattergeo/selected/textfont/__init__.py index a9f087e5af..85a4cc9573 100644 --- a/plotly/validators/scattergeo/selected/textfont/__init__.py +++ b/plotly/validators/scattergeo/selected/textfont/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._color.ColorValidator"] +) diff --git a/plotly/validators/scattergeo/selected/textfont/_color.py b/plotly/validators/scattergeo/selected/textfont/_color.py index c2b99145aa..d265f6eaf1 100644 --- a/plotly/validators/scattergeo/selected/textfont/_color.py +++ b/plotly/validators/scattergeo/selected/textfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/stream/__init__.py b/plotly/validators/scattergeo/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/scattergeo/stream/__init__.py +++ b/plotly/validators/scattergeo/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/scattergeo/stream/_maxpoints.py b/plotly/validators/scattergeo/stream/_maxpoints.py index cf37036b80..4b36cdcac5 100644 --- a/plotly/validators/scattergeo/stream/_maxpoints.py +++ b/plotly/validators/scattergeo/stream/_maxpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattergeo/stream/_token.py b/plotly/validators/scattergeo/stream/_token.py index 85a7a843dc..3cd1969665 100644 --- a/plotly/validators/scattergeo/stream/_token.py +++ b/plotly/validators/scattergeo/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scattergeo/textfont/__init__.py b/plotly/validators/scattergeo/textfont/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/scattergeo/textfont/__init__.py +++ b/plotly/validators/scattergeo/textfont/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattergeo/textfont/_color.py b/plotly/validators/scattergeo/textfont/_color.py index b47cf7354b..b6d9104d7b 100644 --- a/plotly/validators/scattergeo/textfont/_color.py +++ b/plotly/validators/scattergeo/textfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattergeo/textfont/_colorsrc.py b/plotly/validators/scattergeo/textfont/_colorsrc.py index fc9c27618f..9390dd93d2 100644 --- a/plotly/validators/scattergeo/textfont/_colorsrc.py +++ b/plotly/validators/scattergeo/textfont/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/textfont/_family.py b/plotly/validators/scattergeo/textfont/_family.py index f430dcc8ad..8ab8c2fe55 100644 --- a/plotly/validators/scattergeo/textfont/_family.py +++ b/plotly/validators/scattergeo/textfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/scattergeo/textfont/_familysrc.py b/plotly/validators/scattergeo/textfont/_familysrc.py index 1f69ccf331..1ba0bf099b 100644 --- a/plotly/validators/scattergeo/textfont/_familysrc.py +++ b/plotly/validators/scattergeo/textfont/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/textfont/_lineposition.py b/plotly/validators/scattergeo/textfont/_lineposition.py index 7c75ee1c30..3d2d1882fa 100644 --- a/plotly/validators/scattergeo/textfont/_lineposition.py +++ b/plotly/validators/scattergeo/textfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/scattergeo/textfont/_linepositionsrc.py b/plotly/validators/scattergeo/textfont/_linepositionsrc.py index cc64cd4b60..f398a95bda 100644 --- a/plotly/validators/scattergeo/textfont/_linepositionsrc.py +++ b/plotly/validators/scattergeo/textfont/_linepositionsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/textfont/_shadow.py b/plotly/validators/scattergeo/textfont/_shadow.py index e965b98a76..a53246f0a3 100644 --- a/plotly/validators/scattergeo/textfont/_shadow.py +++ b/plotly/validators/scattergeo/textfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattergeo/textfont/_shadowsrc.py b/plotly/validators/scattergeo/textfont/_shadowsrc.py index 00b1ff806d..672fab62c3 100644 --- a/plotly/validators/scattergeo/textfont/_shadowsrc.py +++ b/plotly/validators/scattergeo/textfont/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/textfont/_size.py b/plotly/validators/scattergeo/textfont/_size.py index ccb0081aec..f33a374a48 100644 --- a/plotly/validators/scattergeo/textfont/_size.py +++ b/plotly/validators/scattergeo/textfont/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/scattergeo/textfont/_sizesrc.py b/plotly/validators/scattergeo/textfont/_sizesrc.py index cacb06256d..579dcef06a 100644 --- a/plotly/validators/scattergeo/textfont/_sizesrc.py +++ b/plotly/validators/scattergeo/textfont/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/textfont/_style.py b/plotly/validators/scattergeo/textfont/_style.py index 04117efdac..a2b112c563 100644 --- a/plotly/validators/scattergeo/textfont/_style.py +++ b/plotly/validators/scattergeo/textfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/scattergeo/textfont/_stylesrc.py b/plotly/validators/scattergeo/textfont/_stylesrc.py index 24b12a7af0..c41cfd6404 100644 --- a/plotly/validators/scattergeo/textfont/_stylesrc.py +++ b/plotly/validators/scattergeo/textfont/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/textfont/_textcase.py b/plotly/validators/scattergeo/textfont/_textcase.py index b9f3e76797..79bbb20c5e 100644 --- a/plotly/validators/scattergeo/textfont/_textcase.py +++ b/plotly/validators/scattergeo/textfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/scattergeo/textfont/_textcasesrc.py b/plotly/validators/scattergeo/textfont/_textcasesrc.py index 7328a05beb..dc4b47a298 100644 --- a/plotly/validators/scattergeo/textfont/_textcasesrc.py +++ b/plotly/validators/scattergeo/textfont/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/textfont/_variant.py b/plotly/validators/scattergeo/textfont/_variant.py index 37f80c965e..535b0bac43 100644 --- a/plotly/validators/scattergeo/textfont/_variant.py +++ b/plotly/validators/scattergeo/textfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( diff --git a/plotly/validators/scattergeo/textfont/_variantsrc.py b/plotly/validators/scattergeo/textfont/_variantsrc.py index a425017c09..7dc7a1bb5b 100644 --- a/plotly/validators/scattergeo/textfont/_variantsrc.py +++ b/plotly/validators/scattergeo/textfont/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/textfont/_weight.py b/plotly/validators/scattergeo/textfont/_weight.py index fb6e0047fe..27004e38d3 100644 --- a/plotly/validators/scattergeo/textfont/_weight.py +++ b/plotly/validators/scattergeo/textfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/scattergeo/textfont/_weightsrc.py b/plotly/validators/scattergeo/textfont/_weightsrc.py index bcd8e0c790..e7840fd379 100644 --- a/plotly/validators/scattergeo/textfont/_weightsrc.py +++ b/plotly/validators/scattergeo/textfont/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergeo/unselected/__init__.py b/plotly/validators/scattergeo/unselected/__init__.py index 3b0aeed383..9d2a313b83 100644 --- a/plotly/validators/scattergeo/unselected/__init__.py +++ b/plotly/validators/scattergeo/unselected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] +) diff --git a/plotly/validators/scattergeo/unselected/_marker.py b/plotly/validators/scattergeo/unselected/_marker.py index b233a796ce..cd24e3691d 100644 --- a/plotly/validators/scattergeo/unselected/_marker.py +++ b/plotly/validators/scattergeo/unselected/_marker.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattergeo/unselected/_textfont.py b/plotly/validators/scattergeo/unselected/_textfont.py index 77957ee063..6001899284 100644 --- a/plotly/validators/scattergeo/unselected/_textfont.py +++ b/plotly/validators/scattergeo/unselected/_textfont.py @@ -1,20 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattergeo/unselected/marker/__init__.py b/plotly/validators/scattergeo/unselected/marker/__init__.py index 8c321a38bc..c9c7226fe4 100644 --- a/plotly/validators/scattergeo/unselected/marker/__init__.py +++ b/plotly/validators/scattergeo/unselected/marker/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._size.SizeValidator", "._opacity.OpacityValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/scattergeo/unselected/marker/_color.py b/plotly/validators/scattergeo/unselected/marker/_color.py index 9ea0805cd4..9031f8502e 100644 --- a/plotly/validators/scattergeo/unselected/marker/_color.py +++ b/plotly/validators/scattergeo/unselected/marker/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergeo/unselected/marker/_opacity.py b/plotly/validators/scattergeo/unselected/marker/_opacity.py index 19887eb1d2..c536c65b41 100644 --- a/plotly/validators/scattergeo/unselected/marker/_opacity.py +++ b/plotly/validators/scattergeo/unselected/marker/_opacity.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattergeo/unselected/marker/_size.py b/plotly/validators/scattergeo/unselected/marker/_size.py index 08f9fa7468..1390eade9c 100644 --- a/plotly/validators/scattergeo/unselected/marker/_size.py +++ b/plotly/validators/scattergeo/unselected/marker/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergeo/unselected/textfont/__init__.py b/plotly/validators/scattergeo/unselected/textfont/__init__.py index a9f087e5af..85a4cc9573 100644 --- a/plotly/validators/scattergeo/unselected/textfont/__init__.py +++ b/plotly/validators/scattergeo/unselected/textfont/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._color.ColorValidator"] +) diff --git a/plotly/validators/scattergeo/unselected/textfont/_color.py b/plotly/validators/scattergeo/unselected/textfont/_color.py index 9785ddc3c6..af37865a3d 100644 --- a/plotly/validators/scattergeo/unselected/textfont/_color.py +++ b/plotly/validators/scattergeo/unselected/textfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/__init__.py b/plotly/validators/scattergl/__init__.py index 04ea09cc2c..af7ff671ae 100644 --- a/plotly/validators/scattergl/__init__.py +++ b/plotly/validators/scattergl/__init__.py @@ -1,139 +1,72 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._ysrc import YsrcValidator - from ._yperiodalignment import YperiodalignmentValidator - from ._yperiod0 import Yperiod0Validator - from ._yperiod import YperiodValidator - from ._yhoverformat import YhoverformatValidator - from ._ycalendar import YcalendarValidator - from ._yaxis import YaxisValidator - from ._y0 import Y0Validator - from ._y import YValidator - from ._xsrc import XsrcValidator - from ._xperiodalignment import XperiodalignmentValidator - from ._xperiod0 import Xperiod0Validator - from ._xperiod import XperiodValidator - from ._xhoverformat import XhoverformatValidator - from ._xcalendar import XcalendarValidator - from ._xaxis import XaxisValidator - from ._x0 import X0Validator - from ._x import XValidator - from ._visible import VisibleValidator - from ._unselected import UnselectedValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._texttemplatesrc import TexttemplatesrcValidator - from ._texttemplate import TexttemplateValidator - from ._textsrc import TextsrcValidator - from ._textpositionsrc import TextpositionsrcValidator - from ._textposition import TextpositionValidator - from ._textfont import TextfontValidator - from ._text import TextValidator - from ._stream import StreamValidator - from ._showlegend import ShowlegendValidator - from ._selectedpoints import SelectedpointsValidator - from ._selected import SelectedValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - from ._mode import ModeValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._marker import MarkerValidator - from ._line import LineValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._fillcolor import FillcolorValidator - from ._fill import FillValidator - from ._error_y import Error_YValidator - from ._error_x import Error_XValidator - from ._dy import DyValidator - from ._dx import DxValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattergl/_connectgaps.py b/plotly/validators/scattergl/_connectgaps.py index a70abf6cfc..cadcf4f31e 100644 --- a/plotly/validators/scattergl/_connectgaps.py +++ b/plotly/validators/scattergl/_connectgaps.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/_customdata.py b/plotly/validators/scattergl/_customdata.py index fbb73ffd14..612004d4c7 100644 --- a/plotly/validators/scattergl/_customdata.py +++ b/plotly/validators/scattergl/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/_customdatasrc.py b/plotly/validators/scattergl/_customdatasrc.py index 6d8dfc82a7..ab616979a6 100644 --- a/plotly/validators/scattergl/_customdatasrc.py +++ b/plotly/validators/scattergl/_customdatasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/_dx.py b/plotly/validators/scattergl/_dx.py index 29afcaacac..f0984d9f2f 100644 --- a/plotly/validators/scattergl/_dx.py +++ b/plotly/validators/scattergl/_dx.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/_dy.py b/plotly/validators/scattergl/_dy.py index 5784a0ea37..42e32139c1 100644 --- a/plotly/validators/scattergl/_dy.py +++ b/plotly/validators/scattergl/_dy.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DyValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/_error_x.py b/plotly/validators/scattergl/_error_x.py index ee8d67b439..b251555bc9 100644 --- a/plotly/validators/scattergl/_error_x.py +++ b/plotly/validators/scattergl/_error_x.py @@ -1,72 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Error_XValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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 - - 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, diff --git a/plotly/validators/scattergl/_error_y.py b/plotly/validators/scattergl/_error_y.py index d81c7c0ab2..9e9b72cd42 100644 --- a/plotly/validators/scattergl/_error_y.py +++ b/plotly/validators/scattergl/_error_y.py @@ -1,70 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Error_YValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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 - - 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, diff --git a/plotly/validators/scattergl/_fill.py b/plotly/validators/scattergl/_fill.py index 305e579d40..47296a53a7 100644 --- a/plotly/validators/scattergl/_fill.py +++ b/plotly/validators/scattergl/_fill.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/scattergl/_fillcolor.py b/plotly/validators/scattergl/_fillcolor.py index ac061262bd..2631c227c7 100644 --- a/plotly/validators/scattergl/_fillcolor.py +++ b/plotly/validators/scattergl/_fillcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/_hoverinfo.py b/plotly/validators/scattergl/_hoverinfo.py index 519542c0ef..be1daadd4b 100644 --- a/plotly/validators/scattergl/_hoverinfo.py +++ b/plotly/validators/scattergl/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/scattergl/_hoverinfosrc.py b/plotly/validators/scattergl/_hoverinfosrc.py index f78d07111d..311908b01d 100644 --- a/plotly/validators/scattergl/_hoverinfosrc.py +++ b/plotly/validators/scattergl/_hoverinfosrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/_hoverlabel.py b/plotly/validators/scattergl/_hoverlabel.py index 9da7b0a622..28864e57b3 100644 --- a/plotly/validators/scattergl/_hoverlabel.py +++ b/plotly/validators/scattergl/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattergl/_hovertemplate.py b/plotly/validators/scattergl/_hovertemplate.py index 2a1385cc67..7830be454e 100644 --- a/plotly/validators/scattergl/_hovertemplate.py +++ b/plotly/validators/scattergl/_hovertemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scattergl/_hovertemplatesrc.py b/plotly/validators/scattergl/_hovertemplatesrc.py index 23f214e923..0267d2b72f 100644 --- a/plotly/validators/scattergl/_hovertemplatesrc.py +++ b/plotly/validators/scattergl/_hovertemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/_hovertext.py b/plotly/validators/scattergl/_hovertext.py index 703273d744..030320f049 100644 --- a/plotly/validators/scattergl/_hovertext.py +++ b/plotly/validators/scattergl/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattergl/_hovertextsrc.py b/plotly/validators/scattergl/_hovertextsrc.py index c92c51b6ae..bf93e20b23 100644 --- a/plotly/validators/scattergl/_hovertextsrc.py +++ b/plotly/validators/scattergl/_hovertextsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/_ids.py b/plotly/validators/scattergl/_ids.py index 3132909b27..84aff5a625 100644 --- a/plotly/validators/scattergl/_ids.py +++ b/plotly/validators/scattergl/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/_idssrc.py b/plotly/validators/scattergl/_idssrc.py index caf626ab39..26b259aecc 100644 --- a/plotly/validators/scattergl/_idssrc.py +++ b/plotly/validators/scattergl/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/_legend.py b/plotly/validators/scattergl/_legend.py index 00470557b8..7937817fdd 100644 --- a/plotly/validators/scattergl/_legend.py +++ b/plotly/validators/scattergl/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/scattergl/_legendgroup.py b/plotly/validators/scattergl/_legendgroup.py index eb5ffe79ff..9a1b408146 100644 --- a/plotly/validators/scattergl/_legendgroup.py +++ b/plotly/validators/scattergl/_legendgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattergl/_legendgrouptitle.py b/plotly/validators/scattergl/_legendgrouptitle.py index 2e7e69b864..c391488f0a 100644 --- a/plotly/validators/scattergl/_legendgrouptitle.py +++ b/plotly/validators/scattergl/_legendgrouptitle.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattergl/_legendrank.py b/plotly/validators/scattergl/_legendrank.py index f172435d6c..cda045427d 100644 --- a/plotly/validators/scattergl/_legendrank.py +++ b/plotly/validators/scattergl/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattergl/_legendwidth.py b/plotly/validators/scattergl/_legendwidth.py index 013254c07f..ff6693ad7c 100644 --- a/plotly/validators/scattergl/_legendwidth.py +++ b/plotly/validators/scattergl/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergl/_line.py b/plotly/validators/scattergl/_line.py index 33679f51fd..e0fd3c38bf 100644 --- a/plotly/validators/scattergl/_line.py +++ b/plotly/validators/scattergl/_line.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattergl/_marker.py b/plotly/validators/scattergl/_marker.py index 443a72f88f..593020120a 100644 --- a/plotly/validators/scattergl/_marker.py +++ b/plotly/validators/scattergl/_marker.py @@ -1,144 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattergl/_meta.py b/plotly/validators/scattergl/_meta.py index 78ba55a4fd..61ead5343e 100644 --- a/plotly/validators/scattergl/_meta.py +++ b/plotly/validators/scattergl/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/scattergl/_metasrc.py b/plotly/validators/scattergl/_metasrc.py index f249a9e3d6..17522d4947 100644 --- a/plotly/validators/scattergl/_metasrc.py +++ b/plotly/validators/scattergl/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/_mode.py b/plotly/validators/scattergl/_mode.py index d2df1b28b7..f734808763 100644 --- a/plotly/validators/scattergl/_mode.py +++ b/plotly/validators/scattergl/_mode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["lines", "markers", "text"]), diff --git a/plotly/validators/scattergl/_name.py b/plotly/validators/scattergl/_name.py index c7616dc122..2452e3a9e1 100644 --- a/plotly/validators/scattergl/_name.py +++ b/plotly/validators/scattergl/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattergl/_opacity.py b/plotly/validators/scattergl/_opacity.py index c4e81231ed..ce0a482ad2 100644 --- a/plotly/validators/scattergl/_opacity.py +++ b/plotly/validators/scattergl/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattergl/_selected.py b/plotly/validators/scattergl/_selected.py index eec415c9fd..3209e6df96 100644 --- a/plotly/validators/scattergl/_selected.py +++ b/plotly/validators/scattergl/_selected.py @@ -1,23 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattergl/_selectedpoints.py b/plotly/validators/scattergl/_selectedpoints.py index 42cce48d67..5a41a9b076 100644 --- a/plotly/validators/scattergl/_selectedpoints.py +++ b/plotly/validators/scattergl/_selectedpoints.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/_showlegend.py b/plotly/validators/scattergl/_showlegend.py index 279ccc42b4..1fc23d590d 100644 --- a/plotly/validators/scattergl/_showlegend.py +++ b/plotly/validators/scattergl/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattergl/_stream.py b/plotly/validators/scattergl/_stream.py index 3e970d3dae..102819fb0c 100644 --- a/plotly/validators/scattergl/_stream.py +++ b/plotly/validators/scattergl/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattergl/_text.py b/plotly/validators/scattergl/_text.py index b0880e0e5e..c39651a0ed 100644 --- a/plotly/validators/scattergl/_text.py +++ b/plotly/validators/scattergl/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattergl/_textfont.py b/plotly/validators/scattergl/_textfont.py index f16ddf6073..e6f0dc2cb9 100644 --- a/plotly/validators/scattergl/_textfont.py +++ b/plotly/validators/scattergl/_textfont.py @@ -1,61 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/scattergl/_textposition.py b/plotly/validators/scattergl/_textposition.py index 3869968829..4b9ad39519 100644 --- a/plotly/validators/scattergl/_textposition.py +++ b/plotly/validators/scattergl/_textposition.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( diff --git a/plotly/validators/scattergl/_textpositionsrc.py b/plotly/validators/scattergl/_textpositionsrc.py index d3fb417e25..e54b7b42bf 100644 --- a/plotly/validators/scattergl/_textpositionsrc.py +++ b/plotly/validators/scattergl/_textpositionsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/_textsrc.py b/plotly/validators/scattergl/_textsrc.py index e128ac8627..b74133ef0a 100644 --- a/plotly/validators/scattergl/_textsrc.py +++ b/plotly/validators/scattergl/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/_texttemplate.py b/plotly/validators/scattergl/_texttemplate.py index 8b17b18e00..8b71b75445 100644 --- a/plotly/validators/scattergl/_texttemplate.py +++ b/plotly/validators/scattergl/_texttemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattergl/_texttemplatesrc.py b/plotly/validators/scattergl/_texttemplatesrc.py index bf80209e3d..50dcc6a574 100644 --- a/plotly/validators/scattergl/_texttemplatesrc.py +++ b/plotly/validators/scattergl/_texttemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/_uid.py b/plotly/validators/scattergl/_uid.py index eaea0e754e..619870770f 100644 --- a/plotly/validators/scattergl/_uid.py +++ b/plotly/validators/scattergl/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/scattergl/_uirevision.py b/plotly/validators/scattergl/_uirevision.py index 1b3223dc8e..d7f5d7cd34 100644 --- a/plotly/validators/scattergl/_uirevision.py +++ b/plotly/validators/scattergl/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/_unselected.py b/plotly/validators/scattergl/_unselected.py index 180890de5c..b9da3180b0 100644 --- a/plotly/validators/scattergl/_unselected.py +++ b/plotly/validators/scattergl/_unselected.py @@ -1,23 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattergl/_visible.py b/plotly/validators/scattergl/_visible.py index 061d324b28..70b833574a 100644 --- a/plotly/validators/scattergl/_visible.py +++ b/plotly/validators/scattergl/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/scattergl/_x.py b/plotly/validators/scattergl/_x.py index 687854e2cb..6ee24051b0 100644 --- a/plotly/validators/scattergl/_x.py +++ b/plotly/validators/scattergl/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/scattergl/_x0.py b/plotly/validators/scattergl/_x0.py index 315bf685b0..7f49e84b6c 100644 --- a/plotly/validators/scattergl/_x0.py +++ b/plotly/validators/scattergl/_x0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class X0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/scattergl/_xaxis.py b/plotly/validators/scattergl/_xaxis.py index 74b3fbdb3e..49ed1c56dc 100644 --- a/plotly/validators/scattergl/_xaxis.py +++ b/plotly/validators/scattergl/_xaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "x"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/scattergl/_xcalendar.py b/plotly/validators/scattergl/_xcalendar.py index 1f5e1f6f05..993a9e9285 100644 --- a/plotly/validators/scattergl/_xcalendar.py +++ b/plotly/validators/scattergl/_xcalendar.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/scattergl/_xhoverformat.py b/plotly/validators/scattergl/_xhoverformat.py index adf35f5cc1..10dd6ca651 100644 --- a/plotly/validators/scattergl/_xhoverformat.py +++ b/plotly/validators/scattergl/_xhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/_xperiod.py b/plotly/validators/scattergl/_xperiod.py index 77f6b0cc2a..9522d36ffe 100644 --- a/plotly/validators/scattergl/_xperiod.py +++ b/plotly/validators/scattergl/_xperiod.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XperiodValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/_xperiod0.py b/plotly/validators/scattergl/_xperiod0.py index 51fabca429..4fc8395269 100644 --- a/plotly/validators/scattergl/_xperiod0.py +++ b/plotly/validators/scattergl/_xperiod0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Xperiod0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/_xperiodalignment.py b/plotly/validators/scattergl/_xperiodalignment.py index 730b3d19cc..b22302144f 100644 --- a/plotly/validators/scattergl/_xperiodalignment.py +++ b/plotly/validators/scattergl/_xperiodalignment.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["start", "middle", "end"]), **kwargs, diff --git a/plotly/validators/scattergl/_xsrc.py b/plotly/validators/scattergl/_xsrc.py index 6e5a2abd2d..c7665b779a 100644 --- a/plotly/validators/scattergl/_xsrc.py +++ b/plotly/validators/scattergl/_xsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/_y.py b/plotly/validators/scattergl/_y.py index 3315fa0e58..2747413c49 100644 --- a/plotly/validators/scattergl/_y.py +++ b/plotly/validators/scattergl/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/scattergl/_y0.py b/plotly/validators/scattergl/_y0.py index 7490cc9948..ac6210b3cc 100644 --- a/plotly/validators/scattergl/_y0.py +++ b/plotly/validators/scattergl/_y0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Y0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/scattergl/_yaxis.py b/plotly/validators/scattergl/_yaxis.py index 8f7eeccc89..98cfbca3a7 100644 --- a/plotly/validators/scattergl/_yaxis.py +++ b/plotly/validators/scattergl/_yaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "y"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/scattergl/_ycalendar.py b/plotly/validators/scattergl/_ycalendar.py index a08121dd1c..d97c805335 100644 --- a/plotly/validators/scattergl/_ycalendar.py +++ b/plotly/validators/scattergl/_ycalendar.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/scattergl/_yhoverformat.py b/plotly/validators/scattergl/_yhoverformat.py index db52c25c4c..88734d7b1a 100644 --- a/plotly/validators/scattergl/_yhoverformat.py +++ b/plotly/validators/scattergl/_yhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/_yperiod.py b/plotly/validators/scattergl/_yperiod.py index 47848a1d0c..b4eeeedd13 100644 --- a/plotly/validators/scattergl/_yperiod.py +++ b/plotly/validators/scattergl/_yperiod.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YperiodValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/_yperiod0.py b/plotly/validators/scattergl/_yperiod0.py index e0922c549f..5c532a1822 100644 --- a/plotly/validators/scattergl/_yperiod0.py +++ b/plotly/validators/scattergl/_yperiod0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Yperiod0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/_yperiodalignment.py b/plotly/validators/scattergl/_yperiodalignment.py index aaceb98999..5c4683997c 100644 --- a/plotly/validators/scattergl/_yperiodalignment.py +++ b/plotly/validators/scattergl/_yperiodalignment.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["start", "middle", "end"]), **kwargs, diff --git a/plotly/validators/scattergl/_ysrc.py b/plotly/validators/scattergl/_ysrc.py index 03941ca193..24822ee216 100644 --- a/plotly/validators/scattergl/_ysrc.py +++ b/plotly/validators/scattergl/_ysrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/error_x/__init__.py b/plotly/validators/scattergl/error_x/__init__.py index 2e3ce59d75..62838bdb73 100644 --- a/plotly/validators/scattergl/error_x/__init__.py +++ b/plotly/validators/scattergl/error_x/__init__.py @@ -1,43 +1,24 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._width import WidthValidator - from ._visible import VisibleValidator - from ._valueminus import ValueminusValidator - from ._value import ValueValidator - from ._type import TypeValidator - from ._tracerefminus import TracerefminusValidator - from ._traceref import TracerefValidator - from ._thickness import ThicknessValidator - from ._symmetric import SymmetricValidator - from ._copy_ystyle import Copy_YstyleValidator - from ._color import ColorValidator - from ._arraysrc import ArraysrcValidator - from ._arrayminussrc import ArrayminussrcValidator - from ._arrayminus import ArrayminusValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattergl/error_x/_array.py b/plotly/validators/scattergl/error_x/_array.py index be20aefc10..6aa23d14c4 100644 --- a/plotly/validators/scattergl/error_x/_array.py +++ b/plotly/validators/scattergl/error_x/_array.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrayValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/error_x/_arrayminus.py b/plotly/validators/scattergl/error_x/_arrayminus.py index b63300b66c..7970ede13c 100644 --- a/plotly/validators/scattergl/error_x/_arrayminus.py +++ b/plotly/validators/scattergl/error_x/_arrayminus.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrayminusValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/error_x/_arrayminussrc.py b/plotly/validators/scattergl/error_x/_arrayminussrc.py index 4477fe6051..0c8c5b0372 100644 --- a/plotly/validators/scattergl/error_x/_arrayminussrc.py +++ b/plotly/validators/scattergl/error_x/_arrayminussrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrayminussrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/error_x/_arraysrc.py b/plotly/validators/scattergl/error_x/_arraysrc.py index e2202e8082..e0a387baad 100644 --- a/plotly/validators/scattergl/error_x/_arraysrc.py +++ b/plotly/validators/scattergl/error_x/_arraysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArraysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/error_x/_color.py b/plotly/validators/scattergl/error_x/_color.py index 3132dd3b1f..d6ebcfa7b2 100644 --- a/plotly/validators/scattergl/error_x/_color.py +++ b/plotly/validators/scattergl/error_x/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/error_x/_copy_ystyle.py b/plotly/validators/scattergl/error_x/_copy_ystyle.py index 46fe448a12..23ffc2f61b 100644 --- a/plotly/validators/scattergl/error_x/_copy_ystyle.py +++ b/plotly/validators/scattergl/error_x/_copy_ystyle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Copy_YstyleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/error_x/_symmetric.py b/plotly/validators/scattergl/error_x/_symmetric.py index e7146ec6ab..2836521c5e 100644 --- a/plotly/validators/scattergl/error_x/_symmetric.py +++ b/plotly/validators/scattergl/error_x/_symmetric.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymmetricValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/error_x/_thickness.py b/plotly/validators/scattergl/error_x/_thickness.py index 4243d737ae..1e1a8d06ff 100644 --- a/plotly/validators/scattergl/error_x/_thickness.py +++ b/plotly/validators/scattergl/error_x/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergl/error_x/_traceref.py b/plotly/validators/scattergl/error_x/_traceref.py index 074cda9e27..02f2d716db 100644 --- a/plotly/validators/scattergl/error_x/_traceref.py +++ b/plotly/validators/scattergl/error_x/_traceref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TracerefValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergl/error_x/_tracerefminus.py b/plotly/validators/scattergl/error_x/_tracerefminus.py index 2f41195b22..f6bd0f8639 100644 --- a/plotly/validators/scattergl/error_x/_tracerefminus.py +++ b/plotly/validators/scattergl/error_x/_tracerefminus.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TracerefminusValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergl/error_x/_type.py b/plotly/validators/scattergl/error_x/_type.py index 241572ccc8..9385eca730 100644 --- a/plotly/validators/scattergl/error_x/_type.py +++ b/plotly/validators/scattergl/error_x/_type.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["percent", "constant", "sqrt", "data"]), **kwargs, diff --git a/plotly/validators/scattergl/error_x/_value.py b/plotly/validators/scattergl/error_x/_value.py index 8c1d3b940b..3fd73176dc 100644 --- a/plotly/validators/scattergl/error_x/_value.py +++ b/plotly/validators/scattergl/error_x/_value.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergl/error_x/_valueminus.py b/plotly/validators/scattergl/error_x/_valueminus.py index 16dfe92a58..30213c84af 100644 --- a/plotly/validators/scattergl/error_x/_valueminus.py +++ b/plotly/validators/scattergl/error_x/_valueminus.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueminusValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergl/error_x/_visible.py b/plotly/validators/scattergl/error_x/_visible.py index 935ac688fd..76519bb1de 100644 --- a/plotly/validators/scattergl/error_x/_visible.py +++ b/plotly/validators/scattergl/error_x/_visible.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/error_x/_width.py b/plotly/validators/scattergl/error_x/_width.py index 97947239cd..377bb1e7a9 100644 --- a/plotly/validators/scattergl/error_x/_width.py +++ b/plotly/validators/scattergl/error_x/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergl/error_y/__init__.py b/plotly/validators/scattergl/error_y/__init__.py index eff09cd6a0..ea49850d5f 100644 --- a/plotly/validators/scattergl/error_y/__init__.py +++ b/plotly/validators/scattergl/error_y/__init__.py @@ -1,41 +1,23 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._width import WidthValidator - from ._visible import VisibleValidator - from ._valueminus import ValueminusValidator - from ._value import ValueValidator - from ._type import TypeValidator - from ._tracerefminus import TracerefminusValidator - from ._traceref import TracerefValidator - from ._thickness import ThicknessValidator - from ._symmetric import SymmetricValidator - from ._color import ColorValidator - from ._arraysrc import ArraysrcValidator - from ._arrayminussrc import ArrayminussrcValidator - from ._arrayminus import ArrayminusValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattergl/error_y/_array.py b/plotly/validators/scattergl/error_y/_array.py index 5c79bf033b..4ebc6927a9 100644 --- a/plotly/validators/scattergl/error_y/_array.py +++ b/plotly/validators/scattergl/error_y/_array.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrayValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/error_y/_arrayminus.py b/plotly/validators/scattergl/error_y/_arrayminus.py index 71d06081db..fb64b507cf 100644 --- a/plotly/validators/scattergl/error_y/_arrayminus.py +++ b/plotly/validators/scattergl/error_y/_arrayminus.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrayminusValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/error_y/_arrayminussrc.py b/plotly/validators/scattergl/error_y/_arrayminussrc.py index 0a6d8ce67b..b363adcc68 100644 --- a/plotly/validators/scattergl/error_y/_arrayminussrc.py +++ b/plotly/validators/scattergl/error_y/_arrayminussrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArrayminussrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/error_y/_arraysrc.py b/plotly/validators/scattergl/error_y/_arraysrc.py index efc0c68fee..5bba447c4e 100644 --- a/plotly/validators/scattergl/error_y/_arraysrc.py +++ b/plotly/validators/scattergl/error_y/_arraysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ArraysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/error_y/_color.py b/plotly/validators/scattergl/error_y/_color.py index deb64661a9..29edd028ac 100644 --- a/plotly/validators/scattergl/error_y/_color.py +++ b/plotly/validators/scattergl/error_y/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/error_y/_symmetric.py b/plotly/validators/scattergl/error_y/_symmetric.py index bac7d733c2..4e82f7a552 100644 --- a/plotly/validators/scattergl/error_y/_symmetric.py +++ b/plotly/validators/scattergl/error_y/_symmetric.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymmetricValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/error_y/_thickness.py b/plotly/validators/scattergl/error_y/_thickness.py index 839b793bff..a1902c0c58 100644 --- a/plotly/validators/scattergl/error_y/_thickness.py +++ b/plotly/validators/scattergl/error_y/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergl/error_y/_traceref.py b/plotly/validators/scattergl/error_y/_traceref.py index 000f2f4d0a..4bb98d0650 100644 --- a/plotly/validators/scattergl/error_y/_traceref.py +++ b/plotly/validators/scattergl/error_y/_traceref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TracerefValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergl/error_y/_tracerefminus.py b/plotly/validators/scattergl/error_y/_tracerefminus.py index 6c3674fdcd..34247a30e1 100644 --- a/plotly/validators/scattergl/error_y/_tracerefminus.py +++ b/plotly/validators/scattergl/error_y/_tracerefminus.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TracerefminusValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergl/error_y/_type.py b/plotly/validators/scattergl/error_y/_type.py index f11b224b31..2d2dcbf305 100644 --- a/plotly/validators/scattergl/error_y/_type.py +++ b/plotly/validators/scattergl/error_y/_type.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["percent", "constant", "sqrt", "data"]), **kwargs, diff --git a/plotly/validators/scattergl/error_y/_value.py b/plotly/validators/scattergl/error_y/_value.py index 9049da893c..278d75b0cf 100644 --- a/plotly/validators/scattergl/error_y/_value.py +++ b/plotly/validators/scattergl/error_y/_value.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergl/error_y/_valueminus.py b/plotly/validators/scattergl/error_y/_valueminus.py index 696dd2e935..90744f4fed 100644 --- a/plotly/validators/scattergl/error_y/_valueminus.py +++ b/plotly/validators/scattergl/error_y/_valueminus.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueminusValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergl/error_y/_visible.py b/plotly/validators/scattergl/error_y/_visible.py index 47565215e1..b81694b686 100644 --- a/plotly/validators/scattergl/error_y/_visible.py +++ b/plotly/validators/scattergl/error_y/_visible.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/error_y/_width.py b/plotly/validators/scattergl/error_y/_width.py index a2be97728e..4baf6ce758 100644 --- a/plotly/validators/scattergl/error_y/_width.py +++ b/plotly/validators/scattergl/error_y/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergl/hoverlabel/__init__.py b/plotly/validators/scattergl/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/scattergl/hoverlabel/__init__.py +++ b/plotly/validators/scattergl/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/scattergl/hoverlabel/_align.py b/plotly/validators/scattergl/hoverlabel/_align.py index 5e353ed762..bc919c972c 100644 --- a/plotly/validators/scattergl/hoverlabel/_align.py +++ b/plotly/validators/scattergl/hoverlabel/_align.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/scattergl/hoverlabel/_alignsrc.py b/plotly/validators/scattergl/hoverlabel/_alignsrc.py index b227a50f19..d745a068d9 100644 --- a/plotly/validators/scattergl/hoverlabel/_alignsrc.py +++ b/plotly/validators/scattergl/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/hoverlabel/_bgcolor.py b/plotly/validators/scattergl/hoverlabel/_bgcolor.py index 92a16d525a..5f5d2aeae8 100644 --- a/plotly/validators/scattergl/hoverlabel/_bgcolor.py +++ b/plotly/validators/scattergl/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scattergl/hoverlabel/_bgcolorsrc.py b/plotly/validators/scattergl/hoverlabel/_bgcolorsrc.py index b4b2dd872d..9b03846b14 100644 --- a/plotly/validators/scattergl/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/scattergl/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/hoverlabel/_bordercolor.py b/plotly/validators/scattergl/hoverlabel/_bordercolor.py index cf2f457060..bd40e8b5f7 100644 --- a/plotly/validators/scattergl/hoverlabel/_bordercolor.py +++ b/plotly/validators/scattergl/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scattergl/hoverlabel/_bordercolorsrc.py b/plotly/validators/scattergl/hoverlabel/_bordercolorsrc.py index c3e627140d..7984464bdc 100644 --- a/plotly/validators/scattergl/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/scattergl/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/hoverlabel/_font.py b/plotly/validators/scattergl/hoverlabel/_font.py index 83048b2ab9..114f4a01c8 100644 --- a/plotly/validators/scattergl/hoverlabel/_font.py +++ b/plotly/validators/scattergl/hoverlabel/_font.py @@ -1,87 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/scattergl/hoverlabel/_namelength.py b/plotly/validators/scattergl/hoverlabel/_namelength.py index 51e5ddef73..e138d5bbbb 100644 --- a/plotly/validators/scattergl/hoverlabel/_namelength.py +++ b/plotly/validators/scattergl/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/scattergl/hoverlabel/_namelengthsrc.py b/plotly/validators/scattergl/hoverlabel/_namelengthsrc.py index 2603013bea..779ed34d4c 100644 --- a/plotly/validators/scattergl/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/scattergl/hoverlabel/_namelengthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/hoverlabel/font/__init__.py b/plotly/validators/scattergl/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/scattergl/hoverlabel/font/__init__.py +++ b/plotly/validators/scattergl/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattergl/hoverlabel/font/_color.py b/plotly/validators/scattergl/hoverlabel/font/_color.py index 9fdecfe4ac..e373dbd8c0 100644 --- a/plotly/validators/scattergl/hoverlabel/font/_color.py +++ b/plotly/validators/scattergl/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scattergl/hoverlabel/font/_colorsrc.py b/plotly/validators/scattergl/hoverlabel/font/_colorsrc.py index cc44b299d1..623d216d92 100644 --- a/plotly/validators/scattergl/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/scattergl/hoverlabel/font/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/hoverlabel/font/_family.py b/plotly/validators/scattergl/hoverlabel/font/_family.py index b7a17b7673..c62fb905ea 100644 --- a/plotly/validators/scattergl/hoverlabel/font/_family.py +++ b/plotly/validators/scattergl/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/scattergl/hoverlabel/font/_familysrc.py b/plotly/validators/scattergl/hoverlabel/font/_familysrc.py index 4bd1ceef76..c53d457914 100644 --- a/plotly/validators/scattergl/hoverlabel/font/_familysrc.py +++ b/plotly/validators/scattergl/hoverlabel/font/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/hoverlabel/font/_lineposition.py b/plotly/validators/scattergl/hoverlabel/font/_lineposition.py index 5e0fba4fe0..488d7d24c5 100644 --- a/plotly/validators/scattergl/hoverlabel/font/_lineposition.py +++ b/plotly/validators/scattergl/hoverlabel/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/scattergl/hoverlabel/font/_linepositionsrc.py b/plotly/validators/scattergl/hoverlabel/font/_linepositionsrc.py index b370f2026f..dfd34fe48f 100644 --- a/plotly/validators/scattergl/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/scattergl/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/hoverlabel/font/_shadow.py b/plotly/validators/scattergl/hoverlabel/font/_shadow.py index cc27d56441..dbbe5d8f49 100644 --- a/plotly/validators/scattergl/hoverlabel/font/_shadow.py +++ b/plotly/validators/scattergl/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scattergl/hoverlabel/font/_shadowsrc.py b/plotly/validators/scattergl/hoverlabel/font/_shadowsrc.py index a4de930503..49b406022b 100644 --- a/plotly/validators/scattergl/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/scattergl/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/hoverlabel/font/_size.py b/plotly/validators/scattergl/hoverlabel/font/_size.py index d37b0821d2..539c8dc993 100644 --- a/plotly/validators/scattergl/hoverlabel/font/_size.py +++ b/plotly/validators/scattergl/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/scattergl/hoverlabel/font/_sizesrc.py b/plotly/validators/scattergl/hoverlabel/font/_sizesrc.py index 0139bbf712..0415037c06 100644 --- a/plotly/validators/scattergl/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/scattergl/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/hoverlabel/font/_style.py b/plotly/validators/scattergl/hoverlabel/font/_style.py index 9d9b8a5039..b8d93e14f8 100644 --- a/plotly/validators/scattergl/hoverlabel/font/_style.py +++ b/plotly/validators/scattergl/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/scattergl/hoverlabel/font/_stylesrc.py b/plotly/validators/scattergl/hoverlabel/font/_stylesrc.py index a24e9053f6..0ae1cf7087 100644 --- a/plotly/validators/scattergl/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/scattergl/hoverlabel/font/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/hoverlabel/font/_textcase.py b/plotly/validators/scattergl/hoverlabel/font/_textcase.py index bd0c1acf5b..94f84d1e2a 100644 --- a/plotly/validators/scattergl/hoverlabel/font/_textcase.py +++ b/plotly/validators/scattergl/hoverlabel/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/scattergl/hoverlabel/font/_textcasesrc.py b/plotly/validators/scattergl/hoverlabel/font/_textcasesrc.py index e27ded5952..ec54352160 100644 --- a/plotly/validators/scattergl/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/scattergl/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/hoverlabel/font/_variant.py b/plotly/validators/scattergl/hoverlabel/font/_variant.py index 556e668120..311bd03fe9 100644 --- a/plotly/validators/scattergl/hoverlabel/font/_variant.py +++ b/plotly/validators/scattergl/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/scattergl/hoverlabel/font/_variantsrc.py b/plotly/validators/scattergl/hoverlabel/font/_variantsrc.py index 9a08390ed9..55ec2dde14 100644 --- a/plotly/validators/scattergl/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/scattergl/hoverlabel/font/_variantsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/hoverlabel/font/_weight.py b/plotly/validators/scattergl/hoverlabel/font/_weight.py index b5d96016df..3a233e94f1 100644 --- a/plotly/validators/scattergl/hoverlabel/font/_weight.py +++ b/plotly/validators/scattergl/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/scattergl/hoverlabel/font/_weightsrc.py b/plotly/validators/scattergl/hoverlabel/font/_weightsrc.py index 7f361ca6de..54f562abc0 100644 --- a/plotly/validators/scattergl/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/scattergl/hoverlabel/font/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/legendgrouptitle/__init__.py b/plotly/validators/scattergl/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/scattergl/legendgrouptitle/__init__.py +++ b/plotly/validators/scattergl/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/scattergl/legendgrouptitle/_font.py b/plotly/validators/scattergl/legendgrouptitle/_font.py index a8b031d39a..ffbafafd22 100644 --- a/plotly/validators/scattergl/legendgrouptitle/_font.py +++ b/plotly/validators/scattergl/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/scattergl/legendgrouptitle/_text.py b/plotly/validators/scattergl/legendgrouptitle/_text.py index 5a10170cd9..7f35a5a689 100644 --- a/plotly/validators/scattergl/legendgrouptitle/_text.py +++ b/plotly/validators/scattergl/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattergl/legendgrouptitle/font/__init__.py b/plotly/validators/scattergl/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/scattergl/legendgrouptitle/font/__init__.py +++ b/plotly/validators/scattergl/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scattergl/legendgrouptitle/font/_color.py b/plotly/validators/scattergl/legendgrouptitle/font/_color.py index e388995652..fca9170630 100644 --- a/plotly/validators/scattergl/legendgrouptitle/font/_color.py +++ b/plotly/validators/scattergl/legendgrouptitle/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattergl/legendgrouptitle/font/_family.py b/plotly/validators/scattergl/legendgrouptitle/font/_family.py index 3e9c8cd0e1..7ca12d6070 100644 --- a/plotly/validators/scattergl/legendgrouptitle/font/_family.py +++ b/plotly/validators/scattergl/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scattergl/legendgrouptitle/font/_lineposition.py b/plotly/validators/scattergl/legendgrouptitle/font/_lineposition.py index 10b8e17f85..b4421c24ea 100644 --- a/plotly/validators/scattergl/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/scattergl/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/scattergl/legendgrouptitle/font/_shadow.py b/plotly/validators/scattergl/legendgrouptitle/font/_shadow.py index ebf795d75f..50f7d46c61 100644 --- a/plotly/validators/scattergl/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/scattergl/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattergl/legendgrouptitle/font/_size.py b/plotly/validators/scattergl/legendgrouptitle/font/_size.py index b36e19c9b6..18b0c3975d 100644 --- a/plotly/validators/scattergl/legendgrouptitle/font/_size.py +++ b/plotly/validators/scattergl/legendgrouptitle/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scattergl/legendgrouptitle/font/_style.py b/plotly/validators/scattergl/legendgrouptitle/font/_style.py index 7c8fa72d52..0eded352c0 100644 --- a/plotly/validators/scattergl/legendgrouptitle/font/_style.py +++ b/plotly/validators/scattergl/legendgrouptitle/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scattergl/legendgrouptitle/font/_textcase.py b/plotly/validators/scattergl/legendgrouptitle/font/_textcase.py index 8d4830c4e1..f2223e3109 100644 --- a/plotly/validators/scattergl/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/scattergl/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/scattergl/legendgrouptitle/font/_variant.py b/plotly/validators/scattergl/legendgrouptitle/font/_variant.py index 23d6440924..415454f6ff 100644 --- a/plotly/validators/scattergl/legendgrouptitle/font/_variant.py +++ b/plotly/validators/scattergl/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/scattergl/legendgrouptitle/font/_weight.py b/plotly/validators/scattergl/legendgrouptitle/font/_weight.py index 5347feaba0..f14f34b84e 100644 --- a/plotly/validators/scattergl/legendgrouptitle/font/_weight.py +++ b/plotly/validators/scattergl/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scattergl/line/__init__.py b/plotly/validators/scattergl/line/__init__.py index 84b4574bb5..e1adabc8b6 100644 --- a/plotly/validators/scattergl/line/__init__.py +++ b/plotly/validators/scattergl/line/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._width import WidthValidator - from ._shape import ShapeValidator - from ._dash import DashValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._width.WidthValidator", + "._shape.ShapeValidator", + "._dash.DashValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scattergl/line/_color.py b/plotly/validators/scattergl/line/_color.py index d8c0bc2f4b..f2b6b55c24 100644 --- a/plotly/validators/scattergl/line/_color.py +++ b/plotly/validators/scattergl/line/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/line/_dash.py b/plotly/validators/scattergl/line/_dash.py index 795a071f5c..bb0e39f42d 100644 --- a/plotly/validators/scattergl/line/_dash.py +++ b/plotly/validators/scattergl/line/_dash.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DashValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", ["dash", "dashdot", "dot", "longdash", "longdashdot", "solid"] diff --git a/plotly/validators/scattergl/line/_shape.py b/plotly/validators/scattergl/line/_shape.py index 68faf0784e..8266c57637 100644 --- a/plotly/validators/scattergl/line/_shape.py +++ b/plotly/validators/scattergl/line/_shape.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["linear", "hv", "vh", "hvh", "vhv"]), **kwargs, diff --git a/plotly/validators/scattergl/line/_width.py b/plotly/validators/scattergl/line/_width.py index 596fa48118..2a2e8061db 100644 --- a/plotly/validators/scattergl/line/_width.py +++ b/plotly/validators/scattergl/line/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergl/marker/__init__.py b/plotly/validators/scattergl/marker/__init__.py index dc48879d6b..ec56080f71 100644 --- a/plotly/validators/scattergl/marker/__init__.py +++ b/plotly/validators/scattergl/marker/__init__.py @@ -1,61 +1,33 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._symbolsrc import SymbolsrcValidator - from ._symbol import SymbolValidator - from ._sizesrc import SizesrcValidator - from ._sizeref import SizerefValidator - from ._sizemode import SizemodeValidator - from ._sizemin import SizeminValidator - from ._size import SizeValidator - from ._showscale import ShowscaleValidator - from ._reversescale import ReversescaleValidator - from ._opacitysrc import OpacitysrcValidator - from ._opacity import OpacityValidator - from ._line import LineValidator - from ._colorsrc import ColorsrcValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._color import ColorValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - from ._autocolorscale import AutocolorscaleValidator - from ._anglesrc import AnglesrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattergl/marker/_angle.py b/plotly/validators/scattergl/marker/_angle.py index f8f8be37a3..75816a24ac 100644 --- a/plotly/validators/scattergl/marker/_angle.py +++ b/plotly/validators/scattergl/marker/_angle.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AngleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattergl/marker/_anglesrc.py b/plotly/validators/scattergl/marker/_anglesrc.py index f5de5f245b..683c1bdc27 100644 --- a/plotly/validators/scattergl/marker/_anglesrc.py +++ b/plotly/validators/scattergl/marker/_anglesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AnglesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/_autocolorscale.py b/plotly/validators/scattergl/marker/_autocolorscale.py index d6cef03d2c..cb5e423847 100644 --- a/plotly/validators/scattergl/marker/_autocolorscale.py +++ b/plotly/validators/scattergl/marker/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scattergl/marker/_cauto.py b/plotly/validators/scattergl/marker/_cauto.py index 7eac133d5a..f5235fb229 100644 --- a/plotly/validators/scattergl/marker/_cauto.py +++ b/plotly/validators/scattergl/marker/_cauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scattergl/marker/_cmax.py b/plotly/validators/scattergl/marker/_cmax.py index 8e7cdf28c7..47d6772f5e 100644 --- a/plotly/validators/scattergl/marker/_cmax.py +++ b/plotly/validators/scattergl/marker/_cmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scattergl/marker/_cmid.py b/plotly/validators/scattergl/marker/_cmid.py index 1bbb08dbaa..331a69b3fa 100644 --- a/plotly/validators/scattergl/marker/_cmid.py +++ b/plotly/validators/scattergl/marker/_cmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scattergl/marker/_cmin.py b/plotly/validators/scattergl/marker/_cmin.py index 55eaee8892..b86c5d90c1 100644 --- a/plotly/validators/scattergl/marker/_cmin.py +++ b/plotly/validators/scattergl/marker/_cmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scattergl/marker/_color.py b/plotly/validators/scattergl/marker/_color.py index 4a05535545..2f3ee78e5a 100644 --- a/plotly/validators/scattergl/marker/_color.py +++ b/plotly/validators/scattergl/marker/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), colorscale_path=kwargs.pop( diff --git a/plotly/validators/scattergl/marker/_coloraxis.py b/plotly/validators/scattergl/marker/_coloraxis.py index 77a6af97a8..4cc7e55113 100644 --- a/plotly/validators/scattergl/marker/_coloraxis.py +++ b/plotly/validators/scattergl/marker/_coloraxis.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/scattergl/marker/_colorbar.py b/plotly/validators/scattergl/marker/_colorbar.py index 00e1faab3a..decfa1c569 100644 --- a/plotly/validators/scattergl/marker/_colorbar.py +++ b/plotly/validators/scattergl/marker/_colorbar.py @@ -1,281 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattergl/marker/_colorscale.py b/plotly/validators/scattergl/marker/_colorscale.py index 0ed41b8304..b115f4e2c0 100644 --- a/plotly/validators/scattergl/marker/_colorscale.py +++ b/plotly/validators/scattergl/marker/_colorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/scattergl/marker/_colorsrc.py b/plotly/validators/scattergl/marker/_colorsrc.py index 207f192dea..26cdd9af2a 100644 --- a/plotly/validators/scattergl/marker/_colorsrc.py +++ b/plotly/validators/scattergl/marker/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/_line.py b/plotly/validators/scattergl/marker/_line.py index a3e7cee0c4..608d4e9351 100644 --- a/plotly/validators/scattergl/marker/_line.py +++ b/plotly/validators/scattergl/marker/_line.py @@ -1,104 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattergl/marker/_opacity.py b/plotly/validators/scattergl/marker/_opacity.py index be04ecafdf..13915ec123 100644 --- a/plotly/validators/scattergl/marker/_opacity.py +++ b/plotly/validators/scattergl/marker/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), diff --git a/plotly/validators/scattergl/marker/_opacitysrc.py b/plotly/validators/scattergl/marker/_opacitysrc.py index 14dc2bff35..ffd60a6674 100644 --- a/plotly/validators/scattergl/marker/_opacitysrc.py +++ b/plotly/validators/scattergl/marker/_opacitysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/_reversescale.py b/plotly/validators/scattergl/marker/_reversescale.py index 378b1c1623..58f2ac8506 100644 --- a/plotly/validators/scattergl/marker/_reversescale.py +++ b/plotly/validators/scattergl/marker/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/_showscale.py b/plotly/validators/scattergl/marker/_showscale.py index ee96926696..c0c86532c7 100644 --- a/plotly/validators/scattergl/marker/_showscale.py +++ b/plotly/validators/scattergl/marker/_showscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/_size.py b/plotly/validators/scattergl/marker/_size.py index fa36c53306..b47bd53a9c 100644 --- a/plotly/validators/scattergl/marker/_size.py +++ b/plotly/validators/scattergl/marker/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattergl/marker/_sizemin.py b/plotly/validators/scattergl/marker/_sizemin.py index 604a863209..d5d4f2e1d1 100644 --- a/plotly/validators/scattergl/marker/_sizemin.py +++ b/plotly/validators/scattergl/marker/_sizemin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergl/marker/_sizemode.py b/plotly/validators/scattergl/marker/_sizemode.py index 43f8e53b65..78f0aa48cd 100644 --- a/plotly/validators/scattergl/marker/_sizemode.py +++ b/plotly/validators/scattergl/marker/_sizemode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["diameter", "area"]), **kwargs, diff --git a/plotly/validators/scattergl/marker/_sizeref.py b/plotly/validators/scattergl/marker/_sizeref.py index 2924d289a0..4711e77b9b 100644 --- a/plotly/validators/scattergl/marker/_sizeref.py +++ b/plotly/validators/scattergl/marker/_sizeref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/_sizesrc.py b/plotly/validators/scattergl/marker/_sizesrc.py index 9b9a60aa98..bb4112d3d1 100644 --- a/plotly/validators/scattergl/marker/_sizesrc.py +++ b/plotly/validators/scattergl/marker/_sizesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/_symbol.py b/plotly/validators/scattergl/marker/_symbol.py index 6051312b15..3846061912 100644 --- a/plotly/validators/scattergl/marker/_symbol.py +++ b/plotly/validators/scattergl/marker/_symbol.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( diff --git a/plotly/validators/scattergl/marker/_symbolsrc.py b/plotly/validators/scattergl/marker/_symbolsrc.py index c16808cf2e..498f7d98b0 100644 --- a/plotly/validators/scattergl/marker/_symbolsrc.py +++ b/plotly/validators/scattergl/marker/_symbolsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/colorbar/__init__.py b/plotly/validators/scattergl/marker/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/scattergl/marker/colorbar/__init__.py +++ b/plotly/validators/scattergl/marker/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattergl/marker/colorbar/_bgcolor.py b/plotly/validators/scattergl/marker/colorbar/_bgcolor.py index 135dd3cfd4..208a3b8f0c 100644 --- a/plotly/validators/scattergl/marker/colorbar/_bgcolor.py +++ b/plotly/validators/scattergl/marker/colorbar/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/colorbar/_bordercolor.py b/plotly/validators/scattergl/marker/colorbar/_bordercolor.py index d9c2e44eb3..1df0b443c5 100644 --- a/plotly/validators/scattergl/marker/colorbar/_bordercolor.py +++ b/plotly/validators/scattergl/marker/colorbar/_bordercolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/colorbar/_borderwidth.py b/plotly/validators/scattergl/marker/colorbar/_borderwidth.py index 130dca6210..9d7cbcde8a 100644 --- a/plotly/validators/scattergl/marker/colorbar/_borderwidth.py +++ b/plotly/validators/scattergl/marker/colorbar/_borderwidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergl/marker/colorbar/_dtick.py b/plotly/validators/scattergl/marker/colorbar/_dtick.py index 4355798ddf..b4d93426a6 100644 --- a/plotly/validators/scattergl/marker/colorbar/_dtick.py +++ b/plotly/validators/scattergl/marker/colorbar/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/scattergl/marker/colorbar/_exponentformat.py b/plotly/validators/scattergl/marker/colorbar/_exponentformat.py index a463a3f59f..8170693c27 100644 --- a/plotly/validators/scattergl/marker/colorbar/_exponentformat.py +++ b/plotly/validators/scattergl/marker/colorbar/_exponentformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/scattergl/marker/colorbar/_labelalias.py b/plotly/validators/scattergl/marker/colorbar/_labelalias.py index 0437a94e35..d1e5610186 100644 --- a/plotly/validators/scattergl/marker/colorbar/_labelalias.py +++ b/plotly/validators/scattergl/marker/colorbar/_labelalias.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/colorbar/_len.py b/plotly/validators/scattergl/marker/colorbar/_len.py index b36aebe025..357756b149 100644 --- a/plotly/validators/scattergl/marker/colorbar/_len.py +++ b/plotly/validators/scattergl/marker/colorbar/_len.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergl/marker/colorbar/_lenmode.py b/plotly/validators/scattergl/marker/colorbar/_lenmode.py index b4cb595849..d8680104d5 100644 --- a/plotly/validators/scattergl/marker/colorbar/_lenmode.py +++ b/plotly/validators/scattergl/marker/colorbar/_lenmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/scattergl/marker/colorbar/_minexponent.py b/plotly/validators/scattergl/marker/colorbar/_minexponent.py index e7f39e7cf0..f6678d570e 100644 --- a/plotly/validators/scattergl/marker/colorbar/_minexponent.py +++ b/plotly/validators/scattergl/marker/colorbar/_minexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergl/marker/colorbar/_nticks.py b/plotly/validators/scattergl/marker/colorbar/_nticks.py index 0deba37b3f..f6f000b73c 100644 --- a/plotly/validators/scattergl/marker/colorbar/_nticks.py +++ b/plotly/validators/scattergl/marker/colorbar/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergl/marker/colorbar/_orientation.py b/plotly/validators/scattergl/marker/colorbar/_orientation.py index b954098131..bb5dace08f 100644 --- a/plotly/validators/scattergl/marker/colorbar/_orientation.py +++ b/plotly/validators/scattergl/marker/colorbar/_orientation.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/scattergl/marker/colorbar/_outlinecolor.py b/plotly/validators/scattergl/marker/colorbar/_outlinecolor.py index 356a007386..ba7d0e74d8 100644 --- a/plotly/validators/scattergl/marker/colorbar/_outlinecolor.py +++ b/plotly/validators/scattergl/marker/colorbar/_outlinecolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/colorbar/_outlinewidth.py b/plotly/validators/scattergl/marker/colorbar/_outlinewidth.py index 21a1a30993..266d294087 100644 --- a/plotly/validators/scattergl/marker/colorbar/_outlinewidth.py +++ b/plotly/validators/scattergl/marker/colorbar/_outlinewidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergl/marker/colorbar/_separatethousands.py b/plotly/validators/scattergl/marker/colorbar/_separatethousands.py index 636945f9cc..27646005a7 100644 --- a/plotly/validators/scattergl/marker/colorbar/_separatethousands.py +++ b/plotly/validators/scattergl/marker/colorbar/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/colorbar/_showexponent.py b/plotly/validators/scattergl/marker/colorbar/_showexponent.py index 23ecc70023..ad8b164a86 100644 --- a/plotly/validators/scattergl/marker/colorbar/_showexponent.py +++ b/plotly/validators/scattergl/marker/colorbar/_showexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scattergl/marker/colorbar/_showticklabels.py b/plotly/validators/scattergl/marker/colorbar/_showticklabels.py index c190c53c7e..c0e504038b 100644 --- a/plotly/validators/scattergl/marker/colorbar/_showticklabels.py +++ b/plotly/validators/scattergl/marker/colorbar/_showticklabels.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/colorbar/_showtickprefix.py b/plotly/validators/scattergl/marker/colorbar/_showtickprefix.py index 6698dee9d9..7195f87083 100644 --- a/plotly/validators/scattergl/marker/colorbar/_showtickprefix.py +++ b/plotly/validators/scattergl/marker/colorbar/_showtickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scattergl/marker/colorbar/_showticksuffix.py b/plotly/validators/scattergl/marker/colorbar/_showticksuffix.py index 68126cfd78..fdbe4c3740 100644 --- a/plotly/validators/scattergl/marker/colorbar/_showticksuffix.py +++ b/plotly/validators/scattergl/marker/colorbar/_showticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scattergl/marker/colorbar/_thickness.py b/plotly/validators/scattergl/marker/colorbar/_thickness.py index cac68c1ac6..54a83525eb 100644 --- a/plotly/validators/scattergl/marker/colorbar/_thickness.py +++ b/plotly/validators/scattergl/marker/colorbar/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergl/marker/colorbar/_thicknessmode.py b/plotly/validators/scattergl/marker/colorbar/_thicknessmode.py index 9f617b8020..fe1b934cbc 100644 --- a/plotly/validators/scattergl/marker/colorbar/_thicknessmode.py +++ b/plotly/validators/scattergl/marker/colorbar/_thicknessmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/scattergl/marker/colorbar/_tick0.py b/plotly/validators/scattergl/marker/colorbar/_tick0.py index d65a6ee289..03b62fbe95 100644 --- a/plotly/validators/scattergl/marker/colorbar/_tick0.py +++ b/plotly/validators/scattergl/marker/colorbar/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/scattergl/marker/colorbar/_tickangle.py b/plotly/validators/scattergl/marker/colorbar/_tickangle.py index 10f293b9d1..46f02238df 100644 --- a/plotly/validators/scattergl/marker/colorbar/_tickangle.py +++ b/plotly/validators/scattergl/marker/colorbar/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/colorbar/_tickcolor.py b/plotly/validators/scattergl/marker/colorbar/_tickcolor.py index c148975af2..b45211c8ab 100644 --- a/plotly/validators/scattergl/marker/colorbar/_tickcolor.py +++ b/plotly/validators/scattergl/marker/colorbar/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/colorbar/_tickfont.py b/plotly/validators/scattergl/marker/colorbar/_tickfont.py index fd20a78b8b..ea1b8cd239 100644 --- a/plotly/validators/scattergl/marker/colorbar/_tickfont.py +++ b/plotly/validators/scattergl/marker/colorbar/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/scattergl/marker/colorbar/_tickformat.py b/plotly/validators/scattergl/marker/colorbar/_tickformat.py index 4a5d8610b5..83d20b5165 100644 --- a/plotly/validators/scattergl/marker/colorbar/_tickformat.py +++ b/plotly/validators/scattergl/marker/colorbar/_tickformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/colorbar/_tickformatstopdefaults.py b/plotly/validators/scattergl/marker/colorbar/_tickformatstopdefaults.py index 30ec790193..4e8f05b609 100644 --- a/plotly/validators/scattergl/marker/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/scattergl/marker/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/scattergl/marker/colorbar/_tickformatstops.py b/plotly/validators/scattergl/marker/colorbar/_tickformatstops.py index f30d2a4a4a..9fdac8b92d 100644 --- a/plotly/validators/scattergl/marker/colorbar/_tickformatstops.py +++ b/plotly/validators/scattergl/marker/colorbar/_tickformatstops.py @@ -1,53 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattergl/marker/colorbar/_ticklabeloverflow.py b/plotly/validators/scattergl/marker/colorbar/_ticklabeloverflow.py index 0b49293c26..e0649ca185 100644 --- a/plotly/validators/scattergl/marker/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/scattergl/marker/colorbar/_ticklabeloverflow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/scattergl/marker/colorbar/_ticklabelposition.py b/plotly/validators/scattergl/marker/colorbar/_ticklabelposition.py index 9795603f44..c59e0df101 100644 --- a/plotly/validators/scattergl/marker/colorbar/_ticklabelposition.py +++ b/plotly/validators/scattergl/marker/colorbar/_ticklabelposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/scattergl/marker/colorbar/_ticklabelstep.py b/plotly/validators/scattergl/marker/colorbar/_ticklabelstep.py index 4794f7a885..719b2aa816 100644 --- a/plotly/validators/scattergl/marker/colorbar/_ticklabelstep.py +++ b/plotly/validators/scattergl/marker/colorbar/_ticklabelstep.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scattergl/marker/colorbar/_ticklen.py b/plotly/validators/scattergl/marker/colorbar/_ticklen.py index b5ad722fd9..575bae1e63 100644 --- a/plotly/validators/scattergl/marker/colorbar/_ticklen.py +++ b/plotly/validators/scattergl/marker/colorbar/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergl/marker/colorbar/_tickmode.py b/plotly/validators/scattergl/marker/colorbar/_tickmode.py index 40dc2dd7d3..99e08d5f1d 100644 --- a/plotly/validators/scattergl/marker/colorbar/_tickmode.py +++ b/plotly/validators/scattergl/marker/colorbar/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/scattergl/marker/colorbar/_tickprefix.py b/plotly/validators/scattergl/marker/colorbar/_tickprefix.py index 283b7622a1..6edab9a171 100644 --- a/plotly/validators/scattergl/marker/colorbar/_tickprefix.py +++ b/plotly/validators/scattergl/marker/colorbar/_tickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/colorbar/_ticks.py b/plotly/validators/scattergl/marker/colorbar/_ticks.py index a2205a0f1b..eb2790b601 100644 --- a/plotly/validators/scattergl/marker/colorbar/_ticks.py +++ b/plotly/validators/scattergl/marker/colorbar/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/scattergl/marker/colorbar/_ticksuffix.py b/plotly/validators/scattergl/marker/colorbar/_ticksuffix.py index b226433c98..c16325e3f9 100644 --- a/plotly/validators/scattergl/marker/colorbar/_ticksuffix.py +++ b/plotly/validators/scattergl/marker/colorbar/_ticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/colorbar/_ticktext.py b/plotly/validators/scattergl/marker/colorbar/_ticktext.py index 960bd449b8..33700240c4 100644 --- a/plotly/validators/scattergl/marker/colorbar/_ticktext.py +++ b/plotly/validators/scattergl/marker/colorbar/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/colorbar/_ticktextsrc.py b/plotly/validators/scattergl/marker/colorbar/_ticktextsrc.py index 17b6a51df5..574c92ca31 100644 --- a/plotly/validators/scattergl/marker/colorbar/_ticktextsrc.py +++ b/plotly/validators/scattergl/marker/colorbar/_ticktextsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/colorbar/_tickvals.py b/plotly/validators/scattergl/marker/colorbar/_tickvals.py index 1ba9c88cee..fd2ce0f774 100644 --- a/plotly/validators/scattergl/marker/colorbar/_tickvals.py +++ b/plotly/validators/scattergl/marker/colorbar/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/colorbar/_tickvalssrc.py b/plotly/validators/scattergl/marker/colorbar/_tickvalssrc.py index a02708c119..b61c1ebdf7 100644 --- a/plotly/validators/scattergl/marker/colorbar/_tickvalssrc.py +++ b/plotly/validators/scattergl/marker/colorbar/_tickvalssrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/colorbar/_tickwidth.py b/plotly/validators/scattergl/marker/colorbar/_tickwidth.py index c8e8eabfd8..73cbf5862f 100644 --- a/plotly/validators/scattergl/marker/colorbar/_tickwidth.py +++ b/plotly/validators/scattergl/marker/colorbar/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergl/marker/colorbar/_title.py b/plotly/validators/scattergl/marker/colorbar/_title.py index 30f10067d5..7591a81c60 100644 --- a/plotly/validators/scattergl/marker/colorbar/_title.py +++ b/plotly/validators/scattergl/marker/colorbar/_title.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattergl/marker/colorbar/_x.py b/plotly/validators/scattergl/marker/colorbar/_x.py index 7ee79fbade..06bee1a540 100644 --- a/plotly/validators/scattergl/marker/colorbar/_x.py +++ b/plotly/validators/scattergl/marker/colorbar/_x.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/colorbar/_xanchor.py b/plotly/validators/scattergl/marker/colorbar/_xanchor.py index bbad4b4804..5b19406060 100644 --- a/plotly/validators/scattergl/marker/colorbar/_xanchor.py +++ b/plotly/validators/scattergl/marker/colorbar/_xanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/scattergl/marker/colorbar/_xpad.py b/plotly/validators/scattergl/marker/colorbar/_xpad.py index 73ba29a90d..681611e802 100644 --- a/plotly/validators/scattergl/marker/colorbar/_xpad.py +++ b/plotly/validators/scattergl/marker/colorbar/_xpad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergl/marker/colorbar/_xref.py b/plotly/validators/scattergl/marker/colorbar/_xref.py index e89ef2a372..03b9e9be65 100644 --- a/plotly/validators/scattergl/marker/colorbar/_xref.py +++ b/plotly/validators/scattergl/marker/colorbar/_xref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/scattergl/marker/colorbar/_y.py b/plotly/validators/scattergl/marker/colorbar/_y.py index 90c433894b..d7fb0024ac 100644 --- a/plotly/validators/scattergl/marker/colorbar/_y.py +++ b/plotly/validators/scattergl/marker/colorbar/_y.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/colorbar/_yanchor.py b/plotly/validators/scattergl/marker/colorbar/_yanchor.py index 3bddde3f8c..edb74263c2 100644 --- a/plotly/validators/scattergl/marker/colorbar/_yanchor.py +++ b/plotly/validators/scattergl/marker/colorbar/_yanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/scattergl/marker/colorbar/_ypad.py b/plotly/validators/scattergl/marker/colorbar/_ypad.py index 2f9a1fc6e3..9e212d2e73 100644 --- a/plotly/validators/scattergl/marker/colorbar/_ypad.py +++ b/plotly/validators/scattergl/marker/colorbar/_ypad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergl/marker/colorbar/_yref.py b/plotly/validators/scattergl/marker/colorbar/_yref.py index 3daa43429e..a3c79d4a27 100644 --- a/plotly/validators/scattergl/marker/colorbar/_yref.py +++ b/plotly/validators/scattergl/marker/colorbar/_yref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/scattergl/marker/colorbar/tickfont/__init__.py b/plotly/validators/scattergl/marker/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/scattergl/marker/colorbar/tickfont/__init__.py +++ b/plotly/validators/scattergl/marker/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scattergl/marker/colorbar/tickfont/_color.py b/plotly/validators/scattergl/marker/colorbar/tickfont/_color.py index d42e6d9c26..67722e27f8 100644 --- a/plotly/validators/scattergl/marker/colorbar/tickfont/_color.py +++ b/plotly/validators/scattergl/marker/colorbar/tickfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/colorbar/tickfont/_family.py b/plotly/validators/scattergl/marker/colorbar/tickfont/_family.py index 7149bbeb0a..221cf1ba88 100644 --- a/plotly/validators/scattergl/marker/colorbar/tickfont/_family.py +++ b/plotly/validators/scattergl/marker/colorbar/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scattergl/marker/colorbar/tickfont/_lineposition.py b/plotly/validators/scattergl/marker/colorbar/tickfont/_lineposition.py index 3afc277723..4aef976064 100644 --- a/plotly/validators/scattergl/marker/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/scattergl/marker/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/scattergl/marker/colorbar/tickfont/_shadow.py b/plotly/validators/scattergl/marker/colorbar/tickfont/_shadow.py index 37401438b0..d7fa14bbde 100644 --- a/plotly/validators/scattergl/marker/colorbar/tickfont/_shadow.py +++ b/plotly/validators/scattergl/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/colorbar/tickfont/_size.py b/plotly/validators/scattergl/marker/colorbar/tickfont/_size.py index d11e00ace6..c56d11e035 100644 --- a/plotly/validators/scattergl/marker/colorbar/tickfont/_size.py +++ b/plotly/validators/scattergl/marker/colorbar/tickfont/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scattergl/marker/colorbar/tickfont/_style.py b/plotly/validators/scattergl/marker/colorbar/tickfont/_style.py index a022ed0e12..0ebb821be4 100644 --- a/plotly/validators/scattergl/marker/colorbar/tickfont/_style.py +++ b/plotly/validators/scattergl/marker/colorbar/tickfont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scattergl/marker/colorbar/tickfont/_textcase.py b/plotly/validators/scattergl/marker/colorbar/tickfont/_textcase.py index af35c934a0..f997860557 100644 --- a/plotly/validators/scattergl/marker/colorbar/tickfont/_textcase.py +++ b/plotly/validators/scattergl/marker/colorbar/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/scattergl/marker/colorbar/tickfont/_variant.py b/plotly/validators/scattergl/marker/colorbar/tickfont/_variant.py index 84ecbf7194..831b35033a 100644 --- a/plotly/validators/scattergl/marker/colorbar/tickfont/_variant.py +++ b/plotly/validators/scattergl/marker/colorbar/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/scattergl/marker/colorbar/tickfont/_weight.py b/plotly/validators/scattergl/marker/colorbar/tickfont/_weight.py index dbffe74e52..d775e4a135 100644 --- a/plotly/validators/scattergl/marker/colorbar/tickfont/_weight.py +++ b/plotly/validators/scattergl/marker/colorbar/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scattergl/marker/colorbar/tickformatstop/__init__.py b/plotly/validators/scattergl/marker/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/scattergl/marker/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/scattergl/marker/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/scattergl/marker/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/scattergl/marker/colorbar/tickformatstop/_dtickrange.py index dd58b4cf78..40bc39743d 100644 --- a/plotly/validators/scattergl/marker/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/scattergl/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/scattergl/marker/colorbar/tickformatstop/_enabled.py b/plotly/validators/scattergl/marker/colorbar/tickformatstop/_enabled.py index df0313ac90..f0a1811717 100644 --- a/plotly/validators/scattergl/marker/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/scattergl/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/colorbar/tickformatstop/_name.py b/plotly/validators/scattergl/marker/colorbar/tickformatstop/_name.py index 2fd7f9bf94..5c1704b8dc 100644 --- a/plotly/validators/scattergl/marker/colorbar/tickformatstop/_name.py +++ b/plotly/validators/scattergl/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/scattergl/marker/colorbar/tickformatstop/_templateitemname.py index f9c49037dc..37e55637fc 100644 --- a/plotly/validators/scattergl/marker/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/scattergl/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/colorbar/tickformatstop/_value.py b/plotly/validators/scattergl/marker/colorbar/tickformatstop/_value.py index 934607310f..92415cd26b 100644 --- a/plotly/validators/scattergl/marker/colorbar/tickformatstop/_value.py +++ b/plotly/validators/scattergl/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/colorbar/title/__init__.py b/plotly/validators/scattergl/marker/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/scattergl/marker/colorbar/title/__init__.py +++ b/plotly/validators/scattergl/marker/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/scattergl/marker/colorbar/title/_font.py b/plotly/validators/scattergl/marker/colorbar/title/_font.py index c4fb853d76..11cf675d2e 100644 --- a/plotly/validators/scattergl/marker/colorbar/title/_font.py +++ b/plotly/validators/scattergl/marker/colorbar/title/_font.py @@ -1,63 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/scattergl/marker/colorbar/title/_side.py b/plotly/validators/scattergl/marker/colorbar/title/_side.py index 70bd4ef602..c5f05e65d7 100644 --- a/plotly/validators/scattergl/marker/colorbar/title/_side.py +++ b/plotly/validators/scattergl/marker/colorbar/title/_side.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/scattergl/marker/colorbar/title/_text.py b/plotly/validators/scattergl/marker/colorbar/title/_text.py index 0a927f15c5..f00800012f 100644 --- a/plotly/validators/scattergl/marker/colorbar/title/_text.py +++ b/plotly/validators/scattergl/marker/colorbar/title/_text.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/colorbar/title/font/__init__.py b/plotly/validators/scattergl/marker/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/scattergl/marker/colorbar/title/font/__init__.py +++ b/plotly/validators/scattergl/marker/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scattergl/marker/colorbar/title/font/_color.py b/plotly/validators/scattergl/marker/colorbar/title/font/_color.py index 3a92d6f498..eeca90f963 100644 --- a/plotly/validators/scattergl/marker/colorbar/title/font/_color.py +++ b/plotly/validators/scattergl/marker/colorbar/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/colorbar/title/font/_family.py b/plotly/validators/scattergl/marker/colorbar/title/font/_family.py index 9c17a335b7..3027efc085 100644 --- a/plotly/validators/scattergl/marker/colorbar/title/font/_family.py +++ b/plotly/validators/scattergl/marker/colorbar/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scattergl/marker/colorbar/title/font/_lineposition.py b/plotly/validators/scattergl/marker/colorbar/title/font/_lineposition.py index 910c905b08..5d6ca2ce7f 100644 --- a/plotly/validators/scattergl/marker/colorbar/title/font/_lineposition.py +++ b/plotly/validators/scattergl/marker/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/scattergl/marker/colorbar/title/font/_shadow.py b/plotly/validators/scattergl/marker/colorbar/title/font/_shadow.py index 011c7519b4..905a22a3bc 100644 --- a/plotly/validators/scattergl/marker/colorbar/title/font/_shadow.py +++ b/plotly/validators/scattergl/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/colorbar/title/font/_size.py b/plotly/validators/scattergl/marker/colorbar/title/font/_size.py index 2f71c2933f..6ceaaca67b 100644 --- a/plotly/validators/scattergl/marker/colorbar/title/font/_size.py +++ b/plotly/validators/scattergl/marker/colorbar/title/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scattergl/marker/colorbar/title/font/_style.py b/plotly/validators/scattergl/marker/colorbar/title/font/_style.py index 188832bee2..a22bf45a44 100644 --- a/plotly/validators/scattergl/marker/colorbar/title/font/_style.py +++ b/plotly/validators/scattergl/marker/colorbar/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scattergl/marker/colorbar/title/font/_textcase.py b/plotly/validators/scattergl/marker/colorbar/title/font/_textcase.py index 88f5e6353e..67ebca84d7 100644 --- a/plotly/validators/scattergl/marker/colorbar/title/font/_textcase.py +++ b/plotly/validators/scattergl/marker/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/scattergl/marker/colorbar/title/font/_variant.py b/plotly/validators/scattergl/marker/colorbar/title/font/_variant.py index 5758582fec..9d03f3c2f6 100644 --- a/plotly/validators/scattergl/marker/colorbar/title/font/_variant.py +++ b/plotly/validators/scattergl/marker/colorbar/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/scattergl/marker/colorbar/title/font/_weight.py b/plotly/validators/scattergl/marker/colorbar/title/font/_weight.py index 363c83bbc9..248b92e80c 100644 --- a/plotly/validators/scattergl/marker/colorbar/title/font/_weight.py +++ b/plotly/validators/scattergl/marker/colorbar/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scattergl/marker/line/__init__.py b/plotly/validators/scattergl/marker/line/__init__.py index facbe33f88..4ba3ea340b 100644 --- a/plotly/validators/scattergl/marker/line/__init__.py +++ b/plotly/validators/scattergl/marker/line/__init__.py @@ -1,37 +1,21 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._widthsrc import WidthsrcValidator - from ._width import WidthValidator - from ._reversescale import ReversescaleValidator - from ._colorsrc import ColorsrcValidator - from ._colorscale import ColorscaleValidator - from ._coloraxis import ColoraxisValidator - from ._color import ColorValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattergl/marker/line/_autocolorscale.py b/plotly/validators/scattergl/marker/line/_autocolorscale.py index 19028a7c26..c38af6e1d9 100644 --- a/plotly/validators/scattergl/marker/line/_autocolorscale.py +++ b/plotly/validators/scattergl/marker/line/_autocolorscale.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scattergl/marker/line/_cauto.py b/plotly/validators/scattergl/marker/line/_cauto.py index 007da2e667..e6084b6951 100644 --- a/plotly/validators/scattergl/marker/line/_cauto.py +++ b/plotly/validators/scattergl/marker/line/_cauto.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scattergl/marker/line/_cmax.py b/plotly/validators/scattergl/marker/line/_cmax.py index 6a343b7534..e0fa32ad51 100644 --- a/plotly/validators/scattergl/marker/line/_cmax.py +++ b/plotly/validators/scattergl/marker/line/_cmax.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scattergl/marker/line/_cmid.py b/plotly/validators/scattergl/marker/line/_cmid.py index 43d7835e08..623b482845 100644 --- a/plotly/validators/scattergl/marker/line/_cmid.py +++ b/plotly/validators/scattergl/marker/line/_cmid.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scattergl/marker/line/_cmin.py b/plotly/validators/scattergl/marker/line/_cmin.py index f9218e27c3..4311bb1e74 100644 --- a/plotly/validators/scattergl/marker/line/_cmin.py +++ b/plotly/validators/scattergl/marker/line/_cmin.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scattergl/marker/line/_color.py b/plotly/validators/scattergl/marker/line/_color.py index f5cf89699b..d88dd750cf 100644 --- a/plotly/validators/scattergl/marker/line/_color.py +++ b/plotly/validators/scattergl/marker/line/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), colorscale_path=kwargs.pop( diff --git a/plotly/validators/scattergl/marker/line/_coloraxis.py b/plotly/validators/scattergl/marker/line/_coloraxis.py index 3b9952080b..4a157a7915 100644 --- a/plotly/validators/scattergl/marker/line/_coloraxis.py +++ b/plotly/validators/scattergl/marker/line/_coloraxis.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/scattergl/marker/line/_colorscale.py b/plotly/validators/scattergl/marker/line/_colorscale.py index 34252afe15..552a4283d2 100644 --- a/plotly/validators/scattergl/marker/line/_colorscale.py +++ b/plotly/validators/scattergl/marker/line/_colorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/scattergl/marker/line/_colorsrc.py b/plotly/validators/scattergl/marker/line/_colorsrc.py index d4ba88bda1..7f63ec60cb 100644 --- a/plotly/validators/scattergl/marker/line/_colorsrc.py +++ b/plotly/validators/scattergl/marker/line/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/line/_reversescale.py b/plotly/validators/scattergl/marker/line/_reversescale.py index 5dd569a3cf..c132529cd6 100644 --- a/plotly/validators/scattergl/marker/line/_reversescale.py +++ b/plotly/validators/scattergl/marker/line/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/marker/line/_width.py b/plotly/validators/scattergl/marker/line/_width.py index 07beed70c6..77590830ea 100644 --- a/plotly/validators/scattergl/marker/line/_width.py +++ b/plotly/validators/scattergl/marker/line/_width.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattergl/marker/line/_widthsrc.py b/plotly/validators/scattergl/marker/line/_widthsrc.py index 6a958688f9..752fa8e7a5 100644 --- a/plotly/validators/scattergl/marker/line/_widthsrc.py +++ b/plotly/validators/scattergl/marker/line/_widthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/selected/__init__.py b/plotly/validators/scattergl/selected/__init__.py index 3b0aeed383..9d2a313b83 100644 --- a/plotly/validators/scattergl/selected/__init__.py +++ b/plotly/validators/scattergl/selected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] +) diff --git a/plotly/validators/scattergl/selected/_marker.py b/plotly/validators/scattergl/selected/_marker.py index 453b645ee0..d5d0108621 100644 --- a/plotly/validators/scattergl/selected/_marker.py +++ b/plotly/validators/scattergl/selected/_marker.py @@ -1,23 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattergl/selected/_textfont.py b/plotly/validators/scattergl/selected/_textfont.py index 991fe50840..5fe161d0a9 100644 --- a/plotly/validators/scattergl/selected/_textfont.py +++ b/plotly/validators/scattergl/selected/_textfont.py @@ -1,19 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattergl/selected/marker/__init__.py b/plotly/validators/scattergl/selected/marker/__init__.py index 8c321a38bc..c9c7226fe4 100644 --- a/plotly/validators/scattergl/selected/marker/__init__.py +++ b/plotly/validators/scattergl/selected/marker/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._size.SizeValidator", "._opacity.OpacityValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/scattergl/selected/marker/_color.py b/plotly/validators/scattergl/selected/marker/_color.py index 2d74f77641..e34c6bc8c3 100644 --- a/plotly/validators/scattergl/selected/marker/_color.py +++ b/plotly/validators/scattergl/selected/marker/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/selected/marker/_opacity.py b/plotly/validators/scattergl/selected/marker/_opacity.py index 89e9327135..ed102e73d8 100644 --- a/plotly/validators/scattergl/selected/marker/_opacity.py +++ b/plotly/validators/scattergl/selected/marker/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattergl/selected/marker/_size.py b/plotly/validators/scattergl/selected/marker/_size.py index 079f6596ee..ef66857844 100644 --- a/plotly/validators/scattergl/selected/marker/_size.py +++ b/plotly/validators/scattergl/selected/marker/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergl/selected/textfont/__init__.py b/plotly/validators/scattergl/selected/textfont/__init__.py index a9f087e5af..85a4cc9573 100644 --- a/plotly/validators/scattergl/selected/textfont/__init__.py +++ b/plotly/validators/scattergl/selected/textfont/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._color.ColorValidator"] +) diff --git a/plotly/validators/scattergl/selected/textfont/_color.py b/plotly/validators/scattergl/selected/textfont/_color.py index 2b0ddb4b80..5a8adc4225 100644 --- a/plotly/validators/scattergl/selected/textfont/_color.py +++ b/plotly/validators/scattergl/selected/textfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/stream/__init__.py b/plotly/validators/scattergl/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/scattergl/stream/__init__.py +++ b/plotly/validators/scattergl/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/scattergl/stream/_maxpoints.py b/plotly/validators/scattergl/stream/_maxpoints.py index 87bf0337c9..aa99286dcb 100644 --- a/plotly/validators/scattergl/stream/_maxpoints.py +++ b/plotly/validators/scattergl/stream/_maxpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattergl/stream/_token.py b/plotly/validators/scattergl/stream/_token.py index a0e77589f1..46a17212c4 100644 --- a/plotly/validators/scattergl/stream/_token.py +++ b/plotly/validators/scattergl/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scattergl/textfont/__init__.py b/plotly/validators/scattergl/textfont/__init__.py index d87c37ff7a..35d589957b 100644 --- a/plotly/validators/scattergl/textfont/__init__.py +++ b/plotly/validators/scattergl/textfont/__init__.py @@ -1,37 +1,21 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattergl/textfont/_color.py b/plotly/validators/scattergl/textfont/_color.py index 058ae70b60..f804f5b878 100644 --- a/plotly/validators/scattergl/textfont/_color.py +++ b/plotly/validators/scattergl/textfont/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattergl/textfont/_colorsrc.py b/plotly/validators/scattergl/textfont/_colorsrc.py index 57213b2c66..2ad90b3a2c 100644 --- a/plotly/validators/scattergl/textfont/_colorsrc.py +++ b/plotly/validators/scattergl/textfont/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/textfont/_family.py b/plotly/validators/scattergl/textfont/_family.py index c3e8329ef2..21c69ff3e3 100644 --- a/plotly/validators/scattergl/textfont/_family.py +++ b/plotly/validators/scattergl/textfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/scattergl/textfont/_familysrc.py b/plotly/validators/scattergl/textfont/_familysrc.py index 55b4c298e0..873ef6f1f9 100644 --- a/plotly/validators/scattergl/textfont/_familysrc.py +++ b/plotly/validators/scattergl/textfont/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/textfont/_size.py b/plotly/validators/scattergl/textfont/_size.py index 62e1ccaa25..777a7f854b 100644 --- a/plotly/validators/scattergl/textfont/_size.py +++ b/plotly/validators/scattergl/textfont/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/scattergl/textfont/_sizesrc.py b/plotly/validators/scattergl/textfont/_sizesrc.py index d185e1f036..a1d09d7ed9 100644 --- a/plotly/validators/scattergl/textfont/_sizesrc.py +++ b/plotly/validators/scattergl/textfont/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/textfont/_style.py b/plotly/validators/scattergl/textfont/_style.py index c4be2a3035..61c8a28f6b 100644 --- a/plotly/validators/scattergl/textfont/_style.py +++ b/plotly/validators/scattergl/textfont/_style.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/scattergl/textfont/_stylesrc.py b/plotly/validators/scattergl/textfont/_stylesrc.py index 2d64979609..936c35b7b4 100644 --- a/plotly/validators/scattergl/textfont/_stylesrc.py +++ b/plotly/validators/scattergl/textfont/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/textfont/_variant.py b/plotly/validators/scattergl/textfont/_variant.py index 8693fa2a37..c4aee20c3f 100644 --- a/plotly/validators/scattergl/textfont/_variant.py +++ b/plotly/validators/scattergl/textfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "small-caps"]), diff --git a/plotly/validators/scattergl/textfont/_variantsrc.py b/plotly/validators/scattergl/textfont/_variantsrc.py index fac0bf44d0..72deb2ea8d 100644 --- a/plotly/validators/scattergl/textfont/_variantsrc.py +++ b/plotly/validators/scattergl/textfont/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/textfont/_weight.py b/plotly/validators/scattergl/textfont/_weight.py index fa3d81512c..86a1408a27 100644 --- a/plotly/validators/scattergl/textfont/_weight.py +++ b/plotly/validators/scattergl/textfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "bold"]), diff --git a/plotly/validators/scattergl/textfont/_weightsrc.py b/plotly/validators/scattergl/textfont/_weightsrc.py index f0a525f9ab..bd71246a7e 100644 --- a/plotly/validators/scattergl/textfont/_weightsrc.py +++ b/plotly/validators/scattergl/textfont/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattergl/unselected/__init__.py b/plotly/validators/scattergl/unselected/__init__.py index 3b0aeed383..9d2a313b83 100644 --- a/plotly/validators/scattergl/unselected/__init__.py +++ b/plotly/validators/scattergl/unselected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] +) diff --git a/plotly/validators/scattergl/unselected/_marker.py b/plotly/validators/scattergl/unselected/_marker.py index 4b67a89b5e..3eddb1cf01 100644 --- a/plotly/validators/scattergl/unselected/_marker.py +++ b/plotly/validators/scattergl/unselected/_marker.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattergl/unselected/_textfont.py b/plotly/validators/scattergl/unselected/_textfont.py index c34ebb48b2..d186a94ef3 100644 --- a/plotly/validators/scattergl/unselected/_textfont.py +++ b/plotly/validators/scattergl/unselected/_textfont.py @@ -1,20 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattergl/unselected/marker/__init__.py b/plotly/validators/scattergl/unselected/marker/__init__.py index 8c321a38bc..c9c7226fe4 100644 --- a/plotly/validators/scattergl/unselected/marker/__init__.py +++ b/plotly/validators/scattergl/unselected/marker/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._size.SizeValidator", "._opacity.OpacityValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/scattergl/unselected/marker/_color.py b/plotly/validators/scattergl/unselected/marker/_color.py index f6a9651ac8..79e9c75ca3 100644 --- a/plotly/validators/scattergl/unselected/marker/_color.py +++ b/plotly/validators/scattergl/unselected/marker/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattergl/unselected/marker/_opacity.py b/plotly/validators/scattergl/unselected/marker/_opacity.py index d0a5049295..56dc52b621 100644 --- a/plotly/validators/scattergl/unselected/marker/_opacity.py +++ b/plotly/validators/scattergl/unselected/marker/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattergl/unselected/marker/_size.py b/plotly/validators/scattergl/unselected/marker/_size.py index 18e0e6eab6..32c6649c74 100644 --- a/plotly/validators/scattergl/unselected/marker/_size.py +++ b/plotly/validators/scattergl/unselected/marker/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattergl/unselected/textfont/__init__.py b/plotly/validators/scattergl/unselected/textfont/__init__.py index a9f087e5af..85a4cc9573 100644 --- a/plotly/validators/scattergl/unselected/textfont/__init__.py +++ b/plotly/validators/scattergl/unselected/textfont/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._color.ColorValidator"] +) diff --git a/plotly/validators/scattergl/unselected/textfont/_color.py b/plotly/validators/scattergl/unselected/textfont/_color.py index 6527b051d2..e803ed3733 100644 --- a/plotly/validators/scattergl/unselected/textfont/_color.py +++ b/plotly/validators/scattergl/unselected/textfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/__init__.py b/plotly/validators/scattermap/__init__.py index 5abe04051d..8d6c1c2da7 100644 --- a/plotly/validators/scattermap/__init__.py +++ b/plotly/validators/scattermap/__init__.py @@ -1,107 +1,56 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._visible import VisibleValidator - from ._unselected import UnselectedValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._texttemplatesrc import TexttemplatesrcValidator - from ._texttemplate import TexttemplateValidator - from ._textsrc import TextsrcValidator - from ._textposition import TextpositionValidator - from ._textfont import TextfontValidator - from ._text import TextValidator - from ._subplot import SubplotValidator - from ._stream import StreamValidator - from ._showlegend import ShowlegendValidator - from ._selectedpoints import SelectedpointsValidator - from ._selected import SelectedValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - from ._mode import ModeValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._marker import MarkerValidator - from ._lonsrc import LonsrcValidator - from ._lon import LonValidator - from ._line import LineValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._latsrc import LatsrcValidator - from ._lat import LatValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._fillcolor import FillcolorValidator - from ._fill import FillValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._connectgaps import ConnectgapsValidator - from ._cluster import ClusterValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattermap/_below.py b/plotly/validators/scattermap/_below.py index 8f77832b6b..59bc732269 100644 --- a/plotly/validators/scattermap/_below.py +++ b/plotly/validators/scattermap/_below.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BelowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/_cluster.py b/plotly/validators/scattermap/_cluster.py index f319ce45f4..6d8cfd3c60 100644 --- a/plotly/validators/scattermap/_cluster.py +++ b/plotly/validators/scattermap/_cluster.py @@ -1,48 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ClusterValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattermap/_connectgaps.py b/plotly/validators/scattermap/_connectgaps.py index f41f4971e8..9c030135a4 100644 --- a/plotly/validators/scattermap/_connectgaps.py +++ b/plotly/validators/scattermap/_connectgaps.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/_customdata.py b/plotly/validators/scattermap/_customdata.py index d2052fc952..f80547e3d6 100644 --- a/plotly/validators/scattermap/_customdata.py +++ b/plotly/validators/scattermap/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/_customdatasrc.py b/plotly/validators/scattermap/_customdatasrc.py index e9b8121ae0..911df8e6de 100644 --- a/plotly/validators/scattermap/_customdatasrc.py +++ b/plotly/validators/scattermap/_customdatasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermap/_fill.py b/plotly/validators/scattermap/_fill.py index cb9f598dc3..9d7fb5f062 100644 --- a/plotly/validators/scattermap/_fill.py +++ b/plotly/validators/scattermap/_fill.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["none", "toself"]), **kwargs, diff --git a/plotly/validators/scattermap/_fillcolor.py b/plotly/validators/scattermap/_fillcolor.py index 6a63f142fd..18d72fe6dd 100644 --- a/plotly/validators/scattermap/_fillcolor.py +++ b/plotly/validators/scattermap/_fillcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/_hoverinfo.py b/plotly/validators/scattermap/_hoverinfo.py index 0878641077..80e6b7b1d6 100644 --- a/plotly/validators/scattermap/_hoverinfo.py +++ b/plotly/validators/scattermap/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/scattermap/_hoverinfosrc.py b/plotly/validators/scattermap/_hoverinfosrc.py index 9ef6c55988..e272a56443 100644 --- a/plotly/validators/scattermap/_hoverinfosrc.py +++ b/plotly/validators/scattermap/_hoverinfosrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermap/_hoverlabel.py b/plotly/validators/scattermap/_hoverlabel.py index e1fd26b410..8ab8f60043 100644 --- a/plotly/validators/scattermap/_hoverlabel.py +++ b/plotly/validators/scattermap/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattermap/_hovertemplate.py b/plotly/validators/scattermap/_hovertemplate.py index f39a7558df..ae7d641d44 100644 --- a/plotly/validators/scattermap/_hovertemplate.py +++ b/plotly/validators/scattermap/_hovertemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattermap/_hovertemplatesrc.py b/plotly/validators/scattermap/_hovertemplatesrc.py index 9764f51916..c34aad5236 100644 --- a/plotly/validators/scattermap/_hovertemplatesrc.py +++ b/plotly/validators/scattermap/_hovertemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermap/_hovertext.py b/plotly/validators/scattermap/_hovertext.py index e61d5f85ce..551dd1d690 100644 --- a/plotly/validators/scattermap/_hovertext.py +++ b/plotly/validators/scattermap/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattermap/_hovertextsrc.py b/plotly/validators/scattermap/_hovertextsrc.py index df36fec355..8e0acffab9 100644 --- a/plotly/validators/scattermap/_hovertextsrc.py +++ b/plotly/validators/scattermap/_hovertextsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermap/_ids.py b/plotly/validators/scattermap/_ids.py index ade0b467b7..ad3f8c7c6c 100644 --- a/plotly/validators/scattermap/_ids.py +++ b/plotly/validators/scattermap/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/_idssrc.py b/plotly/validators/scattermap/_idssrc.py index 07e47d52a4..fd53e771a5 100644 --- a/plotly/validators/scattermap/_idssrc.py +++ b/plotly/validators/scattermap/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermap/_lat.py b/plotly/validators/scattermap/_lat.py index e1e7a21a61..bc67f62048 100644 --- a/plotly/validators/scattermap/_lat.py +++ b/plotly/validators/scattermap/_lat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LatValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/_latsrc.py b/plotly/validators/scattermap/_latsrc.py index fbd246064d..ed9fd84532 100644 --- a/plotly/validators/scattermap/_latsrc.py +++ b/plotly/validators/scattermap/_latsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LatsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermap/_legend.py b/plotly/validators/scattermap/_legend.py index 60613e2997..c58af2a3b6 100644 --- a/plotly/validators/scattermap/_legend.py +++ b/plotly/validators/scattermap/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/scattermap/_legendgroup.py b/plotly/validators/scattermap/_legendgroup.py index c15205a751..d38eed1b48 100644 --- a/plotly/validators/scattermap/_legendgroup.py +++ b/plotly/validators/scattermap/_legendgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattermap/_legendgrouptitle.py b/plotly/validators/scattermap/_legendgrouptitle.py index db44e123dc..9fa7fea296 100644 --- a/plotly/validators/scattermap/_legendgrouptitle.py +++ b/plotly/validators/scattermap/_legendgrouptitle.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattermap/_legendrank.py b/plotly/validators/scattermap/_legendrank.py index e2dd0ec25f..69438779fd 100644 --- a/plotly/validators/scattermap/_legendrank.py +++ b/plotly/validators/scattermap/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattermap/_legendwidth.py b/plotly/validators/scattermap/_legendwidth.py index 498db23d30..55e18e8d71 100644 --- a/plotly/validators/scattermap/_legendwidth.py +++ b/plotly/validators/scattermap/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattermap/_line.py b/plotly/validators/scattermap/_line.py index 6a31327cea..6c6ebf2d54 100644 --- a/plotly/validators/scattermap/_line.py +++ b/plotly/validators/scattermap/_line.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattermap/_lon.py b/plotly/validators/scattermap/_lon.py index 66bda2b3d4..4e4ac51655 100644 --- a/plotly/validators/scattermap/_lon.py +++ b/plotly/validators/scattermap/_lon.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LonValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/_lonsrc.py b/plotly/validators/scattermap/_lonsrc.py index 58e5abbd33..1a5c08e18c 100644 --- a/plotly/validators/scattermap/_lonsrc.py +++ b/plotly/validators/scattermap/_lonsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LonsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermap/_marker.py b/plotly/validators/scattermap/_marker.py index f55e19922e..0d7d7b1557 100644 --- a/plotly/validators/scattermap/_marker.py +++ b/plotly/validators/scattermap/_marker.py @@ -1,144 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattermap/_meta.py b/plotly/validators/scattermap/_meta.py index ff32888d94..d68f72fc37 100644 --- a/plotly/validators/scattermap/_meta.py +++ b/plotly/validators/scattermap/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/scattermap/_metasrc.py b/plotly/validators/scattermap/_metasrc.py index ce5b289bb6..7758a40a03 100644 --- a/plotly/validators/scattermap/_metasrc.py +++ b/plotly/validators/scattermap/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermap/_mode.py b/plotly/validators/scattermap/_mode.py index 68e75dbfd9..44bb28501f 100644 --- a/plotly/validators/scattermap/_mode.py +++ b/plotly/validators/scattermap/_mode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["lines", "markers", "text"]), diff --git a/plotly/validators/scattermap/_name.py b/plotly/validators/scattermap/_name.py index d35e4dcc96..3099c1375f 100644 --- a/plotly/validators/scattermap/_name.py +++ b/plotly/validators/scattermap/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattermap/_opacity.py b/plotly/validators/scattermap/_opacity.py index 18312c5b1d..30eaa8a592 100644 --- a/plotly/validators/scattermap/_opacity.py +++ b/plotly/validators/scattermap/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattermap/_selected.py b/plotly/validators/scattermap/_selected.py index dd8d4212dd..368ad0b40a 100644 --- a/plotly/validators/scattermap/_selected.py +++ b/plotly/validators/scattermap/_selected.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattermap/_selectedpoints.py b/plotly/validators/scattermap/_selectedpoints.py index c0ef752667..e2a66f74da 100644 --- a/plotly/validators/scattermap/_selectedpoints.py +++ b/plotly/validators/scattermap/_selectedpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/_showlegend.py b/plotly/validators/scattermap/_showlegend.py index 38eb4fa9db..dfb47de0bc 100644 --- a/plotly/validators/scattermap/_showlegend.py +++ b/plotly/validators/scattermap/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattermap/_stream.py b/plotly/validators/scattermap/_stream.py index d11f34a620..19f2702798 100644 --- a/plotly/validators/scattermap/_stream.py +++ b/plotly/validators/scattermap/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattermap/_subplot.py b/plotly/validators/scattermap/_subplot.py index b0b330dc89..600b7b6c2e 100644 --- a/plotly/validators/scattermap/_subplot.py +++ b/plotly/validators/scattermap/_subplot.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SubplotValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "map"), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattermap/_text.py b/plotly/validators/scattermap/_text.py index 74fcb982a9..abd8b2f872 100644 --- a/plotly/validators/scattermap/_text.py +++ b/plotly/validators/scattermap/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattermap/_textfont.py b/plotly/validators/scattermap/_textfont.py index 9fa68efa1f..d1593bb1ea 100644 --- a/plotly/validators/scattermap/_textfont.py +++ b/plotly/validators/scattermap/_textfont.py @@ -1,41 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "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, diff --git a/plotly/validators/scattermap/_textposition.py b/plotly/validators/scattermap/_textposition.py index 663d2f075c..609a8867ec 100644 --- a/plotly/validators/scattermap/_textposition.py +++ b/plotly/validators/scattermap/_textposition.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( diff --git a/plotly/validators/scattermap/_textsrc.py b/plotly/validators/scattermap/_textsrc.py index b11f4e2a83..119a277f1f 100644 --- a/plotly/validators/scattermap/_textsrc.py +++ b/plotly/validators/scattermap/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermap/_texttemplate.py b/plotly/validators/scattermap/_texttemplate.py index 8bc4aebdf3..5e4a29f987 100644 --- a/plotly/validators/scattermap/_texttemplate.py +++ b/plotly/validators/scattermap/_texttemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattermap/_texttemplatesrc.py b/plotly/validators/scattermap/_texttemplatesrc.py index b2486f3047..4050eb1886 100644 --- a/plotly/validators/scattermap/_texttemplatesrc.py +++ b/plotly/validators/scattermap/_texttemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermap/_uid.py b/plotly/validators/scattermap/_uid.py index 0a3b69d80a..8c5a7610b7 100644 --- a/plotly/validators/scattermap/_uid.py +++ b/plotly/validators/scattermap/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/scattermap/_uirevision.py b/plotly/validators/scattermap/_uirevision.py index 99c5357659..c2291a13ab 100644 --- a/plotly/validators/scattermap/_uirevision.py +++ b/plotly/validators/scattermap/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermap/_unselected.py b/plotly/validators/scattermap/_unselected.py index deb45a81af..b66c651cb3 100644 --- a/plotly/validators/scattermap/_unselected.py +++ b/plotly/validators/scattermap/_unselected.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattermap/_visible.py b/plotly/validators/scattermap/_visible.py index b8bf4a914b..1b0017f4b4 100644 --- a/plotly/validators/scattermap/_visible.py +++ b/plotly/validators/scattermap/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/scattermap/cluster/__init__.py b/plotly/validators/scattermap/cluster/__init__.py index e8f530f8e9..34fca2d007 100644 --- a/plotly/validators/scattermap/cluster/__init__.py +++ b/plotly/validators/scattermap/cluster/__init__.py @@ -1,33 +1,19 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._stepsrc import StepsrcValidator - from ._step import StepValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._opacitysrc import OpacitysrcValidator - from ._opacity import OpacityValidator - from ._maxzoom import MaxzoomValidator - from ._enabled import EnabledValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattermap/cluster/_color.py b/plotly/validators/scattermap/cluster/_color.py index a6ce5aa7fd..671dad05f9 100644 --- a/plotly/validators/scattermap/cluster/_color.py +++ b/plotly/validators/scattermap/cluster/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattermap/cluster/_colorsrc.py b/plotly/validators/scattermap/cluster/_colorsrc.py index dea17ba84e..8cd7ea6b83 100644 --- a/plotly/validators/scattermap/cluster/_colorsrc.py +++ b/plotly/validators/scattermap/cluster/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermap/cluster/_enabled.py b/plotly/validators/scattermap/cluster/_enabled.py index ad034a4ff8..b7879bb4ce 100644 --- a/plotly/validators/scattermap/cluster/_enabled.py +++ b/plotly/validators/scattermap/cluster/_enabled.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/cluster/_maxzoom.py b/plotly/validators/scattermap/cluster/_maxzoom.py index d993f17747..3f73c0d00d 100644 --- a/plotly/validators/scattermap/cluster/_maxzoom.py +++ b/plotly/validators/scattermap/cluster/_maxzoom.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxzoomValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 24), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattermap/cluster/_opacity.py b/plotly/validators/scattermap/cluster/_opacity.py index c5ef3dc0ff..491ef9ee15 100644 --- a/plotly/validators/scattermap/cluster/_opacity.py +++ b/plotly/validators/scattermap/cluster/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), diff --git a/plotly/validators/scattermap/cluster/_opacitysrc.py b/plotly/validators/scattermap/cluster/_opacitysrc.py index 0f94bb99a6..a0e8aac8f2 100644 --- a/plotly/validators/scattermap/cluster/_opacitysrc.py +++ b/plotly/validators/scattermap/cluster/_opacitysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermap/cluster/_size.py b/plotly/validators/scattermap/cluster/_size.py index d4b2a3d564..5b4c6ef227 100644 --- a/plotly/validators/scattermap/cluster/_size.py +++ b/plotly/validators/scattermap/cluster/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattermap/cluster/_sizesrc.py b/plotly/validators/scattermap/cluster/_sizesrc.py index ae6e14f32a..3862cd2e07 100644 --- a/plotly/validators/scattermap/cluster/_sizesrc.py +++ b/plotly/validators/scattermap/cluster/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermap/cluster/_step.py b/plotly/validators/scattermap/cluster/_step.py index faf58a4925..6d67f8142f 100644 --- a/plotly/validators/scattermap/cluster/_step.py +++ b/plotly/validators/scattermap/cluster/_step.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StepValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/scattermap/cluster/_stepsrc.py b/plotly/validators/scattermap/cluster/_stepsrc.py index 2a7048bd55..ba2d41df26 100644 --- a/plotly/validators/scattermap/cluster/_stepsrc.py +++ b/plotly/validators/scattermap/cluster/_stepsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StepsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermap/hoverlabel/__init__.py b/plotly/validators/scattermap/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/scattermap/hoverlabel/__init__.py +++ b/plotly/validators/scattermap/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/scattermap/hoverlabel/_align.py b/plotly/validators/scattermap/hoverlabel/_align.py index 29b4e20d15..91f8fa3ee9 100644 --- a/plotly/validators/scattermap/hoverlabel/_align.py +++ b/plotly/validators/scattermap/hoverlabel/_align.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/scattermap/hoverlabel/_alignsrc.py b/plotly/validators/scattermap/hoverlabel/_alignsrc.py index 9c881e4fb9..0480f13c04 100644 --- a/plotly/validators/scattermap/hoverlabel/_alignsrc.py +++ b/plotly/validators/scattermap/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermap/hoverlabel/_bgcolor.py b/plotly/validators/scattermap/hoverlabel/_bgcolor.py index 9bc27168a6..fb79ef9ab0 100644 --- a/plotly/validators/scattermap/hoverlabel/_bgcolor.py +++ b/plotly/validators/scattermap/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scattermap/hoverlabel/_bgcolorsrc.py b/plotly/validators/scattermap/hoverlabel/_bgcolorsrc.py index 5d64e9c0cf..68c9fe34e1 100644 --- a/plotly/validators/scattermap/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/scattermap/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermap/hoverlabel/_bordercolor.py b/plotly/validators/scattermap/hoverlabel/_bordercolor.py index 3596b43681..58bc14e25d 100644 --- a/plotly/validators/scattermap/hoverlabel/_bordercolor.py +++ b/plotly/validators/scattermap/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scattermap/hoverlabel/_bordercolorsrc.py b/plotly/validators/scattermap/hoverlabel/_bordercolorsrc.py index e14a490640..b5405c3bb6 100644 --- a/plotly/validators/scattermap/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/scattermap/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermap/hoverlabel/_font.py b/plotly/validators/scattermap/hoverlabel/_font.py index 4df641bde9..f6408cdc30 100644 --- a/plotly/validators/scattermap/hoverlabel/_font.py +++ b/plotly/validators/scattermap/hoverlabel/_font.py @@ -1,87 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/scattermap/hoverlabel/_namelength.py b/plotly/validators/scattermap/hoverlabel/_namelength.py index 8b7e7a0f5f..4559684640 100644 --- a/plotly/validators/scattermap/hoverlabel/_namelength.py +++ b/plotly/validators/scattermap/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/scattermap/hoverlabel/_namelengthsrc.py b/plotly/validators/scattermap/hoverlabel/_namelengthsrc.py index e5cf1ee286..dcfb60b627 100644 --- a/plotly/validators/scattermap/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/scattermap/hoverlabel/_namelengthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermap/hoverlabel/font/__init__.py b/plotly/validators/scattermap/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/scattermap/hoverlabel/font/__init__.py +++ b/plotly/validators/scattermap/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattermap/hoverlabel/font/_color.py b/plotly/validators/scattermap/hoverlabel/font/_color.py index f4046c640e..101547cf59 100644 --- a/plotly/validators/scattermap/hoverlabel/font/_color.py +++ b/plotly/validators/scattermap/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scattermap/hoverlabel/font/_colorsrc.py b/plotly/validators/scattermap/hoverlabel/font/_colorsrc.py index 8eb3be0156..18892060a1 100644 --- a/plotly/validators/scattermap/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/scattermap/hoverlabel/font/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermap/hoverlabel/font/_family.py b/plotly/validators/scattermap/hoverlabel/font/_family.py index e4da0804a6..bd88b0e63d 100644 --- a/plotly/validators/scattermap/hoverlabel/font/_family.py +++ b/plotly/validators/scattermap/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/scattermap/hoverlabel/font/_familysrc.py b/plotly/validators/scattermap/hoverlabel/font/_familysrc.py index 697e132de3..89144123e3 100644 --- a/plotly/validators/scattermap/hoverlabel/font/_familysrc.py +++ b/plotly/validators/scattermap/hoverlabel/font/_familysrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermap/hoverlabel/font/_lineposition.py b/plotly/validators/scattermap/hoverlabel/font/_lineposition.py index 1da7c967b8..a81ef2d2b9 100644 --- a/plotly/validators/scattermap/hoverlabel/font/_lineposition.py +++ b/plotly/validators/scattermap/hoverlabel/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/scattermap/hoverlabel/font/_linepositionsrc.py b/plotly/validators/scattermap/hoverlabel/font/_linepositionsrc.py index 3e30fe6c37..af399debd1 100644 --- a/plotly/validators/scattermap/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/scattermap/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermap/hoverlabel/font/_shadow.py b/plotly/validators/scattermap/hoverlabel/font/_shadow.py index 5ea5c3b7d8..06d29d8544 100644 --- a/plotly/validators/scattermap/hoverlabel/font/_shadow.py +++ b/plotly/validators/scattermap/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scattermap/hoverlabel/font/_shadowsrc.py b/plotly/validators/scattermap/hoverlabel/font/_shadowsrc.py index a518996fa6..f68965916a 100644 --- a/plotly/validators/scattermap/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/scattermap/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermap/hoverlabel/font/_size.py b/plotly/validators/scattermap/hoverlabel/font/_size.py index 1b9fe472a2..9672feb539 100644 --- a/plotly/validators/scattermap/hoverlabel/font/_size.py +++ b/plotly/validators/scattermap/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/scattermap/hoverlabel/font/_sizesrc.py b/plotly/validators/scattermap/hoverlabel/font/_sizesrc.py index 1a16679b4e..d592f4a438 100644 --- a/plotly/validators/scattermap/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/scattermap/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermap/hoverlabel/font/_style.py b/plotly/validators/scattermap/hoverlabel/font/_style.py index 8f72f4481e..acadd7b8d6 100644 --- a/plotly/validators/scattermap/hoverlabel/font/_style.py +++ b/plotly/validators/scattermap/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/scattermap/hoverlabel/font/_stylesrc.py b/plotly/validators/scattermap/hoverlabel/font/_stylesrc.py index a1f6b8b72c..3051ede46d 100644 --- a/plotly/validators/scattermap/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/scattermap/hoverlabel/font/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermap/hoverlabel/font/_textcase.py b/plotly/validators/scattermap/hoverlabel/font/_textcase.py index 4649ebd868..86e0d475a8 100644 --- a/plotly/validators/scattermap/hoverlabel/font/_textcase.py +++ b/plotly/validators/scattermap/hoverlabel/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/scattermap/hoverlabel/font/_textcasesrc.py b/plotly/validators/scattermap/hoverlabel/font/_textcasesrc.py index 3b2add6053..73a181d6fe 100644 --- a/plotly/validators/scattermap/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/scattermap/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermap/hoverlabel/font/_variant.py b/plotly/validators/scattermap/hoverlabel/font/_variant.py index 5c5693429c..fe09be2124 100644 --- a/plotly/validators/scattermap/hoverlabel/font/_variant.py +++ b/plotly/validators/scattermap/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/scattermap/hoverlabel/font/_variantsrc.py b/plotly/validators/scattermap/hoverlabel/font/_variantsrc.py index c73d29a6db..43d90d7d1d 100644 --- a/plotly/validators/scattermap/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/scattermap/hoverlabel/font/_variantsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermap/hoverlabel/font/_weight.py b/plotly/validators/scattermap/hoverlabel/font/_weight.py index 4f06431b6f..d5d9baeff4 100644 --- a/plotly/validators/scattermap/hoverlabel/font/_weight.py +++ b/plotly/validators/scattermap/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/scattermap/hoverlabel/font/_weightsrc.py b/plotly/validators/scattermap/hoverlabel/font/_weightsrc.py index 6152cc5287..ebc82f42d1 100644 --- a/plotly/validators/scattermap/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/scattermap/hoverlabel/font/_weightsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermap/legendgrouptitle/__init__.py b/plotly/validators/scattermap/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/scattermap/legendgrouptitle/__init__.py +++ b/plotly/validators/scattermap/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/scattermap/legendgrouptitle/_font.py b/plotly/validators/scattermap/legendgrouptitle/_font.py index b4c3e7a89f..29f1ba90f9 100644 --- a/plotly/validators/scattermap/legendgrouptitle/_font.py +++ b/plotly/validators/scattermap/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/scattermap/legendgrouptitle/_text.py b/plotly/validators/scattermap/legendgrouptitle/_text.py index 2fef42c193..3dbf58a3c3 100644 --- a/plotly/validators/scattermap/legendgrouptitle/_text.py +++ b/plotly/validators/scattermap/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattermap/legendgrouptitle/font/__init__.py b/plotly/validators/scattermap/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/scattermap/legendgrouptitle/font/__init__.py +++ b/plotly/validators/scattermap/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scattermap/legendgrouptitle/font/_color.py b/plotly/validators/scattermap/legendgrouptitle/font/_color.py index 4f0d423551..6dcc4656b9 100644 --- a/plotly/validators/scattermap/legendgrouptitle/font/_color.py +++ b/plotly/validators/scattermap/legendgrouptitle/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattermap/legendgrouptitle/font/_family.py b/plotly/validators/scattermap/legendgrouptitle/font/_family.py index 5b4f40932f..90006aae1b 100644 --- a/plotly/validators/scattermap/legendgrouptitle/font/_family.py +++ b/plotly/validators/scattermap/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scattermap/legendgrouptitle/font/_lineposition.py b/plotly/validators/scattermap/legendgrouptitle/font/_lineposition.py index b98b6baafa..e66f7cfabb 100644 --- a/plotly/validators/scattermap/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/scattermap/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/scattermap/legendgrouptitle/font/_shadow.py b/plotly/validators/scattermap/legendgrouptitle/font/_shadow.py index 74ab48f8b0..f73472dd2f 100644 --- a/plotly/validators/scattermap/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/scattermap/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattermap/legendgrouptitle/font/_size.py b/plotly/validators/scattermap/legendgrouptitle/font/_size.py index 511f327a28..655aaca1e8 100644 --- a/plotly/validators/scattermap/legendgrouptitle/font/_size.py +++ b/plotly/validators/scattermap/legendgrouptitle/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scattermap/legendgrouptitle/font/_style.py b/plotly/validators/scattermap/legendgrouptitle/font/_style.py index cde691b49c..689e72db29 100644 --- a/plotly/validators/scattermap/legendgrouptitle/font/_style.py +++ b/plotly/validators/scattermap/legendgrouptitle/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scattermap/legendgrouptitle/font/_textcase.py b/plotly/validators/scattermap/legendgrouptitle/font/_textcase.py index 23ba65a998..1c3dc82c81 100644 --- a/plotly/validators/scattermap/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/scattermap/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/scattermap/legendgrouptitle/font/_variant.py b/plotly/validators/scattermap/legendgrouptitle/font/_variant.py index 7021092c3d..8dd9362bc3 100644 --- a/plotly/validators/scattermap/legendgrouptitle/font/_variant.py +++ b/plotly/validators/scattermap/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/scattermap/legendgrouptitle/font/_weight.py b/plotly/validators/scattermap/legendgrouptitle/font/_weight.py index 9e6f2c9c81..4fcc9f23c0 100644 --- a/plotly/validators/scattermap/legendgrouptitle/font/_weight.py +++ b/plotly/validators/scattermap/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scattermap/line/__init__.py b/plotly/validators/scattermap/line/__init__.py index 63a516578b..d49328faac 100644 --- a/plotly/validators/scattermap/line/__init__.py +++ b/plotly/validators/scattermap/line/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._width.WidthValidator", "._color.ColorValidator"] +) diff --git a/plotly/validators/scattermap/line/_color.py b/plotly/validators/scattermap/line/_color.py index ec51816317..8eae6b27be 100644 --- a/plotly/validators/scattermap/line/_color.py +++ b/plotly/validators/scattermap/line/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/line/_width.py b/plotly/validators/scattermap/line/_width.py index 43b6ec3591..0bedf6dab3 100644 --- a/plotly/validators/scattermap/line/_width.py +++ b/plotly/validators/scattermap/line/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattermap/marker/__init__.py b/plotly/validators/scattermap/marker/__init__.py index 1560474e41..22d40af5a8 100644 --- a/plotly/validators/scattermap/marker/__init__.py +++ b/plotly/validators/scattermap/marker/__init__.py @@ -1,61 +1,33 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._symbolsrc import SymbolsrcValidator - from ._symbol import SymbolValidator - from ._sizesrc import SizesrcValidator - from ._sizeref import SizerefValidator - from ._sizemode import SizemodeValidator - from ._sizemin import SizeminValidator - from ._size import SizeValidator - from ._showscale import ShowscaleValidator - from ._reversescale import ReversescaleValidator - from ._opacitysrc import OpacitysrcValidator - from ._opacity import OpacityValidator - from ._colorsrc import ColorsrcValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._color import ColorValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - from ._autocolorscale import AutocolorscaleValidator - from ._anglesrc import AnglesrcValidator - from ._angle import AngleValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattermap/marker/_allowoverlap.py b/plotly/validators/scattermap/marker/_allowoverlap.py index 82eb588373..7f37fff79c 100644 --- a/plotly/validators/scattermap/marker/_allowoverlap.py +++ b/plotly/validators/scattermap/marker/_allowoverlap.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AllowoverlapValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/marker/_angle.py b/plotly/validators/scattermap/marker/_angle.py index c8888312e2..710098845e 100644 --- a/plotly/validators/scattermap/marker/_angle.py +++ b/plotly/validators/scattermap/marker/_angle.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AngleValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattermap/marker/_anglesrc.py b/plotly/validators/scattermap/marker/_anglesrc.py index 9b33c61f03..c5409e6e84 100644 --- a/plotly/validators/scattermap/marker/_anglesrc.py +++ b/plotly/validators/scattermap/marker/_anglesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AnglesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermap/marker/_autocolorscale.py b/plotly/validators/scattermap/marker/_autocolorscale.py index aead9eaecc..fe2cbfdee7 100644 --- a/plotly/validators/scattermap/marker/_autocolorscale.py +++ b/plotly/validators/scattermap/marker/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scattermap/marker/_cauto.py b/plotly/validators/scattermap/marker/_cauto.py index 70a73b27b7..bb1c82a894 100644 --- a/plotly/validators/scattermap/marker/_cauto.py +++ b/plotly/validators/scattermap/marker/_cauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scattermap/marker/_cmax.py b/plotly/validators/scattermap/marker/_cmax.py index 4f7dd5fa23..23f6729bba 100644 --- a/plotly/validators/scattermap/marker/_cmax.py +++ b/plotly/validators/scattermap/marker/_cmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scattermap/marker/_cmid.py b/plotly/validators/scattermap/marker/_cmid.py index 9f49629913..9cdc99f817 100644 --- a/plotly/validators/scattermap/marker/_cmid.py +++ b/plotly/validators/scattermap/marker/_cmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scattermap/marker/_cmin.py b/plotly/validators/scattermap/marker/_cmin.py index 84c56d57c8..596a23af1d 100644 --- a/plotly/validators/scattermap/marker/_cmin.py +++ b/plotly/validators/scattermap/marker/_cmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scattermap/marker/_color.py b/plotly/validators/scattermap/marker/_color.py index d4fefd2566..45ba62d257 100644 --- a/plotly/validators/scattermap/marker/_color.py +++ b/plotly/validators/scattermap/marker/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), colorscale_path=kwargs.pop( diff --git a/plotly/validators/scattermap/marker/_coloraxis.py b/plotly/validators/scattermap/marker/_coloraxis.py index 4cffb01936..61c868b4ac 100644 --- a/plotly/validators/scattermap/marker/_coloraxis.py +++ b/plotly/validators/scattermap/marker/_coloraxis.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/scattermap/marker/_colorbar.py b/plotly/validators/scattermap/marker/_colorbar.py index fc17b1b511..3b7d3f122c 100644 --- a/plotly/validators/scattermap/marker/_colorbar.py +++ b/plotly/validators/scattermap/marker/_colorbar.py @@ -1,281 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattermap/marker/_colorscale.py b/plotly/validators/scattermap/marker/_colorscale.py index 2475facda1..842be26052 100644 --- a/plotly/validators/scattermap/marker/_colorscale.py +++ b/plotly/validators/scattermap/marker/_colorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/scattermap/marker/_colorsrc.py b/plotly/validators/scattermap/marker/_colorsrc.py index 4e879f8043..e5e60b43da 100644 --- a/plotly/validators/scattermap/marker/_colorsrc.py +++ b/plotly/validators/scattermap/marker/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermap/marker/_opacity.py b/plotly/validators/scattermap/marker/_opacity.py index 04896701e0..6c737f29ec 100644 --- a/plotly/validators/scattermap/marker/_opacity.py +++ b/plotly/validators/scattermap/marker/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), diff --git a/plotly/validators/scattermap/marker/_opacitysrc.py b/plotly/validators/scattermap/marker/_opacitysrc.py index b5d305f926..b3ffc0a8bf 100644 --- a/plotly/validators/scattermap/marker/_opacitysrc.py +++ b/plotly/validators/scattermap/marker/_opacitysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermap/marker/_reversescale.py b/plotly/validators/scattermap/marker/_reversescale.py index af3e5abc21..e88e582f47 100644 --- a/plotly/validators/scattermap/marker/_reversescale.py +++ b/plotly/validators/scattermap/marker/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/marker/_showscale.py b/plotly/validators/scattermap/marker/_showscale.py index 75fa2cc9eb..6d05cd78a4 100644 --- a/plotly/validators/scattermap/marker/_showscale.py +++ b/plotly/validators/scattermap/marker/_showscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/marker/_size.py b/plotly/validators/scattermap/marker/_size.py index 31c07b717e..417148cc7e 100644 --- a/plotly/validators/scattermap/marker/_size.py +++ b/plotly/validators/scattermap/marker/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattermap/marker/_sizemin.py b/plotly/validators/scattermap/marker/_sizemin.py index 2a7ccd99db..ae56f6c191 100644 --- a/plotly/validators/scattermap/marker/_sizemin.py +++ b/plotly/validators/scattermap/marker/_sizemin.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattermap/marker/_sizemode.py b/plotly/validators/scattermap/marker/_sizemode.py index 7bd38b5d49..824ec47dd2 100644 --- a/plotly/validators/scattermap/marker/_sizemode.py +++ b/plotly/validators/scattermap/marker/_sizemode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["diameter", "area"]), **kwargs, diff --git a/plotly/validators/scattermap/marker/_sizeref.py b/plotly/validators/scattermap/marker/_sizeref.py index 167ef979e3..7be596127d 100644 --- a/plotly/validators/scattermap/marker/_sizeref.py +++ b/plotly/validators/scattermap/marker/_sizeref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/marker/_sizesrc.py b/plotly/validators/scattermap/marker/_sizesrc.py index 940dd1adc8..fbf8427a5a 100644 --- a/plotly/validators/scattermap/marker/_sizesrc.py +++ b/plotly/validators/scattermap/marker/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermap/marker/_symbol.py b/plotly/validators/scattermap/marker/_symbol.py index 44ec16ec9c..ac5c4dbfc5 100644 --- a/plotly/validators/scattermap/marker/_symbol.py +++ b/plotly/validators/scattermap/marker/_symbol.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymbolValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattermap/marker/_symbolsrc.py b/plotly/validators/scattermap/marker/_symbolsrc.py index 878194d24f..b75e96b28b 100644 --- a/plotly/validators/scattermap/marker/_symbolsrc.py +++ b/plotly/validators/scattermap/marker/_symbolsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermap/marker/colorbar/__init__.py b/plotly/validators/scattermap/marker/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/scattermap/marker/colorbar/__init__.py +++ b/plotly/validators/scattermap/marker/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattermap/marker/colorbar/_bgcolor.py b/plotly/validators/scattermap/marker/colorbar/_bgcolor.py index 6cd837fae4..95332b0332 100644 --- a/plotly/validators/scattermap/marker/colorbar/_bgcolor.py +++ b/plotly/validators/scattermap/marker/colorbar/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/marker/colorbar/_bordercolor.py b/plotly/validators/scattermap/marker/colorbar/_bordercolor.py index 817f4a3261..8dd9b8a747 100644 --- a/plotly/validators/scattermap/marker/colorbar/_bordercolor.py +++ b/plotly/validators/scattermap/marker/colorbar/_bordercolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/marker/colorbar/_borderwidth.py b/plotly/validators/scattermap/marker/colorbar/_borderwidth.py index e13a66c045..749cb3c7cb 100644 --- a/plotly/validators/scattermap/marker/colorbar/_borderwidth.py +++ b/plotly/validators/scattermap/marker/colorbar/_borderwidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattermap/marker/colorbar/_dtick.py b/plotly/validators/scattermap/marker/colorbar/_dtick.py index 2107e5928c..308f2429d5 100644 --- a/plotly/validators/scattermap/marker/colorbar/_dtick.py +++ b/plotly/validators/scattermap/marker/colorbar/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/scattermap/marker/colorbar/_exponentformat.py b/plotly/validators/scattermap/marker/colorbar/_exponentformat.py index ba0b8e0a60..9f186cdf8a 100644 --- a/plotly/validators/scattermap/marker/colorbar/_exponentformat.py +++ b/plotly/validators/scattermap/marker/colorbar/_exponentformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/scattermap/marker/colorbar/_labelalias.py b/plotly/validators/scattermap/marker/colorbar/_labelalias.py index e787dba654..d0afc72770 100644 --- a/plotly/validators/scattermap/marker/colorbar/_labelalias.py +++ b/plotly/validators/scattermap/marker/colorbar/_labelalias.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/marker/colorbar/_len.py b/plotly/validators/scattermap/marker/colorbar/_len.py index a7aa81599e..4d5a8fec08 100644 --- a/plotly/validators/scattermap/marker/colorbar/_len.py +++ b/plotly/validators/scattermap/marker/colorbar/_len.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattermap/marker/colorbar/_lenmode.py b/plotly/validators/scattermap/marker/colorbar/_lenmode.py index 27487baeff..67658fd0b6 100644 --- a/plotly/validators/scattermap/marker/colorbar/_lenmode.py +++ b/plotly/validators/scattermap/marker/colorbar/_lenmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/scattermap/marker/colorbar/_minexponent.py b/plotly/validators/scattermap/marker/colorbar/_minexponent.py index 7f3b748dae..30030a2232 100644 --- a/plotly/validators/scattermap/marker/colorbar/_minexponent.py +++ b/plotly/validators/scattermap/marker/colorbar/_minexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattermap/marker/colorbar/_nticks.py b/plotly/validators/scattermap/marker/colorbar/_nticks.py index ce86070b2f..50995fc0ce 100644 --- a/plotly/validators/scattermap/marker/colorbar/_nticks.py +++ b/plotly/validators/scattermap/marker/colorbar/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattermap/marker/colorbar/_orientation.py b/plotly/validators/scattermap/marker/colorbar/_orientation.py index 4df6303dfb..5bc76bb74b 100644 --- a/plotly/validators/scattermap/marker/colorbar/_orientation.py +++ b/plotly/validators/scattermap/marker/colorbar/_orientation.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/scattermap/marker/colorbar/_outlinecolor.py b/plotly/validators/scattermap/marker/colorbar/_outlinecolor.py index 0796630e3d..abe0e0eb32 100644 --- a/plotly/validators/scattermap/marker/colorbar/_outlinecolor.py +++ b/plotly/validators/scattermap/marker/colorbar/_outlinecolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/marker/colorbar/_outlinewidth.py b/plotly/validators/scattermap/marker/colorbar/_outlinewidth.py index 049c4df1f8..8031bd444e 100644 --- a/plotly/validators/scattermap/marker/colorbar/_outlinewidth.py +++ b/plotly/validators/scattermap/marker/colorbar/_outlinewidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattermap/marker/colorbar/_separatethousands.py b/plotly/validators/scattermap/marker/colorbar/_separatethousands.py index b10abcb939..3966ced521 100644 --- a/plotly/validators/scattermap/marker/colorbar/_separatethousands.py +++ b/plotly/validators/scattermap/marker/colorbar/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/marker/colorbar/_showexponent.py b/plotly/validators/scattermap/marker/colorbar/_showexponent.py index 6f17a280bf..5f5d181433 100644 --- a/plotly/validators/scattermap/marker/colorbar/_showexponent.py +++ b/plotly/validators/scattermap/marker/colorbar/_showexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scattermap/marker/colorbar/_showticklabels.py b/plotly/validators/scattermap/marker/colorbar/_showticklabels.py index ebce23113f..2ed1316415 100644 --- a/plotly/validators/scattermap/marker/colorbar/_showticklabels.py +++ b/plotly/validators/scattermap/marker/colorbar/_showticklabels.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/marker/colorbar/_showtickprefix.py b/plotly/validators/scattermap/marker/colorbar/_showtickprefix.py index 144c21773a..e7508a09c5 100644 --- a/plotly/validators/scattermap/marker/colorbar/_showtickprefix.py +++ b/plotly/validators/scattermap/marker/colorbar/_showtickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scattermap/marker/colorbar/_showticksuffix.py b/plotly/validators/scattermap/marker/colorbar/_showticksuffix.py index 26473b2d46..fc2f2ea25e 100644 --- a/plotly/validators/scattermap/marker/colorbar/_showticksuffix.py +++ b/plotly/validators/scattermap/marker/colorbar/_showticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scattermap/marker/colorbar/_thickness.py b/plotly/validators/scattermap/marker/colorbar/_thickness.py index 3389d0ce71..9c52d50562 100644 --- a/plotly/validators/scattermap/marker/colorbar/_thickness.py +++ b/plotly/validators/scattermap/marker/colorbar/_thickness.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattermap/marker/colorbar/_thicknessmode.py b/plotly/validators/scattermap/marker/colorbar/_thicknessmode.py index 2bbae3981e..de3fff0e43 100644 --- a/plotly/validators/scattermap/marker/colorbar/_thicknessmode.py +++ b/plotly/validators/scattermap/marker/colorbar/_thicknessmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/scattermap/marker/colorbar/_tick0.py b/plotly/validators/scattermap/marker/colorbar/_tick0.py index a2fd5c42a5..afacfbf6d4 100644 --- a/plotly/validators/scattermap/marker/colorbar/_tick0.py +++ b/plotly/validators/scattermap/marker/colorbar/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/scattermap/marker/colorbar/_tickangle.py b/plotly/validators/scattermap/marker/colorbar/_tickangle.py index 2e9082337c..c2e7a8eb73 100644 --- a/plotly/validators/scattermap/marker/colorbar/_tickangle.py +++ b/plotly/validators/scattermap/marker/colorbar/_tickangle.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/marker/colorbar/_tickcolor.py b/plotly/validators/scattermap/marker/colorbar/_tickcolor.py index 196a338238..e6c1e472c5 100644 --- a/plotly/validators/scattermap/marker/colorbar/_tickcolor.py +++ b/plotly/validators/scattermap/marker/colorbar/_tickcolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/marker/colorbar/_tickfont.py b/plotly/validators/scattermap/marker/colorbar/_tickfont.py index d8e66d22bf..2bc61b9023 100644 --- a/plotly/validators/scattermap/marker/colorbar/_tickfont.py +++ b/plotly/validators/scattermap/marker/colorbar/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/scattermap/marker/colorbar/_tickformat.py b/plotly/validators/scattermap/marker/colorbar/_tickformat.py index dfc46830a5..d5f6483d3e 100644 --- a/plotly/validators/scattermap/marker/colorbar/_tickformat.py +++ b/plotly/validators/scattermap/marker/colorbar/_tickformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/marker/colorbar/_tickformatstopdefaults.py b/plotly/validators/scattermap/marker/colorbar/_tickformatstopdefaults.py index e8e646b654..3cef7b1570 100644 --- a/plotly/validators/scattermap/marker/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/scattermap/marker/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/scattermap/marker/colorbar/_tickformatstops.py b/plotly/validators/scattermap/marker/colorbar/_tickformatstops.py index 8213517155..4fa242402e 100644 --- a/plotly/validators/scattermap/marker/colorbar/_tickformatstops.py +++ b/plotly/validators/scattermap/marker/colorbar/_tickformatstops.py @@ -1,53 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattermap/marker/colorbar/_ticklabeloverflow.py b/plotly/validators/scattermap/marker/colorbar/_ticklabeloverflow.py index 3fbb3a3861..51f767363c 100644 --- a/plotly/validators/scattermap/marker/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/scattermap/marker/colorbar/_ticklabeloverflow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/scattermap/marker/colorbar/_ticklabelposition.py b/plotly/validators/scattermap/marker/colorbar/_ticklabelposition.py index fa873a7fff..7b70efeac6 100644 --- a/plotly/validators/scattermap/marker/colorbar/_ticklabelposition.py +++ b/plotly/validators/scattermap/marker/colorbar/_ticklabelposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/scattermap/marker/colorbar/_ticklabelstep.py b/plotly/validators/scattermap/marker/colorbar/_ticklabelstep.py index c6cc44d50e..0566bab6b8 100644 --- a/plotly/validators/scattermap/marker/colorbar/_ticklabelstep.py +++ b/plotly/validators/scattermap/marker/colorbar/_ticklabelstep.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scattermap/marker/colorbar/_ticklen.py b/plotly/validators/scattermap/marker/colorbar/_ticklen.py index 0f2c0e9662..1b669ac0af 100644 --- a/plotly/validators/scattermap/marker/colorbar/_ticklen.py +++ b/plotly/validators/scattermap/marker/colorbar/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattermap/marker/colorbar/_tickmode.py b/plotly/validators/scattermap/marker/colorbar/_tickmode.py index cc7bfa57cb..285b07180e 100644 --- a/plotly/validators/scattermap/marker/colorbar/_tickmode.py +++ b/plotly/validators/scattermap/marker/colorbar/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/scattermap/marker/colorbar/_tickprefix.py b/plotly/validators/scattermap/marker/colorbar/_tickprefix.py index 234d6b6977..322e3f957d 100644 --- a/plotly/validators/scattermap/marker/colorbar/_tickprefix.py +++ b/plotly/validators/scattermap/marker/colorbar/_tickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/marker/colorbar/_ticks.py b/plotly/validators/scattermap/marker/colorbar/_ticks.py index 9344604f83..e946bd3eaf 100644 --- a/plotly/validators/scattermap/marker/colorbar/_ticks.py +++ b/plotly/validators/scattermap/marker/colorbar/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/scattermap/marker/colorbar/_ticksuffix.py b/plotly/validators/scattermap/marker/colorbar/_ticksuffix.py index c3853b8264..9d0d5d5c76 100644 --- a/plotly/validators/scattermap/marker/colorbar/_ticksuffix.py +++ b/plotly/validators/scattermap/marker/colorbar/_ticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/marker/colorbar/_ticktext.py b/plotly/validators/scattermap/marker/colorbar/_ticktext.py index bf758dea21..2d64f95ab0 100644 --- a/plotly/validators/scattermap/marker/colorbar/_ticktext.py +++ b/plotly/validators/scattermap/marker/colorbar/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/marker/colorbar/_ticktextsrc.py b/plotly/validators/scattermap/marker/colorbar/_ticktextsrc.py index 6ad9c7c950..58c28c62c3 100644 --- a/plotly/validators/scattermap/marker/colorbar/_ticktextsrc.py +++ b/plotly/validators/scattermap/marker/colorbar/_ticktextsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermap/marker/colorbar/_tickvals.py b/plotly/validators/scattermap/marker/colorbar/_tickvals.py index 971c1070ac..c8573038c9 100644 --- a/plotly/validators/scattermap/marker/colorbar/_tickvals.py +++ b/plotly/validators/scattermap/marker/colorbar/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/marker/colorbar/_tickvalssrc.py b/plotly/validators/scattermap/marker/colorbar/_tickvalssrc.py index 1c8c6af3c8..e6a09c966e 100644 --- a/plotly/validators/scattermap/marker/colorbar/_tickvalssrc.py +++ b/plotly/validators/scattermap/marker/colorbar/_tickvalssrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermap/marker/colorbar/_tickwidth.py b/plotly/validators/scattermap/marker/colorbar/_tickwidth.py index 99db01c8d1..58c5b1842b 100644 --- a/plotly/validators/scattermap/marker/colorbar/_tickwidth.py +++ b/plotly/validators/scattermap/marker/colorbar/_tickwidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattermap/marker/colorbar/_title.py b/plotly/validators/scattermap/marker/colorbar/_title.py index fe3523b7fb..70274d46f1 100644 --- a/plotly/validators/scattermap/marker/colorbar/_title.py +++ b/plotly/validators/scattermap/marker/colorbar/_title.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattermap/marker/colorbar/_x.py b/plotly/validators/scattermap/marker/colorbar/_x.py index a30ad917da..dd3fa6aac3 100644 --- a/plotly/validators/scattermap/marker/colorbar/_x.py +++ b/plotly/validators/scattermap/marker/colorbar/_x.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/marker/colorbar/_xanchor.py b/plotly/validators/scattermap/marker/colorbar/_xanchor.py index bc329f9bfa..44491b27c2 100644 --- a/plotly/validators/scattermap/marker/colorbar/_xanchor.py +++ b/plotly/validators/scattermap/marker/colorbar/_xanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/scattermap/marker/colorbar/_xpad.py b/plotly/validators/scattermap/marker/colorbar/_xpad.py index 67d61b4fc9..2e5a667882 100644 --- a/plotly/validators/scattermap/marker/colorbar/_xpad.py +++ b/plotly/validators/scattermap/marker/colorbar/_xpad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattermap/marker/colorbar/_xref.py b/plotly/validators/scattermap/marker/colorbar/_xref.py index 4b83341586..979bb78ced 100644 --- a/plotly/validators/scattermap/marker/colorbar/_xref.py +++ b/plotly/validators/scattermap/marker/colorbar/_xref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/scattermap/marker/colorbar/_y.py b/plotly/validators/scattermap/marker/colorbar/_y.py index 17d74d9cdc..8477c0d01e 100644 --- a/plotly/validators/scattermap/marker/colorbar/_y.py +++ b/plotly/validators/scattermap/marker/colorbar/_y.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/marker/colorbar/_yanchor.py b/plotly/validators/scattermap/marker/colorbar/_yanchor.py index 058a2451e5..a62bd6992f 100644 --- a/plotly/validators/scattermap/marker/colorbar/_yanchor.py +++ b/plotly/validators/scattermap/marker/colorbar/_yanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/scattermap/marker/colorbar/_ypad.py b/plotly/validators/scattermap/marker/colorbar/_ypad.py index 25de673212..d4ce306f14 100644 --- a/plotly/validators/scattermap/marker/colorbar/_ypad.py +++ b/plotly/validators/scattermap/marker/colorbar/_ypad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattermap/marker/colorbar/_yref.py b/plotly/validators/scattermap/marker/colorbar/_yref.py index 692edeb58c..c929688739 100644 --- a/plotly/validators/scattermap/marker/colorbar/_yref.py +++ b/plotly/validators/scattermap/marker/colorbar/_yref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/scattermap/marker/colorbar/tickfont/__init__.py b/plotly/validators/scattermap/marker/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/scattermap/marker/colorbar/tickfont/__init__.py +++ b/plotly/validators/scattermap/marker/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scattermap/marker/colorbar/tickfont/_color.py b/plotly/validators/scattermap/marker/colorbar/tickfont/_color.py index ec378db715..36cbe0db51 100644 --- a/plotly/validators/scattermap/marker/colorbar/tickfont/_color.py +++ b/plotly/validators/scattermap/marker/colorbar/tickfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/marker/colorbar/tickfont/_family.py b/plotly/validators/scattermap/marker/colorbar/tickfont/_family.py index 2ce2c8a5ea..bae7f006d2 100644 --- a/plotly/validators/scattermap/marker/colorbar/tickfont/_family.py +++ b/plotly/validators/scattermap/marker/colorbar/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scattermap/marker/colorbar/tickfont/_lineposition.py b/plotly/validators/scattermap/marker/colorbar/tickfont/_lineposition.py index c3e2c98e30..9a6cb96d4e 100644 --- a/plotly/validators/scattermap/marker/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/scattermap/marker/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/scattermap/marker/colorbar/tickfont/_shadow.py b/plotly/validators/scattermap/marker/colorbar/tickfont/_shadow.py index 6156893827..f0771f1a24 100644 --- a/plotly/validators/scattermap/marker/colorbar/tickfont/_shadow.py +++ b/plotly/validators/scattermap/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/marker/colorbar/tickfont/_size.py b/plotly/validators/scattermap/marker/colorbar/tickfont/_size.py index ea700bfec8..24c4289202 100644 --- a/plotly/validators/scattermap/marker/colorbar/tickfont/_size.py +++ b/plotly/validators/scattermap/marker/colorbar/tickfont/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scattermap/marker/colorbar/tickfont/_style.py b/plotly/validators/scattermap/marker/colorbar/tickfont/_style.py index d56e408d27..38eb3f83e6 100644 --- a/plotly/validators/scattermap/marker/colorbar/tickfont/_style.py +++ b/plotly/validators/scattermap/marker/colorbar/tickfont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scattermap/marker/colorbar/tickfont/_textcase.py b/plotly/validators/scattermap/marker/colorbar/tickfont/_textcase.py index 916d34bd90..ae1af2d0e5 100644 --- a/plotly/validators/scattermap/marker/colorbar/tickfont/_textcase.py +++ b/plotly/validators/scattermap/marker/colorbar/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/scattermap/marker/colorbar/tickfont/_variant.py b/plotly/validators/scattermap/marker/colorbar/tickfont/_variant.py index eee2dbe558..8f9d551d54 100644 --- a/plotly/validators/scattermap/marker/colorbar/tickfont/_variant.py +++ b/plotly/validators/scattermap/marker/colorbar/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/scattermap/marker/colorbar/tickfont/_weight.py b/plotly/validators/scattermap/marker/colorbar/tickfont/_weight.py index eeb6bcd397..77459d468d 100644 --- a/plotly/validators/scattermap/marker/colorbar/tickfont/_weight.py +++ b/plotly/validators/scattermap/marker/colorbar/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scattermap/marker/colorbar/tickformatstop/__init__.py b/plotly/validators/scattermap/marker/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/scattermap/marker/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/scattermap/marker/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/scattermap/marker/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/scattermap/marker/colorbar/tickformatstop/_dtickrange.py index 7cba676b0d..06f2aaf3ae 100644 --- a/plotly/validators/scattermap/marker/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/scattermap/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/scattermap/marker/colorbar/tickformatstop/_enabled.py b/plotly/validators/scattermap/marker/colorbar/tickformatstop/_enabled.py index 999dd894ad..31e091c06a 100644 --- a/plotly/validators/scattermap/marker/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/scattermap/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/marker/colorbar/tickformatstop/_name.py b/plotly/validators/scattermap/marker/colorbar/tickformatstop/_name.py index 43ca86bc53..2ac2e52175 100644 --- a/plotly/validators/scattermap/marker/colorbar/tickformatstop/_name.py +++ b/plotly/validators/scattermap/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/marker/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/scattermap/marker/colorbar/tickformatstop/_templateitemname.py index 7b58f36a96..41432d5ff1 100644 --- a/plotly/validators/scattermap/marker/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/scattermap/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/marker/colorbar/tickformatstop/_value.py b/plotly/validators/scattermap/marker/colorbar/tickformatstop/_value.py index b685d10f29..3c50c511e3 100644 --- a/plotly/validators/scattermap/marker/colorbar/tickformatstop/_value.py +++ b/plotly/validators/scattermap/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/marker/colorbar/title/__init__.py b/plotly/validators/scattermap/marker/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/scattermap/marker/colorbar/title/__init__.py +++ b/plotly/validators/scattermap/marker/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/scattermap/marker/colorbar/title/_font.py b/plotly/validators/scattermap/marker/colorbar/title/_font.py index cbdde43314..c073155a36 100644 --- a/plotly/validators/scattermap/marker/colorbar/title/_font.py +++ b/plotly/validators/scattermap/marker/colorbar/title/_font.py @@ -1,63 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/scattermap/marker/colorbar/title/_side.py b/plotly/validators/scattermap/marker/colorbar/title/_side.py index 1006d026f4..48cfac93e1 100644 --- a/plotly/validators/scattermap/marker/colorbar/title/_side.py +++ b/plotly/validators/scattermap/marker/colorbar/title/_side.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/scattermap/marker/colorbar/title/_text.py b/plotly/validators/scattermap/marker/colorbar/title/_text.py index b040699ac4..84096245de 100644 --- a/plotly/validators/scattermap/marker/colorbar/title/_text.py +++ b/plotly/validators/scattermap/marker/colorbar/title/_text.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/marker/colorbar/title/font/__init__.py b/plotly/validators/scattermap/marker/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/scattermap/marker/colorbar/title/font/__init__.py +++ b/plotly/validators/scattermap/marker/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scattermap/marker/colorbar/title/font/_color.py b/plotly/validators/scattermap/marker/colorbar/title/font/_color.py index 36d0585ea8..eeccf9167f 100644 --- a/plotly/validators/scattermap/marker/colorbar/title/font/_color.py +++ b/plotly/validators/scattermap/marker/colorbar/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/marker/colorbar/title/font/_family.py b/plotly/validators/scattermap/marker/colorbar/title/font/_family.py index 857033b41d..855b607d8f 100644 --- a/plotly/validators/scattermap/marker/colorbar/title/font/_family.py +++ b/plotly/validators/scattermap/marker/colorbar/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scattermap/marker/colorbar/title/font/_lineposition.py b/plotly/validators/scattermap/marker/colorbar/title/font/_lineposition.py index b6b54255eb..3e167fe77e 100644 --- a/plotly/validators/scattermap/marker/colorbar/title/font/_lineposition.py +++ b/plotly/validators/scattermap/marker/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/scattermap/marker/colorbar/title/font/_shadow.py b/plotly/validators/scattermap/marker/colorbar/title/font/_shadow.py index c1d0017aff..54e6efda10 100644 --- a/plotly/validators/scattermap/marker/colorbar/title/font/_shadow.py +++ b/plotly/validators/scattermap/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/marker/colorbar/title/font/_size.py b/plotly/validators/scattermap/marker/colorbar/title/font/_size.py index 45fa89752d..10081efdc8 100644 --- a/plotly/validators/scattermap/marker/colorbar/title/font/_size.py +++ b/plotly/validators/scattermap/marker/colorbar/title/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scattermap/marker/colorbar/title/font/_style.py b/plotly/validators/scattermap/marker/colorbar/title/font/_style.py index f4e2a297b9..7e9172c7c6 100644 --- a/plotly/validators/scattermap/marker/colorbar/title/font/_style.py +++ b/plotly/validators/scattermap/marker/colorbar/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scattermap/marker/colorbar/title/font/_textcase.py b/plotly/validators/scattermap/marker/colorbar/title/font/_textcase.py index 3ea2d40295..930a99848e 100644 --- a/plotly/validators/scattermap/marker/colorbar/title/font/_textcase.py +++ b/plotly/validators/scattermap/marker/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/scattermap/marker/colorbar/title/font/_variant.py b/plotly/validators/scattermap/marker/colorbar/title/font/_variant.py index ed5b4fb0e5..3cba7f56bc 100644 --- a/plotly/validators/scattermap/marker/colorbar/title/font/_variant.py +++ b/plotly/validators/scattermap/marker/colorbar/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/scattermap/marker/colorbar/title/font/_weight.py b/plotly/validators/scattermap/marker/colorbar/title/font/_weight.py index b324e80448..804669813e 100644 --- a/plotly/validators/scattermap/marker/colorbar/title/font/_weight.py +++ b/plotly/validators/scattermap/marker/colorbar/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scattermap/selected/__init__.py b/plotly/validators/scattermap/selected/__init__.py index e9bdb89f26..20900abc1a 100644 --- a/plotly/validators/scattermap/selected/__init__.py +++ b/plotly/validators/scattermap/selected/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.MarkerValidator"] +) diff --git a/plotly/validators/scattermap/selected/_marker.py b/plotly/validators/scattermap/selected/_marker.py index d8c13c04f0..3e9b074e15 100644 --- a/plotly/validators/scattermap/selected/_marker.py +++ b/plotly/validators/scattermap/selected/_marker.py @@ -1,23 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattermap/selected/marker/__init__.py b/plotly/validators/scattermap/selected/marker/__init__.py index 8c321a38bc..c9c7226fe4 100644 --- a/plotly/validators/scattermap/selected/marker/__init__.py +++ b/plotly/validators/scattermap/selected/marker/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._size.SizeValidator", "._opacity.OpacityValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/scattermap/selected/marker/_color.py b/plotly/validators/scattermap/selected/marker/_color.py index 1be4f77e98..2526f2e62f 100644 --- a/plotly/validators/scattermap/selected/marker/_color.py +++ b/plotly/validators/scattermap/selected/marker/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/selected/marker/_opacity.py b/plotly/validators/scattermap/selected/marker/_opacity.py index ebc2f57c67..197f8e0ea7 100644 --- a/plotly/validators/scattermap/selected/marker/_opacity.py +++ b/plotly/validators/scattermap/selected/marker/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattermap/selected/marker/_size.py b/plotly/validators/scattermap/selected/marker/_size.py index 0cad239bad..6c59896343 100644 --- a/plotly/validators/scattermap/selected/marker/_size.py +++ b/plotly/validators/scattermap/selected/marker/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattermap/stream/__init__.py b/plotly/validators/scattermap/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/scattermap/stream/__init__.py +++ b/plotly/validators/scattermap/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/scattermap/stream/_maxpoints.py b/plotly/validators/scattermap/stream/_maxpoints.py index 3c805e0ae6..c4ae8bf154 100644 --- a/plotly/validators/scattermap/stream/_maxpoints.py +++ b/plotly/validators/scattermap/stream/_maxpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattermap/stream/_token.py b/plotly/validators/scattermap/stream/_token.py index 1187bbf747..0d09c5a58d 100644 --- a/plotly/validators/scattermap/stream/_token.py +++ b/plotly/validators/scattermap/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scattermap/textfont/__init__.py b/plotly/validators/scattermap/textfont/__init__.py index 9301c0688c..13cbf9ae54 100644 --- a/plotly/validators/scattermap/textfont/__init__.py +++ b/plotly/validators/scattermap/textfont/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scattermap/textfont/_color.py b/plotly/validators/scattermap/textfont/_color.py index 995e394128..fb72b3454e 100644 --- a/plotly/validators/scattermap/textfont/_color.py +++ b/plotly/validators/scattermap/textfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/textfont/_family.py b/plotly/validators/scattermap/textfont/_family.py index e298237611..1c885d5f03 100644 --- a/plotly/validators/scattermap/textfont/_family.py +++ b/plotly/validators/scattermap/textfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scattermap/textfont/_size.py b/plotly/validators/scattermap/textfont/_size.py index 69c62feba4..13ab57d6e5 100644 --- a/plotly/validators/scattermap/textfont/_size.py +++ b/plotly/validators/scattermap/textfont/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scattermap/textfont/_style.py b/plotly/validators/scattermap/textfont/_style.py index ca1f49fa28..f7aa228a7f 100644 --- a/plotly/validators/scattermap/textfont/_style.py +++ b/plotly/validators/scattermap/textfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scattermap/textfont/_weight.py b/plotly/validators/scattermap/textfont/_weight.py index 27cf0506c5..f32ed6101a 100644 --- a/plotly/validators/scattermap/textfont/_weight.py +++ b/plotly/validators/scattermap/textfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scattermap/unselected/__init__.py b/plotly/validators/scattermap/unselected/__init__.py index e9bdb89f26..20900abc1a 100644 --- a/plotly/validators/scattermap/unselected/__init__.py +++ b/plotly/validators/scattermap/unselected/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.MarkerValidator"] +) diff --git a/plotly/validators/scattermap/unselected/_marker.py b/plotly/validators/scattermap/unselected/_marker.py index 51971a7f67..ce0244646b 100644 --- a/plotly/validators/scattermap/unselected/_marker.py +++ b/plotly/validators/scattermap/unselected/_marker.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattermap/unselected/marker/__init__.py b/plotly/validators/scattermap/unselected/marker/__init__.py index 8c321a38bc..c9c7226fe4 100644 --- a/plotly/validators/scattermap/unselected/marker/__init__.py +++ b/plotly/validators/scattermap/unselected/marker/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._size.SizeValidator", "._opacity.OpacityValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/scattermap/unselected/marker/_color.py b/plotly/validators/scattermap/unselected/marker/_color.py index 20c1ae57cb..66fe4f27a2 100644 --- a/plotly/validators/scattermap/unselected/marker/_color.py +++ b/plotly/validators/scattermap/unselected/marker/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermap/unselected/marker/_opacity.py b/plotly/validators/scattermap/unselected/marker/_opacity.py index f1d964847a..9c686e63c7 100644 --- a/plotly/validators/scattermap/unselected/marker/_opacity.py +++ b/plotly/validators/scattermap/unselected/marker/_opacity.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattermap/unselected/marker/_size.py b/plotly/validators/scattermap/unselected/marker/_size.py index 9a0a48c2c2..aeb0cbd857 100644 --- a/plotly/validators/scattermap/unselected/marker/_size.py +++ b/plotly/validators/scattermap/unselected/marker/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattermapbox/__init__.py b/plotly/validators/scattermapbox/__init__.py index 5abe04051d..8d6c1c2da7 100644 --- a/plotly/validators/scattermapbox/__init__.py +++ b/plotly/validators/scattermapbox/__init__.py @@ -1,107 +1,56 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._visible import VisibleValidator - from ._unselected import UnselectedValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._texttemplatesrc import TexttemplatesrcValidator - from ._texttemplate import TexttemplateValidator - from ._textsrc import TextsrcValidator - from ._textposition import TextpositionValidator - from ._textfont import TextfontValidator - from ._text import TextValidator - from ._subplot import SubplotValidator - from ._stream import StreamValidator - from ._showlegend import ShowlegendValidator - from ._selectedpoints import SelectedpointsValidator - from ._selected import SelectedValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - from ._mode import ModeValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._marker import MarkerValidator - from ._lonsrc import LonsrcValidator - from ._lon import LonValidator - from ._line import LineValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._latsrc import LatsrcValidator - from ._lat import LatValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._fillcolor import FillcolorValidator - from ._fill import FillValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._connectgaps import ConnectgapsValidator - from ._cluster import ClusterValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattermapbox/_below.py b/plotly/validators/scattermapbox/_below.py index 342cd58748..cac1c8f8e5 100644 --- a/plotly/validators/scattermapbox/_below.py +++ b/plotly/validators/scattermapbox/_below.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BelowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/_cluster.py b/plotly/validators/scattermapbox/_cluster.py index 3aa413320e..ac4707a574 100644 --- a/plotly/validators/scattermapbox/_cluster.py +++ b/plotly/validators/scattermapbox/_cluster.py @@ -1,48 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ClusterValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattermapbox/_connectgaps.py b/plotly/validators/scattermapbox/_connectgaps.py index e7ccb84266..e1eaaf0050 100644 --- a/plotly/validators/scattermapbox/_connectgaps.py +++ b/plotly/validators/scattermapbox/_connectgaps.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/_customdata.py b/plotly/validators/scattermapbox/_customdata.py index 25a7822f44..b4566895ee 100644 --- a/plotly/validators/scattermapbox/_customdata.py +++ b/plotly/validators/scattermapbox/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/_customdatasrc.py b/plotly/validators/scattermapbox/_customdatasrc.py index 9165d844bc..8b21d2b07b 100644 --- a/plotly/validators/scattermapbox/_customdatasrc.py +++ b/plotly/validators/scattermapbox/_customdatasrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/_fill.py b/plotly/validators/scattermapbox/_fill.py index 61b0c4a024..c4f8d5464e 100644 --- a/plotly/validators/scattermapbox/_fill.py +++ b/plotly/validators/scattermapbox/_fill.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["none", "toself"]), **kwargs, diff --git a/plotly/validators/scattermapbox/_fillcolor.py b/plotly/validators/scattermapbox/_fillcolor.py index 68509325dd..f02aa3fe8c 100644 --- a/plotly/validators/scattermapbox/_fillcolor.py +++ b/plotly/validators/scattermapbox/_fillcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/_hoverinfo.py b/plotly/validators/scattermapbox/_hoverinfo.py index 5f31c98bb4..47efa2ea2e 100644 --- a/plotly/validators/scattermapbox/_hoverinfo.py +++ b/plotly/validators/scattermapbox/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/scattermapbox/_hoverinfosrc.py b/plotly/validators/scattermapbox/_hoverinfosrc.py index ca674e9987..56cc1878c4 100644 --- a/plotly/validators/scattermapbox/_hoverinfosrc.py +++ b/plotly/validators/scattermapbox/_hoverinfosrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/_hoverlabel.py b/plotly/validators/scattermapbox/_hoverlabel.py index d64d472690..3c58eb1b67 100644 --- a/plotly/validators/scattermapbox/_hoverlabel.py +++ b/plotly/validators/scattermapbox/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattermapbox/_hovertemplate.py b/plotly/validators/scattermapbox/_hovertemplate.py index e852a325e0..626da635c7 100644 --- a/plotly/validators/scattermapbox/_hovertemplate.py +++ b/plotly/validators/scattermapbox/_hovertemplate.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattermapbox/_hovertemplatesrc.py b/plotly/validators/scattermapbox/_hovertemplatesrc.py index e9bd881f56..979f123ce4 100644 --- a/plotly/validators/scattermapbox/_hovertemplatesrc.py +++ b/plotly/validators/scattermapbox/_hovertemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/_hovertext.py b/plotly/validators/scattermapbox/_hovertext.py index 5551981a29..c03276cbf7 100644 --- a/plotly/validators/scattermapbox/_hovertext.py +++ b/plotly/validators/scattermapbox/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattermapbox/_hovertextsrc.py b/plotly/validators/scattermapbox/_hovertextsrc.py index 793d83d547..658a84fd56 100644 --- a/plotly/validators/scattermapbox/_hovertextsrc.py +++ b/plotly/validators/scattermapbox/_hovertextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/_ids.py b/plotly/validators/scattermapbox/_ids.py index 69ed8265a6..a9f9597925 100644 --- a/plotly/validators/scattermapbox/_ids.py +++ b/plotly/validators/scattermapbox/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/_idssrc.py b/plotly/validators/scattermapbox/_idssrc.py index ab8392b80c..bb4ff8f2e5 100644 --- a/plotly/validators/scattermapbox/_idssrc.py +++ b/plotly/validators/scattermapbox/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/_lat.py b/plotly/validators/scattermapbox/_lat.py index b42e1bad00..02caf09617 100644 --- a/plotly/validators/scattermapbox/_lat.py +++ b/plotly/validators/scattermapbox/_lat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LatValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/_latsrc.py b/plotly/validators/scattermapbox/_latsrc.py index 0b8b1ff55a..f47ab51ae3 100644 --- a/plotly/validators/scattermapbox/_latsrc.py +++ b/plotly/validators/scattermapbox/_latsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LatsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/_legend.py b/plotly/validators/scattermapbox/_legend.py index 61eda251e7..367b932c37 100644 --- a/plotly/validators/scattermapbox/_legend.py +++ b/plotly/validators/scattermapbox/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/scattermapbox/_legendgroup.py b/plotly/validators/scattermapbox/_legendgroup.py index 3f0e17ae1b..6d3e9c1f32 100644 --- a/plotly/validators/scattermapbox/_legendgroup.py +++ b/plotly/validators/scattermapbox/_legendgroup.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/_legendgrouptitle.py b/plotly/validators/scattermapbox/_legendgrouptitle.py index 081389079e..5c68063555 100644 --- a/plotly/validators/scattermapbox/_legendgrouptitle.py +++ b/plotly/validators/scattermapbox/_legendgrouptitle.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattermapbox/_legendrank.py b/plotly/validators/scattermapbox/_legendrank.py index 9b6de458f8..0ab01c0002 100644 --- a/plotly/validators/scattermapbox/_legendrank.py +++ b/plotly/validators/scattermapbox/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/_legendwidth.py b/plotly/validators/scattermapbox/_legendwidth.py index 30a7362088..929d8f9e49 100644 --- a/plotly/validators/scattermapbox/_legendwidth.py +++ b/plotly/validators/scattermapbox/_legendwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattermapbox/_line.py b/plotly/validators/scattermapbox/_line.py index 0aa64d96a0..a510aab119 100644 --- a/plotly/validators/scattermapbox/_line.py +++ b/plotly/validators/scattermapbox/_line.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattermapbox/_lon.py b/plotly/validators/scattermapbox/_lon.py index 3b2bfb0d0f..7eb9821496 100644 --- a/plotly/validators/scattermapbox/_lon.py +++ b/plotly/validators/scattermapbox/_lon.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LonValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/_lonsrc.py b/plotly/validators/scattermapbox/_lonsrc.py index 54262bf32d..9bcbdfef09 100644 --- a/plotly/validators/scattermapbox/_lonsrc.py +++ b/plotly/validators/scattermapbox/_lonsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LonsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/_marker.py b/plotly/validators/scattermapbox/_marker.py index 40b321ce54..01fc92eee3 100644 --- a/plotly/validators/scattermapbox/_marker.py +++ b/plotly/validators/scattermapbox/_marker.py @@ -1,144 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattermapbox/_meta.py b/plotly/validators/scattermapbox/_meta.py index 359ee67e58..26bd403976 100644 --- a/plotly/validators/scattermapbox/_meta.py +++ b/plotly/validators/scattermapbox/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/scattermapbox/_metasrc.py b/plotly/validators/scattermapbox/_metasrc.py index bf6b4fca60..4438fe23ad 100644 --- a/plotly/validators/scattermapbox/_metasrc.py +++ b/plotly/validators/scattermapbox/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/_mode.py b/plotly/validators/scattermapbox/_mode.py index e0d4ef26e6..9e36d81c1e 100644 --- a/plotly/validators/scattermapbox/_mode.py +++ b/plotly/validators/scattermapbox/_mode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["lines", "markers", "text"]), diff --git a/plotly/validators/scattermapbox/_name.py b/plotly/validators/scattermapbox/_name.py index 6088c21e6e..6a15b834ac 100644 --- a/plotly/validators/scattermapbox/_name.py +++ b/plotly/validators/scattermapbox/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/_opacity.py b/plotly/validators/scattermapbox/_opacity.py index 3fdf247794..df559c4065 100644 --- a/plotly/validators/scattermapbox/_opacity.py +++ b/plotly/validators/scattermapbox/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattermapbox/_selected.py b/plotly/validators/scattermapbox/_selected.py index 5117d010b9..98962c4113 100644 --- a/plotly/validators/scattermapbox/_selected.py +++ b/plotly/validators/scattermapbox/_selected.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattermapbox/_selectedpoints.py b/plotly/validators/scattermapbox/_selectedpoints.py index 284e50bebf..9729dedaec 100644 --- a/plotly/validators/scattermapbox/_selectedpoints.py +++ b/plotly/validators/scattermapbox/_selectedpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/_showlegend.py b/plotly/validators/scattermapbox/_showlegend.py index f1be8c5471..d6b1a9737f 100644 --- a/plotly/validators/scattermapbox/_showlegend.py +++ b/plotly/validators/scattermapbox/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/_stream.py b/plotly/validators/scattermapbox/_stream.py index 5726a169f7..52b3854bf6 100644 --- a/plotly/validators/scattermapbox/_stream.py +++ b/plotly/validators/scattermapbox/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattermapbox/_subplot.py b/plotly/validators/scattermapbox/_subplot.py index 3a32042c1b..cdf9414fac 100644 --- a/plotly/validators/scattermapbox/_subplot.py +++ b/plotly/validators/scattermapbox/_subplot.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SubplotValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "mapbox"), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattermapbox/_text.py b/plotly/validators/scattermapbox/_text.py index 3943319278..ae557ad4fb 100644 --- a/plotly/validators/scattermapbox/_text.py +++ b/plotly/validators/scattermapbox/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattermapbox/_textfont.py b/plotly/validators/scattermapbox/_textfont.py index 6bc7ab76fc..d6cb46306d 100644 --- a/plotly/validators/scattermapbox/_textfont.py +++ b/plotly/validators/scattermapbox/_textfont.py @@ -1,41 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "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, diff --git a/plotly/validators/scattermapbox/_textposition.py b/plotly/validators/scattermapbox/_textposition.py index 14895ddd3a..20aac822f6 100644 --- a/plotly/validators/scattermapbox/_textposition.py +++ b/plotly/validators/scattermapbox/_textposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( diff --git a/plotly/validators/scattermapbox/_textsrc.py b/plotly/validators/scattermapbox/_textsrc.py index 114f1560a5..0b47b64ccf 100644 --- a/plotly/validators/scattermapbox/_textsrc.py +++ b/plotly/validators/scattermapbox/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/_texttemplate.py b/plotly/validators/scattermapbox/_texttemplate.py index a41df0ba1f..86b7041083 100644 --- a/plotly/validators/scattermapbox/_texttemplate.py +++ b/plotly/validators/scattermapbox/_texttemplate.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattermapbox/_texttemplatesrc.py b/plotly/validators/scattermapbox/_texttemplatesrc.py index a49fbebb5f..51a7d36f70 100644 --- a/plotly/validators/scattermapbox/_texttemplatesrc.py +++ b/plotly/validators/scattermapbox/_texttemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/_uid.py b/plotly/validators/scattermapbox/_uid.py index b8049e2a33..e90768de2f 100644 --- a/plotly/validators/scattermapbox/_uid.py +++ b/plotly/validators/scattermapbox/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/_uirevision.py b/plotly/validators/scattermapbox/_uirevision.py index 5bdf0a8435..60150f5876 100644 --- a/plotly/validators/scattermapbox/_uirevision.py +++ b/plotly/validators/scattermapbox/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/_unselected.py b/plotly/validators/scattermapbox/_unselected.py index 3e4106cc45..a8d266f8b3 100644 --- a/plotly/validators/scattermapbox/_unselected.py +++ b/plotly/validators/scattermapbox/_unselected.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattermapbox/_visible.py b/plotly/validators/scattermapbox/_visible.py index 85640767fd..21ff740acd 100644 --- a/plotly/validators/scattermapbox/_visible.py +++ b/plotly/validators/scattermapbox/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/scattermapbox/cluster/__init__.py b/plotly/validators/scattermapbox/cluster/__init__.py index e8f530f8e9..34fca2d007 100644 --- a/plotly/validators/scattermapbox/cluster/__init__.py +++ b/plotly/validators/scattermapbox/cluster/__init__.py @@ -1,33 +1,19 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._stepsrc import StepsrcValidator - from ._step import StepValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._opacitysrc import OpacitysrcValidator - from ._opacity import OpacityValidator - from ._maxzoom import MaxzoomValidator - from ._enabled import EnabledValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattermapbox/cluster/_color.py b/plotly/validators/scattermapbox/cluster/_color.py index 6c6c0bf9eb..1950a5894c 100644 --- a/plotly/validators/scattermapbox/cluster/_color.py +++ b/plotly/validators/scattermapbox/cluster/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattermapbox/cluster/_colorsrc.py b/plotly/validators/scattermapbox/cluster/_colorsrc.py index f433d59b6c..6353ece110 100644 --- a/plotly/validators/scattermapbox/cluster/_colorsrc.py +++ b/plotly/validators/scattermapbox/cluster/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/cluster/_enabled.py b/plotly/validators/scattermapbox/cluster/_enabled.py index 52228a271c..0187bd8236 100644 --- a/plotly/validators/scattermapbox/cluster/_enabled.py +++ b/plotly/validators/scattermapbox/cluster/_enabled.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/cluster/_maxzoom.py b/plotly/validators/scattermapbox/cluster/_maxzoom.py index 2cd73397ad..59f285963e 100644 --- a/plotly/validators/scattermapbox/cluster/_maxzoom.py +++ b/plotly/validators/scattermapbox/cluster/_maxzoom.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxzoomValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 24), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattermapbox/cluster/_opacity.py b/plotly/validators/scattermapbox/cluster/_opacity.py index a6d4ee5b68..0aae57d161 100644 --- a/plotly/validators/scattermapbox/cluster/_opacity.py +++ b/plotly/validators/scattermapbox/cluster/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), diff --git a/plotly/validators/scattermapbox/cluster/_opacitysrc.py b/plotly/validators/scattermapbox/cluster/_opacitysrc.py index d4018d97cc..e26973f769 100644 --- a/plotly/validators/scattermapbox/cluster/_opacitysrc.py +++ b/plotly/validators/scattermapbox/cluster/_opacitysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/cluster/_size.py b/plotly/validators/scattermapbox/cluster/_size.py index a245ebc9c7..822b52ac79 100644 --- a/plotly/validators/scattermapbox/cluster/_size.py +++ b/plotly/validators/scattermapbox/cluster/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattermapbox/cluster/_sizesrc.py b/plotly/validators/scattermapbox/cluster/_sizesrc.py index 27c6c40862..620d877f6d 100644 --- a/plotly/validators/scattermapbox/cluster/_sizesrc.py +++ b/plotly/validators/scattermapbox/cluster/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/cluster/_step.py b/plotly/validators/scattermapbox/cluster/_step.py index 0a594ea83e..57f33395a0 100644 --- a/plotly/validators/scattermapbox/cluster/_step.py +++ b/plotly/validators/scattermapbox/cluster/_step.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StepValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/scattermapbox/cluster/_stepsrc.py b/plotly/validators/scattermapbox/cluster/_stepsrc.py index 84ecc5d400..5d1b1e2319 100644 --- a/plotly/validators/scattermapbox/cluster/_stepsrc.py +++ b/plotly/validators/scattermapbox/cluster/_stepsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StepsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/hoverlabel/__init__.py b/plotly/validators/scattermapbox/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/scattermapbox/hoverlabel/__init__.py +++ b/plotly/validators/scattermapbox/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/scattermapbox/hoverlabel/_align.py b/plotly/validators/scattermapbox/hoverlabel/_align.py index 24685733a0..68deb612b1 100644 --- a/plotly/validators/scattermapbox/hoverlabel/_align.py +++ b/plotly/validators/scattermapbox/hoverlabel/_align.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/scattermapbox/hoverlabel/_alignsrc.py b/plotly/validators/scattermapbox/hoverlabel/_alignsrc.py index 5e67693780..2ddfd177c9 100644 --- a/plotly/validators/scattermapbox/hoverlabel/_alignsrc.py +++ b/plotly/validators/scattermapbox/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/hoverlabel/_bgcolor.py b/plotly/validators/scattermapbox/hoverlabel/_bgcolor.py index 156b67964a..e43b763577 100644 --- a/plotly/validators/scattermapbox/hoverlabel/_bgcolor.py +++ b/plotly/validators/scattermapbox/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scattermapbox/hoverlabel/_bgcolorsrc.py b/plotly/validators/scattermapbox/hoverlabel/_bgcolorsrc.py index 4862094a46..5de3f541e3 100644 --- a/plotly/validators/scattermapbox/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/scattermapbox/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/hoverlabel/_bordercolor.py b/plotly/validators/scattermapbox/hoverlabel/_bordercolor.py index b82358b22f..f2ddd7f9f5 100644 --- a/plotly/validators/scattermapbox/hoverlabel/_bordercolor.py +++ b/plotly/validators/scattermapbox/hoverlabel/_bordercolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scattermapbox/hoverlabel/_bordercolorsrc.py b/plotly/validators/scattermapbox/hoverlabel/_bordercolorsrc.py index bc74011de0..da65216bae 100644 --- a/plotly/validators/scattermapbox/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/scattermapbox/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/hoverlabel/_font.py b/plotly/validators/scattermapbox/hoverlabel/_font.py index 34e7985b69..fe3fd96630 100644 --- a/plotly/validators/scattermapbox/hoverlabel/_font.py +++ b/plotly/validators/scattermapbox/hoverlabel/_font.py @@ -1,87 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/scattermapbox/hoverlabel/_namelength.py b/plotly/validators/scattermapbox/hoverlabel/_namelength.py index 058521370b..438101a3d1 100644 --- a/plotly/validators/scattermapbox/hoverlabel/_namelength.py +++ b/plotly/validators/scattermapbox/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/scattermapbox/hoverlabel/_namelengthsrc.py b/plotly/validators/scattermapbox/hoverlabel/_namelengthsrc.py index ac93f946a1..8aaef464d2 100644 --- a/plotly/validators/scattermapbox/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/scattermapbox/hoverlabel/_namelengthsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/hoverlabel/font/__init__.py b/plotly/validators/scattermapbox/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/scattermapbox/hoverlabel/font/__init__.py +++ b/plotly/validators/scattermapbox/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattermapbox/hoverlabel/font/_color.py b/plotly/validators/scattermapbox/hoverlabel/font/_color.py index c928d85290..1a3960b251 100644 --- a/plotly/validators/scattermapbox/hoverlabel/font/_color.py +++ b/plotly/validators/scattermapbox/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scattermapbox/hoverlabel/font/_colorsrc.py b/plotly/validators/scattermapbox/hoverlabel/font/_colorsrc.py index e38b914014..eb2eceecff 100644 --- a/plotly/validators/scattermapbox/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/scattermapbox/hoverlabel/font/_colorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/hoverlabel/font/_family.py b/plotly/validators/scattermapbox/hoverlabel/font/_family.py index dec710d015..b739eb129d 100644 --- a/plotly/validators/scattermapbox/hoverlabel/font/_family.py +++ b/plotly/validators/scattermapbox/hoverlabel/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/scattermapbox/hoverlabel/font/_familysrc.py b/plotly/validators/scattermapbox/hoverlabel/font/_familysrc.py index 62e3a52ab2..faf8479021 100644 --- a/plotly/validators/scattermapbox/hoverlabel/font/_familysrc.py +++ b/plotly/validators/scattermapbox/hoverlabel/font/_familysrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/hoverlabel/font/_lineposition.py b/plotly/validators/scattermapbox/hoverlabel/font/_lineposition.py index db39de573e..f39f1f40f4 100644 --- a/plotly/validators/scattermapbox/hoverlabel/font/_lineposition.py +++ b/plotly/validators/scattermapbox/hoverlabel/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/scattermapbox/hoverlabel/font/_linepositionsrc.py b/plotly/validators/scattermapbox/hoverlabel/font/_linepositionsrc.py index 6c641b9a19..1cacb14aab 100644 --- a/plotly/validators/scattermapbox/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/scattermapbox/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/hoverlabel/font/_shadow.py b/plotly/validators/scattermapbox/hoverlabel/font/_shadow.py index a11ee19674..39785b6674 100644 --- a/plotly/validators/scattermapbox/hoverlabel/font/_shadow.py +++ b/plotly/validators/scattermapbox/hoverlabel/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scattermapbox/hoverlabel/font/_shadowsrc.py b/plotly/validators/scattermapbox/hoverlabel/font/_shadowsrc.py index 2707a774c1..81fb621e2e 100644 --- a/plotly/validators/scattermapbox/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/scattermapbox/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/hoverlabel/font/_size.py b/plotly/validators/scattermapbox/hoverlabel/font/_size.py index 37d27b6036..51ec4631ad 100644 --- a/plotly/validators/scattermapbox/hoverlabel/font/_size.py +++ b/plotly/validators/scattermapbox/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/scattermapbox/hoverlabel/font/_sizesrc.py b/plotly/validators/scattermapbox/hoverlabel/font/_sizesrc.py index 9b6afe3673..7d562db990 100644 --- a/plotly/validators/scattermapbox/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/scattermapbox/hoverlabel/font/_sizesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/hoverlabel/font/_style.py b/plotly/validators/scattermapbox/hoverlabel/font/_style.py index e1210da03b..6525682572 100644 --- a/plotly/validators/scattermapbox/hoverlabel/font/_style.py +++ b/plotly/validators/scattermapbox/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/scattermapbox/hoverlabel/font/_stylesrc.py b/plotly/validators/scattermapbox/hoverlabel/font/_stylesrc.py index eee1a358bb..3b7d452b76 100644 --- a/plotly/validators/scattermapbox/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/scattermapbox/hoverlabel/font/_stylesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/hoverlabel/font/_textcase.py b/plotly/validators/scattermapbox/hoverlabel/font/_textcase.py index 16fdc9e43f..e087056204 100644 --- a/plotly/validators/scattermapbox/hoverlabel/font/_textcase.py +++ b/plotly/validators/scattermapbox/hoverlabel/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/scattermapbox/hoverlabel/font/_textcasesrc.py b/plotly/validators/scattermapbox/hoverlabel/font/_textcasesrc.py index 1e5e40a1aa..fddce80278 100644 --- a/plotly/validators/scattermapbox/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/scattermapbox/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/hoverlabel/font/_variant.py b/plotly/validators/scattermapbox/hoverlabel/font/_variant.py index 369bd37d37..6c69bdfdd6 100644 --- a/plotly/validators/scattermapbox/hoverlabel/font/_variant.py +++ b/plotly/validators/scattermapbox/hoverlabel/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/scattermapbox/hoverlabel/font/_variantsrc.py b/plotly/validators/scattermapbox/hoverlabel/font/_variantsrc.py index 07825ed06b..6258618a77 100644 --- a/plotly/validators/scattermapbox/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/scattermapbox/hoverlabel/font/_variantsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/hoverlabel/font/_weight.py b/plotly/validators/scattermapbox/hoverlabel/font/_weight.py index f328b6c815..4d86180914 100644 --- a/plotly/validators/scattermapbox/hoverlabel/font/_weight.py +++ b/plotly/validators/scattermapbox/hoverlabel/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/scattermapbox/hoverlabel/font/_weightsrc.py b/plotly/validators/scattermapbox/hoverlabel/font/_weightsrc.py index d4aa53c03f..ea75c0431e 100644 --- a/plotly/validators/scattermapbox/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/scattermapbox/hoverlabel/font/_weightsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/legendgrouptitle/__init__.py b/plotly/validators/scattermapbox/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/scattermapbox/legendgrouptitle/__init__.py +++ b/plotly/validators/scattermapbox/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/scattermapbox/legendgrouptitle/_font.py b/plotly/validators/scattermapbox/legendgrouptitle/_font.py index 22886c7bde..ca4fa29cd3 100644 --- a/plotly/validators/scattermapbox/legendgrouptitle/_font.py +++ b/plotly/validators/scattermapbox/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/scattermapbox/legendgrouptitle/_text.py b/plotly/validators/scattermapbox/legendgrouptitle/_text.py index c7ec0e7df7..3867c5789c 100644 --- a/plotly/validators/scattermapbox/legendgrouptitle/_text.py +++ b/plotly/validators/scattermapbox/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/legendgrouptitle/font/__init__.py b/plotly/validators/scattermapbox/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/scattermapbox/legendgrouptitle/font/__init__.py +++ b/plotly/validators/scattermapbox/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scattermapbox/legendgrouptitle/font/_color.py b/plotly/validators/scattermapbox/legendgrouptitle/font/_color.py index c81df93eea..e3272484c0 100644 --- a/plotly/validators/scattermapbox/legendgrouptitle/font/_color.py +++ b/plotly/validators/scattermapbox/legendgrouptitle/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/legendgrouptitle/font/_family.py b/plotly/validators/scattermapbox/legendgrouptitle/font/_family.py index 06356e1d25..d05f5c7d1f 100644 --- a/plotly/validators/scattermapbox/legendgrouptitle/font/_family.py +++ b/plotly/validators/scattermapbox/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scattermapbox/legendgrouptitle/font/_lineposition.py b/plotly/validators/scattermapbox/legendgrouptitle/font/_lineposition.py index 41d8ab8d5d..ed06b9836a 100644 --- a/plotly/validators/scattermapbox/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/scattermapbox/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/scattermapbox/legendgrouptitle/font/_shadow.py b/plotly/validators/scattermapbox/legendgrouptitle/font/_shadow.py index a6cc0f7cf5..2e9351acae 100644 --- a/plotly/validators/scattermapbox/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/scattermapbox/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/legendgrouptitle/font/_size.py b/plotly/validators/scattermapbox/legendgrouptitle/font/_size.py index 5b0adee143..86c22b6d86 100644 --- a/plotly/validators/scattermapbox/legendgrouptitle/font/_size.py +++ b/plotly/validators/scattermapbox/legendgrouptitle/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scattermapbox/legendgrouptitle/font/_style.py b/plotly/validators/scattermapbox/legendgrouptitle/font/_style.py index 12e09d5e2a..607760df86 100644 --- a/plotly/validators/scattermapbox/legendgrouptitle/font/_style.py +++ b/plotly/validators/scattermapbox/legendgrouptitle/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scattermapbox/legendgrouptitle/font/_textcase.py b/plotly/validators/scattermapbox/legendgrouptitle/font/_textcase.py index 641070956d..4a669ae03d 100644 --- a/plotly/validators/scattermapbox/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/scattermapbox/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/scattermapbox/legendgrouptitle/font/_variant.py b/plotly/validators/scattermapbox/legendgrouptitle/font/_variant.py index 0d40d40456..87d96b1637 100644 --- a/plotly/validators/scattermapbox/legendgrouptitle/font/_variant.py +++ b/plotly/validators/scattermapbox/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/scattermapbox/legendgrouptitle/font/_weight.py b/plotly/validators/scattermapbox/legendgrouptitle/font/_weight.py index 5745bcb6b3..1674eeaa0a 100644 --- a/plotly/validators/scattermapbox/legendgrouptitle/font/_weight.py +++ b/plotly/validators/scattermapbox/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scattermapbox/line/__init__.py b/plotly/validators/scattermapbox/line/__init__.py index 63a516578b..d49328faac 100644 --- a/plotly/validators/scattermapbox/line/__init__.py +++ b/plotly/validators/scattermapbox/line/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._width.WidthValidator", "._color.ColorValidator"] +) diff --git a/plotly/validators/scattermapbox/line/_color.py b/plotly/validators/scattermapbox/line/_color.py index ff7c33b92c..4773a45370 100644 --- a/plotly/validators/scattermapbox/line/_color.py +++ b/plotly/validators/scattermapbox/line/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/line/_width.py b/plotly/validators/scattermapbox/line/_width.py index 53a9b22f03..67deab5647 100644 --- a/plotly/validators/scattermapbox/line/_width.py +++ b/plotly/validators/scattermapbox/line/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/__init__.py b/plotly/validators/scattermapbox/marker/__init__.py index 1560474e41..22d40af5a8 100644 --- a/plotly/validators/scattermapbox/marker/__init__.py +++ b/plotly/validators/scattermapbox/marker/__init__.py @@ -1,61 +1,33 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._symbolsrc import SymbolsrcValidator - from ._symbol import SymbolValidator - from ._sizesrc import SizesrcValidator - from ._sizeref import SizerefValidator - from ._sizemode import SizemodeValidator - from ._sizemin import SizeminValidator - from ._size import SizeValidator - from ._showscale import ShowscaleValidator - from ._reversescale import ReversescaleValidator - from ._opacitysrc import OpacitysrcValidator - from ._opacity import OpacityValidator - from ._colorsrc import ColorsrcValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._color import ColorValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - from ._autocolorscale import AutocolorscaleValidator - from ._anglesrc import AnglesrcValidator - from ._angle import AngleValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattermapbox/marker/_allowoverlap.py b/plotly/validators/scattermapbox/marker/_allowoverlap.py index f482b09656..ab8054101a 100644 --- a/plotly/validators/scattermapbox/marker/_allowoverlap.py +++ b/plotly/validators/scattermapbox/marker/_allowoverlap.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AllowoverlapValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/marker/_angle.py b/plotly/validators/scattermapbox/marker/_angle.py index ab23633ab0..a648de5f2e 100644 --- a/plotly/validators/scattermapbox/marker/_angle.py +++ b/plotly/validators/scattermapbox/marker/_angle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AngleValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/_anglesrc.py b/plotly/validators/scattermapbox/marker/_anglesrc.py index ba5d7fd6e1..145b772540 100644 --- a/plotly/validators/scattermapbox/marker/_anglesrc.py +++ b/plotly/validators/scattermapbox/marker/_anglesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AnglesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/marker/_autocolorscale.py b/plotly/validators/scattermapbox/marker/_autocolorscale.py index 4ecfb4366b..45f7ddc8ab 100644 --- a/plotly/validators/scattermapbox/marker/_autocolorscale.py +++ b/plotly/validators/scattermapbox/marker/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/_cauto.py b/plotly/validators/scattermapbox/marker/_cauto.py index 37252143c5..faae386fbf 100644 --- a/plotly/validators/scattermapbox/marker/_cauto.py +++ b/plotly/validators/scattermapbox/marker/_cauto.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/_cmax.py b/plotly/validators/scattermapbox/marker/_cmax.py index 1a0755ee18..2506bcea2a 100644 --- a/plotly/validators/scattermapbox/marker/_cmax.py +++ b/plotly/validators/scattermapbox/marker/_cmax.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/_cmid.py b/plotly/validators/scattermapbox/marker/_cmid.py index b3066d3d19..53c96e1754 100644 --- a/plotly/validators/scattermapbox/marker/_cmid.py +++ b/plotly/validators/scattermapbox/marker/_cmid.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/_cmin.py b/plotly/validators/scattermapbox/marker/_cmin.py index a692239b7a..f288f62519 100644 --- a/plotly/validators/scattermapbox/marker/_cmin.py +++ b/plotly/validators/scattermapbox/marker/_cmin.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/_color.py b/plotly/validators/scattermapbox/marker/_color.py index baaf716071..e6434a3e5b 100644 --- a/plotly/validators/scattermapbox/marker/_color.py +++ b/plotly/validators/scattermapbox/marker/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), colorscale_path=kwargs.pop( diff --git a/plotly/validators/scattermapbox/marker/_coloraxis.py b/plotly/validators/scattermapbox/marker/_coloraxis.py index a1a9a1b100..3b8e53d838 100644 --- a/plotly/validators/scattermapbox/marker/_coloraxis.py +++ b/plotly/validators/scattermapbox/marker/_coloraxis.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/scattermapbox/marker/_colorbar.py b/plotly/validators/scattermapbox/marker/_colorbar.py index 02a6f4a53b..44083623a3 100644 --- a/plotly/validators/scattermapbox/marker/_colorbar.py +++ b/plotly/validators/scattermapbox/marker/_colorbar.py @@ -1,281 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattermapbox/marker/_colorscale.py b/plotly/validators/scattermapbox/marker/_colorscale.py index 5d6e900385..4ad5e8b732 100644 --- a/plotly/validators/scattermapbox/marker/_colorscale.py +++ b/plotly/validators/scattermapbox/marker/_colorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/_colorsrc.py b/plotly/validators/scattermapbox/marker/_colorsrc.py index 1d14de0360..112e652e9e 100644 --- a/plotly/validators/scattermapbox/marker/_colorsrc.py +++ b/plotly/validators/scattermapbox/marker/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/marker/_opacity.py b/plotly/validators/scattermapbox/marker/_opacity.py index 63af24ea38..eecb3b2d7c 100644 --- a/plotly/validators/scattermapbox/marker/_opacity.py +++ b/plotly/validators/scattermapbox/marker/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), diff --git a/plotly/validators/scattermapbox/marker/_opacitysrc.py b/plotly/validators/scattermapbox/marker/_opacitysrc.py index fae8de92ee..37e17f3e77 100644 --- a/plotly/validators/scattermapbox/marker/_opacitysrc.py +++ b/plotly/validators/scattermapbox/marker/_opacitysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/marker/_reversescale.py b/plotly/validators/scattermapbox/marker/_reversescale.py index da3cec4596..5e37fdb95d 100644 --- a/plotly/validators/scattermapbox/marker/_reversescale.py +++ b/plotly/validators/scattermapbox/marker/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/marker/_showscale.py b/plotly/validators/scattermapbox/marker/_showscale.py index deed75209c..e6a20e4133 100644 --- a/plotly/validators/scattermapbox/marker/_showscale.py +++ b/plotly/validators/scattermapbox/marker/_showscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/marker/_size.py b/plotly/validators/scattermapbox/marker/_size.py index b849fb9e4d..d0263cb3ee 100644 --- a/plotly/validators/scattermapbox/marker/_size.py +++ b/plotly/validators/scattermapbox/marker/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattermapbox/marker/_sizemin.py b/plotly/validators/scattermapbox/marker/_sizemin.py index 99ab7c9f6d..9234841285 100644 --- a/plotly/validators/scattermapbox/marker/_sizemin.py +++ b/plotly/validators/scattermapbox/marker/_sizemin.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/_sizemode.py b/plotly/validators/scattermapbox/marker/_sizemode.py index 90963436da..428858c303 100644 --- a/plotly/validators/scattermapbox/marker/_sizemode.py +++ b/plotly/validators/scattermapbox/marker/_sizemode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["diameter", "area"]), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/_sizeref.py b/plotly/validators/scattermapbox/marker/_sizeref.py index 1d445bc8c5..9f8e1e39f1 100644 --- a/plotly/validators/scattermapbox/marker/_sizeref.py +++ b/plotly/validators/scattermapbox/marker/_sizeref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/marker/_sizesrc.py b/plotly/validators/scattermapbox/marker/_sizesrc.py index ab1beb4479..102504862a 100644 --- a/plotly/validators/scattermapbox/marker/_sizesrc.py +++ b/plotly/validators/scattermapbox/marker/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/marker/_symbol.py b/plotly/validators/scattermapbox/marker/_symbol.py index 9c80fe03ee..5ce7b94f65 100644 --- a/plotly/validators/scattermapbox/marker/_symbol.py +++ b/plotly/validators/scattermapbox/marker/_symbol.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymbolValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/_symbolsrc.py b/plotly/validators/scattermapbox/marker/_symbolsrc.py index 5f7420b2ed..e1200d2420 100644 --- a/plotly/validators/scattermapbox/marker/_symbolsrc.py +++ b/plotly/validators/scattermapbox/marker/_symbolsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/marker/colorbar/__init__.py b/plotly/validators/scattermapbox/marker/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/__init__.py +++ b/plotly/validators/scattermapbox/marker/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattermapbox/marker/colorbar/_bgcolor.py b/plotly/validators/scattermapbox/marker/colorbar/_bgcolor.py index 8814dce6ae..87ae68940b 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_bgcolor.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_bgcolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/marker/colorbar/_bordercolor.py b/plotly/validators/scattermapbox/marker/colorbar/_bordercolor.py index a0c2f31c52..70db81e04c 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_bordercolor.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_bordercolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/marker/colorbar/_borderwidth.py b/plotly/validators/scattermapbox/marker/colorbar/_borderwidth.py index 05bfba60b2..7cd2b01102 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_borderwidth.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_borderwidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/colorbar/_dtick.py b/plotly/validators/scattermapbox/marker/colorbar/_dtick.py index 889d22e0dd..0f6559fddd 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_dtick.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/colorbar/_exponentformat.py b/plotly/validators/scattermapbox/marker/colorbar/_exponentformat.py index 544ccd42f1..7090042203 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_exponentformat.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_exponentformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/colorbar/_labelalias.py b/plotly/validators/scattermapbox/marker/colorbar/_labelalias.py index 6e6377d105..0772795d17 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_labelalias.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_labelalias.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/marker/colorbar/_len.py b/plotly/validators/scattermapbox/marker/colorbar/_len.py index bb616a6eba..5d7ecad6c7 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_len.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_len.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/colorbar/_lenmode.py b/plotly/validators/scattermapbox/marker/colorbar/_lenmode.py index 6e153f703f..6dd4b7063c 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_lenmode.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_lenmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/colorbar/_minexponent.py b/plotly/validators/scattermapbox/marker/colorbar/_minexponent.py index ef71c761a2..0d0ce8412a 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_minexponent.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_minexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/colorbar/_nticks.py b/plotly/validators/scattermapbox/marker/colorbar/_nticks.py index 97d42c2ddd..d56f9a10ba 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_nticks.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_nticks.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/colorbar/_orientation.py b/plotly/validators/scattermapbox/marker/colorbar/_orientation.py index a6f4ffa077..898ea03a57 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_orientation.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_orientation.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/colorbar/_outlinecolor.py b/plotly/validators/scattermapbox/marker/colorbar/_outlinecolor.py index dd14654612..574c6bac8d 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_outlinecolor.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_outlinecolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/marker/colorbar/_outlinewidth.py b/plotly/validators/scattermapbox/marker/colorbar/_outlinewidth.py index 22d620f472..183d657a71 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_outlinewidth.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_outlinewidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/colorbar/_separatethousands.py b/plotly/validators/scattermapbox/marker/colorbar/_separatethousands.py index 985d88b922..bf76574179 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_separatethousands.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/marker/colorbar/_showexponent.py b/plotly/validators/scattermapbox/marker/colorbar/_showexponent.py index e90ffd4597..acf163dcb6 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_showexponent.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_showexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/colorbar/_showticklabels.py b/plotly/validators/scattermapbox/marker/colorbar/_showticklabels.py index ad97beef90..2814927722 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_showticklabels.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_showticklabels.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/marker/colorbar/_showtickprefix.py b/plotly/validators/scattermapbox/marker/colorbar/_showtickprefix.py index 25b434fced..cf80b44a14 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_showtickprefix.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_showtickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/colorbar/_showticksuffix.py b/plotly/validators/scattermapbox/marker/colorbar/_showticksuffix.py index c589af00ae..81429759d5 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_showticksuffix.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_showticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/colorbar/_thickness.py b/plotly/validators/scattermapbox/marker/colorbar/_thickness.py index 5eb7fe1a5d..acd3c68899 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_thickness.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_thickness.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/colorbar/_thicknessmode.py b/plotly/validators/scattermapbox/marker/colorbar/_thicknessmode.py index 9ef05efb71..4c70f8e950 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_thicknessmode.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_thicknessmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/colorbar/_tick0.py b/plotly/validators/scattermapbox/marker/colorbar/_tick0.py index 9b55a9d711..8a7ddf650f 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_tick0.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/colorbar/_tickangle.py b/plotly/validators/scattermapbox/marker/colorbar/_tickangle.py index dac12d1d75..644384ae10 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_tickangle.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_tickangle.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/marker/colorbar/_tickcolor.py b/plotly/validators/scattermapbox/marker/colorbar/_tickcolor.py index 249021e860..16e6563091 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_tickcolor.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_tickcolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/marker/colorbar/_tickfont.py b/plotly/validators/scattermapbox/marker/colorbar/_tickfont.py index 5c40d2e069..7a4e19d849 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_tickfont.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_tickfont.py @@ -1,63 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/scattermapbox/marker/colorbar/_tickformat.py b/plotly/validators/scattermapbox/marker/colorbar/_tickformat.py index 0461be192b..58b5764f8d 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_tickformat.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_tickformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/marker/colorbar/_tickformatstopdefaults.py b/plotly/validators/scattermapbox/marker/colorbar/_tickformatstopdefaults.py index 016f41a4e5..9a0957c253 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/scattermapbox/marker/colorbar/_tickformatstops.py b/plotly/validators/scattermapbox/marker/colorbar/_tickformatstops.py index 6238968da1..b9aae53407 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_tickformatstops.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_tickformatstops.py @@ -1,53 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattermapbox/marker/colorbar/_ticklabeloverflow.py b/plotly/validators/scattermapbox/marker/colorbar/_ticklabeloverflow.py index e67a906f70..c07ad47b9d 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_ticklabeloverflow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/colorbar/_ticklabelposition.py b/plotly/validators/scattermapbox/marker/colorbar/_ticklabelposition.py index 000ef26ca9..fb882760e6 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_ticklabelposition.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_ticklabelposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/scattermapbox/marker/colorbar/_ticklabelstep.py b/plotly/validators/scattermapbox/marker/colorbar/_ticklabelstep.py index e6018e8177..9bb930a941 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_ticklabelstep.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_ticklabelstep.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/colorbar/_ticklen.py b/plotly/validators/scattermapbox/marker/colorbar/_ticklen.py index bb99120508..68b93b1181 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_ticklen.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_ticklen.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/colorbar/_tickmode.py b/plotly/validators/scattermapbox/marker/colorbar/_tickmode.py index bf215ec2a3..3efad5a64f 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_tickmode.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_tickmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/scattermapbox/marker/colorbar/_tickprefix.py b/plotly/validators/scattermapbox/marker/colorbar/_tickprefix.py index a0ad4f2208..b01a3db7c2 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_tickprefix.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_tickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/marker/colorbar/_ticks.py b/plotly/validators/scattermapbox/marker/colorbar/_ticks.py index 9f791227e7..95baad8fa0 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_ticks.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/colorbar/_ticksuffix.py b/plotly/validators/scattermapbox/marker/colorbar/_ticksuffix.py index 8d6d433954..982e963ad4 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_ticksuffix.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_ticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/marker/colorbar/_ticktext.py b/plotly/validators/scattermapbox/marker/colorbar/_ticktext.py index e014e9a7f2..e041bff8be 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_ticktext.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_ticktext.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/marker/colorbar/_ticktextsrc.py b/plotly/validators/scattermapbox/marker/colorbar/_ticktextsrc.py index a14270d8c9..17adb4dffe 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_ticktextsrc.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_ticktextsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/marker/colorbar/_tickvals.py b/plotly/validators/scattermapbox/marker/colorbar/_tickvals.py index bd23100f1f..865f206873 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_tickvals.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_tickvals.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/marker/colorbar/_tickvalssrc.py b/plotly/validators/scattermapbox/marker/colorbar/_tickvalssrc.py index dad32a9061..1bb2c5bf16 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_tickvalssrc.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_tickvalssrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/marker/colorbar/_tickwidth.py b/plotly/validators/scattermapbox/marker/colorbar/_tickwidth.py index 707db10c2d..f842549b2d 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_tickwidth.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_tickwidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/colorbar/_title.py b/plotly/validators/scattermapbox/marker/colorbar/_title.py index 49a801e77d..d81ec0ad9d 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_title.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_title.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattermapbox/marker/colorbar/_x.py b/plotly/validators/scattermapbox/marker/colorbar/_x.py index b69db6f0dd..a5f78e0738 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_x.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_x.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/marker/colorbar/_xanchor.py b/plotly/validators/scattermapbox/marker/colorbar/_xanchor.py index c8b41866eb..ada0337217 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_xanchor.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_xanchor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/colorbar/_xpad.py b/plotly/validators/scattermapbox/marker/colorbar/_xpad.py index 927eb92734..9aac01a88a 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_xpad.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_xpad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/colorbar/_xref.py b/plotly/validators/scattermapbox/marker/colorbar/_xref.py index 5b6cb514da..9837f92c6d 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_xref.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_xref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/colorbar/_y.py b/plotly/validators/scattermapbox/marker/colorbar/_y.py index c7278bb947..761337fbcf 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_y.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_y.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/marker/colorbar/_yanchor.py b/plotly/validators/scattermapbox/marker/colorbar/_yanchor.py index d16724ad31..ae7fbc0f48 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_yanchor.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_yanchor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/colorbar/_ypad.py b/plotly/validators/scattermapbox/marker/colorbar/_ypad.py index 45fea20706..7847751316 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_ypad.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_ypad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/colorbar/_yref.py b/plotly/validators/scattermapbox/marker/colorbar/_yref.py index 57066bc980..3e1b608b04 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/_yref.py +++ b/plotly/validators/scattermapbox/marker/colorbar/_yref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/colorbar/tickfont/__init__.py b/plotly/validators/scattermapbox/marker/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/tickfont/__init__.py +++ b/plotly/validators/scattermapbox/marker/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scattermapbox/marker/colorbar/tickfont/_color.py b/plotly/validators/scattermapbox/marker/colorbar/tickfont/_color.py index 2bd4a5b8e3..baa49843b0 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/tickfont/_color.py +++ b/plotly/validators/scattermapbox/marker/colorbar/tickfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/marker/colorbar/tickfont/_family.py b/plotly/validators/scattermapbox/marker/colorbar/tickfont/_family.py index 588626adc9..d52bae1b21 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/tickfont/_family.py +++ b/plotly/validators/scattermapbox/marker/colorbar/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scattermapbox/marker/colorbar/tickfont/_lineposition.py b/plotly/validators/scattermapbox/marker/colorbar/tickfont/_lineposition.py index d82dc01f54..3fe464f014 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/scattermapbox/marker/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/scattermapbox/marker/colorbar/tickfont/_shadow.py b/plotly/validators/scattermapbox/marker/colorbar/tickfont/_shadow.py index 6791ef955a..1e925d381c 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/tickfont/_shadow.py +++ b/plotly/validators/scattermapbox/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/marker/colorbar/tickfont/_size.py b/plotly/validators/scattermapbox/marker/colorbar/tickfont/_size.py index 84c35dfa2a..7e9fc33740 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/tickfont/_size.py +++ b/plotly/validators/scattermapbox/marker/colorbar/tickfont/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/colorbar/tickfont/_style.py b/plotly/validators/scattermapbox/marker/colorbar/tickfont/_style.py index 04326f0802..c7d4220681 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/tickfont/_style.py +++ b/plotly/validators/scattermapbox/marker/colorbar/tickfont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/colorbar/tickfont/_textcase.py b/plotly/validators/scattermapbox/marker/colorbar/tickfont/_textcase.py index e760cb567b..284f96fea3 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/tickfont/_textcase.py +++ b/plotly/validators/scattermapbox/marker/colorbar/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/colorbar/tickfont/_variant.py b/plotly/validators/scattermapbox/marker/colorbar/tickfont/_variant.py index 4ec92a3d75..d97fa9aca6 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/tickfont/_variant.py +++ b/plotly/validators/scattermapbox/marker/colorbar/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/scattermapbox/marker/colorbar/tickfont/_weight.py b/plotly/validators/scattermapbox/marker/colorbar/tickfont/_weight.py index d95d63d916..568f5eca44 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/tickfont/_weight.py +++ b/plotly/validators/scattermapbox/marker/colorbar/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/__init__.py b/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_dtickrange.py index a2c64f5149..4a81d4f63c 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_enabled.py b/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_enabled.py index 5e3cf3c33c..d3ca856976 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_name.py b/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_name.py index 4eead7f875..2fdd242bff 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_name.py +++ b/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_templateitemname.py index bb80218d79..296a6dd60d 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_value.py b/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_value.py index d5f75ee344..e03e6114c0 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_value.py +++ b/plotly/validators/scattermapbox/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/marker/colorbar/title/__init__.py b/plotly/validators/scattermapbox/marker/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/title/__init__.py +++ b/plotly/validators/scattermapbox/marker/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/scattermapbox/marker/colorbar/title/_font.py b/plotly/validators/scattermapbox/marker/colorbar/title/_font.py index 43df02ece1..f53416c8ff 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/title/_font.py +++ b/plotly/validators/scattermapbox/marker/colorbar/title/_font.py @@ -1,63 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/scattermapbox/marker/colorbar/title/_side.py b/plotly/validators/scattermapbox/marker/colorbar/title/_side.py index ef865d826a..33c826315c 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/title/_side.py +++ b/plotly/validators/scattermapbox/marker/colorbar/title/_side.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/colorbar/title/_text.py b/plotly/validators/scattermapbox/marker/colorbar/title/_text.py index c4d741664a..c85f59cbd5 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/title/_text.py +++ b/plotly/validators/scattermapbox/marker/colorbar/title/_text.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/marker/colorbar/title/font/__init__.py b/plotly/validators/scattermapbox/marker/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/title/font/__init__.py +++ b/plotly/validators/scattermapbox/marker/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scattermapbox/marker/colorbar/title/font/_color.py b/plotly/validators/scattermapbox/marker/colorbar/title/font/_color.py index 94e329b65a..5a19b74c1d 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/title/font/_color.py +++ b/plotly/validators/scattermapbox/marker/colorbar/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/marker/colorbar/title/font/_family.py b/plotly/validators/scattermapbox/marker/colorbar/title/font/_family.py index b61a899f61..b04da889d3 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/title/font/_family.py +++ b/plotly/validators/scattermapbox/marker/colorbar/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scattermapbox/marker/colorbar/title/font/_lineposition.py b/plotly/validators/scattermapbox/marker/colorbar/title/font/_lineposition.py index 099125064b..2a4064ad5a 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/title/font/_lineposition.py +++ b/plotly/validators/scattermapbox/marker/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/scattermapbox/marker/colorbar/title/font/_shadow.py b/plotly/validators/scattermapbox/marker/colorbar/title/font/_shadow.py index b7516dc0d1..679499ba8e 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/title/font/_shadow.py +++ b/plotly/validators/scattermapbox/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/marker/colorbar/title/font/_size.py b/plotly/validators/scattermapbox/marker/colorbar/title/font/_size.py index c8b66f0d65..5f7aa3cfc2 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/title/font/_size.py +++ b/plotly/validators/scattermapbox/marker/colorbar/title/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/colorbar/title/font/_style.py b/plotly/validators/scattermapbox/marker/colorbar/title/font/_style.py index 8ca0d2b1a8..336db4e10a 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/title/font/_style.py +++ b/plotly/validators/scattermapbox/marker/colorbar/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/colorbar/title/font/_textcase.py b/plotly/validators/scattermapbox/marker/colorbar/title/font/_textcase.py index 35a853e61c..bb86334f6a 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/title/font/_textcase.py +++ b/plotly/validators/scattermapbox/marker/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/scattermapbox/marker/colorbar/title/font/_variant.py b/plotly/validators/scattermapbox/marker/colorbar/title/font/_variant.py index 6cd676ba06..27b5cea35c 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/title/font/_variant.py +++ b/plotly/validators/scattermapbox/marker/colorbar/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/scattermapbox/marker/colorbar/title/font/_weight.py b/plotly/validators/scattermapbox/marker/colorbar/title/font/_weight.py index dcd3608437..3d6bb4104b 100644 --- a/plotly/validators/scattermapbox/marker/colorbar/title/font/_weight.py +++ b/plotly/validators/scattermapbox/marker/colorbar/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scattermapbox/selected/__init__.py b/plotly/validators/scattermapbox/selected/__init__.py index e9bdb89f26..20900abc1a 100644 --- a/plotly/validators/scattermapbox/selected/__init__.py +++ b/plotly/validators/scattermapbox/selected/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.MarkerValidator"] +) diff --git a/plotly/validators/scattermapbox/selected/_marker.py b/plotly/validators/scattermapbox/selected/_marker.py index 08ca315c4e..36e2cbc59d 100644 --- a/plotly/validators/scattermapbox/selected/_marker.py +++ b/plotly/validators/scattermapbox/selected/_marker.py @@ -1,23 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattermapbox/selected/marker/__init__.py b/plotly/validators/scattermapbox/selected/marker/__init__.py index 8c321a38bc..c9c7226fe4 100644 --- a/plotly/validators/scattermapbox/selected/marker/__init__.py +++ b/plotly/validators/scattermapbox/selected/marker/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._size.SizeValidator", "._opacity.OpacityValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/scattermapbox/selected/marker/_color.py b/plotly/validators/scattermapbox/selected/marker/_color.py index 185120bea0..073d3fe6d6 100644 --- a/plotly/validators/scattermapbox/selected/marker/_color.py +++ b/plotly/validators/scattermapbox/selected/marker/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/selected/marker/_opacity.py b/plotly/validators/scattermapbox/selected/marker/_opacity.py index 0f55127dd1..a2fdf8e871 100644 --- a/plotly/validators/scattermapbox/selected/marker/_opacity.py +++ b/plotly/validators/scattermapbox/selected/marker/_opacity.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattermapbox/selected/marker/_size.py b/plotly/validators/scattermapbox/selected/marker/_size.py index 25b9965675..138c0aa953 100644 --- a/plotly/validators/scattermapbox/selected/marker/_size.py +++ b/plotly/validators/scattermapbox/selected/marker/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattermapbox/stream/__init__.py b/plotly/validators/scattermapbox/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/scattermapbox/stream/__init__.py +++ b/plotly/validators/scattermapbox/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/scattermapbox/stream/_maxpoints.py b/plotly/validators/scattermapbox/stream/_maxpoints.py index 9bf701a188..3a8ee613bb 100644 --- a/plotly/validators/scattermapbox/stream/_maxpoints.py +++ b/plotly/validators/scattermapbox/stream/_maxpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattermapbox/stream/_token.py b/plotly/validators/scattermapbox/stream/_token.py index f8f1eecf70..c7cbfa6277 100644 --- a/plotly/validators/scattermapbox/stream/_token.py +++ b/plotly/validators/scattermapbox/stream/_token.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scattermapbox/textfont/__init__.py b/plotly/validators/scattermapbox/textfont/__init__.py index 9301c0688c..13cbf9ae54 100644 --- a/plotly/validators/scattermapbox/textfont/__init__.py +++ b/plotly/validators/scattermapbox/textfont/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scattermapbox/textfont/_color.py b/plotly/validators/scattermapbox/textfont/_color.py index a53b249daf..95f4caf9bf 100644 --- a/plotly/validators/scattermapbox/textfont/_color.py +++ b/plotly/validators/scattermapbox/textfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/textfont/_family.py b/plotly/validators/scattermapbox/textfont/_family.py index 3a44f274f4..16f3a0433d 100644 --- a/plotly/validators/scattermapbox/textfont/_family.py +++ b/plotly/validators/scattermapbox/textfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scattermapbox/textfont/_size.py b/plotly/validators/scattermapbox/textfont/_size.py index 7aacb69b4e..f5f32cc59f 100644 --- a/plotly/validators/scattermapbox/textfont/_size.py +++ b/plotly/validators/scattermapbox/textfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scattermapbox/textfont/_style.py b/plotly/validators/scattermapbox/textfont/_style.py index 199c1b0e5d..4e89bbeda4 100644 --- a/plotly/validators/scattermapbox/textfont/_style.py +++ b/plotly/validators/scattermapbox/textfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scattermapbox/textfont/_weight.py b/plotly/validators/scattermapbox/textfont/_weight.py index e9151373b6..ea6cd65861 100644 --- a/plotly/validators/scattermapbox/textfont/_weight.py +++ b/plotly/validators/scattermapbox/textfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scattermapbox/unselected/__init__.py b/plotly/validators/scattermapbox/unselected/__init__.py index e9bdb89f26..20900abc1a 100644 --- a/plotly/validators/scattermapbox/unselected/__init__.py +++ b/plotly/validators/scattermapbox/unselected/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.MarkerValidator"] +) diff --git a/plotly/validators/scattermapbox/unselected/_marker.py b/plotly/validators/scattermapbox/unselected/_marker.py index 6c68d6b1da..de5d3f604e 100644 --- a/plotly/validators/scattermapbox/unselected/_marker.py +++ b/plotly/validators/scattermapbox/unselected/_marker.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattermapbox/unselected/marker/__init__.py b/plotly/validators/scattermapbox/unselected/marker/__init__.py index 8c321a38bc..c9c7226fe4 100644 --- a/plotly/validators/scattermapbox/unselected/marker/__init__.py +++ b/plotly/validators/scattermapbox/unselected/marker/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._size.SizeValidator", "._opacity.OpacityValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/scattermapbox/unselected/marker/_color.py b/plotly/validators/scattermapbox/unselected/marker/_color.py index 4f3e6683a5..f8b9f88529 100644 --- a/plotly/validators/scattermapbox/unselected/marker/_color.py +++ b/plotly/validators/scattermapbox/unselected/marker/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattermapbox/unselected/marker/_opacity.py b/plotly/validators/scattermapbox/unselected/marker/_opacity.py index 0a129ebed3..37ad58fb68 100644 --- a/plotly/validators/scattermapbox/unselected/marker/_opacity.py +++ b/plotly/validators/scattermapbox/unselected/marker/_opacity.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattermapbox/unselected/marker/_size.py b/plotly/validators/scattermapbox/unselected/marker/_size.py index 070575bab2..c9938fee7d 100644 --- a/plotly/validators/scattermapbox/unselected/marker/_size.py +++ b/plotly/validators/scattermapbox/unselected/marker/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterpolar/__init__.py b/plotly/validators/scatterpolar/__init__.py index ce934b10c8..eeedcc82c2 100644 --- a/plotly/validators/scatterpolar/__init__.py +++ b/plotly/validators/scatterpolar/__init__.py @@ -1,119 +1,62 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._visible import VisibleValidator - from ._unselected import UnselectedValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._thetaunit import ThetaunitValidator - from ._thetasrc import ThetasrcValidator - from ._theta0 import Theta0Validator - from ._theta import ThetaValidator - from ._texttemplatesrc import TexttemplatesrcValidator - from ._texttemplate import TexttemplateValidator - from ._textsrc import TextsrcValidator - from ._textpositionsrc import TextpositionsrcValidator - from ._textposition import TextpositionValidator - from ._textfont import TextfontValidator - from ._text import TextValidator - from ._subplot import SubplotValidator - from ._stream import StreamValidator - from ._showlegend import ShowlegendValidator - from ._selectedpoints import SelectedpointsValidator - from ._selected import SelectedValidator - from ._rsrc import RsrcValidator - from ._r0 import R0Validator - from ._r import RValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - from ._mode import ModeValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._marker import MarkerValidator - from ._line import LineValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoveron import HoveronValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._fillcolor import FillcolorValidator - from ._fill import FillValidator - from ._dtheta import DthetaValidator - from ._dr import DrValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._connectgaps import ConnectgapsValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatterpolar/_cliponaxis.py b/plotly/validators/scatterpolar/_cliponaxis.py index 872c16df76..03cda4c0e8 100644 --- a/plotly/validators/scatterpolar/_cliponaxis.py +++ b/plotly/validators/scatterpolar/_cliponaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CliponaxisValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/_connectgaps.py b/plotly/validators/scatterpolar/_connectgaps.py index 2ce3abc08b..1ede58838e 100644 --- a/plotly/validators/scatterpolar/_connectgaps.py +++ b/plotly/validators/scatterpolar/_connectgaps.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/_customdata.py b/plotly/validators/scatterpolar/_customdata.py index e296fc3ed6..cb0abeb387 100644 --- a/plotly/validators/scatterpolar/_customdata.py +++ b/plotly/validators/scatterpolar/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/_customdatasrc.py b/plotly/validators/scatterpolar/_customdatasrc.py index 037a8eabab..b0f0d48f3d 100644 --- a/plotly/validators/scatterpolar/_customdatasrc.py +++ b/plotly/validators/scatterpolar/_customdatasrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/_dr.py b/plotly/validators/scatterpolar/_dr.py index 490a577182..27204aa19c 100644 --- a/plotly/validators/scatterpolar/_dr.py +++ b/plotly/validators/scatterpolar/_dr.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DrValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/_dtheta.py b/plotly/validators/scatterpolar/_dtheta.py index 5ce55d9362..c5a8d487d4 100644 --- a/plotly/validators/scatterpolar/_dtheta.py +++ b/plotly/validators/scatterpolar/_dtheta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DthetaValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/_fill.py b/plotly/validators/scatterpolar/_fill.py index b178f00dc0..424b30099b 100644 --- a/plotly/validators/scatterpolar/_fill.py +++ b/plotly/validators/scatterpolar/_fill.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["none", "toself", "tonext"]), **kwargs, diff --git a/plotly/validators/scatterpolar/_fillcolor.py b/plotly/validators/scatterpolar/_fillcolor.py index 86d6a4323c..f7f771e3df 100644 --- a/plotly/validators/scatterpolar/_fillcolor.py +++ b/plotly/validators/scatterpolar/_fillcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/_hoverinfo.py b/plotly/validators/scatterpolar/_hoverinfo.py index f305caf8d9..baacf70832 100644 --- a/plotly/validators/scatterpolar/_hoverinfo.py +++ b/plotly/validators/scatterpolar/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/scatterpolar/_hoverinfosrc.py b/plotly/validators/scatterpolar/_hoverinfosrc.py index f2ad562a40..e3c7d36c91 100644 --- a/plotly/validators/scatterpolar/_hoverinfosrc.py +++ b/plotly/validators/scatterpolar/_hoverinfosrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/_hoverlabel.py b/plotly/validators/scatterpolar/_hoverlabel.py index 34d686c02a..d70a45502e 100644 --- a/plotly/validators/scatterpolar/_hoverlabel.py +++ b/plotly/validators/scatterpolar/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterpolar/_hoveron.py b/plotly/validators/scatterpolar/_hoveron.py index e25a3e9ae3..60ad202ee5 100644 --- a/plotly/validators/scatterpolar/_hoveron.py +++ b/plotly/validators/scatterpolar/_hoveron.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoveronValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), flags=kwargs.pop("flags", ["points", "fills"]), **kwargs, diff --git a/plotly/validators/scatterpolar/_hovertemplate.py b/plotly/validators/scatterpolar/_hovertemplate.py index 9d1d3b3a5a..23b3dec79f 100644 --- a/plotly/validators/scatterpolar/_hovertemplate.py +++ b/plotly/validators/scatterpolar/_hovertemplate.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scatterpolar/_hovertemplatesrc.py b/plotly/validators/scatterpolar/_hovertemplatesrc.py index cac2b9a6cf..974b568f05 100644 --- a/plotly/validators/scatterpolar/_hovertemplatesrc.py +++ b/plotly/validators/scatterpolar/_hovertemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/_hovertext.py b/plotly/validators/scatterpolar/_hovertext.py index 2bb9f2ddea..bede32a234 100644 --- a/plotly/validators/scatterpolar/_hovertext.py +++ b/plotly/validators/scatterpolar/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/scatterpolar/_hovertextsrc.py b/plotly/validators/scatterpolar/_hovertextsrc.py index 26ed5db61c..87a39db0c3 100644 --- a/plotly/validators/scatterpolar/_hovertextsrc.py +++ b/plotly/validators/scatterpolar/_hovertextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/_ids.py b/plotly/validators/scatterpolar/_ids.py index 29038b12f8..b18be2279a 100644 --- a/plotly/validators/scatterpolar/_ids.py +++ b/plotly/validators/scatterpolar/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/_idssrc.py b/plotly/validators/scatterpolar/_idssrc.py index 8200590fbf..523ef07309 100644 --- a/plotly/validators/scatterpolar/_idssrc.py +++ b/plotly/validators/scatterpolar/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/_legend.py b/plotly/validators/scatterpolar/_legend.py index 7df05b2bf4..dc6b413537 100644 --- a/plotly/validators/scatterpolar/_legend.py +++ b/plotly/validators/scatterpolar/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/scatterpolar/_legendgroup.py b/plotly/validators/scatterpolar/_legendgroup.py index a277480c6d..fd89979595 100644 --- a/plotly/validators/scatterpolar/_legendgroup.py +++ b/plotly/validators/scatterpolar/_legendgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/_legendgrouptitle.py b/plotly/validators/scatterpolar/_legendgrouptitle.py index 635aef4a89..b45fb54749 100644 --- a/plotly/validators/scatterpolar/_legendgrouptitle.py +++ b/plotly/validators/scatterpolar/_legendgrouptitle.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterpolar/_legendrank.py b/plotly/validators/scatterpolar/_legendrank.py index 7adfc62bea..569be04f87 100644 --- a/plotly/validators/scatterpolar/_legendrank.py +++ b/plotly/validators/scatterpolar/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/_legendwidth.py b/plotly/validators/scatterpolar/_legendwidth.py index 98c31328a3..558e92e063 100644 --- a/plotly/validators/scatterpolar/_legendwidth.py +++ b/plotly/validators/scatterpolar/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterpolar/_line.py b/plotly/validators/scatterpolar/_line.py index f00547043e..676ad230a0 100644 --- a/plotly/validators/scatterpolar/_line.py +++ b/plotly/validators/scatterpolar/_line.py @@ -1,44 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterpolar/_marker.py b/plotly/validators/scatterpolar/_marker.py index 3c74e0581c..5c6a28302c 100644 --- a/plotly/validators/scatterpolar/_marker.py +++ b/plotly/validators/scatterpolar/_marker.py @@ -1,165 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterpolar/_meta.py b/plotly/validators/scatterpolar/_meta.py index 8830ce4f32..8dbc094092 100644 --- a/plotly/validators/scatterpolar/_meta.py +++ b/plotly/validators/scatterpolar/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/scatterpolar/_metasrc.py b/plotly/validators/scatterpolar/_metasrc.py index f553512402..88185cee26 100644 --- a/plotly/validators/scatterpolar/_metasrc.py +++ b/plotly/validators/scatterpolar/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/_mode.py b/plotly/validators/scatterpolar/_mode.py index f210aeb4d6..72df0f3b74 100644 --- a/plotly/validators/scatterpolar/_mode.py +++ b/plotly/validators/scatterpolar/_mode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["lines", "markers", "text"]), diff --git a/plotly/validators/scatterpolar/_name.py b/plotly/validators/scatterpolar/_name.py index 384b8ed0c0..5685664a15 100644 --- a/plotly/validators/scatterpolar/_name.py +++ b/plotly/validators/scatterpolar/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/_opacity.py b/plotly/validators/scatterpolar/_opacity.py index ab052efe1c..57991f0dd2 100644 --- a/plotly/validators/scatterpolar/_opacity.py +++ b/plotly/validators/scatterpolar/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatterpolar/_r.py b/plotly/validators/scatterpolar/_r.py index 53f8333394..03d5756737 100644 --- a/plotly/validators/scatterpolar/_r.py +++ b/plotly/validators/scatterpolar/_r.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/_r0.py b/plotly/validators/scatterpolar/_r0.py index b4d6b4bbd9..10f9bc4122 100644 --- a/plotly/validators/scatterpolar/_r0.py +++ b/plotly/validators/scatterpolar/_r0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class R0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/_rsrc.py b/plotly/validators/scatterpolar/_rsrc.py index 8eb0208ffe..4751c15543 100644 --- a/plotly/validators/scatterpolar/_rsrc.py +++ b/plotly/validators/scatterpolar/_rsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/_selected.py b/plotly/validators/scatterpolar/_selected.py index e8dbe83ed3..d91ac5f5e0 100644 --- a/plotly/validators/scatterpolar/_selected.py +++ b/plotly/validators/scatterpolar/_selected.py @@ -1,23 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterpolar/_selectedpoints.py b/plotly/validators/scatterpolar/_selectedpoints.py index 55f0d564b7..59ca922bbd 100644 --- a/plotly/validators/scatterpolar/_selectedpoints.py +++ b/plotly/validators/scatterpolar/_selectedpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/_showlegend.py b/plotly/validators/scatterpolar/_showlegend.py index d9de07e4fa..7ca422119a 100644 --- a/plotly/validators/scatterpolar/_showlegend.py +++ b/plotly/validators/scatterpolar/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/_stream.py b/plotly/validators/scatterpolar/_stream.py index 2de71662f4..8f76fd0426 100644 --- a/plotly/validators/scatterpolar/_stream.py +++ b/plotly/validators/scatterpolar/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterpolar/_subplot.py b/plotly/validators/scatterpolar/_subplot.py index fbe123aacb..ebc484d820 100644 --- a/plotly/validators/scatterpolar/_subplot.py +++ b/plotly/validators/scatterpolar/_subplot.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SubplotValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "polar"), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scatterpolar/_text.py b/plotly/validators/scatterpolar/_text.py index 9a0436e7ca..5fd06a1a57 100644 --- a/plotly/validators/scatterpolar/_text.py +++ b/plotly/validators/scatterpolar/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scatterpolar/_textfont.py b/plotly/validators/scatterpolar/_textfont.py index 83ad005595..9936dc60e0 100644 --- a/plotly/validators/scatterpolar/_textfont.py +++ b/plotly/validators/scatterpolar/_textfont.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/scatterpolar/_textposition.py b/plotly/validators/scatterpolar/_textposition.py index af2f965b02..13b3bccdfa 100644 --- a/plotly/validators/scatterpolar/_textposition.py +++ b/plotly/validators/scatterpolar/_textposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( diff --git a/plotly/validators/scatterpolar/_textpositionsrc.py b/plotly/validators/scatterpolar/_textpositionsrc.py index 043d299b8c..23d876f044 100644 --- a/plotly/validators/scatterpolar/_textpositionsrc.py +++ b/plotly/validators/scatterpolar/_textpositionsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/_textsrc.py b/plotly/validators/scatterpolar/_textsrc.py index bc55ed515f..18105742de 100644 --- a/plotly/validators/scatterpolar/_textsrc.py +++ b/plotly/validators/scatterpolar/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/_texttemplate.py b/plotly/validators/scatterpolar/_texttemplate.py index a7ae8286e0..e423f530d0 100644 --- a/plotly/validators/scatterpolar/_texttemplate.py +++ b/plotly/validators/scatterpolar/_texttemplate.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/scatterpolar/_texttemplatesrc.py b/plotly/validators/scatterpolar/_texttemplatesrc.py index 04a2baf1d8..698a75c851 100644 --- a/plotly/validators/scatterpolar/_texttemplatesrc.py +++ b/plotly/validators/scatterpolar/_texttemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/_theta.py b/plotly/validators/scatterpolar/_theta.py index 23adbe475c..807756fc74 100644 --- a/plotly/validators/scatterpolar/_theta.py +++ b/plotly/validators/scatterpolar/_theta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThetaValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/_theta0.py b/plotly/validators/scatterpolar/_theta0.py index 83a0f5eaf2..5ffd57ff94 100644 --- a/plotly/validators/scatterpolar/_theta0.py +++ b/plotly/validators/scatterpolar/_theta0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Theta0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/_thetasrc.py b/plotly/validators/scatterpolar/_thetasrc.py index 0e8742520e..ac960c95b4 100644 --- a/plotly/validators/scatterpolar/_thetasrc.py +++ b/plotly/validators/scatterpolar/_thetasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/_thetaunit.py b/plotly/validators/scatterpolar/_thetaunit.py index 00b3e659a1..3fd846f583 100644 --- a/plotly/validators/scatterpolar/_thetaunit.py +++ b/plotly/validators/scatterpolar/_thetaunit.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThetaunitValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), values=kwargs.pop("values", ["radians", "degrees", "gradians"]), **kwargs, diff --git a/plotly/validators/scatterpolar/_uid.py b/plotly/validators/scatterpolar/_uid.py index 38e4bb0395..4bdc71df03 100644 --- a/plotly/validators/scatterpolar/_uid.py +++ b/plotly/validators/scatterpolar/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/_uirevision.py b/plotly/validators/scatterpolar/_uirevision.py index b73384f3e2..e701078f70 100644 --- a/plotly/validators/scatterpolar/_uirevision.py +++ b/plotly/validators/scatterpolar/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/_unselected.py b/plotly/validators/scatterpolar/_unselected.py index e9de499488..80b378d8ab 100644 --- a/plotly/validators/scatterpolar/_unselected.py +++ b/plotly/validators/scatterpolar/_unselected.py @@ -1,23 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterpolar/_visible.py b/plotly/validators/scatterpolar/_visible.py index 1ad4b0d317..02070472e9 100644 --- a/plotly/validators/scatterpolar/_visible.py +++ b/plotly/validators/scatterpolar/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/scatterpolar/hoverlabel/__init__.py b/plotly/validators/scatterpolar/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/scatterpolar/hoverlabel/__init__.py +++ b/plotly/validators/scatterpolar/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/scatterpolar/hoverlabel/_align.py b/plotly/validators/scatterpolar/hoverlabel/_align.py index f644b79c86..83b4a73866 100644 --- a/plotly/validators/scatterpolar/hoverlabel/_align.py +++ b/plotly/validators/scatterpolar/hoverlabel/_align.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/scatterpolar/hoverlabel/_alignsrc.py b/plotly/validators/scatterpolar/hoverlabel/_alignsrc.py index 1f7f885c91..6fa0ede29e 100644 --- a/plotly/validators/scatterpolar/hoverlabel/_alignsrc.py +++ b/plotly/validators/scatterpolar/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/hoverlabel/_bgcolor.py b/plotly/validators/scatterpolar/hoverlabel/_bgcolor.py index 70798d1371..4fbfde8d10 100644 --- a/plotly/validators/scatterpolar/hoverlabel/_bgcolor.py +++ b/plotly/validators/scatterpolar/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scatterpolar/hoverlabel/_bgcolorsrc.py b/plotly/validators/scatterpolar/hoverlabel/_bgcolorsrc.py index 27693751f7..c1461bc833 100644 --- a/plotly/validators/scatterpolar/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/scatterpolar/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/hoverlabel/_bordercolor.py b/plotly/validators/scatterpolar/hoverlabel/_bordercolor.py index 7a8e4464af..b3647d97c0 100644 --- a/plotly/validators/scatterpolar/hoverlabel/_bordercolor.py +++ b/plotly/validators/scatterpolar/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scatterpolar/hoverlabel/_bordercolorsrc.py b/plotly/validators/scatterpolar/hoverlabel/_bordercolorsrc.py index 6ea006daf3..518c582fff 100644 --- a/plotly/validators/scatterpolar/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/scatterpolar/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/hoverlabel/_font.py b/plotly/validators/scatterpolar/hoverlabel/_font.py index 4a05248cd5..72776cf115 100644 --- a/plotly/validators/scatterpolar/hoverlabel/_font.py +++ b/plotly/validators/scatterpolar/hoverlabel/_font.py @@ -1,87 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/scatterpolar/hoverlabel/_namelength.py b/plotly/validators/scatterpolar/hoverlabel/_namelength.py index 8583d41a37..61a8732938 100644 --- a/plotly/validators/scatterpolar/hoverlabel/_namelength.py +++ b/plotly/validators/scatterpolar/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/scatterpolar/hoverlabel/_namelengthsrc.py b/plotly/validators/scatterpolar/hoverlabel/_namelengthsrc.py index 5e96de7148..360250922b 100644 --- a/plotly/validators/scatterpolar/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/scatterpolar/hoverlabel/_namelengthsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/hoverlabel/font/__init__.py b/plotly/validators/scatterpolar/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/scatterpolar/hoverlabel/font/__init__.py +++ b/plotly/validators/scatterpolar/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatterpolar/hoverlabel/font/_color.py b/plotly/validators/scatterpolar/hoverlabel/font/_color.py index d68e5da77c..7b069ef2ef 100644 --- a/plotly/validators/scatterpolar/hoverlabel/font/_color.py +++ b/plotly/validators/scatterpolar/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scatterpolar/hoverlabel/font/_colorsrc.py b/plotly/validators/scatterpolar/hoverlabel/font/_colorsrc.py index b42ddfd73b..275769bf89 100644 --- a/plotly/validators/scatterpolar/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/scatterpolar/hoverlabel/font/_colorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/hoverlabel/font/_family.py b/plotly/validators/scatterpolar/hoverlabel/font/_family.py index e6452ba69a..41a4ad7b65 100644 --- a/plotly/validators/scatterpolar/hoverlabel/font/_family.py +++ b/plotly/validators/scatterpolar/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/scatterpolar/hoverlabel/font/_familysrc.py b/plotly/validators/scatterpolar/hoverlabel/font/_familysrc.py index e010d52797..6b6c35a0fa 100644 --- a/plotly/validators/scatterpolar/hoverlabel/font/_familysrc.py +++ b/plotly/validators/scatterpolar/hoverlabel/font/_familysrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/hoverlabel/font/_lineposition.py b/plotly/validators/scatterpolar/hoverlabel/font/_lineposition.py index 5284ed58ca..f678a65b78 100644 --- a/plotly/validators/scatterpolar/hoverlabel/font/_lineposition.py +++ b/plotly/validators/scatterpolar/hoverlabel/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/scatterpolar/hoverlabel/font/_linepositionsrc.py b/plotly/validators/scatterpolar/hoverlabel/font/_linepositionsrc.py index eaa314685e..dfa5994baf 100644 --- a/plotly/validators/scatterpolar/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/scatterpolar/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/hoverlabel/font/_shadow.py b/plotly/validators/scatterpolar/hoverlabel/font/_shadow.py index 2df5661de9..1c32870217 100644 --- a/plotly/validators/scatterpolar/hoverlabel/font/_shadow.py +++ b/plotly/validators/scatterpolar/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scatterpolar/hoverlabel/font/_shadowsrc.py b/plotly/validators/scatterpolar/hoverlabel/font/_shadowsrc.py index 3e0250597f..af6d085f29 100644 --- a/plotly/validators/scatterpolar/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/scatterpolar/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/hoverlabel/font/_size.py b/plotly/validators/scatterpolar/hoverlabel/font/_size.py index 7e447acd8d..f4f1d13ca3 100644 --- a/plotly/validators/scatterpolar/hoverlabel/font/_size.py +++ b/plotly/validators/scatterpolar/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/scatterpolar/hoverlabel/font/_sizesrc.py b/plotly/validators/scatterpolar/hoverlabel/font/_sizesrc.py index 36579748bb..6980e15572 100644 --- a/plotly/validators/scatterpolar/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/scatterpolar/hoverlabel/font/_sizesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/hoverlabel/font/_style.py b/plotly/validators/scatterpolar/hoverlabel/font/_style.py index 830196b05a..c3fcfbcb6e 100644 --- a/plotly/validators/scatterpolar/hoverlabel/font/_style.py +++ b/plotly/validators/scatterpolar/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/scatterpolar/hoverlabel/font/_stylesrc.py b/plotly/validators/scatterpolar/hoverlabel/font/_stylesrc.py index 35dc9d3428..8ea2b87907 100644 --- a/plotly/validators/scatterpolar/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/scatterpolar/hoverlabel/font/_stylesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/hoverlabel/font/_textcase.py b/plotly/validators/scatterpolar/hoverlabel/font/_textcase.py index 1cd3d9029b..8d13e7263d 100644 --- a/plotly/validators/scatterpolar/hoverlabel/font/_textcase.py +++ b/plotly/validators/scatterpolar/hoverlabel/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/scatterpolar/hoverlabel/font/_textcasesrc.py b/plotly/validators/scatterpolar/hoverlabel/font/_textcasesrc.py index b43d5a7d76..237b3dc886 100644 --- a/plotly/validators/scatterpolar/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/scatterpolar/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/hoverlabel/font/_variant.py b/plotly/validators/scatterpolar/hoverlabel/font/_variant.py index 4ec491e0c3..5f8f58603a 100644 --- a/plotly/validators/scatterpolar/hoverlabel/font/_variant.py +++ b/plotly/validators/scatterpolar/hoverlabel/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/scatterpolar/hoverlabel/font/_variantsrc.py b/plotly/validators/scatterpolar/hoverlabel/font/_variantsrc.py index 1dd7157250..625d73bdcb 100644 --- a/plotly/validators/scatterpolar/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/scatterpolar/hoverlabel/font/_variantsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/hoverlabel/font/_weight.py b/plotly/validators/scatterpolar/hoverlabel/font/_weight.py index 6487cf1758..fb4c6bfe59 100644 --- a/plotly/validators/scatterpolar/hoverlabel/font/_weight.py +++ b/plotly/validators/scatterpolar/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/scatterpolar/hoverlabel/font/_weightsrc.py b/plotly/validators/scatterpolar/hoverlabel/font/_weightsrc.py index fb6602acb9..2e997dad83 100644 --- a/plotly/validators/scatterpolar/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/scatterpolar/hoverlabel/font/_weightsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/legendgrouptitle/__init__.py b/plotly/validators/scatterpolar/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/scatterpolar/legendgrouptitle/__init__.py +++ b/plotly/validators/scatterpolar/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/scatterpolar/legendgrouptitle/_font.py b/plotly/validators/scatterpolar/legendgrouptitle/_font.py index f8bd85bba8..448d4c6a21 100644 --- a/plotly/validators/scatterpolar/legendgrouptitle/_font.py +++ b/plotly/validators/scatterpolar/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/scatterpolar/legendgrouptitle/_text.py b/plotly/validators/scatterpolar/legendgrouptitle/_text.py index 410cc08e40..f892e02c8e 100644 --- a/plotly/validators/scatterpolar/legendgrouptitle/_text.py +++ b/plotly/validators/scatterpolar/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/legendgrouptitle/font/__init__.py b/plotly/validators/scatterpolar/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/scatterpolar/legendgrouptitle/font/__init__.py +++ b/plotly/validators/scatterpolar/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scatterpolar/legendgrouptitle/font/_color.py b/plotly/validators/scatterpolar/legendgrouptitle/font/_color.py index 88428b7edc..635c853f6f 100644 --- a/plotly/validators/scatterpolar/legendgrouptitle/font/_color.py +++ b/plotly/validators/scatterpolar/legendgrouptitle/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/legendgrouptitle/font/_family.py b/plotly/validators/scatterpolar/legendgrouptitle/font/_family.py index 88a98857d9..fc370466bc 100644 --- a/plotly/validators/scatterpolar/legendgrouptitle/font/_family.py +++ b/plotly/validators/scatterpolar/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scatterpolar/legendgrouptitle/font/_lineposition.py b/plotly/validators/scatterpolar/legendgrouptitle/font/_lineposition.py index 8b5849971a..aa7ebb8bf5 100644 --- a/plotly/validators/scatterpolar/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/scatterpolar/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/scatterpolar/legendgrouptitle/font/_shadow.py b/plotly/validators/scatterpolar/legendgrouptitle/font/_shadow.py index ef249affd9..98f0213e38 100644 --- a/plotly/validators/scatterpolar/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/scatterpolar/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/legendgrouptitle/font/_size.py b/plotly/validators/scatterpolar/legendgrouptitle/font/_size.py index 1890d9ba83..46fa3c8bf7 100644 --- a/plotly/validators/scatterpolar/legendgrouptitle/font/_size.py +++ b/plotly/validators/scatterpolar/legendgrouptitle/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scatterpolar/legendgrouptitle/font/_style.py b/plotly/validators/scatterpolar/legendgrouptitle/font/_style.py index 3f77014c81..25064ccb79 100644 --- a/plotly/validators/scatterpolar/legendgrouptitle/font/_style.py +++ b/plotly/validators/scatterpolar/legendgrouptitle/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scatterpolar/legendgrouptitle/font/_textcase.py b/plotly/validators/scatterpolar/legendgrouptitle/font/_textcase.py index 075103191e..b817deac6f 100644 --- a/plotly/validators/scatterpolar/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/scatterpolar/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/scatterpolar/legendgrouptitle/font/_variant.py b/plotly/validators/scatterpolar/legendgrouptitle/font/_variant.py index a812ce2c69..132bd70173 100644 --- a/plotly/validators/scatterpolar/legendgrouptitle/font/_variant.py +++ b/plotly/validators/scatterpolar/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/scatterpolar/legendgrouptitle/font/_weight.py b/plotly/validators/scatterpolar/legendgrouptitle/font/_weight.py index 98cf0fb359..862cdf6fed 100644 --- a/plotly/validators/scatterpolar/legendgrouptitle/font/_weight.py +++ b/plotly/validators/scatterpolar/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scatterpolar/line/__init__.py b/plotly/validators/scatterpolar/line/__init__.py index 7045562597..d9c0ff9500 100644 --- a/plotly/validators/scatterpolar/line/__init__.py +++ b/plotly/validators/scatterpolar/line/__init__.py @@ -1,27 +1,16 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._width import WidthValidator - from ._smoothing import SmoothingValidator - from ._shape import ShapeValidator - from ._dash import DashValidator - from ._color import ColorValidator - from ._backoffsrc import BackoffsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._width.WidthValidator", + "._smoothing.SmoothingValidator", + "._shape.ShapeValidator", + "._dash.DashValidator", + "._color.ColorValidator", + "._backoffsrc.BackoffsrcValidator", + "._backoff.BackoffValidator", + ], +) diff --git a/plotly/validators/scatterpolar/line/_backoff.py b/plotly/validators/scatterpolar/line/_backoff.py index 5117589815..67e49ba978 100644 --- a/plotly/validators/scatterpolar/line/_backoff.py +++ b/plotly/validators/scatterpolar/line/_backoff.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BackoffValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatterpolar/line/_backoffsrc.py b/plotly/validators/scatterpolar/line/_backoffsrc.py index ed356ca0ab..2064f561a1 100644 --- a/plotly/validators/scatterpolar/line/_backoffsrc.py +++ b/plotly/validators/scatterpolar/line/_backoffsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BackoffsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/line/_color.py b/plotly/validators/scatterpolar/line/_color.py index 548a204b04..2d06ac427a 100644 --- a/plotly/validators/scatterpolar/line/_color.py +++ b/plotly/validators/scatterpolar/line/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/line/_dash.py b/plotly/validators/scatterpolar/line/_dash.py index 4f76636892..ab9e1cd9eb 100644 --- a/plotly/validators/scatterpolar/line/_dash.py +++ b/plotly/validators/scatterpolar/line/_dash.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/scatterpolar/line/_shape.py b/plotly/validators/scatterpolar/line/_shape.py index d077eb0aca..9675ba43b2 100644 --- a/plotly/validators/scatterpolar/line/_shape.py +++ b/plotly/validators/scatterpolar/line/_shape.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["linear", "spline"]), **kwargs, diff --git a/plotly/validators/scatterpolar/line/_smoothing.py b/plotly/validators/scatterpolar/line/_smoothing.py index cc91e57322..3b1dab0469 100644 --- a/plotly/validators/scatterpolar/line/_smoothing.py +++ b/plotly/validators/scatterpolar/line/_smoothing.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SmoothingValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), max=kwargs.pop("max", 1.3), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatterpolar/line/_width.py b/plotly/validators/scatterpolar/line/_width.py index 68e1add29e..285e069b95 100644 --- a/plotly/validators/scatterpolar/line/_width.py +++ b/plotly/validators/scatterpolar/line/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/__init__.py b/plotly/validators/scatterpolar/marker/__init__.py index 8434e73e3f..fea9868a7b 100644 --- a/plotly/validators/scatterpolar/marker/__init__.py +++ b/plotly/validators/scatterpolar/marker/__init__.py @@ -1,71 +1,38 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._symbolsrc import SymbolsrcValidator - from ._symbol import SymbolValidator - from ._standoffsrc import StandoffsrcValidator - from ._standoff import StandoffValidator - from ._sizesrc import SizesrcValidator - from ._sizeref import SizerefValidator - from ._sizemode import SizemodeValidator - from ._sizemin import SizeminValidator - from ._size import SizeValidator - from ._showscale import ShowscaleValidator - from ._reversescale import ReversescaleValidator - from ._opacitysrc import OpacitysrcValidator - from ._opacity import OpacityValidator - from ._maxdisplayed import MaxdisplayedValidator - from ._line import LineValidator - from ._gradient import GradientValidator - from ._colorsrc import ColorsrcValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._color import ColorValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - from ._autocolorscale import AutocolorscaleValidator - from ._anglesrc import AnglesrcValidator - from ._angleref import AnglerefValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatterpolar/marker/_angle.py b/plotly/validators/scatterpolar/marker/_angle.py index b1ddabbc6e..caab4dda24 100644 --- a/plotly/validators/scatterpolar/marker/_angle.py +++ b/plotly/validators/scatterpolar/marker/_angle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AngleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/_angleref.py b/plotly/validators/scatterpolar/marker/_angleref.py index 57aea14862..66e5ea338c 100644 --- a/plotly/validators/scatterpolar/marker/_angleref.py +++ b/plotly/validators/scatterpolar/marker/_angleref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AnglerefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["previous", "up"]), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/_anglesrc.py b/plotly/validators/scatterpolar/marker/_anglesrc.py index 7d51138852..0c17184d75 100644 --- a/plotly/validators/scatterpolar/marker/_anglesrc.py +++ b/plotly/validators/scatterpolar/marker/_anglesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AnglesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/_autocolorscale.py b/plotly/validators/scatterpolar/marker/_autocolorscale.py index c3e038985f..9a5b72c812 100644 --- a/plotly/validators/scatterpolar/marker/_autocolorscale.py +++ b/plotly/validators/scatterpolar/marker/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/_cauto.py b/plotly/validators/scatterpolar/marker/_cauto.py index 7ab0b7f940..b8f8ded22f 100644 --- a/plotly/validators/scatterpolar/marker/_cauto.py +++ b/plotly/validators/scatterpolar/marker/_cauto.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/_cmax.py b/plotly/validators/scatterpolar/marker/_cmax.py index 50af1bb0a9..7f8729a7e0 100644 --- a/plotly/validators/scatterpolar/marker/_cmax.py +++ b/plotly/validators/scatterpolar/marker/_cmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/_cmid.py b/plotly/validators/scatterpolar/marker/_cmid.py index 7287446e43..960986c57e 100644 --- a/plotly/validators/scatterpolar/marker/_cmid.py +++ b/plotly/validators/scatterpolar/marker/_cmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/_cmin.py b/plotly/validators/scatterpolar/marker/_cmin.py index 43137b8adc..8fe1adf3de 100644 --- a/plotly/validators/scatterpolar/marker/_cmin.py +++ b/plotly/validators/scatterpolar/marker/_cmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/_color.py b/plotly/validators/scatterpolar/marker/_color.py index 59776833f5..48449b8a14 100644 --- a/plotly/validators/scatterpolar/marker/_color.py +++ b/plotly/validators/scatterpolar/marker/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), colorscale_path=kwargs.pop( diff --git a/plotly/validators/scatterpolar/marker/_coloraxis.py b/plotly/validators/scatterpolar/marker/_coloraxis.py index fa79c1f1d8..e78bc8340a 100644 --- a/plotly/validators/scatterpolar/marker/_coloraxis.py +++ b/plotly/validators/scatterpolar/marker/_coloraxis.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/scatterpolar/marker/_colorbar.py b/plotly/validators/scatterpolar/marker/_colorbar.py index c66e9bdbc8..9ec31e4f39 100644 --- a/plotly/validators/scatterpolar/marker/_colorbar.py +++ b/plotly/validators/scatterpolar/marker/_colorbar.py @@ -1,281 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterpolar/marker/_colorscale.py b/plotly/validators/scatterpolar/marker/_colorscale.py index b1b45eb08d..6493b35276 100644 --- a/plotly/validators/scatterpolar/marker/_colorscale.py +++ b/plotly/validators/scatterpolar/marker/_colorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/_colorsrc.py b/plotly/validators/scatterpolar/marker/_colorsrc.py index 103f3da50a..54d860fb35 100644 --- a/plotly/validators/scatterpolar/marker/_colorsrc.py +++ b/plotly/validators/scatterpolar/marker/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/_gradient.py b/plotly/validators/scatterpolar/marker/_gradient.py index 0aa1b3a9b5..70f03916ce 100644 --- a/plotly/validators/scatterpolar/marker/_gradient.py +++ b/plotly/validators/scatterpolar/marker/_gradient.py @@ -1,30 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GradientValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterpolar/marker/_line.py b/plotly/validators/scatterpolar/marker/_line.py index 931db1c169..895c6d5fa7 100644 --- a/plotly/validators/scatterpolar/marker/_line.py +++ b/plotly/validators/scatterpolar/marker/_line.py @@ -1,104 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterpolar/marker/_maxdisplayed.py b/plotly/validators/scatterpolar/marker/_maxdisplayed.py index 0617e4ffaf..01fb944f68 100644 --- a/plotly/validators/scatterpolar/marker/_maxdisplayed.py +++ b/plotly/validators/scatterpolar/marker/_maxdisplayed.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxdisplayedValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/_opacity.py b/plotly/validators/scatterpolar/marker/_opacity.py index a6ec77f0c2..c18bdb42f9 100644 --- a/plotly/validators/scatterpolar/marker/_opacity.py +++ b/plotly/validators/scatterpolar/marker/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), diff --git a/plotly/validators/scatterpolar/marker/_opacitysrc.py b/plotly/validators/scatterpolar/marker/_opacitysrc.py index e121da35d6..6a2d0f62e1 100644 --- a/plotly/validators/scatterpolar/marker/_opacitysrc.py +++ b/plotly/validators/scatterpolar/marker/_opacitysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/_reversescale.py b/plotly/validators/scatterpolar/marker/_reversescale.py index 81799268ea..bfff4a47fc 100644 --- a/plotly/validators/scatterpolar/marker/_reversescale.py +++ b/plotly/validators/scatterpolar/marker/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/_showscale.py b/plotly/validators/scatterpolar/marker/_showscale.py index 487eef4bc1..3af65ce940 100644 --- a/plotly/validators/scatterpolar/marker/_showscale.py +++ b/plotly/validators/scatterpolar/marker/_showscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/_size.py b/plotly/validators/scatterpolar/marker/_size.py index faef3c0513..1b4bbd16df 100644 --- a/plotly/validators/scatterpolar/marker/_size.py +++ b/plotly/validators/scatterpolar/marker/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatterpolar/marker/_sizemin.py b/plotly/validators/scatterpolar/marker/_sizemin.py index e92d29c5b1..1e233ebf48 100644 --- a/plotly/validators/scatterpolar/marker/_sizemin.py +++ b/plotly/validators/scatterpolar/marker/_sizemin.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/_sizemode.py b/plotly/validators/scatterpolar/marker/_sizemode.py index 681132e801..ffd2c7974f 100644 --- a/plotly/validators/scatterpolar/marker/_sizemode.py +++ b/plotly/validators/scatterpolar/marker/_sizemode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["diameter", "area"]), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/_sizeref.py b/plotly/validators/scatterpolar/marker/_sizeref.py index 532ee5babc..ebad47d950 100644 --- a/plotly/validators/scatterpolar/marker/_sizeref.py +++ b/plotly/validators/scatterpolar/marker/_sizeref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/_sizesrc.py b/plotly/validators/scatterpolar/marker/_sizesrc.py index c83c0fb9e3..591fb334cd 100644 --- a/plotly/validators/scatterpolar/marker/_sizesrc.py +++ b/plotly/validators/scatterpolar/marker/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/_standoff.py b/plotly/validators/scatterpolar/marker/_standoff.py index 8626fd8622..d2943241bd 100644 --- a/plotly/validators/scatterpolar/marker/_standoff.py +++ b/plotly/validators/scatterpolar/marker/_standoff.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StandoffValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatterpolar/marker/_standoffsrc.py b/plotly/validators/scatterpolar/marker/_standoffsrc.py index 0d39a01151..edbae6ba92 100644 --- a/plotly/validators/scatterpolar/marker/_standoffsrc.py +++ b/plotly/validators/scatterpolar/marker/_standoffsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StandoffsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/_symbol.py b/plotly/validators/scatterpolar/marker/_symbol.py index a5f966b4e0..2879723dc1 100644 --- a/plotly/validators/scatterpolar/marker/_symbol.py +++ b/plotly/validators/scatterpolar/marker/_symbol.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( diff --git a/plotly/validators/scatterpolar/marker/_symbolsrc.py b/plotly/validators/scatterpolar/marker/_symbolsrc.py index cca11ce3bd..da503b341b 100644 --- a/plotly/validators/scatterpolar/marker/_symbolsrc.py +++ b/plotly/validators/scatterpolar/marker/_symbolsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/colorbar/__init__.py b/plotly/validators/scatterpolar/marker/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/__init__.py +++ b/plotly/validators/scatterpolar/marker/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatterpolar/marker/colorbar/_bgcolor.py b/plotly/validators/scatterpolar/marker/colorbar/_bgcolor.py index 369334bfb5..3da0b7dab8 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_bgcolor.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_bgcolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/colorbar/_bordercolor.py b/plotly/validators/scatterpolar/marker/colorbar/_bordercolor.py index 839c667653..055db557c5 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_bordercolor.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_bordercolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/colorbar/_borderwidth.py b/plotly/validators/scatterpolar/marker/colorbar/_borderwidth.py index 1b8fdc87bd..9674b3bcf1 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_borderwidth.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_borderwidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/colorbar/_dtick.py b/plotly/validators/scatterpolar/marker/colorbar/_dtick.py index cde376ddc5..d4f92c17ce 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_dtick.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/colorbar/_exponentformat.py b/plotly/validators/scatterpolar/marker/colorbar/_exponentformat.py index cf5d267fac..f73abe7aeb 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_exponentformat.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_exponentformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/colorbar/_labelalias.py b/plotly/validators/scatterpolar/marker/colorbar/_labelalias.py index 2d1f43a63e..21149c8d32 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_labelalias.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_labelalias.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/colorbar/_len.py b/plotly/validators/scatterpolar/marker/colorbar/_len.py index 0f231cc177..6de95ac0b2 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_len.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_len.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/colorbar/_lenmode.py b/plotly/validators/scatterpolar/marker/colorbar/_lenmode.py index 01231cc0c8..9817a42f6d 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_lenmode.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_lenmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/colorbar/_minexponent.py b/plotly/validators/scatterpolar/marker/colorbar/_minexponent.py index b9f7ca2831..187ec49a0d 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_minexponent.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_minexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/colorbar/_nticks.py b/plotly/validators/scatterpolar/marker/colorbar/_nticks.py index b3c3f1250e..4217387759 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_nticks.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/colorbar/_orientation.py b/plotly/validators/scatterpolar/marker/colorbar/_orientation.py index 5e66e34484..fd8dc2e2b3 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_orientation.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_orientation.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/colorbar/_outlinecolor.py b/plotly/validators/scatterpolar/marker/colorbar/_outlinecolor.py index 409826a8b1..da62308869 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_outlinecolor.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_outlinecolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/colorbar/_outlinewidth.py b/plotly/validators/scatterpolar/marker/colorbar/_outlinewidth.py index 8f65496f22..b95f4c8460 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_outlinewidth.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_outlinewidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/colorbar/_separatethousands.py b/plotly/validators/scatterpolar/marker/colorbar/_separatethousands.py index 9afad978eb..511ee39bf2 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_separatethousands.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/colorbar/_showexponent.py b/plotly/validators/scatterpolar/marker/colorbar/_showexponent.py index 45e2cd3856..2302142c88 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_showexponent.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_showexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/colorbar/_showticklabels.py b/plotly/validators/scatterpolar/marker/colorbar/_showticklabels.py index 73df462c9d..2efa9db5a5 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_showticklabels.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_showticklabels.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/colorbar/_showtickprefix.py b/plotly/validators/scatterpolar/marker/colorbar/_showtickprefix.py index 91edb20c64..249a040b10 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_showtickprefix.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_showtickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/colorbar/_showticksuffix.py b/plotly/validators/scatterpolar/marker/colorbar/_showticksuffix.py index 61c284d797..a4fce3b4bb 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_showticksuffix.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_showticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/colorbar/_thickness.py b/plotly/validators/scatterpolar/marker/colorbar/_thickness.py index 0c5f61dd9c..dfc7cd2f01 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_thickness.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_thickness.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/colorbar/_thicknessmode.py b/plotly/validators/scatterpolar/marker/colorbar/_thicknessmode.py index 11088a51c3..b11c782ada 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_thicknessmode.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_thicknessmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/colorbar/_tick0.py b/plotly/validators/scatterpolar/marker/colorbar/_tick0.py index 1836fafb47..c5ec4ea21c 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_tick0.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/colorbar/_tickangle.py b/plotly/validators/scatterpolar/marker/colorbar/_tickangle.py index 8a8169d525..c9fe56ef26 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_tickangle.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_tickangle.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/colorbar/_tickcolor.py b/plotly/validators/scatterpolar/marker/colorbar/_tickcolor.py index fe89e84efe..352c718928 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_tickcolor.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_tickcolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/colorbar/_tickfont.py b/plotly/validators/scatterpolar/marker/colorbar/_tickfont.py index 909ac27440..27e498e5e7 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_tickfont.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_tickfont.py @@ -1,63 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/scatterpolar/marker/colorbar/_tickformat.py b/plotly/validators/scatterpolar/marker/colorbar/_tickformat.py index afb3579da3..2dd88afd80 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_tickformat.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_tickformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/colorbar/_tickformatstopdefaults.py b/plotly/validators/scatterpolar/marker/colorbar/_tickformatstopdefaults.py index 690ec44f09..c33449d077 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/scatterpolar/marker/colorbar/_tickformatstops.py b/plotly/validators/scatterpolar/marker/colorbar/_tickformatstops.py index c1aeb909c1..434d96ff4d 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_tickformatstops.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_tickformatstops.py @@ -1,53 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterpolar/marker/colorbar/_ticklabeloverflow.py b/plotly/validators/scatterpolar/marker/colorbar/_ticklabeloverflow.py index 8306480a6b..8fa9b9146e 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_ticklabeloverflow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/colorbar/_ticklabelposition.py b/plotly/validators/scatterpolar/marker/colorbar/_ticklabelposition.py index bf3e04d6f6..3208dc5bdc 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_ticklabelposition.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_ticklabelposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/scatterpolar/marker/colorbar/_ticklabelstep.py b/plotly/validators/scatterpolar/marker/colorbar/_ticklabelstep.py index 57e3971bc0..bbaaf70606 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_ticklabelstep.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_ticklabelstep.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/colorbar/_ticklen.py b/plotly/validators/scatterpolar/marker/colorbar/_ticklen.py index e39d5f671a..47354ceb10 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_ticklen.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_ticklen.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/colorbar/_tickmode.py b/plotly/validators/scatterpolar/marker/colorbar/_tickmode.py index b29f1f0858..4c12636fab 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_tickmode.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_tickmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/scatterpolar/marker/colorbar/_tickprefix.py b/plotly/validators/scatterpolar/marker/colorbar/_tickprefix.py index 29b8554c3a..d4e06eeb78 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_tickprefix.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_tickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/colorbar/_ticks.py b/plotly/validators/scatterpolar/marker/colorbar/_ticks.py index c01020ca28..60a193ccb0 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_ticks.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/colorbar/_ticksuffix.py b/plotly/validators/scatterpolar/marker/colorbar/_ticksuffix.py index b92f8a2654..96b9395606 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_ticksuffix.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_ticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/colorbar/_ticktext.py b/plotly/validators/scatterpolar/marker/colorbar/_ticktext.py index 96a088bf1d..404310863f 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_ticktext.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_ticktext.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/colorbar/_ticktextsrc.py b/plotly/validators/scatterpolar/marker/colorbar/_ticktextsrc.py index f9eaa1a6de..309bc73892 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_ticktextsrc.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_ticktextsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/colorbar/_tickvals.py b/plotly/validators/scatterpolar/marker/colorbar/_tickvals.py index 3518fca02c..6984fdbf3c 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_tickvals.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_tickvals.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/colorbar/_tickvalssrc.py b/plotly/validators/scatterpolar/marker/colorbar/_tickvalssrc.py index ff360f9f3f..b76c931ac4 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_tickvalssrc.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_tickvalssrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/colorbar/_tickwidth.py b/plotly/validators/scatterpolar/marker/colorbar/_tickwidth.py index f6eb514585..e0944dcbcb 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_tickwidth.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_tickwidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/colorbar/_title.py b/plotly/validators/scatterpolar/marker/colorbar/_title.py index 6dbf31d3f3..064a9f7360 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_title.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_title.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterpolar/marker/colorbar/_x.py b/plotly/validators/scatterpolar/marker/colorbar/_x.py index 0213bbf93e..4e424666dc 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_x.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_x.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/colorbar/_xanchor.py b/plotly/validators/scatterpolar/marker/colorbar/_xanchor.py index b147918b65..3921aa5910 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_xanchor.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_xanchor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/colorbar/_xpad.py b/plotly/validators/scatterpolar/marker/colorbar/_xpad.py index 47ddc37e40..c766aa82c1 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_xpad.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_xpad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/colorbar/_xref.py b/plotly/validators/scatterpolar/marker/colorbar/_xref.py index d8b81c0e7e..83b21ec6ef 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_xref.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_xref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/colorbar/_y.py b/plotly/validators/scatterpolar/marker/colorbar/_y.py index c05b8f6197..0a289bfaeb 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_y.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_y.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/colorbar/_yanchor.py b/plotly/validators/scatterpolar/marker/colorbar/_yanchor.py index bdcc264669..defed4fdd5 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_yanchor.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_yanchor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/colorbar/_ypad.py b/plotly/validators/scatterpolar/marker/colorbar/_ypad.py index 4f18f05c0d..e20525eb92 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_ypad.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_ypad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/colorbar/_yref.py b/plotly/validators/scatterpolar/marker/colorbar/_yref.py index 65c2204556..38d3940578 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/_yref.py +++ b/plotly/validators/scatterpolar/marker/colorbar/_yref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/colorbar/tickfont/__init__.py b/plotly/validators/scatterpolar/marker/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/tickfont/__init__.py +++ b/plotly/validators/scatterpolar/marker/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scatterpolar/marker/colorbar/tickfont/_color.py b/plotly/validators/scatterpolar/marker/colorbar/tickfont/_color.py index 98fe38deb5..b8ffdccbc1 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/tickfont/_color.py +++ b/plotly/validators/scatterpolar/marker/colorbar/tickfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/colorbar/tickfont/_family.py b/plotly/validators/scatterpolar/marker/colorbar/tickfont/_family.py index 9258bf18fd..ab7c907a96 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/tickfont/_family.py +++ b/plotly/validators/scatterpolar/marker/colorbar/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scatterpolar/marker/colorbar/tickfont/_lineposition.py b/plotly/validators/scatterpolar/marker/colorbar/tickfont/_lineposition.py index e12a8b8aa6..4a1bc70dcb 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/scatterpolar/marker/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/scatterpolar/marker/colorbar/tickfont/_shadow.py b/plotly/validators/scatterpolar/marker/colorbar/tickfont/_shadow.py index 66b5db62db..e3b863a008 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/tickfont/_shadow.py +++ b/plotly/validators/scatterpolar/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/colorbar/tickfont/_size.py b/plotly/validators/scatterpolar/marker/colorbar/tickfont/_size.py index 58106cf78d..b15ccf7044 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/tickfont/_size.py +++ b/plotly/validators/scatterpolar/marker/colorbar/tickfont/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/colorbar/tickfont/_style.py b/plotly/validators/scatterpolar/marker/colorbar/tickfont/_style.py index dabd91194f..104ef30ae1 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/tickfont/_style.py +++ b/plotly/validators/scatterpolar/marker/colorbar/tickfont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/colorbar/tickfont/_textcase.py b/plotly/validators/scatterpolar/marker/colorbar/tickfont/_textcase.py index 204e60098d..f18e726fa1 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/tickfont/_textcase.py +++ b/plotly/validators/scatterpolar/marker/colorbar/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/colorbar/tickfont/_variant.py b/plotly/validators/scatterpolar/marker/colorbar/tickfont/_variant.py index eb89b58b18..1ece317ead 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/tickfont/_variant.py +++ b/plotly/validators/scatterpolar/marker/colorbar/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/scatterpolar/marker/colorbar/tickfont/_weight.py b/plotly/validators/scatterpolar/marker/colorbar/tickfont/_weight.py index 242bbb691f..60a4fcff4f 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/tickfont/_weight.py +++ b/plotly/validators/scatterpolar/marker/colorbar/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/__init__.py b/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_dtickrange.py index a1b613ab54..1cef865d45 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( "items", diff --git a/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_enabled.py b/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_enabled.py index 8acf4d3e1a..7fdf623002 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_name.py b/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_name.py index 33a13af789..4f7441c1f8 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_name.py +++ b/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_templateitemname.py index fd5824e581..57a4f16ada 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_value.py b/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_value.py index 7de1f4f0ff..527673573c 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_value.py +++ b/plotly/validators/scatterpolar/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/colorbar/title/__init__.py b/plotly/validators/scatterpolar/marker/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/title/__init__.py +++ b/plotly/validators/scatterpolar/marker/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/scatterpolar/marker/colorbar/title/_font.py b/plotly/validators/scatterpolar/marker/colorbar/title/_font.py index fd5f5c5d1e..c764d8685f 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/title/_font.py +++ b/plotly/validators/scatterpolar/marker/colorbar/title/_font.py @@ -1,63 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/scatterpolar/marker/colorbar/title/_side.py b/plotly/validators/scatterpolar/marker/colorbar/title/_side.py index 7529e5d428..6fa09724f3 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/title/_side.py +++ b/plotly/validators/scatterpolar/marker/colorbar/title/_side.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/colorbar/title/_text.py b/plotly/validators/scatterpolar/marker/colorbar/title/_text.py index 4b1348b8ef..99687172f3 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/title/_text.py +++ b/plotly/validators/scatterpolar/marker/colorbar/title/_text.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/colorbar/title/font/__init__.py b/plotly/validators/scatterpolar/marker/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/title/font/__init__.py +++ b/plotly/validators/scatterpolar/marker/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scatterpolar/marker/colorbar/title/font/_color.py b/plotly/validators/scatterpolar/marker/colorbar/title/font/_color.py index 51c11d76ca..c6ded319c1 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/title/font/_color.py +++ b/plotly/validators/scatterpolar/marker/colorbar/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/colorbar/title/font/_family.py b/plotly/validators/scatterpolar/marker/colorbar/title/font/_family.py index 252f435ffe..f36a974f8c 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/title/font/_family.py +++ b/plotly/validators/scatterpolar/marker/colorbar/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scatterpolar/marker/colorbar/title/font/_lineposition.py b/plotly/validators/scatterpolar/marker/colorbar/title/font/_lineposition.py index 85f487da56..63df67d0ed 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/title/font/_lineposition.py +++ b/plotly/validators/scatterpolar/marker/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/scatterpolar/marker/colorbar/title/font/_shadow.py b/plotly/validators/scatterpolar/marker/colorbar/title/font/_shadow.py index 015f734790..663795443f 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/title/font/_shadow.py +++ b/plotly/validators/scatterpolar/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/colorbar/title/font/_size.py b/plotly/validators/scatterpolar/marker/colorbar/title/font/_size.py index abbf09b1c2..74faa1b0b7 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/title/font/_size.py +++ b/plotly/validators/scatterpolar/marker/colorbar/title/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/colorbar/title/font/_style.py b/plotly/validators/scatterpolar/marker/colorbar/title/font/_style.py index 0a3a5fda96..943feb2113 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/title/font/_style.py +++ b/plotly/validators/scatterpolar/marker/colorbar/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/colorbar/title/font/_textcase.py b/plotly/validators/scatterpolar/marker/colorbar/title/font/_textcase.py index 840f8b067b..5ee55ceecd 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/title/font/_textcase.py +++ b/plotly/validators/scatterpolar/marker/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/colorbar/title/font/_variant.py b/plotly/validators/scatterpolar/marker/colorbar/title/font/_variant.py index ccb90fa3d3..73b868f5fb 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/title/font/_variant.py +++ b/plotly/validators/scatterpolar/marker/colorbar/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/scatterpolar/marker/colorbar/title/font/_weight.py b/plotly/validators/scatterpolar/marker/colorbar/title/font/_weight.py index fdbdf19623..b5d6d3f763 100644 --- a/plotly/validators/scatterpolar/marker/colorbar/title/font/_weight.py +++ b/plotly/validators/scatterpolar/marker/colorbar/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scatterpolar/marker/gradient/__init__.py b/plotly/validators/scatterpolar/marker/gradient/__init__.py index 624a280ea4..f5373e7822 100644 --- a/plotly/validators/scatterpolar/marker/gradient/__init__.py +++ b/plotly/validators/scatterpolar/marker/gradient/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._typesrc import TypesrcValidator - from ._type import TypeValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._typesrc.TypesrcValidator", + "._type.TypeValidator", + "._colorsrc.ColorsrcValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scatterpolar/marker/gradient/_color.py b/plotly/validators/scatterpolar/marker/gradient/_color.py index e9f1cd7602..6725d2d673 100644 --- a/plotly/validators/scatterpolar/marker/gradient/_color.py +++ b/plotly/validators/scatterpolar/marker/gradient/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/gradient/_colorsrc.py b/plotly/validators/scatterpolar/marker/gradient/_colorsrc.py index 5e4641014d..752a498f57 100644 --- a/plotly/validators/scatterpolar/marker/gradient/_colorsrc.py +++ b/plotly/validators/scatterpolar/marker/gradient/_colorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/gradient/_type.py b/plotly/validators/scatterpolar/marker/gradient/_type.py index 18afa5a859..ab28b671ed 100644 --- a/plotly/validators/scatterpolar/marker/gradient/_type.py +++ b/plotly/validators/scatterpolar/marker/gradient/_type.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/scatterpolar/marker/gradient/_typesrc.py b/plotly/validators/scatterpolar/marker/gradient/_typesrc.py index 0771cd0f37..c935334c0b 100644 --- a/plotly/validators/scatterpolar/marker/gradient/_typesrc.py +++ b/plotly/validators/scatterpolar/marker/gradient/_typesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/line/__init__.py b/plotly/validators/scatterpolar/marker/line/__init__.py index facbe33f88..4ba3ea340b 100644 --- a/plotly/validators/scatterpolar/marker/line/__init__.py +++ b/plotly/validators/scatterpolar/marker/line/__init__.py @@ -1,37 +1,21 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._widthsrc import WidthsrcValidator - from ._width import WidthValidator - from ._reversescale import ReversescaleValidator - from ._colorsrc import ColorsrcValidator - from ._colorscale import ColorscaleValidator - from ._coloraxis import ColoraxisValidator - from ._color import ColorValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatterpolar/marker/line/_autocolorscale.py b/plotly/validators/scatterpolar/marker/line/_autocolorscale.py index 8886a4fe39..5098c4173e 100644 --- a/plotly/validators/scatterpolar/marker/line/_autocolorscale.py +++ b/plotly/validators/scatterpolar/marker/line/_autocolorscale.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/line/_cauto.py b/plotly/validators/scatterpolar/marker/line/_cauto.py index 4cd7b0eae9..28cd545980 100644 --- a/plotly/validators/scatterpolar/marker/line/_cauto.py +++ b/plotly/validators/scatterpolar/marker/line/_cauto.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/line/_cmax.py b/plotly/validators/scatterpolar/marker/line/_cmax.py index d88729d1f3..5d189534c6 100644 --- a/plotly/validators/scatterpolar/marker/line/_cmax.py +++ b/plotly/validators/scatterpolar/marker/line/_cmax.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/line/_cmid.py b/plotly/validators/scatterpolar/marker/line/_cmid.py index 24c0b2a276..23a1948aff 100644 --- a/plotly/validators/scatterpolar/marker/line/_cmid.py +++ b/plotly/validators/scatterpolar/marker/line/_cmid.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/line/_cmin.py b/plotly/validators/scatterpolar/marker/line/_cmin.py index 6a56ae24e1..abafca8762 100644 --- a/plotly/validators/scatterpolar/marker/line/_cmin.py +++ b/plotly/validators/scatterpolar/marker/line/_cmin.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/line/_color.py b/plotly/validators/scatterpolar/marker/line/_color.py index 00d21ba7a9..580581e0e0 100644 --- a/plotly/validators/scatterpolar/marker/line/_color.py +++ b/plotly/validators/scatterpolar/marker/line/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), colorscale_path=kwargs.pop( diff --git a/plotly/validators/scatterpolar/marker/line/_coloraxis.py b/plotly/validators/scatterpolar/marker/line/_coloraxis.py index 16bd03a936..3df1a5614b 100644 --- a/plotly/validators/scatterpolar/marker/line/_coloraxis.py +++ b/plotly/validators/scatterpolar/marker/line/_coloraxis.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/scatterpolar/marker/line/_colorscale.py b/plotly/validators/scatterpolar/marker/line/_colorscale.py index 4d6e4a88a8..7a6954bc57 100644 --- a/plotly/validators/scatterpolar/marker/line/_colorscale.py +++ b/plotly/validators/scatterpolar/marker/line/_colorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/scatterpolar/marker/line/_colorsrc.py b/plotly/validators/scatterpolar/marker/line/_colorsrc.py index 2320bd185c..eb1683d70d 100644 --- a/plotly/validators/scatterpolar/marker/line/_colorsrc.py +++ b/plotly/validators/scatterpolar/marker/line/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/line/_reversescale.py b/plotly/validators/scatterpolar/marker/line/_reversescale.py index 5584bbf16d..e13bfb116e 100644 --- a/plotly/validators/scatterpolar/marker/line/_reversescale.py +++ b/plotly/validators/scatterpolar/marker/line/_reversescale.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/marker/line/_width.py b/plotly/validators/scatterpolar/marker/line/_width.py index acb0b43208..f620e1534c 100644 --- a/plotly/validators/scatterpolar/marker/line/_width.py +++ b/plotly/validators/scatterpolar/marker/line/_width.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatterpolar/marker/line/_widthsrc.py b/plotly/validators/scatterpolar/marker/line/_widthsrc.py index e8a5f6f4c1..c6248c3285 100644 --- a/plotly/validators/scatterpolar/marker/line/_widthsrc.py +++ b/plotly/validators/scatterpolar/marker/line/_widthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/selected/__init__.py b/plotly/validators/scatterpolar/selected/__init__.py index 3b0aeed383..9d2a313b83 100644 --- a/plotly/validators/scatterpolar/selected/__init__.py +++ b/plotly/validators/scatterpolar/selected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] +) diff --git a/plotly/validators/scatterpolar/selected/_marker.py b/plotly/validators/scatterpolar/selected/_marker.py index d349aaa4cd..6010cf0990 100644 --- a/plotly/validators/scatterpolar/selected/_marker.py +++ b/plotly/validators/scatterpolar/selected/_marker.py @@ -1,23 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterpolar/selected/_textfont.py b/plotly/validators/scatterpolar/selected/_textfont.py index 4a55f16440..a2a0531cca 100644 --- a/plotly/validators/scatterpolar/selected/_textfont.py +++ b/plotly/validators/scatterpolar/selected/_textfont.py @@ -1,19 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterpolar/selected/marker/__init__.py b/plotly/validators/scatterpolar/selected/marker/__init__.py index 8c321a38bc..c9c7226fe4 100644 --- a/plotly/validators/scatterpolar/selected/marker/__init__.py +++ b/plotly/validators/scatterpolar/selected/marker/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._size.SizeValidator", "._opacity.OpacityValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/scatterpolar/selected/marker/_color.py b/plotly/validators/scatterpolar/selected/marker/_color.py index 8167b9d244..0c42729241 100644 --- a/plotly/validators/scatterpolar/selected/marker/_color.py +++ b/plotly/validators/scatterpolar/selected/marker/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/selected/marker/_opacity.py b/plotly/validators/scatterpolar/selected/marker/_opacity.py index a0189a8d75..324aba74f7 100644 --- a/plotly/validators/scatterpolar/selected/marker/_opacity.py +++ b/plotly/validators/scatterpolar/selected/marker/_opacity.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatterpolar/selected/marker/_size.py b/plotly/validators/scatterpolar/selected/marker/_size.py index dd03c16399..4e2f71f095 100644 --- a/plotly/validators/scatterpolar/selected/marker/_size.py +++ b/plotly/validators/scatterpolar/selected/marker/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterpolar/selected/textfont/__init__.py b/plotly/validators/scatterpolar/selected/textfont/__init__.py index a9f087e5af..85a4cc9573 100644 --- a/plotly/validators/scatterpolar/selected/textfont/__init__.py +++ b/plotly/validators/scatterpolar/selected/textfont/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._color.ColorValidator"] +) diff --git a/plotly/validators/scatterpolar/selected/textfont/_color.py b/plotly/validators/scatterpolar/selected/textfont/_color.py index 3e494a7669..1b0a9a709a 100644 --- a/plotly/validators/scatterpolar/selected/textfont/_color.py +++ b/plotly/validators/scatterpolar/selected/textfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/stream/__init__.py b/plotly/validators/scatterpolar/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/scatterpolar/stream/__init__.py +++ b/plotly/validators/scatterpolar/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/scatterpolar/stream/_maxpoints.py b/plotly/validators/scatterpolar/stream/_maxpoints.py index aefe366398..9a1afc96c1 100644 --- a/plotly/validators/scatterpolar/stream/_maxpoints.py +++ b/plotly/validators/scatterpolar/stream/_maxpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatterpolar/stream/_token.py b/plotly/validators/scatterpolar/stream/_token.py index 61ca248d09..fbc35e3380 100644 --- a/plotly/validators/scatterpolar/stream/_token.py +++ b/plotly/validators/scatterpolar/stream/_token.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scatterpolar/textfont/__init__.py b/plotly/validators/scatterpolar/textfont/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/scatterpolar/textfont/__init__.py +++ b/plotly/validators/scatterpolar/textfont/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatterpolar/textfont/_color.py b/plotly/validators/scatterpolar/textfont/_color.py index 5b5be0d804..c7a963bced 100644 --- a/plotly/validators/scatterpolar/textfont/_color.py +++ b/plotly/validators/scatterpolar/textfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/scatterpolar/textfont/_colorsrc.py b/plotly/validators/scatterpolar/textfont/_colorsrc.py index 72028dfc3c..0447791461 100644 --- a/plotly/validators/scatterpolar/textfont/_colorsrc.py +++ b/plotly/validators/scatterpolar/textfont/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/textfont/_family.py b/plotly/validators/scatterpolar/textfont/_family.py index 3ad5773b02..e9569ed969 100644 --- a/plotly/validators/scatterpolar/textfont/_family.py +++ b/plotly/validators/scatterpolar/textfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/scatterpolar/textfont/_familysrc.py b/plotly/validators/scatterpolar/textfont/_familysrc.py index c9d16ed9a8..a98b07bb97 100644 --- a/plotly/validators/scatterpolar/textfont/_familysrc.py +++ b/plotly/validators/scatterpolar/textfont/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/textfont/_lineposition.py b/plotly/validators/scatterpolar/textfont/_lineposition.py index 62b27fce53..cd9aa10190 100644 --- a/plotly/validators/scatterpolar/textfont/_lineposition.py +++ b/plotly/validators/scatterpolar/textfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/scatterpolar/textfont/_linepositionsrc.py b/plotly/validators/scatterpolar/textfont/_linepositionsrc.py index 09fbd8e8b4..327fefab10 100644 --- a/plotly/validators/scatterpolar/textfont/_linepositionsrc.py +++ b/plotly/validators/scatterpolar/textfont/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/textfont/_shadow.py b/plotly/validators/scatterpolar/textfont/_shadow.py index 46b7b8f120..a49fc1733a 100644 --- a/plotly/validators/scatterpolar/textfont/_shadow.py +++ b/plotly/validators/scatterpolar/textfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scatterpolar/textfont/_shadowsrc.py b/plotly/validators/scatterpolar/textfont/_shadowsrc.py index 8fc8eb3969..6db45e09e0 100644 --- a/plotly/validators/scatterpolar/textfont/_shadowsrc.py +++ b/plotly/validators/scatterpolar/textfont/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/textfont/_size.py b/plotly/validators/scatterpolar/textfont/_size.py index a2c7ac28d8..0dbe5fa05b 100644 --- a/plotly/validators/scatterpolar/textfont/_size.py +++ b/plotly/validators/scatterpolar/textfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/scatterpolar/textfont/_sizesrc.py b/plotly/validators/scatterpolar/textfont/_sizesrc.py index 31b4ae47c5..71810495df 100644 --- a/plotly/validators/scatterpolar/textfont/_sizesrc.py +++ b/plotly/validators/scatterpolar/textfont/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/textfont/_style.py b/plotly/validators/scatterpolar/textfont/_style.py index b499f57cfb..6d561971e2 100644 --- a/plotly/validators/scatterpolar/textfont/_style.py +++ b/plotly/validators/scatterpolar/textfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/scatterpolar/textfont/_stylesrc.py b/plotly/validators/scatterpolar/textfont/_stylesrc.py index 4f69bfafda..a3b0a59bbe 100644 --- a/plotly/validators/scatterpolar/textfont/_stylesrc.py +++ b/plotly/validators/scatterpolar/textfont/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/textfont/_textcase.py b/plotly/validators/scatterpolar/textfont/_textcase.py index a95d0d1805..bed2407d6e 100644 --- a/plotly/validators/scatterpolar/textfont/_textcase.py +++ b/plotly/validators/scatterpolar/textfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/scatterpolar/textfont/_textcasesrc.py b/plotly/validators/scatterpolar/textfont/_textcasesrc.py index 6dbbc94a92..5007066068 100644 --- a/plotly/validators/scatterpolar/textfont/_textcasesrc.py +++ b/plotly/validators/scatterpolar/textfont/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/textfont/_variant.py b/plotly/validators/scatterpolar/textfont/_variant.py index 0146ffb83e..22028badee 100644 --- a/plotly/validators/scatterpolar/textfont/_variant.py +++ b/plotly/validators/scatterpolar/textfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( diff --git a/plotly/validators/scatterpolar/textfont/_variantsrc.py b/plotly/validators/scatterpolar/textfont/_variantsrc.py index 8bdf4b6ff8..a363f51635 100644 --- a/plotly/validators/scatterpolar/textfont/_variantsrc.py +++ b/plotly/validators/scatterpolar/textfont/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/textfont/_weight.py b/plotly/validators/scatterpolar/textfont/_weight.py index 516e7fa1d4..fed7651348 100644 --- a/plotly/validators/scatterpolar/textfont/_weight.py +++ b/plotly/validators/scatterpolar/textfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/scatterpolar/textfont/_weightsrc.py b/plotly/validators/scatterpolar/textfont/_weightsrc.py index 666f9dedd0..83065a5c24 100644 --- a/plotly/validators/scatterpolar/textfont/_weightsrc.py +++ b/plotly/validators/scatterpolar/textfont/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/unselected/__init__.py b/plotly/validators/scatterpolar/unselected/__init__.py index 3b0aeed383..9d2a313b83 100644 --- a/plotly/validators/scatterpolar/unselected/__init__.py +++ b/plotly/validators/scatterpolar/unselected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] +) diff --git a/plotly/validators/scatterpolar/unselected/_marker.py b/plotly/validators/scatterpolar/unselected/_marker.py index 2915ef8e37..067b611a43 100644 --- a/plotly/validators/scatterpolar/unselected/_marker.py +++ b/plotly/validators/scatterpolar/unselected/_marker.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterpolar/unselected/_textfont.py b/plotly/validators/scatterpolar/unselected/_textfont.py index 6cb2721583..439487d5fd 100644 --- a/plotly/validators/scatterpolar/unselected/_textfont.py +++ b/plotly/validators/scatterpolar/unselected/_textfont.py @@ -1,20 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterpolar/unselected/marker/__init__.py b/plotly/validators/scatterpolar/unselected/marker/__init__.py index 8c321a38bc..c9c7226fe4 100644 --- a/plotly/validators/scatterpolar/unselected/marker/__init__.py +++ b/plotly/validators/scatterpolar/unselected/marker/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._size.SizeValidator", "._opacity.OpacityValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/scatterpolar/unselected/marker/_color.py b/plotly/validators/scatterpolar/unselected/marker/_color.py index 4e05bc41ec..ab211f7259 100644 --- a/plotly/validators/scatterpolar/unselected/marker/_color.py +++ b/plotly/validators/scatterpolar/unselected/marker/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterpolar/unselected/marker/_opacity.py b/plotly/validators/scatterpolar/unselected/marker/_opacity.py index 412bfa9d3e..ed073ddd0b 100644 --- a/plotly/validators/scatterpolar/unselected/marker/_opacity.py +++ b/plotly/validators/scatterpolar/unselected/marker/_opacity.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatterpolar/unselected/marker/_size.py b/plotly/validators/scatterpolar/unselected/marker/_size.py index 3d7f8e5c82..acc3e7fe76 100644 --- a/plotly/validators/scatterpolar/unselected/marker/_size.py +++ b/plotly/validators/scatterpolar/unselected/marker/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterpolar/unselected/textfont/__init__.py b/plotly/validators/scatterpolar/unselected/textfont/__init__.py index a9f087e5af..85a4cc9573 100644 --- a/plotly/validators/scatterpolar/unselected/textfont/__init__.py +++ b/plotly/validators/scatterpolar/unselected/textfont/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._color.ColorValidator"] +) diff --git a/plotly/validators/scatterpolar/unselected/textfont/_color.py b/plotly/validators/scatterpolar/unselected/textfont/_color.py index 8c094235df..948ffa6940 100644 --- a/plotly/validators/scatterpolar/unselected/textfont/_color.py +++ b/plotly/validators/scatterpolar/unselected/textfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/__init__.py b/plotly/validators/scatterpolargl/__init__.py index 69a11c033b..55efbc3b3b 100644 --- a/plotly/validators/scatterpolargl/__init__.py +++ b/plotly/validators/scatterpolargl/__init__.py @@ -1,115 +1,60 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._visible import VisibleValidator - from ._unselected import UnselectedValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._thetaunit import ThetaunitValidator - from ._thetasrc import ThetasrcValidator - from ._theta0 import Theta0Validator - from ._theta import ThetaValidator - from ._texttemplatesrc import TexttemplatesrcValidator - from ._texttemplate import TexttemplateValidator - from ._textsrc import TextsrcValidator - from ._textpositionsrc import TextpositionsrcValidator - from ._textposition import TextpositionValidator - from ._textfont import TextfontValidator - from ._text import TextValidator - from ._subplot import SubplotValidator - from ._stream import StreamValidator - from ._showlegend import ShowlegendValidator - from ._selectedpoints import SelectedpointsValidator - from ._selected import SelectedValidator - from ._rsrc import RsrcValidator - from ._r0 import R0Validator - from ._r import RValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - from ._mode import ModeValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._marker import MarkerValidator - from ._line import LineValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._fillcolor import FillcolorValidator - from ._fill import FillValidator - from ._dtheta import DthetaValidator - from ._dr import DrValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatterpolargl/_connectgaps.py b/plotly/validators/scatterpolargl/_connectgaps.py index cccb7f7ec6..4d28904c4b 100644 --- a/plotly/validators/scatterpolargl/_connectgaps.py +++ b/plotly/validators/scatterpolargl/_connectgaps.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/_customdata.py b/plotly/validators/scatterpolargl/_customdata.py index 60d2621cb3..0579e95230 100644 --- a/plotly/validators/scatterpolargl/_customdata.py +++ b/plotly/validators/scatterpolargl/_customdata.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/_customdatasrc.py b/plotly/validators/scatterpolargl/_customdatasrc.py index 1c8b8a6707..7f9b7fcf35 100644 --- a/plotly/validators/scatterpolargl/_customdatasrc.py +++ b/plotly/validators/scatterpolargl/_customdatasrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/_dr.py b/plotly/validators/scatterpolargl/_dr.py index 0a3bc8ce68..efd7403441 100644 --- a/plotly/validators/scatterpolargl/_dr.py +++ b/plotly/validators/scatterpolargl/_dr.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DrValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/_dtheta.py b/plotly/validators/scatterpolargl/_dtheta.py index 30be934327..4f866d0ead 100644 --- a/plotly/validators/scatterpolargl/_dtheta.py +++ b/plotly/validators/scatterpolargl/_dtheta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DthetaValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/_fill.py b/plotly/validators/scatterpolargl/_fill.py index 1cabd2cf5e..2a246d3bd8 100644 --- a/plotly/validators/scatterpolargl/_fill.py +++ b/plotly/validators/scatterpolargl/_fill.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/scatterpolargl/_fillcolor.py b/plotly/validators/scatterpolargl/_fillcolor.py index 535873ca58..3888c4085b 100644 --- a/plotly/validators/scatterpolargl/_fillcolor.py +++ b/plotly/validators/scatterpolargl/_fillcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/_hoverinfo.py b/plotly/validators/scatterpolargl/_hoverinfo.py index 588fc3fb29..53a52e8226 100644 --- a/plotly/validators/scatterpolargl/_hoverinfo.py +++ b/plotly/validators/scatterpolargl/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/scatterpolargl/_hoverinfosrc.py b/plotly/validators/scatterpolargl/_hoverinfosrc.py index e513c43a59..fdbe762cce 100644 --- a/plotly/validators/scatterpolargl/_hoverinfosrc.py +++ b/plotly/validators/scatterpolargl/_hoverinfosrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/_hoverlabel.py b/plotly/validators/scatterpolargl/_hoverlabel.py index e69742b183..b342be775f 100644 --- a/plotly/validators/scatterpolargl/_hoverlabel.py +++ b/plotly/validators/scatterpolargl/_hoverlabel.py @@ -1,52 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterpolargl/_hovertemplate.py b/plotly/validators/scatterpolargl/_hovertemplate.py index f89ecbf1e6..77bd4c0bc6 100644 --- a/plotly/validators/scatterpolargl/_hovertemplate.py +++ b/plotly/validators/scatterpolargl/_hovertemplate.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scatterpolargl/_hovertemplatesrc.py b/plotly/validators/scatterpolargl/_hovertemplatesrc.py index 9b7f281087..23b532caac 100644 --- a/plotly/validators/scatterpolargl/_hovertemplatesrc.py +++ b/plotly/validators/scatterpolargl/_hovertemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/_hovertext.py b/plotly/validators/scatterpolargl/_hovertext.py index d2ce4af252..64ebd35488 100644 --- a/plotly/validators/scatterpolargl/_hovertext.py +++ b/plotly/validators/scatterpolargl/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/scatterpolargl/_hovertextsrc.py b/plotly/validators/scatterpolargl/_hovertextsrc.py index 5c1c5fb269..d45d453730 100644 --- a/plotly/validators/scatterpolargl/_hovertextsrc.py +++ b/plotly/validators/scatterpolargl/_hovertextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/_ids.py b/plotly/validators/scatterpolargl/_ids.py index ee1dde6be8..c720aecde8 100644 --- a/plotly/validators/scatterpolargl/_ids.py +++ b/plotly/validators/scatterpolargl/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/_idssrc.py b/plotly/validators/scatterpolargl/_idssrc.py index d770e51f7b..888859cc96 100644 --- a/plotly/validators/scatterpolargl/_idssrc.py +++ b/plotly/validators/scatterpolargl/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/_legend.py b/plotly/validators/scatterpolargl/_legend.py index 3ea6bb917f..3e102eec37 100644 --- a/plotly/validators/scatterpolargl/_legend.py +++ b/plotly/validators/scatterpolargl/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/scatterpolargl/_legendgroup.py b/plotly/validators/scatterpolargl/_legendgroup.py index 6428e9f381..0312e4a268 100644 --- a/plotly/validators/scatterpolargl/_legendgroup.py +++ b/plotly/validators/scatterpolargl/_legendgroup.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/_legendgrouptitle.py b/plotly/validators/scatterpolargl/_legendgrouptitle.py index a136e1fd7b..ed3fae514c 100644 --- a/plotly/validators/scatterpolargl/_legendgrouptitle.py +++ b/plotly/validators/scatterpolargl/_legendgrouptitle.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterpolargl/_legendrank.py b/plotly/validators/scatterpolargl/_legendrank.py index faee6bb2a5..9e555a2b1d 100644 --- a/plotly/validators/scatterpolargl/_legendrank.py +++ b/plotly/validators/scatterpolargl/_legendrank.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/_legendwidth.py b/plotly/validators/scatterpolargl/_legendwidth.py index 6d7c7f4fef..20dbabbbe1 100644 --- a/plotly/validators/scatterpolargl/_legendwidth.py +++ b/plotly/validators/scatterpolargl/_legendwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterpolargl/_line.py b/plotly/validators/scatterpolargl/_line.py index d446796f6e..5eb8dc263d 100644 --- a/plotly/validators/scatterpolargl/_line.py +++ b/plotly/validators/scatterpolargl/_line.py @@ -1,21 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterpolargl/_marker.py b/plotly/validators/scatterpolargl/_marker.py index 42f96c14dc..673b280cb6 100644 --- a/plotly/validators/scatterpolargl/_marker.py +++ b/plotly/validators/scatterpolargl/_marker.py @@ -1,144 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterpolargl/_meta.py b/plotly/validators/scatterpolargl/_meta.py index c678fb42e8..ba7e69f05c 100644 --- a/plotly/validators/scatterpolargl/_meta.py +++ b/plotly/validators/scatterpolargl/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/scatterpolargl/_metasrc.py b/plotly/validators/scatterpolargl/_metasrc.py index 8998a22093..9bb151286b 100644 --- a/plotly/validators/scatterpolargl/_metasrc.py +++ b/plotly/validators/scatterpolargl/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/_mode.py b/plotly/validators/scatterpolargl/_mode.py index 94ce272fe4..abf832108b 100644 --- a/plotly/validators/scatterpolargl/_mode.py +++ b/plotly/validators/scatterpolargl/_mode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["lines", "markers", "text"]), diff --git a/plotly/validators/scatterpolargl/_name.py b/plotly/validators/scatterpolargl/_name.py index 42efadd232..230f960b73 100644 --- a/plotly/validators/scatterpolargl/_name.py +++ b/plotly/validators/scatterpolargl/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/_opacity.py b/plotly/validators/scatterpolargl/_opacity.py index a1f2ba60f4..015b430632 100644 --- a/plotly/validators/scatterpolargl/_opacity.py +++ b/plotly/validators/scatterpolargl/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatterpolargl/_r.py b/plotly/validators/scatterpolargl/_r.py index cb10a91a15..4b6ea7d510 100644 --- a/plotly/validators/scatterpolargl/_r.py +++ b/plotly/validators/scatterpolargl/_r.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/_r0.py b/plotly/validators/scatterpolargl/_r0.py index 4c1171a07b..f9297822f5 100644 --- a/plotly/validators/scatterpolargl/_r0.py +++ b/plotly/validators/scatterpolargl/_r0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class R0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/_rsrc.py b/plotly/validators/scatterpolargl/_rsrc.py index 956a53c674..8fe92e5490 100644 --- a/plotly/validators/scatterpolargl/_rsrc.py +++ b/plotly/validators/scatterpolargl/_rsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/_selected.py b/plotly/validators/scatterpolargl/_selected.py index b3d87ae640..75ccf70f7c 100644 --- a/plotly/validators/scatterpolargl/_selected.py +++ b/plotly/validators/scatterpolargl/_selected.py @@ -1,23 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterpolargl/_selectedpoints.py b/plotly/validators/scatterpolargl/_selectedpoints.py index acd2459695..a838d620d5 100644 --- a/plotly/validators/scatterpolargl/_selectedpoints.py +++ b/plotly/validators/scatterpolargl/_selectedpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/_showlegend.py b/plotly/validators/scatterpolargl/_showlegend.py index 0c7ca9958c..750dd9263a 100644 --- a/plotly/validators/scatterpolargl/_showlegend.py +++ b/plotly/validators/scatterpolargl/_showlegend.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/_stream.py b/plotly/validators/scatterpolargl/_stream.py index bc00dd1ffb..5e38da78b8 100644 --- a/plotly/validators/scatterpolargl/_stream.py +++ b/plotly/validators/scatterpolargl/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterpolargl/_subplot.py b/plotly/validators/scatterpolargl/_subplot.py index 194566c8dd..61ec3a764c 100644 --- a/plotly/validators/scatterpolargl/_subplot.py +++ b/plotly/validators/scatterpolargl/_subplot.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SubplotValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "polar"), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scatterpolargl/_text.py b/plotly/validators/scatterpolargl/_text.py index 8349035e09..ee0cc22e20 100644 --- a/plotly/validators/scatterpolargl/_text.py +++ b/plotly/validators/scatterpolargl/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scatterpolargl/_textfont.py b/plotly/validators/scatterpolargl/_textfont.py index 2fa609ae2b..65c4928d04 100644 --- a/plotly/validators/scatterpolargl/_textfont.py +++ b/plotly/validators/scatterpolargl/_textfont.py @@ -1,61 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/scatterpolargl/_textposition.py b/plotly/validators/scatterpolargl/_textposition.py index 9f226bb746..3452b32496 100644 --- a/plotly/validators/scatterpolargl/_textposition.py +++ b/plotly/validators/scatterpolargl/_textposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( diff --git a/plotly/validators/scatterpolargl/_textpositionsrc.py b/plotly/validators/scatterpolargl/_textpositionsrc.py index 22dc7cd90c..f1c440497d 100644 --- a/plotly/validators/scatterpolargl/_textpositionsrc.py +++ b/plotly/validators/scatterpolargl/_textpositionsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/_textsrc.py b/plotly/validators/scatterpolargl/_textsrc.py index c5b6cce44f..cb63d7e8a2 100644 --- a/plotly/validators/scatterpolargl/_textsrc.py +++ b/plotly/validators/scatterpolargl/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/_texttemplate.py b/plotly/validators/scatterpolargl/_texttemplate.py index 9157a4599f..6d91c6d72e 100644 --- a/plotly/validators/scatterpolargl/_texttemplate.py +++ b/plotly/validators/scatterpolargl/_texttemplate.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/scatterpolargl/_texttemplatesrc.py b/plotly/validators/scatterpolargl/_texttemplatesrc.py index 19af4d92ca..0c7c21f1a3 100644 --- a/plotly/validators/scatterpolargl/_texttemplatesrc.py +++ b/plotly/validators/scatterpolargl/_texttemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/_theta.py b/plotly/validators/scatterpolargl/_theta.py index f8b0c6f2fb..566ecf8224 100644 --- a/plotly/validators/scatterpolargl/_theta.py +++ b/plotly/validators/scatterpolargl/_theta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThetaValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/_theta0.py b/plotly/validators/scatterpolargl/_theta0.py index 0c72f22ef2..5a18df44ba 100644 --- a/plotly/validators/scatterpolargl/_theta0.py +++ b/plotly/validators/scatterpolargl/_theta0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Theta0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/_thetasrc.py b/plotly/validators/scatterpolargl/_thetasrc.py index f7d4de2bec..faac9dcd0c 100644 --- a/plotly/validators/scatterpolargl/_thetasrc.py +++ b/plotly/validators/scatterpolargl/_thetasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/_thetaunit.py b/plotly/validators/scatterpolargl/_thetaunit.py index da5ecf2212..344e3f2804 100644 --- a/plotly/validators/scatterpolargl/_thetaunit.py +++ b/plotly/validators/scatterpolargl/_thetaunit.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThetaunitValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), values=kwargs.pop("values", ["radians", "degrees", "gradians"]), **kwargs, diff --git a/plotly/validators/scatterpolargl/_uid.py b/plotly/validators/scatterpolargl/_uid.py index 0207353fa1..8e51ecd434 100644 --- a/plotly/validators/scatterpolargl/_uid.py +++ b/plotly/validators/scatterpolargl/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/_uirevision.py b/plotly/validators/scatterpolargl/_uirevision.py index 3c9724ceb3..0c8d8f6b26 100644 --- a/plotly/validators/scatterpolargl/_uirevision.py +++ b/plotly/validators/scatterpolargl/_uirevision.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/_unselected.py b/plotly/validators/scatterpolargl/_unselected.py index 23d1653ecc..18bfe9324a 100644 --- a/plotly/validators/scatterpolargl/_unselected.py +++ b/plotly/validators/scatterpolargl/_unselected.py @@ -1,25 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterpolargl/_visible.py b/plotly/validators/scatterpolargl/_visible.py index ad4df38b62..bae51188a7 100644 --- a/plotly/validators/scatterpolargl/_visible.py +++ b/plotly/validators/scatterpolargl/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/scatterpolargl/hoverlabel/__init__.py b/plotly/validators/scatterpolargl/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/scatterpolargl/hoverlabel/__init__.py +++ b/plotly/validators/scatterpolargl/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/scatterpolargl/hoverlabel/_align.py b/plotly/validators/scatterpolargl/hoverlabel/_align.py index 581fd7b73e..82b4a677ef 100644 --- a/plotly/validators/scatterpolargl/hoverlabel/_align.py +++ b/plotly/validators/scatterpolargl/hoverlabel/_align.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/scatterpolargl/hoverlabel/_alignsrc.py b/plotly/validators/scatterpolargl/hoverlabel/_alignsrc.py index 1eaba8a0e3..b148e1c976 100644 --- a/plotly/validators/scatterpolargl/hoverlabel/_alignsrc.py +++ b/plotly/validators/scatterpolargl/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/hoverlabel/_bgcolor.py b/plotly/validators/scatterpolargl/hoverlabel/_bgcolor.py index 3c78ec33bb..245b5f9bfd 100644 --- a/plotly/validators/scatterpolargl/hoverlabel/_bgcolor.py +++ b/plotly/validators/scatterpolargl/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scatterpolargl/hoverlabel/_bgcolorsrc.py b/plotly/validators/scatterpolargl/hoverlabel/_bgcolorsrc.py index 68e5cf5459..bc223478d6 100644 --- a/plotly/validators/scatterpolargl/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/scatterpolargl/hoverlabel/_bgcolorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/hoverlabel/_bordercolor.py b/plotly/validators/scatterpolargl/hoverlabel/_bordercolor.py index d241dd98d7..aa971dd67a 100644 --- a/plotly/validators/scatterpolargl/hoverlabel/_bordercolor.py +++ b/plotly/validators/scatterpolargl/hoverlabel/_bordercolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scatterpolargl/hoverlabel/_bordercolorsrc.py b/plotly/validators/scatterpolargl/hoverlabel/_bordercolorsrc.py index 5959a12051..5749475d27 100644 --- a/plotly/validators/scatterpolargl/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/scatterpolargl/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/hoverlabel/_font.py b/plotly/validators/scatterpolargl/hoverlabel/_font.py index 9d9dde2246..3006267d10 100644 --- a/plotly/validators/scatterpolargl/hoverlabel/_font.py +++ b/plotly/validators/scatterpolargl/hoverlabel/_font.py @@ -1,87 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/scatterpolargl/hoverlabel/_namelength.py b/plotly/validators/scatterpolargl/hoverlabel/_namelength.py index 094244fbcb..7548c66ea6 100644 --- a/plotly/validators/scatterpolargl/hoverlabel/_namelength.py +++ b/plotly/validators/scatterpolargl/hoverlabel/_namelength.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/scatterpolargl/hoverlabel/_namelengthsrc.py b/plotly/validators/scatterpolargl/hoverlabel/_namelengthsrc.py index ddd7536408..af003b9395 100644 --- a/plotly/validators/scatterpolargl/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/scatterpolargl/hoverlabel/_namelengthsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/hoverlabel/font/__init__.py b/plotly/validators/scatterpolargl/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/scatterpolargl/hoverlabel/font/__init__.py +++ b/plotly/validators/scatterpolargl/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatterpolargl/hoverlabel/font/_color.py b/plotly/validators/scatterpolargl/hoverlabel/font/_color.py index e032229b29..fa52c0dee8 100644 --- a/plotly/validators/scatterpolargl/hoverlabel/font/_color.py +++ b/plotly/validators/scatterpolargl/hoverlabel/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scatterpolargl/hoverlabel/font/_colorsrc.py b/plotly/validators/scatterpolargl/hoverlabel/font/_colorsrc.py index 7f99e0e2ef..630f87fec2 100644 --- a/plotly/validators/scatterpolargl/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/scatterpolargl/hoverlabel/font/_colorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/hoverlabel/font/_family.py b/plotly/validators/scatterpolargl/hoverlabel/font/_family.py index 2dffd5f59f..e8c231d8e5 100644 --- a/plotly/validators/scatterpolargl/hoverlabel/font/_family.py +++ b/plotly/validators/scatterpolargl/hoverlabel/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/scatterpolargl/hoverlabel/font/_familysrc.py b/plotly/validators/scatterpolargl/hoverlabel/font/_familysrc.py index 10cd822bdb..b0ee3fa6bc 100644 --- a/plotly/validators/scatterpolargl/hoverlabel/font/_familysrc.py +++ b/plotly/validators/scatterpolargl/hoverlabel/font/_familysrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/hoverlabel/font/_lineposition.py b/plotly/validators/scatterpolargl/hoverlabel/font/_lineposition.py index ffa1e5b9f5..07745e5c4d 100644 --- a/plotly/validators/scatterpolargl/hoverlabel/font/_lineposition.py +++ b/plotly/validators/scatterpolargl/hoverlabel/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/scatterpolargl/hoverlabel/font/_linepositionsrc.py b/plotly/validators/scatterpolargl/hoverlabel/font/_linepositionsrc.py index 04259572c3..019845aed9 100644 --- a/plotly/validators/scatterpolargl/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/scatterpolargl/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/hoverlabel/font/_shadow.py b/plotly/validators/scatterpolargl/hoverlabel/font/_shadow.py index 8710c9e2e6..74947b99c8 100644 --- a/plotly/validators/scatterpolargl/hoverlabel/font/_shadow.py +++ b/plotly/validators/scatterpolargl/hoverlabel/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scatterpolargl/hoverlabel/font/_shadowsrc.py b/plotly/validators/scatterpolargl/hoverlabel/font/_shadowsrc.py index 415a0989c1..f96b518371 100644 --- a/plotly/validators/scatterpolargl/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/scatterpolargl/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/hoverlabel/font/_size.py b/plotly/validators/scatterpolargl/hoverlabel/font/_size.py index 09fe04d11b..3d303c831a 100644 --- a/plotly/validators/scatterpolargl/hoverlabel/font/_size.py +++ b/plotly/validators/scatterpolargl/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/scatterpolargl/hoverlabel/font/_sizesrc.py b/plotly/validators/scatterpolargl/hoverlabel/font/_sizesrc.py index 15cfffdf36..94bd83297a 100644 --- a/plotly/validators/scatterpolargl/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/scatterpolargl/hoverlabel/font/_sizesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/hoverlabel/font/_style.py b/plotly/validators/scatterpolargl/hoverlabel/font/_style.py index 4fbd959cf4..aaf45e0071 100644 --- a/plotly/validators/scatterpolargl/hoverlabel/font/_style.py +++ b/plotly/validators/scatterpolargl/hoverlabel/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/scatterpolargl/hoverlabel/font/_stylesrc.py b/plotly/validators/scatterpolargl/hoverlabel/font/_stylesrc.py index 06d3ec5d8d..d9accc9d97 100644 --- a/plotly/validators/scatterpolargl/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/scatterpolargl/hoverlabel/font/_stylesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/hoverlabel/font/_textcase.py b/plotly/validators/scatterpolargl/hoverlabel/font/_textcase.py index a594188644..fd03582f72 100644 --- a/plotly/validators/scatterpolargl/hoverlabel/font/_textcase.py +++ b/plotly/validators/scatterpolargl/hoverlabel/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/scatterpolargl/hoverlabel/font/_textcasesrc.py b/plotly/validators/scatterpolargl/hoverlabel/font/_textcasesrc.py index 817f7e491f..5224ad7971 100644 --- a/plotly/validators/scatterpolargl/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/scatterpolargl/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/hoverlabel/font/_variant.py b/plotly/validators/scatterpolargl/hoverlabel/font/_variant.py index b1c0f7f87d..dbad5fefff 100644 --- a/plotly/validators/scatterpolargl/hoverlabel/font/_variant.py +++ b/plotly/validators/scatterpolargl/hoverlabel/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/scatterpolargl/hoverlabel/font/_variantsrc.py b/plotly/validators/scatterpolargl/hoverlabel/font/_variantsrc.py index 20c53e56bd..e2a1721506 100644 --- a/plotly/validators/scatterpolargl/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/scatterpolargl/hoverlabel/font/_variantsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/hoverlabel/font/_weight.py b/plotly/validators/scatterpolargl/hoverlabel/font/_weight.py index 476be0b801..2979b699cf 100644 --- a/plotly/validators/scatterpolargl/hoverlabel/font/_weight.py +++ b/plotly/validators/scatterpolargl/hoverlabel/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/scatterpolargl/hoverlabel/font/_weightsrc.py b/plotly/validators/scatterpolargl/hoverlabel/font/_weightsrc.py index f7335b8adb..8d15f4d533 100644 --- a/plotly/validators/scatterpolargl/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/scatterpolargl/hoverlabel/font/_weightsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/legendgrouptitle/__init__.py b/plotly/validators/scatterpolargl/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/scatterpolargl/legendgrouptitle/__init__.py +++ b/plotly/validators/scatterpolargl/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/scatterpolargl/legendgrouptitle/_font.py b/plotly/validators/scatterpolargl/legendgrouptitle/_font.py index cf3f6ae10d..d4cda16073 100644 --- a/plotly/validators/scatterpolargl/legendgrouptitle/_font.py +++ b/plotly/validators/scatterpolargl/legendgrouptitle/_font.py @@ -1,63 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/scatterpolargl/legendgrouptitle/_text.py b/plotly/validators/scatterpolargl/legendgrouptitle/_text.py index 302aec3d03..7b60a553c0 100644 --- a/plotly/validators/scatterpolargl/legendgrouptitle/_text.py +++ b/plotly/validators/scatterpolargl/legendgrouptitle/_text.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/legendgrouptitle/font/__init__.py b/plotly/validators/scatterpolargl/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/scatterpolargl/legendgrouptitle/font/__init__.py +++ b/plotly/validators/scatterpolargl/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scatterpolargl/legendgrouptitle/font/_color.py b/plotly/validators/scatterpolargl/legendgrouptitle/font/_color.py index bec44d655a..e1d8a93b1d 100644 --- a/plotly/validators/scatterpolargl/legendgrouptitle/font/_color.py +++ b/plotly/validators/scatterpolargl/legendgrouptitle/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/legendgrouptitle/font/_family.py b/plotly/validators/scatterpolargl/legendgrouptitle/font/_family.py index ff304f1df2..f30a177036 100644 --- a/plotly/validators/scatterpolargl/legendgrouptitle/font/_family.py +++ b/plotly/validators/scatterpolargl/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scatterpolargl/legendgrouptitle/font/_lineposition.py b/plotly/validators/scatterpolargl/legendgrouptitle/font/_lineposition.py index ec11b86b84..ce441e1e1d 100644 --- a/plotly/validators/scatterpolargl/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/scatterpolargl/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/scatterpolargl/legendgrouptitle/font/_shadow.py b/plotly/validators/scatterpolargl/legendgrouptitle/font/_shadow.py index 02a3e18a89..ae985cadb7 100644 --- a/plotly/validators/scatterpolargl/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/scatterpolargl/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/legendgrouptitle/font/_size.py b/plotly/validators/scatterpolargl/legendgrouptitle/font/_size.py index 803f0ab644..10359799ac 100644 --- a/plotly/validators/scatterpolargl/legendgrouptitle/font/_size.py +++ b/plotly/validators/scatterpolargl/legendgrouptitle/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scatterpolargl/legendgrouptitle/font/_style.py b/plotly/validators/scatterpolargl/legendgrouptitle/font/_style.py index 073e80ae08..fcc827a96f 100644 --- a/plotly/validators/scatterpolargl/legendgrouptitle/font/_style.py +++ b/plotly/validators/scatterpolargl/legendgrouptitle/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scatterpolargl/legendgrouptitle/font/_textcase.py b/plotly/validators/scatterpolargl/legendgrouptitle/font/_textcase.py index d948843907..cb2c8fa2af 100644 --- a/plotly/validators/scatterpolargl/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/scatterpolargl/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/scatterpolargl/legendgrouptitle/font/_variant.py b/plotly/validators/scatterpolargl/legendgrouptitle/font/_variant.py index b64253abf9..a7c040dd79 100644 --- a/plotly/validators/scatterpolargl/legendgrouptitle/font/_variant.py +++ b/plotly/validators/scatterpolargl/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/scatterpolargl/legendgrouptitle/font/_weight.py b/plotly/validators/scatterpolargl/legendgrouptitle/font/_weight.py index d8d1c09238..17c4da6f36 100644 --- a/plotly/validators/scatterpolargl/legendgrouptitle/font/_weight.py +++ b/plotly/validators/scatterpolargl/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scatterpolargl/line/__init__.py b/plotly/validators/scatterpolargl/line/__init__.py index cff4146651..c5140ef758 100644 --- a/plotly/validators/scatterpolargl/line/__init__.py +++ b/plotly/validators/scatterpolargl/line/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._width.WidthValidator", "._dash.DashValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/scatterpolargl/line/_color.py b/plotly/validators/scatterpolargl/line/_color.py index 5425d65d94..fd68d1026c 100644 --- a/plotly/validators/scatterpolargl/line/_color.py +++ b/plotly/validators/scatterpolargl/line/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/line/_dash.py b/plotly/validators/scatterpolargl/line/_dash.py index 2d8af9699e..9f19e0bbaf 100644 --- a/plotly/validators/scatterpolargl/line/_dash.py +++ b/plotly/validators/scatterpolargl/line/_dash.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DashValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", ["dash", "dashdot", "dot", "longdash", "longdashdot", "solid"] diff --git a/plotly/validators/scatterpolargl/line/_width.py b/plotly/validators/scatterpolargl/line/_width.py index 10386997d3..01259d7a71 100644 --- a/plotly/validators/scatterpolargl/line/_width.py +++ b/plotly/validators/scatterpolargl/line/_width.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/__init__.py b/plotly/validators/scatterpolargl/marker/__init__.py index dc48879d6b..ec56080f71 100644 --- a/plotly/validators/scatterpolargl/marker/__init__.py +++ b/plotly/validators/scatterpolargl/marker/__init__.py @@ -1,61 +1,33 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._symbolsrc import SymbolsrcValidator - from ._symbol import SymbolValidator - from ._sizesrc import SizesrcValidator - from ._sizeref import SizerefValidator - from ._sizemode import SizemodeValidator - from ._sizemin import SizeminValidator - from ._size import SizeValidator - from ._showscale import ShowscaleValidator - from ._reversescale import ReversescaleValidator - from ._opacitysrc import OpacitysrcValidator - from ._opacity import OpacityValidator - from ._line import LineValidator - from ._colorsrc import ColorsrcValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._color import ColorValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - from ._autocolorscale import AutocolorscaleValidator - from ._anglesrc import AnglesrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatterpolargl/marker/_angle.py b/plotly/validators/scatterpolargl/marker/_angle.py index 0786e64244..b61a7ec73f 100644 --- a/plotly/validators/scatterpolargl/marker/_angle.py +++ b/plotly/validators/scatterpolargl/marker/_angle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AngleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/_anglesrc.py b/plotly/validators/scatterpolargl/marker/_anglesrc.py index 3bb11c7d44..33fa898272 100644 --- a/plotly/validators/scatterpolargl/marker/_anglesrc.py +++ b/plotly/validators/scatterpolargl/marker/_anglesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AnglesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/_autocolorscale.py b/plotly/validators/scatterpolargl/marker/_autocolorscale.py index cfada839f0..0ce330297b 100644 --- a/plotly/validators/scatterpolargl/marker/_autocolorscale.py +++ b/plotly/validators/scatterpolargl/marker/_autocolorscale.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/_cauto.py b/plotly/validators/scatterpolargl/marker/_cauto.py index b2bbcbc1d9..0e76c66b02 100644 --- a/plotly/validators/scatterpolargl/marker/_cauto.py +++ b/plotly/validators/scatterpolargl/marker/_cauto.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/_cmax.py b/plotly/validators/scatterpolargl/marker/_cmax.py index e152101cdf..9c3c271b8b 100644 --- a/plotly/validators/scatterpolargl/marker/_cmax.py +++ b/plotly/validators/scatterpolargl/marker/_cmax.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/_cmid.py b/plotly/validators/scatterpolargl/marker/_cmid.py index 4edfd2b916..54d0ba8c60 100644 --- a/plotly/validators/scatterpolargl/marker/_cmid.py +++ b/plotly/validators/scatterpolargl/marker/_cmid.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/_cmin.py b/plotly/validators/scatterpolargl/marker/_cmin.py index 354d2eb549..693df46d0e 100644 --- a/plotly/validators/scatterpolargl/marker/_cmin.py +++ b/plotly/validators/scatterpolargl/marker/_cmin.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/_color.py b/plotly/validators/scatterpolargl/marker/_color.py index 604b2db8ce..365565e2a4 100644 --- a/plotly/validators/scatterpolargl/marker/_color.py +++ b/plotly/validators/scatterpolargl/marker/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), colorscale_path=kwargs.pop( diff --git a/plotly/validators/scatterpolargl/marker/_coloraxis.py b/plotly/validators/scatterpolargl/marker/_coloraxis.py index 7690c5ed27..4c70533bad 100644 --- a/plotly/validators/scatterpolargl/marker/_coloraxis.py +++ b/plotly/validators/scatterpolargl/marker/_coloraxis.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/scatterpolargl/marker/_colorbar.py b/plotly/validators/scatterpolargl/marker/_colorbar.py index 10157a4e50..069c69cd3d 100644 --- a/plotly/validators/scatterpolargl/marker/_colorbar.py +++ b/plotly/validators/scatterpolargl/marker/_colorbar.py @@ -1,281 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterpolargl/marker/_colorscale.py b/plotly/validators/scatterpolargl/marker/_colorscale.py index efbae52976..32d59646d4 100644 --- a/plotly/validators/scatterpolargl/marker/_colorscale.py +++ b/plotly/validators/scatterpolargl/marker/_colorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/_colorsrc.py b/plotly/validators/scatterpolargl/marker/_colorsrc.py index 6f144a3a87..17d3dfc367 100644 --- a/plotly/validators/scatterpolargl/marker/_colorsrc.py +++ b/plotly/validators/scatterpolargl/marker/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/_line.py b/plotly/validators/scatterpolargl/marker/_line.py index 855250ee55..45c1ceb4ed 100644 --- a/plotly/validators/scatterpolargl/marker/_line.py +++ b/plotly/validators/scatterpolargl/marker/_line.py @@ -1,106 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterpolargl/marker/_opacity.py b/plotly/validators/scatterpolargl/marker/_opacity.py index fe7cc64fc6..9ec196988a 100644 --- a/plotly/validators/scatterpolargl/marker/_opacity.py +++ b/plotly/validators/scatterpolargl/marker/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), diff --git a/plotly/validators/scatterpolargl/marker/_opacitysrc.py b/plotly/validators/scatterpolargl/marker/_opacitysrc.py index 7c92ead162..2063e1e6b1 100644 --- a/plotly/validators/scatterpolargl/marker/_opacitysrc.py +++ b/plotly/validators/scatterpolargl/marker/_opacitysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/_reversescale.py b/plotly/validators/scatterpolargl/marker/_reversescale.py index 150c91b51a..d8ac1191f3 100644 --- a/plotly/validators/scatterpolargl/marker/_reversescale.py +++ b/plotly/validators/scatterpolargl/marker/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/_showscale.py b/plotly/validators/scatterpolargl/marker/_showscale.py index 37fdb12aaa..d6824b2709 100644 --- a/plotly/validators/scatterpolargl/marker/_showscale.py +++ b/plotly/validators/scatterpolargl/marker/_showscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/_size.py b/plotly/validators/scatterpolargl/marker/_size.py index 6dcd740486..b00faed91e 100644 --- a/plotly/validators/scatterpolargl/marker/_size.py +++ b/plotly/validators/scatterpolargl/marker/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatterpolargl/marker/_sizemin.py b/plotly/validators/scatterpolargl/marker/_sizemin.py index 718b1ac635..9cc93023de 100644 --- a/plotly/validators/scatterpolargl/marker/_sizemin.py +++ b/plotly/validators/scatterpolargl/marker/_sizemin.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/_sizemode.py b/plotly/validators/scatterpolargl/marker/_sizemode.py index 5794ca9709..015b5c16d1 100644 --- a/plotly/validators/scatterpolargl/marker/_sizemode.py +++ b/plotly/validators/scatterpolargl/marker/_sizemode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["diameter", "area"]), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/_sizeref.py b/plotly/validators/scatterpolargl/marker/_sizeref.py index 12545b4528..63d56bf823 100644 --- a/plotly/validators/scatterpolargl/marker/_sizeref.py +++ b/plotly/validators/scatterpolargl/marker/_sizeref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/_sizesrc.py b/plotly/validators/scatterpolargl/marker/_sizesrc.py index 9fde47c2f1..7ff1f4acf4 100644 --- a/plotly/validators/scatterpolargl/marker/_sizesrc.py +++ b/plotly/validators/scatterpolargl/marker/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/_symbol.py b/plotly/validators/scatterpolargl/marker/_symbol.py index 01d6ce5ffa..5f090c41f9 100644 --- a/plotly/validators/scatterpolargl/marker/_symbol.py +++ b/plotly/validators/scatterpolargl/marker/_symbol.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( diff --git a/plotly/validators/scatterpolargl/marker/_symbolsrc.py b/plotly/validators/scatterpolargl/marker/_symbolsrc.py index addb7620fa..3deaf4de12 100644 --- a/plotly/validators/scatterpolargl/marker/_symbolsrc.py +++ b/plotly/validators/scatterpolargl/marker/_symbolsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/colorbar/__init__.py b/plotly/validators/scatterpolargl/marker/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/__init__.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_bgcolor.py b/plotly/validators/scatterpolargl/marker/colorbar/_bgcolor.py index 0aa1d9d11a..c65271dd44 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_bgcolor.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_bgcolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_bordercolor.py b/plotly/validators/scatterpolargl/marker/colorbar/_bordercolor.py index 53ae187d70..88f07fdca2 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_bordercolor.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_bordercolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_borderwidth.py b/plotly/validators/scatterpolargl/marker/colorbar/_borderwidth.py index 55727f7355..3b89f7f10b 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_borderwidth.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_borderwidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_dtick.py b/plotly/validators/scatterpolargl/marker/colorbar/_dtick.py index 0a2c384263..74af3d5067 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_dtick.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_dtick.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_exponentformat.py b/plotly/validators/scatterpolargl/marker/colorbar/_exponentformat.py index b727d3f1f3..c709772159 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_exponentformat.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_exponentformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_labelalias.py b/plotly/validators/scatterpolargl/marker/colorbar/_labelalias.py index 3a2cd2ce28..3ba09a3fee 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_labelalias.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_labelalias.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_len.py b/plotly/validators/scatterpolargl/marker/colorbar/_len.py index fb590c6f2e..4836664992 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_len.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_len.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_lenmode.py b/plotly/validators/scatterpolargl/marker/colorbar/_lenmode.py index ef3b89f826..2c0c16187b 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_lenmode.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_lenmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_minexponent.py b/plotly/validators/scatterpolargl/marker/colorbar/_minexponent.py index 34806203d4..92c085c8cc 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_minexponent.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_minexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_nticks.py b/plotly/validators/scatterpolargl/marker/colorbar/_nticks.py index 37bf0c0334..8a84eb1b0d 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_nticks.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_nticks.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_orientation.py b/plotly/validators/scatterpolargl/marker/colorbar/_orientation.py index 3120606811..5ae24e32be 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_orientation.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_orientation.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_outlinecolor.py b/plotly/validators/scatterpolargl/marker/colorbar/_outlinecolor.py index 11088bdcd5..099eb79a1f 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_outlinecolor.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_outlinecolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_outlinewidth.py b/plotly/validators/scatterpolargl/marker/colorbar/_outlinewidth.py index 9adec39c76..2f103b3d96 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_outlinewidth.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_outlinewidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_separatethousands.py b/plotly/validators/scatterpolargl/marker/colorbar/_separatethousands.py index 2b53cb3a25..49e1f2e6ce 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_separatethousands.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_showexponent.py b/plotly/validators/scatterpolargl/marker/colorbar/_showexponent.py index 5bf26e83de..27050695b8 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_showexponent.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_showexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_showticklabels.py b/plotly/validators/scatterpolargl/marker/colorbar/_showticklabels.py index e134598888..28f38f9917 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_showticklabels.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_showticklabels.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_showtickprefix.py b/plotly/validators/scatterpolargl/marker/colorbar/_showtickprefix.py index b23e3d3e72..26d6f49b3c 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_showtickprefix.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_showtickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_showticksuffix.py b/plotly/validators/scatterpolargl/marker/colorbar/_showticksuffix.py index 94f9a3c3f0..714d4d453f 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_showticksuffix.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_showticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_thickness.py b/plotly/validators/scatterpolargl/marker/colorbar/_thickness.py index c5f9c5b0fd..6db1832e6d 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_thickness.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_thickness.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_thicknessmode.py b/plotly/validators/scatterpolargl/marker/colorbar/_thicknessmode.py index b9f7eb01d9..f4a70a97c7 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_thicknessmode.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_thicknessmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_tick0.py b/plotly/validators/scatterpolargl/marker/colorbar/_tick0.py index c0aff472a1..0138dddab8 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_tick0.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_tick0.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_tickangle.py b/plotly/validators/scatterpolargl/marker/colorbar/_tickangle.py index 32d32209d7..383f453a3a 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_tickangle.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_tickangle.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_tickcolor.py b/plotly/validators/scatterpolargl/marker/colorbar/_tickcolor.py index 5e94d1d3f2..82ea15eda9 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_tickcolor.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_tickcolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_tickfont.py b/plotly/validators/scatterpolargl/marker/colorbar/_tickfont.py index 1577d1e030..1d19f008e7 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_tickfont.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_tickfont.py @@ -1,63 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_tickformat.py b/plotly/validators/scatterpolargl/marker/colorbar/_tickformat.py index 22d5e34405..8539332233 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_tickformat.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_tickformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_tickformatstopdefaults.py b/plotly/validators/scatterpolargl/marker/colorbar/_tickformatstopdefaults.py index ab4f7d27d4..0748b84870 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_tickformatstops.py b/plotly/validators/scatterpolargl/marker/colorbar/_tickformatstops.py index 297cf672b1..43d948f226 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_tickformatstops.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_tickformatstops.py @@ -1,53 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_ticklabeloverflow.py b/plotly/validators/scatterpolargl/marker/colorbar/_ticklabeloverflow.py index c0eb345e75..35eb98f774 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_ticklabeloverflow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_ticklabelposition.py b/plotly/validators/scatterpolargl/marker/colorbar/_ticklabelposition.py index 1d7517df0e..25cf93da00 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_ticklabelposition.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_ticklabelposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_ticklabelstep.py b/plotly/validators/scatterpolargl/marker/colorbar/_ticklabelstep.py index 524de877be..75052f6df5 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_ticklabelstep.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_ticklabelstep.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_ticklen.py b/plotly/validators/scatterpolargl/marker/colorbar/_ticklen.py index abe82a47ee..7fb778a7a8 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_ticklen.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_ticklen.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_tickmode.py b/plotly/validators/scatterpolargl/marker/colorbar/_tickmode.py index 2300f93b01..74045f371a 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_tickmode.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_tickmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_tickprefix.py b/plotly/validators/scatterpolargl/marker/colorbar/_tickprefix.py index 217cf58325..97bc9ce5a8 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_tickprefix.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_tickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_ticks.py b/plotly/validators/scatterpolargl/marker/colorbar/_ticks.py index 87dad9ddee..068d9392ba 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_ticks.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_ticks.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_ticksuffix.py b/plotly/validators/scatterpolargl/marker/colorbar/_ticksuffix.py index 6db266133e..1165a5bfd7 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_ticksuffix.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_ticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_ticktext.py b/plotly/validators/scatterpolargl/marker/colorbar/_ticktext.py index 974c6f228d..475b7e072c 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_ticktext.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_ticktext.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_ticktextsrc.py b/plotly/validators/scatterpolargl/marker/colorbar/_ticktextsrc.py index 60995c3f60..ea49d50983 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_ticktextsrc.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_ticktextsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_tickvals.py b/plotly/validators/scatterpolargl/marker/colorbar/_tickvals.py index c00d01965c..a396256029 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_tickvals.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_tickvals.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_tickvalssrc.py b/plotly/validators/scatterpolargl/marker/colorbar/_tickvalssrc.py index 0ee181df15..c4b53988ad 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_tickvalssrc.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_tickvalssrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_tickwidth.py b/plotly/validators/scatterpolargl/marker/colorbar/_tickwidth.py index d31ef9fdbb..54a804dd08 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_tickwidth.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_tickwidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_title.py b/plotly/validators/scatterpolargl/marker/colorbar/_title.py index 405019d1db..2b03faa882 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_title.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_title.py @@ -1,29 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_x.py b/plotly/validators/scatterpolargl/marker/colorbar/_x.py index 500bb0f522..a9ddced29a 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_x.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_x.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_xanchor.py b/plotly/validators/scatterpolargl/marker/colorbar/_xanchor.py index 3a0ac3b6e0..5ae30449c5 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_xanchor.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_xanchor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_xpad.py b/plotly/validators/scatterpolargl/marker/colorbar/_xpad.py index a7530c52da..9d90e199ec 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_xpad.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_xpad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_xref.py b/plotly/validators/scatterpolargl/marker/colorbar/_xref.py index 6493a71d06..8f2e07f99e 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_xref.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_xref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_y.py b/plotly/validators/scatterpolargl/marker/colorbar/_y.py index 1b750e9468..2fb1c88a63 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_y.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_y.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_yanchor.py b/plotly/validators/scatterpolargl/marker/colorbar/_yanchor.py index bd3110cf99..77cc055478 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_yanchor.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_yanchor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_ypad.py b/plotly/validators/scatterpolargl/marker/colorbar/_ypad.py index e969a6e3ba..929191e467 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_ypad.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_ypad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/_yref.py b/plotly/validators/scatterpolargl/marker/colorbar/_yref.py index 70992277f9..7859031ba6 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/_yref.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/_yref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/tickfont/__init__.py b/plotly/validators/scatterpolargl/marker/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/tickfont/__init__.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_color.py b/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_color.py index c677d8a539..6220ee2cfa 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_color.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_family.py b/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_family.py index 155839c394..7251e1efd9 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_family.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_lineposition.py b/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_lineposition.py index f40a1b2773..0a6a527616 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_shadow.py b/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_shadow.py index 4c47115a6f..65d416e0b5 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_shadow.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_size.py b/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_size.py index c94da2248e..d5d9c29941 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_size.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_style.py b/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_style.py index a974cbb10b..6790a47944 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_style.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_textcase.py b/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_textcase.py index 8afd7126fd..38bf20036b 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_textcase.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_variant.py b/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_variant.py index e6ad75a02f..06f6ddd5d3 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_variant.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_weight.py b/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_weight.py index cc8b325ba2..9e6725a62e 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_weight.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/__init__.py b/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_dtickrange.py index 49dd25a0f8..977704241f 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_enabled.py b/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_enabled.py index 1917d88d12..82a56f7416 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_name.py b/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_name.py index a564a55869..87e5a97fc0 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_name.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_templateitemname.py index 371aedaa3b..fab87ae2c9 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_value.py b/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_value.py index 124bf5f2ae..a4fb656331 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_value.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/colorbar/title/__init__.py b/plotly/validators/scatterpolargl/marker/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/title/__init__.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/scatterpolargl/marker/colorbar/title/_font.py b/plotly/validators/scatterpolargl/marker/colorbar/title/_font.py index 7dad7ac5c8..6d5052c143 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/title/_font.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/title/_font.py @@ -1,63 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/title/_side.py b/plotly/validators/scatterpolargl/marker/colorbar/title/_side.py index 37aaead6eb..42d6f56cf3 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/title/_side.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/title/_side.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/title/_text.py b/plotly/validators/scatterpolargl/marker/colorbar/title/_text.py index f80e1772c2..871c0f047b 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/title/_text.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/title/_text.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/colorbar/title/font/__init__.py b/plotly/validators/scatterpolargl/marker/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/title/font/__init__.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scatterpolargl/marker/colorbar/title/font/_color.py b/plotly/validators/scatterpolargl/marker/colorbar/title/font/_color.py index 11527bab7f..445d066f4a 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/title/font/_color.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/colorbar/title/font/_family.py b/plotly/validators/scatterpolargl/marker/colorbar/title/font/_family.py index 9590b50366..17d9bdfe35 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/title/font/_family.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scatterpolargl/marker/colorbar/title/font/_lineposition.py b/plotly/validators/scatterpolargl/marker/colorbar/title/font/_lineposition.py index f4fc804856..7ca87a502d 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/title/font/_lineposition.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/scatterpolargl/marker/colorbar/title/font/_shadow.py b/plotly/validators/scatterpolargl/marker/colorbar/title/font/_shadow.py index 0773bf3ad2..91b13fc23b 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/title/font/_shadow.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/colorbar/title/font/_size.py b/plotly/validators/scatterpolargl/marker/colorbar/title/font/_size.py index d025733a83..320c67eba5 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/title/font/_size.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/title/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/title/font/_style.py b/plotly/validators/scatterpolargl/marker/colorbar/title/font/_style.py index 9e22f04ad2..785a102474 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/title/font/_style.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/title/font/_textcase.py b/plotly/validators/scatterpolargl/marker/colorbar/title/font/_textcase.py index 0c4ed9eaf1..0103207dfe 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/title/font/_textcase.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/colorbar/title/font/_variant.py b/plotly/validators/scatterpolargl/marker/colorbar/title/font/_variant.py index 510666fe5b..df9edf28dc 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/title/font/_variant.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/scatterpolargl/marker/colorbar/title/font/_weight.py b/plotly/validators/scatterpolargl/marker/colorbar/title/font/_weight.py index 93bbbbc64b..d67adca34c 100644 --- a/plotly/validators/scatterpolargl/marker/colorbar/title/font/_weight.py +++ b/plotly/validators/scatterpolargl/marker/colorbar/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scatterpolargl/marker/line/__init__.py b/plotly/validators/scatterpolargl/marker/line/__init__.py index facbe33f88..4ba3ea340b 100644 --- a/plotly/validators/scatterpolargl/marker/line/__init__.py +++ b/plotly/validators/scatterpolargl/marker/line/__init__.py @@ -1,37 +1,21 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._widthsrc import WidthsrcValidator - from ._width import WidthValidator - from ._reversescale import ReversescaleValidator - from ._colorsrc import ColorsrcValidator - from ._colorscale import ColorscaleValidator - from ._coloraxis import ColoraxisValidator - from ._color import ColorValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatterpolargl/marker/line/_autocolorscale.py b/plotly/validators/scatterpolargl/marker/line/_autocolorscale.py index 237ee20b74..61b1293f1f 100644 --- a/plotly/validators/scatterpolargl/marker/line/_autocolorscale.py +++ b/plotly/validators/scatterpolargl/marker/line/_autocolorscale.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/line/_cauto.py b/plotly/validators/scatterpolargl/marker/line/_cauto.py index 8a9802003d..97ba676144 100644 --- a/plotly/validators/scatterpolargl/marker/line/_cauto.py +++ b/plotly/validators/scatterpolargl/marker/line/_cauto.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/line/_cmax.py b/plotly/validators/scatterpolargl/marker/line/_cmax.py index 5fa90ee7f7..dc60678812 100644 --- a/plotly/validators/scatterpolargl/marker/line/_cmax.py +++ b/plotly/validators/scatterpolargl/marker/line/_cmax.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/line/_cmid.py b/plotly/validators/scatterpolargl/marker/line/_cmid.py index a771e0afac..3afdbd7743 100644 --- a/plotly/validators/scatterpolargl/marker/line/_cmid.py +++ b/plotly/validators/scatterpolargl/marker/line/_cmid.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/line/_cmin.py b/plotly/validators/scatterpolargl/marker/line/_cmin.py index 4378230cf4..5dfd28d4d9 100644 --- a/plotly/validators/scatterpolargl/marker/line/_cmin.py +++ b/plotly/validators/scatterpolargl/marker/line/_cmin.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/line/_color.py b/plotly/validators/scatterpolargl/marker/line/_color.py index d918523795..e4f3845347 100644 --- a/plotly/validators/scatterpolargl/marker/line/_color.py +++ b/plotly/validators/scatterpolargl/marker/line/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), colorscale_path=kwargs.pop( diff --git a/plotly/validators/scatterpolargl/marker/line/_coloraxis.py b/plotly/validators/scatterpolargl/marker/line/_coloraxis.py index ec19924e32..f47d02ff9a 100644 --- a/plotly/validators/scatterpolargl/marker/line/_coloraxis.py +++ b/plotly/validators/scatterpolargl/marker/line/_coloraxis.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/scatterpolargl/marker/line/_colorscale.py b/plotly/validators/scatterpolargl/marker/line/_colorscale.py index b6d24bcc9a..9ba9d21390 100644 --- a/plotly/validators/scatterpolargl/marker/line/_colorscale.py +++ b/plotly/validators/scatterpolargl/marker/line/_colorscale.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/scatterpolargl/marker/line/_colorsrc.py b/plotly/validators/scatterpolargl/marker/line/_colorsrc.py index 7ce2f332cf..2700c70184 100644 --- a/plotly/validators/scatterpolargl/marker/line/_colorsrc.py +++ b/plotly/validators/scatterpolargl/marker/line/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/line/_reversescale.py b/plotly/validators/scatterpolargl/marker/line/_reversescale.py index ca4fb9f077..2306924302 100644 --- a/plotly/validators/scatterpolargl/marker/line/_reversescale.py +++ b/plotly/validators/scatterpolargl/marker/line/_reversescale.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/marker/line/_width.py b/plotly/validators/scatterpolargl/marker/line/_width.py index c23ec49913..a33d87da97 100644 --- a/plotly/validators/scatterpolargl/marker/line/_width.py +++ b/plotly/validators/scatterpolargl/marker/line/_width.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatterpolargl/marker/line/_widthsrc.py b/plotly/validators/scatterpolargl/marker/line/_widthsrc.py index 5d95c6addc..c0ab7a1ffc 100644 --- a/plotly/validators/scatterpolargl/marker/line/_widthsrc.py +++ b/plotly/validators/scatterpolargl/marker/line/_widthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/selected/__init__.py b/plotly/validators/scatterpolargl/selected/__init__.py index 3b0aeed383..9d2a313b83 100644 --- a/plotly/validators/scatterpolargl/selected/__init__.py +++ b/plotly/validators/scatterpolargl/selected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] +) diff --git a/plotly/validators/scatterpolargl/selected/_marker.py b/plotly/validators/scatterpolargl/selected/_marker.py index 5dea20dde1..09e9b45c3f 100644 --- a/plotly/validators/scatterpolargl/selected/_marker.py +++ b/plotly/validators/scatterpolargl/selected/_marker.py @@ -1,23 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterpolargl/selected/_textfont.py b/plotly/validators/scatterpolargl/selected/_textfont.py index 8fd5b5e964..86dc070141 100644 --- a/plotly/validators/scatterpolargl/selected/_textfont.py +++ b/plotly/validators/scatterpolargl/selected/_textfont.py @@ -1,19 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterpolargl/selected/marker/__init__.py b/plotly/validators/scatterpolargl/selected/marker/__init__.py index 8c321a38bc..c9c7226fe4 100644 --- a/plotly/validators/scatterpolargl/selected/marker/__init__.py +++ b/plotly/validators/scatterpolargl/selected/marker/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._size.SizeValidator", "._opacity.OpacityValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/scatterpolargl/selected/marker/_color.py b/plotly/validators/scatterpolargl/selected/marker/_color.py index a9bf020057..80d52531e6 100644 --- a/plotly/validators/scatterpolargl/selected/marker/_color.py +++ b/plotly/validators/scatterpolargl/selected/marker/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/selected/marker/_opacity.py b/plotly/validators/scatterpolargl/selected/marker/_opacity.py index 92ab430857..6fe69c8d43 100644 --- a/plotly/validators/scatterpolargl/selected/marker/_opacity.py +++ b/plotly/validators/scatterpolargl/selected/marker/_opacity.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatterpolargl/selected/marker/_size.py b/plotly/validators/scatterpolargl/selected/marker/_size.py index ea17e71581..fcfca6571d 100644 --- a/plotly/validators/scatterpolargl/selected/marker/_size.py +++ b/plotly/validators/scatterpolargl/selected/marker/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterpolargl/selected/textfont/__init__.py b/plotly/validators/scatterpolargl/selected/textfont/__init__.py index a9f087e5af..85a4cc9573 100644 --- a/plotly/validators/scatterpolargl/selected/textfont/__init__.py +++ b/plotly/validators/scatterpolargl/selected/textfont/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._color.ColorValidator"] +) diff --git a/plotly/validators/scatterpolargl/selected/textfont/_color.py b/plotly/validators/scatterpolargl/selected/textfont/_color.py index ff8a6ad2a6..ac6ece80f4 100644 --- a/plotly/validators/scatterpolargl/selected/textfont/_color.py +++ b/plotly/validators/scatterpolargl/selected/textfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/stream/__init__.py b/plotly/validators/scatterpolargl/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/scatterpolargl/stream/__init__.py +++ b/plotly/validators/scatterpolargl/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/scatterpolargl/stream/_maxpoints.py b/plotly/validators/scatterpolargl/stream/_maxpoints.py index eb57ec9279..b961eaa36c 100644 --- a/plotly/validators/scatterpolargl/stream/_maxpoints.py +++ b/plotly/validators/scatterpolargl/stream/_maxpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatterpolargl/stream/_token.py b/plotly/validators/scatterpolargl/stream/_token.py index af7bd22853..c09ee53d67 100644 --- a/plotly/validators/scatterpolargl/stream/_token.py +++ b/plotly/validators/scatterpolargl/stream/_token.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scatterpolargl/textfont/__init__.py b/plotly/validators/scatterpolargl/textfont/__init__.py index d87c37ff7a..35d589957b 100644 --- a/plotly/validators/scatterpolargl/textfont/__init__.py +++ b/plotly/validators/scatterpolargl/textfont/__init__.py @@ -1,37 +1,21 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatterpolargl/textfont/_color.py b/plotly/validators/scatterpolargl/textfont/_color.py index dcbf751a62..eaf58c9d32 100644 --- a/plotly/validators/scatterpolargl/textfont/_color.py +++ b/plotly/validators/scatterpolargl/textfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scatterpolargl/textfont/_colorsrc.py b/plotly/validators/scatterpolargl/textfont/_colorsrc.py index 77cc7e7ee7..26c6e0a496 100644 --- a/plotly/validators/scatterpolargl/textfont/_colorsrc.py +++ b/plotly/validators/scatterpolargl/textfont/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/textfont/_family.py b/plotly/validators/scatterpolargl/textfont/_family.py index bd2fe4ffb3..4ef84c2ea6 100644 --- a/plotly/validators/scatterpolargl/textfont/_family.py +++ b/plotly/validators/scatterpolargl/textfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/scatterpolargl/textfont/_familysrc.py b/plotly/validators/scatterpolargl/textfont/_familysrc.py index 92e0eafd0c..6e63276ff4 100644 --- a/plotly/validators/scatterpolargl/textfont/_familysrc.py +++ b/plotly/validators/scatterpolargl/textfont/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/textfont/_size.py b/plotly/validators/scatterpolargl/textfont/_size.py index ee455937da..f3676f2960 100644 --- a/plotly/validators/scatterpolargl/textfont/_size.py +++ b/plotly/validators/scatterpolargl/textfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/scatterpolargl/textfont/_sizesrc.py b/plotly/validators/scatterpolargl/textfont/_sizesrc.py index ba2dcde9fe..1f7f00949d 100644 --- a/plotly/validators/scatterpolargl/textfont/_sizesrc.py +++ b/plotly/validators/scatterpolargl/textfont/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/textfont/_style.py b/plotly/validators/scatterpolargl/textfont/_style.py index bce0696560..5ca3b59d4d 100644 --- a/plotly/validators/scatterpolargl/textfont/_style.py +++ b/plotly/validators/scatterpolargl/textfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/scatterpolargl/textfont/_stylesrc.py b/plotly/validators/scatterpolargl/textfont/_stylesrc.py index 65266bbaf3..c575d187d0 100644 --- a/plotly/validators/scatterpolargl/textfont/_stylesrc.py +++ b/plotly/validators/scatterpolargl/textfont/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/textfont/_variant.py b/plotly/validators/scatterpolargl/textfont/_variant.py index 8c733f88fe..0962a357d9 100644 --- a/plotly/validators/scatterpolargl/textfont/_variant.py +++ b/plotly/validators/scatterpolargl/textfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "small-caps"]), diff --git a/plotly/validators/scatterpolargl/textfont/_variantsrc.py b/plotly/validators/scatterpolargl/textfont/_variantsrc.py index 758cf70e36..e6a99665e5 100644 --- a/plotly/validators/scatterpolargl/textfont/_variantsrc.py +++ b/plotly/validators/scatterpolargl/textfont/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/textfont/_weight.py b/plotly/validators/scatterpolargl/textfont/_weight.py index 31e017d920..f4b4e1ff08 100644 --- a/plotly/validators/scatterpolargl/textfont/_weight.py +++ b/plotly/validators/scatterpolargl/textfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "bold"]), diff --git a/plotly/validators/scatterpolargl/textfont/_weightsrc.py b/plotly/validators/scatterpolargl/textfont/_weightsrc.py index 30f16a76c0..a2f747e4ed 100644 --- a/plotly/validators/scatterpolargl/textfont/_weightsrc.py +++ b/plotly/validators/scatterpolargl/textfont/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/unselected/__init__.py b/plotly/validators/scatterpolargl/unselected/__init__.py index 3b0aeed383..9d2a313b83 100644 --- a/plotly/validators/scatterpolargl/unselected/__init__.py +++ b/plotly/validators/scatterpolargl/unselected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] +) diff --git a/plotly/validators/scatterpolargl/unselected/_marker.py b/plotly/validators/scatterpolargl/unselected/_marker.py index ccdb46067b..df739aaa88 100644 --- a/plotly/validators/scatterpolargl/unselected/_marker.py +++ b/plotly/validators/scatterpolargl/unselected/_marker.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterpolargl/unselected/_textfont.py b/plotly/validators/scatterpolargl/unselected/_textfont.py index cffe3868e6..0a7ab3c597 100644 --- a/plotly/validators/scatterpolargl/unselected/_textfont.py +++ b/plotly/validators/scatterpolargl/unselected/_textfont.py @@ -1,20 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterpolargl/unselected/marker/__init__.py b/plotly/validators/scatterpolargl/unselected/marker/__init__.py index 8c321a38bc..c9c7226fe4 100644 --- a/plotly/validators/scatterpolargl/unselected/marker/__init__.py +++ b/plotly/validators/scatterpolargl/unselected/marker/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._size.SizeValidator", "._opacity.OpacityValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/scatterpolargl/unselected/marker/_color.py b/plotly/validators/scatterpolargl/unselected/marker/_color.py index bd11226a27..d1b770ccf7 100644 --- a/plotly/validators/scatterpolargl/unselected/marker/_color.py +++ b/plotly/validators/scatterpolargl/unselected/marker/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterpolargl/unselected/marker/_opacity.py b/plotly/validators/scatterpolargl/unselected/marker/_opacity.py index b358ec3a63..0db3ec5fc2 100644 --- a/plotly/validators/scatterpolargl/unselected/marker/_opacity.py +++ b/plotly/validators/scatterpolargl/unselected/marker/_opacity.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatterpolargl/unselected/marker/_size.py b/plotly/validators/scatterpolargl/unselected/marker/_size.py index 0472b66629..0bdd37e316 100644 --- a/plotly/validators/scatterpolargl/unselected/marker/_size.py +++ b/plotly/validators/scatterpolargl/unselected/marker/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterpolargl/unselected/textfont/__init__.py b/plotly/validators/scatterpolargl/unselected/textfont/__init__.py index a9f087e5af..85a4cc9573 100644 --- a/plotly/validators/scatterpolargl/unselected/textfont/__init__.py +++ b/plotly/validators/scatterpolargl/unselected/textfont/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._color.ColorValidator"] +) diff --git a/plotly/validators/scatterpolargl/unselected/textfont/_color.py b/plotly/validators/scatterpolargl/unselected/textfont/_color.py index b0a96db510..a648e2d6e5 100644 --- a/plotly/validators/scatterpolargl/unselected/textfont/_color.py +++ b/plotly/validators/scatterpolargl/unselected/textfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattersmith/__init__.py b/plotly/validators/scattersmith/__init__.py index 4dc55c20dd..f9c038ac50 100644 --- a/plotly/validators/scattersmith/__init__.py +++ b/plotly/validators/scattersmith/__init__.py @@ -1,109 +1,57 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._visible import VisibleValidator - from ._unselected import UnselectedValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._texttemplatesrc import TexttemplatesrcValidator - from ._texttemplate import TexttemplateValidator - from ._textsrc import TextsrcValidator - from ._textpositionsrc import TextpositionsrcValidator - from ._textposition import TextpositionValidator - from ._textfont import TextfontValidator - from ._text import TextValidator - from ._subplot import SubplotValidator - from ._stream import StreamValidator - from ._showlegend import ShowlegendValidator - from ._selectedpoints import SelectedpointsValidator - from ._selected import SelectedValidator - from ._realsrc import RealsrcValidator - from ._real import RealValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - from ._mode import ModeValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._marker import MarkerValidator - from ._line import LineValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._imagsrc import ImagsrcValidator - from ._imag import ImagValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoveron import HoveronValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._fillcolor import FillcolorValidator - from ._fill import FillValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._connectgaps import ConnectgapsValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattersmith/_cliponaxis.py b/plotly/validators/scattersmith/_cliponaxis.py index e1f3d15c17..314cd713c7 100644 --- a/plotly/validators/scattersmith/_cliponaxis.py +++ b/plotly/validators/scattersmith/_cliponaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CliponaxisValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/scattersmith/_connectgaps.py b/plotly/validators/scattersmith/_connectgaps.py index b73157a5e4..f3e329c599 100644 --- a/plotly/validators/scattersmith/_connectgaps.py +++ b/plotly/validators/scattersmith/_connectgaps.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattersmith/_customdata.py b/plotly/validators/scattersmith/_customdata.py index 0f78b1b1e8..9d44ef03a0 100644 --- a/plotly/validators/scattersmith/_customdata.py +++ b/plotly/validators/scattersmith/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattersmith/_customdatasrc.py b/plotly/validators/scattersmith/_customdatasrc.py index e3926c00c4..ca9e566a18 100644 --- a/plotly/validators/scattersmith/_customdatasrc.py +++ b/plotly/validators/scattersmith/_customdatasrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/_fill.py b/plotly/validators/scattersmith/_fill.py index 609059e8cd..f3e595e8a5 100644 --- a/plotly/validators/scattersmith/_fill.py +++ b/plotly/validators/scattersmith/_fill.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["none", "toself", "tonext"]), **kwargs, diff --git a/plotly/validators/scattersmith/_fillcolor.py b/plotly/validators/scattersmith/_fillcolor.py index a89a150195..fe38270f1a 100644 --- a/plotly/validators/scattersmith/_fillcolor.py +++ b/plotly/validators/scattersmith/_fillcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattersmith/_hoverinfo.py b/plotly/validators/scattersmith/_hoverinfo.py index 4c3abd843a..603c3b7f3e 100644 --- a/plotly/validators/scattersmith/_hoverinfo.py +++ b/plotly/validators/scattersmith/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/scattersmith/_hoverinfosrc.py b/plotly/validators/scattersmith/_hoverinfosrc.py index 857c15a181..6664e68748 100644 --- a/plotly/validators/scattersmith/_hoverinfosrc.py +++ b/plotly/validators/scattersmith/_hoverinfosrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/_hoverlabel.py b/plotly/validators/scattersmith/_hoverlabel.py index 0c663a14e2..31b8d4ebb6 100644 --- a/plotly/validators/scattersmith/_hoverlabel.py +++ b/plotly/validators/scattersmith/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattersmith/_hoveron.py b/plotly/validators/scattersmith/_hoveron.py index c69f0afd6a..e78f5aea16 100644 --- a/plotly/validators/scattersmith/_hoveron.py +++ b/plotly/validators/scattersmith/_hoveron.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoveronValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), flags=kwargs.pop("flags", ["points", "fills"]), **kwargs, diff --git a/plotly/validators/scattersmith/_hovertemplate.py b/plotly/validators/scattersmith/_hovertemplate.py index 377f0eaccc..16c2c8202c 100644 --- a/plotly/validators/scattersmith/_hovertemplate.py +++ b/plotly/validators/scattersmith/_hovertemplate.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scattersmith/_hovertemplatesrc.py b/plotly/validators/scattersmith/_hovertemplatesrc.py index af772a16e0..e60adf953d 100644 --- a/plotly/validators/scattersmith/_hovertemplatesrc.py +++ b/plotly/validators/scattersmith/_hovertemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/_hovertext.py b/plotly/validators/scattersmith/_hovertext.py index 93e0099ed6..1951f5ced1 100644 --- a/plotly/validators/scattersmith/_hovertext.py +++ b/plotly/validators/scattersmith/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/scattersmith/_hovertextsrc.py b/plotly/validators/scattersmith/_hovertextsrc.py index 8961c104a7..8bf04986dc 100644 --- a/plotly/validators/scattersmith/_hovertextsrc.py +++ b/plotly/validators/scattersmith/_hovertextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/_ids.py b/plotly/validators/scattersmith/_ids.py index 7cddc08681..aba2895a71 100644 --- a/plotly/validators/scattersmith/_ids.py +++ b/plotly/validators/scattersmith/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattersmith/_idssrc.py b/plotly/validators/scattersmith/_idssrc.py index 7fb8e0fc0b..95f15eb1ad 100644 --- a/plotly/validators/scattersmith/_idssrc.py +++ b/plotly/validators/scattersmith/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/_imag.py b/plotly/validators/scattersmith/_imag.py index 4f01887bc4..6df0a2b3d3 100644 --- a/plotly/validators/scattersmith/_imag.py +++ b/plotly/validators/scattersmith/_imag.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ImagValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/scattersmith/_imagsrc.py b/plotly/validators/scattersmith/_imagsrc.py index ff13a3a5df..60f70f7852 100644 --- a/plotly/validators/scattersmith/_imagsrc.py +++ b/plotly/validators/scattersmith/_imagsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ImagsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/_legend.py b/plotly/validators/scattersmith/_legend.py index 23e1c4365a..d09bd78e92 100644 --- a/plotly/validators/scattersmith/_legend.py +++ b/plotly/validators/scattersmith/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/scattersmith/_legendgroup.py b/plotly/validators/scattersmith/_legendgroup.py index 368453d249..15502d6950 100644 --- a/plotly/validators/scattersmith/_legendgroup.py +++ b/plotly/validators/scattersmith/_legendgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattersmith/_legendgrouptitle.py b/plotly/validators/scattersmith/_legendgrouptitle.py index acb3420da3..ce1a4b6433 100644 --- a/plotly/validators/scattersmith/_legendgrouptitle.py +++ b/plotly/validators/scattersmith/_legendgrouptitle.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattersmith/_legendrank.py b/plotly/validators/scattersmith/_legendrank.py index 35a094d3c3..06f757dcf1 100644 --- a/plotly/validators/scattersmith/_legendrank.py +++ b/plotly/validators/scattersmith/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattersmith/_legendwidth.py b/plotly/validators/scattersmith/_legendwidth.py index e6e50f05b1..fffabe46c6 100644 --- a/plotly/validators/scattersmith/_legendwidth.py +++ b/plotly/validators/scattersmith/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattersmith/_line.py b/plotly/validators/scattersmith/_line.py index 4ac259e298..15468917e6 100644 --- a/plotly/validators/scattersmith/_line.py +++ b/plotly/validators/scattersmith/_line.py @@ -1,44 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattersmith/_marker.py b/plotly/validators/scattersmith/_marker.py index 6fa3369025..9c3a71e41f 100644 --- a/plotly/validators/scattersmith/_marker.py +++ b/plotly/validators/scattersmith/_marker.py @@ -1,165 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattersmith/_meta.py b/plotly/validators/scattersmith/_meta.py index 69af95441c..36990ffdc5 100644 --- a/plotly/validators/scattersmith/_meta.py +++ b/plotly/validators/scattersmith/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/scattersmith/_metasrc.py b/plotly/validators/scattersmith/_metasrc.py index 1959bb548a..26dd556ba4 100644 --- a/plotly/validators/scattersmith/_metasrc.py +++ b/plotly/validators/scattersmith/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/_mode.py b/plotly/validators/scattersmith/_mode.py index d0242190f1..778456d9d8 100644 --- a/plotly/validators/scattersmith/_mode.py +++ b/plotly/validators/scattersmith/_mode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["lines", "markers", "text"]), diff --git a/plotly/validators/scattersmith/_name.py b/plotly/validators/scattersmith/_name.py index 2e9beb640d..81fdbda248 100644 --- a/plotly/validators/scattersmith/_name.py +++ b/plotly/validators/scattersmith/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattersmith/_opacity.py b/plotly/validators/scattersmith/_opacity.py index 75b3f6ca83..f3f96db228 100644 --- a/plotly/validators/scattersmith/_opacity.py +++ b/plotly/validators/scattersmith/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattersmith/_real.py b/plotly/validators/scattersmith/_real.py index 4d4dec1ba0..ef8f097265 100644 --- a/plotly/validators/scattersmith/_real.py +++ b/plotly/validators/scattersmith/_real.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RealValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/scattersmith/_realsrc.py b/plotly/validators/scattersmith/_realsrc.py index edf6152eeb..49640b9428 100644 --- a/plotly/validators/scattersmith/_realsrc.py +++ b/plotly/validators/scattersmith/_realsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RealsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/_selected.py b/plotly/validators/scattersmith/_selected.py index 4a4a25f102..deaedc2a3b 100644 --- a/plotly/validators/scattersmith/_selected.py +++ b/plotly/validators/scattersmith/_selected.py @@ -1,23 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattersmith/_selectedpoints.py b/plotly/validators/scattersmith/_selectedpoints.py index 87215f1e39..67e52c3ff5 100644 --- a/plotly/validators/scattersmith/_selectedpoints.py +++ b/plotly/validators/scattersmith/_selectedpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattersmith/_showlegend.py b/plotly/validators/scattersmith/_showlegend.py index f9161861a4..c8ec897833 100644 --- a/plotly/validators/scattersmith/_showlegend.py +++ b/plotly/validators/scattersmith/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattersmith/_stream.py b/plotly/validators/scattersmith/_stream.py index a529130430..79b21ea9b1 100644 --- a/plotly/validators/scattersmith/_stream.py +++ b/plotly/validators/scattersmith/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattersmith/_subplot.py b/plotly/validators/scattersmith/_subplot.py index d75ef86441..661d2b3b33 100644 --- a/plotly/validators/scattersmith/_subplot.py +++ b/plotly/validators/scattersmith/_subplot.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SubplotValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "smith"), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattersmith/_text.py b/plotly/validators/scattersmith/_text.py index 101865d8e4..67ddd53386 100644 --- a/plotly/validators/scattersmith/_text.py +++ b/plotly/validators/scattersmith/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattersmith/_textfont.py b/plotly/validators/scattersmith/_textfont.py index 3ea78a2a41..468f0c52c0 100644 --- a/plotly/validators/scattersmith/_textfont.py +++ b/plotly/validators/scattersmith/_textfont.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/scattersmith/_textposition.py b/plotly/validators/scattersmith/_textposition.py index 3a190a31ba..2f6363e088 100644 --- a/plotly/validators/scattersmith/_textposition.py +++ b/plotly/validators/scattersmith/_textposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( diff --git a/plotly/validators/scattersmith/_textpositionsrc.py b/plotly/validators/scattersmith/_textpositionsrc.py index 4af940dae9..8de3479b4d 100644 --- a/plotly/validators/scattersmith/_textpositionsrc.py +++ b/plotly/validators/scattersmith/_textpositionsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/_textsrc.py b/plotly/validators/scattersmith/_textsrc.py index 2ce9eacdff..5b420ff4ed 100644 --- a/plotly/validators/scattersmith/_textsrc.py +++ b/plotly/validators/scattersmith/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/_texttemplate.py b/plotly/validators/scattersmith/_texttemplate.py index 505facac7c..88d8824df1 100644 --- a/plotly/validators/scattersmith/_texttemplate.py +++ b/plotly/validators/scattersmith/_texttemplate.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/scattersmith/_texttemplatesrc.py b/plotly/validators/scattersmith/_texttemplatesrc.py index 441d2c7b84..528333f204 100644 --- a/plotly/validators/scattersmith/_texttemplatesrc.py +++ b/plotly/validators/scattersmith/_texttemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/_uid.py b/plotly/validators/scattersmith/_uid.py index acc3461579..1bcce044b3 100644 --- a/plotly/validators/scattersmith/_uid.py +++ b/plotly/validators/scattersmith/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/scattersmith/_uirevision.py b/plotly/validators/scattersmith/_uirevision.py index 3d601797ca..65a130bb7f 100644 --- a/plotly/validators/scattersmith/_uirevision.py +++ b/plotly/validators/scattersmith/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/_unselected.py b/plotly/validators/scattersmith/_unselected.py index 6d231af560..3b4eaf528a 100644 --- a/plotly/validators/scattersmith/_unselected.py +++ b/plotly/validators/scattersmith/_unselected.py @@ -1,23 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattersmith/_visible.py b/plotly/validators/scattersmith/_visible.py index 792e773077..54e497c6d0 100644 --- a/plotly/validators/scattersmith/_visible.py +++ b/plotly/validators/scattersmith/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/scattersmith/hoverlabel/__init__.py b/plotly/validators/scattersmith/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/scattersmith/hoverlabel/__init__.py +++ b/plotly/validators/scattersmith/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/scattersmith/hoverlabel/_align.py b/plotly/validators/scattersmith/hoverlabel/_align.py index c816e1bbdc..60ddd950f1 100644 --- a/plotly/validators/scattersmith/hoverlabel/_align.py +++ b/plotly/validators/scattersmith/hoverlabel/_align.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/scattersmith/hoverlabel/_alignsrc.py b/plotly/validators/scattersmith/hoverlabel/_alignsrc.py index d78a97a65a..9db37e0275 100644 --- a/plotly/validators/scattersmith/hoverlabel/_alignsrc.py +++ b/plotly/validators/scattersmith/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/hoverlabel/_bgcolor.py b/plotly/validators/scattersmith/hoverlabel/_bgcolor.py index d829b8e005..e801731837 100644 --- a/plotly/validators/scattersmith/hoverlabel/_bgcolor.py +++ b/plotly/validators/scattersmith/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scattersmith/hoverlabel/_bgcolorsrc.py b/plotly/validators/scattersmith/hoverlabel/_bgcolorsrc.py index b39d86edb6..d3b74bafb1 100644 --- a/plotly/validators/scattersmith/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/scattersmith/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/hoverlabel/_bordercolor.py b/plotly/validators/scattersmith/hoverlabel/_bordercolor.py index 5615f4299d..8ef20fada8 100644 --- a/plotly/validators/scattersmith/hoverlabel/_bordercolor.py +++ b/plotly/validators/scattersmith/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scattersmith/hoverlabel/_bordercolorsrc.py b/plotly/validators/scattersmith/hoverlabel/_bordercolorsrc.py index 0555f319ad..e125e72969 100644 --- a/plotly/validators/scattersmith/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/scattersmith/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/hoverlabel/_font.py b/plotly/validators/scattersmith/hoverlabel/_font.py index 1e45cbc488..4c122bef82 100644 --- a/plotly/validators/scattersmith/hoverlabel/_font.py +++ b/plotly/validators/scattersmith/hoverlabel/_font.py @@ -1,87 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/scattersmith/hoverlabel/_namelength.py b/plotly/validators/scattersmith/hoverlabel/_namelength.py index a933008bfd..911343a89a 100644 --- a/plotly/validators/scattersmith/hoverlabel/_namelength.py +++ b/plotly/validators/scattersmith/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/scattersmith/hoverlabel/_namelengthsrc.py b/plotly/validators/scattersmith/hoverlabel/_namelengthsrc.py index 1f25c113d6..65d4452574 100644 --- a/plotly/validators/scattersmith/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/scattersmith/hoverlabel/_namelengthsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/hoverlabel/font/__init__.py b/plotly/validators/scattersmith/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/scattersmith/hoverlabel/font/__init__.py +++ b/plotly/validators/scattersmith/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattersmith/hoverlabel/font/_color.py b/plotly/validators/scattersmith/hoverlabel/font/_color.py index de5895dfa7..32c85c6faf 100644 --- a/plotly/validators/scattersmith/hoverlabel/font/_color.py +++ b/plotly/validators/scattersmith/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scattersmith/hoverlabel/font/_colorsrc.py b/plotly/validators/scattersmith/hoverlabel/font/_colorsrc.py index a8b8649ede..a1faba6a8b 100644 --- a/plotly/validators/scattersmith/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/scattersmith/hoverlabel/font/_colorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/hoverlabel/font/_family.py b/plotly/validators/scattersmith/hoverlabel/font/_family.py index c38bffb551..0d99d75970 100644 --- a/plotly/validators/scattersmith/hoverlabel/font/_family.py +++ b/plotly/validators/scattersmith/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/scattersmith/hoverlabel/font/_familysrc.py b/plotly/validators/scattersmith/hoverlabel/font/_familysrc.py index abdcd983bc..0ce0e5777c 100644 --- a/plotly/validators/scattersmith/hoverlabel/font/_familysrc.py +++ b/plotly/validators/scattersmith/hoverlabel/font/_familysrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/hoverlabel/font/_lineposition.py b/plotly/validators/scattersmith/hoverlabel/font/_lineposition.py index 54283c721f..f9b814db3d 100644 --- a/plotly/validators/scattersmith/hoverlabel/font/_lineposition.py +++ b/plotly/validators/scattersmith/hoverlabel/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/scattersmith/hoverlabel/font/_linepositionsrc.py b/plotly/validators/scattersmith/hoverlabel/font/_linepositionsrc.py index c7726cf612..d8582e4e84 100644 --- a/plotly/validators/scattersmith/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/scattersmith/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/hoverlabel/font/_shadow.py b/plotly/validators/scattersmith/hoverlabel/font/_shadow.py index 292189be9f..3ab7eb1efa 100644 --- a/plotly/validators/scattersmith/hoverlabel/font/_shadow.py +++ b/plotly/validators/scattersmith/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scattersmith/hoverlabel/font/_shadowsrc.py b/plotly/validators/scattersmith/hoverlabel/font/_shadowsrc.py index 986d7e6af2..a3cc11cee5 100644 --- a/plotly/validators/scattersmith/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/scattersmith/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/hoverlabel/font/_size.py b/plotly/validators/scattersmith/hoverlabel/font/_size.py index e350b7832a..8840ed1346 100644 --- a/plotly/validators/scattersmith/hoverlabel/font/_size.py +++ b/plotly/validators/scattersmith/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/scattersmith/hoverlabel/font/_sizesrc.py b/plotly/validators/scattersmith/hoverlabel/font/_sizesrc.py index 560d9da402..9a5d5908f0 100644 --- a/plotly/validators/scattersmith/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/scattersmith/hoverlabel/font/_sizesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/hoverlabel/font/_style.py b/plotly/validators/scattersmith/hoverlabel/font/_style.py index 978488a471..807f067ad5 100644 --- a/plotly/validators/scattersmith/hoverlabel/font/_style.py +++ b/plotly/validators/scattersmith/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/scattersmith/hoverlabel/font/_stylesrc.py b/plotly/validators/scattersmith/hoverlabel/font/_stylesrc.py index 8a5d3c08a3..5d84d23519 100644 --- a/plotly/validators/scattersmith/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/scattersmith/hoverlabel/font/_stylesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/hoverlabel/font/_textcase.py b/plotly/validators/scattersmith/hoverlabel/font/_textcase.py index c07a37534b..2148dc0758 100644 --- a/plotly/validators/scattersmith/hoverlabel/font/_textcase.py +++ b/plotly/validators/scattersmith/hoverlabel/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/scattersmith/hoverlabel/font/_textcasesrc.py b/plotly/validators/scattersmith/hoverlabel/font/_textcasesrc.py index 0648f02539..07adbbf25e 100644 --- a/plotly/validators/scattersmith/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/scattersmith/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/hoverlabel/font/_variant.py b/plotly/validators/scattersmith/hoverlabel/font/_variant.py index 783754f12e..6ffb46750e 100644 --- a/plotly/validators/scattersmith/hoverlabel/font/_variant.py +++ b/plotly/validators/scattersmith/hoverlabel/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/scattersmith/hoverlabel/font/_variantsrc.py b/plotly/validators/scattersmith/hoverlabel/font/_variantsrc.py index 2942701498..f25bd3e073 100644 --- a/plotly/validators/scattersmith/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/scattersmith/hoverlabel/font/_variantsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/hoverlabel/font/_weight.py b/plotly/validators/scattersmith/hoverlabel/font/_weight.py index 016c16ebcd..f840b2e85b 100644 --- a/plotly/validators/scattersmith/hoverlabel/font/_weight.py +++ b/plotly/validators/scattersmith/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/scattersmith/hoverlabel/font/_weightsrc.py b/plotly/validators/scattersmith/hoverlabel/font/_weightsrc.py index b26c491087..160fb3ddea 100644 --- a/plotly/validators/scattersmith/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/scattersmith/hoverlabel/font/_weightsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/legendgrouptitle/__init__.py b/plotly/validators/scattersmith/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/scattersmith/legendgrouptitle/__init__.py +++ b/plotly/validators/scattersmith/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/scattersmith/legendgrouptitle/_font.py b/plotly/validators/scattersmith/legendgrouptitle/_font.py index 824eae5c3a..7416b35969 100644 --- a/plotly/validators/scattersmith/legendgrouptitle/_font.py +++ b/plotly/validators/scattersmith/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/scattersmith/legendgrouptitle/_text.py b/plotly/validators/scattersmith/legendgrouptitle/_text.py index 158418b540..1ca2424481 100644 --- a/plotly/validators/scattersmith/legendgrouptitle/_text.py +++ b/plotly/validators/scattersmith/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattersmith/legendgrouptitle/font/__init__.py b/plotly/validators/scattersmith/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/scattersmith/legendgrouptitle/font/__init__.py +++ b/plotly/validators/scattersmith/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scattersmith/legendgrouptitle/font/_color.py b/plotly/validators/scattersmith/legendgrouptitle/font/_color.py index 248a6fe93c..08a79aba6f 100644 --- a/plotly/validators/scattersmith/legendgrouptitle/font/_color.py +++ b/plotly/validators/scattersmith/legendgrouptitle/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattersmith/legendgrouptitle/font/_family.py b/plotly/validators/scattersmith/legendgrouptitle/font/_family.py index 7de5f0d3d0..b31db7cd10 100644 --- a/plotly/validators/scattersmith/legendgrouptitle/font/_family.py +++ b/plotly/validators/scattersmith/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scattersmith/legendgrouptitle/font/_lineposition.py b/plotly/validators/scattersmith/legendgrouptitle/font/_lineposition.py index 42faaf7b5e..2d7baf0201 100644 --- a/plotly/validators/scattersmith/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/scattersmith/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/scattersmith/legendgrouptitle/font/_shadow.py b/plotly/validators/scattersmith/legendgrouptitle/font/_shadow.py index fd5f34688c..f3b8530356 100644 --- a/plotly/validators/scattersmith/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/scattersmith/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattersmith/legendgrouptitle/font/_size.py b/plotly/validators/scattersmith/legendgrouptitle/font/_size.py index ef8f19c0ec..f74979ff86 100644 --- a/plotly/validators/scattersmith/legendgrouptitle/font/_size.py +++ b/plotly/validators/scattersmith/legendgrouptitle/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scattersmith/legendgrouptitle/font/_style.py b/plotly/validators/scattersmith/legendgrouptitle/font/_style.py index 06276d843e..ee837ca1f0 100644 --- a/plotly/validators/scattersmith/legendgrouptitle/font/_style.py +++ b/plotly/validators/scattersmith/legendgrouptitle/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scattersmith/legendgrouptitle/font/_textcase.py b/plotly/validators/scattersmith/legendgrouptitle/font/_textcase.py index b4da3c7b4e..30d4b1692a 100644 --- a/plotly/validators/scattersmith/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/scattersmith/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/scattersmith/legendgrouptitle/font/_variant.py b/plotly/validators/scattersmith/legendgrouptitle/font/_variant.py index 833670afbe..2ef13bd5ca 100644 --- a/plotly/validators/scattersmith/legendgrouptitle/font/_variant.py +++ b/plotly/validators/scattersmith/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/scattersmith/legendgrouptitle/font/_weight.py b/plotly/validators/scattersmith/legendgrouptitle/font/_weight.py index 5ebd3526ba..1b4f707765 100644 --- a/plotly/validators/scattersmith/legendgrouptitle/font/_weight.py +++ b/plotly/validators/scattersmith/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scattersmith/line/__init__.py b/plotly/validators/scattersmith/line/__init__.py index 7045562597..d9c0ff9500 100644 --- a/plotly/validators/scattersmith/line/__init__.py +++ b/plotly/validators/scattersmith/line/__init__.py @@ -1,27 +1,16 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._width import WidthValidator - from ._smoothing import SmoothingValidator - from ._shape import ShapeValidator - from ._dash import DashValidator - from ._color import ColorValidator - from ._backoffsrc import BackoffsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._width.WidthValidator", + "._smoothing.SmoothingValidator", + "._shape.ShapeValidator", + "._dash.DashValidator", + "._color.ColorValidator", + "._backoffsrc.BackoffsrcValidator", + "._backoff.BackoffValidator", + ], +) diff --git a/plotly/validators/scattersmith/line/_backoff.py b/plotly/validators/scattersmith/line/_backoff.py index 80bb93c76d..d4273156cb 100644 --- a/plotly/validators/scattersmith/line/_backoff.py +++ b/plotly/validators/scattersmith/line/_backoff.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BackoffValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattersmith/line/_backoffsrc.py b/plotly/validators/scattersmith/line/_backoffsrc.py index 3eeac2b69b..367d7cecda 100644 --- a/plotly/validators/scattersmith/line/_backoffsrc.py +++ b/plotly/validators/scattersmith/line/_backoffsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BackoffsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/line/_color.py b/plotly/validators/scattersmith/line/_color.py index 608f717d51..b602850a6d 100644 --- a/plotly/validators/scattersmith/line/_color.py +++ b/plotly/validators/scattersmith/line/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattersmith/line/_dash.py b/plotly/validators/scattersmith/line/_dash.py index d6a30b773e..53090751de 100644 --- a/plotly/validators/scattersmith/line/_dash.py +++ b/plotly/validators/scattersmith/line/_dash.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/scattersmith/line/_shape.py b/plotly/validators/scattersmith/line/_shape.py index 1a2d2b2e81..82f50ed066 100644 --- a/plotly/validators/scattersmith/line/_shape.py +++ b/plotly/validators/scattersmith/line/_shape.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["linear", "spline"]), **kwargs, diff --git a/plotly/validators/scattersmith/line/_smoothing.py b/plotly/validators/scattersmith/line/_smoothing.py index 99d35fb842..a23f501947 100644 --- a/plotly/validators/scattersmith/line/_smoothing.py +++ b/plotly/validators/scattersmith/line/_smoothing.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SmoothingValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), max=kwargs.pop("max", 1.3), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattersmith/line/_width.py b/plotly/validators/scattersmith/line/_width.py index 901c20ec9c..df241ca849 100644 --- a/plotly/validators/scattersmith/line/_width.py +++ b/plotly/validators/scattersmith/line/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattersmith/marker/__init__.py b/plotly/validators/scattersmith/marker/__init__.py index 8434e73e3f..fea9868a7b 100644 --- a/plotly/validators/scattersmith/marker/__init__.py +++ b/plotly/validators/scattersmith/marker/__init__.py @@ -1,71 +1,38 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._symbolsrc import SymbolsrcValidator - from ._symbol import SymbolValidator - from ._standoffsrc import StandoffsrcValidator - from ._standoff import StandoffValidator - from ._sizesrc import SizesrcValidator - from ._sizeref import SizerefValidator - from ._sizemode import SizemodeValidator - from ._sizemin import SizeminValidator - from ._size import SizeValidator - from ._showscale import ShowscaleValidator - from ._reversescale import ReversescaleValidator - from ._opacitysrc import OpacitysrcValidator - from ._opacity import OpacityValidator - from ._maxdisplayed import MaxdisplayedValidator - from ._line import LineValidator - from ._gradient import GradientValidator - from ._colorsrc import ColorsrcValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._color import ColorValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - from ._autocolorscale import AutocolorscaleValidator - from ._anglesrc import AnglesrcValidator - from ._angleref import AnglerefValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattersmith/marker/_angle.py b/plotly/validators/scattersmith/marker/_angle.py index 03f5a3bd3e..567ada407e 100644 --- a/plotly/validators/scattersmith/marker/_angle.py +++ b/plotly/validators/scattersmith/marker/_angle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AngleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/scattersmith/marker/_angleref.py b/plotly/validators/scattersmith/marker/_angleref.py index f860dbd62b..656ecf9647 100644 --- a/plotly/validators/scattersmith/marker/_angleref.py +++ b/plotly/validators/scattersmith/marker/_angleref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AnglerefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["previous", "up"]), **kwargs, diff --git a/plotly/validators/scattersmith/marker/_anglesrc.py b/plotly/validators/scattersmith/marker/_anglesrc.py index da1b87b65d..068a9a2678 100644 --- a/plotly/validators/scattersmith/marker/_anglesrc.py +++ b/plotly/validators/scattersmith/marker/_anglesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AnglesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/_autocolorscale.py b/plotly/validators/scattersmith/marker/_autocolorscale.py index b98f7fee0e..9dca2b94a2 100644 --- a/plotly/validators/scattersmith/marker/_autocolorscale.py +++ b/plotly/validators/scattersmith/marker/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scattersmith/marker/_cauto.py b/plotly/validators/scattersmith/marker/_cauto.py index 71e550817e..d633684fb3 100644 --- a/plotly/validators/scattersmith/marker/_cauto.py +++ b/plotly/validators/scattersmith/marker/_cauto.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scattersmith/marker/_cmax.py b/plotly/validators/scattersmith/marker/_cmax.py index 04dd676a54..9653bdb74c 100644 --- a/plotly/validators/scattersmith/marker/_cmax.py +++ b/plotly/validators/scattersmith/marker/_cmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scattersmith/marker/_cmid.py b/plotly/validators/scattersmith/marker/_cmid.py index 563c1684ec..49e7702bb8 100644 --- a/plotly/validators/scattersmith/marker/_cmid.py +++ b/plotly/validators/scattersmith/marker/_cmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scattersmith/marker/_cmin.py b/plotly/validators/scattersmith/marker/_cmin.py index 32dab28d9e..0c8f59911d 100644 --- a/plotly/validators/scattersmith/marker/_cmin.py +++ b/plotly/validators/scattersmith/marker/_cmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scattersmith/marker/_color.py b/plotly/validators/scattersmith/marker/_color.py index 20ac696935..aa150acc5b 100644 --- a/plotly/validators/scattersmith/marker/_color.py +++ b/plotly/validators/scattersmith/marker/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), colorscale_path=kwargs.pop( diff --git a/plotly/validators/scattersmith/marker/_coloraxis.py b/plotly/validators/scattersmith/marker/_coloraxis.py index f22d9a18d6..0e10c3746c 100644 --- a/plotly/validators/scattersmith/marker/_coloraxis.py +++ b/plotly/validators/scattersmith/marker/_coloraxis.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/scattersmith/marker/_colorbar.py b/plotly/validators/scattersmith/marker/_colorbar.py index 39b75606ac..dbcf384cde 100644 --- a/plotly/validators/scattersmith/marker/_colorbar.py +++ b/plotly/validators/scattersmith/marker/_colorbar.py @@ -1,281 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattersmith/marker/_colorscale.py b/plotly/validators/scattersmith/marker/_colorscale.py index c1f09c60d4..968be72c5a 100644 --- a/plotly/validators/scattersmith/marker/_colorscale.py +++ b/plotly/validators/scattersmith/marker/_colorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/scattersmith/marker/_colorsrc.py b/plotly/validators/scattersmith/marker/_colorsrc.py index 1d2e5dccad..0870173f06 100644 --- a/plotly/validators/scattersmith/marker/_colorsrc.py +++ b/plotly/validators/scattersmith/marker/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/_gradient.py b/plotly/validators/scattersmith/marker/_gradient.py index 122adba5f9..9bcdd481a1 100644 --- a/plotly/validators/scattersmith/marker/_gradient.py +++ b/plotly/validators/scattersmith/marker/_gradient.py @@ -1,30 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GradientValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattersmith/marker/_line.py b/plotly/validators/scattersmith/marker/_line.py index 772a824d57..a3b9d58372 100644 --- a/plotly/validators/scattersmith/marker/_line.py +++ b/plotly/validators/scattersmith/marker/_line.py @@ -1,104 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattersmith/marker/_maxdisplayed.py b/plotly/validators/scattersmith/marker/_maxdisplayed.py index 30d6f881c7..09658e0818 100644 --- a/plotly/validators/scattersmith/marker/_maxdisplayed.py +++ b/plotly/validators/scattersmith/marker/_maxdisplayed.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxdisplayedValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattersmith/marker/_opacity.py b/plotly/validators/scattersmith/marker/_opacity.py index 7281ca07f9..741abdfba2 100644 --- a/plotly/validators/scattersmith/marker/_opacity.py +++ b/plotly/validators/scattersmith/marker/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), diff --git a/plotly/validators/scattersmith/marker/_opacitysrc.py b/plotly/validators/scattersmith/marker/_opacitysrc.py index f5517b3906..25693cb204 100644 --- a/plotly/validators/scattersmith/marker/_opacitysrc.py +++ b/plotly/validators/scattersmith/marker/_opacitysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/_reversescale.py b/plotly/validators/scattersmith/marker/_reversescale.py index 35d280ff2a..8dcec1d57e 100644 --- a/plotly/validators/scattersmith/marker/_reversescale.py +++ b/plotly/validators/scattersmith/marker/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/_showscale.py b/plotly/validators/scattersmith/marker/_showscale.py index 68444e55d5..7d5b27070e 100644 --- a/plotly/validators/scattersmith/marker/_showscale.py +++ b/plotly/validators/scattersmith/marker/_showscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/_size.py b/plotly/validators/scattersmith/marker/_size.py index 551e243250..bdee756cbc 100644 --- a/plotly/validators/scattersmith/marker/_size.py +++ b/plotly/validators/scattersmith/marker/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattersmith/marker/_sizemin.py b/plotly/validators/scattersmith/marker/_sizemin.py index 048b084947..9ac735aa9b 100644 --- a/plotly/validators/scattersmith/marker/_sizemin.py +++ b/plotly/validators/scattersmith/marker/_sizemin.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattersmith/marker/_sizemode.py b/plotly/validators/scattersmith/marker/_sizemode.py index f0541aefc8..7fa96a241c 100644 --- a/plotly/validators/scattersmith/marker/_sizemode.py +++ b/plotly/validators/scattersmith/marker/_sizemode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["diameter", "area"]), **kwargs, diff --git a/plotly/validators/scattersmith/marker/_sizeref.py b/plotly/validators/scattersmith/marker/_sizeref.py index 0aaae965f1..5c51f717a4 100644 --- a/plotly/validators/scattersmith/marker/_sizeref.py +++ b/plotly/validators/scattersmith/marker/_sizeref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/_sizesrc.py b/plotly/validators/scattersmith/marker/_sizesrc.py index a3fea8401e..7a1fe52adb 100644 --- a/plotly/validators/scattersmith/marker/_sizesrc.py +++ b/plotly/validators/scattersmith/marker/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/_standoff.py b/plotly/validators/scattersmith/marker/_standoff.py index 3ca231c608..17dfa233e6 100644 --- a/plotly/validators/scattersmith/marker/_standoff.py +++ b/plotly/validators/scattersmith/marker/_standoff.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StandoffValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattersmith/marker/_standoffsrc.py b/plotly/validators/scattersmith/marker/_standoffsrc.py index 9ed78205d1..849ee2ed18 100644 --- a/plotly/validators/scattersmith/marker/_standoffsrc.py +++ b/plotly/validators/scattersmith/marker/_standoffsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StandoffsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/_symbol.py b/plotly/validators/scattersmith/marker/_symbol.py index 4f599db26f..b3d7fae10d 100644 --- a/plotly/validators/scattersmith/marker/_symbol.py +++ b/plotly/validators/scattersmith/marker/_symbol.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( diff --git a/plotly/validators/scattersmith/marker/_symbolsrc.py b/plotly/validators/scattersmith/marker/_symbolsrc.py index 094f0fea2d..5c4451daab 100644 --- a/plotly/validators/scattersmith/marker/_symbolsrc.py +++ b/plotly/validators/scattersmith/marker/_symbolsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/colorbar/__init__.py b/plotly/validators/scattersmith/marker/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/scattersmith/marker/colorbar/__init__.py +++ b/plotly/validators/scattersmith/marker/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattersmith/marker/colorbar/_bgcolor.py b/plotly/validators/scattersmith/marker/colorbar/_bgcolor.py index ab36a8044b..0edf96c909 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_bgcolor.py +++ b/plotly/validators/scattersmith/marker/colorbar/_bgcolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/colorbar/_bordercolor.py b/plotly/validators/scattersmith/marker/colorbar/_bordercolor.py index c632d9f239..74e29c54e9 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_bordercolor.py +++ b/plotly/validators/scattersmith/marker/colorbar/_bordercolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/colorbar/_borderwidth.py b/plotly/validators/scattersmith/marker/colorbar/_borderwidth.py index d9dc13fa68..4bc9ee6c2f 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_borderwidth.py +++ b/plotly/validators/scattersmith/marker/colorbar/_borderwidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattersmith/marker/colorbar/_dtick.py b/plotly/validators/scattersmith/marker/colorbar/_dtick.py index 49db1612ea..1daa206d70 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_dtick.py +++ b/plotly/validators/scattersmith/marker/colorbar/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/scattersmith/marker/colorbar/_exponentformat.py b/plotly/validators/scattersmith/marker/colorbar/_exponentformat.py index db5fd9e2dc..b5226cb3c8 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_exponentformat.py +++ b/plotly/validators/scattersmith/marker/colorbar/_exponentformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/scattersmith/marker/colorbar/_labelalias.py b/plotly/validators/scattersmith/marker/colorbar/_labelalias.py index 5fbf64a51b..5d3eba1740 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_labelalias.py +++ b/plotly/validators/scattersmith/marker/colorbar/_labelalias.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/colorbar/_len.py b/plotly/validators/scattersmith/marker/colorbar/_len.py index 0574dc243d..b743ae98c5 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_len.py +++ b/plotly/validators/scattersmith/marker/colorbar/_len.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattersmith/marker/colorbar/_lenmode.py b/plotly/validators/scattersmith/marker/colorbar/_lenmode.py index 8dcc4e35e7..95a8a7e8ac 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_lenmode.py +++ b/plotly/validators/scattersmith/marker/colorbar/_lenmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/scattersmith/marker/colorbar/_minexponent.py b/plotly/validators/scattersmith/marker/colorbar/_minexponent.py index 7bdc5373e4..56c6f0fcf1 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_minexponent.py +++ b/plotly/validators/scattersmith/marker/colorbar/_minexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattersmith/marker/colorbar/_nticks.py b/plotly/validators/scattersmith/marker/colorbar/_nticks.py index 175fc2b250..c344dbbddb 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_nticks.py +++ b/plotly/validators/scattersmith/marker/colorbar/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattersmith/marker/colorbar/_orientation.py b/plotly/validators/scattersmith/marker/colorbar/_orientation.py index fc84f94c07..14f3a4b338 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_orientation.py +++ b/plotly/validators/scattersmith/marker/colorbar/_orientation.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/scattersmith/marker/colorbar/_outlinecolor.py b/plotly/validators/scattersmith/marker/colorbar/_outlinecolor.py index a1686cdc4d..36bd2ce1a1 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_outlinecolor.py +++ b/plotly/validators/scattersmith/marker/colorbar/_outlinecolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/colorbar/_outlinewidth.py b/plotly/validators/scattersmith/marker/colorbar/_outlinewidth.py index 7acae47316..a1a8513fb8 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_outlinewidth.py +++ b/plotly/validators/scattersmith/marker/colorbar/_outlinewidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattersmith/marker/colorbar/_separatethousands.py b/plotly/validators/scattersmith/marker/colorbar/_separatethousands.py index 81fffcc428..e0eb515979 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_separatethousands.py +++ b/plotly/validators/scattersmith/marker/colorbar/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/colorbar/_showexponent.py b/plotly/validators/scattersmith/marker/colorbar/_showexponent.py index 6863443ac7..29274ecfa3 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_showexponent.py +++ b/plotly/validators/scattersmith/marker/colorbar/_showexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scattersmith/marker/colorbar/_showticklabels.py b/plotly/validators/scattersmith/marker/colorbar/_showticklabels.py index 19d00ff714..b78785adeb 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_showticklabels.py +++ b/plotly/validators/scattersmith/marker/colorbar/_showticklabels.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/colorbar/_showtickprefix.py b/plotly/validators/scattersmith/marker/colorbar/_showtickprefix.py index b8cf6f7590..eb55486c59 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_showtickprefix.py +++ b/plotly/validators/scattersmith/marker/colorbar/_showtickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scattersmith/marker/colorbar/_showticksuffix.py b/plotly/validators/scattersmith/marker/colorbar/_showticksuffix.py index a32b9875c7..05aa2c58cd 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_showticksuffix.py +++ b/plotly/validators/scattersmith/marker/colorbar/_showticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scattersmith/marker/colorbar/_thickness.py b/plotly/validators/scattersmith/marker/colorbar/_thickness.py index 6442b0b563..51440a9e7f 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_thickness.py +++ b/plotly/validators/scattersmith/marker/colorbar/_thickness.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattersmith/marker/colorbar/_thicknessmode.py b/plotly/validators/scattersmith/marker/colorbar/_thicknessmode.py index 71ff988c68..1145a378c9 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_thicknessmode.py +++ b/plotly/validators/scattersmith/marker/colorbar/_thicknessmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/scattersmith/marker/colorbar/_tick0.py b/plotly/validators/scattersmith/marker/colorbar/_tick0.py index 297687f4fe..ecdcab5dd7 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_tick0.py +++ b/plotly/validators/scattersmith/marker/colorbar/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/scattersmith/marker/colorbar/_tickangle.py b/plotly/validators/scattersmith/marker/colorbar/_tickangle.py index b1eab89fc9..e990fa8d0c 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_tickangle.py +++ b/plotly/validators/scattersmith/marker/colorbar/_tickangle.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/colorbar/_tickcolor.py b/plotly/validators/scattersmith/marker/colorbar/_tickcolor.py index 79f0e32888..c4d473cca3 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_tickcolor.py +++ b/plotly/validators/scattersmith/marker/colorbar/_tickcolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/colorbar/_tickfont.py b/plotly/validators/scattersmith/marker/colorbar/_tickfont.py index d3353310a5..7bddcfa385 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_tickfont.py +++ b/plotly/validators/scattersmith/marker/colorbar/_tickfont.py @@ -1,63 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/scattersmith/marker/colorbar/_tickformat.py b/plotly/validators/scattersmith/marker/colorbar/_tickformat.py index 657f9d04db..afd6292e39 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_tickformat.py +++ b/plotly/validators/scattersmith/marker/colorbar/_tickformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/colorbar/_tickformatstopdefaults.py b/plotly/validators/scattersmith/marker/colorbar/_tickformatstopdefaults.py index dffb72f1dd..5e875e3e13 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/scattersmith/marker/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/scattersmith/marker/colorbar/_tickformatstops.py b/plotly/validators/scattersmith/marker/colorbar/_tickformatstops.py index 3c83565dd9..7f80982378 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_tickformatstops.py +++ b/plotly/validators/scattersmith/marker/colorbar/_tickformatstops.py @@ -1,53 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattersmith/marker/colorbar/_ticklabeloverflow.py b/plotly/validators/scattersmith/marker/colorbar/_ticklabeloverflow.py index 966dd3da04..36e1d4c955 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/scattersmith/marker/colorbar/_ticklabeloverflow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/scattersmith/marker/colorbar/_ticklabelposition.py b/plotly/validators/scattersmith/marker/colorbar/_ticklabelposition.py index 8e97431ecf..bdf6e02785 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_ticklabelposition.py +++ b/plotly/validators/scattersmith/marker/colorbar/_ticklabelposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/scattersmith/marker/colorbar/_ticklabelstep.py b/plotly/validators/scattersmith/marker/colorbar/_ticklabelstep.py index d8dd166e5a..e960c00707 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_ticklabelstep.py +++ b/plotly/validators/scattersmith/marker/colorbar/_ticklabelstep.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scattersmith/marker/colorbar/_ticklen.py b/plotly/validators/scattersmith/marker/colorbar/_ticklen.py index 6104f526a7..2e48f1b7c9 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_ticklen.py +++ b/plotly/validators/scattersmith/marker/colorbar/_ticklen.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattersmith/marker/colorbar/_tickmode.py b/plotly/validators/scattersmith/marker/colorbar/_tickmode.py index 314d1f836b..9a4bc11bf4 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_tickmode.py +++ b/plotly/validators/scattersmith/marker/colorbar/_tickmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/scattersmith/marker/colorbar/_tickprefix.py b/plotly/validators/scattersmith/marker/colorbar/_tickprefix.py index be28f50f45..b03942c6b0 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_tickprefix.py +++ b/plotly/validators/scattersmith/marker/colorbar/_tickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/colorbar/_ticks.py b/plotly/validators/scattersmith/marker/colorbar/_ticks.py index 60218951b9..f863b282db 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_ticks.py +++ b/plotly/validators/scattersmith/marker/colorbar/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/scattersmith/marker/colorbar/_ticksuffix.py b/plotly/validators/scattersmith/marker/colorbar/_ticksuffix.py index c26cc46b77..880327b385 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_ticksuffix.py +++ b/plotly/validators/scattersmith/marker/colorbar/_ticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/colorbar/_ticktext.py b/plotly/validators/scattersmith/marker/colorbar/_ticktext.py index 558de2f8a0..8af34d3e03 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_ticktext.py +++ b/plotly/validators/scattersmith/marker/colorbar/_ticktext.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/colorbar/_ticktextsrc.py b/plotly/validators/scattersmith/marker/colorbar/_ticktextsrc.py index 51ee84e816..db727737a9 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_ticktextsrc.py +++ b/plotly/validators/scattersmith/marker/colorbar/_ticktextsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/colorbar/_tickvals.py b/plotly/validators/scattersmith/marker/colorbar/_tickvals.py index 7387a52b55..e8953cc287 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_tickvals.py +++ b/plotly/validators/scattersmith/marker/colorbar/_tickvals.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/colorbar/_tickvalssrc.py b/plotly/validators/scattersmith/marker/colorbar/_tickvalssrc.py index 366e4a24f7..1b965038a7 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_tickvalssrc.py +++ b/plotly/validators/scattersmith/marker/colorbar/_tickvalssrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/colorbar/_tickwidth.py b/plotly/validators/scattersmith/marker/colorbar/_tickwidth.py index 3b9298e857..0375a136d9 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_tickwidth.py +++ b/plotly/validators/scattersmith/marker/colorbar/_tickwidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattersmith/marker/colorbar/_title.py b/plotly/validators/scattersmith/marker/colorbar/_title.py index aed71e1281..643607d3bf 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_title.py +++ b/plotly/validators/scattersmith/marker/colorbar/_title.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattersmith/marker/colorbar/_x.py b/plotly/validators/scattersmith/marker/colorbar/_x.py index af3835c7f1..364a5863d2 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_x.py +++ b/plotly/validators/scattersmith/marker/colorbar/_x.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/colorbar/_xanchor.py b/plotly/validators/scattersmith/marker/colorbar/_xanchor.py index 9477800826..36a60e34fd 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_xanchor.py +++ b/plotly/validators/scattersmith/marker/colorbar/_xanchor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/scattersmith/marker/colorbar/_xpad.py b/plotly/validators/scattersmith/marker/colorbar/_xpad.py index a657626add..d2f43fe5e2 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_xpad.py +++ b/plotly/validators/scattersmith/marker/colorbar/_xpad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattersmith/marker/colorbar/_xref.py b/plotly/validators/scattersmith/marker/colorbar/_xref.py index fb624aad7a..b0fac01087 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_xref.py +++ b/plotly/validators/scattersmith/marker/colorbar/_xref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/scattersmith/marker/colorbar/_y.py b/plotly/validators/scattersmith/marker/colorbar/_y.py index 95aaca685b..436c0b1da5 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_y.py +++ b/plotly/validators/scattersmith/marker/colorbar/_y.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/colorbar/_yanchor.py b/plotly/validators/scattersmith/marker/colorbar/_yanchor.py index 9eedc5434d..ed0960cd23 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_yanchor.py +++ b/plotly/validators/scattersmith/marker/colorbar/_yanchor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/scattersmith/marker/colorbar/_ypad.py b/plotly/validators/scattersmith/marker/colorbar/_ypad.py index d50896ae18..b379b5626a 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_ypad.py +++ b/plotly/validators/scattersmith/marker/colorbar/_ypad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattersmith/marker/colorbar/_yref.py b/plotly/validators/scattersmith/marker/colorbar/_yref.py index 03414cf3d1..5ed8ca3517 100644 --- a/plotly/validators/scattersmith/marker/colorbar/_yref.py +++ b/plotly/validators/scattersmith/marker/colorbar/_yref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/scattersmith/marker/colorbar/tickfont/__init__.py b/plotly/validators/scattersmith/marker/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/scattersmith/marker/colorbar/tickfont/__init__.py +++ b/plotly/validators/scattersmith/marker/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scattersmith/marker/colorbar/tickfont/_color.py b/plotly/validators/scattersmith/marker/colorbar/tickfont/_color.py index bf9df66b89..31c2234508 100644 --- a/plotly/validators/scattersmith/marker/colorbar/tickfont/_color.py +++ b/plotly/validators/scattersmith/marker/colorbar/tickfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/colorbar/tickfont/_family.py b/plotly/validators/scattersmith/marker/colorbar/tickfont/_family.py index 385c283696..f3918275bc 100644 --- a/plotly/validators/scattersmith/marker/colorbar/tickfont/_family.py +++ b/plotly/validators/scattersmith/marker/colorbar/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scattersmith/marker/colorbar/tickfont/_lineposition.py b/plotly/validators/scattersmith/marker/colorbar/tickfont/_lineposition.py index 8dd5518fd2..3122c66314 100644 --- a/plotly/validators/scattersmith/marker/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/scattersmith/marker/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/scattersmith/marker/colorbar/tickfont/_shadow.py b/plotly/validators/scattersmith/marker/colorbar/tickfont/_shadow.py index 767ef8a714..e0d77acc16 100644 --- a/plotly/validators/scattersmith/marker/colorbar/tickfont/_shadow.py +++ b/plotly/validators/scattersmith/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/colorbar/tickfont/_size.py b/plotly/validators/scattersmith/marker/colorbar/tickfont/_size.py index 939d1c2987..6e7ae359d5 100644 --- a/plotly/validators/scattersmith/marker/colorbar/tickfont/_size.py +++ b/plotly/validators/scattersmith/marker/colorbar/tickfont/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scattersmith/marker/colorbar/tickfont/_style.py b/plotly/validators/scattersmith/marker/colorbar/tickfont/_style.py index 3fbdc2be21..f0297d335d 100644 --- a/plotly/validators/scattersmith/marker/colorbar/tickfont/_style.py +++ b/plotly/validators/scattersmith/marker/colorbar/tickfont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scattersmith/marker/colorbar/tickfont/_textcase.py b/plotly/validators/scattersmith/marker/colorbar/tickfont/_textcase.py index ceda28cf4f..3ed56c9285 100644 --- a/plotly/validators/scattersmith/marker/colorbar/tickfont/_textcase.py +++ b/plotly/validators/scattersmith/marker/colorbar/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/scattersmith/marker/colorbar/tickfont/_variant.py b/plotly/validators/scattersmith/marker/colorbar/tickfont/_variant.py index fdce8b89a4..b82101051e 100644 --- a/plotly/validators/scattersmith/marker/colorbar/tickfont/_variant.py +++ b/plotly/validators/scattersmith/marker/colorbar/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/scattersmith/marker/colorbar/tickfont/_weight.py b/plotly/validators/scattersmith/marker/colorbar/tickfont/_weight.py index d4de6706c6..225cea34bf 100644 --- a/plotly/validators/scattersmith/marker/colorbar/tickfont/_weight.py +++ b/plotly/validators/scattersmith/marker/colorbar/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scattersmith/marker/colorbar/tickformatstop/__init__.py b/plotly/validators/scattersmith/marker/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/scattersmith/marker/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/scattersmith/marker/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_dtickrange.py index 6eec1c29a9..2e63893a65 100644 --- a/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( "items", diff --git a/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_enabled.py b/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_enabled.py index b78537b59c..6636163c34 100644 --- a/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_name.py b/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_name.py index 9685cb9162..354cfa977f 100644 --- a/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_name.py +++ b/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_templateitemname.py index a81277026e..027d077069 100644 --- a/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_value.py b/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_value.py index 27dec553bd..430ac4accb 100644 --- a/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_value.py +++ b/plotly/validators/scattersmith/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/colorbar/title/__init__.py b/plotly/validators/scattersmith/marker/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/scattersmith/marker/colorbar/title/__init__.py +++ b/plotly/validators/scattersmith/marker/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/scattersmith/marker/colorbar/title/_font.py b/plotly/validators/scattersmith/marker/colorbar/title/_font.py index 5b3026b702..72d7c0e32c 100644 --- a/plotly/validators/scattersmith/marker/colorbar/title/_font.py +++ b/plotly/validators/scattersmith/marker/colorbar/title/_font.py @@ -1,63 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/scattersmith/marker/colorbar/title/_side.py b/plotly/validators/scattersmith/marker/colorbar/title/_side.py index 5473adebd6..6ea5d720c0 100644 --- a/plotly/validators/scattersmith/marker/colorbar/title/_side.py +++ b/plotly/validators/scattersmith/marker/colorbar/title/_side.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/scattersmith/marker/colorbar/title/_text.py b/plotly/validators/scattersmith/marker/colorbar/title/_text.py index e90872971c..d4de2868e3 100644 --- a/plotly/validators/scattersmith/marker/colorbar/title/_text.py +++ b/plotly/validators/scattersmith/marker/colorbar/title/_text.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/colorbar/title/font/__init__.py b/plotly/validators/scattersmith/marker/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/scattersmith/marker/colorbar/title/font/__init__.py +++ b/plotly/validators/scattersmith/marker/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scattersmith/marker/colorbar/title/font/_color.py b/plotly/validators/scattersmith/marker/colorbar/title/font/_color.py index d435fa7382..eb0ee44e06 100644 --- a/plotly/validators/scattersmith/marker/colorbar/title/font/_color.py +++ b/plotly/validators/scattersmith/marker/colorbar/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/colorbar/title/font/_family.py b/plotly/validators/scattersmith/marker/colorbar/title/font/_family.py index c5423d8b56..5cb9a5c532 100644 --- a/plotly/validators/scattersmith/marker/colorbar/title/font/_family.py +++ b/plotly/validators/scattersmith/marker/colorbar/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scattersmith/marker/colorbar/title/font/_lineposition.py b/plotly/validators/scattersmith/marker/colorbar/title/font/_lineposition.py index c71ba74503..5e1db69ba8 100644 --- a/plotly/validators/scattersmith/marker/colorbar/title/font/_lineposition.py +++ b/plotly/validators/scattersmith/marker/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/scattersmith/marker/colorbar/title/font/_shadow.py b/plotly/validators/scattersmith/marker/colorbar/title/font/_shadow.py index 6cf4477346..e5d98fbc0a 100644 --- a/plotly/validators/scattersmith/marker/colorbar/title/font/_shadow.py +++ b/plotly/validators/scattersmith/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/colorbar/title/font/_size.py b/plotly/validators/scattersmith/marker/colorbar/title/font/_size.py index ad1f82dc48..37372f481f 100644 --- a/plotly/validators/scattersmith/marker/colorbar/title/font/_size.py +++ b/plotly/validators/scattersmith/marker/colorbar/title/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scattersmith/marker/colorbar/title/font/_style.py b/plotly/validators/scattersmith/marker/colorbar/title/font/_style.py index ccd83bd0c7..d8f3684c0f 100644 --- a/plotly/validators/scattersmith/marker/colorbar/title/font/_style.py +++ b/plotly/validators/scattersmith/marker/colorbar/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scattersmith/marker/colorbar/title/font/_textcase.py b/plotly/validators/scattersmith/marker/colorbar/title/font/_textcase.py index a4a82415bd..c02a98e488 100644 --- a/plotly/validators/scattersmith/marker/colorbar/title/font/_textcase.py +++ b/plotly/validators/scattersmith/marker/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/scattersmith/marker/colorbar/title/font/_variant.py b/plotly/validators/scattersmith/marker/colorbar/title/font/_variant.py index e2f26dcf13..284c6bdb31 100644 --- a/plotly/validators/scattersmith/marker/colorbar/title/font/_variant.py +++ b/plotly/validators/scattersmith/marker/colorbar/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/scattersmith/marker/colorbar/title/font/_weight.py b/plotly/validators/scattersmith/marker/colorbar/title/font/_weight.py index 2a95ab9bd6..088d736a13 100644 --- a/plotly/validators/scattersmith/marker/colorbar/title/font/_weight.py +++ b/plotly/validators/scattersmith/marker/colorbar/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scattersmith/marker/gradient/__init__.py b/plotly/validators/scattersmith/marker/gradient/__init__.py index 624a280ea4..f5373e7822 100644 --- a/plotly/validators/scattersmith/marker/gradient/__init__.py +++ b/plotly/validators/scattersmith/marker/gradient/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._typesrc import TypesrcValidator - from ._type import TypeValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._typesrc.TypesrcValidator", + "._type.TypeValidator", + "._colorsrc.ColorsrcValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scattersmith/marker/gradient/_color.py b/plotly/validators/scattersmith/marker/gradient/_color.py index b3329069f7..a0e6b12e8b 100644 --- a/plotly/validators/scattersmith/marker/gradient/_color.py +++ b/plotly/validators/scattersmith/marker/gradient/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattersmith/marker/gradient/_colorsrc.py b/plotly/validators/scattersmith/marker/gradient/_colorsrc.py index da5205ea1d..61a28ef3bb 100644 --- a/plotly/validators/scattersmith/marker/gradient/_colorsrc.py +++ b/plotly/validators/scattersmith/marker/gradient/_colorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/gradient/_type.py b/plotly/validators/scattersmith/marker/gradient/_type.py index 7e1b57489a..39f59afa3e 100644 --- a/plotly/validators/scattersmith/marker/gradient/_type.py +++ b/plotly/validators/scattersmith/marker/gradient/_type.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/scattersmith/marker/gradient/_typesrc.py b/plotly/validators/scattersmith/marker/gradient/_typesrc.py index 506010667d..1921226f09 100644 --- a/plotly/validators/scattersmith/marker/gradient/_typesrc.py +++ b/plotly/validators/scattersmith/marker/gradient/_typesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/line/__init__.py b/plotly/validators/scattersmith/marker/line/__init__.py index facbe33f88..4ba3ea340b 100644 --- a/plotly/validators/scattersmith/marker/line/__init__.py +++ b/plotly/validators/scattersmith/marker/line/__init__.py @@ -1,37 +1,21 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._widthsrc import WidthsrcValidator - from ._width import WidthValidator - from ._reversescale import ReversescaleValidator - from ._colorsrc import ColorsrcValidator - from ._colorscale import ColorscaleValidator - from ._coloraxis import ColoraxisValidator - from ._color import ColorValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattersmith/marker/line/_autocolorscale.py b/plotly/validators/scattersmith/marker/line/_autocolorscale.py index 59a82144e2..d7e0228989 100644 --- a/plotly/validators/scattersmith/marker/line/_autocolorscale.py +++ b/plotly/validators/scattersmith/marker/line/_autocolorscale.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scattersmith/marker/line/_cauto.py b/plotly/validators/scattersmith/marker/line/_cauto.py index b276e6d03b..d6070126b9 100644 --- a/plotly/validators/scattersmith/marker/line/_cauto.py +++ b/plotly/validators/scattersmith/marker/line/_cauto.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scattersmith/marker/line/_cmax.py b/plotly/validators/scattersmith/marker/line/_cmax.py index 60ede55a94..914128144f 100644 --- a/plotly/validators/scattersmith/marker/line/_cmax.py +++ b/plotly/validators/scattersmith/marker/line/_cmax.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scattersmith/marker/line/_cmid.py b/plotly/validators/scattersmith/marker/line/_cmid.py index 095df53ad7..492cf6a64c 100644 --- a/plotly/validators/scattersmith/marker/line/_cmid.py +++ b/plotly/validators/scattersmith/marker/line/_cmid.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scattersmith/marker/line/_cmin.py b/plotly/validators/scattersmith/marker/line/_cmin.py index c67e10a032..d30c6ee92e 100644 --- a/plotly/validators/scattersmith/marker/line/_cmin.py +++ b/plotly/validators/scattersmith/marker/line/_cmin.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scattersmith/marker/line/_color.py b/plotly/validators/scattersmith/marker/line/_color.py index e02eaedbb1..4d807741bf 100644 --- a/plotly/validators/scattersmith/marker/line/_color.py +++ b/plotly/validators/scattersmith/marker/line/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), colorscale_path=kwargs.pop( diff --git a/plotly/validators/scattersmith/marker/line/_coloraxis.py b/plotly/validators/scattersmith/marker/line/_coloraxis.py index 356dccd2f1..b506e4a8f2 100644 --- a/plotly/validators/scattersmith/marker/line/_coloraxis.py +++ b/plotly/validators/scattersmith/marker/line/_coloraxis.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/scattersmith/marker/line/_colorscale.py b/plotly/validators/scattersmith/marker/line/_colorscale.py index 7152d21e22..951c746ac8 100644 --- a/plotly/validators/scattersmith/marker/line/_colorscale.py +++ b/plotly/validators/scattersmith/marker/line/_colorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/scattersmith/marker/line/_colorsrc.py b/plotly/validators/scattersmith/marker/line/_colorsrc.py index bc72bd6965..825dd9d82b 100644 --- a/plotly/validators/scattersmith/marker/line/_colorsrc.py +++ b/plotly/validators/scattersmith/marker/line/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/line/_reversescale.py b/plotly/validators/scattersmith/marker/line/_reversescale.py index beeaa71748..304592bb4e 100644 --- a/plotly/validators/scattersmith/marker/line/_reversescale.py +++ b/plotly/validators/scattersmith/marker/line/_reversescale.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/scattersmith/marker/line/_width.py b/plotly/validators/scattersmith/marker/line/_width.py index fe02330c97..c8de91bf34 100644 --- a/plotly/validators/scattersmith/marker/line/_width.py +++ b/plotly/validators/scattersmith/marker/line/_width.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattersmith/marker/line/_widthsrc.py b/plotly/validators/scattersmith/marker/line/_widthsrc.py index 24e788d264..f28fc6983f 100644 --- a/plotly/validators/scattersmith/marker/line/_widthsrc.py +++ b/plotly/validators/scattersmith/marker/line/_widthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/selected/__init__.py b/plotly/validators/scattersmith/selected/__init__.py index 3b0aeed383..9d2a313b83 100644 --- a/plotly/validators/scattersmith/selected/__init__.py +++ b/plotly/validators/scattersmith/selected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] +) diff --git a/plotly/validators/scattersmith/selected/_marker.py b/plotly/validators/scattersmith/selected/_marker.py index e7e2222d86..e3f745e112 100644 --- a/plotly/validators/scattersmith/selected/_marker.py +++ b/plotly/validators/scattersmith/selected/_marker.py @@ -1,23 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattersmith/selected/_textfont.py b/plotly/validators/scattersmith/selected/_textfont.py index 85be02c257..cd4ac5534a 100644 --- a/plotly/validators/scattersmith/selected/_textfont.py +++ b/plotly/validators/scattersmith/selected/_textfont.py @@ -1,19 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattersmith/selected/marker/__init__.py b/plotly/validators/scattersmith/selected/marker/__init__.py index 8c321a38bc..c9c7226fe4 100644 --- a/plotly/validators/scattersmith/selected/marker/__init__.py +++ b/plotly/validators/scattersmith/selected/marker/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._size.SizeValidator", "._opacity.OpacityValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/scattersmith/selected/marker/_color.py b/plotly/validators/scattersmith/selected/marker/_color.py index 9a5ac6e248..d7f8423630 100644 --- a/plotly/validators/scattersmith/selected/marker/_color.py +++ b/plotly/validators/scattersmith/selected/marker/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattersmith/selected/marker/_opacity.py b/plotly/validators/scattersmith/selected/marker/_opacity.py index 0531b2e4d5..3803dc5cd2 100644 --- a/plotly/validators/scattersmith/selected/marker/_opacity.py +++ b/plotly/validators/scattersmith/selected/marker/_opacity.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattersmith/selected/marker/_size.py b/plotly/validators/scattersmith/selected/marker/_size.py index c376b99fa5..843572bde1 100644 --- a/plotly/validators/scattersmith/selected/marker/_size.py +++ b/plotly/validators/scattersmith/selected/marker/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattersmith/selected/textfont/__init__.py b/plotly/validators/scattersmith/selected/textfont/__init__.py index a9f087e5af..85a4cc9573 100644 --- a/plotly/validators/scattersmith/selected/textfont/__init__.py +++ b/plotly/validators/scattersmith/selected/textfont/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._color.ColorValidator"] +) diff --git a/plotly/validators/scattersmith/selected/textfont/_color.py b/plotly/validators/scattersmith/selected/textfont/_color.py index 8d72cb5067..c35a1a57a0 100644 --- a/plotly/validators/scattersmith/selected/textfont/_color.py +++ b/plotly/validators/scattersmith/selected/textfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattersmith/stream/__init__.py b/plotly/validators/scattersmith/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/scattersmith/stream/__init__.py +++ b/plotly/validators/scattersmith/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/scattersmith/stream/_maxpoints.py b/plotly/validators/scattersmith/stream/_maxpoints.py index 7825232868..b74682f0ee 100644 --- a/plotly/validators/scattersmith/stream/_maxpoints.py +++ b/plotly/validators/scattersmith/stream/_maxpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattersmith/stream/_token.py b/plotly/validators/scattersmith/stream/_token.py index e6b855c4d3..79b36c4f5d 100644 --- a/plotly/validators/scattersmith/stream/_token.py +++ b/plotly/validators/scattersmith/stream/_token.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scattersmith/textfont/__init__.py b/plotly/validators/scattersmith/textfont/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/scattersmith/textfont/__init__.py +++ b/plotly/validators/scattersmith/textfont/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scattersmith/textfont/_color.py b/plotly/validators/scattersmith/textfont/_color.py index 2d7df6248c..8ae54feab4 100644 --- a/plotly/validators/scattersmith/textfont/_color.py +++ b/plotly/validators/scattersmith/textfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/scattersmith/textfont/_colorsrc.py b/plotly/validators/scattersmith/textfont/_colorsrc.py index 667eedfbb0..8a7b170879 100644 --- a/plotly/validators/scattersmith/textfont/_colorsrc.py +++ b/plotly/validators/scattersmith/textfont/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/textfont/_family.py b/plotly/validators/scattersmith/textfont/_family.py index 1a6fba6024..a3f0ce86b9 100644 --- a/plotly/validators/scattersmith/textfont/_family.py +++ b/plotly/validators/scattersmith/textfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/scattersmith/textfont/_familysrc.py b/plotly/validators/scattersmith/textfont/_familysrc.py index 977efaa6bf..0c2e798762 100644 --- a/plotly/validators/scattersmith/textfont/_familysrc.py +++ b/plotly/validators/scattersmith/textfont/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/textfont/_lineposition.py b/plotly/validators/scattersmith/textfont/_lineposition.py index 50e2c52ee7..e977cf4f55 100644 --- a/plotly/validators/scattersmith/textfont/_lineposition.py +++ b/plotly/validators/scattersmith/textfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/scattersmith/textfont/_linepositionsrc.py b/plotly/validators/scattersmith/textfont/_linepositionsrc.py index c6d18cbf57..1109f9a21b 100644 --- a/plotly/validators/scattersmith/textfont/_linepositionsrc.py +++ b/plotly/validators/scattersmith/textfont/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/textfont/_shadow.py b/plotly/validators/scattersmith/textfont/_shadow.py index b740f255ff..10d8ac3a25 100644 --- a/plotly/validators/scattersmith/textfont/_shadow.py +++ b/plotly/validators/scattersmith/textfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scattersmith/textfont/_shadowsrc.py b/plotly/validators/scattersmith/textfont/_shadowsrc.py index fbef53827a..00495129de 100644 --- a/plotly/validators/scattersmith/textfont/_shadowsrc.py +++ b/plotly/validators/scattersmith/textfont/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/textfont/_size.py b/plotly/validators/scattersmith/textfont/_size.py index 850a9f5a41..4cd780d5a9 100644 --- a/plotly/validators/scattersmith/textfont/_size.py +++ b/plotly/validators/scattersmith/textfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/scattersmith/textfont/_sizesrc.py b/plotly/validators/scattersmith/textfont/_sizesrc.py index 195d58ff49..1b140ef3ca 100644 --- a/plotly/validators/scattersmith/textfont/_sizesrc.py +++ b/plotly/validators/scattersmith/textfont/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/textfont/_style.py b/plotly/validators/scattersmith/textfont/_style.py index 7b1cbdbd9e..3ad141c68d 100644 --- a/plotly/validators/scattersmith/textfont/_style.py +++ b/plotly/validators/scattersmith/textfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/scattersmith/textfont/_stylesrc.py b/plotly/validators/scattersmith/textfont/_stylesrc.py index 0ab8ead8c0..548c387add 100644 --- a/plotly/validators/scattersmith/textfont/_stylesrc.py +++ b/plotly/validators/scattersmith/textfont/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/textfont/_textcase.py b/plotly/validators/scattersmith/textfont/_textcase.py index e5b6cfcb7f..07b3d9f224 100644 --- a/plotly/validators/scattersmith/textfont/_textcase.py +++ b/plotly/validators/scattersmith/textfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/scattersmith/textfont/_textcasesrc.py b/plotly/validators/scattersmith/textfont/_textcasesrc.py index 96bf8ecc92..a95b79ffc1 100644 --- a/plotly/validators/scattersmith/textfont/_textcasesrc.py +++ b/plotly/validators/scattersmith/textfont/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/textfont/_variant.py b/plotly/validators/scattersmith/textfont/_variant.py index 99f07ae525..6cb2d65eb8 100644 --- a/plotly/validators/scattersmith/textfont/_variant.py +++ b/plotly/validators/scattersmith/textfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( diff --git a/plotly/validators/scattersmith/textfont/_variantsrc.py b/plotly/validators/scattersmith/textfont/_variantsrc.py index 9ed07409c8..e3381fa3eb 100644 --- a/plotly/validators/scattersmith/textfont/_variantsrc.py +++ b/plotly/validators/scattersmith/textfont/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/textfont/_weight.py b/plotly/validators/scattersmith/textfont/_weight.py index a5c3a21479..6302a24ad6 100644 --- a/plotly/validators/scattersmith/textfont/_weight.py +++ b/plotly/validators/scattersmith/textfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/scattersmith/textfont/_weightsrc.py b/plotly/validators/scattersmith/textfont/_weightsrc.py index 79b0b8e24d..ba46d54721 100644 --- a/plotly/validators/scattersmith/textfont/_weightsrc.py +++ b/plotly/validators/scattersmith/textfont/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scattersmith/unselected/__init__.py b/plotly/validators/scattersmith/unselected/__init__.py index 3b0aeed383..9d2a313b83 100644 --- a/plotly/validators/scattersmith/unselected/__init__.py +++ b/plotly/validators/scattersmith/unselected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] +) diff --git a/plotly/validators/scattersmith/unselected/_marker.py b/plotly/validators/scattersmith/unselected/_marker.py index 85cc44ce84..cb7fc22baa 100644 --- a/plotly/validators/scattersmith/unselected/_marker.py +++ b/plotly/validators/scattersmith/unselected/_marker.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattersmith/unselected/_textfont.py b/plotly/validators/scattersmith/unselected/_textfont.py index 771b5b0ebf..6a45acd3a0 100644 --- a/plotly/validators/scattersmith/unselected/_textfont.py +++ b/plotly/validators/scattersmith/unselected/_textfont.py @@ -1,20 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scattersmith/unselected/marker/__init__.py b/plotly/validators/scattersmith/unselected/marker/__init__.py index 8c321a38bc..c9c7226fe4 100644 --- a/plotly/validators/scattersmith/unselected/marker/__init__.py +++ b/plotly/validators/scattersmith/unselected/marker/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._size.SizeValidator", "._opacity.OpacityValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/scattersmith/unselected/marker/_color.py b/plotly/validators/scattersmith/unselected/marker/_color.py index e0d6c289ad..ac44c84aaf 100644 --- a/plotly/validators/scattersmith/unselected/marker/_color.py +++ b/plotly/validators/scattersmith/unselected/marker/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scattersmith/unselected/marker/_opacity.py b/plotly/validators/scattersmith/unselected/marker/_opacity.py index ddc2587b6e..baa0731d2f 100644 --- a/plotly/validators/scattersmith/unselected/marker/_opacity.py +++ b/plotly/validators/scattersmith/unselected/marker/_opacity.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scattersmith/unselected/marker/_size.py b/plotly/validators/scattersmith/unselected/marker/_size.py index 1da3002a3e..10fbd44587 100644 --- a/plotly/validators/scattersmith/unselected/marker/_size.py +++ b/plotly/validators/scattersmith/unselected/marker/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scattersmith/unselected/textfont/__init__.py b/plotly/validators/scattersmith/unselected/textfont/__init__.py index a9f087e5af..85a4cc9573 100644 --- a/plotly/validators/scattersmith/unselected/textfont/__init__.py +++ b/plotly/validators/scattersmith/unselected/textfont/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._color.ColorValidator"] +) diff --git a/plotly/validators/scattersmith/unselected/textfont/_color.py b/plotly/validators/scattersmith/unselected/textfont/_color.py index 4d115b2276..40ecc1ae90 100644 --- a/plotly/validators/scattersmith/unselected/textfont/_color.py +++ b/plotly/validators/scattersmith/unselected/textfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterternary/__init__.py b/plotly/validators/scatterternary/__init__.py index e99da6064d..dbdfd03c85 100644 --- a/plotly/validators/scatterternary/__init__.py +++ b/plotly/validators/scatterternary/__init__.py @@ -1,115 +1,60 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._visible import VisibleValidator - from ._unselected import UnselectedValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._texttemplatesrc import TexttemplatesrcValidator - from ._texttemplate import TexttemplateValidator - from ._textsrc import TextsrcValidator - from ._textpositionsrc import TextpositionsrcValidator - from ._textposition import TextpositionValidator - from ._textfont import TextfontValidator - from ._text import TextValidator - from ._sum import SumValidator - from ._subplot import SubplotValidator - from ._stream import StreamValidator - from ._showlegend import ShowlegendValidator - from ._selectedpoints import SelectedpointsValidator - from ._selected import SelectedValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - from ._mode import ModeValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._marker import MarkerValidator - from ._line import LineValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoveron import HoveronValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._fillcolor import FillcolorValidator - from ._fill import FillValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._csrc import CsrcValidator - from ._connectgaps import ConnectgapsValidator - from ._cliponaxis import CliponaxisValidator - from ._c import CValidator - from ._bsrc import BsrcValidator - from ._b import BValidator - from ._asrc import AsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatterternary/_a.py b/plotly/validators/scatterternary/_a.py index 08598a3c4b..7cf740cbf4 100644 --- a/plotly/validators/scatterternary/_a.py +++ b/plotly/validators/scatterternary/_a.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterternary/_asrc.py b/plotly/validators/scatterternary/_asrc.py index 7720b3237a..3e4e3b9847 100644 --- a/plotly/validators/scatterternary/_asrc.py +++ b/plotly/validators/scatterternary/_asrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/_b.py b/plotly/validators/scatterternary/_b.py index 33bba83bef..ab32a355b2 100644 --- a/plotly/validators/scatterternary/_b.py +++ b/plotly/validators/scatterternary/_b.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterternary/_bsrc.py b/plotly/validators/scatterternary/_bsrc.py index d7b8073487..d7d1e53cd4 100644 --- a/plotly/validators/scatterternary/_bsrc.py +++ b/plotly/validators/scatterternary/_bsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/_c.py b/plotly/validators/scatterternary/_c.py index 2645f58995..5eac0ac41b 100644 --- a/plotly/validators/scatterternary/_c.py +++ b/plotly/validators/scatterternary/_c.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterternary/_cliponaxis.py b/plotly/validators/scatterternary/_cliponaxis.py index 2f3bfa7669..30b2aa8566 100644 --- a/plotly/validators/scatterternary/_cliponaxis.py +++ b/plotly/validators/scatterternary/_cliponaxis.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CliponaxisValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/scatterternary/_connectgaps.py b/plotly/validators/scatterternary/_connectgaps.py index ba7f921065..b51375dfb1 100644 --- a/plotly/validators/scatterternary/_connectgaps.py +++ b/plotly/validators/scatterternary/_connectgaps.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterternary/_csrc.py b/plotly/validators/scatterternary/_csrc.py index a069a6f4d0..3b44309678 100644 --- a/plotly/validators/scatterternary/_csrc.py +++ b/plotly/validators/scatterternary/_csrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/_customdata.py b/plotly/validators/scatterternary/_customdata.py index f2b28ef8b2..41d74084dc 100644 --- a/plotly/validators/scatterternary/_customdata.py +++ b/plotly/validators/scatterternary/_customdata.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterternary/_customdatasrc.py b/plotly/validators/scatterternary/_customdatasrc.py index d9996ad0bd..4e66a07a41 100644 --- a/plotly/validators/scatterternary/_customdatasrc.py +++ b/plotly/validators/scatterternary/_customdatasrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/_fill.py b/plotly/validators/scatterternary/_fill.py index e2ed1e2b46..2f687695bd 100644 --- a/plotly/validators/scatterternary/_fill.py +++ b/plotly/validators/scatterternary/_fill.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["none", "toself", "tonext"]), **kwargs, diff --git a/plotly/validators/scatterternary/_fillcolor.py b/plotly/validators/scatterternary/_fillcolor.py index fbdff231f4..16ee6d6ac3 100644 --- a/plotly/validators/scatterternary/_fillcolor.py +++ b/plotly/validators/scatterternary/_fillcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterternary/_hoverinfo.py b/plotly/validators/scatterternary/_hoverinfo.py index 27475f88e2..d75d6b3fa1 100644 --- a/plotly/validators/scatterternary/_hoverinfo.py +++ b/plotly/validators/scatterternary/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/scatterternary/_hoverinfosrc.py b/plotly/validators/scatterternary/_hoverinfosrc.py index a20eb428dc..818f64b372 100644 --- a/plotly/validators/scatterternary/_hoverinfosrc.py +++ b/plotly/validators/scatterternary/_hoverinfosrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/_hoverlabel.py b/plotly/validators/scatterternary/_hoverlabel.py index 43bdb6a343..b15da7ab56 100644 --- a/plotly/validators/scatterternary/_hoverlabel.py +++ b/plotly/validators/scatterternary/_hoverlabel.py @@ -1,52 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterternary/_hoveron.py b/plotly/validators/scatterternary/_hoveron.py index cd1cc12605..10e33edec1 100644 --- a/plotly/validators/scatterternary/_hoveron.py +++ b/plotly/validators/scatterternary/_hoveron.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoveronValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), flags=kwargs.pop("flags", ["points", "fills"]), **kwargs, diff --git a/plotly/validators/scatterternary/_hovertemplate.py b/plotly/validators/scatterternary/_hovertemplate.py index 9639265c7f..22b2cbf394 100644 --- a/plotly/validators/scatterternary/_hovertemplate.py +++ b/plotly/validators/scatterternary/_hovertemplate.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scatterternary/_hovertemplatesrc.py b/plotly/validators/scatterternary/_hovertemplatesrc.py index d520e7a8a9..efd675bbcc 100644 --- a/plotly/validators/scatterternary/_hovertemplatesrc.py +++ b/plotly/validators/scatterternary/_hovertemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/_hovertext.py b/plotly/validators/scatterternary/_hovertext.py index ebb4860039..a750ea3c61 100644 --- a/plotly/validators/scatterternary/_hovertext.py +++ b/plotly/validators/scatterternary/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/scatterternary/_hovertextsrc.py b/plotly/validators/scatterternary/_hovertextsrc.py index 07e3a737eb..51056e0d67 100644 --- a/plotly/validators/scatterternary/_hovertextsrc.py +++ b/plotly/validators/scatterternary/_hovertextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/_ids.py b/plotly/validators/scatterternary/_ids.py index f76d9012f7..86841eb9a3 100644 --- a/plotly/validators/scatterternary/_ids.py +++ b/plotly/validators/scatterternary/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterternary/_idssrc.py b/plotly/validators/scatterternary/_idssrc.py index e9731d2a47..e65121264c 100644 --- a/plotly/validators/scatterternary/_idssrc.py +++ b/plotly/validators/scatterternary/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/_legend.py b/plotly/validators/scatterternary/_legend.py index bcd44c345c..27eab0fb22 100644 --- a/plotly/validators/scatterternary/_legend.py +++ b/plotly/validators/scatterternary/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/scatterternary/_legendgroup.py b/plotly/validators/scatterternary/_legendgroup.py index dd65c0aad8..66e5bedccb 100644 --- a/plotly/validators/scatterternary/_legendgroup.py +++ b/plotly/validators/scatterternary/_legendgroup.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterternary/_legendgrouptitle.py b/plotly/validators/scatterternary/_legendgrouptitle.py index 57248571d5..9d71964976 100644 --- a/plotly/validators/scatterternary/_legendgrouptitle.py +++ b/plotly/validators/scatterternary/_legendgrouptitle.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterternary/_legendrank.py b/plotly/validators/scatterternary/_legendrank.py index 098becd214..5576ad6d7b 100644 --- a/plotly/validators/scatterternary/_legendrank.py +++ b/plotly/validators/scatterternary/_legendrank.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterternary/_legendwidth.py b/plotly/validators/scatterternary/_legendwidth.py index ee2c019616..1f66311d78 100644 --- a/plotly/validators/scatterternary/_legendwidth.py +++ b/plotly/validators/scatterternary/_legendwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterternary/_line.py b/plotly/validators/scatterternary/_line.py index 89b69788e4..98c7814a95 100644 --- a/plotly/validators/scatterternary/_line.py +++ b/plotly/validators/scatterternary/_line.py @@ -1,44 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterternary/_marker.py b/plotly/validators/scatterternary/_marker.py index 9b8054bb24..561ff33f32 100644 --- a/plotly/validators/scatterternary/_marker.py +++ b/plotly/validators/scatterternary/_marker.py @@ -1,165 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterternary/_meta.py b/plotly/validators/scatterternary/_meta.py index 69bfc725f4..0214be4767 100644 --- a/plotly/validators/scatterternary/_meta.py +++ b/plotly/validators/scatterternary/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/scatterternary/_metasrc.py b/plotly/validators/scatterternary/_metasrc.py index d13b6bcf44..5a74ba140c 100644 --- a/plotly/validators/scatterternary/_metasrc.py +++ b/plotly/validators/scatterternary/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/_mode.py b/plotly/validators/scatterternary/_mode.py index 1aa4b5cfc7..36cec2d6be 100644 --- a/plotly/validators/scatterternary/_mode.py +++ b/plotly/validators/scatterternary/_mode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ModeValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["lines", "markers", "text"]), diff --git a/plotly/validators/scatterternary/_name.py b/plotly/validators/scatterternary/_name.py index eb186ec00a..14d2e4c890 100644 --- a/plotly/validators/scatterternary/_name.py +++ b/plotly/validators/scatterternary/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterternary/_opacity.py b/plotly/validators/scatterternary/_opacity.py index 642e75917c..deee39ce29 100644 --- a/plotly/validators/scatterternary/_opacity.py +++ b/plotly/validators/scatterternary/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatterternary/_selected.py b/plotly/validators/scatterternary/_selected.py index 4135f7c10d..0c56262ddf 100644 --- a/plotly/validators/scatterternary/_selected.py +++ b/plotly/validators/scatterternary/_selected.py @@ -1,23 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterternary/_selectedpoints.py b/plotly/validators/scatterternary/_selectedpoints.py index 9d46922968..f150fb41aa 100644 --- a/plotly/validators/scatterternary/_selectedpoints.py +++ b/plotly/validators/scatterternary/_selectedpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterternary/_showlegend.py b/plotly/validators/scatterternary/_showlegend.py index 6f279a66b0..ddbe30905c 100644 --- a/plotly/validators/scatterternary/_showlegend.py +++ b/plotly/validators/scatterternary/_showlegend.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterternary/_stream.py b/plotly/validators/scatterternary/_stream.py index 8a3d755d8d..2127baf43a 100644 --- a/plotly/validators/scatterternary/_stream.py +++ b/plotly/validators/scatterternary/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterternary/_subplot.py b/plotly/validators/scatterternary/_subplot.py index 295d547955..680e84d7f9 100644 --- a/plotly/validators/scatterternary/_subplot.py +++ b/plotly/validators/scatterternary/_subplot.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SubplotValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "ternary"), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scatterternary/_sum.py b/plotly/validators/scatterternary/_sum.py index 4440d0fd94..35ba0e2025 100644 --- a/plotly/validators/scatterternary/_sum.py +++ b/plotly/validators/scatterternary/_sum.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SumValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterternary/_text.py b/plotly/validators/scatterternary/_text.py index b200aa0f78..781b440698 100644 --- a/plotly/validators/scatterternary/_text.py +++ b/plotly/validators/scatterternary/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scatterternary/_textfont.py b/plotly/validators/scatterternary/_textfont.py index 47b1e2d529..4b0e69d75e 100644 --- a/plotly/validators/scatterternary/_textfont.py +++ b/plotly/validators/scatterternary/_textfont.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/scatterternary/_textposition.py b/plotly/validators/scatterternary/_textposition.py index 16248fe050..7fd0757a6e 100644 --- a/plotly/validators/scatterternary/_textposition.py +++ b/plotly/validators/scatterternary/_textposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( diff --git a/plotly/validators/scatterternary/_textpositionsrc.py b/plotly/validators/scatterternary/_textpositionsrc.py index 3a7d174012..ee8120a247 100644 --- a/plotly/validators/scatterternary/_textpositionsrc.py +++ b/plotly/validators/scatterternary/_textpositionsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/_textsrc.py b/plotly/validators/scatterternary/_textsrc.py index 99ec7ea4fa..f70810db5d 100644 --- a/plotly/validators/scatterternary/_textsrc.py +++ b/plotly/validators/scatterternary/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/_texttemplate.py b/plotly/validators/scatterternary/_texttemplate.py index c7b88d3cc3..5326c61ea4 100644 --- a/plotly/validators/scatterternary/_texttemplate.py +++ b/plotly/validators/scatterternary/_texttemplate.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/scatterternary/_texttemplatesrc.py b/plotly/validators/scatterternary/_texttemplatesrc.py index a43ec40b7d..81dcaed256 100644 --- a/plotly/validators/scatterternary/_texttemplatesrc.py +++ b/plotly/validators/scatterternary/_texttemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/_uid.py b/plotly/validators/scatterternary/_uid.py index 16601f34a2..42ecb98435 100644 --- a/plotly/validators/scatterternary/_uid.py +++ b/plotly/validators/scatterternary/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/scatterternary/_uirevision.py b/plotly/validators/scatterternary/_uirevision.py index 4e3e938b82..ffd87a6ab5 100644 --- a/plotly/validators/scatterternary/_uirevision.py +++ b/plotly/validators/scatterternary/_uirevision.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/_unselected.py b/plotly/validators/scatterternary/_unselected.py index 62f94795f2..aee6d19fa5 100644 --- a/plotly/validators/scatterternary/_unselected.py +++ b/plotly/validators/scatterternary/_unselected.py @@ -1,25 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterternary/_visible.py b/plotly/validators/scatterternary/_visible.py index e85ebda34f..496233961a 100644 --- a/plotly/validators/scatterternary/_visible.py +++ b/plotly/validators/scatterternary/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/scatterternary/hoverlabel/__init__.py b/plotly/validators/scatterternary/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/scatterternary/hoverlabel/__init__.py +++ b/plotly/validators/scatterternary/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/scatterternary/hoverlabel/_align.py b/plotly/validators/scatterternary/hoverlabel/_align.py index 47c6698b66..814a272f49 100644 --- a/plotly/validators/scatterternary/hoverlabel/_align.py +++ b/plotly/validators/scatterternary/hoverlabel/_align.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/scatterternary/hoverlabel/_alignsrc.py b/plotly/validators/scatterternary/hoverlabel/_alignsrc.py index cda87a56db..b52c7c8c6c 100644 --- a/plotly/validators/scatterternary/hoverlabel/_alignsrc.py +++ b/plotly/validators/scatterternary/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/hoverlabel/_bgcolor.py b/plotly/validators/scatterternary/hoverlabel/_bgcolor.py index 73d0137177..845d25cd40 100644 --- a/plotly/validators/scatterternary/hoverlabel/_bgcolor.py +++ b/plotly/validators/scatterternary/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scatterternary/hoverlabel/_bgcolorsrc.py b/plotly/validators/scatterternary/hoverlabel/_bgcolorsrc.py index c42c0241a6..0c10d95492 100644 --- a/plotly/validators/scatterternary/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/scatterternary/hoverlabel/_bgcolorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/hoverlabel/_bordercolor.py b/plotly/validators/scatterternary/hoverlabel/_bordercolor.py index 24d8499ddf..00748fb606 100644 --- a/plotly/validators/scatterternary/hoverlabel/_bordercolor.py +++ b/plotly/validators/scatterternary/hoverlabel/_bordercolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scatterternary/hoverlabel/_bordercolorsrc.py b/plotly/validators/scatterternary/hoverlabel/_bordercolorsrc.py index 90944c386f..7cc5ac5356 100644 --- a/plotly/validators/scatterternary/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/scatterternary/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/hoverlabel/_font.py b/plotly/validators/scatterternary/hoverlabel/_font.py index 770e212efe..97b2193dc1 100644 --- a/plotly/validators/scatterternary/hoverlabel/_font.py +++ b/plotly/validators/scatterternary/hoverlabel/_font.py @@ -1,87 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/scatterternary/hoverlabel/_namelength.py b/plotly/validators/scatterternary/hoverlabel/_namelength.py index aa8051ff47..0ef849ec9e 100644 --- a/plotly/validators/scatterternary/hoverlabel/_namelength.py +++ b/plotly/validators/scatterternary/hoverlabel/_namelength.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/scatterternary/hoverlabel/_namelengthsrc.py b/plotly/validators/scatterternary/hoverlabel/_namelengthsrc.py index 05c3cd07cb..66525bfe60 100644 --- a/plotly/validators/scatterternary/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/scatterternary/hoverlabel/_namelengthsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/hoverlabel/font/__init__.py b/plotly/validators/scatterternary/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/scatterternary/hoverlabel/font/__init__.py +++ b/plotly/validators/scatterternary/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatterternary/hoverlabel/font/_color.py b/plotly/validators/scatterternary/hoverlabel/font/_color.py index d1f685030c..033b7a3efa 100644 --- a/plotly/validators/scatterternary/hoverlabel/font/_color.py +++ b/plotly/validators/scatterternary/hoverlabel/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scatterternary/hoverlabel/font/_colorsrc.py b/plotly/validators/scatterternary/hoverlabel/font/_colorsrc.py index 5566b9348f..fe8d90c721 100644 --- a/plotly/validators/scatterternary/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/scatterternary/hoverlabel/font/_colorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/hoverlabel/font/_family.py b/plotly/validators/scatterternary/hoverlabel/font/_family.py index 7c25acf03a..0a5e8f677c 100644 --- a/plotly/validators/scatterternary/hoverlabel/font/_family.py +++ b/plotly/validators/scatterternary/hoverlabel/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/scatterternary/hoverlabel/font/_familysrc.py b/plotly/validators/scatterternary/hoverlabel/font/_familysrc.py index 5ca85d9e44..b1ed82d937 100644 --- a/plotly/validators/scatterternary/hoverlabel/font/_familysrc.py +++ b/plotly/validators/scatterternary/hoverlabel/font/_familysrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/hoverlabel/font/_lineposition.py b/plotly/validators/scatterternary/hoverlabel/font/_lineposition.py index 6c96076c99..8d2407f361 100644 --- a/plotly/validators/scatterternary/hoverlabel/font/_lineposition.py +++ b/plotly/validators/scatterternary/hoverlabel/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/scatterternary/hoverlabel/font/_linepositionsrc.py b/plotly/validators/scatterternary/hoverlabel/font/_linepositionsrc.py index 70fe67db64..95a40e4f78 100644 --- a/plotly/validators/scatterternary/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/scatterternary/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/hoverlabel/font/_shadow.py b/plotly/validators/scatterternary/hoverlabel/font/_shadow.py index bc731a7f1b..c24077c6fc 100644 --- a/plotly/validators/scatterternary/hoverlabel/font/_shadow.py +++ b/plotly/validators/scatterternary/hoverlabel/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/scatterternary/hoverlabel/font/_shadowsrc.py b/plotly/validators/scatterternary/hoverlabel/font/_shadowsrc.py index 11da081380..8997dc3ad4 100644 --- a/plotly/validators/scatterternary/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/scatterternary/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/hoverlabel/font/_size.py b/plotly/validators/scatterternary/hoverlabel/font/_size.py index 3dde4e07dd..a48559f7d6 100644 --- a/plotly/validators/scatterternary/hoverlabel/font/_size.py +++ b/plotly/validators/scatterternary/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/scatterternary/hoverlabel/font/_sizesrc.py b/plotly/validators/scatterternary/hoverlabel/font/_sizesrc.py index 1d0dbb0fe3..152d38dcfc 100644 --- a/plotly/validators/scatterternary/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/scatterternary/hoverlabel/font/_sizesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/hoverlabel/font/_style.py b/plotly/validators/scatterternary/hoverlabel/font/_style.py index 95c40664a8..a898ca0fe4 100644 --- a/plotly/validators/scatterternary/hoverlabel/font/_style.py +++ b/plotly/validators/scatterternary/hoverlabel/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/scatterternary/hoverlabel/font/_stylesrc.py b/plotly/validators/scatterternary/hoverlabel/font/_stylesrc.py index a2dd240b31..04d8b58f16 100644 --- a/plotly/validators/scatterternary/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/scatterternary/hoverlabel/font/_stylesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/hoverlabel/font/_textcase.py b/plotly/validators/scatterternary/hoverlabel/font/_textcase.py index 2fe944b707..47d0f75445 100644 --- a/plotly/validators/scatterternary/hoverlabel/font/_textcase.py +++ b/plotly/validators/scatterternary/hoverlabel/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/scatterternary/hoverlabel/font/_textcasesrc.py b/plotly/validators/scatterternary/hoverlabel/font/_textcasesrc.py index 0c60a0efec..cf7ca49ca5 100644 --- a/plotly/validators/scatterternary/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/scatterternary/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/hoverlabel/font/_variant.py b/plotly/validators/scatterternary/hoverlabel/font/_variant.py index cae9918914..4040df0892 100644 --- a/plotly/validators/scatterternary/hoverlabel/font/_variant.py +++ b/plotly/validators/scatterternary/hoverlabel/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/scatterternary/hoverlabel/font/_variantsrc.py b/plotly/validators/scatterternary/hoverlabel/font/_variantsrc.py index 0f31e19087..b030f4230d 100644 --- a/plotly/validators/scatterternary/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/scatterternary/hoverlabel/font/_variantsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/hoverlabel/font/_weight.py b/plotly/validators/scatterternary/hoverlabel/font/_weight.py index d2c319ecf1..24993fe826 100644 --- a/plotly/validators/scatterternary/hoverlabel/font/_weight.py +++ b/plotly/validators/scatterternary/hoverlabel/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/scatterternary/hoverlabel/font/_weightsrc.py b/plotly/validators/scatterternary/hoverlabel/font/_weightsrc.py index 1852068705..a9f5a25620 100644 --- a/plotly/validators/scatterternary/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/scatterternary/hoverlabel/font/_weightsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/legendgrouptitle/__init__.py b/plotly/validators/scatterternary/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/scatterternary/legendgrouptitle/__init__.py +++ b/plotly/validators/scatterternary/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/scatterternary/legendgrouptitle/_font.py b/plotly/validators/scatterternary/legendgrouptitle/_font.py index ca7d2c203b..746e21994d 100644 --- a/plotly/validators/scatterternary/legendgrouptitle/_font.py +++ b/plotly/validators/scatterternary/legendgrouptitle/_font.py @@ -1,63 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/scatterternary/legendgrouptitle/_text.py b/plotly/validators/scatterternary/legendgrouptitle/_text.py index 9899db85ba..368cbe958b 100644 --- a/plotly/validators/scatterternary/legendgrouptitle/_text.py +++ b/plotly/validators/scatterternary/legendgrouptitle/_text.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterternary/legendgrouptitle/font/__init__.py b/plotly/validators/scatterternary/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/scatterternary/legendgrouptitle/font/__init__.py +++ b/plotly/validators/scatterternary/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scatterternary/legendgrouptitle/font/_color.py b/plotly/validators/scatterternary/legendgrouptitle/font/_color.py index 0b0dc5f82d..9488e9e7c8 100644 --- a/plotly/validators/scatterternary/legendgrouptitle/font/_color.py +++ b/plotly/validators/scatterternary/legendgrouptitle/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterternary/legendgrouptitle/font/_family.py b/plotly/validators/scatterternary/legendgrouptitle/font/_family.py index 944fc53561..6720aac62b 100644 --- a/plotly/validators/scatterternary/legendgrouptitle/font/_family.py +++ b/plotly/validators/scatterternary/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scatterternary/legendgrouptitle/font/_lineposition.py b/plotly/validators/scatterternary/legendgrouptitle/font/_lineposition.py index 8037a2cfc9..a283744640 100644 --- a/plotly/validators/scatterternary/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/scatterternary/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/scatterternary/legendgrouptitle/font/_shadow.py b/plotly/validators/scatterternary/legendgrouptitle/font/_shadow.py index 82e607cc1a..0ffbd96f84 100644 --- a/plotly/validators/scatterternary/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/scatterternary/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterternary/legendgrouptitle/font/_size.py b/plotly/validators/scatterternary/legendgrouptitle/font/_size.py index 9d224029fd..89663fd05e 100644 --- a/plotly/validators/scatterternary/legendgrouptitle/font/_size.py +++ b/plotly/validators/scatterternary/legendgrouptitle/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scatterternary/legendgrouptitle/font/_style.py b/plotly/validators/scatterternary/legendgrouptitle/font/_style.py index e08f8e552e..0aba474e85 100644 --- a/plotly/validators/scatterternary/legendgrouptitle/font/_style.py +++ b/plotly/validators/scatterternary/legendgrouptitle/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scatterternary/legendgrouptitle/font/_textcase.py b/plotly/validators/scatterternary/legendgrouptitle/font/_textcase.py index 47e37b4b6d..75e4374cd3 100644 --- a/plotly/validators/scatterternary/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/scatterternary/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/scatterternary/legendgrouptitle/font/_variant.py b/plotly/validators/scatterternary/legendgrouptitle/font/_variant.py index 5b4004dcd5..9af5a287ce 100644 --- a/plotly/validators/scatterternary/legendgrouptitle/font/_variant.py +++ b/plotly/validators/scatterternary/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/scatterternary/legendgrouptitle/font/_weight.py b/plotly/validators/scatterternary/legendgrouptitle/font/_weight.py index e3dbdcaef3..a6b0353b3f 100644 --- a/plotly/validators/scatterternary/legendgrouptitle/font/_weight.py +++ b/plotly/validators/scatterternary/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scatterternary/line/__init__.py b/plotly/validators/scatterternary/line/__init__.py index 7045562597..d9c0ff9500 100644 --- a/plotly/validators/scatterternary/line/__init__.py +++ b/plotly/validators/scatterternary/line/__init__.py @@ -1,27 +1,16 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._width import WidthValidator - from ._smoothing import SmoothingValidator - from ._shape import ShapeValidator - from ._dash import DashValidator - from ._color import ColorValidator - from ._backoffsrc import BackoffsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._width.WidthValidator", + "._smoothing.SmoothingValidator", + "._shape.ShapeValidator", + "._dash.DashValidator", + "._color.ColorValidator", + "._backoffsrc.BackoffsrcValidator", + "._backoff.BackoffValidator", + ], +) diff --git a/plotly/validators/scatterternary/line/_backoff.py b/plotly/validators/scatterternary/line/_backoff.py index d5b43ba156..528a7dea0f 100644 --- a/plotly/validators/scatterternary/line/_backoff.py +++ b/plotly/validators/scatterternary/line/_backoff.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BackoffValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatterternary/line/_backoffsrc.py b/plotly/validators/scatterternary/line/_backoffsrc.py index 6ddc4cd88a..07ded17640 100644 --- a/plotly/validators/scatterternary/line/_backoffsrc.py +++ b/plotly/validators/scatterternary/line/_backoffsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BackoffsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/line/_color.py b/plotly/validators/scatterternary/line/_color.py index fe24f5e092..99d7fcda62 100644 --- a/plotly/validators/scatterternary/line/_color.py +++ b/plotly/validators/scatterternary/line/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterternary/line/_dash.py b/plotly/validators/scatterternary/line/_dash.py index 26e9f6a5fc..63b476e353 100644 --- a/plotly/validators/scatterternary/line/_dash.py +++ b/plotly/validators/scatterternary/line/_dash.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/scatterternary/line/_shape.py b/plotly/validators/scatterternary/line/_shape.py index 6597c45345..6bdfca052b 100644 --- a/plotly/validators/scatterternary/line/_shape.py +++ b/plotly/validators/scatterternary/line/_shape.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["linear", "spline"]), **kwargs, diff --git a/plotly/validators/scatterternary/line/_smoothing.py b/plotly/validators/scatterternary/line/_smoothing.py index 6360776842..82c8a5a965 100644 --- a/plotly/validators/scatterternary/line/_smoothing.py +++ b/plotly/validators/scatterternary/line/_smoothing.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SmoothingValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), max=kwargs.pop("max", 1.3), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatterternary/line/_width.py b/plotly/validators/scatterternary/line/_width.py index a76cb30509..83b1d3f3f7 100644 --- a/plotly/validators/scatterternary/line/_width.py +++ b/plotly/validators/scatterternary/line/_width.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterternary/marker/__init__.py b/plotly/validators/scatterternary/marker/__init__.py index 8434e73e3f..fea9868a7b 100644 --- a/plotly/validators/scatterternary/marker/__init__.py +++ b/plotly/validators/scatterternary/marker/__init__.py @@ -1,71 +1,38 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._symbolsrc import SymbolsrcValidator - from ._symbol import SymbolValidator - from ._standoffsrc import StandoffsrcValidator - from ._standoff import StandoffValidator - from ._sizesrc import SizesrcValidator - from ._sizeref import SizerefValidator - from ._sizemode import SizemodeValidator - from ._sizemin import SizeminValidator - from ._size import SizeValidator - from ._showscale import ShowscaleValidator - from ._reversescale import ReversescaleValidator - from ._opacitysrc import OpacitysrcValidator - from ._opacity import OpacityValidator - from ._maxdisplayed import MaxdisplayedValidator - from ._line import LineValidator - from ._gradient import GradientValidator - from ._colorsrc import ColorsrcValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._color import ColorValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - from ._autocolorscale import AutocolorscaleValidator - from ._anglesrc import AnglesrcValidator - from ._angleref import AnglerefValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatterternary/marker/_angle.py b/plotly/validators/scatterternary/marker/_angle.py index 6f2a84f2b7..6f6d215514 100644 --- a/plotly/validators/scatterternary/marker/_angle.py +++ b/plotly/validators/scatterternary/marker/_angle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AngleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/scatterternary/marker/_angleref.py b/plotly/validators/scatterternary/marker/_angleref.py index bb44902ecc..86d9d44f2f 100644 --- a/plotly/validators/scatterternary/marker/_angleref.py +++ b/plotly/validators/scatterternary/marker/_angleref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AnglerefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["previous", "up"]), **kwargs, diff --git a/plotly/validators/scatterternary/marker/_anglesrc.py b/plotly/validators/scatterternary/marker/_anglesrc.py index c4d56ab5af..41683765a5 100644 --- a/plotly/validators/scatterternary/marker/_anglesrc.py +++ b/plotly/validators/scatterternary/marker/_anglesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AnglesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/_autocolorscale.py b/plotly/validators/scatterternary/marker/_autocolorscale.py index 7b5e495279..c92233bcfa 100644 --- a/plotly/validators/scatterternary/marker/_autocolorscale.py +++ b/plotly/validators/scatterternary/marker/_autocolorscale.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scatterternary/marker/_cauto.py b/plotly/validators/scatterternary/marker/_cauto.py index a66d68552f..169250d4bf 100644 --- a/plotly/validators/scatterternary/marker/_cauto.py +++ b/plotly/validators/scatterternary/marker/_cauto.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scatterternary/marker/_cmax.py b/plotly/validators/scatterternary/marker/_cmax.py index b48fb89947..3a66902251 100644 --- a/plotly/validators/scatterternary/marker/_cmax.py +++ b/plotly/validators/scatterternary/marker/_cmax.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scatterternary/marker/_cmid.py b/plotly/validators/scatterternary/marker/_cmid.py index eb143f63a8..b883f5acb0 100644 --- a/plotly/validators/scatterternary/marker/_cmid.py +++ b/plotly/validators/scatterternary/marker/_cmid.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scatterternary/marker/_cmin.py b/plotly/validators/scatterternary/marker/_cmin.py index 779be26fd3..682204fcbd 100644 --- a/plotly/validators/scatterternary/marker/_cmin.py +++ b/plotly/validators/scatterternary/marker/_cmin.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scatterternary/marker/_color.py b/plotly/validators/scatterternary/marker/_color.py index 7a2eb2063d..06abfe31e3 100644 --- a/plotly/validators/scatterternary/marker/_color.py +++ b/plotly/validators/scatterternary/marker/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), colorscale_path=kwargs.pop( diff --git a/plotly/validators/scatterternary/marker/_coloraxis.py b/plotly/validators/scatterternary/marker/_coloraxis.py index 4256b63109..becfe31208 100644 --- a/plotly/validators/scatterternary/marker/_coloraxis.py +++ b/plotly/validators/scatterternary/marker/_coloraxis.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/scatterternary/marker/_colorbar.py b/plotly/validators/scatterternary/marker/_colorbar.py index ca8259e2ac..c5e3670787 100644 --- a/plotly/validators/scatterternary/marker/_colorbar.py +++ b/plotly/validators/scatterternary/marker/_colorbar.py @@ -1,281 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterternary/marker/_colorscale.py b/plotly/validators/scatterternary/marker/_colorscale.py index 41df3b9842..bddd26f954 100644 --- a/plotly/validators/scatterternary/marker/_colorscale.py +++ b/plotly/validators/scatterternary/marker/_colorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/scatterternary/marker/_colorsrc.py b/plotly/validators/scatterternary/marker/_colorsrc.py index 0b98a3554d..aed42a3835 100644 --- a/plotly/validators/scatterternary/marker/_colorsrc.py +++ b/plotly/validators/scatterternary/marker/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/_gradient.py b/plotly/validators/scatterternary/marker/_gradient.py index 9cdfc65250..b7900fbae9 100644 --- a/plotly/validators/scatterternary/marker/_gradient.py +++ b/plotly/validators/scatterternary/marker/_gradient.py @@ -1,30 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class GradientValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterternary/marker/_line.py b/plotly/validators/scatterternary/marker/_line.py index dbe66dd21a..9c621cda4a 100644 --- a/plotly/validators/scatterternary/marker/_line.py +++ b/plotly/validators/scatterternary/marker/_line.py @@ -1,106 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterternary/marker/_maxdisplayed.py b/plotly/validators/scatterternary/marker/_maxdisplayed.py index 9ea5d497f1..d386b497e6 100644 --- a/plotly/validators/scatterternary/marker/_maxdisplayed.py +++ b/plotly/validators/scatterternary/marker/_maxdisplayed.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxdisplayedValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterternary/marker/_opacity.py b/plotly/validators/scatterternary/marker/_opacity.py index dca4a9a616..4b875fc9bd 100644 --- a/plotly/validators/scatterternary/marker/_opacity.py +++ b/plotly/validators/scatterternary/marker/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), diff --git a/plotly/validators/scatterternary/marker/_opacitysrc.py b/plotly/validators/scatterternary/marker/_opacitysrc.py index 6d5545776b..0c57af1601 100644 --- a/plotly/validators/scatterternary/marker/_opacitysrc.py +++ b/plotly/validators/scatterternary/marker/_opacitysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/_reversescale.py b/plotly/validators/scatterternary/marker/_reversescale.py index 41a94e2b11..161262db23 100644 --- a/plotly/validators/scatterternary/marker/_reversescale.py +++ b/plotly/validators/scatterternary/marker/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/_showscale.py b/plotly/validators/scatterternary/marker/_showscale.py index 746368c459..0972d63492 100644 --- a/plotly/validators/scatterternary/marker/_showscale.py +++ b/plotly/validators/scatterternary/marker/_showscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/_size.py b/plotly/validators/scatterternary/marker/_size.py index 1a49faffdd..bcfef0729e 100644 --- a/plotly/validators/scatterternary/marker/_size.py +++ b/plotly/validators/scatterternary/marker/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatterternary/marker/_sizemin.py b/plotly/validators/scatterternary/marker/_sizemin.py index e81d4795e5..b53ca79509 100644 --- a/plotly/validators/scatterternary/marker/_sizemin.py +++ b/plotly/validators/scatterternary/marker/_sizemin.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterternary/marker/_sizemode.py b/plotly/validators/scatterternary/marker/_sizemode.py index 1c7f82297e..9df9e2808b 100644 --- a/plotly/validators/scatterternary/marker/_sizemode.py +++ b/plotly/validators/scatterternary/marker/_sizemode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["diameter", "area"]), **kwargs, diff --git a/plotly/validators/scatterternary/marker/_sizeref.py b/plotly/validators/scatterternary/marker/_sizeref.py index a6247e7157..485b2478f5 100644 --- a/plotly/validators/scatterternary/marker/_sizeref.py +++ b/plotly/validators/scatterternary/marker/_sizeref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/_sizesrc.py b/plotly/validators/scatterternary/marker/_sizesrc.py index f2b4591c92..893db99afd 100644 --- a/plotly/validators/scatterternary/marker/_sizesrc.py +++ b/plotly/validators/scatterternary/marker/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/_standoff.py b/plotly/validators/scatterternary/marker/_standoff.py index 3c8f448dcf..e350113102 100644 --- a/plotly/validators/scatterternary/marker/_standoff.py +++ b/plotly/validators/scatterternary/marker/_standoff.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StandoffValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatterternary/marker/_standoffsrc.py b/plotly/validators/scatterternary/marker/_standoffsrc.py index 9bb231531e..09584cb0b8 100644 --- a/plotly/validators/scatterternary/marker/_standoffsrc.py +++ b/plotly/validators/scatterternary/marker/_standoffsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StandoffsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/_symbol.py b/plotly/validators/scatterternary/marker/_symbol.py index 2760df6fc3..0d75ab5a67 100644 --- a/plotly/validators/scatterternary/marker/_symbol.py +++ b/plotly/validators/scatterternary/marker/_symbol.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( diff --git a/plotly/validators/scatterternary/marker/_symbolsrc.py b/plotly/validators/scatterternary/marker/_symbolsrc.py index 5961d93f06..f0721a6bcc 100644 --- a/plotly/validators/scatterternary/marker/_symbolsrc.py +++ b/plotly/validators/scatterternary/marker/_symbolsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/colorbar/__init__.py b/plotly/validators/scatterternary/marker/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/scatterternary/marker/colorbar/__init__.py +++ b/plotly/validators/scatterternary/marker/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatterternary/marker/colorbar/_bgcolor.py b/plotly/validators/scatterternary/marker/colorbar/_bgcolor.py index a5f1bcde73..51d09c02bc 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_bgcolor.py +++ b/plotly/validators/scatterternary/marker/colorbar/_bgcolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/colorbar/_bordercolor.py b/plotly/validators/scatterternary/marker/colorbar/_bordercolor.py index 68bde61b93..d5bf6c4436 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_bordercolor.py +++ b/plotly/validators/scatterternary/marker/colorbar/_bordercolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/colorbar/_borderwidth.py b/plotly/validators/scatterternary/marker/colorbar/_borderwidth.py index a763e29ae5..81d8304a8c 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_borderwidth.py +++ b/plotly/validators/scatterternary/marker/colorbar/_borderwidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterternary/marker/colorbar/_dtick.py b/plotly/validators/scatterternary/marker/colorbar/_dtick.py index dafac71dd0..6bd9f44226 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_dtick.py +++ b/plotly/validators/scatterternary/marker/colorbar/_dtick.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/scatterternary/marker/colorbar/_exponentformat.py b/plotly/validators/scatterternary/marker/colorbar/_exponentformat.py index 8d2587bf4e..47e4b22fac 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_exponentformat.py +++ b/plotly/validators/scatterternary/marker/colorbar/_exponentformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/scatterternary/marker/colorbar/_labelalias.py b/plotly/validators/scatterternary/marker/colorbar/_labelalias.py index 9f68b13f79..3f6292249f 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_labelalias.py +++ b/plotly/validators/scatterternary/marker/colorbar/_labelalias.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/colorbar/_len.py b/plotly/validators/scatterternary/marker/colorbar/_len.py index 4154b57dfa..aff25c19f9 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_len.py +++ b/plotly/validators/scatterternary/marker/colorbar/_len.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterternary/marker/colorbar/_lenmode.py b/plotly/validators/scatterternary/marker/colorbar/_lenmode.py index e533009dfe..4a32e9d0d3 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_lenmode.py +++ b/plotly/validators/scatterternary/marker/colorbar/_lenmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/scatterternary/marker/colorbar/_minexponent.py b/plotly/validators/scatterternary/marker/colorbar/_minexponent.py index fad0d9ba68..1a02584d6e 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_minexponent.py +++ b/plotly/validators/scatterternary/marker/colorbar/_minexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterternary/marker/colorbar/_nticks.py b/plotly/validators/scatterternary/marker/colorbar/_nticks.py index 728e6cf5fc..ee9ebc3c13 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_nticks.py +++ b/plotly/validators/scatterternary/marker/colorbar/_nticks.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterternary/marker/colorbar/_orientation.py b/plotly/validators/scatterternary/marker/colorbar/_orientation.py index 286b21193a..bb8da9981b 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_orientation.py +++ b/plotly/validators/scatterternary/marker/colorbar/_orientation.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/scatterternary/marker/colorbar/_outlinecolor.py b/plotly/validators/scatterternary/marker/colorbar/_outlinecolor.py index d9bc481ab8..bbb19b791e 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_outlinecolor.py +++ b/plotly/validators/scatterternary/marker/colorbar/_outlinecolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/colorbar/_outlinewidth.py b/plotly/validators/scatterternary/marker/colorbar/_outlinewidth.py index b9bbeb4364..7bdb4569f5 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_outlinewidth.py +++ b/plotly/validators/scatterternary/marker/colorbar/_outlinewidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterternary/marker/colorbar/_separatethousands.py b/plotly/validators/scatterternary/marker/colorbar/_separatethousands.py index add26afaa0..d5b134882b 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_separatethousands.py +++ b/plotly/validators/scatterternary/marker/colorbar/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/colorbar/_showexponent.py b/plotly/validators/scatterternary/marker/colorbar/_showexponent.py index a5e14a4535..a3386be2dc 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_showexponent.py +++ b/plotly/validators/scatterternary/marker/colorbar/_showexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scatterternary/marker/colorbar/_showticklabels.py b/plotly/validators/scatterternary/marker/colorbar/_showticklabels.py index 7a4c0c2d57..a857257a0c 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_showticklabels.py +++ b/plotly/validators/scatterternary/marker/colorbar/_showticklabels.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/colorbar/_showtickprefix.py b/plotly/validators/scatterternary/marker/colorbar/_showtickprefix.py index 81fdbafe74..f39358577e 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_showtickprefix.py +++ b/plotly/validators/scatterternary/marker/colorbar/_showtickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scatterternary/marker/colorbar/_showticksuffix.py b/plotly/validators/scatterternary/marker/colorbar/_showticksuffix.py index f7a0a8e9f0..9aa9cf594b 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_showticksuffix.py +++ b/plotly/validators/scatterternary/marker/colorbar/_showticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/scatterternary/marker/colorbar/_thickness.py b/plotly/validators/scatterternary/marker/colorbar/_thickness.py index f561a2d9f0..3ec4f13be8 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_thickness.py +++ b/plotly/validators/scatterternary/marker/colorbar/_thickness.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterternary/marker/colorbar/_thicknessmode.py b/plotly/validators/scatterternary/marker/colorbar/_thicknessmode.py index 47ebc27f78..bd961bda9d 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_thicknessmode.py +++ b/plotly/validators/scatterternary/marker/colorbar/_thicknessmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/scatterternary/marker/colorbar/_tick0.py b/plotly/validators/scatterternary/marker/colorbar/_tick0.py index 3a3fcbad34..3ab755405e 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_tick0.py +++ b/plotly/validators/scatterternary/marker/colorbar/_tick0.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/scatterternary/marker/colorbar/_tickangle.py b/plotly/validators/scatterternary/marker/colorbar/_tickangle.py index 791e562c66..de7b2e97af 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_tickangle.py +++ b/plotly/validators/scatterternary/marker/colorbar/_tickangle.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/colorbar/_tickcolor.py b/plotly/validators/scatterternary/marker/colorbar/_tickcolor.py index d29d47c772..fedbca082d 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_tickcolor.py +++ b/plotly/validators/scatterternary/marker/colorbar/_tickcolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/colorbar/_tickfont.py b/plotly/validators/scatterternary/marker/colorbar/_tickfont.py index 689519f931..eaea46ce0a 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_tickfont.py +++ b/plotly/validators/scatterternary/marker/colorbar/_tickfont.py @@ -1,63 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/scatterternary/marker/colorbar/_tickformat.py b/plotly/validators/scatterternary/marker/colorbar/_tickformat.py index 9ea655ae50..ec02d0e233 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_tickformat.py +++ b/plotly/validators/scatterternary/marker/colorbar/_tickformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/colorbar/_tickformatstopdefaults.py b/plotly/validators/scatterternary/marker/colorbar/_tickformatstopdefaults.py index d4b11fcdae..2030a54a18 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/scatterternary/marker/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/scatterternary/marker/colorbar/_tickformatstops.py b/plotly/validators/scatterternary/marker/colorbar/_tickformatstops.py index 72c737165e..3424993727 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_tickformatstops.py +++ b/plotly/validators/scatterternary/marker/colorbar/_tickformatstops.py @@ -1,53 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterternary/marker/colorbar/_ticklabeloverflow.py b/plotly/validators/scatterternary/marker/colorbar/_ticklabeloverflow.py index 6669e91a36..e37205d44a 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/scatterternary/marker/colorbar/_ticklabeloverflow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/scatterternary/marker/colorbar/_ticklabelposition.py b/plotly/validators/scatterternary/marker/colorbar/_ticklabelposition.py index 4d39a438ed..a8a3ee9f69 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_ticklabelposition.py +++ b/plotly/validators/scatterternary/marker/colorbar/_ticklabelposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/scatterternary/marker/colorbar/_ticklabelstep.py b/plotly/validators/scatterternary/marker/colorbar/_ticklabelstep.py index b802d1e2b1..29373eb1bc 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_ticklabelstep.py +++ b/plotly/validators/scatterternary/marker/colorbar/_ticklabelstep.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scatterternary/marker/colorbar/_ticklen.py b/plotly/validators/scatterternary/marker/colorbar/_ticklen.py index f841431665..5b8b93edca 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_ticklen.py +++ b/plotly/validators/scatterternary/marker/colorbar/_ticklen.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterternary/marker/colorbar/_tickmode.py b/plotly/validators/scatterternary/marker/colorbar/_tickmode.py index 8e75129b7b..929af05b8c 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_tickmode.py +++ b/plotly/validators/scatterternary/marker/colorbar/_tickmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/scatterternary/marker/colorbar/_tickprefix.py b/plotly/validators/scatterternary/marker/colorbar/_tickprefix.py index ace5153659..8b44498667 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_tickprefix.py +++ b/plotly/validators/scatterternary/marker/colorbar/_tickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/colorbar/_ticks.py b/plotly/validators/scatterternary/marker/colorbar/_ticks.py index aa7022d228..00ee5109ca 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_ticks.py +++ b/plotly/validators/scatterternary/marker/colorbar/_ticks.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/scatterternary/marker/colorbar/_ticksuffix.py b/plotly/validators/scatterternary/marker/colorbar/_ticksuffix.py index bd0fb9078b..3e31f1cb0d 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_ticksuffix.py +++ b/plotly/validators/scatterternary/marker/colorbar/_ticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/colorbar/_ticktext.py b/plotly/validators/scatterternary/marker/colorbar/_ticktext.py index e2660460ef..a758c6ce2b 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_ticktext.py +++ b/plotly/validators/scatterternary/marker/colorbar/_ticktext.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/colorbar/_ticktextsrc.py b/plotly/validators/scatterternary/marker/colorbar/_ticktextsrc.py index b4dc596547..2d419a15c3 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_ticktextsrc.py +++ b/plotly/validators/scatterternary/marker/colorbar/_ticktextsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/colorbar/_tickvals.py b/plotly/validators/scatterternary/marker/colorbar/_tickvals.py index d031747d9a..5d1b4ff3d0 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_tickvals.py +++ b/plotly/validators/scatterternary/marker/colorbar/_tickvals.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/colorbar/_tickvalssrc.py b/plotly/validators/scatterternary/marker/colorbar/_tickvalssrc.py index f8ca43af11..cba18383b1 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_tickvalssrc.py +++ b/plotly/validators/scatterternary/marker/colorbar/_tickvalssrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/colorbar/_tickwidth.py b/plotly/validators/scatterternary/marker/colorbar/_tickwidth.py index 7bd99e66ec..15ae03af22 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_tickwidth.py +++ b/plotly/validators/scatterternary/marker/colorbar/_tickwidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterternary/marker/colorbar/_title.py b/plotly/validators/scatterternary/marker/colorbar/_title.py index e544abbc31..7244a8c2d1 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_title.py +++ b/plotly/validators/scatterternary/marker/colorbar/_title.py @@ -1,29 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterternary/marker/colorbar/_x.py b/plotly/validators/scatterternary/marker/colorbar/_x.py index fdb41ac315..12878ba1fc 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_x.py +++ b/plotly/validators/scatterternary/marker/colorbar/_x.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/colorbar/_xanchor.py b/plotly/validators/scatterternary/marker/colorbar/_xanchor.py index 9dd85a86c4..b21f83802f 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_xanchor.py +++ b/plotly/validators/scatterternary/marker/colorbar/_xanchor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/scatterternary/marker/colorbar/_xpad.py b/plotly/validators/scatterternary/marker/colorbar/_xpad.py index f1e619c8ac..40ebfea18f 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_xpad.py +++ b/plotly/validators/scatterternary/marker/colorbar/_xpad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterternary/marker/colorbar/_xref.py b/plotly/validators/scatterternary/marker/colorbar/_xref.py index 54adb56244..dcd153cf28 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_xref.py +++ b/plotly/validators/scatterternary/marker/colorbar/_xref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/scatterternary/marker/colorbar/_y.py b/plotly/validators/scatterternary/marker/colorbar/_y.py index c8316d54f4..1c15da71cc 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_y.py +++ b/plotly/validators/scatterternary/marker/colorbar/_y.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/colorbar/_yanchor.py b/plotly/validators/scatterternary/marker/colorbar/_yanchor.py index b66ded0811..53d74d10d2 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_yanchor.py +++ b/plotly/validators/scatterternary/marker/colorbar/_yanchor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/scatterternary/marker/colorbar/_ypad.py b/plotly/validators/scatterternary/marker/colorbar/_ypad.py index 43026c0e12..664343f4d4 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_ypad.py +++ b/plotly/validators/scatterternary/marker/colorbar/_ypad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterternary/marker/colorbar/_yref.py b/plotly/validators/scatterternary/marker/colorbar/_yref.py index 924845e30e..eee40f3053 100644 --- a/plotly/validators/scatterternary/marker/colorbar/_yref.py +++ b/plotly/validators/scatterternary/marker/colorbar/_yref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/scatterternary/marker/colorbar/tickfont/__init__.py b/plotly/validators/scatterternary/marker/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/scatterternary/marker/colorbar/tickfont/__init__.py +++ b/plotly/validators/scatterternary/marker/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scatterternary/marker/colorbar/tickfont/_color.py b/plotly/validators/scatterternary/marker/colorbar/tickfont/_color.py index ddf66061f1..cfb37e41bc 100644 --- a/plotly/validators/scatterternary/marker/colorbar/tickfont/_color.py +++ b/plotly/validators/scatterternary/marker/colorbar/tickfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/colorbar/tickfont/_family.py b/plotly/validators/scatterternary/marker/colorbar/tickfont/_family.py index 02b7c44366..f398a5632c 100644 --- a/plotly/validators/scatterternary/marker/colorbar/tickfont/_family.py +++ b/plotly/validators/scatterternary/marker/colorbar/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scatterternary/marker/colorbar/tickfont/_lineposition.py b/plotly/validators/scatterternary/marker/colorbar/tickfont/_lineposition.py index b22d08713e..099b42a38e 100644 --- a/plotly/validators/scatterternary/marker/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/scatterternary/marker/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/scatterternary/marker/colorbar/tickfont/_shadow.py b/plotly/validators/scatterternary/marker/colorbar/tickfont/_shadow.py index 69fb503659..db46f423b3 100644 --- a/plotly/validators/scatterternary/marker/colorbar/tickfont/_shadow.py +++ b/plotly/validators/scatterternary/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/colorbar/tickfont/_size.py b/plotly/validators/scatterternary/marker/colorbar/tickfont/_size.py index 0346edfca6..53e54c381f 100644 --- a/plotly/validators/scatterternary/marker/colorbar/tickfont/_size.py +++ b/plotly/validators/scatterternary/marker/colorbar/tickfont/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scatterternary/marker/colorbar/tickfont/_style.py b/plotly/validators/scatterternary/marker/colorbar/tickfont/_style.py index a1ec53a0b0..cc796a4dd5 100644 --- a/plotly/validators/scatterternary/marker/colorbar/tickfont/_style.py +++ b/plotly/validators/scatterternary/marker/colorbar/tickfont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scatterternary/marker/colorbar/tickfont/_textcase.py b/plotly/validators/scatterternary/marker/colorbar/tickfont/_textcase.py index 40529e80a6..c08bcaeabe 100644 --- a/plotly/validators/scatterternary/marker/colorbar/tickfont/_textcase.py +++ b/plotly/validators/scatterternary/marker/colorbar/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/scatterternary/marker/colorbar/tickfont/_variant.py b/plotly/validators/scatterternary/marker/colorbar/tickfont/_variant.py index ed4a088814..2db3d3e37a 100644 --- a/plotly/validators/scatterternary/marker/colorbar/tickfont/_variant.py +++ b/plotly/validators/scatterternary/marker/colorbar/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/scatterternary/marker/colorbar/tickfont/_weight.py b/plotly/validators/scatterternary/marker/colorbar/tickfont/_weight.py index a4bd6dee3b..84deeadb3c 100644 --- a/plotly/validators/scatterternary/marker/colorbar/tickfont/_weight.py +++ b/plotly/validators/scatterternary/marker/colorbar/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scatterternary/marker/colorbar/tickformatstop/__init__.py b/plotly/validators/scatterternary/marker/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/scatterternary/marker/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/scatterternary/marker/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_dtickrange.py index 7efc9671de..760c42d4cc 100644 --- a/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( "items", diff --git a/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_enabled.py b/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_enabled.py index 6a9232ca72..8552ed5dbb 100644 --- a/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_name.py b/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_name.py index 12ab2efb8b..e49e615f2b 100644 --- a/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_name.py +++ b/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_templateitemname.py index ca978ee694..e3d85055a8 100644 --- a/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_value.py b/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_value.py index 1742dc5826..108af4bab5 100644 --- a/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_value.py +++ b/plotly/validators/scatterternary/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/colorbar/title/__init__.py b/plotly/validators/scatterternary/marker/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/scatterternary/marker/colorbar/title/__init__.py +++ b/plotly/validators/scatterternary/marker/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/scatterternary/marker/colorbar/title/_font.py b/plotly/validators/scatterternary/marker/colorbar/title/_font.py index f609564852..cac78a1727 100644 --- a/plotly/validators/scatterternary/marker/colorbar/title/_font.py +++ b/plotly/validators/scatterternary/marker/colorbar/title/_font.py @@ -1,63 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/scatterternary/marker/colorbar/title/_side.py b/plotly/validators/scatterternary/marker/colorbar/title/_side.py index 3d6674215a..b1ad81ac93 100644 --- a/plotly/validators/scatterternary/marker/colorbar/title/_side.py +++ b/plotly/validators/scatterternary/marker/colorbar/title/_side.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/scatterternary/marker/colorbar/title/_text.py b/plotly/validators/scatterternary/marker/colorbar/title/_text.py index a8deee2f04..9b47619ced 100644 --- a/plotly/validators/scatterternary/marker/colorbar/title/_text.py +++ b/plotly/validators/scatterternary/marker/colorbar/title/_text.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/colorbar/title/font/__init__.py b/plotly/validators/scatterternary/marker/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/scatterternary/marker/colorbar/title/font/__init__.py +++ b/plotly/validators/scatterternary/marker/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scatterternary/marker/colorbar/title/font/_color.py b/plotly/validators/scatterternary/marker/colorbar/title/font/_color.py index 23db67cc0f..be75711e20 100644 --- a/plotly/validators/scatterternary/marker/colorbar/title/font/_color.py +++ b/plotly/validators/scatterternary/marker/colorbar/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/colorbar/title/font/_family.py b/plotly/validators/scatterternary/marker/colorbar/title/font/_family.py index 5f24924972..cff721aff3 100644 --- a/plotly/validators/scatterternary/marker/colorbar/title/font/_family.py +++ b/plotly/validators/scatterternary/marker/colorbar/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scatterternary/marker/colorbar/title/font/_lineposition.py b/plotly/validators/scatterternary/marker/colorbar/title/font/_lineposition.py index a3544b10f4..deca68be89 100644 --- a/plotly/validators/scatterternary/marker/colorbar/title/font/_lineposition.py +++ b/plotly/validators/scatterternary/marker/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/scatterternary/marker/colorbar/title/font/_shadow.py b/plotly/validators/scatterternary/marker/colorbar/title/font/_shadow.py index c06abe2c91..9f360b7a53 100644 --- a/plotly/validators/scatterternary/marker/colorbar/title/font/_shadow.py +++ b/plotly/validators/scatterternary/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/colorbar/title/font/_size.py b/plotly/validators/scatterternary/marker/colorbar/title/font/_size.py index 1a8c84ff3d..f80cfa05ba 100644 --- a/plotly/validators/scatterternary/marker/colorbar/title/font/_size.py +++ b/plotly/validators/scatterternary/marker/colorbar/title/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/scatterternary/marker/colorbar/title/font/_style.py b/plotly/validators/scatterternary/marker/colorbar/title/font/_style.py index 4a9923b997..c8b0e572c3 100644 --- a/plotly/validators/scatterternary/marker/colorbar/title/font/_style.py +++ b/plotly/validators/scatterternary/marker/colorbar/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/scatterternary/marker/colorbar/title/font/_textcase.py b/plotly/validators/scatterternary/marker/colorbar/title/font/_textcase.py index a545b1cdd0..621289196d 100644 --- a/plotly/validators/scatterternary/marker/colorbar/title/font/_textcase.py +++ b/plotly/validators/scatterternary/marker/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/scatterternary/marker/colorbar/title/font/_variant.py b/plotly/validators/scatterternary/marker/colorbar/title/font/_variant.py index 3d444fac79..2c28ce01f9 100644 --- a/plotly/validators/scatterternary/marker/colorbar/title/font/_variant.py +++ b/plotly/validators/scatterternary/marker/colorbar/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/scatterternary/marker/colorbar/title/font/_weight.py b/plotly/validators/scatterternary/marker/colorbar/title/font/_weight.py index 4cc8546703..c24d4b4821 100644 --- a/plotly/validators/scatterternary/marker/colorbar/title/font/_weight.py +++ b/plotly/validators/scatterternary/marker/colorbar/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/scatterternary/marker/gradient/__init__.py b/plotly/validators/scatterternary/marker/gradient/__init__.py index 624a280ea4..f5373e7822 100644 --- a/plotly/validators/scatterternary/marker/gradient/__init__.py +++ b/plotly/validators/scatterternary/marker/gradient/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._typesrc import TypesrcValidator - from ._type import TypeValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._typesrc.TypesrcValidator", + "._type.TypeValidator", + "._colorsrc.ColorsrcValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/scatterternary/marker/gradient/_color.py b/plotly/validators/scatterternary/marker/gradient/_color.py index c6545dbf0e..7cd0b0e687 100644 --- a/plotly/validators/scatterternary/marker/gradient/_color.py +++ b/plotly/validators/scatterternary/marker/gradient/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scatterternary/marker/gradient/_colorsrc.py b/plotly/validators/scatterternary/marker/gradient/_colorsrc.py index 4d414b5318..c9e06fbe9c 100644 --- a/plotly/validators/scatterternary/marker/gradient/_colorsrc.py +++ b/plotly/validators/scatterternary/marker/gradient/_colorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/gradient/_type.py b/plotly/validators/scatterternary/marker/gradient/_type.py index c3ff683911..40844f92a7 100644 --- a/plotly/validators/scatterternary/marker/gradient/_type.py +++ b/plotly/validators/scatterternary/marker/gradient/_type.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/scatterternary/marker/gradient/_typesrc.py b/plotly/validators/scatterternary/marker/gradient/_typesrc.py index 0ff73909d2..1adacd3205 100644 --- a/plotly/validators/scatterternary/marker/gradient/_typesrc.py +++ b/plotly/validators/scatterternary/marker/gradient/_typesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/line/__init__.py b/plotly/validators/scatterternary/marker/line/__init__.py index facbe33f88..4ba3ea340b 100644 --- a/plotly/validators/scatterternary/marker/line/__init__.py +++ b/plotly/validators/scatterternary/marker/line/__init__.py @@ -1,37 +1,21 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._widthsrc import WidthsrcValidator - from ._width import WidthValidator - from ._reversescale import ReversescaleValidator - from ._colorsrc import ColorsrcValidator - from ._colorscale import ColorscaleValidator - from ._coloraxis import ColoraxisValidator - from ._color import ColorValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatterternary/marker/line/_autocolorscale.py b/plotly/validators/scatterternary/marker/line/_autocolorscale.py index 3fdd491ba2..cc4334c569 100644 --- a/plotly/validators/scatterternary/marker/line/_autocolorscale.py +++ b/plotly/validators/scatterternary/marker/line/_autocolorscale.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scatterternary/marker/line/_cauto.py b/plotly/validators/scatterternary/marker/line/_cauto.py index bc0cc209d3..fbdf2e41bd 100644 --- a/plotly/validators/scatterternary/marker/line/_cauto.py +++ b/plotly/validators/scatterternary/marker/line/_cauto.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scatterternary/marker/line/_cmax.py b/plotly/validators/scatterternary/marker/line/_cmax.py index af3ffedfed..ac09b48e94 100644 --- a/plotly/validators/scatterternary/marker/line/_cmax.py +++ b/plotly/validators/scatterternary/marker/line/_cmax.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scatterternary/marker/line/_cmid.py b/plotly/validators/scatterternary/marker/line/_cmid.py index 5a7ff308b2..71aecd2522 100644 --- a/plotly/validators/scatterternary/marker/line/_cmid.py +++ b/plotly/validators/scatterternary/marker/line/_cmid.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/scatterternary/marker/line/_cmin.py b/plotly/validators/scatterternary/marker/line/_cmin.py index 1dcd158cfc..b810694114 100644 --- a/plotly/validators/scatterternary/marker/line/_cmin.py +++ b/plotly/validators/scatterternary/marker/line/_cmin.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/scatterternary/marker/line/_color.py b/plotly/validators/scatterternary/marker/line/_color.py index b6d2040af5..02251204b7 100644 --- a/plotly/validators/scatterternary/marker/line/_color.py +++ b/plotly/validators/scatterternary/marker/line/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), colorscale_path=kwargs.pop( diff --git a/plotly/validators/scatterternary/marker/line/_coloraxis.py b/plotly/validators/scatterternary/marker/line/_coloraxis.py index daca94f888..d345d555cf 100644 --- a/plotly/validators/scatterternary/marker/line/_coloraxis.py +++ b/plotly/validators/scatterternary/marker/line/_coloraxis.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/scatterternary/marker/line/_colorscale.py b/plotly/validators/scatterternary/marker/line/_colorscale.py index 3c68c9aa42..0f60c2f7f0 100644 --- a/plotly/validators/scatterternary/marker/line/_colorscale.py +++ b/plotly/validators/scatterternary/marker/line/_colorscale.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/scatterternary/marker/line/_colorsrc.py b/plotly/validators/scatterternary/marker/line/_colorsrc.py index 751ee4036f..fdb31cfc28 100644 --- a/plotly/validators/scatterternary/marker/line/_colorsrc.py +++ b/plotly/validators/scatterternary/marker/line/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/line/_reversescale.py b/plotly/validators/scatterternary/marker/line/_reversescale.py index bb8e425555..2918e7f38a 100644 --- a/plotly/validators/scatterternary/marker/line/_reversescale.py +++ b/plotly/validators/scatterternary/marker/line/_reversescale.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/scatterternary/marker/line/_width.py b/plotly/validators/scatterternary/marker/line/_width.py index c8107b3c4b..450e428949 100644 --- a/plotly/validators/scatterternary/marker/line/_width.py +++ b/plotly/validators/scatterternary/marker/line/_width.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatterternary/marker/line/_widthsrc.py b/plotly/validators/scatterternary/marker/line/_widthsrc.py index b20747d128..93903034c0 100644 --- a/plotly/validators/scatterternary/marker/line/_widthsrc.py +++ b/plotly/validators/scatterternary/marker/line/_widthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/selected/__init__.py b/plotly/validators/scatterternary/selected/__init__.py index 3b0aeed383..9d2a313b83 100644 --- a/plotly/validators/scatterternary/selected/__init__.py +++ b/plotly/validators/scatterternary/selected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] +) diff --git a/plotly/validators/scatterternary/selected/_marker.py b/plotly/validators/scatterternary/selected/_marker.py index 3aacec97ad..f66b86d479 100644 --- a/plotly/validators/scatterternary/selected/_marker.py +++ b/plotly/validators/scatterternary/selected/_marker.py @@ -1,23 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterternary/selected/_textfont.py b/plotly/validators/scatterternary/selected/_textfont.py index de5d9f18cc..96795c4d69 100644 --- a/plotly/validators/scatterternary/selected/_textfont.py +++ b/plotly/validators/scatterternary/selected/_textfont.py @@ -1,19 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterternary/selected/marker/__init__.py b/plotly/validators/scatterternary/selected/marker/__init__.py index 8c321a38bc..c9c7226fe4 100644 --- a/plotly/validators/scatterternary/selected/marker/__init__.py +++ b/plotly/validators/scatterternary/selected/marker/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._size.SizeValidator", "._opacity.OpacityValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/scatterternary/selected/marker/_color.py b/plotly/validators/scatterternary/selected/marker/_color.py index 8cab348619..ec75b767f2 100644 --- a/plotly/validators/scatterternary/selected/marker/_color.py +++ b/plotly/validators/scatterternary/selected/marker/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterternary/selected/marker/_opacity.py b/plotly/validators/scatterternary/selected/marker/_opacity.py index 894dba7849..5911fb7fcb 100644 --- a/plotly/validators/scatterternary/selected/marker/_opacity.py +++ b/plotly/validators/scatterternary/selected/marker/_opacity.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatterternary/selected/marker/_size.py b/plotly/validators/scatterternary/selected/marker/_size.py index 555f486eeb..41ede0777c 100644 --- a/plotly/validators/scatterternary/selected/marker/_size.py +++ b/plotly/validators/scatterternary/selected/marker/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterternary/selected/textfont/__init__.py b/plotly/validators/scatterternary/selected/textfont/__init__.py index a9f087e5af..85a4cc9573 100644 --- a/plotly/validators/scatterternary/selected/textfont/__init__.py +++ b/plotly/validators/scatterternary/selected/textfont/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._color.ColorValidator"] +) diff --git a/plotly/validators/scatterternary/selected/textfont/_color.py b/plotly/validators/scatterternary/selected/textfont/_color.py index 1901554996..1f4f2de76c 100644 --- a/plotly/validators/scatterternary/selected/textfont/_color.py +++ b/plotly/validators/scatterternary/selected/textfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterternary/stream/__init__.py b/plotly/validators/scatterternary/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/scatterternary/stream/__init__.py +++ b/plotly/validators/scatterternary/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/scatterternary/stream/_maxpoints.py b/plotly/validators/scatterternary/stream/_maxpoints.py index 8a849f94a1..0d59c44a9b 100644 --- a/plotly/validators/scatterternary/stream/_maxpoints.py +++ b/plotly/validators/scatterternary/stream/_maxpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatterternary/stream/_token.py b/plotly/validators/scatterternary/stream/_token.py index 82f5aaf4a2..7d7b7b7543 100644 --- a/plotly/validators/scatterternary/stream/_token.py +++ b/plotly/validators/scatterternary/stream/_token.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/scatterternary/textfont/__init__.py b/plotly/validators/scatterternary/textfont/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/scatterternary/textfont/__init__.py +++ b/plotly/validators/scatterternary/textfont/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/scatterternary/textfont/_color.py b/plotly/validators/scatterternary/textfont/_color.py index 90febec549..3f47f7b68e 100644 --- a/plotly/validators/scatterternary/textfont/_color.py +++ b/plotly/validators/scatterternary/textfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/scatterternary/textfont/_colorsrc.py b/plotly/validators/scatterternary/textfont/_colorsrc.py index 9d46b7ad0e..c0c7d06014 100644 --- a/plotly/validators/scatterternary/textfont/_colorsrc.py +++ b/plotly/validators/scatterternary/textfont/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/textfont/_family.py b/plotly/validators/scatterternary/textfont/_family.py index b182ea7d8e..f092c881aa 100644 --- a/plotly/validators/scatterternary/textfont/_family.py +++ b/plotly/validators/scatterternary/textfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/scatterternary/textfont/_familysrc.py b/plotly/validators/scatterternary/textfont/_familysrc.py index 94f6e83fd6..c7bd351ddb 100644 --- a/plotly/validators/scatterternary/textfont/_familysrc.py +++ b/plotly/validators/scatterternary/textfont/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/textfont/_lineposition.py b/plotly/validators/scatterternary/textfont/_lineposition.py index 992be4ebc4..8e30df68dd 100644 --- a/plotly/validators/scatterternary/textfont/_lineposition.py +++ b/plotly/validators/scatterternary/textfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/scatterternary/textfont/_linepositionsrc.py b/plotly/validators/scatterternary/textfont/_linepositionsrc.py index a6041d57e0..334cdd3dfc 100644 --- a/plotly/validators/scatterternary/textfont/_linepositionsrc.py +++ b/plotly/validators/scatterternary/textfont/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/textfont/_shadow.py b/plotly/validators/scatterternary/textfont/_shadow.py index 4d31561d5f..6e3d187562 100644 --- a/plotly/validators/scatterternary/textfont/_shadow.py +++ b/plotly/validators/scatterternary/textfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/scatterternary/textfont/_shadowsrc.py b/plotly/validators/scatterternary/textfont/_shadowsrc.py index 763a155051..57c65451fc 100644 --- a/plotly/validators/scatterternary/textfont/_shadowsrc.py +++ b/plotly/validators/scatterternary/textfont/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/textfont/_size.py b/plotly/validators/scatterternary/textfont/_size.py index 20f8e18b05..e7c1876fb3 100644 --- a/plotly/validators/scatterternary/textfont/_size.py +++ b/plotly/validators/scatterternary/textfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/scatterternary/textfont/_sizesrc.py b/plotly/validators/scatterternary/textfont/_sizesrc.py index f7f5de097c..8dabc3c7cd 100644 --- a/plotly/validators/scatterternary/textfont/_sizesrc.py +++ b/plotly/validators/scatterternary/textfont/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/textfont/_style.py b/plotly/validators/scatterternary/textfont/_style.py index 4846096ea9..492a60459b 100644 --- a/plotly/validators/scatterternary/textfont/_style.py +++ b/plotly/validators/scatterternary/textfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/scatterternary/textfont/_stylesrc.py b/plotly/validators/scatterternary/textfont/_stylesrc.py index af6fffd866..ec3943ee0f 100644 --- a/plotly/validators/scatterternary/textfont/_stylesrc.py +++ b/plotly/validators/scatterternary/textfont/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/textfont/_textcase.py b/plotly/validators/scatterternary/textfont/_textcase.py index 3905767de2..5e453fd00d 100644 --- a/plotly/validators/scatterternary/textfont/_textcase.py +++ b/plotly/validators/scatterternary/textfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/scatterternary/textfont/_textcasesrc.py b/plotly/validators/scatterternary/textfont/_textcasesrc.py index 77bce59e93..aaf0dadcb1 100644 --- a/plotly/validators/scatterternary/textfont/_textcasesrc.py +++ b/plotly/validators/scatterternary/textfont/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/textfont/_variant.py b/plotly/validators/scatterternary/textfont/_variant.py index ee043cec84..ca8196025b 100644 --- a/plotly/validators/scatterternary/textfont/_variant.py +++ b/plotly/validators/scatterternary/textfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( diff --git a/plotly/validators/scatterternary/textfont/_variantsrc.py b/plotly/validators/scatterternary/textfont/_variantsrc.py index a77c911fca..7de3ade883 100644 --- a/plotly/validators/scatterternary/textfont/_variantsrc.py +++ b/plotly/validators/scatterternary/textfont/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/textfont/_weight.py b/plotly/validators/scatterternary/textfont/_weight.py index 705ed66672..69523774da 100644 --- a/plotly/validators/scatterternary/textfont/_weight.py +++ b/plotly/validators/scatterternary/textfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/scatterternary/textfont/_weightsrc.py b/plotly/validators/scatterternary/textfont/_weightsrc.py index f5d3fe0aa7..578b1a3073 100644 --- a/plotly/validators/scatterternary/textfont/_weightsrc.py +++ b/plotly/validators/scatterternary/textfont/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/scatterternary/unselected/__init__.py b/plotly/validators/scatterternary/unselected/__init__.py index 3b0aeed383..9d2a313b83 100644 --- a/plotly/validators/scatterternary/unselected/__init__.py +++ b/plotly/validators/scatterternary/unselected/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._textfont.TextfontValidator", "._marker.MarkerValidator"] +) diff --git a/plotly/validators/scatterternary/unselected/_marker.py b/plotly/validators/scatterternary/unselected/_marker.py index 69585dd5a8..a1d0b80cc0 100644 --- a/plotly/validators/scatterternary/unselected/_marker.py +++ b/plotly/validators/scatterternary/unselected/_marker.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterternary/unselected/_textfont.py b/plotly/validators/scatterternary/unselected/_textfont.py index a997b31bc6..d7caa3aa77 100644 --- a/plotly/validators/scatterternary/unselected/_textfont.py +++ b/plotly/validators/scatterternary/unselected/_textfont.py @@ -1,20 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/scatterternary/unselected/marker/__init__.py b/plotly/validators/scatterternary/unselected/marker/__init__.py index 8c321a38bc..c9c7226fe4 100644 --- a/plotly/validators/scatterternary/unselected/marker/__init__.py +++ b/plotly/validators/scatterternary/unselected/marker/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._size.SizeValidator", "._opacity.OpacityValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/scatterternary/unselected/marker/_color.py b/plotly/validators/scatterternary/unselected/marker/_color.py index 664108c03b..6f57f77670 100644 --- a/plotly/validators/scatterternary/unselected/marker/_color.py +++ b/plotly/validators/scatterternary/unselected/marker/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/scatterternary/unselected/marker/_opacity.py b/plotly/validators/scatterternary/unselected/marker/_opacity.py index 42c59112a3..c72720346a 100644 --- a/plotly/validators/scatterternary/unselected/marker/_opacity.py +++ b/plotly/validators/scatterternary/unselected/marker/_opacity.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/scatterternary/unselected/marker/_size.py b/plotly/validators/scatterternary/unselected/marker/_size.py index e893af5a05..e5cf190a83 100644 --- a/plotly/validators/scatterternary/unselected/marker/_size.py +++ b/plotly/validators/scatterternary/unselected/marker/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/scatterternary/unselected/textfont/__init__.py b/plotly/validators/scatterternary/unselected/textfont/__init__.py index a9f087e5af..85a4cc9573 100644 --- a/plotly/validators/scatterternary/unselected/textfont/__init__.py +++ b/plotly/validators/scatterternary/unselected/textfont/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._color.ColorValidator"] +) diff --git a/plotly/validators/scatterternary/unselected/textfont/_color.py b/plotly/validators/scatterternary/unselected/textfont/_color.py index 299acd375a..6b387b3516 100644 --- a/plotly/validators/scatterternary/unselected/textfont/_color.py +++ b/plotly/validators/scatterternary/unselected/textfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/splom/__init__.py b/plotly/validators/splom/__init__.py index c928a1b08d..646d3f13c0 100644 --- a/plotly/validators/splom/__init__.py +++ b/plotly/validators/splom/__init__.py @@ -1,93 +1,49 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yhoverformat import YhoverformatValidator - from ._yaxes import YaxesValidator - from ._xhoverformat import XhoverformatValidator - from ._xaxes import XaxesValidator - from ._visible import VisibleValidator - from ._unselected import UnselectedValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._textsrc import TextsrcValidator - from ._text import TextValidator - from ._stream import StreamValidator - from ._showupperhalf import ShowupperhalfValidator - from ._showlowerhalf import ShowlowerhalfValidator - from ._showlegend import ShowlegendValidator - from ._selectedpoints import SelectedpointsValidator - from ._selected import SelectedValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._marker import MarkerValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._dimensiondefaults import DimensiondefaultsValidator - from ._dimensions import DimensionsValidator - from ._diagonal import DiagonalValidator - from ._customdatasrc import CustomdatasrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/splom/_customdata.py b/plotly/validators/splom/_customdata.py index bb84b58a26..98d23fed37 100644 --- a/plotly/validators/splom/_customdata.py +++ b/plotly/validators/splom/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/splom/_customdatasrc.py b/plotly/validators/splom/_customdatasrc.py index 6edf744585..9623cc3ef3 100644 --- a/plotly/validators/splom/_customdatasrc.py +++ b/plotly/validators/splom/_customdatasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/splom/_diagonal.py b/plotly/validators/splom/_diagonal.py index 34a3645a53..d17b8ae429 100644 --- a/plotly/validators/splom/_diagonal.py +++ b/plotly/validators/splom/_diagonal.py @@ -1,18 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DiagonalValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/splom/_dimensiondefaults.py b/plotly/validators/splom/_dimensiondefaults.py index fa1e8792ab..c99820ea01 100644 --- a/plotly/validators/splom/_dimensiondefaults.py +++ b/plotly/validators/splom/_dimensiondefaults.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DimensiondefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Dimension"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/splom/_dimensions.py b/plotly/validators/splom/_dimensions.py index b8a3f24ce2..e305bcca2c 100644 --- a/plotly/validators/splom/_dimensions.py +++ b/plotly/validators/splom/_dimensions.py @@ -1,52 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DimensionsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/splom/_hoverinfo.py b/plotly/validators/splom/_hoverinfo.py index 1a7c9e97c8..75533a9fa9 100644 --- a/plotly/validators/splom/_hoverinfo.py +++ b/plotly/validators/splom/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/splom/_hoverinfosrc.py b/plotly/validators/splom/_hoverinfosrc.py index f70aef653d..9a6a384c84 100644 --- a/plotly/validators/splom/_hoverinfosrc.py +++ b/plotly/validators/splom/_hoverinfosrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/splom/_hoverlabel.py b/plotly/validators/splom/_hoverlabel.py index af691c9134..e5e5f27f1d 100644 --- a/plotly/validators/splom/_hoverlabel.py +++ b/plotly/validators/splom/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/splom/_hovertemplate.py b/plotly/validators/splom/_hovertemplate.py index 0d3e29802f..323dc4f8be 100644 --- a/plotly/validators/splom/_hovertemplate.py +++ b/plotly/validators/splom/_hovertemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/splom/_hovertemplatesrc.py b/plotly/validators/splom/_hovertemplatesrc.py index 4740238947..d60b9b277d 100644 --- a/plotly/validators/splom/_hovertemplatesrc.py +++ b/plotly/validators/splom/_hovertemplatesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/splom/_hovertext.py b/plotly/validators/splom/_hovertext.py index 589166232a..d287feeb6b 100644 --- a/plotly/validators/splom/_hovertext.py +++ b/plotly/validators/splom/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/splom/_hovertextsrc.py b/plotly/validators/splom/_hovertextsrc.py index f6ba891101..9db7526cb6 100644 --- a/plotly/validators/splom/_hovertextsrc.py +++ b/plotly/validators/splom/_hovertextsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/splom/_ids.py b/plotly/validators/splom/_ids.py index ff429d8363..0297d543e9 100644 --- a/plotly/validators/splom/_ids.py +++ b/plotly/validators/splom/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/splom/_idssrc.py b/plotly/validators/splom/_idssrc.py index e2cb23c6f4..cd6c3338a3 100644 --- a/plotly/validators/splom/_idssrc.py +++ b/plotly/validators/splom/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/splom/_legend.py b/plotly/validators/splom/_legend.py index fc4b71d197..51d5434cf1 100644 --- a/plotly/validators/splom/_legend.py +++ b/plotly/validators/splom/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/splom/_legendgroup.py b/plotly/validators/splom/_legendgroup.py index a923e4e8e6..67c025db3e 100644 --- a/plotly/validators/splom/_legendgroup.py +++ b/plotly/validators/splom/_legendgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/splom/_legendgrouptitle.py b/plotly/validators/splom/_legendgrouptitle.py index 3afbc71dee..b005df32fa 100644 --- a/plotly/validators/splom/_legendgrouptitle.py +++ b/plotly/validators/splom/_legendgrouptitle.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/splom/_legendrank.py b/plotly/validators/splom/_legendrank.py index d58319e240..e2eabd3ae7 100644 --- a/plotly/validators/splom/_legendrank.py +++ b/plotly/validators/splom/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/splom/_legendwidth.py b/plotly/validators/splom/_legendwidth.py index 0003be76d4..7b8826293f 100644 --- a/plotly/validators/splom/_legendwidth.py +++ b/plotly/validators/splom/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/splom/_marker.py b/plotly/validators/splom/_marker.py index 5f961fb6a2..a9f715e056 100644 --- a/plotly/validators/splom/_marker.py +++ b/plotly/validators/splom/_marker.py @@ -1,143 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/splom/_meta.py b/plotly/validators/splom/_meta.py index 69cd7c0766..69b4f35039 100644 --- a/plotly/validators/splom/_meta.py +++ b/plotly/validators/splom/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/splom/_metasrc.py b/plotly/validators/splom/_metasrc.py index 14499f5542..a6ebc869d5 100644 --- a/plotly/validators/splom/_metasrc.py +++ b/plotly/validators/splom/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/splom/_name.py b/plotly/validators/splom/_name.py index 1ba82b2a13..3d7fdcf7f1 100644 --- a/plotly/validators/splom/_name.py +++ b/plotly/validators/splom/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/splom/_opacity.py b/plotly/validators/splom/_opacity.py index a5e1910f6d..5b6c40530c 100644 --- a/plotly/validators/splom/_opacity.py +++ b/plotly/validators/splom/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/splom/_selected.py b/plotly/validators/splom/_selected.py index eaa18afd6f..6faaf2fecf 100644 --- a/plotly/validators/splom/_selected.py +++ b/plotly/validators/splom/_selected.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/splom/_selectedpoints.py b/plotly/validators/splom/_selectedpoints.py index 05967761fa..e9562b4be6 100644 --- a/plotly/validators/splom/_selectedpoints.py +++ b/plotly/validators/splom/_selectedpoints.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/splom/_showlegend.py b/plotly/validators/splom/_showlegend.py index 6d5851fcbc..24a47a5713 100644 --- a/plotly/validators/splom/_showlegend.py +++ b/plotly/validators/splom/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/splom/_showlowerhalf.py b/plotly/validators/splom/_showlowerhalf.py index a911c1a7be..62256d6419 100644 --- a/plotly/validators/splom/_showlowerhalf.py +++ b/plotly/validators/splom/_showlowerhalf.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlowerhalfValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/splom/_showupperhalf.py b/plotly/validators/splom/_showupperhalf.py index a529511fc8..96c2a7e320 100644 --- a/plotly/validators/splom/_showupperhalf.py +++ b/plotly/validators/splom/_showupperhalf.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowupperhalfValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/splom/_stream.py b/plotly/validators/splom/_stream.py index 31939ba5fc..bc1389b07d 100644 --- a/plotly/validators/splom/_stream.py +++ b/plotly/validators/splom/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/splom/_text.py b/plotly/validators/splom/_text.py index 2589d4f0fe..5a9371d0cd 100644 --- a/plotly/validators/splom/_text.py +++ b/plotly/validators/splom/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/splom/_textsrc.py b/plotly/validators/splom/_textsrc.py index 8e06eb1ee8..847a722499 100644 --- a/plotly/validators/splom/_textsrc.py +++ b/plotly/validators/splom/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/splom/_uid.py b/plotly/validators/splom/_uid.py index 1cc68e7df4..e6214583f4 100644 --- a/plotly/validators/splom/_uid.py +++ b/plotly/validators/splom/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/splom/_uirevision.py b/plotly/validators/splom/_uirevision.py index f09d2d5b34..da0f96a744 100644 --- a/plotly/validators/splom/_uirevision.py +++ b/plotly/validators/splom/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/splom/_unselected.py b/plotly/validators/splom/_unselected.py index 8924bc4a9e..fbf24a5024 100644 --- a/plotly/validators/splom/_unselected.py +++ b/plotly/validators/splom/_unselected.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/splom/_visible.py b/plotly/validators/splom/_visible.py index 1b9b886ff6..ca037f374a 100644 --- a/plotly/validators/splom/_visible.py +++ b/plotly/validators/splom/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/splom/_xaxes.py b/plotly/validators/splom/_xaxes.py index 9ecc6cad2c..19537a01b7 100644 --- a/plotly/validators/splom/_xaxes.py +++ b/plotly/validators/splom/_xaxes.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XaxesValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), free_length=kwargs.pop("free_length", True), items=kwargs.pop( diff --git a/plotly/validators/splom/_xhoverformat.py b/plotly/validators/splom/_xhoverformat.py index 0bbc2f7731..08c454de77 100644 --- a/plotly/validators/splom/_xhoverformat.py +++ b/plotly/validators/splom/_xhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/splom/_yaxes.py b/plotly/validators/splom/_yaxes.py index 3395d06ba2..44930f2092 100644 --- a/plotly/validators/splom/_yaxes.py +++ b/plotly/validators/splom/_yaxes.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YaxesValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), free_length=kwargs.pop("free_length", True), items=kwargs.pop( diff --git a/plotly/validators/splom/_yhoverformat.py b/plotly/validators/splom/_yhoverformat.py index ec06738729..a85f86f793 100644 --- a/plotly/validators/splom/_yhoverformat.py +++ b/plotly/validators/splom/_yhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/splom/diagonal/__init__.py b/plotly/validators/splom/diagonal/__init__.py index 5a516ae482..a4f17d4d69 100644 --- a/plotly/validators/splom/diagonal/__init__.py +++ b/plotly/validators/splom/diagonal/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._visible.VisibleValidator"] +) diff --git a/plotly/validators/splom/diagonal/_visible.py b/plotly/validators/splom/diagonal/_visible.py index 6b6d3dfadb..eea39b87d5 100644 --- a/plotly/validators/splom/diagonal/_visible.py +++ b/plotly/validators/splom/diagonal/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/splom/dimension/__init__.py b/plotly/validators/splom/dimension/__init__.py index ca97d79c70..c6314c58ec 100644 --- a/plotly/validators/splom/dimension/__init__.py +++ b/plotly/validators/splom/dimension/__init__.py @@ -1,27 +1,16 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._visible import VisibleValidator - from ._valuessrc import ValuessrcValidator - from ._values import ValuesValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._label import LabelValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._visible.VisibleValidator", + "._valuessrc.ValuessrcValidator", + "._values.ValuesValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._label.LabelValidator", + "._axis.AxisValidator", + ], +) diff --git a/plotly/validators/splom/dimension/_axis.py b/plotly/validators/splom/dimension/_axis.py index 22c3620305..454d3240fe 100644 --- a/plotly/validators/splom/dimension/_axis.py +++ b/plotly/validators/splom/dimension/_axis.py @@ -1,25 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AxisValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/splom/dimension/_label.py b/plotly/validators/splom/dimension/_label.py index 35e6cd00d5..7469556ef6 100644 --- a/plotly/validators/splom/dimension/_label.py +++ b/plotly/validators/splom/dimension/_label.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/splom/dimension/_name.py b/plotly/validators/splom/dimension/_name.py index 6881e387cb..2166eb8e79 100644 --- a/plotly/validators/splom/dimension/_name.py +++ b/plotly/validators/splom/dimension/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/splom/dimension/_templateitemname.py b/plotly/validators/splom/dimension/_templateitemname.py index 0e4c08a0b7..c1b4bc441f 100644 --- a/plotly/validators/splom/dimension/_templateitemname.py +++ b/plotly/validators/splom/dimension/_templateitemname.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/splom/dimension/_values.py b/plotly/validators/splom/dimension/_values.py index b87cbc0478..ccd9c3b38f 100644 --- a/plotly/validators/splom/dimension/_values.py +++ b/plotly/validators/splom/dimension/_values.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValuesValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/splom/dimension/_valuessrc.py b/plotly/validators/splom/dimension/_valuessrc.py index b714089493..94f445bce4 100644 --- a/plotly/validators/splom/dimension/_valuessrc.py +++ b/plotly/validators/splom/dimension/_valuessrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValuessrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/splom/dimension/_visible.py b/plotly/validators/splom/dimension/_visible.py index 694a4a9f1c..b6130bec96 100644 --- a/plotly/validators/splom/dimension/_visible.py +++ b/plotly/validators/splom/dimension/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/splom/dimension/axis/__init__.py b/plotly/validators/splom/dimension/axis/__init__.py index 23af7f078b..e3f50a459f 100644 --- a/plotly/validators/splom/dimension/axis/__init__.py +++ b/plotly/validators/splom/dimension/axis/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._type.TypeValidator", "._matches.MatchesValidator"] +) diff --git a/plotly/validators/splom/dimension/axis/_matches.py b/plotly/validators/splom/dimension/axis/_matches.py index 5c407abd3c..4618dcb315 100644 --- a/plotly/validators/splom/dimension/axis/_matches.py +++ b/plotly/validators/splom/dimension/axis/_matches.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MatchesValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/splom/dimension/axis/_type.py b/plotly/validators/splom/dimension/axis/_type.py index d13a210ba3..6f89f41c28 100644 --- a/plotly/validators/splom/dimension/axis/_type.py +++ b/plotly/validators/splom/dimension/axis/_type.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TypeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), values=kwargs.pop("values", ["linear", "log", "date", "category"]), **kwargs, diff --git a/plotly/validators/splom/hoverlabel/__init__.py b/plotly/validators/splom/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/splom/hoverlabel/__init__.py +++ b/plotly/validators/splom/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/splom/hoverlabel/_align.py b/plotly/validators/splom/hoverlabel/_align.py index 2e65581183..8171aabb97 100644 --- a/plotly/validators/splom/hoverlabel/_align.py +++ b/plotly/validators/splom/hoverlabel/_align.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/splom/hoverlabel/_alignsrc.py b/plotly/validators/splom/hoverlabel/_alignsrc.py index f75de77e65..17a1c40963 100644 --- a/plotly/validators/splom/hoverlabel/_alignsrc.py +++ b/plotly/validators/splom/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/splom/hoverlabel/_bgcolor.py b/plotly/validators/splom/hoverlabel/_bgcolor.py index a5dff7ed55..af8c92fb62 100644 --- a/plotly/validators/splom/hoverlabel/_bgcolor.py +++ b/plotly/validators/splom/hoverlabel/_bgcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/splom/hoverlabel/_bgcolorsrc.py b/plotly/validators/splom/hoverlabel/_bgcolorsrc.py index 16232f6f22..fb6aaddfbe 100644 --- a/plotly/validators/splom/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/splom/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/splom/hoverlabel/_bordercolor.py b/plotly/validators/splom/hoverlabel/_bordercolor.py index 6e1a1ad6f7..419323334e 100644 --- a/plotly/validators/splom/hoverlabel/_bordercolor.py +++ b/plotly/validators/splom/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/splom/hoverlabel/_bordercolorsrc.py b/plotly/validators/splom/hoverlabel/_bordercolorsrc.py index 624d249273..0f473a7fa9 100644 --- a/plotly/validators/splom/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/splom/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/splom/hoverlabel/_font.py b/plotly/validators/splom/hoverlabel/_font.py index a4de3b5e6b..6ed052ce6e 100644 --- a/plotly/validators/splom/hoverlabel/_font.py +++ b/plotly/validators/splom/hoverlabel/_font.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/splom/hoverlabel/_namelength.py b/plotly/validators/splom/hoverlabel/_namelength.py index 6b3b90d145..44cbc14041 100644 --- a/plotly/validators/splom/hoverlabel/_namelength.py +++ b/plotly/validators/splom/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/splom/hoverlabel/_namelengthsrc.py b/plotly/validators/splom/hoverlabel/_namelengthsrc.py index 1f80b25de4..3fcdbd496e 100644 --- a/plotly/validators/splom/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/splom/hoverlabel/_namelengthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/splom/hoverlabel/font/__init__.py b/plotly/validators/splom/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/splom/hoverlabel/font/__init__.py +++ b/plotly/validators/splom/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/splom/hoverlabel/font/_color.py b/plotly/validators/splom/hoverlabel/font/_color.py index 1c9b31a8b0..6e3759a89f 100644 --- a/plotly/validators/splom/hoverlabel/font/_color.py +++ b/plotly/validators/splom/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/splom/hoverlabel/font/_colorsrc.py b/plotly/validators/splom/hoverlabel/font/_colorsrc.py index d40713c94a..eb38a63f5d 100644 --- a/plotly/validators/splom/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/splom/hoverlabel/font/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/splom/hoverlabel/font/_family.py b/plotly/validators/splom/hoverlabel/font/_family.py index 2fec99fb1c..f8f67670a2 100644 --- a/plotly/validators/splom/hoverlabel/font/_family.py +++ b/plotly/validators/splom/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/splom/hoverlabel/font/_familysrc.py b/plotly/validators/splom/hoverlabel/font/_familysrc.py index 6b1c3dc32a..14946ce52a 100644 --- a/plotly/validators/splom/hoverlabel/font/_familysrc.py +++ b/plotly/validators/splom/hoverlabel/font/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/splom/hoverlabel/font/_lineposition.py b/plotly/validators/splom/hoverlabel/font/_lineposition.py index e8e714420f..5acc778274 100644 --- a/plotly/validators/splom/hoverlabel/font/_lineposition.py +++ b/plotly/validators/splom/hoverlabel/font/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/splom/hoverlabel/font/_linepositionsrc.py b/plotly/validators/splom/hoverlabel/font/_linepositionsrc.py index e0a04dfec7..683154d05a 100644 --- a/plotly/validators/splom/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/splom/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/splom/hoverlabel/font/_shadow.py b/plotly/validators/splom/hoverlabel/font/_shadow.py index f17a3ec80c..113575cd5b 100644 --- a/plotly/validators/splom/hoverlabel/font/_shadow.py +++ b/plotly/validators/splom/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/splom/hoverlabel/font/_shadowsrc.py b/plotly/validators/splom/hoverlabel/font/_shadowsrc.py index 1cb26553e6..599172b3c9 100644 --- a/plotly/validators/splom/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/splom/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/splom/hoverlabel/font/_size.py b/plotly/validators/splom/hoverlabel/font/_size.py index 6a5866dcba..26f7f86799 100644 --- a/plotly/validators/splom/hoverlabel/font/_size.py +++ b/plotly/validators/splom/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/splom/hoverlabel/font/_sizesrc.py b/plotly/validators/splom/hoverlabel/font/_sizesrc.py index d52034c43f..1e8fe1ed79 100644 --- a/plotly/validators/splom/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/splom/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/splom/hoverlabel/font/_style.py b/plotly/validators/splom/hoverlabel/font/_style.py index 4e683bac21..2b3991ccaa 100644 --- a/plotly/validators/splom/hoverlabel/font/_style.py +++ b/plotly/validators/splom/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/splom/hoverlabel/font/_stylesrc.py b/plotly/validators/splom/hoverlabel/font/_stylesrc.py index 887cb812ac..70519388a0 100644 --- a/plotly/validators/splom/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/splom/hoverlabel/font/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/splom/hoverlabel/font/_textcase.py b/plotly/validators/splom/hoverlabel/font/_textcase.py index 1fa3bde0a0..1daacf0bcc 100644 --- a/plotly/validators/splom/hoverlabel/font/_textcase.py +++ b/plotly/validators/splom/hoverlabel/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/splom/hoverlabel/font/_textcasesrc.py b/plotly/validators/splom/hoverlabel/font/_textcasesrc.py index b8d3ebccf6..422ca142d9 100644 --- a/plotly/validators/splom/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/splom/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/splom/hoverlabel/font/_variant.py b/plotly/validators/splom/hoverlabel/font/_variant.py index 16010ab3a0..59ba6ba949 100644 --- a/plotly/validators/splom/hoverlabel/font/_variant.py +++ b/plotly/validators/splom/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/splom/hoverlabel/font/_variantsrc.py b/plotly/validators/splom/hoverlabel/font/_variantsrc.py index e2c6a15a2d..11aaf1cccf 100644 --- a/plotly/validators/splom/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/splom/hoverlabel/font/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/splom/hoverlabel/font/_weight.py b/plotly/validators/splom/hoverlabel/font/_weight.py index 97e775eb2a..db055a4474 100644 --- a/plotly/validators/splom/hoverlabel/font/_weight.py +++ b/plotly/validators/splom/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/splom/hoverlabel/font/_weightsrc.py b/plotly/validators/splom/hoverlabel/font/_weightsrc.py index d5c2dab59f..71a6f8be33 100644 --- a/plotly/validators/splom/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/splom/hoverlabel/font/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/splom/legendgrouptitle/__init__.py b/plotly/validators/splom/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/splom/legendgrouptitle/__init__.py +++ b/plotly/validators/splom/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/splom/legendgrouptitle/_font.py b/plotly/validators/splom/legendgrouptitle/_font.py index 0778a27c67..2c21b2137c 100644 --- a/plotly/validators/splom/legendgrouptitle/_font.py +++ b/plotly/validators/splom/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/splom/legendgrouptitle/_text.py b/plotly/validators/splom/legendgrouptitle/_text.py index 068195ae94..222b1f35e8 100644 --- a/plotly/validators/splom/legendgrouptitle/_text.py +++ b/plotly/validators/splom/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/splom/legendgrouptitle/font/__init__.py b/plotly/validators/splom/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/splom/legendgrouptitle/font/__init__.py +++ b/plotly/validators/splom/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/splom/legendgrouptitle/font/_color.py b/plotly/validators/splom/legendgrouptitle/font/_color.py index c9af0573d3..e82287303a 100644 --- a/plotly/validators/splom/legendgrouptitle/font/_color.py +++ b/plotly/validators/splom/legendgrouptitle/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/splom/legendgrouptitle/font/_family.py b/plotly/validators/splom/legendgrouptitle/font/_family.py index d12123cfab..e5253f1ea1 100644 --- a/plotly/validators/splom/legendgrouptitle/font/_family.py +++ b/plotly/validators/splom/legendgrouptitle/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/splom/legendgrouptitle/font/_lineposition.py b/plotly/validators/splom/legendgrouptitle/font/_lineposition.py index fc08c346fb..170061ff31 100644 --- a/plotly/validators/splom/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/splom/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/splom/legendgrouptitle/font/_shadow.py b/plotly/validators/splom/legendgrouptitle/font/_shadow.py index e3fa9947fb..ffb861da70 100644 --- a/plotly/validators/splom/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/splom/legendgrouptitle/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/splom/legendgrouptitle/font/_size.py b/plotly/validators/splom/legendgrouptitle/font/_size.py index 1f35087921..f5da60ae1e 100644 --- a/plotly/validators/splom/legendgrouptitle/font/_size.py +++ b/plotly/validators/splom/legendgrouptitle/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/splom/legendgrouptitle/font/_style.py b/plotly/validators/splom/legendgrouptitle/font/_style.py index f9c6156b86..3e883af07e 100644 --- a/plotly/validators/splom/legendgrouptitle/font/_style.py +++ b/plotly/validators/splom/legendgrouptitle/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/splom/legendgrouptitle/font/_textcase.py b/plotly/validators/splom/legendgrouptitle/font/_textcase.py index 5f6c664090..585a67b82a 100644 --- a/plotly/validators/splom/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/splom/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/splom/legendgrouptitle/font/_variant.py b/plotly/validators/splom/legendgrouptitle/font/_variant.py index 1c8dc0128a..88c00ae67f 100644 --- a/plotly/validators/splom/legendgrouptitle/font/_variant.py +++ b/plotly/validators/splom/legendgrouptitle/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/splom/legendgrouptitle/font/_weight.py b/plotly/validators/splom/legendgrouptitle/font/_weight.py index e3dfbebe92..102dd3dc52 100644 --- a/plotly/validators/splom/legendgrouptitle/font/_weight.py +++ b/plotly/validators/splom/legendgrouptitle/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/splom/marker/__init__.py b/plotly/validators/splom/marker/__init__.py index dc48879d6b..ec56080f71 100644 --- a/plotly/validators/splom/marker/__init__.py +++ b/plotly/validators/splom/marker/__init__.py @@ -1,61 +1,33 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._symbolsrc import SymbolsrcValidator - from ._symbol import SymbolValidator - from ._sizesrc import SizesrcValidator - from ._sizeref import SizerefValidator - from ._sizemode import SizemodeValidator - from ._sizemin import SizeminValidator - from ._size import SizeValidator - from ._showscale import ShowscaleValidator - from ._reversescale import ReversescaleValidator - from ._opacitysrc import OpacitysrcValidator - from ._opacity import OpacityValidator - from ._line import LineValidator - from ._colorsrc import ColorsrcValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._color import ColorValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - from ._autocolorscale import AutocolorscaleValidator - from ._anglesrc import AnglesrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/splom/marker/_angle.py b/plotly/validators/splom/marker/_angle.py index 0707622c4e..03136b73ab 100644 --- a/plotly/validators/splom/marker/_angle.py +++ b/plotly/validators/splom/marker/_angle.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AngleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/splom/marker/_anglesrc.py b/plotly/validators/splom/marker/_anglesrc.py index 30150404d3..a89c160293 100644 --- a/plotly/validators/splom/marker/_anglesrc.py +++ b/plotly/validators/splom/marker/_anglesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AnglesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/splom/marker/_autocolorscale.py b/plotly/validators/splom/marker/_autocolorscale.py index 7a3bb603c3..5224b5da3e 100644 --- a/plotly/validators/splom/marker/_autocolorscale.py +++ b/plotly/validators/splom/marker/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/splom/marker/_cauto.py b/plotly/validators/splom/marker/_cauto.py index 0bb31d5097..a070ed46f0 100644 --- a/plotly/validators/splom/marker/_cauto.py +++ b/plotly/validators/splom/marker/_cauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/splom/marker/_cmax.py b/plotly/validators/splom/marker/_cmax.py index 02076794b3..a5deeeacfd 100644 --- a/plotly/validators/splom/marker/_cmax.py +++ b/plotly/validators/splom/marker/_cmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/splom/marker/_cmid.py b/plotly/validators/splom/marker/_cmid.py index d1793b5394..c3dc9d8805 100644 --- a/plotly/validators/splom/marker/_cmid.py +++ b/plotly/validators/splom/marker/_cmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/splom/marker/_cmin.py b/plotly/validators/splom/marker/_cmin.py index 7abcddd496..ddec48eea5 100644 --- a/plotly/validators/splom/marker/_cmin.py +++ b/plotly/validators/splom/marker/_cmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/splom/marker/_color.py b/plotly/validators/splom/marker/_color.py index ee03eae599..bbd80c4e2a 100644 --- a/plotly/validators/splom/marker/_color.py +++ b/plotly/validators/splom/marker/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_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"), diff --git a/plotly/validators/splom/marker/_coloraxis.py b/plotly/validators/splom/marker/_coloraxis.py index 415a215400..6084c67b5e 100644 --- a/plotly/validators/splom/marker/_coloraxis.py +++ b/plotly/validators/splom/marker/_coloraxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/splom/marker/_colorbar.py b/plotly/validators/splom/marker/_colorbar.py index 460b64e8b2..fbe94438d4 100644 --- a/plotly/validators/splom/marker/_colorbar.py +++ b/plotly/validators/splom/marker/_colorbar.py @@ -1,279 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/splom/marker/_colorscale.py b/plotly/validators/splom/marker/_colorscale.py index 55b208ed82..06e60656d9 100644 --- a/plotly/validators/splom/marker/_colorscale.py +++ b/plotly/validators/splom/marker/_colorscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/splom/marker/_colorsrc.py b/plotly/validators/splom/marker/_colorsrc.py index 4388f7b138..ec20688e8d 100644 --- a/plotly/validators/splom/marker/_colorsrc.py +++ b/plotly/validators/splom/marker/_colorsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/splom/marker/_line.py b/plotly/validators/splom/marker/_line.py index 2e9e061b0f..fb54189523 100644 --- a/plotly/validators/splom/marker/_line.py +++ b/plotly/validators/splom/marker/_line.py @@ -1,104 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/splom/marker/_opacity.py b/plotly/validators/splom/marker/_opacity.py index adf1a014c1..71cf3596eb 100644 --- a/plotly/validators/splom/marker/_opacity.py +++ b/plotly/validators/splom/marker/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), diff --git a/plotly/validators/splom/marker/_opacitysrc.py b/plotly/validators/splom/marker/_opacitysrc.py index 0e0f2d021f..1ccc44fa2e 100644 --- a/plotly/validators/splom/marker/_opacitysrc.py +++ b/plotly/validators/splom/marker/_opacitysrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacitysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/splom/marker/_reversescale.py b/plotly/validators/splom/marker/_reversescale.py index 0991e079c1..9afc0ed61a 100644 --- a/plotly/validators/splom/marker/_reversescale.py +++ b/plotly/validators/splom/marker/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/splom/marker/_showscale.py b/plotly/validators/splom/marker/_showscale.py index 6b1ef8c040..9e643adc2b 100644 --- a/plotly/validators/splom/marker/_showscale.py +++ b/plotly/validators/splom/marker/_showscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/splom/marker/_size.py b/plotly/validators/splom/marker/_size.py index 5c07388eb0..251713d901 100644 --- a/plotly/validators/splom/marker/_size.py +++ b/plotly/validators/splom/marker/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "markerSize"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/splom/marker/_sizemin.py b/plotly/validators/splom/marker/_sizemin.py index 8c932263cb..5626963913 100644 --- a/plotly/validators/splom/marker/_sizemin.py +++ b/plotly/validators/splom/marker/_sizemin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/splom/marker/_sizemode.py b/plotly/validators/splom/marker/_sizemode.py index 88dbe2bdde..7e6535c463 100644 --- a/plotly/validators/splom/marker/_sizemode.py +++ b/plotly/validators/splom/marker/_sizemode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["diameter", "area"]), **kwargs, diff --git a/plotly/validators/splom/marker/_sizeref.py b/plotly/validators/splom/marker/_sizeref.py index e9eac46744..351bf32d84 100644 --- a/plotly/validators/splom/marker/_sizeref.py +++ b/plotly/validators/splom/marker/_sizeref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/splom/marker/_sizesrc.py b/plotly/validators/splom/marker/_sizesrc.py index 5650926522..9613164845 100644 --- a/plotly/validators/splom/marker/_sizesrc.py +++ b/plotly/validators/splom/marker/_sizesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/splom/marker/_symbol.py b/plotly/validators/splom/marker/_symbol.py index 84a640a528..371ee90eda 100644 --- a/plotly/validators/splom/marker/_symbol.py +++ b/plotly/validators/splom/marker/_symbol.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( diff --git a/plotly/validators/splom/marker/_symbolsrc.py b/plotly/validators/splom/marker/_symbolsrc.py index 86d12111d3..a5872a5e02 100644 --- a/plotly/validators/splom/marker/_symbolsrc.py +++ b/plotly/validators/splom/marker/_symbolsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymbolsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/splom/marker/colorbar/__init__.py b/plotly/validators/splom/marker/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/splom/marker/colorbar/__init__.py +++ b/plotly/validators/splom/marker/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/splom/marker/colorbar/_bgcolor.py b/plotly/validators/splom/marker/colorbar/_bgcolor.py index 1bdd0f6f7f..a4c3666983 100644 --- a/plotly/validators/splom/marker/colorbar/_bgcolor.py +++ b/plotly/validators/splom/marker/colorbar/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/splom/marker/colorbar/_bordercolor.py b/plotly/validators/splom/marker/colorbar/_bordercolor.py index eefab3b63d..380f266f70 100644 --- a/plotly/validators/splom/marker/colorbar/_bordercolor.py +++ b/plotly/validators/splom/marker/colorbar/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/splom/marker/colorbar/_borderwidth.py b/plotly/validators/splom/marker/colorbar/_borderwidth.py index a015405f39..83cfe86463 100644 --- a/plotly/validators/splom/marker/colorbar/_borderwidth.py +++ b/plotly/validators/splom/marker/colorbar/_borderwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/splom/marker/colorbar/_dtick.py b/plotly/validators/splom/marker/colorbar/_dtick.py index 94137c6ead..c38cc0e393 100644 --- a/plotly/validators/splom/marker/colorbar/_dtick.py +++ b/plotly/validators/splom/marker/colorbar/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/splom/marker/colorbar/_exponentformat.py b/plotly/validators/splom/marker/colorbar/_exponentformat.py index e2006f3c63..9076fdbdbe 100644 --- a/plotly/validators/splom/marker/colorbar/_exponentformat.py +++ b/plotly/validators/splom/marker/colorbar/_exponentformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/splom/marker/colorbar/_labelalias.py b/plotly/validators/splom/marker/colorbar/_labelalias.py index b8740d3f6a..0ff59b263c 100644 --- a/plotly/validators/splom/marker/colorbar/_labelalias.py +++ b/plotly/validators/splom/marker/colorbar/_labelalias.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/splom/marker/colorbar/_len.py b/plotly/validators/splom/marker/colorbar/_len.py index 8ee1cb546e..e4623740c8 100644 --- a/plotly/validators/splom/marker/colorbar/_len.py +++ b/plotly/validators/splom/marker/colorbar/_len.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/splom/marker/colorbar/_lenmode.py b/plotly/validators/splom/marker/colorbar/_lenmode.py index 0211dd3958..6cfbd3fd62 100644 --- a/plotly/validators/splom/marker/colorbar/_lenmode.py +++ b/plotly/validators/splom/marker/colorbar/_lenmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/splom/marker/colorbar/_minexponent.py b/plotly/validators/splom/marker/colorbar/_minexponent.py index 549eb3f52c..ffa9222abd 100644 --- a/plotly/validators/splom/marker/colorbar/_minexponent.py +++ b/plotly/validators/splom/marker/colorbar/_minexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/splom/marker/colorbar/_nticks.py b/plotly/validators/splom/marker/colorbar/_nticks.py index a239eadbbd..6c24dd929e 100644 --- a/plotly/validators/splom/marker/colorbar/_nticks.py +++ b/plotly/validators/splom/marker/colorbar/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/splom/marker/colorbar/_orientation.py b/plotly/validators/splom/marker/colorbar/_orientation.py index 19f759b36c..6d44dd78c2 100644 --- a/plotly/validators/splom/marker/colorbar/_orientation.py +++ b/plotly/validators/splom/marker/colorbar/_orientation.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/splom/marker/colorbar/_outlinecolor.py b/plotly/validators/splom/marker/colorbar/_outlinecolor.py index 3798c06e1e..8dbb169c24 100644 --- a/plotly/validators/splom/marker/colorbar/_outlinecolor.py +++ b/plotly/validators/splom/marker/colorbar/_outlinecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/splom/marker/colorbar/_outlinewidth.py b/plotly/validators/splom/marker/colorbar/_outlinewidth.py index 3e53fb8835..91e7228c40 100644 --- a/plotly/validators/splom/marker/colorbar/_outlinewidth.py +++ b/plotly/validators/splom/marker/colorbar/_outlinewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/splom/marker/colorbar/_separatethousands.py b/plotly/validators/splom/marker/colorbar/_separatethousands.py index dc2166b023..d1b3487f73 100644 --- a/plotly/validators/splom/marker/colorbar/_separatethousands.py +++ b/plotly/validators/splom/marker/colorbar/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/splom/marker/colorbar/_showexponent.py b/plotly/validators/splom/marker/colorbar/_showexponent.py index c54679d11c..aaa85c35f9 100644 --- a/plotly/validators/splom/marker/colorbar/_showexponent.py +++ b/plotly/validators/splom/marker/colorbar/_showexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/splom/marker/colorbar/_showticklabels.py b/plotly/validators/splom/marker/colorbar/_showticklabels.py index c1784f6af3..25868a50fd 100644 --- a/plotly/validators/splom/marker/colorbar/_showticklabels.py +++ b/plotly/validators/splom/marker/colorbar/_showticklabels.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/splom/marker/colorbar/_showtickprefix.py b/plotly/validators/splom/marker/colorbar/_showtickprefix.py index 2d321d623a..acb025c8fa 100644 --- a/plotly/validators/splom/marker/colorbar/_showtickprefix.py +++ b/plotly/validators/splom/marker/colorbar/_showtickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/splom/marker/colorbar/_showticksuffix.py b/plotly/validators/splom/marker/colorbar/_showticksuffix.py index 85a946ed6d..9154e41beb 100644 --- a/plotly/validators/splom/marker/colorbar/_showticksuffix.py +++ b/plotly/validators/splom/marker/colorbar/_showticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/splom/marker/colorbar/_thickness.py b/plotly/validators/splom/marker/colorbar/_thickness.py index 35c28eb477..abfe33d448 100644 --- a/plotly/validators/splom/marker/colorbar/_thickness.py +++ b/plotly/validators/splom/marker/colorbar/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/splom/marker/colorbar/_thicknessmode.py b/plotly/validators/splom/marker/colorbar/_thicknessmode.py index 0cd70fbd3a..dc928d6eb2 100644 --- a/plotly/validators/splom/marker/colorbar/_thicknessmode.py +++ b/plotly/validators/splom/marker/colorbar/_thicknessmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/splom/marker/colorbar/_tick0.py b/plotly/validators/splom/marker/colorbar/_tick0.py index 7a74854f3d..d251c687a4 100644 --- a/plotly/validators/splom/marker/colorbar/_tick0.py +++ b/plotly/validators/splom/marker/colorbar/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/splom/marker/colorbar/_tickangle.py b/plotly/validators/splom/marker/colorbar/_tickangle.py index 8d11937075..8cb935fde9 100644 --- a/plotly/validators/splom/marker/colorbar/_tickangle.py +++ b/plotly/validators/splom/marker/colorbar/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/splom/marker/colorbar/_tickcolor.py b/plotly/validators/splom/marker/colorbar/_tickcolor.py index f8ef3c17e4..3d5beee1f9 100644 --- a/plotly/validators/splom/marker/colorbar/_tickcolor.py +++ b/plotly/validators/splom/marker/colorbar/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/splom/marker/colorbar/_tickfont.py b/plotly/validators/splom/marker/colorbar/_tickfont.py index 8e67cf664a..ebd1ea5614 100644 --- a/plotly/validators/splom/marker/colorbar/_tickfont.py +++ b/plotly/validators/splom/marker/colorbar/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/splom/marker/colorbar/_tickformat.py b/plotly/validators/splom/marker/colorbar/_tickformat.py index 0c64f5d479..90095b9f15 100644 --- a/plotly/validators/splom/marker/colorbar/_tickformat.py +++ b/plotly/validators/splom/marker/colorbar/_tickformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/splom/marker/colorbar/_tickformatstopdefaults.py b/plotly/validators/splom/marker/colorbar/_tickformatstopdefaults.py index 9bf1ed3b6f..72083da9a5 100644 --- a/plotly/validators/splom/marker/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/splom/marker/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/splom/marker/colorbar/_tickformatstops.py b/plotly/validators/splom/marker/colorbar/_tickformatstops.py index 19be3efb3b..8b115eead0 100644 --- a/plotly/validators/splom/marker/colorbar/_tickformatstops.py +++ b/plotly/validators/splom/marker/colorbar/_tickformatstops.py @@ -1,53 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/splom/marker/colorbar/_ticklabeloverflow.py b/plotly/validators/splom/marker/colorbar/_ticklabeloverflow.py index 03ceb0340c..d44aeb339a 100644 --- a/plotly/validators/splom/marker/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/splom/marker/colorbar/_ticklabeloverflow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/splom/marker/colorbar/_ticklabelposition.py b/plotly/validators/splom/marker/colorbar/_ticklabelposition.py index 4ea1237a4b..7f6e32a988 100644 --- a/plotly/validators/splom/marker/colorbar/_ticklabelposition.py +++ b/plotly/validators/splom/marker/colorbar/_ticklabelposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/splom/marker/colorbar/_ticklabelstep.py b/plotly/validators/splom/marker/colorbar/_ticklabelstep.py index 60e50e822c..119af18ef4 100644 --- a/plotly/validators/splom/marker/colorbar/_ticklabelstep.py +++ b/plotly/validators/splom/marker/colorbar/_ticklabelstep.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/splom/marker/colorbar/_ticklen.py b/plotly/validators/splom/marker/colorbar/_ticklen.py index 9a20020f2a..b0ee291638 100644 --- a/plotly/validators/splom/marker/colorbar/_ticklen.py +++ b/plotly/validators/splom/marker/colorbar/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/splom/marker/colorbar/_tickmode.py b/plotly/validators/splom/marker/colorbar/_tickmode.py index 3e72251527..b07da7af4c 100644 --- a/plotly/validators/splom/marker/colorbar/_tickmode.py +++ b/plotly/validators/splom/marker/colorbar/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/splom/marker/colorbar/_tickprefix.py b/plotly/validators/splom/marker/colorbar/_tickprefix.py index b03ca3b227..61900da4b8 100644 --- a/plotly/validators/splom/marker/colorbar/_tickprefix.py +++ b/plotly/validators/splom/marker/colorbar/_tickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/splom/marker/colorbar/_ticks.py b/plotly/validators/splom/marker/colorbar/_ticks.py index b6d261c447..0439f17c07 100644 --- a/plotly/validators/splom/marker/colorbar/_ticks.py +++ b/plotly/validators/splom/marker/colorbar/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/splom/marker/colorbar/_ticksuffix.py b/plotly/validators/splom/marker/colorbar/_ticksuffix.py index 5b3795956a..b3c4629b71 100644 --- a/plotly/validators/splom/marker/colorbar/_ticksuffix.py +++ b/plotly/validators/splom/marker/colorbar/_ticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/splom/marker/colorbar/_ticktext.py b/plotly/validators/splom/marker/colorbar/_ticktext.py index 8e4b0ecde4..1934e54950 100644 --- a/plotly/validators/splom/marker/colorbar/_ticktext.py +++ b/plotly/validators/splom/marker/colorbar/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/splom/marker/colorbar/_ticktextsrc.py b/plotly/validators/splom/marker/colorbar/_ticktextsrc.py index bad3971079..2aa2f05808 100644 --- a/plotly/validators/splom/marker/colorbar/_ticktextsrc.py +++ b/plotly/validators/splom/marker/colorbar/_ticktextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/splom/marker/colorbar/_tickvals.py b/plotly/validators/splom/marker/colorbar/_tickvals.py index 885a2e359a..1b4aad4ac6 100644 --- a/plotly/validators/splom/marker/colorbar/_tickvals.py +++ b/plotly/validators/splom/marker/colorbar/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/splom/marker/colorbar/_tickvalssrc.py b/plotly/validators/splom/marker/colorbar/_tickvalssrc.py index dd9bb74dc4..d5d74004e6 100644 --- a/plotly/validators/splom/marker/colorbar/_tickvalssrc.py +++ b/plotly/validators/splom/marker/colorbar/_tickvalssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/splom/marker/colorbar/_tickwidth.py b/plotly/validators/splom/marker/colorbar/_tickwidth.py index 968c61efc4..0a2943a2b3 100644 --- a/plotly/validators/splom/marker/colorbar/_tickwidth.py +++ b/plotly/validators/splom/marker/colorbar/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/splom/marker/colorbar/_title.py b/plotly/validators/splom/marker/colorbar/_title.py index 009b868098..6d7f54f0a9 100644 --- a/plotly/validators/splom/marker/colorbar/_title.py +++ b/plotly/validators/splom/marker/colorbar/_title.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/splom/marker/colorbar/_x.py b/plotly/validators/splom/marker/colorbar/_x.py index 86781bea2d..805b1af734 100644 --- a/plotly/validators/splom/marker/colorbar/_x.py +++ b/plotly/validators/splom/marker/colorbar/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/splom/marker/colorbar/_xanchor.py b/plotly/validators/splom/marker/colorbar/_xanchor.py index 2c6c0315a7..44e762637c 100644 --- a/plotly/validators/splom/marker/colorbar/_xanchor.py +++ b/plotly/validators/splom/marker/colorbar/_xanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/splom/marker/colorbar/_xpad.py b/plotly/validators/splom/marker/colorbar/_xpad.py index 4a67e6ecb2..384caa37df 100644 --- a/plotly/validators/splom/marker/colorbar/_xpad.py +++ b/plotly/validators/splom/marker/colorbar/_xpad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/splom/marker/colorbar/_xref.py b/plotly/validators/splom/marker/colorbar/_xref.py index 85a16f86e6..38d7cf14b9 100644 --- a/plotly/validators/splom/marker/colorbar/_xref.py +++ b/plotly/validators/splom/marker/colorbar/_xref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/splom/marker/colorbar/_y.py b/plotly/validators/splom/marker/colorbar/_y.py index 1ce993457d..1efd49d88b 100644 --- a/plotly/validators/splom/marker/colorbar/_y.py +++ b/plotly/validators/splom/marker/colorbar/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/splom/marker/colorbar/_yanchor.py b/plotly/validators/splom/marker/colorbar/_yanchor.py index db3ddd987e..c34b3ae938 100644 --- a/plotly/validators/splom/marker/colorbar/_yanchor.py +++ b/plotly/validators/splom/marker/colorbar/_yanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/splom/marker/colorbar/_ypad.py b/plotly/validators/splom/marker/colorbar/_ypad.py index 3f1ab55e29..0baad53d76 100644 --- a/plotly/validators/splom/marker/colorbar/_ypad.py +++ b/plotly/validators/splom/marker/colorbar/_ypad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/splom/marker/colorbar/_yref.py b/plotly/validators/splom/marker/colorbar/_yref.py index 9570dca062..1d8a6c6b50 100644 --- a/plotly/validators/splom/marker/colorbar/_yref.py +++ b/plotly/validators/splom/marker/colorbar/_yref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/splom/marker/colorbar/tickfont/__init__.py b/plotly/validators/splom/marker/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/splom/marker/colorbar/tickfont/__init__.py +++ b/plotly/validators/splom/marker/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/splom/marker/colorbar/tickfont/_color.py b/plotly/validators/splom/marker/colorbar/tickfont/_color.py index 70b08dec01..575b8c6d48 100644 --- a/plotly/validators/splom/marker/colorbar/tickfont/_color.py +++ b/plotly/validators/splom/marker/colorbar/tickfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/splom/marker/colorbar/tickfont/_family.py b/plotly/validators/splom/marker/colorbar/tickfont/_family.py index 4e92631969..0ecc379b8b 100644 --- a/plotly/validators/splom/marker/colorbar/tickfont/_family.py +++ b/plotly/validators/splom/marker/colorbar/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/splom/marker/colorbar/tickfont/_lineposition.py b/plotly/validators/splom/marker/colorbar/tickfont/_lineposition.py index a6e4d7db42..3a7cd43454 100644 --- a/plotly/validators/splom/marker/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/splom/marker/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/splom/marker/colorbar/tickfont/_shadow.py b/plotly/validators/splom/marker/colorbar/tickfont/_shadow.py index 36be360614..74ee91df33 100644 --- a/plotly/validators/splom/marker/colorbar/tickfont/_shadow.py +++ b/plotly/validators/splom/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/splom/marker/colorbar/tickfont/_size.py b/plotly/validators/splom/marker/colorbar/tickfont/_size.py index f5edd4bd9f..32966d1c67 100644 --- a/plotly/validators/splom/marker/colorbar/tickfont/_size.py +++ b/plotly/validators/splom/marker/colorbar/tickfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/splom/marker/colorbar/tickfont/_style.py b/plotly/validators/splom/marker/colorbar/tickfont/_style.py index 4cfece7d15..f5bf118334 100644 --- a/plotly/validators/splom/marker/colorbar/tickfont/_style.py +++ b/plotly/validators/splom/marker/colorbar/tickfont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/splom/marker/colorbar/tickfont/_textcase.py b/plotly/validators/splom/marker/colorbar/tickfont/_textcase.py index 57827e8cfb..880970d9da 100644 --- a/plotly/validators/splom/marker/colorbar/tickfont/_textcase.py +++ b/plotly/validators/splom/marker/colorbar/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/splom/marker/colorbar/tickfont/_variant.py b/plotly/validators/splom/marker/colorbar/tickfont/_variant.py index 9b719133d9..ddb5e1acb1 100644 --- a/plotly/validators/splom/marker/colorbar/tickfont/_variant.py +++ b/plotly/validators/splom/marker/colorbar/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/splom/marker/colorbar/tickfont/_weight.py b/plotly/validators/splom/marker/colorbar/tickfont/_weight.py index 217ce3f41c..850cd9ab35 100644 --- a/plotly/validators/splom/marker/colorbar/tickfont/_weight.py +++ b/plotly/validators/splom/marker/colorbar/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/splom/marker/colorbar/tickformatstop/__init__.py b/plotly/validators/splom/marker/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/splom/marker/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/splom/marker/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/splom/marker/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/splom/marker/colorbar/tickformatstop/_dtickrange.py index 063702eb05..0729e1a2aa 100644 --- a/plotly/validators/splom/marker/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/splom/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( "items", diff --git a/plotly/validators/splom/marker/colorbar/tickformatstop/_enabled.py b/plotly/validators/splom/marker/colorbar/tickformatstop/_enabled.py index 34d90d696e..7facc843d5 100644 --- a/plotly/validators/splom/marker/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/splom/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/splom/marker/colorbar/tickformatstop/_name.py b/plotly/validators/splom/marker/colorbar/tickformatstop/_name.py index a63e1fc7a4..ad0f1694dd 100644 --- a/plotly/validators/splom/marker/colorbar/tickformatstop/_name.py +++ b/plotly/validators/splom/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/splom/marker/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/splom/marker/colorbar/tickformatstop/_templateitemname.py index 7d8c32d9c0..181da9f82e 100644 --- a/plotly/validators/splom/marker/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/splom/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/splom/marker/colorbar/tickformatstop/_value.py b/plotly/validators/splom/marker/colorbar/tickformatstop/_value.py index 778cba3e88..7de7d000e8 100644 --- a/plotly/validators/splom/marker/colorbar/tickformatstop/_value.py +++ b/plotly/validators/splom/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/splom/marker/colorbar/title/__init__.py b/plotly/validators/splom/marker/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/splom/marker/colorbar/title/__init__.py +++ b/plotly/validators/splom/marker/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/splom/marker/colorbar/title/_font.py b/plotly/validators/splom/marker/colorbar/title/_font.py index 2fe8f613e4..389ebc9cd2 100644 --- a/plotly/validators/splom/marker/colorbar/title/_font.py +++ b/plotly/validators/splom/marker/colorbar/title/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/splom/marker/colorbar/title/_side.py b/plotly/validators/splom/marker/colorbar/title/_side.py index 27ffa9f8b6..72576934e6 100644 --- a/plotly/validators/splom/marker/colorbar/title/_side.py +++ b/plotly/validators/splom/marker/colorbar/title/_side.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/splom/marker/colorbar/title/_text.py b/plotly/validators/splom/marker/colorbar/title/_text.py index 319d24b380..626aeb6978 100644 --- a/plotly/validators/splom/marker/colorbar/title/_text.py +++ b/plotly/validators/splom/marker/colorbar/title/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/splom/marker/colorbar/title/font/__init__.py b/plotly/validators/splom/marker/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/splom/marker/colorbar/title/font/__init__.py +++ b/plotly/validators/splom/marker/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/splom/marker/colorbar/title/font/_color.py b/plotly/validators/splom/marker/colorbar/title/font/_color.py index 883525b62f..1d10932f73 100644 --- a/plotly/validators/splom/marker/colorbar/title/font/_color.py +++ b/plotly/validators/splom/marker/colorbar/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/splom/marker/colorbar/title/font/_family.py b/plotly/validators/splom/marker/colorbar/title/font/_family.py index dd90640b54..45c747df79 100644 --- a/plotly/validators/splom/marker/colorbar/title/font/_family.py +++ b/plotly/validators/splom/marker/colorbar/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/splom/marker/colorbar/title/font/_lineposition.py b/plotly/validators/splom/marker/colorbar/title/font/_lineposition.py index b02be928ed..4117bd38b8 100644 --- a/plotly/validators/splom/marker/colorbar/title/font/_lineposition.py +++ b/plotly/validators/splom/marker/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/splom/marker/colorbar/title/font/_shadow.py b/plotly/validators/splom/marker/colorbar/title/font/_shadow.py index 0dd2f9a954..68ff6f457f 100644 --- a/plotly/validators/splom/marker/colorbar/title/font/_shadow.py +++ b/plotly/validators/splom/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/splom/marker/colorbar/title/font/_size.py b/plotly/validators/splom/marker/colorbar/title/font/_size.py index 37341fbf42..c0a6c4af80 100644 --- a/plotly/validators/splom/marker/colorbar/title/font/_size.py +++ b/plotly/validators/splom/marker/colorbar/title/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/splom/marker/colorbar/title/font/_style.py b/plotly/validators/splom/marker/colorbar/title/font/_style.py index e0fa35e0a0..4641efc57c 100644 --- a/plotly/validators/splom/marker/colorbar/title/font/_style.py +++ b/plotly/validators/splom/marker/colorbar/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/splom/marker/colorbar/title/font/_textcase.py b/plotly/validators/splom/marker/colorbar/title/font/_textcase.py index 7c20ad1a3b..eb85be811a 100644 --- a/plotly/validators/splom/marker/colorbar/title/font/_textcase.py +++ b/plotly/validators/splom/marker/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/splom/marker/colorbar/title/font/_variant.py b/plotly/validators/splom/marker/colorbar/title/font/_variant.py index 3729a3900e..75f76fce5d 100644 --- a/plotly/validators/splom/marker/colorbar/title/font/_variant.py +++ b/plotly/validators/splom/marker/colorbar/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/splom/marker/colorbar/title/font/_weight.py b/plotly/validators/splom/marker/colorbar/title/font/_weight.py index 9b7e501e88..cdb772717d 100644 --- a/plotly/validators/splom/marker/colorbar/title/font/_weight.py +++ b/plotly/validators/splom/marker/colorbar/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/splom/marker/line/__init__.py b/plotly/validators/splom/marker/line/__init__.py index facbe33f88..4ba3ea340b 100644 --- a/plotly/validators/splom/marker/line/__init__.py +++ b/plotly/validators/splom/marker/line/__init__.py @@ -1,37 +1,21 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._widthsrc import WidthsrcValidator - from ._width import WidthValidator - from ._reversescale import ReversescaleValidator - from ._colorsrc import ColorsrcValidator - from ._colorscale import ColorscaleValidator - from ._coloraxis import ColoraxisValidator - from ._color import ColorValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/splom/marker/line/_autocolorscale.py b/plotly/validators/splom/marker/line/_autocolorscale.py index 99950c8a33..24843b74e4 100644 --- a/plotly/validators/splom/marker/line/_autocolorscale.py +++ b/plotly/validators/splom/marker/line/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/splom/marker/line/_cauto.py b/plotly/validators/splom/marker/line/_cauto.py index 66f346df8e..51b49a12c6 100644 --- a/plotly/validators/splom/marker/line/_cauto.py +++ b/plotly/validators/splom/marker/line/_cauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/splom/marker/line/_cmax.py b/plotly/validators/splom/marker/line/_cmax.py index 4b38566d8f..84d7254512 100644 --- a/plotly/validators/splom/marker/line/_cmax.py +++ b/plotly/validators/splom/marker/line/_cmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/splom/marker/line/_cmid.py b/plotly/validators/splom/marker/line/_cmid.py index b1277f8e3e..cb0f00fea0 100644 --- a/plotly/validators/splom/marker/line/_cmid.py +++ b/plotly/validators/splom/marker/line/_cmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/splom/marker/line/_cmin.py b/plotly/validators/splom/marker/line/_cmin.py index e6e9e4b1cc..4378e8f626 100644 --- a/plotly/validators/splom/marker/line/_cmin.py +++ b/plotly/validators/splom/marker/line/_cmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/splom/marker/line/_color.py b/plotly/validators/splom/marker/line/_color.py index 5924e45bda..eb7f193ede 100644 --- a/plotly/validators/splom/marker/line/_color.py +++ b/plotly/validators/splom/marker/line/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), colorscale_path=kwargs.pop( diff --git a/plotly/validators/splom/marker/line/_coloraxis.py b/plotly/validators/splom/marker/line/_coloraxis.py index 8cb2af6690..ad421ca3cd 100644 --- a/plotly/validators/splom/marker/line/_coloraxis.py +++ b/plotly/validators/splom/marker/line/_coloraxis.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/splom/marker/line/_colorscale.py b/plotly/validators/splom/marker/line/_colorscale.py index e5dc89a528..493b51d0f6 100644 --- a/plotly/validators/splom/marker/line/_colorscale.py +++ b/plotly/validators/splom/marker/line/_colorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/splom/marker/line/_colorsrc.py b/plotly/validators/splom/marker/line/_colorsrc.py index 9f3b739388..39a2fa0375 100644 --- a/plotly/validators/splom/marker/line/_colorsrc.py +++ b/plotly/validators/splom/marker/line/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/splom/marker/line/_reversescale.py b/plotly/validators/splom/marker/line/_reversescale.py index 8777171cf8..ad3baa5666 100644 --- a/plotly/validators/splom/marker/line/_reversescale.py +++ b/plotly/validators/splom/marker/line/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/splom/marker/line/_width.py b/plotly/validators/splom/marker/line/_width.py index 67fad79c09..8f30917f2e 100644 --- a/plotly/validators/splom/marker/line/_width.py +++ b/plotly/validators/splom/marker/line/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/splom/marker/line/_widthsrc.py b/plotly/validators/splom/marker/line/_widthsrc.py index 5a7df83ac6..303c7a5f0e 100644 --- a/plotly/validators/splom/marker/line/_widthsrc.py +++ b/plotly/validators/splom/marker/line/_widthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/splom/selected/__init__.py b/plotly/validators/splom/selected/__init__.py index e9bdb89f26..20900abc1a 100644 --- a/plotly/validators/splom/selected/__init__.py +++ b/plotly/validators/splom/selected/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.MarkerValidator"] +) diff --git a/plotly/validators/splom/selected/_marker.py b/plotly/validators/splom/selected/_marker.py index dfdfc3e2da..facfcdfe34 100644 --- a/plotly/validators/splom/selected/_marker.py +++ b/plotly/validators/splom/selected/_marker.py @@ -1,21 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/splom/selected/marker/__init__.py b/plotly/validators/splom/selected/marker/__init__.py index 8c321a38bc..c9c7226fe4 100644 --- a/plotly/validators/splom/selected/marker/__init__.py +++ b/plotly/validators/splom/selected/marker/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._size.SizeValidator", "._opacity.OpacityValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/splom/selected/marker/_color.py b/plotly/validators/splom/selected/marker/_color.py index 4c6eb7afc4..4928840deb 100644 --- a/plotly/validators/splom/selected/marker/_color.py +++ b/plotly/validators/splom/selected/marker/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/splom/selected/marker/_opacity.py b/plotly/validators/splom/selected/marker/_opacity.py index f91c2704b6..da9aa3065b 100644 --- a/plotly/validators/splom/selected/marker/_opacity.py +++ b/plotly/validators/splom/selected/marker/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/splom/selected/marker/_size.py b/plotly/validators/splom/selected/marker/_size.py index 455a2833ea..0b1b0cc2b3 100644 --- a/plotly/validators/splom/selected/marker/_size.py +++ b/plotly/validators/splom/selected/marker/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/splom/stream/__init__.py b/plotly/validators/splom/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/splom/stream/__init__.py +++ b/plotly/validators/splom/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/splom/stream/_maxpoints.py b/plotly/validators/splom/stream/_maxpoints.py index 6c15796af5..7de2c42bb5 100644 --- a/plotly/validators/splom/stream/_maxpoints.py +++ b/plotly/validators/splom/stream/_maxpoints.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/splom/stream/_token.py b/plotly/validators/splom/stream/_token.py index 095a71fb22..d98deaae49 100644 --- a/plotly/validators/splom/stream/_token.py +++ b/plotly/validators/splom/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/splom/unselected/__init__.py b/plotly/validators/splom/unselected/__init__.py index e9bdb89f26..20900abc1a 100644 --- a/plotly/validators/splom/unselected/__init__.py +++ b/plotly/validators/splom/unselected/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.MarkerValidator"] +) diff --git a/plotly/validators/splom/unselected/_marker.py b/plotly/validators/splom/unselected/_marker.py index 5030c7a350..d88f93f5f8 100644 --- a/plotly/validators/splom/unselected/_marker.py +++ b/plotly/validators/splom/unselected/_marker.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/splom/unselected/marker/__init__.py b/plotly/validators/splom/unselected/marker/__init__.py index 8c321a38bc..c9c7226fe4 100644 --- a/plotly/validators/splom/unselected/marker/__init__.py +++ b/plotly/validators/splom/unselected/marker/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._size.SizeValidator", "._opacity.OpacityValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/splom/unselected/marker/_color.py b/plotly/validators/splom/unselected/marker/_color.py index a20e158b1e..dfd5c838ff 100644 --- a/plotly/validators/splom/unselected/marker/_color.py +++ b/plotly/validators/splom/unselected/marker/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/splom/unselected/marker/_opacity.py b/plotly/validators/splom/unselected/marker/_opacity.py index 85453eb5c8..e3e9aa6e47 100644 --- a/plotly/validators/splom/unselected/marker/_opacity.py +++ b/plotly/validators/splom/unselected/marker/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/splom/unselected/marker/_size.py b/plotly/validators/splom/unselected/marker/_size.py index 5f80f39c7b..57aca2920e 100644 --- a/plotly/validators/splom/unselected/marker/_size.py +++ b/plotly/validators/splom/unselected/marker/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/streamtube/__init__.py b/plotly/validators/streamtube/__init__.py index 7d348e38db..fe2655fb12 100644 --- a/plotly/validators/streamtube/__init__.py +++ b/plotly/validators/streamtube/__init__.py @@ -1,131 +1,68 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zsrc import ZsrcValidator - from ._zhoverformat import ZhoverformatValidator - from ._z import ZValidator - from ._ysrc import YsrcValidator - from ._yhoverformat import YhoverformatValidator - from ._y import YValidator - from ._xsrc import XsrcValidator - from ._xhoverformat import XhoverformatValidator - from ._x import XValidator - from ._wsrc import WsrcValidator - from ._whoverformat import WhoverformatValidator - from ._w import WValidator - from ._vsrc import VsrcValidator - from ._visible import VisibleValidator - from ._vhoverformat import VhoverformatValidator - from ._v import VValidator - from ._usrc import UsrcValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._uhoverformat import UhoverformatValidator - from ._u import UValidator - from ._text import TextValidator - from ._stream import StreamValidator - from ._starts import StartsValidator - from ._sizeref import SizerefValidator - from ._showscale import ShowscaleValidator - from ._showlegend import ShowlegendValidator - from ._scene import SceneValidator - from ._reversescale import ReversescaleValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._maxdisplayed import MaxdisplayedValidator - from ._lightposition import LightpositionValidator - from ._lighting import LightingValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/streamtube/_autocolorscale.py b/plotly/validators/streamtube/_autocolorscale.py index e447511e6f..a3db9e7aea 100644 --- a/plotly/validators/streamtube/_autocolorscale.py +++ b/plotly/validators/streamtube/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/streamtube/_cauto.py b/plotly/validators/streamtube/_cauto.py index 414e80020a..4f9912b824 100644 --- a/plotly/validators/streamtube/_cauto.py +++ b/plotly/validators/streamtube/_cauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/streamtube/_cmax.py b/plotly/validators/streamtube/_cmax.py index 43ceb30505..a0e99e7bcd 100644 --- a/plotly/validators/streamtube/_cmax.py +++ b/plotly/validators/streamtube/_cmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/streamtube/_cmid.py b/plotly/validators/streamtube/_cmid.py index 8c5d588529..0fee5afc08 100644 --- a/plotly/validators/streamtube/_cmid.py +++ b/plotly/validators/streamtube/_cmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/streamtube/_cmin.py b/plotly/validators/streamtube/_cmin.py index ceaf33c30a..ad2b6c0b13 100644 --- a/plotly/validators/streamtube/_cmin.py +++ b/plotly/validators/streamtube/_cmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/streamtube/_coloraxis.py b/plotly/validators/streamtube/_coloraxis.py index 611512d151..5edc4c7a42 100644 --- a/plotly/validators/streamtube/_coloraxis.py +++ b/plotly/validators/streamtube/_coloraxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/streamtube/_colorbar.py b/plotly/validators/streamtube/_colorbar.py index bc5426a7d3..9c702d32ce 100644 --- a/plotly/validators/streamtube/_colorbar.py +++ b/plotly/validators/streamtube/_colorbar.py @@ -1,278 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/streamtube/_colorscale.py b/plotly/validators/streamtube/_colorscale.py index 11f29c538b..747c6efdc4 100644 --- a/plotly/validators/streamtube/_colorscale.py +++ b/plotly/validators/streamtube/_colorscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/streamtube/_customdata.py b/plotly/validators/streamtube/_customdata.py index 4425ae6ee6..adcb76e56c 100644 --- a/plotly/validators/streamtube/_customdata.py +++ b/plotly/validators/streamtube/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/streamtube/_customdatasrc.py b/plotly/validators/streamtube/_customdatasrc.py index 5c11d487e0..510fc6d7a0 100644 --- a/plotly/validators/streamtube/_customdatasrc.py +++ b/plotly/validators/streamtube/_customdatasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/_hoverinfo.py b/plotly/validators/streamtube/_hoverinfo.py index 45d16d16d5..070370f809 100644 --- a/plotly/validators/streamtube/_hoverinfo.py +++ b/plotly/validators/streamtube/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/streamtube/_hoverinfosrc.py b/plotly/validators/streamtube/_hoverinfosrc.py index 4394473d4b..0337b962cf 100644 --- a/plotly/validators/streamtube/_hoverinfosrc.py +++ b/plotly/validators/streamtube/_hoverinfosrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/_hoverlabel.py b/plotly/validators/streamtube/_hoverlabel.py index 53844d700d..6fa2bb59f1 100644 --- a/plotly/validators/streamtube/_hoverlabel.py +++ b/plotly/validators/streamtube/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/streamtube/_hovertemplate.py b/plotly/validators/streamtube/_hovertemplate.py index 4b569bdfd8..0bef081638 100644 --- a/plotly/validators/streamtube/_hovertemplate.py +++ b/plotly/validators/streamtube/_hovertemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/streamtube/_hovertemplatesrc.py b/plotly/validators/streamtube/_hovertemplatesrc.py index 01f77c33d2..21ce5d7be3 100644 --- a/plotly/validators/streamtube/_hovertemplatesrc.py +++ b/plotly/validators/streamtube/_hovertemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/_hovertext.py b/plotly/validators/streamtube/_hovertext.py index 99c3fe86c3..87c53b341b 100644 --- a/plotly/validators/streamtube/_hovertext.py +++ b/plotly/validators/streamtube/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/streamtube/_ids.py b/plotly/validators/streamtube/_ids.py index adf0b313b9..a3a6a58958 100644 --- a/plotly/validators/streamtube/_ids.py +++ b/plotly/validators/streamtube/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/streamtube/_idssrc.py b/plotly/validators/streamtube/_idssrc.py index 0c1cdbb318..a68d722702 100644 --- a/plotly/validators/streamtube/_idssrc.py +++ b/plotly/validators/streamtube/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/_legend.py b/plotly/validators/streamtube/_legend.py index b1f936142d..de1086e4fc 100644 --- a/plotly/validators/streamtube/_legend.py +++ b/plotly/validators/streamtube/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/streamtube/_legendgroup.py b/plotly/validators/streamtube/_legendgroup.py index 218ac4ec09..804ffd9104 100644 --- a/plotly/validators/streamtube/_legendgroup.py +++ b/plotly/validators/streamtube/_legendgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/streamtube/_legendgrouptitle.py b/plotly/validators/streamtube/_legendgrouptitle.py index 569c818373..e1f84f508a 100644 --- a/plotly/validators/streamtube/_legendgrouptitle.py +++ b/plotly/validators/streamtube/_legendgrouptitle.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/streamtube/_legendrank.py b/plotly/validators/streamtube/_legendrank.py index 76556da110..fbca85a4f2 100644 --- a/plotly/validators/streamtube/_legendrank.py +++ b/plotly/validators/streamtube/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/streamtube/_legendwidth.py b/plotly/validators/streamtube/_legendwidth.py index faaea815d4..a26953ea97 100644 --- a/plotly/validators/streamtube/_legendwidth.py +++ b/plotly/validators/streamtube/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/streamtube/_lighting.py b/plotly/validators/streamtube/_lighting.py index ba907df800..5fc581a3d6 100644 --- a/plotly/validators/streamtube/_lighting.py +++ b/plotly/validators/streamtube/_lighting.py @@ -1,39 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LightingValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/streamtube/_lightposition.py b/plotly/validators/streamtube/_lightposition.py index e60f1e5fe0..6b75fadf37 100644 --- a/plotly/validators/streamtube/_lightposition.py +++ b/plotly/validators/streamtube/_lightposition.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LightpositionValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/streamtube/_maxdisplayed.py b/plotly/validators/streamtube/_maxdisplayed.py index 248040d0d4..b78faa6ab9 100644 --- a/plotly/validators/streamtube/_maxdisplayed.py +++ b/plotly/validators/streamtube/_maxdisplayed.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxdisplayedValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/streamtube/_meta.py b/plotly/validators/streamtube/_meta.py index 186fe35729..a5bdf1e39f 100644 --- a/plotly/validators/streamtube/_meta.py +++ b/plotly/validators/streamtube/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/streamtube/_metasrc.py b/plotly/validators/streamtube/_metasrc.py index c886449d3b..b99574ecb8 100644 --- a/plotly/validators/streamtube/_metasrc.py +++ b/plotly/validators/streamtube/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/_name.py b/plotly/validators/streamtube/_name.py index 003840f163..ed177b1e55 100644 --- a/plotly/validators/streamtube/_name.py +++ b/plotly/validators/streamtube/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/streamtube/_opacity.py b/plotly/validators/streamtube/_opacity.py index 4ae578cf1e..c23d8f31d5 100644 --- a/plotly/validators/streamtube/_opacity.py +++ b/plotly/validators/streamtube/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/streamtube/_reversescale.py b/plotly/validators/streamtube/_reversescale.py index ae47d52088..5ba26a6aca 100644 --- a/plotly/validators/streamtube/_reversescale.py +++ b/plotly/validators/streamtube/_reversescale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/streamtube/_scene.py b/plotly/validators/streamtube/_scene.py index d822a1afcb..7423a15d21 100644 --- a/plotly/validators/streamtube/_scene.py +++ b/plotly/validators/streamtube/_scene.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SceneValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "scene"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/streamtube/_showlegend.py b/plotly/validators/streamtube/_showlegend.py index b61d95f0c9..a64f66dd60 100644 --- a/plotly/validators/streamtube/_showlegend.py +++ b/plotly/validators/streamtube/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/streamtube/_showscale.py b/plotly/validators/streamtube/_showscale.py index 3603ae703d..d55d839ce8 100644 --- a/plotly/validators/streamtube/_showscale.py +++ b/plotly/validators/streamtube/_showscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/streamtube/_sizeref.py b/plotly/validators/streamtube/_sizeref.py index 355171d41f..f21a68fe8c 100644 --- a/plotly/validators/streamtube/_sizeref.py +++ b/plotly/validators/streamtube/_sizeref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizerefValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/streamtube/_starts.py b/plotly/validators/streamtube/_starts.py index 0ec1167db4..5dbb988e15 100644 --- a/plotly/validators/streamtube/_starts.py +++ b/plotly/validators/streamtube/_starts.py @@ -1,33 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StartsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/streamtube/_stream.py b/plotly/validators/streamtube/_stream.py index 3e5eb1763c..9137bf706b 100644 --- a/plotly/validators/streamtube/_stream.py +++ b/plotly/validators/streamtube/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/streamtube/_text.py b/plotly/validators/streamtube/_text.py index 3951ed05ab..51ef800d9c 100644 --- a/plotly/validators/streamtube/_text.py +++ b/plotly/validators/streamtube/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/streamtube/_u.py b/plotly/validators/streamtube/_u.py index e7ec4cc382..62803830a9 100644 --- a/plotly/validators/streamtube/_u.py +++ b/plotly/validators/streamtube/_u.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/streamtube/_uhoverformat.py b/plotly/validators/streamtube/_uhoverformat.py index 4b16121790..84380a2cac 100644 --- a/plotly/validators/streamtube/_uhoverformat.py +++ b/plotly/validators/streamtube/_uhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/_uid.py b/plotly/validators/streamtube/_uid.py index 9938691c23..68a194c84d 100644 --- a/plotly/validators/streamtube/_uid.py +++ b/plotly/validators/streamtube/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/streamtube/_uirevision.py b/plotly/validators/streamtube/_uirevision.py index a33d8dd6d6..9ee2fbf3f6 100644 --- a/plotly/validators/streamtube/_uirevision.py +++ b/plotly/validators/streamtube/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/_usrc.py b/plotly/validators/streamtube/_usrc.py index e9de223849..5b940bbcd6 100644 --- a/plotly/validators/streamtube/_usrc.py +++ b/plotly/validators/streamtube/_usrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/_v.py b/plotly/validators/streamtube/_v.py index 0131b6abb1..6a0630689e 100644 --- a/plotly/validators/streamtube/_v.py +++ b/plotly/validators/streamtube/_v.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/streamtube/_vhoverformat.py b/plotly/validators/streamtube/_vhoverformat.py index 3be49278bb..ebc211fc0f 100644 --- a/plotly/validators/streamtube/_vhoverformat.py +++ b/plotly/validators/streamtube/_vhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/_visible.py b/plotly/validators/streamtube/_visible.py index 2c718733e8..d00dd0e576 100644 --- a/plotly/validators/streamtube/_visible.py +++ b/plotly/validators/streamtube/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/streamtube/_vsrc.py b/plotly/validators/streamtube/_vsrc.py index db01a54b0c..5b20da5672 100644 --- a/plotly/validators/streamtube/_vsrc.py +++ b/plotly/validators/streamtube/_vsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/_w.py b/plotly/validators/streamtube/_w.py index 9350bc9678..c887847134 100644 --- a/plotly/validators/streamtube/_w.py +++ b/plotly/validators/streamtube/_w.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/streamtube/_whoverformat.py b/plotly/validators/streamtube/_whoverformat.py index d78f9bce9a..222285e337 100644 --- a/plotly/validators/streamtube/_whoverformat.py +++ b/plotly/validators/streamtube/_whoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/_wsrc.py b/plotly/validators/streamtube/_wsrc.py index d75a7cd8a0..b070faef8c 100644 --- a/plotly/validators/streamtube/_wsrc.py +++ b/plotly/validators/streamtube/_wsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/_x.py b/plotly/validators/streamtube/_x.py index b294dd179e..8e9807b64b 100644 --- a/plotly/validators/streamtube/_x.py +++ b/plotly/validators/streamtube/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/streamtube/_xhoverformat.py b/plotly/validators/streamtube/_xhoverformat.py index 0228a1c2a6..c917cf48f0 100644 --- a/plotly/validators/streamtube/_xhoverformat.py +++ b/plotly/validators/streamtube/_xhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/_xsrc.py b/plotly/validators/streamtube/_xsrc.py index 50f8d922ae..879062fda0 100644 --- a/plotly/validators/streamtube/_xsrc.py +++ b/plotly/validators/streamtube/_xsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/_y.py b/plotly/validators/streamtube/_y.py index e7da1a0ec0..d39e812c2d 100644 --- a/plotly/validators/streamtube/_y.py +++ b/plotly/validators/streamtube/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/streamtube/_yhoverformat.py b/plotly/validators/streamtube/_yhoverformat.py index 41799faa34..df895505b1 100644 --- a/plotly/validators/streamtube/_yhoverformat.py +++ b/plotly/validators/streamtube/_yhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/_ysrc.py b/plotly/validators/streamtube/_ysrc.py index cd48e23479..b2926ab28d 100644 --- a/plotly/validators/streamtube/_ysrc.py +++ b/plotly/validators/streamtube/_ysrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/_z.py b/plotly/validators/streamtube/_z.py index 65b3ff9f01..d7c86d3bd5 100644 --- a/plotly/validators/streamtube/_z.py +++ b/plotly/validators/streamtube/_z.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/streamtube/_zhoverformat.py b/plotly/validators/streamtube/_zhoverformat.py index a14d8c71b4..ac984d52b1 100644 --- a/plotly/validators/streamtube/_zhoverformat.py +++ b/plotly/validators/streamtube/_zhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/_zsrc.py b/plotly/validators/streamtube/_zsrc.py index 8f49330813..3fbae5117b 100644 --- a/plotly/validators/streamtube/_zsrc.py +++ b/plotly/validators/streamtube/_zsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/colorbar/__init__.py b/plotly/validators/streamtube/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/streamtube/colorbar/__init__.py +++ b/plotly/validators/streamtube/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/streamtube/colorbar/_bgcolor.py b/plotly/validators/streamtube/colorbar/_bgcolor.py index afc98aa58c..ba91882ca6 100644 --- a/plotly/validators/streamtube/colorbar/_bgcolor.py +++ b/plotly/validators/streamtube/colorbar/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/streamtube/colorbar/_bordercolor.py b/plotly/validators/streamtube/colorbar/_bordercolor.py index 88c898dc75..ce4c44819a 100644 --- a/plotly/validators/streamtube/colorbar/_bordercolor.py +++ b/plotly/validators/streamtube/colorbar/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/streamtube/colorbar/_borderwidth.py b/plotly/validators/streamtube/colorbar/_borderwidth.py index 96b856de1d..86fbd0a02c 100644 --- a/plotly/validators/streamtube/colorbar/_borderwidth.py +++ b/plotly/validators/streamtube/colorbar/_borderwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/streamtube/colorbar/_dtick.py b/plotly/validators/streamtube/colorbar/_dtick.py index 853af5c2d8..e3af803ed0 100644 --- a/plotly/validators/streamtube/colorbar/_dtick.py +++ b/plotly/validators/streamtube/colorbar/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/streamtube/colorbar/_exponentformat.py b/plotly/validators/streamtube/colorbar/_exponentformat.py index bfe98963f5..30b0c0bfde 100644 --- a/plotly/validators/streamtube/colorbar/_exponentformat.py +++ b/plotly/validators/streamtube/colorbar/_exponentformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/streamtube/colorbar/_labelalias.py b/plotly/validators/streamtube/colorbar/_labelalias.py index 38050c0e4d..2d94332e2f 100644 --- a/plotly/validators/streamtube/colorbar/_labelalias.py +++ b/plotly/validators/streamtube/colorbar/_labelalias.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/streamtube/colorbar/_len.py b/plotly/validators/streamtube/colorbar/_len.py index 936737c866..2112b4c65b 100644 --- a/plotly/validators/streamtube/colorbar/_len.py +++ b/plotly/validators/streamtube/colorbar/_len.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/streamtube/colorbar/_lenmode.py b/plotly/validators/streamtube/colorbar/_lenmode.py index 02b6395cf2..7eacd335f6 100644 --- a/plotly/validators/streamtube/colorbar/_lenmode.py +++ b/plotly/validators/streamtube/colorbar/_lenmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/streamtube/colorbar/_minexponent.py b/plotly/validators/streamtube/colorbar/_minexponent.py index 830e04a948..a9f5b04727 100644 --- a/plotly/validators/streamtube/colorbar/_minexponent.py +++ b/plotly/validators/streamtube/colorbar/_minexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/streamtube/colorbar/_nticks.py b/plotly/validators/streamtube/colorbar/_nticks.py index b54fdb29cf..19cc0b8d1e 100644 --- a/plotly/validators/streamtube/colorbar/_nticks.py +++ b/plotly/validators/streamtube/colorbar/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/streamtube/colorbar/_orientation.py b/plotly/validators/streamtube/colorbar/_orientation.py index f9b5c827f8..813e707ac6 100644 --- a/plotly/validators/streamtube/colorbar/_orientation.py +++ b/plotly/validators/streamtube/colorbar/_orientation.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/streamtube/colorbar/_outlinecolor.py b/plotly/validators/streamtube/colorbar/_outlinecolor.py index c8a4679d8b..d7501415c0 100644 --- a/plotly/validators/streamtube/colorbar/_outlinecolor.py +++ b/plotly/validators/streamtube/colorbar/_outlinecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/streamtube/colorbar/_outlinewidth.py b/plotly/validators/streamtube/colorbar/_outlinewidth.py index 753a45ac36..56559393fe 100644 --- a/plotly/validators/streamtube/colorbar/_outlinewidth.py +++ b/plotly/validators/streamtube/colorbar/_outlinewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/streamtube/colorbar/_separatethousands.py b/plotly/validators/streamtube/colorbar/_separatethousands.py index d6f9766ed8..6d9165dc79 100644 --- a/plotly/validators/streamtube/colorbar/_separatethousands.py +++ b/plotly/validators/streamtube/colorbar/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/streamtube/colorbar/_showexponent.py b/plotly/validators/streamtube/colorbar/_showexponent.py index 703ce133ff..16401e459c 100644 --- a/plotly/validators/streamtube/colorbar/_showexponent.py +++ b/plotly/validators/streamtube/colorbar/_showexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/streamtube/colorbar/_showticklabels.py b/plotly/validators/streamtube/colorbar/_showticklabels.py index fc429b3d55..6fff39a37d 100644 --- a/plotly/validators/streamtube/colorbar/_showticklabels.py +++ b/plotly/validators/streamtube/colorbar/_showticklabels.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/streamtube/colorbar/_showtickprefix.py b/plotly/validators/streamtube/colorbar/_showtickprefix.py index cc8e45420d..7eb2a5cbb7 100644 --- a/plotly/validators/streamtube/colorbar/_showtickprefix.py +++ b/plotly/validators/streamtube/colorbar/_showtickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/streamtube/colorbar/_showticksuffix.py b/plotly/validators/streamtube/colorbar/_showticksuffix.py index f23db30ca6..0697c32f91 100644 --- a/plotly/validators/streamtube/colorbar/_showticksuffix.py +++ b/plotly/validators/streamtube/colorbar/_showticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/streamtube/colorbar/_thickness.py b/plotly/validators/streamtube/colorbar/_thickness.py index 3e63ef6c3e..d63b9bde3c 100644 --- a/plotly/validators/streamtube/colorbar/_thickness.py +++ b/plotly/validators/streamtube/colorbar/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/streamtube/colorbar/_thicknessmode.py b/plotly/validators/streamtube/colorbar/_thicknessmode.py index d20234921d..3f41949990 100644 --- a/plotly/validators/streamtube/colorbar/_thicknessmode.py +++ b/plotly/validators/streamtube/colorbar/_thicknessmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/streamtube/colorbar/_tick0.py b/plotly/validators/streamtube/colorbar/_tick0.py index 8dbe26870b..9640c9b945 100644 --- a/plotly/validators/streamtube/colorbar/_tick0.py +++ b/plotly/validators/streamtube/colorbar/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/streamtube/colorbar/_tickangle.py b/plotly/validators/streamtube/colorbar/_tickangle.py index cb7849a949..d649706dcd 100644 --- a/plotly/validators/streamtube/colorbar/_tickangle.py +++ b/plotly/validators/streamtube/colorbar/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/streamtube/colorbar/_tickcolor.py b/plotly/validators/streamtube/colorbar/_tickcolor.py index 3bacdd2502..12a2b7de36 100644 --- a/plotly/validators/streamtube/colorbar/_tickcolor.py +++ b/plotly/validators/streamtube/colorbar/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/streamtube/colorbar/_tickfont.py b/plotly/validators/streamtube/colorbar/_tickfont.py index 4df707496b..1c20765b2b 100644 --- a/plotly/validators/streamtube/colorbar/_tickfont.py +++ b/plotly/validators/streamtube/colorbar/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/streamtube/colorbar/_tickformat.py b/plotly/validators/streamtube/colorbar/_tickformat.py index d234c524ce..ddb0688b6c 100644 --- a/plotly/validators/streamtube/colorbar/_tickformat.py +++ b/plotly/validators/streamtube/colorbar/_tickformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/streamtube/colorbar/_tickformatstopdefaults.py b/plotly/validators/streamtube/colorbar/_tickformatstopdefaults.py index 9de961159d..ebdb01bf0b 100644 --- a/plotly/validators/streamtube/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/streamtube/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/streamtube/colorbar/_tickformatstops.py b/plotly/validators/streamtube/colorbar/_tickformatstops.py index 0957e2e880..e968062c9d 100644 --- a/plotly/validators/streamtube/colorbar/_tickformatstops.py +++ b/plotly/validators/streamtube/colorbar/_tickformatstops.py @@ -1,50 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/streamtube/colorbar/_ticklabeloverflow.py b/plotly/validators/streamtube/colorbar/_ticklabeloverflow.py index 52c9ad0a53..40be13560f 100644 --- a/plotly/validators/streamtube/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/streamtube/colorbar/_ticklabeloverflow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/streamtube/colorbar/_ticklabelposition.py b/plotly/validators/streamtube/colorbar/_ticklabelposition.py index ab5387fcbb..b207ddb3fa 100644 --- a/plotly/validators/streamtube/colorbar/_ticklabelposition.py +++ b/plotly/validators/streamtube/colorbar/_ticklabelposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/streamtube/colorbar/_ticklabelstep.py b/plotly/validators/streamtube/colorbar/_ticklabelstep.py index ecae40d6c6..50ef824721 100644 --- a/plotly/validators/streamtube/colorbar/_ticklabelstep.py +++ b/plotly/validators/streamtube/colorbar/_ticklabelstep.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/streamtube/colorbar/_ticklen.py b/plotly/validators/streamtube/colorbar/_ticklen.py index 266630d9b3..2ff0e57f9c 100644 --- a/plotly/validators/streamtube/colorbar/_ticklen.py +++ b/plotly/validators/streamtube/colorbar/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/streamtube/colorbar/_tickmode.py b/plotly/validators/streamtube/colorbar/_tickmode.py index 54c7415636..2dc514efc6 100644 --- a/plotly/validators/streamtube/colorbar/_tickmode.py +++ b/plotly/validators/streamtube/colorbar/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/streamtube/colorbar/_tickprefix.py b/plotly/validators/streamtube/colorbar/_tickprefix.py index eb39238f81..1f2f2959cc 100644 --- a/plotly/validators/streamtube/colorbar/_tickprefix.py +++ b/plotly/validators/streamtube/colorbar/_tickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/streamtube/colorbar/_ticks.py b/plotly/validators/streamtube/colorbar/_ticks.py index c93ec6b675..81f467ea6b 100644 --- a/plotly/validators/streamtube/colorbar/_ticks.py +++ b/plotly/validators/streamtube/colorbar/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/streamtube/colorbar/_ticksuffix.py b/plotly/validators/streamtube/colorbar/_ticksuffix.py index 9b54f6ea12..b3f2f1df17 100644 --- a/plotly/validators/streamtube/colorbar/_ticksuffix.py +++ b/plotly/validators/streamtube/colorbar/_ticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/streamtube/colorbar/_ticktext.py b/plotly/validators/streamtube/colorbar/_ticktext.py index 286aaa6dd0..3c62e2924c 100644 --- a/plotly/validators/streamtube/colorbar/_ticktext.py +++ b/plotly/validators/streamtube/colorbar/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/streamtube/colorbar/_ticktextsrc.py b/plotly/validators/streamtube/colorbar/_ticktextsrc.py index 7490c4121c..39f3c3ffcf 100644 --- a/plotly/validators/streamtube/colorbar/_ticktextsrc.py +++ b/plotly/validators/streamtube/colorbar/_ticktextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/colorbar/_tickvals.py b/plotly/validators/streamtube/colorbar/_tickvals.py index ae08112a36..0896f06f14 100644 --- a/plotly/validators/streamtube/colorbar/_tickvals.py +++ b/plotly/validators/streamtube/colorbar/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/streamtube/colorbar/_tickvalssrc.py b/plotly/validators/streamtube/colorbar/_tickvalssrc.py index d48f952d1a..5a332a8b10 100644 --- a/plotly/validators/streamtube/colorbar/_tickvalssrc.py +++ b/plotly/validators/streamtube/colorbar/_tickvalssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/colorbar/_tickwidth.py b/plotly/validators/streamtube/colorbar/_tickwidth.py index 3378a533a7..4f8b33831e 100644 --- a/plotly/validators/streamtube/colorbar/_tickwidth.py +++ b/plotly/validators/streamtube/colorbar/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/streamtube/colorbar/_title.py b/plotly/validators/streamtube/colorbar/_title.py index 38ba2860ec..f0e57172e9 100644 --- a/plotly/validators/streamtube/colorbar/_title.py +++ b/plotly/validators/streamtube/colorbar/_title.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/streamtube/colorbar/_x.py b/plotly/validators/streamtube/colorbar/_x.py index e4542c802c..449a09af16 100644 --- a/plotly/validators/streamtube/colorbar/_x.py +++ b/plotly/validators/streamtube/colorbar/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/streamtube/colorbar/_xanchor.py b/plotly/validators/streamtube/colorbar/_xanchor.py index 3961418b38..d6f87853f6 100644 --- a/plotly/validators/streamtube/colorbar/_xanchor.py +++ b/plotly/validators/streamtube/colorbar/_xanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/streamtube/colorbar/_xpad.py b/plotly/validators/streamtube/colorbar/_xpad.py index a41acacf46..69d4bc589a 100644 --- a/plotly/validators/streamtube/colorbar/_xpad.py +++ b/plotly/validators/streamtube/colorbar/_xpad.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/streamtube/colorbar/_xref.py b/plotly/validators/streamtube/colorbar/_xref.py index cf7c201969..ae0d694de3 100644 --- a/plotly/validators/streamtube/colorbar/_xref.py +++ b/plotly/validators/streamtube/colorbar/_xref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/streamtube/colorbar/_y.py b/plotly/validators/streamtube/colorbar/_y.py index 199ce881f5..415de144ad 100644 --- a/plotly/validators/streamtube/colorbar/_y.py +++ b/plotly/validators/streamtube/colorbar/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/streamtube/colorbar/_yanchor.py b/plotly/validators/streamtube/colorbar/_yanchor.py index 03ea8e8f6e..4cd1c63ce9 100644 --- a/plotly/validators/streamtube/colorbar/_yanchor.py +++ b/plotly/validators/streamtube/colorbar/_yanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/streamtube/colorbar/_ypad.py b/plotly/validators/streamtube/colorbar/_ypad.py index df6fc24f56..314e978ec0 100644 --- a/plotly/validators/streamtube/colorbar/_ypad.py +++ b/plotly/validators/streamtube/colorbar/_ypad.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/streamtube/colorbar/_yref.py b/plotly/validators/streamtube/colorbar/_yref.py index f5f79c3944..5b01eefbf1 100644 --- a/plotly/validators/streamtube/colorbar/_yref.py +++ b/plotly/validators/streamtube/colorbar/_yref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/streamtube/colorbar/tickfont/__init__.py b/plotly/validators/streamtube/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/streamtube/colorbar/tickfont/__init__.py +++ b/plotly/validators/streamtube/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/streamtube/colorbar/tickfont/_color.py b/plotly/validators/streamtube/colorbar/tickfont/_color.py index b266daf4b8..b89daf4aa1 100644 --- a/plotly/validators/streamtube/colorbar/tickfont/_color.py +++ b/plotly/validators/streamtube/colorbar/tickfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/streamtube/colorbar/tickfont/_family.py b/plotly/validators/streamtube/colorbar/tickfont/_family.py index 5448e5df4d..87a9685652 100644 --- a/plotly/validators/streamtube/colorbar/tickfont/_family.py +++ b/plotly/validators/streamtube/colorbar/tickfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/streamtube/colorbar/tickfont/_lineposition.py b/plotly/validators/streamtube/colorbar/tickfont/_lineposition.py index 0b725a4f29..49fc65c50f 100644 --- a/plotly/validators/streamtube/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/streamtube/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/streamtube/colorbar/tickfont/_shadow.py b/plotly/validators/streamtube/colorbar/tickfont/_shadow.py index 6851575d89..87f963fbc5 100644 --- a/plotly/validators/streamtube/colorbar/tickfont/_shadow.py +++ b/plotly/validators/streamtube/colorbar/tickfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/streamtube/colorbar/tickfont/_size.py b/plotly/validators/streamtube/colorbar/tickfont/_size.py index 609ac6bba2..44e1d2f6d3 100644 --- a/plotly/validators/streamtube/colorbar/tickfont/_size.py +++ b/plotly/validators/streamtube/colorbar/tickfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/streamtube/colorbar/tickfont/_style.py b/plotly/validators/streamtube/colorbar/tickfont/_style.py index 2493839ba4..41246857b6 100644 --- a/plotly/validators/streamtube/colorbar/tickfont/_style.py +++ b/plotly/validators/streamtube/colorbar/tickfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/streamtube/colorbar/tickfont/_textcase.py b/plotly/validators/streamtube/colorbar/tickfont/_textcase.py index f4e3f93c1a..9ee71c90df 100644 --- a/plotly/validators/streamtube/colorbar/tickfont/_textcase.py +++ b/plotly/validators/streamtube/colorbar/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/streamtube/colorbar/tickfont/_variant.py b/plotly/validators/streamtube/colorbar/tickfont/_variant.py index 4daa5c3dfa..0d4f8a3238 100644 --- a/plotly/validators/streamtube/colorbar/tickfont/_variant.py +++ b/plotly/validators/streamtube/colorbar/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/streamtube/colorbar/tickfont/_weight.py b/plotly/validators/streamtube/colorbar/tickfont/_weight.py index 6fdd15cb38..6a0c0aa1e0 100644 --- a/plotly/validators/streamtube/colorbar/tickfont/_weight.py +++ b/plotly/validators/streamtube/colorbar/tickfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/streamtube/colorbar/tickformatstop/__init__.py b/plotly/validators/streamtube/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/streamtube/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/streamtube/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/streamtube/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/streamtube/colorbar/tickformatstop/_dtickrange.py index af746a9b3b..55791a07fe 100644 --- a/plotly/validators/streamtube/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/streamtube/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( "items", diff --git a/plotly/validators/streamtube/colorbar/tickformatstop/_enabled.py b/plotly/validators/streamtube/colorbar/tickformatstop/_enabled.py index 2265ce9016..61ee2796a7 100644 --- a/plotly/validators/streamtube/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/streamtube/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/streamtube/colorbar/tickformatstop/_name.py b/plotly/validators/streamtube/colorbar/tickformatstop/_name.py index a8d2f59123..431c927628 100644 --- a/plotly/validators/streamtube/colorbar/tickformatstop/_name.py +++ b/plotly/validators/streamtube/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/streamtube/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/streamtube/colorbar/tickformatstop/_templateitemname.py index 2a35f59074..5c2e5893d6 100644 --- a/plotly/validators/streamtube/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/streamtube/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/streamtube/colorbar/tickformatstop/_value.py b/plotly/validators/streamtube/colorbar/tickformatstop/_value.py index a5fdf0e353..0f5ad1d6cb 100644 --- a/plotly/validators/streamtube/colorbar/tickformatstop/_value.py +++ b/plotly/validators/streamtube/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/streamtube/colorbar/title/__init__.py b/plotly/validators/streamtube/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/streamtube/colorbar/title/__init__.py +++ b/plotly/validators/streamtube/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/streamtube/colorbar/title/_font.py b/plotly/validators/streamtube/colorbar/title/_font.py index d19e9c81be..14a8d3d2ee 100644 --- a/plotly/validators/streamtube/colorbar/title/_font.py +++ b/plotly/validators/streamtube/colorbar/title/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/streamtube/colorbar/title/_side.py b/plotly/validators/streamtube/colorbar/title/_side.py index c4f0623fbc..10a40743e9 100644 --- a/plotly/validators/streamtube/colorbar/title/_side.py +++ b/plotly/validators/streamtube/colorbar/title/_side.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/streamtube/colorbar/title/_text.py b/plotly/validators/streamtube/colorbar/title/_text.py index 8d512cca5c..241412af1b 100644 --- a/plotly/validators/streamtube/colorbar/title/_text.py +++ b/plotly/validators/streamtube/colorbar/title/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/streamtube/colorbar/title/font/__init__.py b/plotly/validators/streamtube/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/streamtube/colorbar/title/font/__init__.py +++ b/plotly/validators/streamtube/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/streamtube/colorbar/title/font/_color.py b/plotly/validators/streamtube/colorbar/title/font/_color.py index f2fc38ccc7..479f06e740 100644 --- a/plotly/validators/streamtube/colorbar/title/font/_color.py +++ b/plotly/validators/streamtube/colorbar/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/streamtube/colorbar/title/font/_family.py b/plotly/validators/streamtube/colorbar/title/font/_family.py index e75df89ff9..bada41fa8b 100644 --- a/plotly/validators/streamtube/colorbar/title/font/_family.py +++ b/plotly/validators/streamtube/colorbar/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/streamtube/colorbar/title/font/_lineposition.py b/plotly/validators/streamtube/colorbar/title/font/_lineposition.py index 9e6ca38eca..c3d2c1f041 100644 --- a/plotly/validators/streamtube/colorbar/title/font/_lineposition.py +++ b/plotly/validators/streamtube/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/streamtube/colorbar/title/font/_shadow.py b/plotly/validators/streamtube/colorbar/title/font/_shadow.py index 587598b204..f832ba839b 100644 --- a/plotly/validators/streamtube/colorbar/title/font/_shadow.py +++ b/plotly/validators/streamtube/colorbar/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/streamtube/colorbar/title/font/_size.py b/plotly/validators/streamtube/colorbar/title/font/_size.py index a7389c84e5..fcf6cd032d 100644 --- a/plotly/validators/streamtube/colorbar/title/font/_size.py +++ b/plotly/validators/streamtube/colorbar/title/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/streamtube/colorbar/title/font/_style.py b/plotly/validators/streamtube/colorbar/title/font/_style.py index 7f91a29b8a..687392189a 100644 --- a/plotly/validators/streamtube/colorbar/title/font/_style.py +++ b/plotly/validators/streamtube/colorbar/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/streamtube/colorbar/title/font/_textcase.py b/plotly/validators/streamtube/colorbar/title/font/_textcase.py index 4cd96b7a78..37bb70201d 100644 --- a/plotly/validators/streamtube/colorbar/title/font/_textcase.py +++ b/plotly/validators/streamtube/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/streamtube/colorbar/title/font/_variant.py b/plotly/validators/streamtube/colorbar/title/font/_variant.py index 934164529d..e2c4648ca4 100644 --- a/plotly/validators/streamtube/colorbar/title/font/_variant.py +++ b/plotly/validators/streamtube/colorbar/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/streamtube/colorbar/title/font/_weight.py b/plotly/validators/streamtube/colorbar/title/font/_weight.py index 333929a4ad..b0282208b5 100644 --- a/plotly/validators/streamtube/colorbar/title/font/_weight.py +++ b/plotly/validators/streamtube/colorbar/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/streamtube/hoverlabel/__init__.py b/plotly/validators/streamtube/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/streamtube/hoverlabel/__init__.py +++ b/plotly/validators/streamtube/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/streamtube/hoverlabel/_align.py b/plotly/validators/streamtube/hoverlabel/_align.py index 7a97ab4791..c373d570ab 100644 --- a/plotly/validators/streamtube/hoverlabel/_align.py +++ b/plotly/validators/streamtube/hoverlabel/_align.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/streamtube/hoverlabel/_alignsrc.py b/plotly/validators/streamtube/hoverlabel/_alignsrc.py index d4bc995a27..73208adedb 100644 --- a/plotly/validators/streamtube/hoverlabel/_alignsrc.py +++ b/plotly/validators/streamtube/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/hoverlabel/_bgcolor.py b/plotly/validators/streamtube/hoverlabel/_bgcolor.py index 0c4bf0011b..2ccc3f3463 100644 --- a/plotly/validators/streamtube/hoverlabel/_bgcolor.py +++ b/plotly/validators/streamtube/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/streamtube/hoverlabel/_bgcolorsrc.py b/plotly/validators/streamtube/hoverlabel/_bgcolorsrc.py index 83e8e277e6..bc96644c77 100644 --- a/plotly/validators/streamtube/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/streamtube/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/hoverlabel/_bordercolor.py b/plotly/validators/streamtube/hoverlabel/_bordercolor.py index 884601f84f..d7ec3d6cd4 100644 --- a/plotly/validators/streamtube/hoverlabel/_bordercolor.py +++ b/plotly/validators/streamtube/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/streamtube/hoverlabel/_bordercolorsrc.py b/plotly/validators/streamtube/hoverlabel/_bordercolorsrc.py index f3fadd7dbc..cd414260da 100644 --- a/plotly/validators/streamtube/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/streamtube/hoverlabel/_bordercolorsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/hoverlabel/_font.py b/plotly/validators/streamtube/hoverlabel/_font.py index d1b009c235..0490b7932b 100644 --- a/plotly/validators/streamtube/hoverlabel/_font.py +++ b/plotly/validators/streamtube/hoverlabel/_font.py @@ -1,87 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/streamtube/hoverlabel/_namelength.py b/plotly/validators/streamtube/hoverlabel/_namelength.py index ea97dc7131..c9c668d97b 100644 --- a/plotly/validators/streamtube/hoverlabel/_namelength.py +++ b/plotly/validators/streamtube/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/streamtube/hoverlabel/_namelengthsrc.py b/plotly/validators/streamtube/hoverlabel/_namelengthsrc.py index 1ad3589a87..135e8ba643 100644 --- a/plotly/validators/streamtube/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/streamtube/hoverlabel/_namelengthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/hoverlabel/font/__init__.py b/plotly/validators/streamtube/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/streamtube/hoverlabel/font/__init__.py +++ b/plotly/validators/streamtube/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/streamtube/hoverlabel/font/_color.py b/plotly/validators/streamtube/hoverlabel/font/_color.py index a5d0e209b0..f15654cd97 100644 --- a/plotly/validators/streamtube/hoverlabel/font/_color.py +++ b/plotly/validators/streamtube/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/streamtube/hoverlabel/font/_colorsrc.py b/plotly/validators/streamtube/hoverlabel/font/_colorsrc.py index 90a7db2a22..80baf44a73 100644 --- a/plotly/validators/streamtube/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/streamtube/hoverlabel/font/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/hoverlabel/font/_family.py b/plotly/validators/streamtube/hoverlabel/font/_family.py index fa1be324f8..77b75ca991 100644 --- a/plotly/validators/streamtube/hoverlabel/font/_family.py +++ b/plotly/validators/streamtube/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/streamtube/hoverlabel/font/_familysrc.py b/plotly/validators/streamtube/hoverlabel/font/_familysrc.py index 5b4e9b4dcf..705349bf04 100644 --- a/plotly/validators/streamtube/hoverlabel/font/_familysrc.py +++ b/plotly/validators/streamtube/hoverlabel/font/_familysrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/hoverlabel/font/_lineposition.py b/plotly/validators/streamtube/hoverlabel/font/_lineposition.py index 8af081cd03..93c242cfe5 100644 --- a/plotly/validators/streamtube/hoverlabel/font/_lineposition.py +++ b/plotly/validators/streamtube/hoverlabel/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/streamtube/hoverlabel/font/_linepositionsrc.py b/plotly/validators/streamtube/hoverlabel/font/_linepositionsrc.py index 97bb7baba3..15fa3a1f7a 100644 --- a/plotly/validators/streamtube/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/streamtube/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/hoverlabel/font/_shadow.py b/plotly/validators/streamtube/hoverlabel/font/_shadow.py index 264548d918..da9842c5d2 100644 --- a/plotly/validators/streamtube/hoverlabel/font/_shadow.py +++ b/plotly/validators/streamtube/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/streamtube/hoverlabel/font/_shadowsrc.py b/plotly/validators/streamtube/hoverlabel/font/_shadowsrc.py index 81dd157788..4d483035b4 100644 --- a/plotly/validators/streamtube/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/streamtube/hoverlabel/font/_shadowsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/hoverlabel/font/_size.py b/plotly/validators/streamtube/hoverlabel/font/_size.py index 8eea091125..c2d30d5f2b 100644 --- a/plotly/validators/streamtube/hoverlabel/font/_size.py +++ b/plotly/validators/streamtube/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/streamtube/hoverlabel/font/_sizesrc.py b/plotly/validators/streamtube/hoverlabel/font/_sizesrc.py index 164eb1a2bc..cf7437e693 100644 --- a/plotly/validators/streamtube/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/streamtube/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/hoverlabel/font/_style.py b/plotly/validators/streamtube/hoverlabel/font/_style.py index dfaaa9b4ad..e3511984f2 100644 --- a/plotly/validators/streamtube/hoverlabel/font/_style.py +++ b/plotly/validators/streamtube/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/streamtube/hoverlabel/font/_stylesrc.py b/plotly/validators/streamtube/hoverlabel/font/_stylesrc.py index db3dce1262..efbcccd50c 100644 --- a/plotly/validators/streamtube/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/streamtube/hoverlabel/font/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/hoverlabel/font/_textcase.py b/plotly/validators/streamtube/hoverlabel/font/_textcase.py index 2aab50e6b3..b70063c27f 100644 --- a/plotly/validators/streamtube/hoverlabel/font/_textcase.py +++ b/plotly/validators/streamtube/hoverlabel/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/streamtube/hoverlabel/font/_textcasesrc.py b/plotly/validators/streamtube/hoverlabel/font/_textcasesrc.py index 723d482e8e..6981a36ced 100644 --- a/plotly/validators/streamtube/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/streamtube/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/hoverlabel/font/_variant.py b/plotly/validators/streamtube/hoverlabel/font/_variant.py index 1e28a3e07c..79c3f5e95a 100644 --- a/plotly/validators/streamtube/hoverlabel/font/_variant.py +++ b/plotly/validators/streamtube/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/streamtube/hoverlabel/font/_variantsrc.py b/plotly/validators/streamtube/hoverlabel/font/_variantsrc.py index 5ecc7d01f2..c39eef0f64 100644 --- a/plotly/validators/streamtube/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/streamtube/hoverlabel/font/_variantsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/hoverlabel/font/_weight.py b/plotly/validators/streamtube/hoverlabel/font/_weight.py index 47d7dd2c65..37b07aeb41 100644 --- a/plotly/validators/streamtube/hoverlabel/font/_weight.py +++ b/plotly/validators/streamtube/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/streamtube/hoverlabel/font/_weightsrc.py b/plotly/validators/streamtube/hoverlabel/font/_weightsrc.py index cd61852b96..284c8363ff 100644 --- a/plotly/validators/streamtube/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/streamtube/hoverlabel/font/_weightsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/legendgrouptitle/__init__.py b/plotly/validators/streamtube/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/streamtube/legendgrouptitle/__init__.py +++ b/plotly/validators/streamtube/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/streamtube/legendgrouptitle/_font.py b/plotly/validators/streamtube/legendgrouptitle/_font.py index 04536700bd..2e76667d74 100644 --- a/plotly/validators/streamtube/legendgrouptitle/_font.py +++ b/plotly/validators/streamtube/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/streamtube/legendgrouptitle/_text.py b/plotly/validators/streamtube/legendgrouptitle/_text.py index bad6ae8ab0..9b07b1941f 100644 --- a/plotly/validators/streamtube/legendgrouptitle/_text.py +++ b/plotly/validators/streamtube/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/streamtube/legendgrouptitle/font/__init__.py b/plotly/validators/streamtube/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/streamtube/legendgrouptitle/font/__init__.py +++ b/plotly/validators/streamtube/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/streamtube/legendgrouptitle/font/_color.py b/plotly/validators/streamtube/legendgrouptitle/font/_color.py index d73d77840a..56efe0f5c2 100644 --- a/plotly/validators/streamtube/legendgrouptitle/font/_color.py +++ b/plotly/validators/streamtube/legendgrouptitle/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/streamtube/legendgrouptitle/font/_family.py b/plotly/validators/streamtube/legendgrouptitle/font/_family.py index b32fdbf7ed..5bf8ef7368 100644 --- a/plotly/validators/streamtube/legendgrouptitle/font/_family.py +++ b/plotly/validators/streamtube/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/streamtube/legendgrouptitle/font/_lineposition.py b/plotly/validators/streamtube/legendgrouptitle/font/_lineposition.py index d8606aedea..575bcf3c25 100644 --- a/plotly/validators/streamtube/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/streamtube/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/streamtube/legendgrouptitle/font/_shadow.py b/plotly/validators/streamtube/legendgrouptitle/font/_shadow.py index a9d134e9f9..2065ce6f85 100644 --- a/plotly/validators/streamtube/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/streamtube/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/streamtube/legendgrouptitle/font/_size.py b/plotly/validators/streamtube/legendgrouptitle/font/_size.py index 013cca6758..ea1ea8be14 100644 --- a/plotly/validators/streamtube/legendgrouptitle/font/_size.py +++ b/plotly/validators/streamtube/legendgrouptitle/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/streamtube/legendgrouptitle/font/_style.py b/plotly/validators/streamtube/legendgrouptitle/font/_style.py index 3cc8892356..0c22ed199a 100644 --- a/plotly/validators/streamtube/legendgrouptitle/font/_style.py +++ b/plotly/validators/streamtube/legendgrouptitle/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/streamtube/legendgrouptitle/font/_textcase.py b/plotly/validators/streamtube/legendgrouptitle/font/_textcase.py index 8c471e0506..127b17d2ba 100644 --- a/plotly/validators/streamtube/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/streamtube/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/streamtube/legendgrouptitle/font/_variant.py b/plotly/validators/streamtube/legendgrouptitle/font/_variant.py index 5fabf7041f..3384cd3df4 100644 --- a/plotly/validators/streamtube/legendgrouptitle/font/_variant.py +++ b/plotly/validators/streamtube/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/streamtube/legendgrouptitle/font/_weight.py b/plotly/validators/streamtube/legendgrouptitle/font/_weight.py index d1a49bc4c5..c8a7629d90 100644 --- a/plotly/validators/streamtube/legendgrouptitle/font/_weight.py +++ b/plotly/validators/streamtube/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/streamtube/lighting/__init__.py b/plotly/validators/streamtube/lighting/__init__.py index 028351f35d..1f11e1b86f 100644 --- a/plotly/validators/streamtube/lighting/__init__.py +++ b/plotly/validators/streamtube/lighting/__init__.py @@ -1,27 +1,16 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._vertexnormalsepsilon import VertexnormalsepsilonValidator - from ._specular import SpecularValidator - from ._roughness import RoughnessValidator - from ._fresnel import FresnelValidator - from ._facenormalsepsilon import FacenormalsepsilonValidator - from ._diffuse import DiffuseValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._vertexnormalsepsilon.VertexnormalsepsilonValidator", + "._specular.SpecularValidator", + "._roughness.RoughnessValidator", + "._fresnel.FresnelValidator", + "._facenormalsepsilon.FacenormalsepsilonValidator", + "._diffuse.DiffuseValidator", + "._ambient.AmbientValidator", + ], +) diff --git a/plotly/validators/streamtube/lighting/_ambient.py b/plotly/validators/streamtube/lighting/_ambient.py index 91c4b1dd65..c8e2d0471c 100644 --- a/plotly/validators/streamtube/lighting/_ambient.py +++ b/plotly/validators/streamtube/lighting/_ambient.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AmbientValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/streamtube/lighting/_diffuse.py b/plotly/validators/streamtube/lighting/_diffuse.py index 694f92711c..c6a97ee7e5 100644 --- a/plotly/validators/streamtube/lighting/_diffuse.py +++ b/plotly/validators/streamtube/lighting/_diffuse.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DiffuseValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/streamtube/lighting/_facenormalsepsilon.py b/plotly/validators/streamtube/lighting/_facenormalsepsilon.py index f539684c31..dacfd1fe20 100644 --- a/plotly/validators/streamtube/lighting/_facenormalsepsilon.py +++ b/plotly/validators/streamtube/lighting/_facenormalsepsilon.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FacenormalsepsilonValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/streamtube/lighting/_fresnel.py b/plotly/validators/streamtube/lighting/_fresnel.py index 7ec6c70a9f..675e264046 100644 --- a/plotly/validators/streamtube/lighting/_fresnel.py +++ b/plotly/validators/streamtube/lighting/_fresnel.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FresnelValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 5), min=kwargs.pop("min", 0), diff --git a/plotly/validators/streamtube/lighting/_roughness.py b/plotly/validators/streamtube/lighting/_roughness.py index 84fa2510e8..d6669d3796 100644 --- a/plotly/validators/streamtube/lighting/_roughness.py +++ b/plotly/validators/streamtube/lighting/_roughness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RoughnessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/streamtube/lighting/_specular.py b/plotly/validators/streamtube/lighting/_specular.py index 8bc1809b80..857105955b 100644 --- a/plotly/validators/streamtube/lighting/_specular.py +++ b/plotly/validators/streamtube/lighting/_specular.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SpecularValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 2), min=kwargs.pop("min", 0), diff --git a/plotly/validators/streamtube/lighting/_vertexnormalsepsilon.py b/plotly/validators/streamtube/lighting/_vertexnormalsepsilon.py index d56096b8aa..7d91d5c365 100644 --- a/plotly/validators/streamtube/lighting/_vertexnormalsepsilon.py +++ b/plotly/validators/streamtube/lighting/_vertexnormalsepsilon.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VertexnormalsepsilonValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/streamtube/lightposition/__init__.py b/plotly/validators/streamtube/lightposition/__init__.py index 52779f59bc..8c47d2db5f 100644 --- a/plotly/validators/streamtube/lightposition/__init__.py +++ b/plotly/validators/streamtube/lightposition/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] +) diff --git a/plotly/validators/streamtube/lightposition/_x.py b/plotly/validators/streamtube/lightposition/_x.py index e583064a69..07aebece63 100644 --- a/plotly/validators/streamtube/lightposition/_x.py +++ b/plotly/validators/streamtube/lightposition/_x.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 100000), min=kwargs.pop("min", -100000), diff --git a/plotly/validators/streamtube/lightposition/_y.py b/plotly/validators/streamtube/lightposition/_y.py index 55b229236e..6d782d9cfd 100644 --- a/plotly/validators/streamtube/lightposition/_y.py +++ b/plotly/validators/streamtube/lightposition/_y.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 100000), min=kwargs.pop("min", -100000), diff --git a/plotly/validators/streamtube/lightposition/_z.py b/plotly/validators/streamtube/lightposition/_z.py index 05a973d150..63c2d62dc5 100644 --- a/plotly/validators/streamtube/lightposition/_z.py +++ b/plotly/validators/streamtube/lightposition/_z.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 100000), min=kwargs.pop("min", -100000), diff --git a/plotly/validators/streamtube/starts/__init__.py b/plotly/validators/streamtube/starts/__init__.py index f8bd4cce32..e12e8cfa54 100644 --- a/plotly/validators/streamtube/starts/__init__.py +++ b/plotly/validators/streamtube/starts/__init__.py @@ -1,25 +1,15 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zsrc import ZsrcValidator - from ._z import ZValidator - from ._ysrc import YsrcValidator - from ._y import YValidator - from ._xsrc import XsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._zsrc.ZsrcValidator", + "._z.ZValidator", + "._ysrc.YsrcValidator", + "._y.YValidator", + "._xsrc.XsrcValidator", + "._x.XValidator", + ], +) diff --git a/plotly/validators/streamtube/starts/_x.py b/plotly/validators/streamtube/starts/_x.py index 21517e9c87..13d546403b 100644 --- a/plotly/validators/streamtube/starts/_x.py +++ b/plotly/validators/streamtube/starts/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/streamtube/starts/_xsrc.py b/plotly/validators/streamtube/starts/_xsrc.py index 050c3bf377..7c550b9ad9 100644 --- a/plotly/validators/streamtube/starts/_xsrc.py +++ b/plotly/validators/streamtube/starts/_xsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/starts/_y.py b/plotly/validators/streamtube/starts/_y.py index fed95cc221..29ebd27cce 100644 --- a/plotly/validators/streamtube/starts/_y.py +++ b/plotly/validators/streamtube/starts/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/streamtube/starts/_ysrc.py b/plotly/validators/streamtube/starts/_ysrc.py index 1d3857fe37..85cf88eb42 100644 --- a/plotly/validators/streamtube/starts/_ysrc.py +++ b/plotly/validators/streamtube/starts/_ysrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/starts/_z.py b/plotly/validators/streamtube/starts/_z.py index 9157648b92..52b60df5df 100644 --- a/plotly/validators/streamtube/starts/_z.py +++ b/plotly/validators/streamtube/starts/_z.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/streamtube/starts/_zsrc.py b/plotly/validators/streamtube/starts/_zsrc.py index 39774cae13..063d26bf7b 100644 --- a/plotly/validators/streamtube/starts/_zsrc.py +++ b/plotly/validators/streamtube/starts/_zsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/streamtube/stream/__init__.py b/plotly/validators/streamtube/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/streamtube/stream/__init__.py +++ b/plotly/validators/streamtube/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/streamtube/stream/_maxpoints.py b/plotly/validators/streamtube/stream/_maxpoints.py index 6fbbf14b7a..0dccee92bd 100644 --- a/plotly/validators/streamtube/stream/_maxpoints.py +++ b/plotly/validators/streamtube/stream/_maxpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/streamtube/stream/_token.py b/plotly/validators/streamtube/stream/_token.py index 7601d6059c..86b2535a5c 100644 --- a/plotly/validators/streamtube/stream/_token.py +++ b/plotly/validators/streamtube/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/sunburst/__init__.py b/plotly/validators/sunburst/__init__.py index d9043d98c9..cabb216815 100644 --- a/plotly/validators/sunburst/__init__.py +++ b/plotly/validators/sunburst/__init__.py @@ -1,109 +1,57 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._visible import VisibleValidator - from ._valuessrc import ValuessrcValidator - from ._values import ValuesValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._texttemplatesrc import TexttemplatesrcValidator - from ._texttemplate import TexttemplateValidator - from ._textsrc import TextsrcValidator - from ._textinfo import TextinfoValidator - from ._textfont import TextfontValidator - from ._text import TextValidator - from ._stream import StreamValidator - from ._sort import SortValidator - from ._rotation import RotationValidator - from ._root import RootValidator - from ._parentssrc import ParentssrcValidator - from ._parents import ParentsValidator - from ._outsidetextfont import OutsidetextfontValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._maxdepth import MaxdepthValidator - from ._marker import MarkerValidator - from ._level import LevelValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legend import LegendValidator - from ._leaf import LeafValidator - from ._labelssrc import LabelssrcValidator - from ._labels import LabelsValidator - from ._insidetextorientation import InsidetextorientationValidator - from ._insidetextfont import InsidetextfontValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._domain import DomainValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._count import CountValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/sunburst/_branchvalues.py b/plotly/validators/sunburst/_branchvalues.py index f582862fe8..c3ba2ac2f5 100644 --- a/plotly/validators/sunburst/_branchvalues.py +++ b/plotly/validators/sunburst/_branchvalues.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BranchvaluesValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["remainder", "total"]), **kwargs, diff --git a/plotly/validators/sunburst/_count.py b/plotly/validators/sunburst/_count.py index 7e7fe0be92..d3fca0bcd2 100644 --- a/plotly/validators/sunburst/_count.py +++ b/plotly/validators/sunburst/_count.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CountValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), flags=kwargs.pop("flags", ["branches", "leaves"]), **kwargs, diff --git a/plotly/validators/sunburst/_customdata.py b/plotly/validators/sunburst/_customdata.py index 17e9fe6ee5..07daf256d9 100644 --- a/plotly/validators/sunburst/_customdata.py +++ b/plotly/validators/sunburst/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/sunburst/_customdatasrc.py b/plotly/validators/sunburst/_customdatasrc.py index a9c5f70248..8edfd94659 100644 --- a/plotly/validators/sunburst/_customdatasrc.py +++ b/plotly/validators/sunburst/_customdatasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/_domain.py b/plotly/validators/sunburst/_domain.py index d672a365b2..09f8cf6799 100644 --- a/plotly/validators/sunburst/_domain.py +++ b/plotly/validators/sunburst/_domain.py @@ -1,28 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/sunburst/_hoverinfo.py b/plotly/validators/sunburst/_hoverinfo.py index 07c37ca50a..80cd4cdc41 100644 --- a/plotly/validators/sunburst/_hoverinfo.py +++ b/plotly/validators/sunburst/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/sunburst/_hoverinfosrc.py b/plotly/validators/sunburst/_hoverinfosrc.py index 585ab2ef8c..d53489575f 100644 --- a/plotly/validators/sunburst/_hoverinfosrc.py +++ b/plotly/validators/sunburst/_hoverinfosrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/_hoverlabel.py b/plotly/validators/sunburst/_hoverlabel.py index 73670017cf..31a9c90ad0 100644 --- a/plotly/validators/sunburst/_hoverlabel.py +++ b/plotly/validators/sunburst/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/sunburst/_hovertemplate.py b/plotly/validators/sunburst/_hovertemplate.py index b6e22e6f6a..d20edd145f 100644 --- a/plotly/validators/sunburst/_hovertemplate.py +++ b/plotly/validators/sunburst/_hovertemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/sunburst/_hovertemplatesrc.py b/plotly/validators/sunburst/_hovertemplatesrc.py index 1e06df2b27..d5d4186279 100644 --- a/plotly/validators/sunburst/_hovertemplatesrc.py +++ b/plotly/validators/sunburst/_hovertemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/_hovertext.py b/plotly/validators/sunburst/_hovertext.py index c8fb7d296b..5391fb216e 100644 --- a/plotly/validators/sunburst/_hovertext.py +++ b/plotly/validators/sunburst/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/sunburst/_hovertextsrc.py b/plotly/validators/sunburst/_hovertextsrc.py index 9e337848b6..cfefb8dbb4 100644 --- a/plotly/validators/sunburst/_hovertextsrc.py +++ b/plotly/validators/sunburst/_hovertextsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/_ids.py b/plotly/validators/sunburst/_ids.py index dea85dbf88..6b178e2f77 100644 --- a/plotly/validators/sunburst/_ids.py +++ b/plotly/validators/sunburst/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/sunburst/_idssrc.py b/plotly/validators/sunburst/_idssrc.py index 4c2dd0799e..98e26ad2f0 100644 --- a/plotly/validators/sunburst/_idssrc.py +++ b/plotly/validators/sunburst/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/_insidetextfont.py b/plotly/validators/sunburst/_insidetextfont.py index 738ae174e9..318fd91617 100644 --- a/plotly/validators/sunburst/_insidetextfont.py +++ b/plotly/validators/sunburst/_insidetextfont.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class InsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Insidetextfont"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/sunburst/_insidetextorientation.py b/plotly/validators/sunburst/_insidetextorientation.py index 35bf93598d..aef8337e25 100644 --- a/plotly/validators/sunburst/_insidetextorientation.py +++ b/plotly/validators/sunburst/_insidetextorientation.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class InsidetextorientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["horizontal", "radial", "tangential", "auto"]), **kwargs, diff --git a/plotly/validators/sunburst/_labels.py b/plotly/validators/sunburst/_labels.py index cbd0903612..bf7f64b65e 100644 --- a/plotly/validators/sunburst/_labels.py +++ b/plotly/validators/sunburst/_labels.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/sunburst/_labelssrc.py b/plotly/validators/sunburst/_labelssrc.py index f0d5a2020b..e2b3e211d9 100644 --- a/plotly/validators/sunburst/_labelssrc.py +++ b/plotly/validators/sunburst/_labelssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/_leaf.py b/plotly/validators/sunburst/_leaf.py index 86802bbc38..586952a06c 100644 --- a/plotly/validators/sunburst/_leaf.py +++ b/plotly/validators/sunburst/_leaf.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LeafValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/sunburst/_legend.py b/plotly/validators/sunburst/_legend.py index 69b12723c9..6f56a3f397 100644 --- a/plotly/validators/sunburst/_legend.py +++ b/plotly/validators/sunburst/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/sunburst/_legendgrouptitle.py b/plotly/validators/sunburst/_legendgrouptitle.py index 156715d524..94c4b1ddad 100644 --- a/plotly/validators/sunburst/_legendgrouptitle.py +++ b/plotly/validators/sunburst/_legendgrouptitle.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/sunburst/_legendrank.py b/plotly/validators/sunburst/_legendrank.py index 609dd0629b..788b945d2a 100644 --- a/plotly/validators/sunburst/_legendrank.py +++ b/plotly/validators/sunburst/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/sunburst/_legendwidth.py b/plotly/validators/sunburst/_legendwidth.py index 711dd7303c..fefb8fcc65 100644 --- a/plotly/validators/sunburst/_legendwidth.py +++ b/plotly/validators/sunburst/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/sunburst/_level.py b/plotly/validators/sunburst/_level.py index 40fac68e06..0f33d127d8 100644 --- a/plotly/validators/sunburst/_level.py +++ b/plotly/validators/sunburst/_level.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LevelValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/sunburst/_marker.py b/plotly/validators/sunburst/_marker.py index 66df8a9065..d2a420a207 100644 --- a/plotly/validators/sunburst/_marker.py +++ b/plotly/validators/sunburst/_marker.py @@ -1,104 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/sunburst/_maxdepth.py b/plotly/validators/sunburst/_maxdepth.py index c6ee5cd93b..2a3ca87b5a 100644 --- a/plotly/validators/sunburst/_maxdepth.py +++ b/plotly/validators/sunburst/_maxdepth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxdepthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/sunburst/_meta.py b/plotly/validators/sunburst/_meta.py index 864d4533a2..74321e5332 100644 --- a/plotly/validators/sunburst/_meta.py +++ b/plotly/validators/sunburst/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/sunburst/_metasrc.py b/plotly/validators/sunburst/_metasrc.py index ccf1cd3547..8baa27bff1 100644 --- a/plotly/validators/sunburst/_metasrc.py +++ b/plotly/validators/sunburst/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/_name.py b/plotly/validators/sunburst/_name.py index 2c25c5ac7b..822d12b762 100644 --- a/plotly/validators/sunburst/_name.py +++ b/plotly/validators/sunburst/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/sunburst/_opacity.py b/plotly/validators/sunburst/_opacity.py index 488c57ccf3..4ae636e665 100644 --- a/plotly/validators/sunburst/_opacity.py +++ b/plotly/validators/sunburst/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/sunburst/_outsidetextfont.py b/plotly/validators/sunburst/_outsidetextfont.py index ce6dbcf5c4..711fc620d6 100644 --- a/plotly/validators/sunburst/_outsidetextfont.py +++ b/plotly/validators/sunburst/_outsidetextfont.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Outsidetextfont"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/sunburst/_parents.py b/plotly/validators/sunburst/_parents.py index ec357a89b2..a8ca2c8c29 100644 --- a/plotly/validators/sunburst/_parents.py +++ b/plotly/validators/sunburst/_parents.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ParentsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/sunburst/_parentssrc.py b/plotly/validators/sunburst/_parentssrc.py index 588258225e..1cdb365bd2 100644 --- a/plotly/validators/sunburst/_parentssrc.py +++ b/plotly/validators/sunburst/_parentssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ParentssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/_root.py b/plotly/validators/sunburst/_root.py index c6bd9958d5..d905619ce6 100644 --- a/plotly/validators/sunburst/_root.py +++ b/plotly/validators/sunburst/_root.py @@ -1,20 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RootValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/sunburst/_rotation.py b/plotly/validators/sunburst/_rotation.py index 5901d309ba..230a3131ad 100644 --- a/plotly/validators/sunburst/_rotation.py +++ b/plotly/validators/sunburst/_rotation.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RotationValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/sunburst/_sort.py b/plotly/validators/sunburst/_sort.py index b9d50d9b27..fd517c2d38 100644 --- a/plotly/validators/sunburst/_sort.py +++ b/plotly/validators/sunburst/_sort.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SortValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/sunburst/_stream.py b/plotly/validators/sunburst/_stream.py index 5904eadc86..b14b1b8bff 100644 --- a/plotly/validators/sunburst/_stream.py +++ b/plotly/validators/sunburst/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/sunburst/_text.py b/plotly/validators/sunburst/_text.py index 44352df7c3..b67ae65722 100644 --- a/plotly/validators/sunburst/_text.py +++ b/plotly/validators/sunburst/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/sunburst/_textfont.py b/plotly/validators/sunburst/_textfont.py index a714cf28ac..a6e309ec7b 100644 --- a/plotly/validators/sunburst/_textfont.py +++ b/plotly/validators/sunburst/_textfont.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/sunburst/_textinfo.py b/plotly/validators/sunburst/_textinfo.py index 291ebd9777..112c4e6915 100644 --- a/plotly/validators/sunburst/_textinfo.py +++ b/plotly/validators/sunburst/_textinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop( diff --git a/plotly/validators/sunburst/_textsrc.py b/plotly/validators/sunburst/_textsrc.py index b29c5c3b39..c4a1c3261a 100644 --- a/plotly/validators/sunburst/_textsrc.py +++ b/plotly/validators/sunburst/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/_texttemplate.py b/plotly/validators/sunburst/_texttemplate.py index dd42c111f1..c3a22d9937 100644 --- a/plotly/validators/sunburst/_texttemplate.py +++ b/plotly/validators/sunburst/_texttemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/sunburst/_texttemplatesrc.py b/plotly/validators/sunburst/_texttemplatesrc.py index 4399075678..b87a8cdf0f 100644 --- a/plotly/validators/sunburst/_texttemplatesrc.py +++ b/plotly/validators/sunburst/_texttemplatesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/_uid.py b/plotly/validators/sunburst/_uid.py index a54edf3e26..ad07a78c04 100644 --- a/plotly/validators/sunburst/_uid.py +++ b/plotly/validators/sunburst/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/sunburst/_uirevision.py b/plotly/validators/sunburst/_uirevision.py index faf0777971..b57fa7b8ad 100644 --- a/plotly/validators/sunburst/_uirevision.py +++ b/plotly/validators/sunburst/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/_values.py b/plotly/validators/sunburst/_values.py index b93a212bd0..9020a34379 100644 --- a/plotly/validators/sunburst/_values.py +++ b/plotly/validators/sunburst/_values.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValuesValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/sunburst/_valuessrc.py b/plotly/validators/sunburst/_valuessrc.py index 57531eeccc..82bc151f23 100644 --- a/plotly/validators/sunburst/_valuessrc.py +++ b/plotly/validators/sunburst/_valuessrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValuessrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/_visible.py b/plotly/validators/sunburst/_visible.py index 5739918a08..fa50e7ea6f 100644 --- a/plotly/validators/sunburst/_visible.py +++ b/plotly/validators/sunburst/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/sunburst/domain/__init__.py b/plotly/validators/sunburst/domain/__init__.py index 67de5030d0..42827f1d1e 100644 --- a/plotly/validators/sunburst/domain/__init__.py +++ b/plotly/validators/sunburst/domain/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._y import YValidator - from ._x import XValidator - from ._row import RowValidator - from ._column import ColumnValidator -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [], - [ - "._y.YValidator", - "._x.XValidator", - "._row.RowValidator", - "._column.ColumnValidator", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._y.YValidator", + "._x.XValidator", + "._row.RowValidator", + "._column.ColumnValidator", + ], +) diff --git a/plotly/validators/sunburst/domain/_column.py b/plotly/validators/sunburst/domain/_column.py index b58b9cd70e..a3aba62133 100644 --- a/plotly/validators/sunburst/domain/_column.py +++ b/plotly/validators/sunburst/domain/_column.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/sunburst/domain/_row.py b/plotly/validators/sunburst/domain/_row.py index 8b01201605..6f626a30b3 100644 --- a/plotly/validators/sunburst/domain/_row.py +++ b/plotly/validators/sunburst/domain/_row.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RowValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/sunburst/domain/_x.py b/plotly/validators/sunburst/domain/_x.py index 85cec608b3..183063c052 100644 --- a/plotly/validators/sunburst/domain/_x.py +++ b/plotly/validators/sunburst/domain/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/sunburst/domain/_y.py b/plotly/validators/sunburst/domain/_y.py index 95bca9f0a1..8286e2a5e7 100644 --- a/plotly/validators/sunburst/domain/_y.py +++ b/plotly/validators/sunburst/domain/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/sunburst/hoverlabel/__init__.py b/plotly/validators/sunburst/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/sunburst/hoverlabel/__init__.py +++ b/plotly/validators/sunburst/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/sunburst/hoverlabel/_align.py b/plotly/validators/sunburst/hoverlabel/_align.py index c9f720c28a..ece9644bda 100644 --- a/plotly/validators/sunburst/hoverlabel/_align.py +++ b/plotly/validators/sunburst/hoverlabel/_align.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/sunburst/hoverlabel/_alignsrc.py b/plotly/validators/sunburst/hoverlabel/_alignsrc.py index 13a285a6fe..13c1af42c8 100644 --- a/plotly/validators/sunburst/hoverlabel/_alignsrc.py +++ b/plotly/validators/sunburst/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/hoverlabel/_bgcolor.py b/plotly/validators/sunburst/hoverlabel/_bgcolor.py index b31ba2a11c..a0779c082f 100644 --- a/plotly/validators/sunburst/hoverlabel/_bgcolor.py +++ b/plotly/validators/sunburst/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/sunburst/hoverlabel/_bgcolorsrc.py b/plotly/validators/sunburst/hoverlabel/_bgcolorsrc.py index d5962aed9a..4782a66cad 100644 --- a/plotly/validators/sunburst/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/sunburst/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/hoverlabel/_bordercolor.py b/plotly/validators/sunburst/hoverlabel/_bordercolor.py index 41f140d4bc..39a8d87264 100644 --- a/plotly/validators/sunburst/hoverlabel/_bordercolor.py +++ b/plotly/validators/sunburst/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/sunburst/hoverlabel/_bordercolorsrc.py b/plotly/validators/sunburst/hoverlabel/_bordercolorsrc.py index e323bf060b..7595ca9bac 100644 --- a/plotly/validators/sunburst/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/sunburst/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/hoverlabel/_font.py b/plotly/validators/sunburst/hoverlabel/_font.py index 5ef53fd987..f6f6d68667 100644 --- a/plotly/validators/sunburst/hoverlabel/_font.py +++ b/plotly/validators/sunburst/hoverlabel/_font.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/sunburst/hoverlabel/_namelength.py b/plotly/validators/sunburst/hoverlabel/_namelength.py index 105cb2d420..4abbfe1fd3 100644 --- a/plotly/validators/sunburst/hoverlabel/_namelength.py +++ b/plotly/validators/sunburst/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/sunburst/hoverlabel/_namelengthsrc.py b/plotly/validators/sunburst/hoverlabel/_namelengthsrc.py index 0e5cdec7d0..211b5fd699 100644 --- a/plotly/validators/sunburst/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/sunburst/hoverlabel/_namelengthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/hoverlabel/font/__init__.py b/plotly/validators/sunburst/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/sunburst/hoverlabel/font/__init__.py +++ b/plotly/validators/sunburst/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/sunburst/hoverlabel/font/_color.py b/plotly/validators/sunburst/hoverlabel/font/_color.py index 730a09336d..fa56454785 100644 --- a/plotly/validators/sunburst/hoverlabel/font/_color.py +++ b/plotly/validators/sunburst/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/sunburst/hoverlabel/font/_colorsrc.py b/plotly/validators/sunburst/hoverlabel/font/_colorsrc.py index de2de9cced..e454aa7e36 100644 --- a/plotly/validators/sunburst/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/sunburst/hoverlabel/font/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/hoverlabel/font/_family.py b/plotly/validators/sunburst/hoverlabel/font/_family.py index 7a1cd94cf6..d55e3259ce 100644 --- a/plotly/validators/sunburst/hoverlabel/font/_family.py +++ b/plotly/validators/sunburst/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/sunburst/hoverlabel/font/_familysrc.py b/plotly/validators/sunburst/hoverlabel/font/_familysrc.py index f12637e4e1..f9a2c02a48 100644 --- a/plotly/validators/sunburst/hoverlabel/font/_familysrc.py +++ b/plotly/validators/sunburst/hoverlabel/font/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/hoverlabel/font/_lineposition.py b/plotly/validators/sunburst/hoverlabel/font/_lineposition.py index 46e7efca88..5fd434668d 100644 --- a/plotly/validators/sunburst/hoverlabel/font/_lineposition.py +++ b/plotly/validators/sunburst/hoverlabel/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/sunburst/hoverlabel/font/_linepositionsrc.py b/plotly/validators/sunburst/hoverlabel/font/_linepositionsrc.py index e1bbba4147..e7c75899b6 100644 --- a/plotly/validators/sunburst/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/sunburst/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/hoverlabel/font/_shadow.py b/plotly/validators/sunburst/hoverlabel/font/_shadow.py index f0c47bd0c6..503f1815c8 100644 --- a/plotly/validators/sunburst/hoverlabel/font/_shadow.py +++ b/plotly/validators/sunburst/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/sunburst/hoverlabel/font/_shadowsrc.py b/plotly/validators/sunburst/hoverlabel/font/_shadowsrc.py index ce378b6b5b..56cf777118 100644 --- a/plotly/validators/sunburst/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/sunburst/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/hoverlabel/font/_size.py b/plotly/validators/sunburst/hoverlabel/font/_size.py index 4bc210dbc5..08f87aee42 100644 --- a/plotly/validators/sunburst/hoverlabel/font/_size.py +++ b/plotly/validators/sunburst/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/sunburst/hoverlabel/font/_sizesrc.py b/plotly/validators/sunburst/hoverlabel/font/_sizesrc.py index 895c82a382..5ebdceab9a 100644 --- a/plotly/validators/sunburst/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/sunburst/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/hoverlabel/font/_style.py b/plotly/validators/sunburst/hoverlabel/font/_style.py index 2a2a0a51b7..7017edcea6 100644 --- a/plotly/validators/sunburst/hoverlabel/font/_style.py +++ b/plotly/validators/sunburst/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/sunburst/hoverlabel/font/_stylesrc.py b/plotly/validators/sunburst/hoverlabel/font/_stylesrc.py index a7b0693276..e351866f06 100644 --- a/plotly/validators/sunburst/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/sunburst/hoverlabel/font/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/hoverlabel/font/_textcase.py b/plotly/validators/sunburst/hoverlabel/font/_textcase.py index 4ddc55875d..42d04934e0 100644 --- a/plotly/validators/sunburst/hoverlabel/font/_textcase.py +++ b/plotly/validators/sunburst/hoverlabel/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/sunburst/hoverlabel/font/_textcasesrc.py b/plotly/validators/sunburst/hoverlabel/font/_textcasesrc.py index 4ed4a55a1e..4427630b20 100644 --- a/plotly/validators/sunburst/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/sunburst/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/hoverlabel/font/_variant.py b/plotly/validators/sunburst/hoverlabel/font/_variant.py index 413cd6d41a..569ee70055 100644 --- a/plotly/validators/sunburst/hoverlabel/font/_variant.py +++ b/plotly/validators/sunburst/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/sunburst/hoverlabel/font/_variantsrc.py b/plotly/validators/sunburst/hoverlabel/font/_variantsrc.py index 03f0e55564..8930f3bb74 100644 --- a/plotly/validators/sunburst/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/sunburst/hoverlabel/font/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/hoverlabel/font/_weight.py b/plotly/validators/sunburst/hoverlabel/font/_weight.py index c2111d2d1e..2d63e74df1 100644 --- a/plotly/validators/sunburst/hoverlabel/font/_weight.py +++ b/plotly/validators/sunburst/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/sunburst/hoverlabel/font/_weightsrc.py b/plotly/validators/sunburst/hoverlabel/font/_weightsrc.py index 7a618843be..16bb8caccb 100644 --- a/plotly/validators/sunburst/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/sunburst/hoverlabel/font/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/insidetextfont/__init__.py b/plotly/validators/sunburst/insidetextfont/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/sunburst/insidetextfont/__init__.py +++ b/plotly/validators/sunburst/insidetextfont/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/sunburst/insidetextfont/_color.py b/plotly/validators/sunburst/insidetextfont/_color.py index 22a384794d..3902c11d20 100644 --- a/plotly/validators/sunburst/insidetextfont/_color.py +++ b/plotly/validators/sunburst/insidetextfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/sunburst/insidetextfont/_colorsrc.py b/plotly/validators/sunburst/insidetextfont/_colorsrc.py index b04e7eeb11..fbaadd2a89 100644 --- a/plotly/validators/sunburst/insidetextfont/_colorsrc.py +++ b/plotly/validators/sunburst/insidetextfont/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/insidetextfont/_family.py b/plotly/validators/sunburst/insidetextfont/_family.py index 93036eb31d..6eb813f926 100644 --- a/plotly/validators/sunburst/insidetextfont/_family.py +++ b/plotly/validators/sunburst/insidetextfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/sunburst/insidetextfont/_familysrc.py b/plotly/validators/sunburst/insidetextfont/_familysrc.py index 429179e06f..452f0a2d69 100644 --- a/plotly/validators/sunburst/insidetextfont/_familysrc.py +++ b/plotly/validators/sunburst/insidetextfont/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/insidetextfont/_lineposition.py b/plotly/validators/sunburst/insidetextfont/_lineposition.py index 38e7c51c17..656aa009ed 100644 --- a/plotly/validators/sunburst/insidetextfont/_lineposition.py +++ b/plotly/validators/sunburst/insidetextfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/sunburst/insidetextfont/_linepositionsrc.py b/plotly/validators/sunburst/insidetextfont/_linepositionsrc.py index 59cbac91ad..3fd354a454 100644 --- a/plotly/validators/sunburst/insidetextfont/_linepositionsrc.py +++ b/plotly/validators/sunburst/insidetextfont/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/insidetextfont/_shadow.py b/plotly/validators/sunburst/insidetextfont/_shadow.py index 08dc43c0ca..f4e6f67edc 100644 --- a/plotly/validators/sunburst/insidetextfont/_shadow.py +++ b/plotly/validators/sunburst/insidetextfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/sunburst/insidetextfont/_shadowsrc.py b/plotly/validators/sunburst/insidetextfont/_shadowsrc.py index 52ee525962..c5a2668217 100644 --- a/plotly/validators/sunburst/insidetextfont/_shadowsrc.py +++ b/plotly/validators/sunburst/insidetextfont/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/insidetextfont/_size.py b/plotly/validators/sunburst/insidetextfont/_size.py index 66c078779d..fe114ac790 100644 --- a/plotly/validators/sunburst/insidetextfont/_size.py +++ b/plotly/validators/sunburst/insidetextfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/sunburst/insidetextfont/_sizesrc.py b/plotly/validators/sunburst/insidetextfont/_sizesrc.py index 9e51b0b4aa..30b8c4ea34 100644 --- a/plotly/validators/sunburst/insidetextfont/_sizesrc.py +++ b/plotly/validators/sunburst/insidetextfont/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/insidetextfont/_style.py b/plotly/validators/sunburst/insidetextfont/_style.py index 0febc6aab3..ddd3c00e1a 100644 --- a/plotly/validators/sunburst/insidetextfont/_style.py +++ b/plotly/validators/sunburst/insidetextfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/sunburst/insidetextfont/_stylesrc.py b/plotly/validators/sunburst/insidetextfont/_stylesrc.py index ec0d6af2c1..33582103a4 100644 --- a/plotly/validators/sunburst/insidetextfont/_stylesrc.py +++ b/plotly/validators/sunburst/insidetextfont/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/insidetextfont/_textcase.py b/plotly/validators/sunburst/insidetextfont/_textcase.py index dc3f44719d..60d6328833 100644 --- a/plotly/validators/sunburst/insidetextfont/_textcase.py +++ b/plotly/validators/sunburst/insidetextfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/sunburst/insidetextfont/_textcasesrc.py b/plotly/validators/sunburst/insidetextfont/_textcasesrc.py index 3469a81417..d1190c2755 100644 --- a/plotly/validators/sunburst/insidetextfont/_textcasesrc.py +++ b/plotly/validators/sunburst/insidetextfont/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/insidetextfont/_variant.py b/plotly/validators/sunburst/insidetextfont/_variant.py index 634e44f12c..30385c4d7e 100644 --- a/plotly/validators/sunburst/insidetextfont/_variant.py +++ b/plotly/validators/sunburst/insidetextfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( diff --git a/plotly/validators/sunburst/insidetextfont/_variantsrc.py b/plotly/validators/sunburst/insidetextfont/_variantsrc.py index b8d7a449a9..035944f006 100644 --- a/plotly/validators/sunburst/insidetextfont/_variantsrc.py +++ b/plotly/validators/sunburst/insidetextfont/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/insidetextfont/_weight.py b/plotly/validators/sunburst/insidetextfont/_weight.py index 738f0a2e8c..292d1aa96c 100644 --- a/plotly/validators/sunburst/insidetextfont/_weight.py +++ b/plotly/validators/sunburst/insidetextfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/sunburst/insidetextfont/_weightsrc.py b/plotly/validators/sunburst/insidetextfont/_weightsrc.py index 531a6e7dfe..1cf055c8af 100644 --- a/plotly/validators/sunburst/insidetextfont/_weightsrc.py +++ b/plotly/validators/sunburst/insidetextfont/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/leaf/__init__.py b/plotly/validators/sunburst/leaf/__init__.py index 049134a716..ea80a8a0f0 100644 --- a/plotly/validators/sunburst/leaf/__init__.py +++ b/plotly/validators/sunburst/leaf/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._opacity.OpacityValidator"] +) diff --git a/plotly/validators/sunburst/leaf/_opacity.py b/plotly/validators/sunburst/leaf/_opacity.py index c94ca5f0b0..5a60af3dcf 100644 --- a/plotly/validators/sunburst/leaf/_opacity.py +++ b/plotly/validators/sunburst/leaf/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/sunburst/legendgrouptitle/__init__.py b/plotly/validators/sunburst/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/sunburst/legendgrouptitle/__init__.py +++ b/plotly/validators/sunburst/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/sunburst/legendgrouptitle/_font.py b/plotly/validators/sunburst/legendgrouptitle/_font.py index 9d5e255537..2762d6ed9f 100644 --- a/plotly/validators/sunburst/legendgrouptitle/_font.py +++ b/plotly/validators/sunburst/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/sunburst/legendgrouptitle/_text.py b/plotly/validators/sunburst/legendgrouptitle/_text.py index bef05fabef..655b82b1d7 100644 --- a/plotly/validators/sunburst/legendgrouptitle/_text.py +++ b/plotly/validators/sunburst/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/sunburst/legendgrouptitle/font/__init__.py b/plotly/validators/sunburst/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/sunburst/legendgrouptitle/font/__init__.py +++ b/plotly/validators/sunburst/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/sunburst/legendgrouptitle/font/_color.py b/plotly/validators/sunburst/legendgrouptitle/font/_color.py index 90e05f8908..556a6cb065 100644 --- a/plotly/validators/sunburst/legendgrouptitle/font/_color.py +++ b/plotly/validators/sunburst/legendgrouptitle/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/sunburst/legendgrouptitle/font/_family.py b/plotly/validators/sunburst/legendgrouptitle/font/_family.py index 93d20ea04d..2fde66c5b9 100644 --- a/plotly/validators/sunburst/legendgrouptitle/font/_family.py +++ b/plotly/validators/sunburst/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/sunburst/legendgrouptitle/font/_lineposition.py b/plotly/validators/sunburst/legendgrouptitle/font/_lineposition.py index af49a88dd4..001fb1aa4d 100644 --- a/plotly/validators/sunburst/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/sunburst/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/sunburst/legendgrouptitle/font/_shadow.py b/plotly/validators/sunburst/legendgrouptitle/font/_shadow.py index b087a703a4..495bfcb595 100644 --- a/plotly/validators/sunburst/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/sunburst/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/sunburst/legendgrouptitle/font/_size.py b/plotly/validators/sunburst/legendgrouptitle/font/_size.py index a7242afa19..ae0279b517 100644 --- a/plotly/validators/sunburst/legendgrouptitle/font/_size.py +++ b/plotly/validators/sunburst/legendgrouptitle/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/sunburst/legendgrouptitle/font/_style.py b/plotly/validators/sunburst/legendgrouptitle/font/_style.py index c38fd9932d..ae9f3e85ec 100644 --- a/plotly/validators/sunburst/legendgrouptitle/font/_style.py +++ b/plotly/validators/sunburst/legendgrouptitle/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/sunburst/legendgrouptitle/font/_textcase.py b/plotly/validators/sunburst/legendgrouptitle/font/_textcase.py index c75360a2ef..c04f39a4d6 100644 --- a/plotly/validators/sunburst/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/sunburst/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/sunburst/legendgrouptitle/font/_variant.py b/plotly/validators/sunburst/legendgrouptitle/font/_variant.py index 80b57e2624..0f231f4980 100644 --- a/plotly/validators/sunburst/legendgrouptitle/font/_variant.py +++ b/plotly/validators/sunburst/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/sunburst/legendgrouptitle/font/_weight.py b/plotly/validators/sunburst/legendgrouptitle/font/_weight.py index b88e981ae5..c75bcb1529 100644 --- a/plotly/validators/sunburst/legendgrouptitle/font/_weight.py +++ b/plotly/validators/sunburst/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/sunburst/marker/__init__.py b/plotly/validators/sunburst/marker/__init__.py index e04f18cc55..a739102172 100644 --- a/plotly/validators/sunburst/marker/__init__.py +++ b/plotly/validators/sunburst/marker/__init__.py @@ -1,41 +1,23 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._showscale import ShowscaleValidator - from ._reversescale import ReversescaleValidator - from ._pattern import PatternValidator - from ._line import LineValidator - from ._colorssrc import ColorssrcValidator - from ._colorscale import ColorscaleValidator - from ._colors import ColorsValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/sunburst/marker/_autocolorscale.py b/plotly/validators/sunburst/marker/_autocolorscale.py index 907251dd1e..3dcd5eb114 100644 --- a/plotly/validators/sunburst/marker/_autocolorscale.py +++ b/plotly/validators/sunburst/marker/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/sunburst/marker/_cauto.py b/plotly/validators/sunburst/marker/_cauto.py index 0ca2cb6afd..3e431b4c0e 100644 --- a/plotly/validators/sunburst/marker/_cauto.py +++ b/plotly/validators/sunburst/marker/_cauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/sunburst/marker/_cmax.py b/plotly/validators/sunburst/marker/_cmax.py index 2966493d56..31907ea9c1 100644 --- a/plotly/validators/sunburst/marker/_cmax.py +++ b/plotly/validators/sunburst/marker/_cmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/sunburst/marker/_cmid.py b/plotly/validators/sunburst/marker/_cmid.py index f19d947818..991838188e 100644 --- a/plotly/validators/sunburst/marker/_cmid.py +++ b/plotly/validators/sunburst/marker/_cmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/sunburst/marker/_cmin.py b/plotly/validators/sunburst/marker/_cmin.py index 156c1eed15..e1a7c9e290 100644 --- a/plotly/validators/sunburst/marker/_cmin.py +++ b/plotly/validators/sunburst/marker/_cmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/sunburst/marker/_coloraxis.py b/plotly/validators/sunburst/marker/_coloraxis.py index fcc558e6af..ca3adb2d52 100644 --- a/plotly/validators/sunburst/marker/_coloraxis.py +++ b/plotly/validators/sunburst/marker/_coloraxis.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/sunburst/marker/_colorbar.py b/plotly/validators/sunburst/marker/_colorbar.py index b1eef13139..6301a2d0a5 100644 --- a/plotly/validators/sunburst/marker/_colorbar.py +++ b/plotly/validators/sunburst/marker/_colorbar.py @@ -1,279 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/sunburst/marker/_colors.py b/plotly/validators/sunburst/marker/_colors.py index f367c8ca25..aaf40eb72a 100644 --- a/plotly/validators/sunburst/marker/_colors.py +++ b/plotly/validators/sunburst/marker/_colors.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/_colorscale.py b/plotly/validators/sunburst/marker/_colorscale.py index eab681b1ab..ba202bb306 100644 --- a/plotly/validators/sunburst/marker/_colorscale.py +++ b/plotly/validators/sunburst/marker/_colorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/sunburst/marker/_colorssrc.py b/plotly/validators/sunburst/marker/_colorssrc.py index d4df61796f..0adf5e90ff 100644 --- a/plotly/validators/sunburst/marker/_colorssrc.py +++ b/plotly/validators/sunburst/marker/_colorssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/_line.py b/plotly/validators/sunburst/marker/_line.py index 8eb5361f0f..030f94ce57 100644 --- a/plotly/validators/sunburst/marker/_line.py +++ b/plotly/validators/sunburst/marker/_line.py @@ -1,27 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/sunburst/marker/_pattern.py b/plotly/validators/sunburst/marker/_pattern.py index ed80bc7a1d..20173ac590 100644 --- a/plotly/validators/sunburst/marker/_pattern.py +++ b/plotly/validators/sunburst/marker/_pattern.py @@ -1,63 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PatternValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/sunburst/marker/_reversescale.py b/plotly/validators/sunburst/marker/_reversescale.py index 7b18c163fe..8b222a7e11 100644 --- a/plotly/validators/sunburst/marker/_reversescale.py +++ b/plotly/validators/sunburst/marker/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/_showscale.py b/plotly/validators/sunburst/marker/_showscale.py index e38dd3b74c..6b3bfc08d8 100644 --- a/plotly/validators/sunburst/marker/_showscale.py +++ b/plotly/validators/sunburst/marker/_showscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/colorbar/__init__.py b/plotly/validators/sunburst/marker/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/sunburst/marker/colorbar/__init__.py +++ b/plotly/validators/sunburst/marker/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/sunburst/marker/colorbar/_bgcolor.py b/plotly/validators/sunburst/marker/colorbar/_bgcolor.py index 1043e79a3c..535251ff61 100644 --- a/plotly/validators/sunburst/marker/colorbar/_bgcolor.py +++ b/plotly/validators/sunburst/marker/colorbar/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/colorbar/_bordercolor.py b/plotly/validators/sunburst/marker/colorbar/_bordercolor.py index 4acb211dc7..c8befa9a10 100644 --- a/plotly/validators/sunburst/marker/colorbar/_bordercolor.py +++ b/plotly/validators/sunburst/marker/colorbar/_bordercolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/colorbar/_borderwidth.py b/plotly/validators/sunburst/marker/colorbar/_borderwidth.py index c0c408d8e2..a50c9d54e2 100644 --- a/plotly/validators/sunburst/marker/colorbar/_borderwidth.py +++ b/plotly/validators/sunburst/marker/colorbar/_borderwidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/sunburst/marker/colorbar/_dtick.py b/plotly/validators/sunburst/marker/colorbar/_dtick.py index 8b9b11464c..e67ad5de85 100644 --- a/plotly/validators/sunburst/marker/colorbar/_dtick.py +++ b/plotly/validators/sunburst/marker/colorbar/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/sunburst/marker/colorbar/_exponentformat.py b/plotly/validators/sunburst/marker/colorbar/_exponentformat.py index 4b9c182be7..0ca623d9d9 100644 --- a/plotly/validators/sunburst/marker/colorbar/_exponentformat.py +++ b/plotly/validators/sunburst/marker/colorbar/_exponentformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/sunburst/marker/colorbar/_labelalias.py b/plotly/validators/sunburst/marker/colorbar/_labelalias.py index 66f92a5291..74a2b87061 100644 --- a/plotly/validators/sunburst/marker/colorbar/_labelalias.py +++ b/plotly/validators/sunburst/marker/colorbar/_labelalias.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/colorbar/_len.py b/plotly/validators/sunburst/marker/colorbar/_len.py index 75feed54b8..73a5e34b0e 100644 --- a/plotly/validators/sunburst/marker/colorbar/_len.py +++ b/plotly/validators/sunburst/marker/colorbar/_len.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/sunburst/marker/colorbar/_lenmode.py b/plotly/validators/sunburst/marker/colorbar/_lenmode.py index 2adbc472ac..d2a48bc016 100644 --- a/plotly/validators/sunburst/marker/colorbar/_lenmode.py +++ b/plotly/validators/sunburst/marker/colorbar/_lenmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/sunburst/marker/colorbar/_minexponent.py b/plotly/validators/sunburst/marker/colorbar/_minexponent.py index 6ae8c82ab0..287a8d11b9 100644 --- a/plotly/validators/sunburst/marker/colorbar/_minexponent.py +++ b/plotly/validators/sunburst/marker/colorbar/_minexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/sunburst/marker/colorbar/_nticks.py b/plotly/validators/sunburst/marker/colorbar/_nticks.py index ea512197b2..979de06dc9 100644 --- a/plotly/validators/sunburst/marker/colorbar/_nticks.py +++ b/plotly/validators/sunburst/marker/colorbar/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/sunburst/marker/colorbar/_orientation.py b/plotly/validators/sunburst/marker/colorbar/_orientation.py index ed4374024e..dd648de862 100644 --- a/plotly/validators/sunburst/marker/colorbar/_orientation.py +++ b/plotly/validators/sunburst/marker/colorbar/_orientation.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/sunburst/marker/colorbar/_outlinecolor.py b/plotly/validators/sunburst/marker/colorbar/_outlinecolor.py index 629132344f..712bb6ed27 100644 --- a/plotly/validators/sunburst/marker/colorbar/_outlinecolor.py +++ b/plotly/validators/sunburst/marker/colorbar/_outlinecolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/colorbar/_outlinewidth.py b/plotly/validators/sunburst/marker/colorbar/_outlinewidth.py index 4d4d0a1a9f..5fdb8edf24 100644 --- a/plotly/validators/sunburst/marker/colorbar/_outlinewidth.py +++ b/plotly/validators/sunburst/marker/colorbar/_outlinewidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/sunburst/marker/colorbar/_separatethousands.py b/plotly/validators/sunburst/marker/colorbar/_separatethousands.py index de569f65d8..9dc7c08c4e 100644 --- a/plotly/validators/sunburst/marker/colorbar/_separatethousands.py +++ b/plotly/validators/sunburst/marker/colorbar/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/colorbar/_showexponent.py b/plotly/validators/sunburst/marker/colorbar/_showexponent.py index 86bb429545..c88e9c4de8 100644 --- a/plotly/validators/sunburst/marker/colorbar/_showexponent.py +++ b/plotly/validators/sunburst/marker/colorbar/_showexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/sunburst/marker/colorbar/_showticklabels.py b/plotly/validators/sunburst/marker/colorbar/_showticklabels.py index 6e7e65192a..fc080d2694 100644 --- a/plotly/validators/sunburst/marker/colorbar/_showticklabels.py +++ b/plotly/validators/sunburst/marker/colorbar/_showticklabels.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/colorbar/_showtickprefix.py b/plotly/validators/sunburst/marker/colorbar/_showtickprefix.py index 1e5209c89c..661e8fd0a4 100644 --- a/plotly/validators/sunburst/marker/colorbar/_showtickprefix.py +++ b/plotly/validators/sunburst/marker/colorbar/_showtickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/sunburst/marker/colorbar/_showticksuffix.py b/plotly/validators/sunburst/marker/colorbar/_showticksuffix.py index b68a63b875..6d573bbc48 100644 --- a/plotly/validators/sunburst/marker/colorbar/_showticksuffix.py +++ b/plotly/validators/sunburst/marker/colorbar/_showticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/sunburst/marker/colorbar/_thickness.py b/plotly/validators/sunburst/marker/colorbar/_thickness.py index 3639b54764..8d8ebd9aea 100644 --- a/plotly/validators/sunburst/marker/colorbar/_thickness.py +++ b/plotly/validators/sunburst/marker/colorbar/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/sunburst/marker/colorbar/_thicknessmode.py b/plotly/validators/sunburst/marker/colorbar/_thicknessmode.py index 64d78435af..b75b159a28 100644 --- a/plotly/validators/sunburst/marker/colorbar/_thicknessmode.py +++ b/plotly/validators/sunburst/marker/colorbar/_thicknessmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/sunburst/marker/colorbar/_tick0.py b/plotly/validators/sunburst/marker/colorbar/_tick0.py index 8ef2248d49..3562c1e7c3 100644 --- a/plotly/validators/sunburst/marker/colorbar/_tick0.py +++ b/plotly/validators/sunburst/marker/colorbar/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/sunburst/marker/colorbar/_tickangle.py b/plotly/validators/sunburst/marker/colorbar/_tickangle.py index d6dbde38c9..f1552db7b6 100644 --- a/plotly/validators/sunburst/marker/colorbar/_tickangle.py +++ b/plotly/validators/sunburst/marker/colorbar/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/colorbar/_tickcolor.py b/plotly/validators/sunburst/marker/colorbar/_tickcolor.py index 21016b9563..fbcf4b0c78 100644 --- a/plotly/validators/sunburst/marker/colorbar/_tickcolor.py +++ b/plotly/validators/sunburst/marker/colorbar/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/colorbar/_tickfont.py b/plotly/validators/sunburst/marker/colorbar/_tickfont.py index 0cd6af182d..44ae435c1f 100644 --- a/plotly/validators/sunburst/marker/colorbar/_tickfont.py +++ b/plotly/validators/sunburst/marker/colorbar/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/sunburst/marker/colorbar/_tickformat.py b/plotly/validators/sunburst/marker/colorbar/_tickformat.py index 0233267d2a..42cd78a45d 100644 --- a/plotly/validators/sunburst/marker/colorbar/_tickformat.py +++ b/plotly/validators/sunburst/marker/colorbar/_tickformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/colorbar/_tickformatstopdefaults.py b/plotly/validators/sunburst/marker/colorbar/_tickformatstopdefaults.py index 7d7919712a..5db25a59b0 100644 --- a/plotly/validators/sunburst/marker/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/sunburst/marker/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/sunburst/marker/colorbar/_tickformatstops.py b/plotly/validators/sunburst/marker/colorbar/_tickformatstops.py index 6fa5908772..003eb30582 100644 --- a/plotly/validators/sunburst/marker/colorbar/_tickformatstops.py +++ b/plotly/validators/sunburst/marker/colorbar/_tickformatstops.py @@ -1,53 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/sunburst/marker/colorbar/_ticklabeloverflow.py b/plotly/validators/sunburst/marker/colorbar/_ticklabeloverflow.py index 66cf6193d8..0701854819 100644 --- a/plotly/validators/sunburst/marker/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/sunburst/marker/colorbar/_ticklabeloverflow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/sunburst/marker/colorbar/_ticklabelposition.py b/plotly/validators/sunburst/marker/colorbar/_ticklabelposition.py index 3adb10606f..6d0e625e43 100644 --- a/plotly/validators/sunburst/marker/colorbar/_ticklabelposition.py +++ b/plotly/validators/sunburst/marker/colorbar/_ticklabelposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/sunburst/marker/colorbar/_ticklabelstep.py b/plotly/validators/sunburst/marker/colorbar/_ticklabelstep.py index 2f1a3aed54..f9b2f63f1c 100644 --- a/plotly/validators/sunburst/marker/colorbar/_ticklabelstep.py +++ b/plotly/validators/sunburst/marker/colorbar/_ticklabelstep.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/sunburst/marker/colorbar/_ticklen.py b/plotly/validators/sunburst/marker/colorbar/_ticklen.py index b0c351ffc1..6287ccc0aa 100644 --- a/plotly/validators/sunburst/marker/colorbar/_ticklen.py +++ b/plotly/validators/sunburst/marker/colorbar/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/sunburst/marker/colorbar/_tickmode.py b/plotly/validators/sunburst/marker/colorbar/_tickmode.py index 140f252e05..d89a5f53a7 100644 --- a/plotly/validators/sunburst/marker/colorbar/_tickmode.py +++ b/plotly/validators/sunburst/marker/colorbar/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/sunburst/marker/colorbar/_tickprefix.py b/plotly/validators/sunburst/marker/colorbar/_tickprefix.py index 428f8de93b..b07855f1f0 100644 --- a/plotly/validators/sunburst/marker/colorbar/_tickprefix.py +++ b/plotly/validators/sunburst/marker/colorbar/_tickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/colorbar/_ticks.py b/plotly/validators/sunburst/marker/colorbar/_ticks.py index e2b39e7dc3..9f800dc2c3 100644 --- a/plotly/validators/sunburst/marker/colorbar/_ticks.py +++ b/plotly/validators/sunburst/marker/colorbar/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/sunburst/marker/colorbar/_ticksuffix.py b/plotly/validators/sunburst/marker/colorbar/_ticksuffix.py index 33cec19861..fc52145925 100644 --- a/plotly/validators/sunburst/marker/colorbar/_ticksuffix.py +++ b/plotly/validators/sunburst/marker/colorbar/_ticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/colorbar/_ticktext.py b/plotly/validators/sunburst/marker/colorbar/_ticktext.py index 0973a3d379..08f5a98035 100644 --- a/plotly/validators/sunburst/marker/colorbar/_ticktext.py +++ b/plotly/validators/sunburst/marker/colorbar/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/colorbar/_ticktextsrc.py b/plotly/validators/sunburst/marker/colorbar/_ticktextsrc.py index e09f4e6ffb..2f6a21368c 100644 --- a/plotly/validators/sunburst/marker/colorbar/_ticktextsrc.py +++ b/plotly/validators/sunburst/marker/colorbar/_ticktextsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/colorbar/_tickvals.py b/plotly/validators/sunburst/marker/colorbar/_tickvals.py index b8384e696b..a9901a2d6c 100644 --- a/plotly/validators/sunburst/marker/colorbar/_tickvals.py +++ b/plotly/validators/sunburst/marker/colorbar/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/colorbar/_tickvalssrc.py b/plotly/validators/sunburst/marker/colorbar/_tickvalssrc.py index 9d7a541742..61fc605663 100644 --- a/plotly/validators/sunburst/marker/colorbar/_tickvalssrc.py +++ b/plotly/validators/sunburst/marker/colorbar/_tickvalssrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/colorbar/_tickwidth.py b/plotly/validators/sunburst/marker/colorbar/_tickwidth.py index 188d4fc820..85a6b06033 100644 --- a/plotly/validators/sunburst/marker/colorbar/_tickwidth.py +++ b/plotly/validators/sunburst/marker/colorbar/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/sunburst/marker/colorbar/_title.py b/plotly/validators/sunburst/marker/colorbar/_title.py index 99929b9146..dcbb167c46 100644 --- a/plotly/validators/sunburst/marker/colorbar/_title.py +++ b/plotly/validators/sunburst/marker/colorbar/_title.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/sunburst/marker/colorbar/_x.py b/plotly/validators/sunburst/marker/colorbar/_x.py index e0af9666a7..f787cec0b2 100644 --- a/plotly/validators/sunburst/marker/colorbar/_x.py +++ b/plotly/validators/sunburst/marker/colorbar/_x.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/colorbar/_xanchor.py b/plotly/validators/sunburst/marker/colorbar/_xanchor.py index cdeff8f79e..ff375c1713 100644 --- a/plotly/validators/sunburst/marker/colorbar/_xanchor.py +++ b/plotly/validators/sunburst/marker/colorbar/_xanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/sunburst/marker/colorbar/_xpad.py b/plotly/validators/sunburst/marker/colorbar/_xpad.py index 3bfa75bf58..2d24f88da0 100644 --- a/plotly/validators/sunburst/marker/colorbar/_xpad.py +++ b/plotly/validators/sunburst/marker/colorbar/_xpad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/sunburst/marker/colorbar/_xref.py b/plotly/validators/sunburst/marker/colorbar/_xref.py index 36c8a29249..48ba61f35c 100644 --- a/plotly/validators/sunburst/marker/colorbar/_xref.py +++ b/plotly/validators/sunburst/marker/colorbar/_xref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/sunburst/marker/colorbar/_y.py b/plotly/validators/sunburst/marker/colorbar/_y.py index 1ef98a59b0..f74fb4df53 100644 --- a/plotly/validators/sunburst/marker/colorbar/_y.py +++ b/plotly/validators/sunburst/marker/colorbar/_y.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/colorbar/_yanchor.py b/plotly/validators/sunburst/marker/colorbar/_yanchor.py index f27f2f1a18..b37a7aa83d 100644 --- a/plotly/validators/sunburst/marker/colorbar/_yanchor.py +++ b/plotly/validators/sunburst/marker/colorbar/_yanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/sunburst/marker/colorbar/_ypad.py b/plotly/validators/sunburst/marker/colorbar/_ypad.py index 791f4bf0e8..c63586f6a1 100644 --- a/plotly/validators/sunburst/marker/colorbar/_ypad.py +++ b/plotly/validators/sunburst/marker/colorbar/_ypad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/sunburst/marker/colorbar/_yref.py b/plotly/validators/sunburst/marker/colorbar/_yref.py index bb79a74d64..e5dfb491a0 100644 --- a/plotly/validators/sunburst/marker/colorbar/_yref.py +++ b/plotly/validators/sunburst/marker/colorbar/_yref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/sunburst/marker/colorbar/tickfont/__init__.py b/plotly/validators/sunburst/marker/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/sunburst/marker/colorbar/tickfont/__init__.py +++ b/plotly/validators/sunburst/marker/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/sunburst/marker/colorbar/tickfont/_color.py b/plotly/validators/sunburst/marker/colorbar/tickfont/_color.py index d3174864c3..30ac11d143 100644 --- a/plotly/validators/sunburst/marker/colorbar/tickfont/_color.py +++ b/plotly/validators/sunburst/marker/colorbar/tickfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/colorbar/tickfont/_family.py b/plotly/validators/sunburst/marker/colorbar/tickfont/_family.py index c38169c73e..cf0f5887a2 100644 --- a/plotly/validators/sunburst/marker/colorbar/tickfont/_family.py +++ b/plotly/validators/sunburst/marker/colorbar/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/sunburst/marker/colorbar/tickfont/_lineposition.py b/plotly/validators/sunburst/marker/colorbar/tickfont/_lineposition.py index b789db5d38..ab75d49a30 100644 --- a/plotly/validators/sunburst/marker/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/sunburst/marker/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/sunburst/marker/colorbar/tickfont/_shadow.py b/plotly/validators/sunburst/marker/colorbar/tickfont/_shadow.py index 9e9480be05..d663cc2ef0 100644 --- a/plotly/validators/sunburst/marker/colorbar/tickfont/_shadow.py +++ b/plotly/validators/sunburst/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/colorbar/tickfont/_size.py b/plotly/validators/sunburst/marker/colorbar/tickfont/_size.py index d70d53872f..0bb818177a 100644 --- a/plotly/validators/sunburst/marker/colorbar/tickfont/_size.py +++ b/plotly/validators/sunburst/marker/colorbar/tickfont/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/sunburst/marker/colorbar/tickfont/_style.py b/plotly/validators/sunburst/marker/colorbar/tickfont/_style.py index ddfecba7fc..c27e013cfa 100644 --- a/plotly/validators/sunburst/marker/colorbar/tickfont/_style.py +++ b/plotly/validators/sunburst/marker/colorbar/tickfont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/sunburst/marker/colorbar/tickfont/_textcase.py b/plotly/validators/sunburst/marker/colorbar/tickfont/_textcase.py index fefd97ce10..cbf6910baa 100644 --- a/plotly/validators/sunburst/marker/colorbar/tickfont/_textcase.py +++ b/plotly/validators/sunburst/marker/colorbar/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/sunburst/marker/colorbar/tickfont/_variant.py b/plotly/validators/sunburst/marker/colorbar/tickfont/_variant.py index cac7249d6c..100cb26cad 100644 --- a/plotly/validators/sunburst/marker/colorbar/tickfont/_variant.py +++ b/plotly/validators/sunburst/marker/colorbar/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/sunburst/marker/colorbar/tickfont/_weight.py b/plotly/validators/sunburst/marker/colorbar/tickfont/_weight.py index 8cb54be75b..207feec81d 100644 --- a/plotly/validators/sunburst/marker/colorbar/tickfont/_weight.py +++ b/plotly/validators/sunburst/marker/colorbar/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/sunburst/marker/colorbar/tickformatstop/__init__.py b/plotly/validators/sunburst/marker/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/sunburst/marker/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/sunburst/marker/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/sunburst/marker/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/sunburst/marker/colorbar/tickformatstop/_dtickrange.py index ed5f11d7d0..5fd843cb1e 100644 --- a/plotly/validators/sunburst/marker/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/sunburst/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( "items", diff --git a/plotly/validators/sunburst/marker/colorbar/tickformatstop/_enabled.py b/plotly/validators/sunburst/marker/colorbar/tickformatstop/_enabled.py index 208c4b212c..ef3ac4644d 100644 --- a/plotly/validators/sunburst/marker/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/sunburst/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/colorbar/tickformatstop/_name.py b/plotly/validators/sunburst/marker/colorbar/tickformatstop/_name.py index e451ae1c98..4b472d44d7 100644 --- a/plotly/validators/sunburst/marker/colorbar/tickformatstop/_name.py +++ b/plotly/validators/sunburst/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/sunburst/marker/colorbar/tickformatstop/_templateitemname.py index 411f073559..146e174c31 100644 --- a/plotly/validators/sunburst/marker/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/sunburst/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/colorbar/tickformatstop/_value.py b/plotly/validators/sunburst/marker/colorbar/tickformatstop/_value.py index 44239fd2d5..c8c17dba06 100644 --- a/plotly/validators/sunburst/marker/colorbar/tickformatstop/_value.py +++ b/plotly/validators/sunburst/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/colorbar/title/__init__.py b/plotly/validators/sunburst/marker/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/sunburst/marker/colorbar/title/__init__.py +++ b/plotly/validators/sunburst/marker/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/sunburst/marker/colorbar/title/_font.py b/plotly/validators/sunburst/marker/colorbar/title/_font.py index cb67eb292e..bc30594ea8 100644 --- a/plotly/validators/sunburst/marker/colorbar/title/_font.py +++ b/plotly/validators/sunburst/marker/colorbar/title/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/sunburst/marker/colorbar/title/_side.py b/plotly/validators/sunburst/marker/colorbar/title/_side.py index 3f8e59df1d..78b7db72dd 100644 --- a/plotly/validators/sunburst/marker/colorbar/title/_side.py +++ b/plotly/validators/sunburst/marker/colorbar/title/_side.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/sunburst/marker/colorbar/title/_text.py b/plotly/validators/sunburst/marker/colorbar/title/_text.py index ac982c808a..a9eb0d2f70 100644 --- a/plotly/validators/sunburst/marker/colorbar/title/_text.py +++ b/plotly/validators/sunburst/marker/colorbar/title/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/colorbar/title/font/__init__.py b/plotly/validators/sunburst/marker/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/sunburst/marker/colorbar/title/font/__init__.py +++ b/plotly/validators/sunburst/marker/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/sunburst/marker/colorbar/title/font/_color.py b/plotly/validators/sunburst/marker/colorbar/title/font/_color.py index e092c4556d..7ff7993e17 100644 --- a/plotly/validators/sunburst/marker/colorbar/title/font/_color.py +++ b/plotly/validators/sunburst/marker/colorbar/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/colorbar/title/font/_family.py b/plotly/validators/sunburst/marker/colorbar/title/font/_family.py index 327ed80785..062f2ba605 100644 --- a/plotly/validators/sunburst/marker/colorbar/title/font/_family.py +++ b/plotly/validators/sunburst/marker/colorbar/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/sunburst/marker/colorbar/title/font/_lineposition.py b/plotly/validators/sunburst/marker/colorbar/title/font/_lineposition.py index 6da04101fb..7fc6a30496 100644 --- a/plotly/validators/sunburst/marker/colorbar/title/font/_lineposition.py +++ b/plotly/validators/sunburst/marker/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/sunburst/marker/colorbar/title/font/_shadow.py b/plotly/validators/sunburst/marker/colorbar/title/font/_shadow.py index 966f1c9550..4b577042a1 100644 --- a/plotly/validators/sunburst/marker/colorbar/title/font/_shadow.py +++ b/plotly/validators/sunburst/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/colorbar/title/font/_size.py b/plotly/validators/sunburst/marker/colorbar/title/font/_size.py index cb35c6a22e..c81dec3432 100644 --- a/plotly/validators/sunburst/marker/colorbar/title/font/_size.py +++ b/plotly/validators/sunburst/marker/colorbar/title/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/sunburst/marker/colorbar/title/font/_style.py b/plotly/validators/sunburst/marker/colorbar/title/font/_style.py index 1495d2cc54..6c4fd906e0 100644 --- a/plotly/validators/sunburst/marker/colorbar/title/font/_style.py +++ b/plotly/validators/sunburst/marker/colorbar/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/sunburst/marker/colorbar/title/font/_textcase.py b/plotly/validators/sunburst/marker/colorbar/title/font/_textcase.py index f1422536bc..45cbac90a5 100644 --- a/plotly/validators/sunburst/marker/colorbar/title/font/_textcase.py +++ b/plotly/validators/sunburst/marker/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/sunburst/marker/colorbar/title/font/_variant.py b/plotly/validators/sunburst/marker/colorbar/title/font/_variant.py index 92cb0df319..0427932e11 100644 --- a/plotly/validators/sunburst/marker/colorbar/title/font/_variant.py +++ b/plotly/validators/sunburst/marker/colorbar/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/sunburst/marker/colorbar/title/font/_weight.py b/plotly/validators/sunburst/marker/colorbar/title/font/_weight.py index 1440fea37a..4cdf099c3a 100644 --- a/plotly/validators/sunburst/marker/colorbar/title/font/_weight.py +++ b/plotly/validators/sunburst/marker/colorbar/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/sunburst/marker/line/__init__.py b/plotly/validators/sunburst/marker/line/__init__.py index a2b9e1ae50..ca6d32f725 100644 --- a/plotly/validators/sunburst/marker/line/__init__.py +++ b/plotly/validators/sunburst/marker/line/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._widthsrc import WidthsrcValidator - from ._width import WidthValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._widthsrc.WidthsrcValidator", + "._width.WidthValidator", + "._colorsrc.ColorsrcValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/sunburst/marker/line/_color.py b/plotly/validators/sunburst/marker/line/_color.py index 7259244bbc..5bdef4139b 100644 --- a/plotly/validators/sunburst/marker/line/_color.py +++ b/plotly/validators/sunburst/marker/line/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/sunburst/marker/line/_colorsrc.py b/plotly/validators/sunburst/marker/line/_colorsrc.py index 51c7ee759b..60698b0f04 100644 --- a/plotly/validators/sunburst/marker/line/_colorsrc.py +++ b/plotly/validators/sunburst/marker/line/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/line/_width.py b/plotly/validators/sunburst/marker/line/_width.py index 2eb546fdf7..c50f164ba3 100644 --- a/plotly/validators/sunburst/marker/line/_width.py +++ b/plotly/validators/sunburst/marker/line/_width.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/sunburst/marker/line/_widthsrc.py b/plotly/validators/sunburst/marker/line/_widthsrc.py index 370a9a0a2b..c97d95d5b2 100644 --- a/plotly/validators/sunburst/marker/line/_widthsrc.py +++ b/plotly/validators/sunburst/marker/line/_widthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/pattern/__init__.py b/plotly/validators/sunburst/marker/pattern/__init__.py index e190f962c4..e42ccc4d0f 100644 --- a/plotly/validators/sunburst/marker/pattern/__init__.py +++ b/plotly/validators/sunburst/marker/pattern/__init__.py @@ -1,37 +1,21 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._soliditysrc import SoliditysrcValidator - from ._solidity import SolidityValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shapesrc import ShapesrcValidator - from ._shape import ShapeValidator - from ._fillmode import FillmodeValidator - from ._fgopacity import FgopacityValidator - from ._fgcolorsrc import FgcolorsrcValidator - from ._fgcolor import FgcolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/sunburst/marker/pattern/_bgcolor.py b/plotly/validators/sunburst/marker/pattern/_bgcolor.py index f8d91e0bc5..217b5cd420 100644 --- a/plotly/validators/sunburst/marker/pattern/_bgcolor.py +++ b/plotly/validators/sunburst/marker/pattern/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/sunburst/marker/pattern/_bgcolorsrc.py b/plotly/validators/sunburst/marker/pattern/_bgcolorsrc.py index 6ac1252463..255f82eaa9 100644 --- a/plotly/validators/sunburst/marker/pattern/_bgcolorsrc.py +++ b/plotly/validators/sunburst/marker/pattern/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/pattern/_fgcolor.py b/plotly/validators/sunburst/marker/pattern/_fgcolor.py index 061047f411..385cd7453e 100644 --- a/plotly/validators/sunburst/marker/pattern/_fgcolor.py +++ b/plotly/validators/sunburst/marker/pattern/_fgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/sunburst/marker/pattern/_fgcolorsrc.py b/plotly/validators/sunburst/marker/pattern/_fgcolorsrc.py index 86c3ff70ae..38b64194ef 100644 --- a/plotly/validators/sunburst/marker/pattern/_fgcolorsrc.py +++ b/plotly/validators/sunburst/marker/pattern/_fgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/pattern/_fgopacity.py b/plotly/validators/sunburst/marker/pattern/_fgopacity.py index 8d49e47301..b860f9c687 100644 --- a/plotly/validators/sunburst/marker/pattern/_fgopacity.py +++ b/plotly/validators/sunburst/marker/pattern/_fgopacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FgopacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/sunburst/marker/pattern/_fillmode.py b/plotly/validators/sunburst/marker/pattern/_fillmode.py index f2fb4c7fba..126d72d023 100644 --- a/plotly/validators/sunburst/marker/pattern/_fillmode.py +++ b/plotly/validators/sunburst/marker/pattern/_fillmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["replace", "overlay"]), **kwargs, diff --git a/plotly/validators/sunburst/marker/pattern/_shape.py b/plotly/validators/sunburst/marker/pattern/_shape.py index 5780376c00..ad1b7b1c45 100644 --- a/plotly/validators/sunburst/marker/pattern/_shape.py +++ b/plotly/validators/sunburst/marker/pattern/_shape.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["", "/", "\\", "x", "-", "|", "+", "."]), diff --git a/plotly/validators/sunburst/marker/pattern/_shapesrc.py b/plotly/validators/sunburst/marker/pattern/_shapesrc.py index eea033eee0..235416fd58 100644 --- a/plotly/validators/sunburst/marker/pattern/_shapesrc.py +++ b/plotly/validators/sunburst/marker/pattern/_shapesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShapesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/pattern/_size.py b/plotly/validators/sunburst/marker/pattern/_size.py index 1b9a310941..1027aa4747 100644 --- a/plotly/validators/sunburst/marker/pattern/_size.py +++ b/plotly/validators/sunburst/marker/pattern/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/sunburst/marker/pattern/_sizesrc.py b/plotly/validators/sunburst/marker/pattern/_sizesrc.py index 1ef91bc2cd..a27a1b42e1 100644 --- a/plotly/validators/sunburst/marker/pattern/_sizesrc.py +++ b/plotly/validators/sunburst/marker/pattern/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/marker/pattern/_solidity.py b/plotly/validators/sunburst/marker/pattern/_solidity.py index 12819d300b..cae944735a 100644 --- a/plotly/validators/sunburst/marker/pattern/_solidity.py +++ b/plotly/validators/sunburst/marker/pattern/_solidity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SolidityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), diff --git a/plotly/validators/sunburst/marker/pattern/_soliditysrc.py b/plotly/validators/sunburst/marker/pattern/_soliditysrc.py index 6d9fb3e830..c65fedc4bb 100644 --- a/plotly/validators/sunburst/marker/pattern/_soliditysrc.py +++ b/plotly/validators/sunburst/marker/pattern/_soliditysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SoliditysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/outsidetextfont/__init__.py b/plotly/validators/sunburst/outsidetextfont/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/sunburst/outsidetextfont/__init__.py +++ b/plotly/validators/sunburst/outsidetextfont/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/sunburst/outsidetextfont/_color.py b/plotly/validators/sunburst/outsidetextfont/_color.py index 618dc20b58..2a5f30afeb 100644 --- a/plotly/validators/sunburst/outsidetextfont/_color.py +++ b/plotly/validators/sunburst/outsidetextfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/sunburst/outsidetextfont/_colorsrc.py b/plotly/validators/sunburst/outsidetextfont/_colorsrc.py index bf53315de5..f9b0e90f49 100644 --- a/plotly/validators/sunburst/outsidetextfont/_colorsrc.py +++ b/plotly/validators/sunburst/outsidetextfont/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/outsidetextfont/_family.py b/plotly/validators/sunburst/outsidetextfont/_family.py index 8fbbfbc9d9..c26558b658 100644 --- a/plotly/validators/sunburst/outsidetextfont/_family.py +++ b/plotly/validators/sunburst/outsidetextfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/sunburst/outsidetextfont/_familysrc.py b/plotly/validators/sunburst/outsidetextfont/_familysrc.py index 58f057f269..0a037d5935 100644 --- a/plotly/validators/sunburst/outsidetextfont/_familysrc.py +++ b/plotly/validators/sunburst/outsidetextfont/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/outsidetextfont/_lineposition.py b/plotly/validators/sunburst/outsidetextfont/_lineposition.py index 0b62f102b0..8f5762f22a 100644 --- a/plotly/validators/sunburst/outsidetextfont/_lineposition.py +++ b/plotly/validators/sunburst/outsidetextfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/sunburst/outsidetextfont/_linepositionsrc.py b/plotly/validators/sunburst/outsidetextfont/_linepositionsrc.py index 7fe11e3b07..fdc807d7ae 100644 --- a/plotly/validators/sunburst/outsidetextfont/_linepositionsrc.py +++ b/plotly/validators/sunburst/outsidetextfont/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/outsidetextfont/_shadow.py b/plotly/validators/sunburst/outsidetextfont/_shadow.py index de55ec56a0..fe87b3d8b0 100644 --- a/plotly/validators/sunburst/outsidetextfont/_shadow.py +++ b/plotly/validators/sunburst/outsidetextfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/sunburst/outsidetextfont/_shadowsrc.py b/plotly/validators/sunburst/outsidetextfont/_shadowsrc.py index 6538ba4f37..f7512d6b59 100644 --- a/plotly/validators/sunburst/outsidetextfont/_shadowsrc.py +++ b/plotly/validators/sunburst/outsidetextfont/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/outsidetextfont/_size.py b/plotly/validators/sunburst/outsidetextfont/_size.py index 88045be5d9..d26443b002 100644 --- a/plotly/validators/sunburst/outsidetextfont/_size.py +++ b/plotly/validators/sunburst/outsidetextfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/sunburst/outsidetextfont/_sizesrc.py b/plotly/validators/sunburst/outsidetextfont/_sizesrc.py index 7ce3cd0b01..ef775a966c 100644 --- a/plotly/validators/sunburst/outsidetextfont/_sizesrc.py +++ b/plotly/validators/sunburst/outsidetextfont/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/outsidetextfont/_style.py b/plotly/validators/sunburst/outsidetextfont/_style.py index b738e2adca..bb497e9267 100644 --- a/plotly/validators/sunburst/outsidetextfont/_style.py +++ b/plotly/validators/sunburst/outsidetextfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/sunburst/outsidetextfont/_stylesrc.py b/plotly/validators/sunburst/outsidetextfont/_stylesrc.py index 5970a7c900..4bd8736447 100644 --- a/plotly/validators/sunburst/outsidetextfont/_stylesrc.py +++ b/plotly/validators/sunburst/outsidetextfont/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/outsidetextfont/_textcase.py b/plotly/validators/sunburst/outsidetextfont/_textcase.py index bd1485a8f8..88012021d1 100644 --- a/plotly/validators/sunburst/outsidetextfont/_textcase.py +++ b/plotly/validators/sunburst/outsidetextfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/sunburst/outsidetextfont/_textcasesrc.py b/plotly/validators/sunburst/outsidetextfont/_textcasesrc.py index 30e1b58e18..5742e8578c 100644 --- a/plotly/validators/sunburst/outsidetextfont/_textcasesrc.py +++ b/plotly/validators/sunburst/outsidetextfont/_textcasesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/outsidetextfont/_variant.py b/plotly/validators/sunburst/outsidetextfont/_variant.py index 99568568b1..79e70b5d65 100644 --- a/plotly/validators/sunburst/outsidetextfont/_variant.py +++ b/plotly/validators/sunburst/outsidetextfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( diff --git a/plotly/validators/sunburst/outsidetextfont/_variantsrc.py b/plotly/validators/sunburst/outsidetextfont/_variantsrc.py index 7439ad94ab..6b86f9dcc1 100644 --- a/plotly/validators/sunburst/outsidetextfont/_variantsrc.py +++ b/plotly/validators/sunburst/outsidetextfont/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/outsidetextfont/_weight.py b/plotly/validators/sunburst/outsidetextfont/_weight.py index ea8e41fb94..167e7668d6 100644 --- a/plotly/validators/sunburst/outsidetextfont/_weight.py +++ b/plotly/validators/sunburst/outsidetextfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/sunburst/outsidetextfont/_weightsrc.py b/plotly/validators/sunburst/outsidetextfont/_weightsrc.py index 4fcad2c6f3..c3ae5116f8 100644 --- a/plotly/validators/sunburst/outsidetextfont/_weightsrc.py +++ b/plotly/validators/sunburst/outsidetextfont/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/root/__init__.py b/plotly/validators/sunburst/root/__init__.py index a9f087e5af..85a4cc9573 100644 --- a/plotly/validators/sunburst/root/__init__.py +++ b/plotly/validators/sunburst/root/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._color.ColorValidator"] +) diff --git a/plotly/validators/sunburst/root/_color.py b/plotly/validators/sunburst/root/_color.py index 1951f74c86..bf52db4598 100644 --- a/plotly/validators/sunburst/root/_color.py +++ b/plotly/validators/sunburst/root/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/sunburst/stream/__init__.py b/plotly/validators/sunburst/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/sunburst/stream/__init__.py +++ b/plotly/validators/sunburst/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/sunburst/stream/_maxpoints.py b/plotly/validators/sunburst/stream/_maxpoints.py index cd47572c89..19ba8c3f91 100644 --- a/plotly/validators/sunburst/stream/_maxpoints.py +++ b/plotly/validators/sunburst/stream/_maxpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/sunburst/stream/_token.py b/plotly/validators/sunburst/stream/_token.py index 091ed637ad..d77231bd1e 100644 --- a/plotly/validators/sunburst/stream/_token.py +++ b/plotly/validators/sunburst/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/sunburst/textfont/__init__.py b/plotly/validators/sunburst/textfont/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/sunburst/textfont/__init__.py +++ b/plotly/validators/sunburst/textfont/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/sunburst/textfont/_color.py b/plotly/validators/sunburst/textfont/_color.py index fe64ae72ae..705eaa6f4b 100644 --- a/plotly/validators/sunburst/textfont/_color.py +++ b/plotly/validators/sunburst/textfont/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/sunburst/textfont/_colorsrc.py b/plotly/validators/sunburst/textfont/_colorsrc.py index 50e32573ab..941f36eec7 100644 --- a/plotly/validators/sunburst/textfont/_colorsrc.py +++ b/plotly/validators/sunburst/textfont/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/textfont/_family.py b/plotly/validators/sunburst/textfont/_family.py index 824eac9228..198147765f 100644 --- a/plotly/validators/sunburst/textfont/_family.py +++ b/plotly/validators/sunburst/textfont/_family.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/sunburst/textfont/_familysrc.py b/plotly/validators/sunburst/textfont/_familysrc.py index 68f6395e05..1c3c8aaf9e 100644 --- a/plotly/validators/sunburst/textfont/_familysrc.py +++ b/plotly/validators/sunburst/textfont/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/textfont/_lineposition.py b/plotly/validators/sunburst/textfont/_lineposition.py index 431cfe1948..9f0f31ea53 100644 --- a/plotly/validators/sunburst/textfont/_lineposition.py +++ b/plotly/validators/sunburst/textfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/sunburst/textfont/_linepositionsrc.py b/plotly/validators/sunburst/textfont/_linepositionsrc.py index 643d9038e7..6bde6d1cc2 100644 --- a/plotly/validators/sunburst/textfont/_linepositionsrc.py +++ b/plotly/validators/sunburst/textfont/_linepositionsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/textfont/_shadow.py b/plotly/validators/sunburst/textfont/_shadow.py index a6fc5cc334..6d5e8facf3 100644 --- a/plotly/validators/sunburst/textfont/_shadow.py +++ b/plotly/validators/sunburst/textfont/_shadow.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/sunburst/textfont/_shadowsrc.py b/plotly/validators/sunburst/textfont/_shadowsrc.py index 1c4ce5742a..34fc59b5a8 100644 --- a/plotly/validators/sunburst/textfont/_shadowsrc.py +++ b/plotly/validators/sunburst/textfont/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/textfont/_size.py b/plotly/validators/sunburst/textfont/_size.py index 9de566216a..7241342a78 100644 --- a/plotly/validators/sunburst/textfont/_size.py +++ b/plotly/validators/sunburst/textfont/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/sunburst/textfont/_sizesrc.py b/plotly/validators/sunburst/textfont/_sizesrc.py index a905bc4e1a..3628b5aefa 100644 --- a/plotly/validators/sunburst/textfont/_sizesrc.py +++ b/plotly/validators/sunburst/textfont/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/textfont/_style.py b/plotly/validators/sunburst/textfont/_style.py index 03b5bc8eea..c07d45f352 100644 --- a/plotly/validators/sunburst/textfont/_style.py +++ b/plotly/validators/sunburst/textfont/_style.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/sunburst/textfont/_stylesrc.py b/plotly/validators/sunburst/textfont/_stylesrc.py index 37ad923128..c2fddc37f1 100644 --- a/plotly/validators/sunburst/textfont/_stylesrc.py +++ b/plotly/validators/sunburst/textfont/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/textfont/_textcase.py b/plotly/validators/sunburst/textfont/_textcase.py index 5c067a17a3..089d8cfa08 100644 --- a/plotly/validators/sunburst/textfont/_textcase.py +++ b/plotly/validators/sunburst/textfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/sunburst/textfont/_textcasesrc.py b/plotly/validators/sunburst/textfont/_textcasesrc.py index 956e24f6ba..9a97838f76 100644 --- a/plotly/validators/sunburst/textfont/_textcasesrc.py +++ b/plotly/validators/sunburst/textfont/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/textfont/_variant.py b/plotly/validators/sunburst/textfont/_variant.py index e66745c9a1..cf0e0c9dd2 100644 --- a/plotly/validators/sunburst/textfont/_variant.py +++ b/plotly/validators/sunburst/textfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( diff --git a/plotly/validators/sunburst/textfont/_variantsrc.py b/plotly/validators/sunburst/textfont/_variantsrc.py index d18b211b1d..2a0d2735b3 100644 --- a/plotly/validators/sunburst/textfont/_variantsrc.py +++ b/plotly/validators/sunburst/textfont/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/sunburst/textfont/_weight.py b/plotly/validators/sunburst/textfont/_weight.py index 6af8ff1de2..b182655ce5 100644 --- a/plotly/validators/sunburst/textfont/_weight.py +++ b/plotly/validators/sunburst/textfont/_weight.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/sunburst/textfont/_weightsrc.py b/plotly/validators/sunburst/textfont/_weightsrc.py index 58a08ca775..5dc3ecc6b4 100644 --- a/plotly/validators/sunburst/textfont/_weightsrc.py +++ b/plotly/validators/sunburst/textfont/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/surface/__init__.py b/plotly/validators/surface/__init__.py index 40b7043b3f..e8de2a5652 100644 --- a/plotly/validators/surface/__init__.py +++ b/plotly/validators/surface/__init__.py @@ -1,129 +1,67 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zsrc import ZsrcValidator - from ._zhoverformat import ZhoverformatValidator - from ._zcalendar import ZcalendarValidator - from ._z import ZValidator - from ._ysrc import YsrcValidator - from ._yhoverformat import YhoverformatValidator - from ._ycalendar import YcalendarValidator - from ._y import YValidator - from ._xsrc import XsrcValidator - from ._xhoverformat import XhoverformatValidator - from ._xcalendar import XcalendarValidator - from ._x import XValidator - from ._visible import VisibleValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._textsrc import TextsrcValidator - from ._text import TextValidator - from ._surfacecolorsrc import SurfacecolorsrcValidator - from ._surfacecolor import SurfacecolorValidator - from ._stream import StreamValidator - from ._showscale import ShowscaleValidator - from ._showlegend import ShowlegendValidator - from ._scene import SceneValidator - from ._reversescale import ReversescaleValidator - from ._opacityscale import OpacityscaleValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._lightposition import LightpositionValidator - from ._lighting import LightingValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._hidesurface import HidesurfaceValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._contours import ContoursValidator - from ._connectgaps import ConnectgapsValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/surface/_autocolorscale.py b/plotly/validators/surface/_autocolorscale.py index 55d2a95c89..b6ddbdb907 100644 --- a/plotly/validators/surface/_autocolorscale.py +++ b/plotly/validators/surface/_autocolorscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/surface/_cauto.py b/plotly/validators/surface/_cauto.py index c81de2d7d1..c934de32d0 100644 --- a/plotly/validators/surface/_cauto.py +++ b/plotly/validators/surface/_cauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/surface/_cmax.py b/plotly/validators/surface/_cmax.py index b30c134a9e..ed3a83f9c8 100644 --- a/plotly/validators/surface/_cmax.py +++ b/plotly/validators/surface/_cmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/surface/_cmid.py b/plotly/validators/surface/_cmid.py index 1a54a57a3d..30e9eb7302 100644 --- a/plotly/validators/surface/_cmid.py +++ b/plotly/validators/surface/_cmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/surface/_cmin.py b/plotly/validators/surface/_cmin.py index c1aa2e56f4..04dae14547 100644 --- a/plotly/validators/surface/_cmin.py +++ b/plotly/validators/surface/_cmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/surface/_coloraxis.py b/plotly/validators/surface/_coloraxis.py index 715e9b74ea..3fbfff07c0 100644 --- a/plotly/validators/surface/_coloraxis.py +++ b/plotly/validators/surface/_coloraxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/surface/_colorbar.py b/plotly/validators/surface/_colorbar.py index 3c44f0d95a..e4bd6731c7 100644 --- a/plotly/validators/surface/_colorbar.py +++ b/plotly/validators/surface/_colorbar.py @@ -1,278 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/surface/_colorscale.py b/plotly/validators/surface/_colorscale.py index 3e84ea5019..8320a5543c 100644 --- a/plotly/validators/surface/_colorscale.py +++ b/plotly/validators/surface/_colorscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/surface/_connectgaps.py b/plotly/validators/surface/_connectgaps.py index 325f8b5177..4b0228a224 100644 --- a/plotly/validators/surface/_connectgaps.py +++ b/plotly/validators/surface/_connectgaps.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ConnectgapsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/_contours.py b/plotly/validators/surface/_contours.py index 64b9d76500..46aa104fde 100644 --- a/plotly/validators/surface/_contours.py +++ b/plotly/validators/surface/_contours.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ContoursValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/surface/_customdata.py b/plotly/validators/surface/_customdata.py index 927f92ca98..cd15106411 100644 --- a/plotly/validators/surface/_customdata.py +++ b/plotly/validators/surface/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/_customdatasrc.py b/plotly/validators/surface/_customdatasrc.py index 4c155c3ac9..9918be5b7c 100644 --- a/plotly/validators/surface/_customdatasrc.py +++ b/plotly/validators/surface/_customdatasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/surface/_hidesurface.py b/plotly/validators/surface/_hidesurface.py index 843e689b25..df20e9855e 100644 --- a/plotly/validators/surface/_hidesurface.py +++ b/plotly/validators/surface/_hidesurface.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HidesurfaceValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/_hoverinfo.py b/plotly/validators/surface/_hoverinfo.py index 08201b827b..e2210f8cfd 100644 --- a/plotly/validators/surface/_hoverinfo.py +++ b/plotly/validators/surface/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/surface/_hoverinfosrc.py b/plotly/validators/surface/_hoverinfosrc.py index 6151bfce3f..871f72c3dd 100644 --- a/plotly/validators/surface/_hoverinfosrc.py +++ b/plotly/validators/surface/_hoverinfosrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/surface/_hoverlabel.py b/plotly/validators/surface/_hoverlabel.py index ed1443d419..63213d3bf1 100644 --- a/plotly/validators/surface/_hoverlabel.py +++ b/plotly/validators/surface/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/surface/_hovertemplate.py b/plotly/validators/surface/_hovertemplate.py index 01360fe634..35a0174275 100644 --- a/plotly/validators/surface/_hovertemplate.py +++ b/plotly/validators/surface/_hovertemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/surface/_hovertemplatesrc.py b/plotly/validators/surface/_hovertemplatesrc.py index 4c0b9dbd7a..8096b8499b 100644 --- a/plotly/validators/surface/_hovertemplatesrc.py +++ b/plotly/validators/surface/_hovertemplatesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/surface/_hovertext.py b/plotly/validators/surface/_hovertext.py index 6a3924dca8..a12df91fc1 100644 --- a/plotly/validators/surface/_hovertext.py +++ b/plotly/validators/surface/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/surface/_hovertextsrc.py b/plotly/validators/surface/_hovertextsrc.py index fffad20418..d26a1a9036 100644 --- a/plotly/validators/surface/_hovertextsrc.py +++ b/plotly/validators/surface/_hovertextsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/surface/_ids.py b/plotly/validators/surface/_ids.py index 8d262374ca..07f3ccf189 100644 --- a/plotly/validators/surface/_ids.py +++ b/plotly/validators/surface/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/_idssrc.py b/plotly/validators/surface/_idssrc.py index 120219f052..67982019cb 100644 --- a/plotly/validators/surface/_idssrc.py +++ b/plotly/validators/surface/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/surface/_legend.py b/plotly/validators/surface/_legend.py index a115a224a1..7601f169ce 100644 --- a/plotly/validators/surface/_legend.py +++ b/plotly/validators/surface/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/surface/_legendgroup.py b/plotly/validators/surface/_legendgroup.py index cb6a472991..d6eeaf66f2 100644 --- a/plotly/validators/surface/_legendgroup.py +++ b/plotly/validators/surface/_legendgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/surface/_legendgrouptitle.py b/plotly/validators/surface/_legendgrouptitle.py index 755f4a0a0d..ac416f92eb 100644 --- a/plotly/validators/surface/_legendgrouptitle.py +++ b/plotly/validators/surface/_legendgrouptitle.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/surface/_legendrank.py b/plotly/validators/surface/_legendrank.py index e61724aed9..78a57f3cd3 100644 --- a/plotly/validators/surface/_legendrank.py +++ b/plotly/validators/surface/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/surface/_legendwidth.py b/plotly/validators/surface/_legendwidth.py index 378cf94212..05181b5b9b 100644 --- a/plotly/validators/surface/_legendwidth.py +++ b/plotly/validators/surface/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/surface/_lighting.py b/plotly/validators/surface/_lighting.py index 4f23020b13..beb0051b06 100644 --- a/plotly/validators/surface/_lighting.py +++ b/plotly/validators/surface/_lighting.py @@ -1,33 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LightingValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/surface/_lightposition.py b/plotly/validators/surface/_lightposition.py index afe16abe30..83237e18da 100644 --- a/plotly/validators/surface/_lightposition.py +++ b/plotly/validators/surface/_lightposition.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LightpositionValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/surface/_meta.py b/plotly/validators/surface/_meta.py index 49f1f2ab85..7f03adf286 100644 --- a/plotly/validators/surface/_meta.py +++ b/plotly/validators/surface/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/surface/_metasrc.py b/plotly/validators/surface/_metasrc.py index 9c4ac1208a..ed8293e9ed 100644 --- a/plotly/validators/surface/_metasrc.py +++ b/plotly/validators/surface/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/surface/_name.py b/plotly/validators/surface/_name.py index b3187def7c..1efe1a2600 100644 --- a/plotly/validators/surface/_name.py +++ b/plotly/validators/surface/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/surface/_opacity.py b/plotly/validators/surface/_opacity.py index 35c6228dc9..39a480e490 100644 --- a/plotly/validators/surface/_opacity.py +++ b/plotly/validators/surface/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/surface/_opacityscale.py b/plotly/validators/surface/_opacityscale.py index 5da2a11699..a1ce4aa50a 100644 --- a/plotly/validators/surface/_opacityscale.py +++ b/plotly/validators/surface/_opacityscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityscaleValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/_reversescale.py b/plotly/validators/surface/_reversescale.py index bfcb6bb868..7c9b55e7d3 100644 --- a/plotly/validators/surface/_reversescale.py +++ b/plotly/validators/surface/_reversescale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/_scene.py b/plotly/validators/surface/_scene.py index 577b43383f..1014d632bb 100644 --- a/plotly/validators/surface/_scene.py +++ b/plotly/validators/surface/_scene.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SceneValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "scene"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/surface/_showlegend.py b/plotly/validators/surface/_showlegend.py index adb306f49b..c95364d141 100644 --- a/plotly/validators/surface/_showlegend.py +++ b/plotly/validators/surface/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/_showscale.py b/plotly/validators/surface/_showscale.py index 78ed00ab45..5ce26fda29 100644 --- a/plotly/validators/surface/_showscale.py +++ b/plotly/validators/surface/_showscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/_stream.py b/plotly/validators/surface/_stream.py index e430f93c14..eac7717507 100644 --- a/plotly/validators/surface/_stream.py +++ b/plotly/validators/surface/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/surface/_surfacecolor.py b/plotly/validators/surface/_surfacecolor.py index a1fc1c2399..3bfbe650c5 100644 --- a/plotly/validators/surface/_surfacecolor.py +++ b/plotly/validators/surface/_surfacecolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SurfacecolorValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/_surfacecolorsrc.py b/plotly/validators/surface/_surfacecolorsrc.py index 4b32c7921d..e9a283b79d 100644 --- a/plotly/validators/surface/_surfacecolorsrc.py +++ b/plotly/validators/surface/_surfacecolorsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SurfacecolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/surface/_text.py b/plotly/validators/surface/_text.py index 82acec27e5..5868a2cbc1 100644 --- a/plotly/validators/surface/_text.py +++ b/plotly/validators/surface/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/surface/_textsrc.py b/plotly/validators/surface/_textsrc.py index ceb4ad83e3..9daf1d30b4 100644 --- a/plotly/validators/surface/_textsrc.py +++ b/plotly/validators/surface/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/surface/_uid.py b/plotly/validators/surface/_uid.py index cf39253676..841ce2ce63 100644 --- a/plotly/validators/surface/_uid.py +++ b/plotly/validators/surface/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/surface/_uirevision.py b/plotly/validators/surface/_uirevision.py index a73886aec1..742dd65e59 100644 --- a/plotly/validators/surface/_uirevision.py +++ b/plotly/validators/surface/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/surface/_visible.py b/plotly/validators/surface/_visible.py index 195bf46452..c252a1f4a3 100644 --- a/plotly/validators/surface/_visible.py +++ b/plotly/validators/surface/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/surface/_x.py b/plotly/validators/surface/_x.py index 8e0fcca70f..52b576c996 100644 --- a/plotly/validators/surface/_x.py +++ b/plotly/validators/surface/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/surface/_xcalendar.py b/plotly/validators/surface/_xcalendar.py index 6ff4e55627..1bb07487a3 100644 --- a/plotly/validators/surface/_xcalendar.py +++ b/plotly/validators/surface/_xcalendar.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/surface/_xhoverformat.py b/plotly/validators/surface/_xhoverformat.py index 572d0e381d..fbc3e0cab7 100644 --- a/plotly/validators/surface/_xhoverformat.py +++ b/plotly/validators/surface/_xhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/_xsrc.py b/plotly/validators/surface/_xsrc.py index be5d340c63..649b01c972 100644 --- a/plotly/validators/surface/_xsrc.py +++ b/plotly/validators/surface/_xsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/surface/_y.py b/plotly/validators/surface/_y.py index 36b913dc26..784dd30330 100644 --- a/plotly/validators/surface/_y.py +++ b/plotly/validators/surface/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/surface/_ycalendar.py b/plotly/validators/surface/_ycalendar.py index 22cb7e6eec..10d15ecf6a 100644 --- a/plotly/validators/surface/_ycalendar.py +++ b/plotly/validators/surface/_ycalendar.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/surface/_yhoverformat.py b/plotly/validators/surface/_yhoverformat.py index 6dbf2b0b16..b40abbb31e 100644 --- a/plotly/validators/surface/_yhoverformat.py +++ b/plotly/validators/surface/_yhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/_ysrc.py b/plotly/validators/surface/_ysrc.py index 72ccfc7c1d..6c3a4e8b9e 100644 --- a/plotly/validators/surface/_ysrc.py +++ b/plotly/validators/surface/_ysrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/surface/_z.py b/plotly/validators/surface/_z.py index 63e2248577..9902a78e90 100644 --- a/plotly/validators/surface/_z.py +++ b/plotly/validators/surface/_z.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/surface/_zcalendar.py b/plotly/validators/surface/_zcalendar.py index cf8f0cb457..9a0209774e 100644 --- a/plotly/validators/surface/_zcalendar.py +++ b/plotly/validators/surface/_zcalendar.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZcalendarValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/surface/_zhoverformat.py b/plotly/validators/surface/_zhoverformat.py index f391c4dae0..6b1e960114 100644 --- a/plotly/validators/surface/_zhoverformat.py +++ b/plotly/validators/surface/_zhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/_zsrc.py b/plotly/validators/surface/_zsrc.py index 9b3afad8a6..ab43753b13 100644 --- a/plotly/validators/surface/_zsrc.py +++ b/plotly/validators/surface/_zsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/surface/colorbar/__init__.py b/plotly/validators/surface/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/surface/colorbar/__init__.py +++ b/plotly/validators/surface/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/surface/colorbar/_bgcolor.py b/plotly/validators/surface/colorbar/_bgcolor.py index 347b775fc9..1ef59fa1bc 100644 --- a/plotly/validators/surface/colorbar/_bgcolor.py +++ b/plotly/validators/surface/colorbar/_bgcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/colorbar/_bordercolor.py b/plotly/validators/surface/colorbar/_bordercolor.py index 397bcdbd7e..28060b3e50 100644 --- a/plotly/validators/surface/colorbar/_bordercolor.py +++ b/plotly/validators/surface/colorbar/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/colorbar/_borderwidth.py b/plotly/validators/surface/colorbar/_borderwidth.py index df71518269..1dbc6d74e6 100644 --- a/plotly/validators/surface/colorbar/_borderwidth.py +++ b/plotly/validators/surface/colorbar/_borderwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/surface/colorbar/_dtick.py b/plotly/validators/surface/colorbar/_dtick.py index 99f7460026..ab7d8ddabb 100644 --- a/plotly/validators/surface/colorbar/_dtick.py +++ b/plotly/validators/surface/colorbar/_dtick.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/surface/colorbar/_exponentformat.py b/plotly/validators/surface/colorbar/_exponentformat.py index fdda588a3d..99b896b7fd 100644 --- a/plotly/validators/surface/colorbar/_exponentformat.py +++ b/plotly/validators/surface/colorbar/_exponentformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/surface/colorbar/_labelalias.py b/plotly/validators/surface/colorbar/_labelalias.py index fa93a36542..8b89293f5d 100644 --- a/plotly/validators/surface/colorbar/_labelalias.py +++ b/plotly/validators/surface/colorbar/_labelalias.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/colorbar/_len.py b/plotly/validators/surface/colorbar/_len.py index 0e1dec3307..8b6d60dbcc 100644 --- a/plotly/validators/surface/colorbar/_len.py +++ b/plotly/validators/surface/colorbar/_len.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/surface/colorbar/_lenmode.py b/plotly/validators/surface/colorbar/_lenmode.py index 4fa61c9104..81128cc8db 100644 --- a/plotly/validators/surface/colorbar/_lenmode.py +++ b/plotly/validators/surface/colorbar/_lenmode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/surface/colorbar/_minexponent.py b/plotly/validators/surface/colorbar/_minexponent.py index ba247a0b5e..aadcf7f712 100644 --- a/plotly/validators/surface/colorbar/_minexponent.py +++ b/plotly/validators/surface/colorbar/_minexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/surface/colorbar/_nticks.py b/plotly/validators/surface/colorbar/_nticks.py index 3538f4f9cf..b760aa5463 100644 --- a/plotly/validators/surface/colorbar/_nticks.py +++ b/plotly/validators/surface/colorbar/_nticks.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/surface/colorbar/_orientation.py b/plotly/validators/surface/colorbar/_orientation.py index 5cde0fffda..87433ad826 100644 --- a/plotly/validators/surface/colorbar/_orientation.py +++ b/plotly/validators/surface/colorbar/_orientation.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/surface/colorbar/_outlinecolor.py b/plotly/validators/surface/colorbar/_outlinecolor.py index 867c91b9ee..508a573a10 100644 --- a/plotly/validators/surface/colorbar/_outlinecolor.py +++ b/plotly/validators/surface/colorbar/_outlinecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/colorbar/_outlinewidth.py b/plotly/validators/surface/colorbar/_outlinewidth.py index 25237789a4..dbff834359 100644 --- a/plotly/validators/surface/colorbar/_outlinewidth.py +++ b/plotly/validators/surface/colorbar/_outlinewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/surface/colorbar/_separatethousands.py b/plotly/validators/surface/colorbar/_separatethousands.py index b87aaa1ec5..ce4bb5854e 100644 --- a/plotly/validators/surface/colorbar/_separatethousands.py +++ b/plotly/validators/surface/colorbar/_separatethousands.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/colorbar/_showexponent.py b/plotly/validators/surface/colorbar/_showexponent.py index f550e2d130..11fa1b02fe 100644 --- a/plotly/validators/surface/colorbar/_showexponent.py +++ b/plotly/validators/surface/colorbar/_showexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/surface/colorbar/_showticklabels.py b/plotly/validators/surface/colorbar/_showticklabels.py index e390cd3179..4fab62f877 100644 --- a/plotly/validators/surface/colorbar/_showticklabels.py +++ b/plotly/validators/surface/colorbar/_showticklabels.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/colorbar/_showtickprefix.py b/plotly/validators/surface/colorbar/_showtickprefix.py index 6d885d5eb3..1954d23359 100644 --- a/plotly/validators/surface/colorbar/_showtickprefix.py +++ b/plotly/validators/surface/colorbar/_showtickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/surface/colorbar/_showticksuffix.py b/plotly/validators/surface/colorbar/_showticksuffix.py index badcbc1aef..32ad859a82 100644 --- a/plotly/validators/surface/colorbar/_showticksuffix.py +++ b/plotly/validators/surface/colorbar/_showticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/surface/colorbar/_thickness.py b/plotly/validators/surface/colorbar/_thickness.py index d7c3653725..0be3ddcb77 100644 --- a/plotly/validators/surface/colorbar/_thickness.py +++ b/plotly/validators/surface/colorbar/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/surface/colorbar/_thicknessmode.py b/plotly/validators/surface/colorbar/_thicknessmode.py index a22707a503..8f5895fdbd 100644 --- a/plotly/validators/surface/colorbar/_thicknessmode.py +++ b/plotly/validators/surface/colorbar/_thicknessmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/surface/colorbar/_tick0.py b/plotly/validators/surface/colorbar/_tick0.py index 085fba0c26..5bc86a35a2 100644 --- a/plotly/validators/surface/colorbar/_tick0.py +++ b/plotly/validators/surface/colorbar/_tick0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/surface/colorbar/_tickangle.py b/plotly/validators/surface/colorbar/_tickangle.py index 2f42c3b45f..32f41ef3f8 100644 --- a/plotly/validators/surface/colorbar/_tickangle.py +++ b/plotly/validators/surface/colorbar/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/colorbar/_tickcolor.py b/plotly/validators/surface/colorbar/_tickcolor.py index de3e69a30b..081bac9ad4 100644 --- a/plotly/validators/surface/colorbar/_tickcolor.py +++ b/plotly/validators/surface/colorbar/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/colorbar/_tickfont.py b/plotly/validators/surface/colorbar/_tickfont.py index d7b2771886..3be76e73a1 100644 --- a/plotly/validators/surface/colorbar/_tickfont.py +++ b/plotly/validators/surface/colorbar/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/surface/colorbar/_tickformat.py b/plotly/validators/surface/colorbar/_tickformat.py index 0f2bce4c26..99e65d4702 100644 --- a/plotly/validators/surface/colorbar/_tickformat.py +++ b/plotly/validators/surface/colorbar/_tickformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/colorbar/_tickformatstopdefaults.py b/plotly/validators/surface/colorbar/_tickformatstopdefaults.py index fcb062415e..25aaac0dee 100644 --- a/plotly/validators/surface/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/surface/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/surface/colorbar/_tickformatstops.py b/plotly/validators/surface/colorbar/_tickformatstops.py index dc74a0a085..c2da9a7248 100644 --- a/plotly/validators/surface/colorbar/_tickformatstops.py +++ b/plotly/validators/surface/colorbar/_tickformatstops.py @@ -1,50 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/surface/colorbar/_ticklabeloverflow.py b/plotly/validators/surface/colorbar/_ticklabeloverflow.py index 846f99797d..b76c6ce826 100644 --- a/plotly/validators/surface/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/surface/colorbar/_ticklabeloverflow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/surface/colorbar/_ticklabelposition.py b/plotly/validators/surface/colorbar/_ticklabelposition.py index 46adb4d330..d9ca880e4e 100644 --- a/plotly/validators/surface/colorbar/_ticklabelposition.py +++ b/plotly/validators/surface/colorbar/_ticklabelposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/surface/colorbar/_ticklabelstep.py b/plotly/validators/surface/colorbar/_ticklabelstep.py index 5cf8e9ff1e..e9fcdb28c6 100644 --- a/plotly/validators/surface/colorbar/_ticklabelstep.py +++ b/plotly/validators/surface/colorbar/_ticklabelstep.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/surface/colorbar/_ticklen.py b/plotly/validators/surface/colorbar/_ticklen.py index 64473b78cd..496c0d081a 100644 --- a/plotly/validators/surface/colorbar/_ticklen.py +++ b/plotly/validators/surface/colorbar/_ticklen.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/surface/colorbar/_tickmode.py b/plotly/validators/surface/colorbar/_tickmode.py index 5888d00bcd..b72d09ed50 100644 --- a/plotly/validators/surface/colorbar/_tickmode.py +++ b/plotly/validators/surface/colorbar/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/surface/colorbar/_tickprefix.py b/plotly/validators/surface/colorbar/_tickprefix.py index 8b34891075..a926ae6fe1 100644 --- a/plotly/validators/surface/colorbar/_tickprefix.py +++ b/plotly/validators/surface/colorbar/_tickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/colorbar/_ticks.py b/plotly/validators/surface/colorbar/_ticks.py index f7a88a41fe..2f576919d8 100644 --- a/plotly/validators/surface/colorbar/_ticks.py +++ b/plotly/validators/surface/colorbar/_ticks.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/surface/colorbar/_ticksuffix.py b/plotly/validators/surface/colorbar/_ticksuffix.py index 0c22129bf2..809ea4ada2 100644 --- a/plotly/validators/surface/colorbar/_ticksuffix.py +++ b/plotly/validators/surface/colorbar/_ticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/colorbar/_ticktext.py b/plotly/validators/surface/colorbar/_ticktext.py index b549c78cb8..ffd875dfbd 100644 --- a/plotly/validators/surface/colorbar/_ticktext.py +++ b/plotly/validators/surface/colorbar/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/colorbar/_ticktextsrc.py b/plotly/validators/surface/colorbar/_ticktextsrc.py index e710666358..22346c0064 100644 --- a/plotly/validators/surface/colorbar/_ticktextsrc.py +++ b/plotly/validators/surface/colorbar/_ticktextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/surface/colorbar/_tickvals.py b/plotly/validators/surface/colorbar/_tickvals.py index db11e4e965..f6aef71d16 100644 --- a/plotly/validators/surface/colorbar/_tickvals.py +++ b/plotly/validators/surface/colorbar/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/colorbar/_tickvalssrc.py b/plotly/validators/surface/colorbar/_tickvalssrc.py index 44d6f05835..f0c24cac61 100644 --- a/plotly/validators/surface/colorbar/_tickvalssrc.py +++ b/plotly/validators/surface/colorbar/_tickvalssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/surface/colorbar/_tickwidth.py b/plotly/validators/surface/colorbar/_tickwidth.py index dc0d68cfea..85c99571bb 100644 --- a/plotly/validators/surface/colorbar/_tickwidth.py +++ b/plotly/validators/surface/colorbar/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/surface/colorbar/_title.py b/plotly/validators/surface/colorbar/_title.py index c2a8477966..15720146ab 100644 --- a/plotly/validators/surface/colorbar/_title.py +++ b/plotly/validators/surface/colorbar/_title.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/surface/colorbar/_x.py b/plotly/validators/surface/colorbar/_x.py index f2433ba51f..3d4c81ae7a 100644 --- a/plotly/validators/surface/colorbar/_x.py +++ b/plotly/validators/surface/colorbar/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/colorbar/_xanchor.py b/plotly/validators/surface/colorbar/_xanchor.py index dd11663b19..77390c5c96 100644 --- a/plotly/validators/surface/colorbar/_xanchor.py +++ b/plotly/validators/surface/colorbar/_xanchor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/surface/colorbar/_xpad.py b/plotly/validators/surface/colorbar/_xpad.py index 234b9cb0a7..00702ce3d4 100644 --- a/plotly/validators/surface/colorbar/_xpad.py +++ b/plotly/validators/surface/colorbar/_xpad.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/surface/colorbar/_xref.py b/plotly/validators/surface/colorbar/_xref.py index 37310ea18f..48ed3c86ed 100644 --- a/plotly/validators/surface/colorbar/_xref.py +++ b/plotly/validators/surface/colorbar/_xref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/surface/colorbar/_y.py b/plotly/validators/surface/colorbar/_y.py index a61e202d46..b905e8903a 100644 --- a/plotly/validators/surface/colorbar/_y.py +++ b/plotly/validators/surface/colorbar/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/colorbar/_yanchor.py b/plotly/validators/surface/colorbar/_yanchor.py index 4f166ac0a4..e63b5842d0 100644 --- a/plotly/validators/surface/colorbar/_yanchor.py +++ b/plotly/validators/surface/colorbar/_yanchor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/surface/colorbar/_ypad.py b/plotly/validators/surface/colorbar/_ypad.py index 83bcbbf0d1..ce6adfe861 100644 --- a/plotly/validators/surface/colorbar/_ypad.py +++ b/plotly/validators/surface/colorbar/_ypad.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/surface/colorbar/_yref.py b/plotly/validators/surface/colorbar/_yref.py index 7813d9608a..bc14866b07 100644 --- a/plotly/validators/surface/colorbar/_yref.py +++ b/plotly/validators/surface/colorbar/_yref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/surface/colorbar/tickfont/__init__.py b/plotly/validators/surface/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/surface/colorbar/tickfont/__init__.py +++ b/plotly/validators/surface/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/surface/colorbar/tickfont/_color.py b/plotly/validators/surface/colorbar/tickfont/_color.py index d94875ba4e..8c779a6db4 100644 --- a/plotly/validators/surface/colorbar/tickfont/_color.py +++ b/plotly/validators/surface/colorbar/tickfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/colorbar/tickfont/_family.py b/plotly/validators/surface/colorbar/tickfont/_family.py index 339678ab7a..e4f5bb02d3 100644 --- a/plotly/validators/surface/colorbar/tickfont/_family.py +++ b/plotly/validators/surface/colorbar/tickfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/surface/colorbar/tickfont/_lineposition.py b/plotly/validators/surface/colorbar/tickfont/_lineposition.py index 903df46726..915a48cf0c 100644 --- a/plotly/validators/surface/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/surface/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/surface/colorbar/tickfont/_shadow.py b/plotly/validators/surface/colorbar/tickfont/_shadow.py index e897804d22..3026149e9b 100644 --- a/plotly/validators/surface/colorbar/tickfont/_shadow.py +++ b/plotly/validators/surface/colorbar/tickfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/colorbar/tickfont/_size.py b/plotly/validators/surface/colorbar/tickfont/_size.py index 6ae380621c..9aeb3c9c31 100644 --- a/plotly/validators/surface/colorbar/tickfont/_size.py +++ b/plotly/validators/surface/colorbar/tickfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/surface/colorbar/tickfont/_style.py b/plotly/validators/surface/colorbar/tickfont/_style.py index 9e82158e34..87ec7e3a33 100644 --- a/plotly/validators/surface/colorbar/tickfont/_style.py +++ b/plotly/validators/surface/colorbar/tickfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/surface/colorbar/tickfont/_textcase.py b/plotly/validators/surface/colorbar/tickfont/_textcase.py index d2b5d07908..422d51df52 100644 --- a/plotly/validators/surface/colorbar/tickfont/_textcase.py +++ b/plotly/validators/surface/colorbar/tickfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/surface/colorbar/tickfont/_variant.py b/plotly/validators/surface/colorbar/tickfont/_variant.py index 98c0924cd0..1a6b89fce8 100644 --- a/plotly/validators/surface/colorbar/tickfont/_variant.py +++ b/plotly/validators/surface/colorbar/tickfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/surface/colorbar/tickfont/_weight.py b/plotly/validators/surface/colorbar/tickfont/_weight.py index a9f87ea24b..371d7df749 100644 --- a/plotly/validators/surface/colorbar/tickfont/_weight.py +++ b/plotly/validators/surface/colorbar/tickfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/surface/colorbar/tickformatstop/__init__.py b/plotly/validators/surface/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/surface/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/surface/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/surface/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/surface/colorbar/tickformatstop/_dtickrange.py index 0f248ccb24..450ae80520 100644 --- a/plotly/validators/surface/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/surface/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/surface/colorbar/tickformatstop/_enabled.py b/plotly/validators/surface/colorbar/tickformatstop/_enabled.py index 84b62260ad..c19ee101fe 100644 --- a/plotly/validators/surface/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/surface/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/colorbar/tickformatstop/_name.py b/plotly/validators/surface/colorbar/tickformatstop/_name.py index e6b6b6041c..beae6a7350 100644 --- a/plotly/validators/surface/colorbar/tickformatstop/_name.py +++ b/plotly/validators/surface/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/surface/colorbar/tickformatstop/_templateitemname.py index 04942555e7..f6cb81fa77 100644 --- a/plotly/validators/surface/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/surface/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/colorbar/tickformatstop/_value.py b/plotly/validators/surface/colorbar/tickformatstop/_value.py index b1c1157055..3719aa3ae1 100644 --- a/plotly/validators/surface/colorbar/tickformatstop/_value.py +++ b/plotly/validators/surface/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/colorbar/title/__init__.py b/plotly/validators/surface/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/surface/colorbar/title/__init__.py +++ b/plotly/validators/surface/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/surface/colorbar/title/_font.py b/plotly/validators/surface/colorbar/title/_font.py index 645f5975ee..c0d926a150 100644 --- a/plotly/validators/surface/colorbar/title/_font.py +++ b/plotly/validators/surface/colorbar/title/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/surface/colorbar/title/_side.py b/plotly/validators/surface/colorbar/title/_side.py index 214d84670b..ba62946134 100644 --- a/plotly/validators/surface/colorbar/title/_side.py +++ b/plotly/validators/surface/colorbar/title/_side.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/surface/colorbar/title/_text.py b/plotly/validators/surface/colorbar/title/_text.py index 7c7176e55d..48e1c3b7dd 100644 --- a/plotly/validators/surface/colorbar/title/_text.py +++ b/plotly/validators/surface/colorbar/title/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/colorbar/title/font/__init__.py b/plotly/validators/surface/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/surface/colorbar/title/font/__init__.py +++ b/plotly/validators/surface/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/surface/colorbar/title/font/_color.py b/plotly/validators/surface/colorbar/title/font/_color.py index 3c3d1ce8a8..51f782b78b 100644 --- a/plotly/validators/surface/colorbar/title/font/_color.py +++ b/plotly/validators/surface/colorbar/title/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/colorbar/title/font/_family.py b/plotly/validators/surface/colorbar/title/font/_family.py index 12e6ac4b4a..a1ab27fde2 100644 --- a/plotly/validators/surface/colorbar/title/font/_family.py +++ b/plotly/validators/surface/colorbar/title/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/surface/colorbar/title/font/_lineposition.py b/plotly/validators/surface/colorbar/title/font/_lineposition.py index a81df7c10b..b5f87b374b 100644 --- a/plotly/validators/surface/colorbar/title/font/_lineposition.py +++ b/plotly/validators/surface/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/surface/colorbar/title/font/_shadow.py b/plotly/validators/surface/colorbar/title/font/_shadow.py index 78b38bd59e..5d6b77d13d 100644 --- a/plotly/validators/surface/colorbar/title/font/_shadow.py +++ b/plotly/validators/surface/colorbar/title/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/colorbar/title/font/_size.py b/plotly/validators/surface/colorbar/title/font/_size.py index eb8b13fc82..d8a0164676 100644 --- a/plotly/validators/surface/colorbar/title/font/_size.py +++ b/plotly/validators/surface/colorbar/title/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/surface/colorbar/title/font/_style.py b/plotly/validators/surface/colorbar/title/font/_style.py index bce651c0ee..5e3a6f30c1 100644 --- a/plotly/validators/surface/colorbar/title/font/_style.py +++ b/plotly/validators/surface/colorbar/title/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/surface/colorbar/title/font/_textcase.py b/plotly/validators/surface/colorbar/title/font/_textcase.py index 1d27cc91db..872a554c44 100644 --- a/plotly/validators/surface/colorbar/title/font/_textcase.py +++ b/plotly/validators/surface/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/surface/colorbar/title/font/_variant.py b/plotly/validators/surface/colorbar/title/font/_variant.py index 48aa54ec37..b950e32a2f 100644 --- a/plotly/validators/surface/colorbar/title/font/_variant.py +++ b/plotly/validators/surface/colorbar/title/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/surface/colorbar/title/font/_weight.py b/plotly/validators/surface/colorbar/title/font/_weight.py index d7ccd0ac14..f282f51956 100644 --- a/plotly/validators/surface/colorbar/title/font/_weight.py +++ b/plotly/validators/surface/colorbar/title/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/surface/contours/__init__.py b/plotly/validators/surface/contours/__init__.py index 52779f59bc..8c47d2db5f 100644 --- a/plotly/validators/surface/contours/__init__.py +++ b/plotly/validators/surface/contours/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] +) diff --git a/plotly/validators/surface/contours/_x.py b/plotly/validators/surface/contours/_x.py index fc0f918267..3ba1e0b722 100644 --- a/plotly/validators/surface/contours/_x.py +++ b/plotly/validators/surface/contours/_x.py @@ -1,48 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/surface/contours/_y.py b/plotly/validators/surface/contours/_y.py index 55fac81d76..d3e551a821 100644 --- a/plotly/validators/surface/contours/_y.py +++ b/plotly/validators/surface/contours/_y.py @@ -1,48 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/surface/contours/_z.py b/plotly/validators/surface/contours/_z.py index f6fb2eaba4..9f6eb33006 100644 --- a/plotly/validators/surface/contours/_z.py +++ b/plotly/validators/surface/contours/_z.py @@ -1,48 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/surface/contours/x/__init__.py b/plotly/validators/surface/contours/x/__init__.py index 33ec40f709..acb3f03b3a 100644 --- a/plotly/validators/surface/contours/x/__init__.py +++ b/plotly/validators/surface/contours/x/__init__.py @@ -1,35 +1,20 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._width import WidthValidator - from ._usecolormap import UsecolormapValidator - from ._start import StartValidator - from ._size import SizeValidator - from ._show import ShowValidator - from ._project import ProjectValidator - from ._highlightwidth import HighlightwidthValidator - from ._highlightcolor import HighlightcolorValidator - from ._highlight import HighlightValidator - from ._end import EndValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/surface/contours/x/_color.py b/plotly/validators/surface/contours/x/_color.py index 002dc1556d..60399434eb 100644 --- a/plotly/validators/surface/contours/x/_color.py +++ b/plotly/validators/surface/contours/x/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/contours/x/_end.py b/plotly/validators/surface/contours/x/_end.py index 64d54254ca..084be1ced2 100644 --- a/plotly/validators/surface/contours/x/_end.py +++ b/plotly/validators/surface/contours/x/_end.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EndValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/contours/x/_highlight.py b/plotly/validators/surface/contours/x/_highlight.py index 8b512d97ca..01de884496 100644 --- a/plotly/validators/surface/contours/x/_highlight.py +++ b/plotly/validators/surface/contours/x/_highlight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HighlightValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/contours/x/_highlightcolor.py b/plotly/validators/surface/contours/x/_highlightcolor.py index 051a6b8087..85490f0521 100644 --- a/plotly/validators/surface/contours/x/_highlightcolor.py +++ b/plotly/validators/surface/contours/x/_highlightcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HighlightcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/contours/x/_highlightwidth.py b/plotly/validators/surface/contours/x/_highlightwidth.py index b155d79a66..0cf61788e3 100644 --- a/plotly/validators/surface/contours/x/_highlightwidth.py +++ b/plotly/validators/surface/contours/x/_highlightwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HighlightwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 16), min=kwargs.pop("min", 1), diff --git a/plotly/validators/surface/contours/x/_project.py b/plotly/validators/surface/contours/x/_project.py index 3556f084f1..82e37587ea 100644 --- a/plotly/validators/surface/contours/x/_project.py +++ b/plotly/validators/surface/contours/x/_project.py @@ -1,35 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ProjectValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/surface/contours/x/_show.py b/plotly/validators/surface/contours/x/_show.py index a39b7561cf..ae8cca4dd7 100644 --- a/plotly/validators/surface/contours/x/_show.py +++ b/plotly/validators/surface/contours/x/_show.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/contours/x/_size.py b/plotly/validators/surface/contours/x/_size.py index 2cee0c2106..fb2a7c4a96 100644 --- a/plotly/validators/surface/contours/x/_size.py +++ b/plotly/validators/surface/contours/x/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/surface/contours/x/_start.py b/plotly/validators/surface/contours/x/_start.py index 20584c2974..5fc92a221c 100644 --- a/plotly/validators/surface/contours/x/_start.py +++ b/plotly/validators/surface/contours/x/_start.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StartValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/contours/x/_usecolormap.py b/plotly/validators/surface/contours/x/_usecolormap.py index 9fc46fa72f..19bb1bc251 100644 --- a/plotly/validators/surface/contours/x/_usecolormap.py +++ b/plotly/validators/surface/contours/x/_usecolormap.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UsecolormapValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/contours/x/_width.py b/plotly/validators/surface/contours/x/_width.py index c286e20564..7289b045d0 100644 --- a/plotly/validators/surface/contours/x/_width.py +++ b/plotly/validators/surface/contours/x/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 16), min=kwargs.pop("min", 1), diff --git a/plotly/validators/surface/contours/x/project/__init__.py b/plotly/validators/surface/contours/x/project/__init__.py index 52779f59bc..8c47d2db5f 100644 --- a/plotly/validators/surface/contours/x/project/__init__.py +++ b/plotly/validators/surface/contours/x/project/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] +) diff --git a/plotly/validators/surface/contours/x/project/_x.py b/plotly/validators/surface/contours/x/project/_x.py index 78261dc908..2a6d214d27 100644 --- a/plotly/validators/surface/contours/x/project/_x.py +++ b/plotly/validators/surface/contours/x/project/_x.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/contours/x/project/_y.py b/plotly/validators/surface/contours/x/project/_y.py index f07a832172..e2393100db 100644 --- a/plotly/validators/surface/contours/x/project/_y.py +++ b/plotly/validators/surface/contours/x/project/_y.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/contours/x/project/_z.py b/plotly/validators/surface/contours/x/project/_z.py index 672eb35d4f..ac5cf2d272 100644 --- a/plotly/validators/surface/contours/x/project/_z.py +++ b/plotly/validators/surface/contours/x/project/_z.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/contours/y/__init__.py b/plotly/validators/surface/contours/y/__init__.py index 33ec40f709..acb3f03b3a 100644 --- a/plotly/validators/surface/contours/y/__init__.py +++ b/plotly/validators/surface/contours/y/__init__.py @@ -1,35 +1,20 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._width import WidthValidator - from ._usecolormap import UsecolormapValidator - from ._start import StartValidator - from ._size import SizeValidator - from ._show import ShowValidator - from ._project import ProjectValidator - from ._highlightwidth import HighlightwidthValidator - from ._highlightcolor import HighlightcolorValidator - from ._highlight import HighlightValidator - from ._end import EndValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/surface/contours/y/_color.py b/plotly/validators/surface/contours/y/_color.py index fe9b7c44fd..b916afdb13 100644 --- a/plotly/validators/surface/contours/y/_color.py +++ b/plotly/validators/surface/contours/y/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/contours/y/_end.py b/plotly/validators/surface/contours/y/_end.py index 8d5b5dbdbe..6842e34cc6 100644 --- a/plotly/validators/surface/contours/y/_end.py +++ b/plotly/validators/surface/contours/y/_end.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EndValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/contours/y/_highlight.py b/plotly/validators/surface/contours/y/_highlight.py index bebc1cf6c1..fffa5d126a 100644 --- a/plotly/validators/surface/contours/y/_highlight.py +++ b/plotly/validators/surface/contours/y/_highlight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HighlightValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/contours/y/_highlightcolor.py b/plotly/validators/surface/contours/y/_highlightcolor.py index d32aede784..6451773c3b 100644 --- a/plotly/validators/surface/contours/y/_highlightcolor.py +++ b/plotly/validators/surface/contours/y/_highlightcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HighlightcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/contours/y/_highlightwidth.py b/plotly/validators/surface/contours/y/_highlightwidth.py index 8ad526d3e7..9d09f8ecf1 100644 --- a/plotly/validators/surface/contours/y/_highlightwidth.py +++ b/plotly/validators/surface/contours/y/_highlightwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HighlightwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 16), min=kwargs.pop("min", 1), diff --git a/plotly/validators/surface/contours/y/_project.py b/plotly/validators/surface/contours/y/_project.py index e908bc8855..b29abc4af5 100644 --- a/plotly/validators/surface/contours/y/_project.py +++ b/plotly/validators/surface/contours/y/_project.py @@ -1,35 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ProjectValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/surface/contours/y/_show.py b/plotly/validators/surface/contours/y/_show.py index cc9fd3403d..91045fdcd6 100644 --- a/plotly/validators/surface/contours/y/_show.py +++ b/plotly/validators/surface/contours/y/_show.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/contours/y/_size.py b/plotly/validators/surface/contours/y/_size.py index a198eae3bf..8ad89114cc 100644 --- a/plotly/validators/surface/contours/y/_size.py +++ b/plotly/validators/surface/contours/y/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/surface/contours/y/_start.py b/plotly/validators/surface/contours/y/_start.py index d222ddbc63..365c0ceb8d 100644 --- a/plotly/validators/surface/contours/y/_start.py +++ b/plotly/validators/surface/contours/y/_start.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StartValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/contours/y/_usecolormap.py b/plotly/validators/surface/contours/y/_usecolormap.py index e28376b3c6..5870e804a5 100644 --- a/plotly/validators/surface/contours/y/_usecolormap.py +++ b/plotly/validators/surface/contours/y/_usecolormap.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UsecolormapValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/contours/y/_width.py b/plotly/validators/surface/contours/y/_width.py index 7371004e57..91aa74667c 100644 --- a/plotly/validators/surface/contours/y/_width.py +++ b/plotly/validators/surface/contours/y/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 16), min=kwargs.pop("min", 1), diff --git a/plotly/validators/surface/contours/y/project/__init__.py b/plotly/validators/surface/contours/y/project/__init__.py index 52779f59bc..8c47d2db5f 100644 --- a/plotly/validators/surface/contours/y/project/__init__.py +++ b/plotly/validators/surface/contours/y/project/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] +) diff --git a/plotly/validators/surface/contours/y/project/_x.py b/plotly/validators/surface/contours/y/project/_x.py index d56533c2f6..8d3d1b5e4b 100644 --- a/plotly/validators/surface/contours/y/project/_x.py +++ b/plotly/validators/surface/contours/y/project/_x.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/contours/y/project/_y.py b/plotly/validators/surface/contours/y/project/_y.py index 17ba4e3dbd..dc6f2d80fe 100644 --- a/plotly/validators/surface/contours/y/project/_y.py +++ b/plotly/validators/surface/contours/y/project/_y.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/contours/y/project/_z.py b/plotly/validators/surface/contours/y/project/_z.py index 429e4d4e74..560cd7ef52 100644 --- a/plotly/validators/surface/contours/y/project/_z.py +++ b/plotly/validators/surface/contours/y/project/_z.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/contours/z/__init__.py b/plotly/validators/surface/contours/z/__init__.py index 33ec40f709..acb3f03b3a 100644 --- a/plotly/validators/surface/contours/z/__init__.py +++ b/plotly/validators/surface/contours/z/__init__.py @@ -1,35 +1,20 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._width import WidthValidator - from ._usecolormap import UsecolormapValidator - from ._start import StartValidator - from ._size import SizeValidator - from ._show import ShowValidator - from ._project import ProjectValidator - from ._highlightwidth import HighlightwidthValidator - from ._highlightcolor import HighlightcolorValidator - from ._highlight import HighlightValidator - from ._end import EndValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/surface/contours/z/_color.py b/plotly/validators/surface/contours/z/_color.py index 503fb13cde..18d8d15f56 100644 --- a/plotly/validators/surface/contours/z/_color.py +++ b/plotly/validators/surface/contours/z/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/contours/z/_end.py b/plotly/validators/surface/contours/z/_end.py index 8f0eee7939..a019b9d1fe 100644 --- a/plotly/validators/surface/contours/z/_end.py +++ b/plotly/validators/surface/contours/z/_end.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EndValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/contours/z/_highlight.py b/plotly/validators/surface/contours/z/_highlight.py index 607e3a771a..3f23a4812a 100644 --- a/plotly/validators/surface/contours/z/_highlight.py +++ b/plotly/validators/surface/contours/z/_highlight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HighlightValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/contours/z/_highlightcolor.py b/plotly/validators/surface/contours/z/_highlightcolor.py index a78c3b82f6..359a25f94a 100644 --- a/plotly/validators/surface/contours/z/_highlightcolor.py +++ b/plotly/validators/surface/contours/z/_highlightcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HighlightcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/contours/z/_highlightwidth.py b/plotly/validators/surface/contours/z/_highlightwidth.py index c0261d705f..b37fb0d945 100644 --- a/plotly/validators/surface/contours/z/_highlightwidth.py +++ b/plotly/validators/surface/contours/z/_highlightwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HighlightwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 16), min=kwargs.pop("min", 1), diff --git a/plotly/validators/surface/contours/z/_project.py b/plotly/validators/surface/contours/z/_project.py index b009d95f2c..b6586010a2 100644 --- a/plotly/validators/surface/contours/z/_project.py +++ b/plotly/validators/surface/contours/z/_project.py @@ -1,35 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ProjectValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/surface/contours/z/_show.py b/plotly/validators/surface/contours/z/_show.py index 00460b96e0..eb97d154b7 100644 --- a/plotly/validators/surface/contours/z/_show.py +++ b/plotly/validators/surface/contours/z/_show.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/contours/z/_size.py b/plotly/validators/surface/contours/z/_size.py index 4944df31a1..c5127e0a61 100644 --- a/plotly/validators/surface/contours/z/_size.py +++ b/plotly/validators/surface/contours/z/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/surface/contours/z/_start.py b/plotly/validators/surface/contours/z/_start.py index 0c5a3610e8..dcde0c43bc 100644 --- a/plotly/validators/surface/contours/z/_start.py +++ b/plotly/validators/surface/contours/z/_start.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StartValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/contours/z/_usecolormap.py b/plotly/validators/surface/contours/z/_usecolormap.py index 1486dd1c4b..b513cb4686 100644 --- a/plotly/validators/surface/contours/z/_usecolormap.py +++ b/plotly/validators/surface/contours/z/_usecolormap.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UsecolormapValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/contours/z/_width.py b/plotly/validators/surface/contours/z/_width.py index da40cada43..5debf56c59 100644 --- a/plotly/validators/surface/contours/z/_width.py +++ b/plotly/validators/surface/contours/z/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 16), min=kwargs.pop("min", 1), diff --git a/plotly/validators/surface/contours/z/project/__init__.py b/plotly/validators/surface/contours/z/project/__init__.py index 52779f59bc..8c47d2db5f 100644 --- a/plotly/validators/surface/contours/z/project/__init__.py +++ b/plotly/validators/surface/contours/z/project/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] +) diff --git a/plotly/validators/surface/contours/z/project/_x.py b/plotly/validators/surface/contours/z/project/_x.py index 10817247bd..66c478ee8d 100644 --- a/plotly/validators/surface/contours/z/project/_x.py +++ b/plotly/validators/surface/contours/z/project/_x.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/contours/z/project/_y.py b/plotly/validators/surface/contours/z/project/_y.py index 04bdd6db18..29b7f852d9 100644 --- a/plotly/validators/surface/contours/z/project/_y.py +++ b/plotly/validators/surface/contours/z/project/_y.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/contours/z/project/_z.py b/plotly/validators/surface/contours/z/project/_z.py index 6624e0a54c..08ba149954 100644 --- a/plotly/validators/surface/contours/z/project/_z.py +++ b/plotly/validators/surface/contours/z/project/_z.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/surface/hoverlabel/__init__.py b/plotly/validators/surface/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/surface/hoverlabel/__init__.py +++ b/plotly/validators/surface/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/surface/hoverlabel/_align.py b/plotly/validators/surface/hoverlabel/_align.py index 9ebf06ad24..48ebaa5920 100644 --- a/plotly/validators/surface/hoverlabel/_align.py +++ b/plotly/validators/surface/hoverlabel/_align.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/surface/hoverlabel/_alignsrc.py b/plotly/validators/surface/hoverlabel/_alignsrc.py index 73dc56fc66..ad9e7f12b5 100644 --- a/plotly/validators/surface/hoverlabel/_alignsrc.py +++ b/plotly/validators/surface/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/surface/hoverlabel/_bgcolor.py b/plotly/validators/surface/hoverlabel/_bgcolor.py index 0eb08e4f58..62f4f99424 100644 --- a/plotly/validators/surface/hoverlabel/_bgcolor.py +++ b/plotly/validators/surface/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/surface/hoverlabel/_bgcolorsrc.py b/plotly/validators/surface/hoverlabel/_bgcolorsrc.py index 8d92a3197d..01f4918860 100644 --- a/plotly/validators/surface/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/surface/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/surface/hoverlabel/_bordercolor.py b/plotly/validators/surface/hoverlabel/_bordercolor.py index b1cc181344..87648cdb73 100644 --- a/plotly/validators/surface/hoverlabel/_bordercolor.py +++ b/plotly/validators/surface/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/surface/hoverlabel/_bordercolorsrc.py b/plotly/validators/surface/hoverlabel/_bordercolorsrc.py index f2130256b3..bed92a8f9b 100644 --- a/plotly/validators/surface/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/surface/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/surface/hoverlabel/_font.py b/plotly/validators/surface/hoverlabel/_font.py index 3ea601f1d1..f8cf193d24 100644 --- a/plotly/validators/surface/hoverlabel/_font.py +++ b/plotly/validators/surface/hoverlabel/_font.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/surface/hoverlabel/_namelength.py b/plotly/validators/surface/hoverlabel/_namelength.py index 8c31e73cad..6833d1f5fd 100644 --- a/plotly/validators/surface/hoverlabel/_namelength.py +++ b/plotly/validators/surface/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/surface/hoverlabel/_namelengthsrc.py b/plotly/validators/surface/hoverlabel/_namelengthsrc.py index 4986ece4f0..01bb0cf406 100644 --- a/plotly/validators/surface/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/surface/hoverlabel/_namelengthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/surface/hoverlabel/font/__init__.py b/plotly/validators/surface/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/surface/hoverlabel/font/__init__.py +++ b/plotly/validators/surface/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/surface/hoverlabel/font/_color.py b/plotly/validators/surface/hoverlabel/font/_color.py index 5f70ffc3aa..68474db29d 100644 --- a/plotly/validators/surface/hoverlabel/font/_color.py +++ b/plotly/validators/surface/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/surface/hoverlabel/font/_colorsrc.py b/plotly/validators/surface/hoverlabel/font/_colorsrc.py index 8a1dde6a8a..941e5e250d 100644 --- a/plotly/validators/surface/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/surface/hoverlabel/font/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/surface/hoverlabel/font/_family.py b/plotly/validators/surface/hoverlabel/font/_family.py index ddc7097f01..744e444bd3 100644 --- a/plotly/validators/surface/hoverlabel/font/_family.py +++ b/plotly/validators/surface/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/surface/hoverlabel/font/_familysrc.py b/plotly/validators/surface/hoverlabel/font/_familysrc.py index 9692a4ad06..0518e58ada 100644 --- a/plotly/validators/surface/hoverlabel/font/_familysrc.py +++ b/plotly/validators/surface/hoverlabel/font/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/surface/hoverlabel/font/_lineposition.py b/plotly/validators/surface/hoverlabel/font/_lineposition.py index f3b6f34008..f8afbf0220 100644 --- a/plotly/validators/surface/hoverlabel/font/_lineposition.py +++ b/plotly/validators/surface/hoverlabel/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/surface/hoverlabel/font/_linepositionsrc.py b/plotly/validators/surface/hoverlabel/font/_linepositionsrc.py index 9607b5b683..b4c9b81f53 100644 --- a/plotly/validators/surface/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/surface/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/surface/hoverlabel/font/_shadow.py b/plotly/validators/surface/hoverlabel/font/_shadow.py index 93645f9b13..758c19fc14 100644 --- a/plotly/validators/surface/hoverlabel/font/_shadow.py +++ b/plotly/validators/surface/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/surface/hoverlabel/font/_shadowsrc.py b/plotly/validators/surface/hoverlabel/font/_shadowsrc.py index da928bc941..49712a0462 100644 --- a/plotly/validators/surface/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/surface/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/surface/hoverlabel/font/_size.py b/plotly/validators/surface/hoverlabel/font/_size.py index 37db804cd4..443fa291c8 100644 --- a/plotly/validators/surface/hoverlabel/font/_size.py +++ b/plotly/validators/surface/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/surface/hoverlabel/font/_sizesrc.py b/plotly/validators/surface/hoverlabel/font/_sizesrc.py index ab277d81b2..ac975d8e80 100644 --- a/plotly/validators/surface/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/surface/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/surface/hoverlabel/font/_style.py b/plotly/validators/surface/hoverlabel/font/_style.py index 929677faad..f7db5bcc39 100644 --- a/plotly/validators/surface/hoverlabel/font/_style.py +++ b/plotly/validators/surface/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/surface/hoverlabel/font/_stylesrc.py b/plotly/validators/surface/hoverlabel/font/_stylesrc.py index 4c786bb71d..c8e40c6fd3 100644 --- a/plotly/validators/surface/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/surface/hoverlabel/font/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/surface/hoverlabel/font/_textcase.py b/plotly/validators/surface/hoverlabel/font/_textcase.py index 7ed30753ac..9f028375c7 100644 --- a/plotly/validators/surface/hoverlabel/font/_textcase.py +++ b/plotly/validators/surface/hoverlabel/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/surface/hoverlabel/font/_textcasesrc.py b/plotly/validators/surface/hoverlabel/font/_textcasesrc.py index 67078c6a50..65e557ad4a 100644 --- a/plotly/validators/surface/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/surface/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/surface/hoverlabel/font/_variant.py b/plotly/validators/surface/hoverlabel/font/_variant.py index 622951225a..63cfa4a732 100644 --- a/plotly/validators/surface/hoverlabel/font/_variant.py +++ b/plotly/validators/surface/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/surface/hoverlabel/font/_variantsrc.py b/plotly/validators/surface/hoverlabel/font/_variantsrc.py index 2c85217f26..cef822eca8 100644 --- a/plotly/validators/surface/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/surface/hoverlabel/font/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/surface/hoverlabel/font/_weight.py b/plotly/validators/surface/hoverlabel/font/_weight.py index bc3cc2c751..36f0a076f6 100644 --- a/plotly/validators/surface/hoverlabel/font/_weight.py +++ b/plotly/validators/surface/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/surface/hoverlabel/font/_weightsrc.py b/plotly/validators/surface/hoverlabel/font/_weightsrc.py index 21e71021fc..34e849f5a3 100644 --- a/plotly/validators/surface/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/surface/hoverlabel/font/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/surface/legendgrouptitle/__init__.py b/plotly/validators/surface/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/surface/legendgrouptitle/__init__.py +++ b/plotly/validators/surface/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/surface/legendgrouptitle/_font.py b/plotly/validators/surface/legendgrouptitle/_font.py index 33091b7e8a..bae071882b 100644 --- a/plotly/validators/surface/legendgrouptitle/_font.py +++ b/plotly/validators/surface/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/surface/legendgrouptitle/_text.py b/plotly/validators/surface/legendgrouptitle/_text.py index b96eb50a20..687d30bddb 100644 --- a/plotly/validators/surface/legendgrouptitle/_text.py +++ b/plotly/validators/surface/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/surface/legendgrouptitle/font/__init__.py b/plotly/validators/surface/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/surface/legendgrouptitle/font/__init__.py +++ b/plotly/validators/surface/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/surface/legendgrouptitle/font/_color.py b/plotly/validators/surface/legendgrouptitle/font/_color.py index 486e451f60..9082fb51bd 100644 --- a/plotly/validators/surface/legendgrouptitle/font/_color.py +++ b/plotly/validators/surface/legendgrouptitle/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/surface/legendgrouptitle/font/_family.py b/plotly/validators/surface/legendgrouptitle/font/_family.py index 0f0329363d..b8ae4a2311 100644 --- a/plotly/validators/surface/legendgrouptitle/font/_family.py +++ b/plotly/validators/surface/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/surface/legendgrouptitle/font/_lineposition.py b/plotly/validators/surface/legendgrouptitle/font/_lineposition.py index 56258b9c5a..7ebee5cd3a 100644 --- a/plotly/validators/surface/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/surface/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/surface/legendgrouptitle/font/_shadow.py b/plotly/validators/surface/legendgrouptitle/font/_shadow.py index 3f8e4ed0e5..b41c13fbd9 100644 --- a/plotly/validators/surface/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/surface/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/surface/legendgrouptitle/font/_size.py b/plotly/validators/surface/legendgrouptitle/font/_size.py index 7fd39e739a..0ac5095c94 100644 --- a/plotly/validators/surface/legendgrouptitle/font/_size.py +++ b/plotly/validators/surface/legendgrouptitle/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/surface/legendgrouptitle/font/_style.py b/plotly/validators/surface/legendgrouptitle/font/_style.py index 6b8b863f57..40a827f31b 100644 --- a/plotly/validators/surface/legendgrouptitle/font/_style.py +++ b/plotly/validators/surface/legendgrouptitle/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/surface/legendgrouptitle/font/_textcase.py b/plotly/validators/surface/legendgrouptitle/font/_textcase.py index 4d6491fe7f..0f7936fe10 100644 --- a/plotly/validators/surface/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/surface/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/surface/legendgrouptitle/font/_variant.py b/plotly/validators/surface/legendgrouptitle/font/_variant.py index 4b2c0b3d69..850cc31bb9 100644 --- a/plotly/validators/surface/legendgrouptitle/font/_variant.py +++ b/plotly/validators/surface/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/surface/legendgrouptitle/font/_weight.py b/plotly/validators/surface/legendgrouptitle/font/_weight.py index 1348b1f9a9..9b491bc836 100644 --- a/plotly/validators/surface/legendgrouptitle/font/_weight.py +++ b/plotly/validators/surface/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/surface/lighting/__init__.py b/plotly/validators/surface/lighting/__init__.py index 4b1f88d495..b45310f05d 100644 --- a/plotly/validators/surface/lighting/__init__.py +++ b/plotly/validators/surface/lighting/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._specular import SpecularValidator - from ._roughness import RoughnessValidator - from ._fresnel import FresnelValidator - from ._diffuse import DiffuseValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._specular.SpecularValidator", + "._roughness.RoughnessValidator", + "._fresnel.FresnelValidator", + "._diffuse.DiffuseValidator", + "._ambient.AmbientValidator", + ], +) diff --git a/plotly/validators/surface/lighting/_ambient.py b/plotly/validators/surface/lighting/_ambient.py index 5e75d71b58..7b2a32b72c 100644 --- a/plotly/validators/surface/lighting/_ambient.py +++ b/plotly/validators/surface/lighting/_ambient.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AmbientValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/surface/lighting/_diffuse.py b/plotly/validators/surface/lighting/_diffuse.py index 0ffec526cc..ada7782181 100644 --- a/plotly/validators/surface/lighting/_diffuse.py +++ b/plotly/validators/surface/lighting/_diffuse.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DiffuseValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/surface/lighting/_fresnel.py b/plotly/validators/surface/lighting/_fresnel.py index 13b7a78cd9..00e91c473a 100644 --- a/plotly/validators/surface/lighting/_fresnel.py +++ b/plotly/validators/surface/lighting/_fresnel.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FresnelValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 5), min=kwargs.pop("min", 0), diff --git a/plotly/validators/surface/lighting/_roughness.py b/plotly/validators/surface/lighting/_roughness.py index 71e6ab35e0..ec26f59854 100644 --- a/plotly/validators/surface/lighting/_roughness.py +++ b/plotly/validators/surface/lighting/_roughness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RoughnessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/surface/lighting/_specular.py b/plotly/validators/surface/lighting/_specular.py index ed5b3a4501..b5d711c463 100644 --- a/plotly/validators/surface/lighting/_specular.py +++ b/plotly/validators/surface/lighting/_specular.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SpecularValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 2), min=kwargs.pop("min", 0), diff --git a/plotly/validators/surface/lightposition/__init__.py b/plotly/validators/surface/lightposition/__init__.py index 52779f59bc..8c47d2db5f 100644 --- a/plotly/validators/surface/lightposition/__init__.py +++ b/plotly/validators/surface/lightposition/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] +) diff --git a/plotly/validators/surface/lightposition/_x.py b/plotly/validators/surface/lightposition/_x.py index 4687347dab..eced073e11 100644 --- a/plotly/validators/surface/lightposition/_x.py +++ b/plotly/validators/surface/lightposition/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 100000), min=kwargs.pop("min", -100000), diff --git a/plotly/validators/surface/lightposition/_y.py b/plotly/validators/surface/lightposition/_y.py index 4483bdfa35..c9b8d1f4f7 100644 --- a/plotly/validators/surface/lightposition/_y.py +++ b/plotly/validators/surface/lightposition/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 100000), min=kwargs.pop("min", -100000), diff --git a/plotly/validators/surface/lightposition/_z.py b/plotly/validators/surface/lightposition/_z.py index 3ac43ff185..69b36d026c 100644 --- a/plotly/validators/surface/lightposition/_z.py +++ b/plotly/validators/surface/lightposition/_z.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 100000), min=kwargs.pop("min", -100000), diff --git a/plotly/validators/surface/stream/__init__.py b/plotly/validators/surface/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/surface/stream/__init__.py +++ b/plotly/validators/surface/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/surface/stream/_maxpoints.py b/plotly/validators/surface/stream/_maxpoints.py index 30586cc2ad..33e2b81355 100644 --- a/plotly/validators/surface/stream/_maxpoints.py +++ b/plotly/validators/surface/stream/_maxpoints.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/surface/stream/_token.py b/plotly/validators/surface/stream/_token.py index cf9ac25d0d..1573827483 100644 --- a/plotly/validators/surface/stream/_token.py +++ b/plotly/validators/surface/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/table/__init__.py b/plotly/validators/table/__init__.py index 7889805704..587fb4fab6 100644 --- a/plotly/validators/table/__init__.py +++ b/plotly/validators/table/__init__.py @@ -1,63 +1,34 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._visible import VisibleValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._stream import StreamValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legend import LegendValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._header import HeaderValidator - from ._domain import DomainValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._columnwidthsrc import ColumnwidthsrcValidator - from ._columnwidth import ColumnwidthValidator - from ._columnordersrc import ColumnordersrcValidator - from ._columnorder import ColumnorderValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/table/_cells.py b/plotly/validators/table/_cells.py index d10e321b87..c106cb5a5a 100644 --- a/plotly/validators/table/_cells.py +++ b/plotly/validators/table/_cells.py @@ -1,64 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CellsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/table/_columnorder.py b/plotly/validators/table/_columnorder.py index d8bb272d04..f4b4f2b861 100644 --- a/plotly/validators/table/_columnorder.py +++ b/plotly/validators/table/_columnorder.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColumnorderValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/table/_columnordersrc.py b/plotly/validators/table/_columnordersrc.py index a587f90037..55527325a7 100644 --- a/plotly/validators/table/_columnordersrc.py +++ b/plotly/validators/table/_columnordersrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColumnordersrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/_columnwidth.py b/plotly/validators/table/_columnwidth.py index 1b6613ef47..a838500747 100644 --- a/plotly/validators/table/_columnwidth.py +++ b/plotly/validators/table/_columnwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColumnwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/table/_columnwidthsrc.py b/plotly/validators/table/_columnwidthsrc.py index 7e5ab66159..e0bc3c5c49 100644 --- a/plotly/validators/table/_columnwidthsrc.py +++ b/plotly/validators/table/_columnwidthsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColumnwidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/_customdata.py b/plotly/validators/table/_customdata.py index 4134afcb64..71339e60bd 100644 --- a/plotly/validators/table/_customdata.py +++ b/plotly/validators/table/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/table/_customdatasrc.py b/plotly/validators/table/_customdatasrc.py index 885523ec26..d074f87447 100644 --- a/plotly/validators/table/_customdatasrc.py +++ b/plotly/validators/table/_customdatasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/_domain.py b/plotly/validators/table/_domain.py index b6f7ae0df0..d3ef7bbdd5 100644 --- a/plotly/validators/table/_domain.py +++ b/plotly/validators/table/_domain.py @@ -1,27 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/table/_header.py b/plotly/validators/table/_header.py index c770173340..cae89f59d8 100644 --- a/plotly/validators/table/_header.py +++ b/plotly/validators/table/_header.py @@ -1,64 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HeaderValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/table/_hoverinfo.py b/plotly/validators/table/_hoverinfo.py index d9ce649c20..0874529153 100644 --- a/plotly/validators/table/_hoverinfo.py +++ b/plotly/validators/table/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/table/_hoverinfosrc.py b/plotly/validators/table/_hoverinfosrc.py index bbf2a457af..cb40c0a36b 100644 --- a/plotly/validators/table/_hoverinfosrc.py +++ b/plotly/validators/table/_hoverinfosrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/_hoverlabel.py b/plotly/validators/table/_hoverlabel.py index 91bd52b527..0063581bc4 100644 --- a/plotly/validators/table/_hoverlabel.py +++ b/plotly/validators/table/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/table/_ids.py b/plotly/validators/table/_ids.py index 1c1e35af4f..98d4665c52 100644 --- a/plotly/validators/table/_ids.py +++ b/plotly/validators/table/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/table/_idssrc.py b/plotly/validators/table/_idssrc.py index 4cf3a58534..e26c78a4ab 100644 --- a/plotly/validators/table/_idssrc.py +++ b/plotly/validators/table/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/_legend.py b/plotly/validators/table/_legend.py index 4f520f8c5f..764715880f 100644 --- a/plotly/validators/table/_legend.py +++ b/plotly/validators/table/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/table/_legendgrouptitle.py b/plotly/validators/table/_legendgrouptitle.py index 3cff9a2b5a..5a37715cef 100644 --- a/plotly/validators/table/_legendgrouptitle.py +++ b/plotly/validators/table/_legendgrouptitle.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/table/_legendrank.py b/plotly/validators/table/_legendrank.py index cdc05d6610..0e0d40cf7a 100644 --- a/plotly/validators/table/_legendrank.py +++ b/plotly/validators/table/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/table/_legendwidth.py b/plotly/validators/table/_legendwidth.py index 05d4aa6a48..b5cba35a87 100644 --- a/plotly/validators/table/_legendwidth.py +++ b/plotly/validators/table/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/table/_meta.py b/plotly/validators/table/_meta.py index cf96295102..584451ae73 100644 --- a/plotly/validators/table/_meta.py +++ b/plotly/validators/table/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/table/_metasrc.py b/plotly/validators/table/_metasrc.py index 351b170042..bef1b1660c 100644 --- a/plotly/validators/table/_metasrc.py +++ b/plotly/validators/table/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/_name.py b/plotly/validators/table/_name.py index 2dbd45d6c7..ae0a2538ab 100644 --- a/plotly/validators/table/_name.py +++ b/plotly/validators/table/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/table/_stream.py b/plotly/validators/table/_stream.py index baf66dfefd..4676d850c2 100644 --- a/plotly/validators/table/_stream.py +++ b/plotly/validators/table/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/table/_uid.py b/plotly/validators/table/_uid.py index b9e7ad15ef..6bc44a5fed 100644 --- a/plotly/validators/table/_uid.py +++ b/plotly/validators/table/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/table/_uirevision.py b/plotly/validators/table/_uirevision.py index f3130e2fab..b7a1370eac 100644 --- a/plotly/validators/table/_uirevision.py +++ b/plotly/validators/table/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/_visible.py b/plotly/validators/table/_visible.py index 052383310d..4ec82d9dfd 100644 --- a/plotly/validators/table/_visible.py +++ b/plotly/validators/table/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/table/cells/__init__.py b/plotly/validators/table/cells/__init__.py index ee416ebc74..5c655b3ec7 100644 --- a/plotly/validators/table/cells/__init__.py +++ b/plotly/validators/table/cells/__init__.py @@ -1,41 +1,23 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._valuessrc import ValuessrcValidator - from ._values import ValuesValidator - from ._suffixsrc import SuffixsrcValidator - from ._suffix import SuffixValidator - from ._prefixsrc import PrefixsrcValidator - from ._prefix import PrefixValidator - from ._line import LineValidator - from ._height import HeightValidator - from ._formatsrc import FormatsrcValidator - from ._format import FormatValidator - from ._font import FontValidator - from ._fill import FillValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/table/cells/_align.py b/plotly/validators/table/cells/_align.py index b308ee1aa8..7f5efcf61a 100644 --- a/plotly/validators/table/cells/_align.py +++ b/plotly/validators/table/cells/_align.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["left", "center", "right"]), diff --git a/plotly/validators/table/cells/_alignsrc.py b/plotly/validators/table/cells/_alignsrc.py index 6d1aaaad79..92a3917d13 100644 --- a/plotly/validators/table/cells/_alignsrc.py +++ b/plotly/validators/table/cells/_alignsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/cells/_fill.py b/plotly/validators/table/cells/_fill.py index a920b6da1e..389999bc5f 100644 --- a/plotly/validators/table/cells/_fill.py +++ b/plotly/validators/table/cells/_fill.py @@ -1,22 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/table/cells/_font.py b/plotly/validators/table/cells/_font.py index d14f5db38d..a9b84a7196 100644 --- a/plotly/validators/table/cells/_font.py +++ b/plotly/validators/table/cells/_font.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/table/cells/_format.py b/plotly/validators/table/cells/_format.py index 8bef0b48e2..ffb5cb4fd5 100644 --- a/plotly/validators/table/cells/_format.py +++ b/plotly/validators/table/cells/_format.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FormatValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/table/cells/_formatsrc.py b/plotly/validators/table/cells/_formatsrc.py index 392c1be551..9e84ef029f 100644 --- a/plotly/validators/table/cells/_formatsrc.py +++ b/plotly/validators/table/cells/_formatsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FormatsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/cells/_height.py b/plotly/validators/table/cells/_height.py index 1fa6451b95..8d0205caea 100644 --- a/plotly/validators/table/cells/_height.py +++ b/plotly/validators/table/cells/_height.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HeightValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/table/cells/_line.py b/plotly/validators/table/cells/_line.py index 8b6ee12b62..6a5821f064 100644 --- a/plotly/validators/table/cells/_line.py +++ b/plotly/validators/table/cells/_line.py @@ -1,25 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( "data_docs", """ - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - width - - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. """, ), **kwargs, diff --git a/plotly/validators/table/cells/_prefix.py b/plotly/validators/table/cells/_prefix.py index 89717a324e..4a1780efdf 100644 --- a/plotly/validators/table/cells/_prefix.py +++ b/plotly/validators/table/cells/_prefix.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PrefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/table/cells/_prefixsrc.py b/plotly/validators/table/cells/_prefixsrc.py index 40f2e263b7..97f3cefd01 100644 --- a/plotly/validators/table/cells/_prefixsrc.py +++ b/plotly/validators/table/cells/_prefixsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PrefixsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/cells/_suffix.py b/plotly/validators/table/cells/_suffix.py index f16451e849..9284936beb 100644 --- a/plotly/validators/table/cells/_suffix.py +++ b/plotly/validators/table/cells/_suffix.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/table/cells/_suffixsrc.py b/plotly/validators/table/cells/_suffixsrc.py index 8ecd8c61e5..ed717b8a5f 100644 --- a/plotly/validators/table/cells/_suffixsrc.py +++ b/plotly/validators/table/cells/_suffixsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SuffixsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/cells/_values.py b/plotly/validators/table/cells/_values.py index f6f78ee5f1..8757df5762 100644 --- a/plotly/validators/table/cells/_values.py +++ b/plotly/validators/table/cells/_values.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValuesValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/table/cells/_valuessrc.py b/plotly/validators/table/cells/_valuessrc.py index a8952102fd..28973f40a3 100644 --- a/plotly/validators/table/cells/_valuessrc.py +++ b/plotly/validators/table/cells/_valuessrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValuessrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/cells/fill/__init__.py b/plotly/validators/table/cells/fill/__init__.py index 4ca11d9882..8cd95cefa3 100644 --- a/plotly/validators/table/cells/fill/__init__.py +++ b/plotly/validators/table/cells/fill/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._colorsrc.ColorsrcValidator", "._color.ColorValidator"] +) diff --git a/plotly/validators/table/cells/fill/_color.py b/plotly/validators/table/cells/fill/_color.py index 962490f29c..2595f7eafb 100644 --- a/plotly/validators/table/cells/fill/_color.py +++ b/plotly/validators/table/cells/fill/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/table/cells/fill/_colorsrc.py b/plotly/validators/table/cells/fill/_colorsrc.py index d25afc1a1b..ff23144de4 100644 --- a/plotly/validators/table/cells/fill/_colorsrc.py +++ b/plotly/validators/table/cells/fill/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/cells/font/__init__.py b/plotly/validators/table/cells/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/table/cells/font/__init__.py +++ b/plotly/validators/table/cells/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/table/cells/font/_color.py b/plotly/validators/table/cells/font/_color.py index a50ae569f0..94b2efcc35 100644 --- a/plotly/validators/table/cells/font/_color.py +++ b/plotly/validators/table/cells/font/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/table/cells/font/_colorsrc.py b/plotly/validators/table/cells/font/_colorsrc.py index 024189dd00..697a9c05ed 100644 --- a/plotly/validators/table/cells/font/_colorsrc.py +++ b/plotly/validators/table/cells/font/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/cells/font/_family.py b/plotly/validators/table/cells/font/_family.py index 8ba12c83d8..5dddb1610c 100644 --- a/plotly/validators/table/cells/font/_family.py +++ b/plotly/validators/table/cells/font/_family.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/table/cells/font/_familysrc.py b/plotly/validators/table/cells/font/_familysrc.py index e797c33dd4..6bb98b39bb 100644 --- a/plotly/validators/table/cells/font/_familysrc.py +++ b/plotly/validators/table/cells/font/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/cells/font/_lineposition.py b/plotly/validators/table/cells/font/_lineposition.py index 104fec7d27..f319dfd6c9 100644 --- a/plotly/validators/table/cells/font/_lineposition.py +++ b/plotly/validators/table/cells/font/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/table/cells/font/_linepositionsrc.py b/plotly/validators/table/cells/font/_linepositionsrc.py index ae4b47fb29..d13ecfc73f 100644 --- a/plotly/validators/table/cells/font/_linepositionsrc.py +++ b/plotly/validators/table/cells/font/_linepositionsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/cells/font/_shadow.py b/plotly/validators/table/cells/font/_shadow.py index 96e4bd524b..07ff27c508 100644 --- a/plotly/validators/table/cells/font/_shadow.py +++ b/plotly/validators/table/cells/font/_shadow.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/table/cells/font/_shadowsrc.py b/plotly/validators/table/cells/font/_shadowsrc.py index 7129742835..7aecf5d3ff 100644 --- a/plotly/validators/table/cells/font/_shadowsrc.py +++ b/plotly/validators/table/cells/font/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/cells/font/_size.py b/plotly/validators/table/cells/font/_size.py index 2a30886b39..24db94a7c1 100644 --- a/plotly/validators/table/cells/font/_size.py +++ b/plotly/validators/table/cells/font/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/table/cells/font/_sizesrc.py b/plotly/validators/table/cells/font/_sizesrc.py index d7293d0b01..e8c2f65dbf 100644 --- a/plotly/validators/table/cells/font/_sizesrc.py +++ b/plotly/validators/table/cells/font/_sizesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/cells/font/_style.py b/plotly/validators/table/cells/font/_style.py index 041da23bb2..0f97e0d359 100644 --- a/plotly/validators/table/cells/font/_style.py +++ b/plotly/validators/table/cells/font/_style.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/table/cells/font/_stylesrc.py b/plotly/validators/table/cells/font/_stylesrc.py index a96f133e1a..5c15397f1e 100644 --- a/plotly/validators/table/cells/font/_stylesrc.py +++ b/plotly/validators/table/cells/font/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/cells/font/_textcase.py b/plotly/validators/table/cells/font/_textcase.py index d6dfda9532..cf46f8cdc7 100644 --- a/plotly/validators/table/cells/font/_textcase.py +++ b/plotly/validators/table/cells/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/table/cells/font/_textcasesrc.py b/plotly/validators/table/cells/font/_textcasesrc.py index 93a17496f2..3d86fec385 100644 --- a/plotly/validators/table/cells/font/_textcasesrc.py +++ b/plotly/validators/table/cells/font/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/cells/font/_variant.py b/plotly/validators/table/cells/font/_variant.py index 78a36f3cb6..7cb3a42761 100644 --- a/plotly/validators/table/cells/font/_variant.py +++ b/plotly/validators/table/cells/font/_variant.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( diff --git a/plotly/validators/table/cells/font/_variantsrc.py b/plotly/validators/table/cells/font/_variantsrc.py index f01f825711..1a94e46182 100644 --- a/plotly/validators/table/cells/font/_variantsrc.py +++ b/plotly/validators/table/cells/font/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/cells/font/_weight.py b/plotly/validators/table/cells/font/_weight.py index e33f086352..f57b8edccb 100644 --- a/plotly/validators/table/cells/font/_weight.py +++ b/plotly/validators/table/cells/font/_weight.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/table/cells/font/_weightsrc.py b/plotly/validators/table/cells/font/_weightsrc.py index 9384af94bd..314544bee3 100644 --- a/plotly/validators/table/cells/font/_weightsrc.py +++ b/plotly/validators/table/cells/font/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/cells/line/__init__.py b/plotly/validators/table/cells/line/__init__.py index a2b9e1ae50..ca6d32f725 100644 --- a/plotly/validators/table/cells/line/__init__.py +++ b/plotly/validators/table/cells/line/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._widthsrc import WidthsrcValidator - from ._width import WidthValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._widthsrc.WidthsrcValidator", + "._width.WidthValidator", + "._colorsrc.ColorsrcValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/table/cells/line/_color.py b/plotly/validators/table/cells/line/_color.py index a6d3742eb3..2ef1d89bf4 100644 --- a/plotly/validators/table/cells/line/_color.py +++ b/plotly/validators/table/cells/line/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/table/cells/line/_colorsrc.py b/plotly/validators/table/cells/line/_colorsrc.py index c5b5fa2dae..a5d096aaef 100644 --- a/plotly/validators/table/cells/line/_colorsrc.py +++ b/plotly/validators/table/cells/line/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/cells/line/_width.py b/plotly/validators/table/cells/line/_width.py index 91eb7283d8..22e3b608bf 100644 --- a/plotly/validators/table/cells/line/_width.py +++ b/plotly/validators/table/cells/line/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/table/cells/line/_widthsrc.py b/plotly/validators/table/cells/line/_widthsrc.py index 9b5a8f49be..896e80086a 100644 --- a/plotly/validators/table/cells/line/_widthsrc.py +++ b/plotly/validators/table/cells/line/_widthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/domain/__init__.py b/plotly/validators/table/domain/__init__.py index 67de5030d0..42827f1d1e 100644 --- a/plotly/validators/table/domain/__init__.py +++ b/plotly/validators/table/domain/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._y import YValidator - from ._x import XValidator - from ._row import RowValidator - from ._column import ColumnValidator -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [], - [ - "._y.YValidator", - "._x.XValidator", - "._row.RowValidator", - "._column.ColumnValidator", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._y.YValidator", + "._x.XValidator", + "._row.RowValidator", + "._column.ColumnValidator", + ], +) diff --git a/plotly/validators/table/domain/_column.py b/plotly/validators/table/domain/_column.py index 156d700b3b..4d2403c0f1 100644 --- a/plotly/validators/table/domain/_column.py +++ b/plotly/validators/table/domain/_column.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/table/domain/_row.py b/plotly/validators/table/domain/_row.py index da82ffd2b6..e02de04718 100644 --- a/plotly/validators/table/domain/_row.py +++ b/plotly/validators/table/domain/_row.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RowValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/table/domain/_x.py b/plotly/validators/table/domain/_x.py index 52e6b1ca54..34b7b4199e 100644 --- a/plotly/validators/table/domain/_x.py +++ b/plotly/validators/table/domain/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/table/domain/_y.py b/plotly/validators/table/domain/_y.py index 63b7b7efb2..15fb74b13e 100644 --- a/plotly/validators/table/domain/_y.py +++ b/plotly/validators/table/domain/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/table/header/__init__.py b/plotly/validators/table/header/__init__.py index ee416ebc74..5c655b3ec7 100644 --- a/plotly/validators/table/header/__init__.py +++ b/plotly/validators/table/header/__init__.py @@ -1,41 +1,23 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._valuessrc import ValuessrcValidator - from ._values import ValuesValidator - from ._suffixsrc import SuffixsrcValidator - from ._suffix import SuffixValidator - from ._prefixsrc import PrefixsrcValidator - from ._prefix import PrefixValidator - from ._line import LineValidator - from ._height import HeightValidator - from ._formatsrc import FormatsrcValidator - from ._format import FormatValidator - from ._font import FontValidator - from ._fill import FillValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/table/header/_align.py b/plotly/validators/table/header/_align.py index 2af19d99cc..b4f3dc3a3c 100644 --- a/plotly/validators/table/header/_align.py +++ b/plotly/validators/table/header/_align.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["left", "center", "right"]), diff --git a/plotly/validators/table/header/_alignsrc.py b/plotly/validators/table/header/_alignsrc.py index a9c3bc2a2f..f320245571 100644 --- a/plotly/validators/table/header/_alignsrc.py +++ b/plotly/validators/table/header/_alignsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/header/_fill.py b/plotly/validators/table/header/_fill.py index 6915fff645..1adccf0f38 100644 --- a/plotly/validators/table/header/_fill.py +++ b/plotly/validators/table/header/_fill.py @@ -1,22 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/table/header/_font.py b/plotly/validators/table/header/_font.py index fde9095312..0a474985ad 100644 --- a/plotly/validators/table/header/_font.py +++ b/plotly/validators/table/header/_font.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/table/header/_format.py b/plotly/validators/table/header/_format.py index 5047c435f6..d522f056d6 100644 --- a/plotly/validators/table/header/_format.py +++ b/plotly/validators/table/header/_format.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FormatValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/table/header/_formatsrc.py b/plotly/validators/table/header/_formatsrc.py index 924627ec95..4d0ffcb5ad 100644 --- a/plotly/validators/table/header/_formatsrc.py +++ b/plotly/validators/table/header/_formatsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FormatsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/header/_height.py b/plotly/validators/table/header/_height.py index 3505048fbb..76e0ea2f96 100644 --- a/plotly/validators/table/header/_height.py +++ b/plotly/validators/table/header/_height.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HeightValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/table/header/_line.py b/plotly/validators/table/header/_line.py index b581d1d256..70db2c66a9 100644 --- a/plotly/validators/table/header/_line.py +++ b/plotly/validators/table/header/_line.py @@ -1,25 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Line"), data_docs=kwargs.pop( "data_docs", """ - color - - colorsrc - Sets the source reference on Chart Studio Cloud - for `color`. - width - - widthsrc - Sets the source reference on Chart Studio Cloud - for `width`. """, ), **kwargs, diff --git a/plotly/validators/table/header/_prefix.py b/plotly/validators/table/header/_prefix.py index c75a1c3790..3bfc5ff63c 100644 --- a/plotly/validators/table/header/_prefix.py +++ b/plotly/validators/table/header/_prefix.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PrefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/table/header/_prefixsrc.py b/plotly/validators/table/header/_prefixsrc.py index be254fa034..4deab42365 100644 --- a/plotly/validators/table/header/_prefixsrc.py +++ b/plotly/validators/table/header/_prefixsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PrefixsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/header/_suffix.py b/plotly/validators/table/header/_suffix.py index 3445b69565..1846c7633e 100644 --- a/plotly/validators/table/header/_suffix.py +++ b/plotly/validators/table/header/_suffix.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/table/header/_suffixsrc.py b/plotly/validators/table/header/_suffixsrc.py index c813136c38..9344820351 100644 --- a/plotly/validators/table/header/_suffixsrc.py +++ b/plotly/validators/table/header/_suffixsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SuffixsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/header/_values.py b/plotly/validators/table/header/_values.py index 07db22cd12..81f9a9eeab 100644 --- a/plotly/validators/table/header/_values.py +++ b/plotly/validators/table/header/_values.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValuesValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/table/header/_valuessrc.py b/plotly/validators/table/header/_valuessrc.py index fbefbfc0f5..c7e49160e7 100644 --- a/plotly/validators/table/header/_valuessrc.py +++ b/plotly/validators/table/header/_valuessrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValuessrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/header/fill/__init__.py b/plotly/validators/table/header/fill/__init__.py index 4ca11d9882..8cd95cefa3 100644 --- a/plotly/validators/table/header/fill/__init__.py +++ b/plotly/validators/table/header/fill/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._colorsrc.ColorsrcValidator", "._color.ColorValidator"] +) diff --git a/plotly/validators/table/header/fill/_color.py b/plotly/validators/table/header/fill/_color.py index 4839e8bae7..f9e72172c5 100644 --- a/plotly/validators/table/header/fill/_color.py +++ b/plotly/validators/table/header/fill/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/table/header/fill/_colorsrc.py b/plotly/validators/table/header/fill/_colorsrc.py index 102e12fd41..41dbe95068 100644 --- a/plotly/validators/table/header/fill/_colorsrc.py +++ b/plotly/validators/table/header/fill/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/header/font/__init__.py b/plotly/validators/table/header/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/table/header/font/__init__.py +++ b/plotly/validators/table/header/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/table/header/font/_color.py b/plotly/validators/table/header/font/_color.py index 4bb1d920f1..fc34c7ff0e 100644 --- a/plotly/validators/table/header/font/_color.py +++ b/plotly/validators/table/header/font/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/table/header/font/_colorsrc.py b/plotly/validators/table/header/font/_colorsrc.py index 7033c88f7d..9b75adb70d 100644 --- a/plotly/validators/table/header/font/_colorsrc.py +++ b/plotly/validators/table/header/font/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/header/font/_family.py b/plotly/validators/table/header/font/_family.py index d14a289e27..3069738e8a 100644 --- a/plotly/validators/table/header/font/_family.py +++ b/plotly/validators/table/header/font/_family.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/table/header/font/_familysrc.py b/plotly/validators/table/header/font/_familysrc.py index 75365c3bec..255a8cdacd 100644 --- a/plotly/validators/table/header/font/_familysrc.py +++ b/plotly/validators/table/header/font/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/header/font/_lineposition.py b/plotly/validators/table/header/font/_lineposition.py index 8ff6f8563b..8b8ac341ed 100644 --- a/plotly/validators/table/header/font/_lineposition.py +++ b/plotly/validators/table/header/font/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/table/header/font/_linepositionsrc.py b/plotly/validators/table/header/font/_linepositionsrc.py index fabb57303a..9a3cbb802c 100644 --- a/plotly/validators/table/header/font/_linepositionsrc.py +++ b/plotly/validators/table/header/font/_linepositionsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/header/font/_shadow.py b/plotly/validators/table/header/font/_shadow.py index 2f052f5b24..b6b4a02b69 100644 --- a/plotly/validators/table/header/font/_shadow.py +++ b/plotly/validators/table/header/font/_shadow.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/table/header/font/_shadowsrc.py b/plotly/validators/table/header/font/_shadowsrc.py index 21021b12d5..483eccc3ba 100644 --- a/plotly/validators/table/header/font/_shadowsrc.py +++ b/plotly/validators/table/header/font/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/header/font/_size.py b/plotly/validators/table/header/font/_size.py index db20534ee8..eaafdfde42 100644 --- a/plotly/validators/table/header/font/_size.py +++ b/plotly/validators/table/header/font/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/table/header/font/_sizesrc.py b/plotly/validators/table/header/font/_sizesrc.py index 2e5020740e..d61953b7b4 100644 --- a/plotly/validators/table/header/font/_sizesrc.py +++ b/plotly/validators/table/header/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/header/font/_style.py b/plotly/validators/table/header/font/_style.py index 92b380f61a..57c57fc7e9 100644 --- a/plotly/validators/table/header/font/_style.py +++ b/plotly/validators/table/header/font/_style.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/table/header/font/_stylesrc.py b/plotly/validators/table/header/font/_stylesrc.py index e5ab5d8d3c..c44959f794 100644 --- a/plotly/validators/table/header/font/_stylesrc.py +++ b/plotly/validators/table/header/font/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/header/font/_textcase.py b/plotly/validators/table/header/font/_textcase.py index de189c2a2f..be4c07b7ba 100644 --- a/plotly/validators/table/header/font/_textcase.py +++ b/plotly/validators/table/header/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/table/header/font/_textcasesrc.py b/plotly/validators/table/header/font/_textcasesrc.py index eb2231e793..892ddbb4e9 100644 --- a/plotly/validators/table/header/font/_textcasesrc.py +++ b/plotly/validators/table/header/font/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/header/font/_variant.py b/plotly/validators/table/header/font/_variant.py index 9c36f6833d..9795164316 100644 --- a/plotly/validators/table/header/font/_variant.py +++ b/plotly/validators/table/header/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( diff --git a/plotly/validators/table/header/font/_variantsrc.py b/plotly/validators/table/header/font/_variantsrc.py index 96382858d6..af1f261212 100644 --- a/plotly/validators/table/header/font/_variantsrc.py +++ b/plotly/validators/table/header/font/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/header/font/_weight.py b/plotly/validators/table/header/font/_weight.py index 7a60a24058..961887c005 100644 --- a/plotly/validators/table/header/font/_weight.py +++ b/plotly/validators/table/header/font/_weight.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/table/header/font/_weightsrc.py b/plotly/validators/table/header/font/_weightsrc.py index f2ce925903..34aae15c96 100644 --- a/plotly/validators/table/header/font/_weightsrc.py +++ b/plotly/validators/table/header/font/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/header/line/__init__.py b/plotly/validators/table/header/line/__init__.py index a2b9e1ae50..ca6d32f725 100644 --- a/plotly/validators/table/header/line/__init__.py +++ b/plotly/validators/table/header/line/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._widthsrc import WidthsrcValidator - from ._width import WidthValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._widthsrc.WidthsrcValidator", + "._width.WidthValidator", + "._colorsrc.ColorsrcValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/table/header/line/_color.py b/plotly/validators/table/header/line/_color.py index 07faaa67cc..c82c10adcf 100644 --- a/plotly/validators/table/header/line/_color.py +++ b/plotly/validators/table/header/line/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/table/header/line/_colorsrc.py b/plotly/validators/table/header/line/_colorsrc.py index 7c82cb4ee6..8b271106b5 100644 --- a/plotly/validators/table/header/line/_colorsrc.py +++ b/plotly/validators/table/header/line/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/header/line/_width.py b/plotly/validators/table/header/line/_width.py index fadf260e77..518b11f6f7 100644 --- a/plotly/validators/table/header/line/_width.py +++ b/plotly/validators/table/header/line/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/table/header/line/_widthsrc.py b/plotly/validators/table/header/line/_widthsrc.py index d9e2d43cf8..490a4640fc 100644 --- a/plotly/validators/table/header/line/_widthsrc.py +++ b/plotly/validators/table/header/line/_widthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/hoverlabel/__init__.py b/plotly/validators/table/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/table/hoverlabel/__init__.py +++ b/plotly/validators/table/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/table/hoverlabel/_align.py b/plotly/validators/table/hoverlabel/_align.py index 6aed79e48c..731896722e 100644 --- a/plotly/validators/table/hoverlabel/_align.py +++ b/plotly/validators/table/hoverlabel/_align.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/table/hoverlabel/_alignsrc.py b/plotly/validators/table/hoverlabel/_alignsrc.py index ed2df3a516..6a8b097132 100644 --- a/plotly/validators/table/hoverlabel/_alignsrc.py +++ b/plotly/validators/table/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/hoverlabel/_bgcolor.py b/plotly/validators/table/hoverlabel/_bgcolor.py index 5f87621bde..734cbb3204 100644 --- a/plotly/validators/table/hoverlabel/_bgcolor.py +++ b/plotly/validators/table/hoverlabel/_bgcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/table/hoverlabel/_bgcolorsrc.py b/plotly/validators/table/hoverlabel/_bgcolorsrc.py index 3ad225a5a0..069fbd80bd 100644 --- a/plotly/validators/table/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/table/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/hoverlabel/_bordercolor.py b/plotly/validators/table/hoverlabel/_bordercolor.py index d5991080b5..69819abc68 100644 --- a/plotly/validators/table/hoverlabel/_bordercolor.py +++ b/plotly/validators/table/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/table/hoverlabel/_bordercolorsrc.py b/plotly/validators/table/hoverlabel/_bordercolorsrc.py index 15a491060d..d6e2d04c11 100644 --- a/plotly/validators/table/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/table/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/hoverlabel/_font.py b/plotly/validators/table/hoverlabel/_font.py index 99629ce888..6d5c622e8c 100644 --- a/plotly/validators/table/hoverlabel/_font.py +++ b/plotly/validators/table/hoverlabel/_font.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/table/hoverlabel/_namelength.py b/plotly/validators/table/hoverlabel/_namelength.py index 9a9ce0557c..4c226e7a82 100644 --- a/plotly/validators/table/hoverlabel/_namelength.py +++ b/plotly/validators/table/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/table/hoverlabel/_namelengthsrc.py b/plotly/validators/table/hoverlabel/_namelengthsrc.py index cc58cdec51..1f3c5a6f0f 100644 --- a/plotly/validators/table/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/table/hoverlabel/_namelengthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/hoverlabel/font/__init__.py b/plotly/validators/table/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/table/hoverlabel/font/__init__.py +++ b/plotly/validators/table/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/table/hoverlabel/font/_color.py b/plotly/validators/table/hoverlabel/font/_color.py index de867c3aa7..0f2537b11e 100644 --- a/plotly/validators/table/hoverlabel/font/_color.py +++ b/plotly/validators/table/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/table/hoverlabel/font/_colorsrc.py b/plotly/validators/table/hoverlabel/font/_colorsrc.py index 8db3eb6090..018e691348 100644 --- a/plotly/validators/table/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/table/hoverlabel/font/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/hoverlabel/font/_family.py b/plotly/validators/table/hoverlabel/font/_family.py index 7a99f57ec1..d9da8d7b0d 100644 --- a/plotly/validators/table/hoverlabel/font/_family.py +++ b/plotly/validators/table/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/table/hoverlabel/font/_familysrc.py b/plotly/validators/table/hoverlabel/font/_familysrc.py index 6ec514b8d9..d513ff7339 100644 --- a/plotly/validators/table/hoverlabel/font/_familysrc.py +++ b/plotly/validators/table/hoverlabel/font/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/hoverlabel/font/_lineposition.py b/plotly/validators/table/hoverlabel/font/_lineposition.py index f55ffa1ce2..c677980c59 100644 --- a/plotly/validators/table/hoverlabel/font/_lineposition.py +++ b/plotly/validators/table/hoverlabel/font/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/table/hoverlabel/font/_linepositionsrc.py b/plotly/validators/table/hoverlabel/font/_linepositionsrc.py index 4bb45ad457..7bc4c645fd 100644 --- a/plotly/validators/table/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/table/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/hoverlabel/font/_shadow.py b/plotly/validators/table/hoverlabel/font/_shadow.py index a00712fdbc..52b267774f 100644 --- a/plotly/validators/table/hoverlabel/font/_shadow.py +++ b/plotly/validators/table/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/table/hoverlabel/font/_shadowsrc.py b/plotly/validators/table/hoverlabel/font/_shadowsrc.py index bcfaea294e..e7cd8268e5 100644 --- a/plotly/validators/table/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/table/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/hoverlabel/font/_size.py b/plotly/validators/table/hoverlabel/font/_size.py index fb14362bea..5808e511c7 100644 --- a/plotly/validators/table/hoverlabel/font/_size.py +++ b/plotly/validators/table/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/table/hoverlabel/font/_sizesrc.py b/plotly/validators/table/hoverlabel/font/_sizesrc.py index 2074a56016..cecb38e9b9 100644 --- a/plotly/validators/table/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/table/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/hoverlabel/font/_style.py b/plotly/validators/table/hoverlabel/font/_style.py index da1ac46ce7..33c3f7e56f 100644 --- a/plotly/validators/table/hoverlabel/font/_style.py +++ b/plotly/validators/table/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/table/hoverlabel/font/_stylesrc.py b/plotly/validators/table/hoverlabel/font/_stylesrc.py index e229cfeaa5..fe9a236d91 100644 --- a/plotly/validators/table/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/table/hoverlabel/font/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/hoverlabel/font/_textcase.py b/plotly/validators/table/hoverlabel/font/_textcase.py index c238089a77..670f980b36 100644 --- a/plotly/validators/table/hoverlabel/font/_textcase.py +++ b/plotly/validators/table/hoverlabel/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/table/hoverlabel/font/_textcasesrc.py b/plotly/validators/table/hoverlabel/font/_textcasesrc.py index 6bad92fb96..6669a69f2e 100644 --- a/plotly/validators/table/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/table/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/hoverlabel/font/_variant.py b/plotly/validators/table/hoverlabel/font/_variant.py index 519448c462..dc3db8dcf8 100644 --- a/plotly/validators/table/hoverlabel/font/_variant.py +++ b/plotly/validators/table/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/table/hoverlabel/font/_variantsrc.py b/plotly/validators/table/hoverlabel/font/_variantsrc.py index bd4766cc59..a223022a21 100644 --- a/plotly/validators/table/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/table/hoverlabel/font/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/hoverlabel/font/_weight.py b/plotly/validators/table/hoverlabel/font/_weight.py index 70fdb788c7..4118ae39ff 100644 --- a/plotly/validators/table/hoverlabel/font/_weight.py +++ b/plotly/validators/table/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/table/hoverlabel/font/_weightsrc.py b/plotly/validators/table/hoverlabel/font/_weightsrc.py index f2c611f744..c1cf83fc94 100644 --- a/plotly/validators/table/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/table/hoverlabel/font/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/table/legendgrouptitle/__init__.py b/plotly/validators/table/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/table/legendgrouptitle/__init__.py +++ b/plotly/validators/table/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/table/legendgrouptitle/_font.py b/plotly/validators/table/legendgrouptitle/_font.py index 2f14750131..42ae616265 100644 --- a/plotly/validators/table/legendgrouptitle/_font.py +++ b/plotly/validators/table/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/table/legendgrouptitle/_text.py b/plotly/validators/table/legendgrouptitle/_text.py index 438b6def34..64fa4363b2 100644 --- a/plotly/validators/table/legendgrouptitle/_text.py +++ b/plotly/validators/table/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/table/legendgrouptitle/font/__init__.py b/plotly/validators/table/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/table/legendgrouptitle/font/__init__.py +++ b/plotly/validators/table/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/table/legendgrouptitle/font/_color.py b/plotly/validators/table/legendgrouptitle/font/_color.py index b3ea930dae..ae3d6c5655 100644 --- a/plotly/validators/table/legendgrouptitle/font/_color.py +++ b/plotly/validators/table/legendgrouptitle/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/table/legendgrouptitle/font/_family.py b/plotly/validators/table/legendgrouptitle/font/_family.py index 3ced4fef3c..04bd7455f5 100644 --- a/plotly/validators/table/legendgrouptitle/font/_family.py +++ b/plotly/validators/table/legendgrouptitle/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/table/legendgrouptitle/font/_lineposition.py b/plotly/validators/table/legendgrouptitle/font/_lineposition.py index 1a237b36e8..3e07ea3353 100644 --- a/plotly/validators/table/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/table/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/table/legendgrouptitle/font/_shadow.py b/plotly/validators/table/legendgrouptitle/font/_shadow.py index e5d51ac708..c57adc262d 100644 --- a/plotly/validators/table/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/table/legendgrouptitle/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/table/legendgrouptitle/font/_size.py b/plotly/validators/table/legendgrouptitle/font/_size.py index 50f7754805..3b0284bf81 100644 --- a/plotly/validators/table/legendgrouptitle/font/_size.py +++ b/plotly/validators/table/legendgrouptitle/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/table/legendgrouptitle/font/_style.py b/plotly/validators/table/legendgrouptitle/font/_style.py index 9e5c998568..52e44c9955 100644 --- a/plotly/validators/table/legendgrouptitle/font/_style.py +++ b/plotly/validators/table/legendgrouptitle/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/table/legendgrouptitle/font/_textcase.py b/plotly/validators/table/legendgrouptitle/font/_textcase.py index 9e182ef6d6..18a22b75ea 100644 --- a/plotly/validators/table/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/table/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/table/legendgrouptitle/font/_variant.py b/plotly/validators/table/legendgrouptitle/font/_variant.py index 938a4bbf5e..4c18815f8b 100644 --- a/plotly/validators/table/legendgrouptitle/font/_variant.py +++ b/plotly/validators/table/legendgrouptitle/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/table/legendgrouptitle/font/_weight.py b/plotly/validators/table/legendgrouptitle/font/_weight.py index 6c332f0e4c..6ca6de6b47 100644 --- a/plotly/validators/table/legendgrouptitle/font/_weight.py +++ b/plotly/validators/table/legendgrouptitle/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/table/stream/__init__.py b/plotly/validators/table/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/table/stream/__init__.py +++ b/plotly/validators/table/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/table/stream/_maxpoints.py b/plotly/validators/table/stream/_maxpoints.py index 75baeda5ef..c77cc5c10d 100644 --- a/plotly/validators/table/stream/_maxpoints.py +++ b/plotly/validators/table/stream/_maxpoints.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/table/stream/_token.py b/plotly/validators/table/stream/_token.py index 463403bbfb..6cb2fe6a24 100644 --- a/plotly/validators/table/stream/_token.py +++ b/plotly/validators/table/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/treemap/__init__.py b/plotly/validators/treemap/__init__.py index 2a7bd82d12..15fa2ddae1 100644 --- a/plotly/validators/treemap/__init__.py +++ b/plotly/validators/treemap/__init__.py @@ -1,109 +1,57 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._visible import VisibleValidator - from ._valuessrc import ValuessrcValidator - from ._values import ValuesValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._tiling import TilingValidator - from ._texttemplatesrc import TexttemplatesrcValidator - from ._texttemplate import TexttemplateValidator - from ._textsrc import TextsrcValidator - from ._textposition import TextpositionValidator - from ._textinfo import TextinfoValidator - from ._textfont import TextfontValidator - from ._text import TextValidator - from ._stream import StreamValidator - from ._sort import SortValidator - from ._root import RootValidator - from ._pathbar import PathbarValidator - from ._parentssrc import ParentssrcValidator - from ._parents import ParentsValidator - from ._outsidetextfont import OutsidetextfontValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._maxdepth import MaxdepthValidator - from ._marker import MarkerValidator - from ._level import LevelValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legend import LegendValidator - from ._labelssrc import LabelssrcValidator - from ._labels import LabelsValidator - from ._insidetextfont import InsidetextfontValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._domain import DomainValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._count import CountValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/treemap/_branchvalues.py b/plotly/validators/treemap/_branchvalues.py index cd56b1b5eb..434b22a90f 100644 --- a/plotly/validators/treemap/_branchvalues.py +++ b/plotly/validators/treemap/_branchvalues.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BranchvaluesValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["remainder", "total"]), **kwargs, diff --git a/plotly/validators/treemap/_count.py b/plotly/validators/treemap/_count.py index 3877b5e3f3..269ab5a311 100644 --- a/plotly/validators/treemap/_count.py +++ b/plotly/validators/treemap/_count.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CountValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), flags=kwargs.pop("flags", ["branches", "leaves"]), **kwargs, diff --git a/plotly/validators/treemap/_customdata.py b/plotly/validators/treemap/_customdata.py index 8daa473fdd..b21595fbcc 100644 --- a/plotly/validators/treemap/_customdata.py +++ b/plotly/validators/treemap/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/treemap/_customdatasrc.py b/plotly/validators/treemap/_customdatasrc.py index 8a8248eee8..161750994c 100644 --- a/plotly/validators/treemap/_customdatasrc.py +++ b/plotly/validators/treemap/_customdatasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/_domain.py b/plotly/validators/treemap/_domain.py index 80eb44c813..cc4868525a 100644 --- a/plotly/validators/treemap/_domain.py +++ b/plotly/validators/treemap/_domain.py @@ -1,28 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DomainValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/treemap/_hoverinfo.py b/plotly/validators/treemap/_hoverinfo.py index 8c5d60e6dc..7174d9221f 100644 --- a/plotly/validators/treemap/_hoverinfo.py +++ b/plotly/validators/treemap/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/treemap/_hoverinfosrc.py b/plotly/validators/treemap/_hoverinfosrc.py index b5cf721d7d..5ad4f2b2b5 100644 --- a/plotly/validators/treemap/_hoverinfosrc.py +++ b/plotly/validators/treemap/_hoverinfosrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/_hoverlabel.py b/plotly/validators/treemap/_hoverlabel.py index ff30168dda..94cd7793df 100644 --- a/plotly/validators/treemap/_hoverlabel.py +++ b/plotly/validators/treemap/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/treemap/_hovertemplate.py b/plotly/validators/treemap/_hovertemplate.py index 4e91a6aadb..54df01716b 100644 --- a/plotly/validators/treemap/_hovertemplate.py +++ b/plotly/validators/treemap/_hovertemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/treemap/_hovertemplatesrc.py b/plotly/validators/treemap/_hovertemplatesrc.py index 4f3011b4ff..fe9e3d43d1 100644 --- a/plotly/validators/treemap/_hovertemplatesrc.py +++ b/plotly/validators/treemap/_hovertemplatesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/_hovertext.py b/plotly/validators/treemap/_hovertext.py index 9b854a1266..9afc03fbf6 100644 --- a/plotly/validators/treemap/_hovertext.py +++ b/plotly/validators/treemap/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/treemap/_hovertextsrc.py b/plotly/validators/treemap/_hovertextsrc.py index 99863753b5..837fe7190d 100644 --- a/plotly/validators/treemap/_hovertextsrc.py +++ b/plotly/validators/treemap/_hovertextsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/_ids.py b/plotly/validators/treemap/_ids.py index 0accac3c69..d87c4607a4 100644 --- a/plotly/validators/treemap/_ids.py +++ b/plotly/validators/treemap/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/treemap/_idssrc.py b/plotly/validators/treemap/_idssrc.py index 4b6762b66a..92091147d5 100644 --- a/plotly/validators/treemap/_idssrc.py +++ b/plotly/validators/treemap/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/_insidetextfont.py b/plotly/validators/treemap/_insidetextfont.py index 8872224fab..e7c91484bd 100644 --- a/plotly/validators/treemap/_insidetextfont.py +++ b/plotly/validators/treemap/_insidetextfont.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class InsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Insidetextfont"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/treemap/_labels.py b/plotly/validators/treemap/_labels.py index 4de2071027..ed36ae458c 100644 --- a/plotly/validators/treemap/_labels.py +++ b/plotly/validators/treemap/_labels.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/treemap/_labelssrc.py b/plotly/validators/treemap/_labelssrc.py index 86d36b9399..297f0b4418 100644 --- a/plotly/validators/treemap/_labelssrc.py +++ b/plotly/validators/treemap/_labelssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/_legend.py b/plotly/validators/treemap/_legend.py index e66137b64f..f6a006ce3b 100644 --- a/plotly/validators/treemap/_legend.py +++ b/plotly/validators/treemap/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/treemap/_legendgrouptitle.py b/plotly/validators/treemap/_legendgrouptitle.py index bdc220d656..d3de7415aa 100644 --- a/plotly/validators/treemap/_legendgrouptitle.py +++ b/plotly/validators/treemap/_legendgrouptitle.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/treemap/_legendrank.py b/plotly/validators/treemap/_legendrank.py index fc2c07efb6..01e597f3c8 100644 --- a/plotly/validators/treemap/_legendrank.py +++ b/plotly/validators/treemap/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/treemap/_legendwidth.py b/plotly/validators/treemap/_legendwidth.py index 3855f3f6b2..dea05394d1 100644 --- a/plotly/validators/treemap/_legendwidth.py +++ b/plotly/validators/treemap/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/treemap/_level.py b/plotly/validators/treemap/_level.py index d4036ff6ec..46716b4063 100644 --- a/plotly/validators/treemap/_level.py +++ b/plotly/validators/treemap/_level.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LevelValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/treemap/_marker.py b/plotly/validators/treemap/_marker.py index 68c366d7ac..5e69f6a91b 100644 --- a/plotly/validators/treemap/_marker.py +++ b/plotly/validators/treemap/_marker.py @@ -1,120 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/treemap/_maxdepth.py b/plotly/validators/treemap/_maxdepth.py index 1690524b6a..f9af24f7e6 100644 --- a/plotly/validators/treemap/_maxdepth.py +++ b/plotly/validators/treemap/_maxdepth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxdepthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/treemap/_meta.py b/plotly/validators/treemap/_meta.py index 1c0b95c840..d5034fd548 100644 --- a/plotly/validators/treemap/_meta.py +++ b/plotly/validators/treemap/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/treemap/_metasrc.py b/plotly/validators/treemap/_metasrc.py index a32212bcec..9ae80f63a7 100644 --- a/plotly/validators/treemap/_metasrc.py +++ b/plotly/validators/treemap/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/_name.py b/plotly/validators/treemap/_name.py index 437300e9f6..95d03a3c84 100644 --- a/plotly/validators/treemap/_name.py +++ b/plotly/validators/treemap/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/treemap/_opacity.py b/plotly/validators/treemap/_opacity.py index 7d2b8ee120..beb7c5aeba 100644 --- a/plotly/validators/treemap/_opacity.py +++ b/plotly/validators/treemap/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/treemap/_outsidetextfont.py b/plotly/validators/treemap/_outsidetextfont.py index b51abf1eed..bfa5d78096 100644 --- a/plotly/validators/treemap/_outsidetextfont.py +++ b/plotly/validators/treemap/_outsidetextfont.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Outsidetextfont"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/treemap/_parents.py b/plotly/validators/treemap/_parents.py index 605bd06cf2..d85c5862e5 100644 --- a/plotly/validators/treemap/_parents.py +++ b/plotly/validators/treemap/_parents.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ParentsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/treemap/_parentssrc.py b/plotly/validators/treemap/_parentssrc.py index 5ca63b4dc8..ae0e29bfeb 100644 --- a/plotly/validators/treemap/_parentssrc.py +++ b/plotly/validators/treemap/_parentssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ParentssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/_pathbar.py b/plotly/validators/treemap/_pathbar.py index 98490e956a..f9776858aa 100644 --- a/plotly/validators/treemap/_pathbar.py +++ b/plotly/validators/treemap/_pathbar.py @@ -1,31 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PathbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/treemap/_root.py b/plotly/validators/treemap/_root.py index 402aedf94d..33ac00138f 100644 --- a/plotly/validators/treemap/_root.py +++ b/plotly/validators/treemap/_root.py @@ -1,20 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RootValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/treemap/_sort.py b/plotly/validators/treemap/_sort.py index 87f940bd6f..3781fe7604 100644 --- a/plotly/validators/treemap/_sort.py +++ b/plotly/validators/treemap/_sort.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SortValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/treemap/_stream.py b/plotly/validators/treemap/_stream.py index f7ca95b2cf..a064270be9 100644 --- a/plotly/validators/treemap/_stream.py +++ b/plotly/validators/treemap/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/treemap/_text.py b/plotly/validators/treemap/_text.py index 626cf9f455..63a420f2bf 100644 --- a/plotly/validators/treemap/_text.py +++ b/plotly/validators/treemap/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/treemap/_textfont.py b/plotly/validators/treemap/_textfont.py index 11cfb9ae2e..a97fe15738 100644 --- a/plotly/validators/treemap/_textfont.py +++ b/plotly/validators/treemap/_textfont.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/treemap/_textinfo.py b/plotly/validators/treemap/_textinfo.py index 5f5703d88a..e88a648837 100644 --- a/plotly/validators/treemap/_textinfo.py +++ b/plotly/validators/treemap/_textinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop( diff --git a/plotly/validators/treemap/_textposition.py b/plotly/validators/treemap/_textposition.py index 35833de9fe..2a2baaf129 100644 --- a/plotly/validators/treemap/_textposition.py +++ b/plotly/validators/treemap/_textposition.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/treemap/_textsrc.py b/plotly/validators/treemap/_textsrc.py index e35b3df4ed..f8af14a68b 100644 --- a/plotly/validators/treemap/_textsrc.py +++ b/plotly/validators/treemap/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/_texttemplate.py b/plotly/validators/treemap/_texttemplate.py index b40a2c49e5..79420a439e 100644 --- a/plotly/validators/treemap/_texttemplate.py +++ b/plotly/validators/treemap/_texttemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/treemap/_texttemplatesrc.py b/plotly/validators/treemap/_texttemplatesrc.py index bd236d152e..96dd3c69e0 100644 --- a/plotly/validators/treemap/_texttemplatesrc.py +++ b/plotly/validators/treemap/_texttemplatesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/_tiling.py b/plotly/validators/treemap/_tiling.py index 05a4ad290c..547840fefd 100644 --- a/plotly/validators/treemap/_tiling.py +++ b/plotly/validators/treemap/_tiling.py @@ -1,40 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TilingValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/treemap/_uid.py b/plotly/validators/treemap/_uid.py index ed37173fa5..60c736349b 100644 --- a/plotly/validators/treemap/_uid.py +++ b/plotly/validators/treemap/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, anim=kwargs.pop("anim", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/treemap/_uirevision.py b/plotly/validators/treemap/_uirevision.py index 4bc3edfbeb..6b1907a187 100644 --- a/plotly/validators/treemap/_uirevision.py +++ b/plotly/validators/treemap/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/_values.py b/plotly/validators/treemap/_values.py index 8f7a016586..e5ea63dff0 100644 --- a/plotly/validators/treemap/_values.py +++ b/plotly/validators/treemap/_values.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValuesValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/treemap/_valuessrc.py b/plotly/validators/treemap/_valuessrc.py index bb04aeb3d3..990fd15979 100644 --- a/plotly/validators/treemap/_valuessrc.py +++ b/plotly/validators/treemap/_valuessrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValuessrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/_visible.py b/plotly/validators/treemap/_visible.py index cbb269de2d..06be1e80d3 100644 --- a/plotly/validators/treemap/_visible.py +++ b/plotly/validators/treemap/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/treemap/domain/__init__.py b/plotly/validators/treemap/domain/__init__.py index 67de5030d0..42827f1d1e 100644 --- a/plotly/validators/treemap/domain/__init__.py +++ b/plotly/validators/treemap/domain/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._y import YValidator - from ._x import XValidator - from ._row import RowValidator - from ._column import ColumnValidator -else: - from _plotly_utils.importers import relative_import - - __all__, __getattr__, __dir__ = relative_import( - __name__, - [], - [ - "._y.YValidator", - "._x.XValidator", - "._row.RowValidator", - "._column.ColumnValidator", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._y.YValidator", + "._x.XValidator", + "._row.RowValidator", + "._column.ColumnValidator", + ], +) diff --git a/plotly/validators/treemap/domain/_column.py b/plotly/validators/treemap/domain/_column.py index b97e4550ec..08f04453db 100644 --- a/plotly/validators/treemap/domain/_column.py +++ b/plotly/validators/treemap/domain/_column.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColumnValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/treemap/domain/_row.py b/plotly/validators/treemap/domain/_row.py index 4235839a05..5b9ffff66e 100644 --- a/plotly/validators/treemap/domain/_row.py +++ b/plotly/validators/treemap/domain/_row.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RowValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/treemap/domain/_x.py b/plotly/validators/treemap/domain/_x.py index 462ab187fb..a8f29d2ca8 100644 --- a/plotly/validators/treemap/domain/_x.py +++ b/plotly/validators/treemap/domain/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/treemap/domain/_y.py b/plotly/validators/treemap/domain/_y.py index db2df3898c..f7a0d599df 100644 --- a/plotly/validators/treemap/domain/_y.py +++ b/plotly/validators/treemap/domain/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/treemap/hoverlabel/__init__.py b/plotly/validators/treemap/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/treemap/hoverlabel/__init__.py +++ b/plotly/validators/treemap/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/treemap/hoverlabel/_align.py b/plotly/validators/treemap/hoverlabel/_align.py index 5830530f19..b02a0a692c 100644 --- a/plotly/validators/treemap/hoverlabel/_align.py +++ b/plotly/validators/treemap/hoverlabel/_align.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/treemap/hoverlabel/_alignsrc.py b/plotly/validators/treemap/hoverlabel/_alignsrc.py index c1e193f41f..babf4d7fad 100644 --- a/plotly/validators/treemap/hoverlabel/_alignsrc.py +++ b/plotly/validators/treemap/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/hoverlabel/_bgcolor.py b/plotly/validators/treemap/hoverlabel/_bgcolor.py index 24e6695eb4..8d1e0477a3 100644 --- a/plotly/validators/treemap/hoverlabel/_bgcolor.py +++ b/plotly/validators/treemap/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/treemap/hoverlabel/_bgcolorsrc.py b/plotly/validators/treemap/hoverlabel/_bgcolorsrc.py index 56070a3d4b..a968f70bb4 100644 --- a/plotly/validators/treemap/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/treemap/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/hoverlabel/_bordercolor.py b/plotly/validators/treemap/hoverlabel/_bordercolor.py index 3e68627cd9..d323308ead 100644 --- a/plotly/validators/treemap/hoverlabel/_bordercolor.py +++ b/plotly/validators/treemap/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/treemap/hoverlabel/_bordercolorsrc.py b/plotly/validators/treemap/hoverlabel/_bordercolorsrc.py index 7bc5ec2526..cc9b3f169a 100644 --- a/plotly/validators/treemap/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/treemap/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/hoverlabel/_font.py b/plotly/validators/treemap/hoverlabel/_font.py index 72d9ca48de..4fb602bd6b 100644 --- a/plotly/validators/treemap/hoverlabel/_font.py +++ b/plotly/validators/treemap/hoverlabel/_font.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/treemap/hoverlabel/_namelength.py b/plotly/validators/treemap/hoverlabel/_namelength.py index d6b7a48a38..ba630167f1 100644 --- a/plotly/validators/treemap/hoverlabel/_namelength.py +++ b/plotly/validators/treemap/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/treemap/hoverlabel/_namelengthsrc.py b/plotly/validators/treemap/hoverlabel/_namelengthsrc.py index 99eb258c22..5b5e386b0e 100644 --- a/plotly/validators/treemap/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/treemap/hoverlabel/_namelengthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/hoverlabel/font/__init__.py b/plotly/validators/treemap/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/treemap/hoverlabel/font/__init__.py +++ b/plotly/validators/treemap/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/treemap/hoverlabel/font/_color.py b/plotly/validators/treemap/hoverlabel/font/_color.py index e00913fb6e..c517604183 100644 --- a/plotly/validators/treemap/hoverlabel/font/_color.py +++ b/plotly/validators/treemap/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/treemap/hoverlabel/font/_colorsrc.py b/plotly/validators/treemap/hoverlabel/font/_colorsrc.py index 4bb309d3e7..cdd30543f8 100644 --- a/plotly/validators/treemap/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/treemap/hoverlabel/font/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/hoverlabel/font/_family.py b/plotly/validators/treemap/hoverlabel/font/_family.py index d40e4b0a80..5a56e4c0b3 100644 --- a/plotly/validators/treemap/hoverlabel/font/_family.py +++ b/plotly/validators/treemap/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/treemap/hoverlabel/font/_familysrc.py b/plotly/validators/treemap/hoverlabel/font/_familysrc.py index ac1944324a..d09ee791f8 100644 --- a/plotly/validators/treemap/hoverlabel/font/_familysrc.py +++ b/plotly/validators/treemap/hoverlabel/font/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/hoverlabel/font/_lineposition.py b/plotly/validators/treemap/hoverlabel/font/_lineposition.py index 0b41d08c68..5e528ceb01 100644 --- a/plotly/validators/treemap/hoverlabel/font/_lineposition.py +++ b/plotly/validators/treemap/hoverlabel/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/treemap/hoverlabel/font/_linepositionsrc.py b/plotly/validators/treemap/hoverlabel/font/_linepositionsrc.py index b22ee6e3d2..6c468d329d 100644 --- a/plotly/validators/treemap/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/treemap/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/hoverlabel/font/_shadow.py b/plotly/validators/treemap/hoverlabel/font/_shadow.py index 0e4f9d055f..6dac5d78b7 100644 --- a/plotly/validators/treemap/hoverlabel/font/_shadow.py +++ b/plotly/validators/treemap/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/treemap/hoverlabel/font/_shadowsrc.py b/plotly/validators/treemap/hoverlabel/font/_shadowsrc.py index 5f274e47e5..07e21a6670 100644 --- a/plotly/validators/treemap/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/treemap/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/hoverlabel/font/_size.py b/plotly/validators/treemap/hoverlabel/font/_size.py index 08cfc9c6aa..0d09fdd1d9 100644 --- a/plotly/validators/treemap/hoverlabel/font/_size.py +++ b/plotly/validators/treemap/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/treemap/hoverlabel/font/_sizesrc.py b/plotly/validators/treemap/hoverlabel/font/_sizesrc.py index c7f8dbfeae..10e382d85d 100644 --- a/plotly/validators/treemap/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/treemap/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/hoverlabel/font/_style.py b/plotly/validators/treemap/hoverlabel/font/_style.py index d43aee8afe..f789d27843 100644 --- a/plotly/validators/treemap/hoverlabel/font/_style.py +++ b/plotly/validators/treemap/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/treemap/hoverlabel/font/_stylesrc.py b/plotly/validators/treemap/hoverlabel/font/_stylesrc.py index be3fd2cd5e..0f6124bd63 100644 --- a/plotly/validators/treemap/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/treemap/hoverlabel/font/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/hoverlabel/font/_textcase.py b/plotly/validators/treemap/hoverlabel/font/_textcase.py index 7f307f286f..f530f5615c 100644 --- a/plotly/validators/treemap/hoverlabel/font/_textcase.py +++ b/plotly/validators/treemap/hoverlabel/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/treemap/hoverlabel/font/_textcasesrc.py b/plotly/validators/treemap/hoverlabel/font/_textcasesrc.py index 931e56b28b..f129b109b0 100644 --- a/plotly/validators/treemap/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/treemap/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/hoverlabel/font/_variant.py b/plotly/validators/treemap/hoverlabel/font/_variant.py index f716a9f339..76758cdeba 100644 --- a/plotly/validators/treemap/hoverlabel/font/_variant.py +++ b/plotly/validators/treemap/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/treemap/hoverlabel/font/_variantsrc.py b/plotly/validators/treemap/hoverlabel/font/_variantsrc.py index 247e80448e..a37cc74a0e 100644 --- a/plotly/validators/treemap/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/treemap/hoverlabel/font/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/hoverlabel/font/_weight.py b/plotly/validators/treemap/hoverlabel/font/_weight.py index b28b2cf121..5b2cb4ec01 100644 --- a/plotly/validators/treemap/hoverlabel/font/_weight.py +++ b/plotly/validators/treemap/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/treemap/hoverlabel/font/_weightsrc.py b/plotly/validators/treemap/hoverlabel/font/_weightsrc.py index 087aaff229..7e7820bd48 100644 --- a/plotly/validators/treemap/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/treemap/hoverlabel/font/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/insidetextfont/__init__.py b/plotly/validators/treemap/insidetextfont/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/treemap/insidetextfont/__init__.py +++ b/plotly/validators/treemap/insidetextfont/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/treemap/insidetextfont/_color.py b/plotly/validators/treemap/insidetextfont/_color.py index e3fac707c4..619ccceed0 100644 --- a/plotly/validators/treemap/insidetextfont/_color.py +++ b/plotly/validators/treemap/insidetextfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/treemap/insidetextfont/_colorsrc.py b/plotly/validators/treemap/insidetextfont/_colorsrc.py index 4fb5ba1f0b..ab057bc724 100644 --- a/plotly/validators/treemap/insidetextfont/_colorsrc.py +++ b/plotly/validators/treemap/insidetextfont/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/insidetextfont/_family.py b/plotly/validators/treemap/insidetextfont/_family.py index 8799e1f010..2d73b23551 100644 --- a/plotly/validators/treemap/insidetextfont/_family.py +++ b/plotly/validators/treemap/insidetextfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/treemap/insidetextfont/_familysrc.py b/plotly/validators/treemap/insidetextfont/_familysrc.py index f16f905dab..363f4809ea 100644 --- a/plotly/validators/treemap/insidetextfont/_familysrc.py +++ b/plotly/validators/treemap/insidetextfont/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/insidetextfont/_lineposition.py b/plotly/validators/treemap/insidetextfont/_lineposition.py index 514bd006d7..13466ed74a 100644 --- a/plotly/validators/treemap/insidetextfont/_lineposition.py +++ b/plotly/validators/treemap/insidetextfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/treemap/insidetextfont/_linepositionsrc.py b/plotly/validators/treemap/insidetextfont/_linepositionsrc.py index 4103cda55d..2537c0e70b 100644 --- a/plotly/validators/treemap/insidetextfont/_linepositionsrc.py +++ b/plotly/validators/treemap/insidetextfont/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/insidetextfont/_shadow.py b/plotly/validators/treemap/insidetextfont/_shadow.py index 6f71c97d10..3a3ad7936f 100644 --- a/plotly/validators/treemap/insidetextfont/_shadow.py +++ b/plotly/validators/treemap/insidetextfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/treemap/insidetextfont/_shadowsrc.py b/plotly/validators/treemap/insidetextfont/_shadowsrc.py index 76a299d3d9..a238ffd203 100644 --- a/plotly/validators/treemap/insidetextfont/_shadowsrc.py +++ b/plotly/validators/treemap/insidetextfont/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/insidetextfont/_size.py b/plotly/validators/treemap/insidetextfont/_size.py index 0a02969d5c..2153afd401 100644 --- a/plotly/validators/treemap/insidetextfont/_size.py +++ b/plotly/validators/treemap/insidetextfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/treemap/insidetextfont/_sizesrc.py b/plotly/validators/treemap/insidetextfont/_sizesrc.py index e451da2908..13d6a6ae04 100644 --- a/plotly/validators/treemap/insidetextfont/_sizesrc.py +++ b/plotly/validators/treemap/insidetextfont/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/insidetextfont/_style.py b/plotly/validators/treemap/insidetextfont/_style.py index 696c745301..eae9868e20 100644 --- a/plotly/validators/treemap/insidetextfont/_style.py +++ b/plotly/validators/treemap/insidetextfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/treemap/insidetextfont/_stylesrc.py b/plotly/validators/treemap/insidetextfont/_stylesrc.py index b7e0fbf448..f09d94d6d6 100644 --- a/plotly/validators/treemap/insidetextfont/_stylesrc.py +++ b/plotly/validators/treemap/insidetextfont/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/insidetextfont/_textcase.py b/plotly/validators/treemap/insidetextfont/_textcase.py index fe321302ee..0aa5c1f679 100644 --- a/plotly/validators/treemap/insidetextfont/_textcase.py +++ b/plotly/validators/treemap/insidetextfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/treemap/insidetextfont/_textcasesrc.py b/plotly/validators/treemap/insidetextfont/_textcasesrc.py index 3f8b5c23d3..6ed30c31ff 100644 --- a/plotly/validators/treemap/insidetextfont/_textcasesrc.py +++ b/plotly/validators/treemap/insidetextfont/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/insidetextfont/_variant.py b/plotly/validators/treemap/insidetextfont/_variant.py index 53bb20d849..0bbc9714b2 100644 --- a/plotly/validators/treemap/insidetextfont/_variant.py +++ b/plotly/validators/treemap/insidetextfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( diff --git a/plotly/validators/treemap/insidetextfont/_variantsrc.py b/plotly/validators/treemap/insidetextfont/_variantsrc.py index 5a6c791dc1..84d0f53683 100644 --- a/plotly/validators/treemap/insidetextfont/_variantsrc.py +++ b/plotly/validators/treemap/insidetextfont/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/insidetextfont/_weight.py b/plotly/validators/treemap/insidetextfont/_weight.py index 29c1a41a9b..e70a30a65b 100644 --- a/plotly/validators/treemap/insidetextfont/_weight.py +++ b/plotly/validators/treemap/insidetextfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/treemap/insidetextfont/_weightsrc.py b/plotly/validators/treemap/insidetextfont/_weightsrc.py index f7193b830d..e02a1856f9 100644 --- a/plotly/validators/treemap/insidetextfont/_weightsrc.py +++ b/plotly/validators/treemap/insidetextfont/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/legendgrouptitle/__init__.py b/plotly/validators/treemap/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/treemap/legendgrouptitle/__init__.py +++ b/plotly/validators/treemap/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/treemap/legendgrouptitle/_font.py b/plotly/validators/treemap/legendgrouptitle/_font.py index b3569cd234..e31ddfe92f 100644 --- a/plotly/validators/treemap/legendgrouptitle/_font.py +++ b/plotly/validators/treemap/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/treemap/legendgrouptitle/_text.py b/plotly/validators/treemap/legendgrouptitle/_text.py index 2b4c6c493b..86967b49c3 100644 --- a/plotly/validators/treemap/legendgrouptitle/_text.py +++ b/plotly/validators/treemap/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/treemap/legendgrouptitle/font/__init__.py b/plotly/validators/treemap/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/treemap/legendgrouptitle/font/__init__.py +++ b/plotly/validators/treemap/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/treemap/legendgrouptitle/font/_color.py b/plotly/validators/treemap/legendgrouptitle/font/_color.py index 0458f8e1c2..3f91873f90 100644 --- a/plotly/validators/treemap/legendgrouptitle/font/_color.py +++ b/plotly/validators/treemap/legendgrouptitle/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/treemap/legendgrouptitle/font/_family.py b/plotly/validators/treemap/legendgrouptitle/font/_family.py index fd3217bbed..8d1dce2a51 100644 --- a/plotly/validators/treemap/legendgrouptitle/font/_family.py +++ b/plotly/validators/treemap/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/treemap/legendgrouptitle/font/_lineposition.py b/plotly/validators/treemap/legendgrouptitle/font/_lineposition.py index 9f87182ccb..70bbce1c58 100644 --- a/plotly/validators/treemap/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/treemap/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/treemap/legendgrouptitle/font/_shadow.py b/plotly/validators/treemap/legendgrouptitle/font/_shadow.py index 9f30a8e6a1..df97c75e6c 100644 --- a/plotly/validators/treemap/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/treemap/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/treemap/legendgrouptitle/font/_size.py b/plotly/validators/treemap/legendgrouptitle/font/_size.py index 4e1ba623a3..70e3de5d21 100644 --- a/plotly/validators/treemap/legendgrouptitle/font/_size.py +++ b/plotly/validators/treemap/legendgrouptitle/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/treemap/legendgrouptitle/font/_style.py b/plotly/validators/treemap/legendgrouptitle/font/_style.py index 37feb4dbaf..fb1e171555 100644 --- a/plotly/validators/treemap/legendgrouptitle/font/_style.py +++ b/plotly/validators/treemap/legendgrouptitle/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/treemap/legendgrouptitle/font/_textcase.py b/plotly/validators/treemap/legendgrouptitle/font/_textcase.py index 4103fba932..ef0eba39ce 100644 --- a/plotly/validators/treemap/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/treemap/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/treemap/legendgrouptitle/font/_variant.py b/plotly/validators/treemap/legendgrouptitle/font/_variant.py index 76cb54159b..60df716ff0 100644 --- a/plotly/validators/treemap/legendgrouptitle/font/_variant.py +++ b/plotly/validators/treemap/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/treemap/legendgrouptitle/font/_weight.py b/plotly/validators/treemap/legendgrouptitle/font/_weight.py index ced3a1d80f..3fa76f37a2 100644 --- a/plotly/validators/treemap/legendgrouptitle/font/_weight.py +++ b/plotly/validators/treemap/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/treemap/marker/__init__.py b/plotly/validators/treemap/marker/__init__.py index a0aa062ffc..425c1416cf 100644 --- a/plotly/validators/treemap/marker/__init__.py +++ b/plotly/validators/treemap/marker/__init__.py @@ -1,47 +1,26 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._showscale import ShowscaleValidator - from ._reversescale import ReversescaleValidator - from ._pattern import PatternValidator - from ._pad import PadValidator - from ._line import LineValidator - from ._depthfade import DepthfadeValidator - from ._cornerradius import CornerradiusValidator - from ._colorssrc import ColorssrcValidator - from ._colorscale import ColorscaleValidator - from ._colors import ColorsValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/treemap/marker/_autocolorscale.py b/plotly/validators/treemap/marker/_autocolorscale.py index 096523641e..0704d621ea 100644 --- a/plotly/validators/treemap/marker/_autocolorscale.py +++ b/plotly/validators/treemap/marker/_autocolorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/treemap/marker/_cauto.py b/plotly/validators/treemap/marker/_cauto.py index 5a30104bf8..61367101f2 100644 --- a/plotly/validators/treemap/marker/_cauto.py +++ b/plotly/validators/treemap/marker/_cauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/treemap/marker/_cmax.py b/plotly/validators/treemap/marker/_cmax.py index 691f37e2e3..9971be6aa8 100644 --- a/plotly/validators/treemap/marker/_cmax.py +++ b/plotly/validators/treemap/marker/_cmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/treemap/marker/_cmid.py b/plotly/validators/treemap/marker/_cmid.py index 5fa73d39e5..6c4d7676df 100644 --- a/plotly/validators/treemap/marker/_cmid.py +++ b/plotly/validators/treemap/marker/_cmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/treemap/marker/_cmin.py b/plotly/validators/treemap/marker/_cmin.py index 0d84ad14df..bf4af52a12 100644 --- a/plotly/validators/treemap/marker/_cmin.py +++ b/plotly/validators/treemap/marker/_cmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/treemap/marker/_coloraxis.py b/plotly/validators/treemap/marker/_coloraxis.py index 1537fac85f..cd4737afae 100644 --- a/plotly/validators/treemap/marker/_coloraxis.py +++ b/plotly/validators/treemap/marker/_coloraxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/treemap/marker/_colorbar.py b/plotly/validators/treemap/marker/_colorbar.py index f021987e8c..58e7e7b10f 100644 --- a/plotly/validators/treemap/marker/_colorbar.py +++ b/plotly/validators/treemap/marker/_colorbar.py @@ -1,279 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/treemap/marker/_colors.py b/plotly/validators/treemap/marker/_colors.py index 8f93057437..4cf7fbb482 100644 --- a/plotly/validators/treemap/marker/_colors.py +++ b/plotly/validators/treemap/marker/_colors.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/_colorscale.py b/plotly/validators/treemap/marker/_colorscale.py index b66e87e282..15f3c49074 100644 --- a/plotly/validators/treemap/marker/_colorscale.py +++ b/plotly/validators/treemap/marker/_colorscale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/treemap/marker/_colorssrc.py b/plotly/validators/treemap/marker/_colorssrc.py index 147ddb5bb2..9167689051 100644 --- a/plotly/validators/treemap/marker/_colorssrc.py +++ b/plotly/validators/treemap/marker/_colorssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/_cornerradius.py b/plotly/validators/treemap/marker/_cornerradius.py index 08e621567c..18631631ab 100644 --- a/plotly/validators/treemap/marker/_cornerradius.py +++ b/plotly/validators/treemap/marker/_cornerradius.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CornerradiusValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/treemap/marker/_depthfade.py b/plotly/validators/treemap/marker/_depthfade.py index 4243a6ca44..cf503b598b 100644 --- a/plotly/validators/treemap/marker/_depthfade.py +++ b/plotly/validators/treemap/marker/_depthfade.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DepthfadeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", [True, False, "reversed"]), **kwargs, diff --git a/plotly/validators/treemap/marker/_line.py b/plotly/validators/treemap/marker/_line.py index 4c462bfc3c..11d16141e2 100644 --- a/plotly/validators/treemap/marker/_line.py +++ b/plotly/validators/treemap/marker/_line.py @@ -1,27 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/treemap/marker/_pad.py b/plotly/validators/treemap/marker/_pad.py index 67133de07c..3b15a3fd0e 100644 --- a/plotly/validators/treemap/marker/_pad.py +++ b/plotly/validators/treemap/marker/_pad.py @@ -1,23 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PadValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/treemap/marker/_pattern.py b/plotly/validators/treemap/marker/_pattern.py index 1aa5b1960d..e72754ecfc 100644 --- a/plotly/validators/treemap/marker/_pattern.py +++ b/plotly/validators/treemap/marker/_pattern.py @@ -1,63 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PatternValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/treemap/marker/_reversescale.py b/plotly/validators/treemap/marker/_reversescale.py index b8d234af3a..ef9c85cefe 100644 --- a/plotly/validators/treemap/marker/_reversescale.py +++ b/plotly/validators/treemap/marker/_reversescale.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/_showscale.py b/plotly/validators/treemap/marker/_showscale.py index e516392f6e..8d8f88579c 100644 --- a/plotly/validators/treemap/marker/_showscale.py +++ b/plotly/validators/treemap/marker/_showscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/colorbar/__init__.py b/plotly/validators/treemap/marker/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/treemap/marker/colorbar/__init__.py +++ b/plotly/validators/treemap/marker/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/treemap/marker/colorbar/_bgcolor.py b/plotly/validators/treemap/marker/colorbar/_bgcolor.py index 8c8596e994..7f78317ea5 100644 --- a/plotly/validators/treemap/marker/colorbar/_bgcolor.py +++ b/plotly/validators/treemap/marker/colorbar/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/colorbar/_bordercolor.py b/plotly/validators/treemap/marker/colorbar/_bordercolor.py index 0317692835..1f6308dd6b 100644 --- a/plotly/validators/treemap/marker/colorbar/_bordercolor.py +++ b/plotly/validators/treemap/marker/colorbar/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/colorbar/_borderwidth.py b/plotly/validators/treemap/marker/colorbar/_borderwidth.py index 7a7b956d75..cf4f3c664a 100644 --- a/plotly/validators/treemap/marker/colorbar/_borderwidth.py +++ b/plotly/validators/treemap/marker/colorbar/_borderwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/treemap/marker/colorbar/_dtick.py b/plotly/validators/treemap/marker/colorbar/_dtick.py index 87a1da03ad..9735863b01 100644 --- a/plotly/validators/treemap/marker/colorbar/_dtick.py +++ b/plotly/validators/treemap/marker/colorbar/_dtick.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/treemap/marker/colorbar/_exponentformat.py b/plotly/validators/treemap/marker/colorbar/_exponentformat.py index 018252d33f..2a6e5f41e6 100644 --- a/plotly/validators/treemap/marker/colorbar/_exponentformat.py +++ b/plotly/validators/treemap/marker/colorbar/_exponentformat.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/treemap/marker/colorbar/_labelalias.py b/plotly/validators/treemap/marker/colorbar/_labelalias.py index 2e93219223..fd5ae4357d 100644 --- a/plotly/validators/treemap/marker/colorbar/_labelalias.py +++ b/plotly/validators/treemap/marker/colorbar/_labelalias.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/colorbar/_len.py b/plotly/validators/treemap/marker/colorbar/_len.py index 2657cfaf35..4c1ca46492 100644 --- a/plotly/validators/treemap/marker/colorbar/_len.py +++ b/plotly/validators/treemap/marker/colorbar/_len.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/treemap/marker/colorbar/_lenmode.py b/plotly/validators/treemap/marker/colorbar/_lenmode.py index e9ed8ca551..4b528d26fe 100644 --- a/plotly/validators/treemap/marker/colorbar/_lenmode.py +++ b/plotly/validators/treemap/marker/colorbar/_lenmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/treemap/marker/colorbar/_minexponent.py b/plotly/validators/treemap/marker/colorbar/_minexponent.py index b6c4d269cd..f2e887b7ee 100644 --- a/plotly/validators/treemap/marker/colorbar/_minexponent.py +++ b/plotly/validators/treemap/marker/colorbar/_minexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/treemap/marker/colorbar/_nticks.py b/plotly/validators/treemap/marker/colorbar/_nticks.py index ac93f7d4eb..cb7f67b8b5 100644 --- a/plotly/validators/treemap/marker/colorbar/_nticks.py +++ b/plotly/validators/treemap/marker/colorbar/_nticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/treemap/marker/colorbar/_orientation.py b/plotly/validators/treemap/marker/colorbar/_orientation.py index f29fb8a35c..fdd7283d05 100644 --- a/plotly/validators/treemap/marker/colorbar/_orientation.py +++ b/plotly/validators/treemap/marker/colorbar/_orientation.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/treemap/marker/colorbar/_outlinecolor.py b/plotly/validators/treemap/marker/colorbar/_outlinecolor.py index 01b5ddb1fd..82d7ade1ec 100644 --- a/plotly/validators/treemap/marker/colorbar/_outlinecolor.py +++ b/plotly/validators/treemap/marker/colorbar/_outlinecolor.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/colorbar/_outlinewidth.py b/plotly/validators/treemap/marker/colorbar/_outlinewidth.py index 646db75d19..a05a1b46ca 100644 --- a/plotly/validators/treemap/marker/colorbar/_outlinewidth.py +++ b/plotly/validators/treemap/marker/colorbar/_outlinewidth.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/treemap/marker/colorbar/_separatethousands.py b/plotly/validators/treemap/marker/colorbar/_separatethousands.py index 707d045fe9..b732f65874 100644 --- a/plotly/validators/treemap/marker/colorbar/_separatethousands.py +++ b/plotly/validators/treemap/marker/colorbar/_separatethousands.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/colorbar/_showexponent.py b/plotly/validators/treemap/marker/colorbar/_showexponent.py index 38de4ffbb1..6dd7c8f540 100644 --- a/plotly/validators/treemap/marker/colorbar/_showexponent.py +++ b/plotly/validators/treemap/marker/colorbar/_showexponent.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/treemap/marker/colorbar/_showticklabels.py b/plotly/validators/treemap/marker/colorbar/_showticklabels.py index 1a8a62919c..7ccc6ddf9e 100644 --- a/plotly/validators/treemap/marker/colorbar/_showticklabels.py +++ b/plotly/validators/treemap/marker/colorbar/_showticklabels.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/colorbar/_showtickprefix.py b/plotly/validators/treemap/marker/colorbar/_showtickprefix.py index c88d4a1318..ebf1614a76 100644 --- a/plotly/validators/treemap/marker/colorbar/_showtickprefix.py +++ b/plotly/validators/treemap/marker/colorbar/_showtickprefix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/treemap/marker/colorbar/_showticksuffix.py b/plotly/validators/treemap/marker/colorbar/_showticksuffix.py index c9432f1d2a..fb77e6eed9 100644 --- a/plotly/validators/treemap/marker/colorbar/_showticksuffix.py +++ b/plotly/validators/treemap/marker/colorbar/_showticksuffix.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/treemap/marker/colorbar/_thickness.py b/plotly/validators/treemap/marker/colorbar/_thickness.py index 91ce3727ff..5c0f8fcb45 100644 --- a/plotly/validators/treemap/marker/colorbar/_thickness.py +++ b/plotly/validators/treemap/marker/colorbar/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/treemap/marker/colorbar/_thicknessmode.py b/plotly/validators/treemap/marker/colorbar/_thicknessmode.py index 805db8949d..748ddcc66e 100644 --- a/plotly/validators/treemap/marker/colorbar/_thicknessmode.py +++ b/plotly/validators/treemap/marker/colorbar/_thicknessmode.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/treemap/marker/colorbar/_tick0.py b/plotly/validators/treemap/marker/colorbar/_tick0.py index ed596ff3bb..e6d9c5f5fb 100644 --- a/plotly/validators/treemap/marker/colorbar/_tick0.py +++ b/plotly/validators/treemap/marker/colorbar/_tick0.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/treemap/marker/colorbar/_tickangle.py b/plotly/validators/treemap/marker/colorbar/_tickangle.py index 1e7b4543ab..969ba6ab55 100644 --- a/plotly/validators/treemap/marker/colorbar/_tickangle.py +++ b/plotly/validators/treemap/marker/colorbar/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/colorbar/_tickcolor.py b/plotly/validators/treemap/marker/colorbar/_tickcolor.py index 0e713c4581..5bc50a15ce 100644 --- a/plotly/validators/treemap/marker/colorbar/_tickcolor.py +++ b/plotly/validators/treemap/marker/colorbar/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/colorbar/_tickfont.py b/plotly/validators/treemap/marker/colorbar/_tickfont.py index 310740f714..4701dddad5 100644 --- a/plotly/validators/treemap/marker/colorbar/_tickfont.py +++ b/plotly/validators/treemap/marker/colorbar/_tickfont.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/treemap/marker/colorbar/_tickformat.py b/plotly/validators/treemap/marker/colorbar/_tickformat.py index 57cd524410..3ef402371a 100644 --- a/plotly/validators/treemap/marker/colorbar/_tickformat.py +++ b/plotly/validators/treemap/marker/colorbar/_tickformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/colorbar/_tickformatstopdefaults.py b/plotly/validators/treemap/marker/colorbar/_tickformatstopdefaults.py index e703dc0fc7..073defe1cd 100644 --- a/plotly/validators/treemap/marker/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/treemap/marker/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/treemap/marker/colorbar/_tickformatstops.py b/plotly/validators/treemap/marker/colorbar/_tickformatstops.py index c964355264..0a6bab3d30 100644 --- a/plotly/validators/treemap/marker/colorbar/_tickformatstops.py +++ b/plotly/validators/treemap/marker/colorbar/_tickformatstops.py @@ -1,53 +1,23 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/treemap/marker/colorbar/_ticklabeloverflow.py b/plotly/validators/treemap/marker/colorbar/_ticklabeloverflow.py index 4376eaa89d..558a39ada9 100644 --- a/plotly/validators/treemap/marker/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/treemap/marker/colorbar/_ticklabeloverflow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/treemap/marker/colorbar/_ticklabelposition.py b/plotly/validators/treemap/marker/colorbar/_ticklabelposition.py index 9159ba7e57..12f59d8843 100644 --- a/plotly/validators/treemap/marker/colorbar/_ticklabelposition.py +++ b/plotly/validators/treemap/marker/colorbar/_ticklabelposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/treemap/marker/colorbar/_ticklabelstep.py b/plotly/validators/treemap/marker/colorbar/_ticklabelstep.py index ba8246f3d0..e73d788872 100644 --- a/plotly/validators/treemap/marker/colorbar/_ticklabelstep.py +++ b/plotly/validators/treemap/marker/colorbar/_ticklabelstep.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/treemap/marker/colorbar/_ticklen.py b/plotly/validators/treemap/marker/colorbar/_ticklen.py index 30b0b7cb3a..396cd722b5 100644 --- a/plotly/validators/treemap/marker/colorbar/_ticklen.py +++ b/plotly/validators/treemap/marker/colorbar/_ticklen.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/treemap/marker/colorbar/_tickmode.py b/plotly/validators/treemap/marker/colorbar/_tickmode.py index c3bce82de0..98c85528dd 100644 --- a/plotly/validators/treemap/marker/colorbar/_tickmode.py +++ b/plotly/validators/treemap/marker/colorbar/_tickmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/treemap/marker/colorbar/_tickprefix.py b/plotly/validators/treemap/marker/colorbar/_tickprefix.py index 52b422102c..bc0f9c6ad9 100644 --- a/plotly/validators/treemap/marker/colorbar/_tickprefix.py +++ b/plotly/validators/treemap/marker/colorbar/_tickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/colorbar/_ticks.py b/plotly/validators/treemap/marker/colorbar/_ticks.py index 56930e49ad..e56127efbe 100644 --- a/plotly/validators/treemap/marker/colorbar/_ticks.py +++ b/plotly/validators/treemap/marker/colorbar/_ticks.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/treemap/marker/colorbar/_ticksuffix.py b/plotly/validators/treemap/marker/colorbar/_ticksuffix.py index e4682a54d6..6da6a56c9e 100644 --- a/plotly/validators/treemap/marker/colorbar/_ticksuffix.py +++ b/plotly/validators/treemap/marker/colorbar/_ticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/colorbar/_ticktext.py b/plotly/validators/treemap/marker/colorbar/_ticktext.py index 289e163246..fb0765b805 100644 --- a/plotly/validators/treemap/marker/colorbar/_ticktext.py +++ b/plotly/validators/treemap/marker/colorbar/_ticktext.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/colorbar/_ticktextsrc.py b/plotly/validators/treemap/marker/colorbar/_ticktextsrc.py index 53c05815ac..bfc86d20c3 100644 --- a/plotly/validators/treemap/marker/colorbar/_ticktextsrc.py +++ b/plotly/validators/treemap/marker/colorbar/_ticktextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/colorbar/_tickvals.py b/plotly/validators/treemap/marker/colorbar/_tickvals.py index cabfe7083d..e9b1adb31b 100644 --- a/plotly/validators/treemap/marker/colorbar/_tickvals.py +++ b/plotly/validators/treemap/marker/colorbar/_tickvals.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/colorbar/_tickvalssrc.py b/plotly/validators/treemap/marker/colorbar/_tickvalssrc.py index 56033a1dae..8eae0b76a0 100644 --- a/plotly/validators/treemap/marker/colorbar/_tickvalssrc.py +++ b/plotly/validators/treemap/marker/colorbar/_tickvalssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/colorbar/_tickwidth.py b/plotly/validators/treemap/marker/colorbar/_tickwidth.py index 841899b42d..3500df485a 100644 --- a/plotly/validators/treemap/marker/colorbar/_tickwidth.py +++ b/plotly/validators/treemap/marker/colorbar/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/treemap/marker/colorbar/_title.py b/plotly/validators/treemap/marker/colorbar/_title.py index 9bec545dbb..61fce7ea0c 100644 --- a/plotly/validators/treemap/marker/colorbar/_title.py +++ b/plotly/validators/treemap/marker/colorbar/_title.py @@ -1,26 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/treemap/marker/colorbar/_x.py b/plotly/validators/treemap/marker/colorbar/_x.py index 88f3c88bfc..0bf469d8c4 100644 --- a/plotly/validators/treemap/marker/colorbar/_x.py +++ b/plotly/validators/treemap/marker/colorbar/_x.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/colorbar/_xanchor.py b/plotly/validators/treemap/marker/colorbar/_xanchor.py index 2bd9a2ce44..b25985bfe7 100644 --- a/plotly/validators/treemap/marker/colorbar/_xanchor.py +++ b/plotly/validators/treemap/marker/colorbar/_xanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/treemap/marker/colorbar/_xpad.py b/plotly/validators/treemap/marker/colorbar/_xpad.py index a4dc58f69a..eeb854812b 100644 --- a/plotly/validators/treemap/marker/colorbar/_xpad.py +++ b/plotly/validators/treemap/marker/colorbar/_xpad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/treemap/marker/colorbar/_xref.py b/plotly/validators/treemap/marker/colorbar/_xref.py index 9e910d89ee..cb5ac78161 100644 --- a/plotly/validators/treemap/marker/colorbar/_xref.py +++ b/plotly/validators/treemap/marker/colorbar/_xref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/treemap/marker/colorbar/_y.py b/plotly/validators/treemap/marker/colorbar/_y.py index cf2f28bc1e..c14c126112 100644 --- a/plotly/validators/treemap/marker/colorbar/_y.py +++ b/plotly/validators/treemap/marker/colorbar/_y.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/colorbar/_yanchor.py b/plotly/validators/treemap/marker/colorbar/_yanchor.py index a647f36fe1..8820730531 100644 --- a/plotly/validators/treemap/marker/colorbar/_yanchor.py +++ b/plotly/validators/treemap/marker/colorbar/_yanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/treemap/marker/colorbar/_ypad.py b/plotly/validators/treemap/marker/colorbar/_ypad.py index f4c4519edf..b2cee976d7 100644 --- a/plotly/validators/treemap/marker/colorbar/_ypad.py +++ b/plotly/validators/treemap/marker/colorbar/_ypad.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/treemap/marker/colorbar/_yref.py b/plotly/validators/treemap/marker/colorbar/_yref.py index 023d4c991a..62e5fc0b3f 100644 --- a/plotly/validators/treemap/marker/colorbar/_yref.py +++ b/plotly/validators/treemap/marker/colorbar/_yref.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/treemap/marker/colorbar/tickfont/__init__.py b/plotly/validators/treemap/marker/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/treemap/marker/colorbar/tickfont/__init__.py +++ b/plotly/validators/treemap/marker/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/treemap/marker/colorbar/tickfont/_color.py b/plotly/validators/treemap/marker/colorbar/tickfont/_color.py index ab6b92646e..8f450c8d0f 100644 --- a/plotly/validators/treemap/marker/colorbar/tickfont/_color.py +++ b/plotly/validators/treemap/marker/colorbar/tickfont/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/colorbar/tickfont/_family.py b/plotly/validators/treemap/marker/colorbar/tickfont/_family.py index ffe222f9fa..997f916264 100644 --- a/plotly/validators/treemap/marker/colorbar/tickfont/_family.py +++ b/plotly/validators/treemap/marker/colorbar/tickfont/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/treemap/marker/colorbar/tickfont/_lineposition.py b/plotly/validators/treemap/marker/colorbar/tickfont/_lineposition.py index 500feadeb6..367b5795a0 100644 --- a/plotly/validators/treemap/marker/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/treemap/marker/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/treemap/marker/colorbar/tickfont/_shadow.py b/plotly/validators/treemap/marker/colorbar/tickfont/_shadow.py index 0b1ff33fb6..cc137dbc68 100644 --- a/plotly/validators/treemap/marker/colorbar/tickfont/_shadow.py +++ b/plotly/validators/treemap/marker/colorbar/tickfont/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/colorbar/tickfont/_size.py b/plotly/validators/treemap/marker/colorbar/tickfont/_size.py index 39900a11d8..60552ec439 100644 --- a/plotly/validators/treemap/marker/colorbar/tickfont/_size.py +++ b/plotly/validators/treemap/marker/colorbar/tickfont/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/treemap/marker/colorbar/tickfont/_style.py b/plotly/validators/treemap/marker/colorbar/tickfont/_style.py index 7310b5056d..86079d0461 100644 --- a/plotly/validators/treemap/marker/colorbar/tickfont/_style.py +++ b/plotly/validators/treemap/marker/colorbar/tickfont/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/treemap/marker/colorbar/tickfont/_textcase.py b/plotly/validators/treemap/marker/colorbar/tickfont/_textcase.py index a6bbadc6f6..d3c82fb1ba 100644 --- a/plotly/validators/treemap/marker/colorbar/tickfont/_textcase.py +++ b/plotly/validators/treemap/marker/colorbar/tickfont/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/treemap/marker/colorbar/tickfont/_variant.py b/plotly/validators/treemap/marker/colorbar/tickfont/_variant.py index 0906b37710..b6bbc7c7ca 100644 --- a/plotly/validators/treemap/marker/colorbar/tickfont/_variant.py +++ b/plotly/validators/treemap/marker/colorbar/tickfont/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/treemap/marker/colorbar/tickfont/_weight.py b/plotly/validators/treemap/marker/colorbar/tickfont/_weight.py index a43bbf41a8..c1487b9d61 100644 --- a/plotly/validators/treemap/marker/colorbar/tickfont/_weight.py +++ b/plotly/validators/treemap/marker/colorbar/tickfont/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/treemap/marker/colorbar/tickformatstop/__init__.py b/plotly/validators/treemap/marker/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/treemap/marker/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/treemap/marker/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/treemap/marker/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/treemap/marker/colorbar/tickformatstop/_dtickrange.py index 4cc727cdba..ffe11cebfa 100644 --- a/plotly/validators/treemap/marker/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/treemap/marker/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), items=kwargs.pop( "items", diff --git a/plotly/validators/treemap/marker/colorbar/tickformatstop/_enabled.py b/plotly/validators/treemap/marker/colorbar/tickformatstop/_enabled.py index a40b16e3bc..b7ce5ca9c9 100644 --- a/plotly/validators/treemap/marker/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/treemap/marker/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/colorbar/tickformatstop/_name.py b/plotly/validators/treemap/marker/colorbar/tickformatstop/_name.py index e352bda9fb..c29beb4fe2 100644 --- a/plotly/validators/treemap/marker/colorbar/tickformatstop/_name.py +++ b/plotly/validators/treemap/marker/colorbar/tickformatstop/_name.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/treemap/marker/colorbar/tickformatstop/_templateitemname.py index 0c43a49354..60565ff54b 100644 --- a/plotly/validators/treemap/marker/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/treemap/marker/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/colorbar/tickformatstop/_value.py b/plotly/validators/treemap/marker/colorbar/tickformatstop/_value.py index f37b30ad6e..4e3b9bb3b2 100644 --- a/plotly/validators/treemap/marker/colorbar/tickformatstop/_value.py +++ b/plotly/validators/treemap/marker/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/colorbar/title/__init__.py b/plotly/validators/treemap/marker/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/treemap/marker/colorbar/title/__init__.py +++ b/plotly/validators/treemap/marker/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/treemap/marker/colorbar/title/_font.py b/plotly/validators/treemap/marker/colorbar/title/_font.py index d985f6a07f..6076c9bfae 100644 --- a/plotly/validators/treemap/marker/colorbar/title/_font.py +++ b/plotly/validators/treemap/marker/colorbar/title/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/treemap/marker/colorbar/title/_side.py b/plotly/validators/treemap/marker/colorbar/title/_side.py index 647f505770..f447604c49 100644 --- a/plotly/validators/treemap/marker/colorbar/title/_side.py +++ b/plotly/validators/treemap/marker/colorbar/title/_side.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/treemap/marker/colorbar/title/_text.py b/plotly/validators/treemap/marker/colorbar/title/_text.py index 9315c2e809..9462cf7778 100644 --- a/plotly/validators/treemap/marker/colorbar/title/_text.py +++ b/plotly/validators/treemap/marker/colorbar/title/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/colorbar/title/font/__init__.py b/plotly/validators/treemap/marker/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/treemap/marker/colorbar/title/font/__init__.py +++ b/plotly/validators/treemap/marker/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/treemap/marker/colorbar/title/font/_color.py b/plotly/validators/treemap/marker/colorbar/title/font/_color.py index e3f062b156..80c4440da2 100644 --- a/plotly/validators/treemap/marker/colorbar/title/font/_color.py +++ b/plotly/validators/treemap/marker/colorbar/title/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/colorbar/title/font/_family.py b/plotly/validators/treemap/marker/colorbar/title/font/_family.py index 7faa23c80c..25c346136e 100644 --- a/plotly/validators/treemap/marker/colorbar/title/font/_family.py +++ b/plotly/validators/treemap/marker/colorbar/title/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/treemap/marker/colorbar/title/font/_lineposition.py b/plotly/validators/treemap/marker/colorbar/title/font/_lineposition.py index 59c3aa7bd0..ebcc80a2ad 100644 --- a/plotly/validators/treemap/marker/colorbar/title/font/_lineposition.py +++ b/plotly/validators/treemap/marker/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/treemap/marker/colorbar/title/font/_shadow.py b/plotly/validators/treemap/marker/colorbar/title/font/_shadow.py index 1c13391d09..003375f78f 100644 --- a/plotly/validators/treemap/marker/colorbar/title/font/_shadow.py +++ b/plotly/validators/treemap/marker/colorbar/title/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/colorbar/title/font/_size.py b/plotly/validators/treemap/marker/colorbar/title/font/_size.py index b248e0be1f..2cce489353 100644 --- a/plotly/validators/treemap/marker/colorbar/title/font/_size.py +++ b/plotly/validators/treemap/marker/colorbar/title/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/treemap/marker/colorbar/title/font/_style.py b/plotly/validators/treemap/marker/colorbar/title/font/_style.py index 75df7acb14..a1718c3a1e 100644 --- a/plotly/validators/treemap/marker/colorbar/title/font/_style.py +++ b/plotly/validators/treemap/marker/colorbar/title/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/treemap/marker/colorbar/title/font/_textcase.py b/plotly/validators/treemap/marker/colorbar/title/font/_textcase.py index 803b913977..1056a0e731 100644 --- a/plotly/validators/treemap/marker/colorbar/title/font/_textcase.py +++ b/plotly/validators/treemap/marker/colorbar/title/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/treemap/marker/colorbar/title/font/_variant.py b/plotly/validators/treemap/marker/colorbar/title/font/_variant.py index af6d6b5408..bb7544eea1 100644 --- a/plotly/validators/treemap/marker/colorbar/title/font/_variant.py +++ b/plotly/validators/treemap/marker/colorbar/title/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), values=kwargs.pop( "values", diff --git a/plotly/validators/treemap/marker/colorbar/title/font/_weight.py b/plotly/validators/treemap/marker/colorbar/title/font/_weight.py index 2a4c5b48ed..52c7fee6f8 100644 --- a/plotly/validators/treemap/marker/colorbar/title/font/_weight.py +++ b/plotly/validators/treemap/marker/colorbar/title/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "colorbars"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/treemap/marker/line/__init__.py b/plotly/validators/treemap/marker/line/__init__.py index a2b9e1ae50..ca6d32f725 100644 --- a/plotly/validators/treemap/marker/line/__init__.py +++ b/plotly/validators/treemap/marker/line/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._widthsrc import WidthsrcValidator - from ._width import WidthValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._widthsrc.WidthsrcValidator", + "._width.WidthValidator", + "._colorsrc.ColorsrcValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/treemap/marker/line/_color.py b/plotly/validators/treemap/marker/line/_color.py index b6879a5240..51307f84d6 100644 --- a/plotly/validators/treemap/marker/line/_color.py +++ b/plotly/validators/treemap/marker/line/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/treemap/marker/line/_colorsrc.py b/plotly/validators/treemap/marker/line/_colorsrc.py index 721a09edb0..1f00d8de8f 100644 --- a/plotly/validators/treemap/marker/line/_colorsrc.py +++ b/plotly/validators/treemap/marker/line/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/line/_width.py b/plotly/validators/treemap/marker/line/_width.py index 46816b0d69..10a44d0317 100644 --- a/plotly/validators/treemap/marker/line/_width.py +++ b/plotly/validators/treemap/marker/line/_width.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/treemap/marker/line/_widthsrc.py b/plotly/validators/treemap/marker/line/_widthsrc.py index 8f7c71b3c1..d7efa35348 100644 --- a/plotly/validators/treemap/marker/line/_widthsrc.py +++ b/plotly/validators/treemap/marker/line/_widthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/pad/__init__.py b/plotly/validators/treemap/marker/pad/__init__.py index 04e64dbc5e..4189bfbe1f 100644 --- a/plotly/validators/treemap/marker/pad/__init__.py +++ b/plotly/validators/treemap/marker/pad/__init__.py @@ -1,16 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._t import TValidator - from ._r import RValidator - from ._l import LValidator - 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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._t.TValidator", "._r.RValidator", "._l.LValidator", "._b.BValidator"], +) diff --git a/plotly/validators/treemap/marker/pad/_b.py b/plotly/validators/treemap/marker/pad/_b.py index 916a64cd51..737a6ecbc7 100644 --- a/plotly/validators/treemap/marker/pad/_b.py +++ b/plotly/validators/treemap/marker/pad/_b.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/treemap/marker/pad/_l.py b/plotly/validators/treemap/marker/pad/_l.py index e3efb012b8..7281ae66ea 100644 --- a/plotly/validators/treemap/marker/pad/_l.py +++ b/plotly/validators/treemap/marker/pad/_l.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/treemap/marker/pad/_r.py b/plotly/validators/treemap/marker/pad/_r.py index 97f5f81077..af6945779f 100644 --- a/plotly/validators/treemap/marker/pad/_r.py +++ b/plotly/validators/treemap/marker/pad/_r.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/treemap/marker/pad/_t.py b/plotly/validators/treemap/marker/pad/_t.py index 7c37aebb64..8e37e87e2f 100644 --- a/plotly/validators/treemap/marker/pad/_t.py +++ b/plotly/validators/treemap/marker/pad/_t.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/treemap/marker/pattern/__init__.py b/plotly/validators/treemap/marker/pattern/__init__.py index e190f962c4..e42ccc4d0f 100644 --- a/plotly/validators/treemap/marker/pattern/__init__.py +++ b/plotly/validators/treemap/marker/pattern/__init__.py @@ -1,37 +1,21 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._soliditysrc import SoliditysrcValidator - from ._solidity import SolidityValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shapesrc import ShapesrcValidator - from ._shape import ShapeValidator - from ._fillmode import FillmodeValidator - from ._fgopacity import FgopacityValidator - from ._fgcolorsrc import FgcolorsrcValidator - from ._fgcolor import FgcolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/treemap/marker/pattern/_bgcolor.py b/plotly/validators/treemap/marker/pattern/_bgcolor.py index 81cbdb77db..4460b9da2a 100644 --- a/plotly/validators/treemap/marker/pattern/_bgcolor.py +++ b/plotly/validators/treemap/marker/pattern/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/treemap/marker/pattern/_bgcolorsrc.py b/plotly/validators/treemap/marker/pattern/_bgcolorsrc.py index 64f183a597..dd6ef9eb95 100644 --- a/plotly/validators/treemap/marker/pattern/_bgcolorsrc.py +++ b/plotly/validators/treemap/marker/pattern/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/pattern/_fgcolor.py b/plotly/validators/treemap/marker/pattern/_fgcolor.py index 9c597f79cb..be823748a8 100644 --- a/plotly/validators/treemap/marker/pattern/_fgcolor.py +++ b/plotly/validators/treemap/marker/pattern/_fgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/treemap/marker/pattern/_fgcolorsrc.py b/plotly/validators/treemap/marker/pattern/_fgcolorsrc.py index f7e04ae874..5a882c7ae3 100644 --- a/plotly/validators/treemap/marker/pattern/_fgcolorsrc.py +++ b/plotly/validators/treemap/marker/pattern/_fgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/pattern/_fgopacity.py b/plotly/validators/treemap/marker/pattern/_fgopacity.py index c94b1694e7..a5b7934969 100644 --- a/plotly/validators/treemap/marker/pattern/_fgopacity.py +++ b/plotly/validators/treemap/marker/pattern/_fgopacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FgopacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/treemap/marker/pattern/_fillmode.py b/plotly/validators/treemap/marker/pattern/_fillmode.py index 3889070d5e..cee4892656 100644 --- a/plotly/validators/treemap/marker/pattern/_fillmode.py +++ b/plotly/validators/treemap/marker/pattern/_fillmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["replace", "overlay"]), **kwargs, diff --git a/plotly/validators/treemap/marker/pattern/_shape.py b/plotly/validators/treemap/marker/pattern/_shape.py index 286fb88eba..60b4fe70de 100644 --- a/plotly/validators/treemap/marker/pattern/_shape.py +++ b/plotly/validators/treemap/marker/pattern/_shape.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["", "/", "\\", "x", "-", "|", "+", "."]), diff --git a/plotly/validators/treemap/marker/pattern/_shapesrc.py b/plotly/validators/treemap/marker/pattern/_shapesrc.py index 7ee5b6a9bc..4f01a6cc9f 100644 --- a/plotly/validators/treemap/marker/pattern/_shapesrc.py +++ b/plotly/validators/treemap/marker/pattern/_shapesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShapesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/pattern/_size.py b/plotly/validators/treemap/marker/pattern/_size.py index a41afa6472..267fd1877b 100644 --- a/plotly/validators/treemap/marker/pattern/_size.py +++ b/plotly/validators/treemap/marker/pattern/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/treemap/marker/pattern/_sizesrc.py b/plotly/validators/treemap/marker/pattern/_sizesrc.py index 5f588979bd..e19d9d2b40 100644 --- a/plotly/validators/treemap/marker/pattern/_sizesrc.py +++ b/plotly/validators/treemap/marker/pattern/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/marker/pattern/_solidity.py b/plotly/validators/treemap/marker/pattern/_solidity.py index 2874820e44..970e8cb262 100644 --- a/plotly/validators/treemap/marker/pattern/_solidity.py +++ b/plotly/validators/treemap/marker/pattern/_solidity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SolidityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), diff --git a/plotly/validators/treemap/marker/pattern/_soliditysrc.py b/plotly/validators/treemap/marker/pattern/_soliditysrc.py index a066542abd..62f46e7ff1 100644 --- a/plotly/validators/treemap/marker/pattern/_soliditysrc.py +++ b/plotly/validators/treemap/marker/pattern/_soliditysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SoliditysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/outsidetextfont/__init__.py b/plotly/validators/treemap/outsidetextfont/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/treemap/outsidetextfont/__init__.py +++ b/plotly/validators/treemap/outsidetextfont/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/treemap/outsidetextfont/_color.py b/plotly/validators/treemap/outsidetextfont/_color.py index 38d13faf58..ac622975a2 100644 --- a/plotly/validators/treemap/outsidetextfont/_color.py +++ b/plotly/validators/treemap/outsidetextfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/treemap/outsidetextfont/_colorsrc.py b/plotly/validators/treemap/outsidetextfont/_colorsrc.py index 5e740dca5e..1d87164196 100644 --- a/plotly/validators/treemap/outsidetextfont/_colorsrc.py +++ b/plotly/validators/treemap/outsidetextfont/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/outsidetextfont/_family.py b/plotly/validators/treemap/outsidetextfont/_family.py index a4c57619a9..08fdb96150 100644 --- a/plotly/validators/treemap/outsidetextfont/_family.py +++ b/plotly/validators/treemap/outsidetextfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/treemap/outsidetextfont/_familysrc.py b/plotly/validators/treemap/outsidetextfont/_familysrc.py index 70983dbf84..25ff1620d7 100644 --- a/plotly/validators/treemap/outsidetextfont/_familysrc.py +++ b/plotly/validators/treemap/outsidetextfont/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/outsidetextfont/_lineposition.py b/plotly/validators/treemap/outsidetextfont/_lineposition.py index b7dabd6fba..6e71bad3c7 100644 --- a/plotly/validators/treemap/outsidetextfont/_lineposition.py +++ b/plotly/validators/treemap/outsidetextfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/treemap/outsidetextfont/_linepositionsrc.py b/plotly/validators/treemap/outsidetextfont/_linepositionsrc.py index 694fcdda4a..1373cb9ac7 100644 --- a/plotly/validators/treemap/outsidetextfont/_linepositionsrc.py +++ b/plotly/validators/treemap/outsidetextfont/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/outsidetextfont/_shadow.py b/plotly/validators/treemap/outsidetextfont/_shadow.py index a683a3ebdc..6f01f0f1aa 100644 --- a/plotly/validators/treemap/outsidetextfont/_shadow.py +++ b/plotly/validators/treemap/outsidetextfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/treemap/outsidetextfont/_shadowsrc.py b/plotly/validators/treemap/outsidetextfont/_shadowsrc.py index fa5bf2a1f7..53a5d154e4 100644 --- a/plotly/validators/treemap/outsidetextfont/_shadowsrc.py +++ b/plotly/validators/treemap/outsidetextfont/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/outsidetextfont/_size.py b/plotly/validators/treemap/outsidetextfont/_size.py index 65691dc799..37525312a3 100644 --- a/plotly/validators/treemap/outsidetextfont/_size.py +++ b/plotly/validators/treemap/outsidetextfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/treemap/outsidetextfont/_sizesrc.py b/plotly/validators/treemap/outsidetextfont/_sizesrc.py index 63327aac83..3c6273da54 100644 --- a/plotly/validators/treemap/outsidetextfont/_sizesrc.py +++ b/plotly/validators/treemap/outsidetextfont/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/outsidetextfont/_style.py b/plotly/validators/treemap/outsidetextfont/_style.py index a6918a55c3..32fe0aa57e 100644 --- a/plotly/validators/treemap/outsidetextfont/_style.py +++ b/plotly/validators/treemap/outsidetextfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/treemap/outsidetextfont/_stylesrc.py b/plotly/validators/treemap/outsidetextfont/_stylesrc.py index e231ad96e2..09869b949c 100644 --- a/plotly/validators/treemap/outsidetextfont/_stylesrc.py +++ b/plotly/validators/treemap/outsidetextfont/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/outsidetextfont/_textcase.py b/plotly/validators/treemap/outsidetextfont/_textcase.py index 9563561ea5..d56eacb116 100644 --- a/plotly/validators/treemap/outsidetextfont/_textcase.py +++ b/plotly/validators/treemap/outsidetextfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/treemap/outsidetextfont/_textcasesrc.py b/plotly/validators/treemap/outsidetextfont/_textcasesrc.py index 799eef30a6..6ae88546bf 100644 --- a/plotly/validators/treemap/outsidetextfont/_textcasesrc.py +++ b/plotly/validators/treemap/outsidetextfont/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/outsidetextfont/_variant.py b/plotly/validators/treemap/outsidetextfont/_variant.py index 4fc5bef95d..fcd5170b49 100644 --- a/plotly/validators/treemap/outsidetextfont/_variant.py +++ b/plotly/validators/treemap/outsidetextfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( diff --git a/plotly/validators/treemap/outsidetextfont/_variantsrc.py b/plotly/validators/treemap/outsidetextfont/_variantsrc.py index 604365e7ea..6efef33fd6 100644 --- a/plotly/validators/treemap/outsidetextfont/_variantsrc.py +++ b/plotly/validators/treemap/outsidetextfont/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/outsidetextfont/_weight.py b/plotly/validators/treemap/outsidetextfont/_weight.py index 137ff49352..0ba76496a0 100644 --- a/plotly/validators/treemap/outsidetextfont/_weight.py +++ b/plotly/validators/treemap/outsidetextfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/treemap/outsidetextfont/_weightsrc.py b/plotly/validators/treemap/outsidetextfont/_weightsrc.py index a3d7fa7473..9eb8dd20e8 100644 --- a/plotly/validators/treemap/outsidetextfont/_weightsrc.py +++ b/plotly/validators/treemap/outsidetextfont/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/pathbar/__init__.py b/plotly/validators/treemap/pathbar/__init__.py index fce05faf91..7b4da4ccad 100644 --- a/plotly/validators/treemap/pathbar/__init__.py +++ b/plotly/validators/treemap/pathbar/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._visible import VisibleValidator - from ._thickness import ThicknessValidator - from ._textfont import TextfontValidator - from ._side import SideValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._visible.VisibleValidator", + "._thickness.ThicknessValidator", + "._textfont.TextfontValidator", + "._side.SideValidator", + "._edgeshape.EdgeshapeValidator", + ], +) diff --git a/plotly/validators/treemap/pathbar/_edgeshape.py b/plotly/validators/treemap/pathbar/_edgeshape.py index c130649e81..5d0b0864cf 100644 --- a/plotly/validators/treemap/pathbar/_edgeshape.py +++ b/plotly/validators/treemap/pathbar/_edgeshape.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EdgeshapeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", [">", "<", "|", "/", "\\"]), **kwargs, diff --git a/plotly/validators/treemap/pathbar/_side.py b/plotly/validators/treemap/pathbar/_side.py index 2122c8a1cd..cb8726d391 100644 --- a/plotly/validators/treemap/pathbar/_side.py +++ b/plotly/validators/treemap/pathbar/_side.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["top", "bottom"]), **kwargs, diff --git a/plotly/validators/treemap/pathbar/_textfont.py b/plotly/validators/treemap/pathbar/_textfont.py index 4211122707..c01c9c1fcb 100644 --- a/plotly/validators/treemap/pathbar/_textfont.py +++ b/plotly/validators/treemap/pathbar/_textfont.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/treemap/pathbar/_thickness.py b/plotly/validators/treemap/pathbar/_thickness.py index 482c43dab4..9b6e23479a 100644 --- a/plotly/validators/treemap/pathbar/_thickness.py +++ b/plotly/validators/treemap/pathbar/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 12), **kwargs, diff --git a/plotly/validators/treemap/pathbar/_visible.py b/plotly/validators/treemap/pathbar/_visible.py index b215e7e1d6..0b92cf4347 100644 --- a/plotly/validators/treemap/pathbar/_visible.py +++ b/plotly/validators/treemap/pathbar/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/treemap/pathbar/textfont/__init__.py b/plotly/validators/treemap/pathbar/textfont/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/treemap/pathbar/textfont/__init__.py +++ b/plotly/validators/treemap/pathbar/textfont/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/treemap/pathbar/textfont/_color.py b/plotly/validators/treemap/pathbar/textfont/_color.py index a7413156c0..564be88875 100644 --- a/plotly/validators/treemap/pathbar/textfont/_color.py +++ b/plotly/validators/treemap/pathbar/textfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/treemap/pathbar/textfont/_colorsrc.py b/plotly/validators/treemap/pathbar/textfont/_colorsrc.py index 6d858a632f..9fc18a5ee5 100644 --- a/plotly/validators/treemap/pathbar/textfont/_colorsrc.py +++ b/plotly/validators/treemap/pathbar/textfont/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/pathbar/textfont/_family.py b/plotly/validators/treemap/pathbar/textfont/_family.py index b4548afb08..65ba7ab2b7 100644 --- a/plotly/validators/treemap/pathbar/textfont/_family.py +++ b/plotly/validators/treemap/pathbar/textfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/treemap/pathbar/textfont/_familysrc.py b/plotly/validators/treemap/pathbar/textfont/_familysrc.py index 84909a2cb5..70b37929c8 100644 --- a/plotly/validators/treemap/pathbar/textfont/_familysrc.py +++ b/plotly/validators/treemap/pathbar/textfont/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/pathbar/textfont/_lineposition.py b/plotly/validators/treemap/pathbar/textfont/_lineposition.py index b0eff0ed7f..aa8661107a 100644 --- a/plotly/validators/treemap/pathbar/textfont/_lineposition.py +++ b/plotly/validators/treemap/pathbar/textfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/treemap/pathbar/textfont/_linepositionsrc.py b/plotly/validators/treemap/pathbar/textfont/_linepositionsrc.py index 51884873c0..1b04ed0e04 100644 --- a/plotly/validators/treemap/pathbar/textfont/_linepositionsrc.py +++ b/plotly/validators/treemap/pathbar/textfont/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/pathbar/textfont/_shadow.py b/plotly/validators/treemap/pathbar/textfont/_shadow.py index af0abe7b6d..9773c52647 100644 --- a/plotly/validators/treemap/pathbar/textfont/_shadow.py +++ b/plotly/validators/treemap/pathbar/textfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/treemap/pathbar/textfont/_shadowsrc.py b/plotly/validators/treemap/pathbar/textfont/_shadowsrc.py index d5e4cdf997..11230209ba 100644 --- a/plotly/validators/treemap/pathbar/textfont/_shadowsrc.py +++ b/plotly/validators/treemap/pathbar/textfont/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/pathbar/textfont/_size.py b/plotly/validators/treemap/pathbar/textfont/_size.py index 4f387c9585..5b5e652afa 100644 --- a/plotly/validators/treemap/pathbar/textfont/_size.py +++ b/plotly/validators/treemap/pathbar/textfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/treemap/pathbar/textfont/_sizesrc.py b/plotly/validators/treemap/pathbar/textfont/_sizesrc.py index 8b14d5e838..bf00acab0c 100644 --- a/plotly/validators/treemap/pathbar/textfont/_sizesrc.py +++ b/plotly/validators/treemap/pathbar/textfont/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/pathbar/textfont/_style.py b/plotly/validators/treemap/pathbar/textfont/_style.py index b8b9441097..69dbcf7516 100644 --- a/plotly/validators/treemap/pathbar/textfont/_style.py +++ b/plotly/validators/treemap/pathbar/textfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/treemap/pathbar/textfont/_stylesrc.py b/plotly/validators/treemap/pathbar/textfont/_stylesrc.py index 42df86151d..ca2307c13e 100644 --- a/plotly/validators/treemap/pathbar/textfont/_stylesrc.py +++ b/plotly/validators/treemap/pathbar/textfont/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/pathbar/textfont/_textcase.py b/plotly/validators/treemap/pathbar/textfont/_textcase.py index e22c0c427c..04ba38c277 100644 --- a/plotly/validators/treemap/pathbar/textfont/_textcase.py +++ b/plotly/validators/treemap/pathbar/textfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/treemap/pathbar/textfont/_textcasesrc.py b/plotly/validators/treemap/pathbar/textfont/_textcasesrc.py index ed14fa8494..45b69b40bf 100644 --- a/plotly/validators/treemap/pathbar/textfont/_textcasesrc.py +++ b/plotly/validators/treemap/pathbar/textfont/_textcasesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/pathbar/textfont/_variant.py b/plotly/validators/treemap/pathbar/textfont/_variant.py index 1670f48f16..87b4333bc5 100644 --- a/plotly/validators/treemap/pathbar/textfont/_variant.py +++ b/plotly/validators/treemap/pathbar/textfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( diff --git a/plotly/validators/treemap/pathbar/textfont/_variantsrc.py b/plotly/validators/treemap/pathbar/textfont/_variantsrc.py index 7064e221dd..b90dc603c5 100644 --- a/plotly/validators/treemap/pathbar/textfont/_variantsrc.py +++ b/plotly/validators/treemap/pathbar/textfont/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/pathbar/textfont/_weight.py b/plotly/validators/treemap/pathbar/textfont/_weight.py index a4a41d80d7..03c6993d6a 100644 --- a/plotly/validators/treemap/pathbar/textfont/_weight.py +++ b/plotly/validators/treemap/pathbar/textfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/treemap/pathbar/textfont/_weightsrc.py b/plotly/validators/treemap/pathbar/textfont/_weightsrc.py index 7e91b186a3..5b2ab0bcad 100644 --- a/plotly/validators/treemap/pathbar/textfont/_weightsrc.py +++ b/plotly/validators/treemap/pathbar/textfont/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/root/__init__.py b/plotly/validators/treemap/root/__init__.py index a9f087e5af..85a4cc9573 100644 --- a/plotly/validators/treemap/root/__init__.py +++ b/plotly/validators/treemap/root/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._color.ColorValidator"] +) diff --git a/plotly/validators/treemap/root/_color.py b/plotly/validators/treemap/root/_color.py index 9a6872f9f3..ac0ff16578 100644 --- a/plotly/validators/treemap/root/_color.py +++ b/plotly/validators/treemap/root/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/treemap/stream/__init__.py b/plotly/validators/treemap/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/treemap/stream/__init__.py +++ b/plotly/validators/treemap/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/treemap/stream/_maxpoints.py b/plotly/validators/treemap/stream/_maxpoints.py index 17d9b1c8a5..90ec9dc5fb 100644 --- a/plotly/validators/treemap/stream/_maxpoints.py +++ b/plotly/validators/treemap/stream/_maxpoints.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/treemap/stream/_token.py b/plotly/validators/treemap/stream/_token.py index f7ba539fd7..f760f61b0d 100644 --- a/plotly/validators/treemap/stream/_token.py +++ b/plotly/validators/treemap/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/treemap/textfont/__init__.py b/plotly/validators/treemap/textfont/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/treemap/textfont/__init__.py +++ b/plotly/validators/treemap/textfont/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/treemap/textfont/_color.py b/plotly/validators/treemap/textfont/_color.py index cba4eb68ba..871314b6da 100644 --- a/plotly/validators/treemap/textfont/_color.py +++ b/plotly/validators/treemap/textfont/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/treemap/textfont/_colorsrc.py b/plotly/validators/treemap/textfont/_colorsrc.py index 256336b1a0..22ffd758ee 100644 --- a/plotly/validators/treemap/textfont/_colorsrc.py +++ b/plotly/validators/treemap/textfont/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/textfont/_family.py b/plotly/validators/treemap/textfont/_family.py index fa7e4b931d..a2cc6cbef0 100644 --- a/plotly/validators/treemap/textfont/_family.py +++ b/plotly/validators/treemap/textfont/_family.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/treemap/textfont/_familysrc.py b/plotly/validators/treemap/textfont/_familysrc.py index d3ca788ac5..6877bbb5d8 100644 --- a/plotly/validators/treemap/textfont/_familysrc.py +++ b/plotly/validators/treemap/textfont/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/textfont/_lineposition.py b/plotly/validators/treemap/textfont/_lineposition.py index ec7915c66a..34ec38b357 100644 --- a/plotly/validators/treemap/textfont/_lineposition.py +++ b/plotly/validators/treemap/textfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/treemap/textfont/_linepositionsrc.py b/plotly/validators/treemap/textfont/_linepositionsrc.py index c568cfe554..d2aa79ba82 100644 --- a/plotly/validators/treemap/textfont/_linepositionsrc.py +++ b/plotly/validators/treemap/textfont/_linepositionsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/textfont/_shadow.py b/plotly/validators/treemap/textfont/_shadow.py index 1af4e37168..1cce03997c 100644 --- a/plotly/validators/treemap/textfont/_shadow.py +++ b/plotly/validators/treemap/textfont/_shadow.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/treemap/textfont/_shadowsrc.py b/plotly/validators/treemap/textfont/_shadowsrc.py index fdfce21485..132fcf4c0a 100644 --- a/plotly/validators/treemap/textfont/_shadowsrc.py +++ b/plotly/validators/treemap/textfont/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/textfont/_size.py b/plotly/validators/treemap/textfont/_size.py index 27decabbca..24c2d3bbde 100644 --- a/plotly/validators/treemap/textfont/_size.py +++ b/plotly/validators/treemap/textfont/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/treemap/textfont/_sizesrc.py b/plotly/validators/treemap/textfont/_sizesrc.py index 1688188673..df3eb4da96 100644 --- a/plotly/validators/treemap/textfont/_sizesrc.py +++ b/plotly/validators/treemap/textfont/_sizesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/textfont/_style.py b/plotly/validators/treemap/textfont/_style.py index 478080a706..8b823f6ee4 100644 --- a/plotly/validators/treemap/textfont/_style.py +++ b/plotly/validators/treemap/textfont/_style.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/treemap/textfont/_stylesrc.py b/plotly/validators/treemap/textfont/_stylesrc.py index 6822f5c350..23d98e2aed 100644 --- a/plotly/validators/treemap/textfont/_stylesrc.py +++ b/plotly/validators/treemap/textfont/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/textfont/_textcase.py b/plotly/validators/treemap/textfont/_textcase.py index 319ef04a53..9ff9d86b83 100644 --- a/plotly/validators/treemap/textfont/_textcase.py +++ b/plotly/validators/treemap/textfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/treemap/textfont/_textcasesrc.py b/plotly/validators/treemap/textfont/_textcasesrc.py index 673418f888..4141630c74 100644 --- a/plotly/validators/treemap/textfont/_textcasesrc.py +++ b/plotly/validators/treemap/textfont/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/textfont/_variant.py b/plotly/validators/treemap/textfont/_variant.py index 062359cf1b..88dcef585c 100644 --- a/plotly/validators/treemap/textfont/_variant.py +++ b/plotly/validators/treemap/textfont/_variant.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( diff --git a/plotly/validators/treemap/textfont/_variantsrc.py b/plotly/validators/treemap/textfont/_variantsrc.py index 5ff4515129..ab9b34e3d5 100644 --- a/plotly/validators/treemap/textfont/_variantsrc.py +++ b/plotly/validators/treemap/textfont/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/textfont/_weight.py b/plotly/validators/treemap/textfont/_weight.py index c35081fb8e..b0a70e75df 100644 --- a/plotly/validators/treemap/textfont/_weight.py +++ b/plotly/validators/treemap/textfont/_weight.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/treemap/textfont/_weightsrc.py b/plotly/validators/treemap/textfont/_weightsrc.py index e75ea98a59..6533f3921c 100644 --- a/plotly/validators/treemap/textfont/_weightsrc.py +++ b/plotly/validators/treemap/textfont/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/treemap/tiling/__init__.py b/plotly/validators/treemap/tiling/__init__.py index c7b32e8503..25a61cc598 100644 --- a/plotly/validators/treemap/tiling/__init__.py +++ b/plotly/validators/treemap/tiling/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._squarifyratio import SquarifyratioValidator - from ._pad import PadValidator - from ._packing import PackingValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._squarifyratio.SquarifyratioValidator", + "._pad.PadValidator", + "._packing.PackingValidator", + "._flip.FlipValidator", + ], +) diff --git a/plotly/validators/treemap/tiling/_flip.py b/plotly/validators/treemap/tiling/_flip.py index 2609239ce6..517ae713a8 100644 --- a/plotly/validators/treemap/tiling/_flip.py +++ b/plotly/validators/treemap/tiling/_flip.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FlipValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), flags=kwargs.pop("flags", ["x", "y"]), **kwargs, diff --git a/plotly/validators/treemap/tiling/_packing.py b/plotly/validators/treemap/tiling/_packing.py index 7daeddeef2..53c9c16459 100644 --- a/plotly/validators/treemap/tiling/_packing.py +++ b/plotly/validators/treemap/tiling/_packing.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PackingValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( "values", diff --git a/plotly/validators/treemap/tiling/_pad.py b/plotly/validators/treemap/tiling/_pad.py index ff411ae377..34c769b245 100644 --- a/plotly/validators/treemap/tiling/_pad.py +++ b/plotly/validators/treemap/tiling/_pad.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/treemap/tiling/_squarifyratio.py b/plotly/validators/treemap/tiling/_squarifyratio.py index fcb3fd6748..9ab0c181a9 100644 --- a/plotly/validators/treemap/tiling/_squarifyratio.py +++ b/plotly/validators/treemap/tiling/_squarifyratio.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SquarifyratioValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/violin/__init__.py b/plotly/validators/violin/__init__.py index 485ccd3476..4ae7416c75 100644 --- a/plotly/validators/violin/__init__.py +++ b/plotly/validators/violin/__init__.py @@ -1,135 +1,70 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zorder import ZorderValidator - from ._ysrc import YsrcValidator - from ._yhoverformat import YhoverformatValidator - from ._yaxis import YaxisValidator - from ._y0 import Y0Validator - from ._y import YValidator - from ._xsrc import XsrcValidator - from ._xhoverformat import XhoverformatValidator - from ._xaxis import XaxisValidator - from ._x0 import X0Validator - from ._x import XValidator - from ._width import WidthValidator - from ._visible import VisibleValidator - from ._unselected import UnselectedValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._textsrc import TextsrcValidator - from ._text import TextValidator - from ._stream import StreamValidator - from ._spanmode import SpanmodeValidator - from ._span import SpanValidator - from ._side import SideValidator - from ._showlegend import ShowlegendValidator - from ._selectedpoints import SelectedpointsValidator - from ._selected import SelectedValidator - from ._scalemode import ScalemodeValidator - from ._scalegroup import ScalegroupValidator - from ._quartilemethod import QuartilemethodValidator - from ._points import PointsValidator - from ._pointpos import PointposValidator - from ._orientation import OrientationValidator - from ._opacity import OpacityValidator - from ._offsetgroup import OffsetgroupValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._meanline import MeanlineValidator - from ._marker import MarkerValidator - from ._line import LineValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._jitter import JitterValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoveron import HoveronValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._fillcolor import FillcolorValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._box import BoxValidator - from ._bandwidth import BandwidthValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/violin/_alignmentgroup.py b/plotly/validators/violin/_alignmentgroup.py index 0de9852306..2f788b30e9 100644 --- a/plotly/validators/violin/_alignmentgroup.py +++ b/plotly/validators/violin/_alignmentgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignmentgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/violin/_bandwidth.py b/plotly/validators/violin/_bandwidth.py index 31eeea3311..373cb5c5dd 100644 --- a/plotly/validators/violin/_bandwidth.py +++ b/plotly/validators/violin/_bandwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BandwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/violin/_box.py b/plotly/validators/violin/_box.py index 720613fcd4..1ab18471f0 100644 --- a/plotly/validators/violin/_box.py +++ b/plotly/validators/violin/_box.py @@ -1,27 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BoxValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/violin/_customdata.py b/plotly/validators/violin/_customdata.py index 382104cd14..dac54a5b10 100644 --- a/plotly/validators/violin/_customdata.py +++ b/plotly/validators/violin/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/violin/_customdatasrc.py b/plotly/validators/violin/_customdatasrc.py index 3996bdc38f..e0013a51e8 100644 --- a/plotly/validators/violin/_customdatasrc.py +++ b/plotly/validators/violin/_customdatasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/violin/_fillcolor.py b/plotly/validators/violin/_fillcolor.py index 99339b3f89..e78c4163b6 100644 --- a/plotly/validators/violin/_fillcolor.py +++ b/plotly/validators/violin/_fillcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/violin/_hoverinfo.py b/plotly/validators/violin/_hoverinfo.py index 8471e12c2e..5b28a4ddd3 100644 --- a/plotly/validators/violin/_hoverinfo.py +++ b/plotly/validators/violin/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/violin/_hoverinfosrc.py b/plotly/validators/violin/_hoverinfosrc.py index 7d0dd771e9..ec64f8c948 100644 --- a/plotly/validators/violin/_hoverinfosrc.py +++ b/plotly/validators/violin/_hoverinfosrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/violin/_hoverlabel.py b/plotly/validators/violin/_hoverlabel.py index 598cd84f21..6d8180f2b5 100644 --- a/plotly/validators/violin/_hoverlabel.py +++ b/plotly/validators/violin/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/violin/_hoveron.py b/plotly/validators/violin/_hoveron.py index 0197452481..15c221db62 100644 --- a/plotly/validators/violin/_hoveron.py +++ b/plotly/validators/violin/_hoveron.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoveronValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["all"]), flags=kwargs.pop("flags", ["violins", "points", "kde"]), diff --git a/plotly/validators/violin/_hovertemplate.py b/plotly/validators/violin/_hovertemplate.py index 378384f1ce..10992340df 100644 --- a/plotly/validators/violin/_hovertemplate.py +++ b/plotly/validators/violin/_hovertemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/violin/_hovertemplatesrc.py b/plotly/validators/violin/_hovertemplatesrc.py index 5b540ec0e5..4ac2cbaa8d 100644 --- a/plotly/validators/violin/_hovertemplatesrc.py +++ b/plotly/validators/violin/_hovertemplatesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/violin/_hovertext.py b/plotly/validators/violin/_hovertext.py index 9d20d7e24a..a5ea4975e5 100644 --- a/plotly/validators/violin/_hovertext.py +++ b/plotly/validators/violin/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/violin/_hovertextsrc.py b/plotly/validators/violin/_hovertextsrc.py index a809bdfaf3..78e5ddd559 100644 --- a/plotly/validators/violin/_hovertextsrc.py +++ b/plotly/validators/violin/_hovertextsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/violin/_ids.py b/plotly/validators/violin/_ids.py index a00814f812..7fd22c9e02 100644 --- a/plotly/validators/violin/_ids.py +++ b/plotly/validators/violin/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/violin/_idssrc.py b/plotly/validators/violin/_idssrc.py index 2f08f5abcd..09dcce677c 100644 --- a/plotly/validators/violin/_idssrc.py +++ b/plotly/validators/violin/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/violin/_jitter.py b/plotly/validators/violin/_jitter.py index 22e0f66e62..4ddce67073 100644 --- a/plotly/validators/violin/_jitter.py +++ b/plotly/validators/violin/_jitter.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class JitterValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/violin/_legend.py b/plotly/validators/violin/_legend.py index 5e471d94e5..1d456476a4 100644 --- a/plotly/validators/violin/_legend.py +++ b/plotly/validators/violin/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/violin/_legendgroup.py b/plotly/validators/violin/_legendgroup.py index 96e3aa48c5..5dc83adf5a 100644 --- a/plotly/validators/violin/_legendgroup.py +++ b/plotly/validators/violin/_legendgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/violin/_legendgrouptitle.py b/plotly/validators/violin/_legendgrouptitle.py index bc10033ea8..d44910015b 100644 --- a/plotly/validators/violin/_legendgrouptitle.py +++ b/plotly/validators/violin/_legendgrouptitle.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/violin/_legendrank.py b/plotly/validators/violin/_legendrank.py index c6be03eb7c..597fd4ea54 100644 --- a/plotly/validators/violin/_legendrank.py +++ b/plotly/validators/violin/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/violin/_legendwidth.py b/plotly/validators/violin/_legendwidth.py index 9f924270dd..2b1799644f 100644 --- a/plotly/validators/violin/_legendwidth.py +++ b/plotly/validators/violin/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/violin/_line.py b/plotly/validators/violin/_line.py index cabbc3705c..23f6e44e25 100644 --- a/plotly/validators/violin/_line.py +++ b/plotly/validators/violin/_line.py @@ -1,20 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/violin/_marker.py b/plotly/validators/violin/_marker.py index 8528ad2acb..04fe958bb1 100644 --- a/plotly/validators/violin/_marker.py +++ b/plotly/validators/violin/_marker.py @@ -1,39 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/violin/_meanline.py b/plotly/validators/violin/_meanline.py index e11c810966..5db534aa3a 100644 --- a/plotly/validators/violin/_meanline.py +++ b/plotly/validators/violin/_meanline.py @@ -1,26 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MeanlineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/violin/_meta.py b/plotly/validators/violin/_meta.py index 3837229a3c..226b517c3b 100644 --- a/plotly/validators/violin/_meta.py +++ b/plotly/validators/violin/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/violin/_metasrc.py b/plotly/validators/violin/_metasrc.py index 472079c3cb..a43542ba88 100644 --- a/plotly/validators/violin/_metasrc.py +++ b/plotly/validators/violin/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/violin/_name.py b/plotly/validators/violin/_name.py index 678c45846f..1624575832 100644 --- a/plotly/validators/violin/_name.py +++ b/plotly/validators/violin/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/violin/_offsetgroup.py b/plotly/validators/violin/_offsetgroup.py index 8bdbe9371d..219685a1e4 100644 --- a/plotly/validators/violin/_offsetgroup.py +++ b/plotly/validators/violin/_offsetgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OffsetgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/violin/_opacity.py b/plotly/validators/violin/_opacity.py index 5617efcb65..7c869ca4a4 100644 --- a/plotly/validators/violin/_opacity.py +++ b/plotly/validators/violin/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/violin/_orientation.py b/plotly/validators/violin/_orientation.py index 2c72a4e564..1c4bda3be5 100644 --- a/plotly/validators/violin/_orientation.py +++ b/plotly/validators/violin/_orientation.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), values=kwargs.pop("values", ["v", "h"]), **kwargs, diff --git a/plotly/validators/violin/_pointpos.py b/plotly/validators/violin/_pointpos.py index e29e752716..8e0790e748 100644 --- a/plotly/validators/violin/_pointpos.py +++ b/plotly/validators/violin/_pointpos.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PointposValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 2), min=kwargs.pop("min", -2), diff --git a/plotly/validators/violin/_points.py b/plotly/validators/violin/_points.py index 7d444090a4..73f23eead1 100644 --- a/plotly/validators/violin/_points.py +++ b/plotly/validators/violin/_points.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PointsValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", ["all", "outliers", "suspectedoutliers", False] diff --git a/plotly/validators/violin/_quartilemethod.py b/plotly/validators/violin/_quartilemethod.py index 209457568d..148f28716b 100644 --- a/plotly/validators/violin/_quartilemethod.py +++ b/plotly/validators/violin/_quartilemethod.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class QuartilemethodValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["linear", "exclusive", "inclusive"]), **kwargs, diff --git a/plotly/validators/violin/_scalegroup.py b/plotly/validators/violin/_scalegroup.py index f217e57f1f..ec551e0175 100644 --- a/plotly/validators/violin/_scalegroup.py +++ b/plotly/validators/violin/_scalegroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ScalegroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/violin/_scalemode.py b/plotly/validators/violin/_scalemode.py index cae972a5b9..302269b0c2 100644 --- a/plotly/validators/violin/_scalemode.py +++ b/plotly/validators/violin/_scalemode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ScalemodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["width", "count"]), **kwargs, diff --git a/plotly/validators/violin/_selected.py b/plotly/validators/violin/_selected.py index 1e2c2df1d6..cc1c951262 100644 --- a/plotly/validators/violin/_selected.py +++ b/plotly/validators/violin/_selected.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/violin/_selectedpoints.py b/plotly/validators/violin/_selectedpoints.py index 5561d51d60..91dd1a038a 100644 --- a/plotly/validators/violin/_selectedpoints.py +++ b/plotly/validators/violin/_selectedpoints.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/violin/_showlegend.py b/plotly/validators/violin/_showlegend.py index a578664b52..b9cba88330 100644 --- a/plotly/validators/violin/_showlegend.py +++ b/plotly/validators/violin/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/violin/_side.py b/plotly/validators/violin/_side.py index 897c892c9f..7c359afa6b 100644 --- a/plotly/validators/violin/_side.py +++ b/plotly/validators/violin/_side.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["both", "positive", "negative"]), **kwargs, diff --git a/plotly/validators/violin/_span.py b/plotly/validators/violin/_span.py index 3b3e1d7b5d..94bda22b90 100644 --- a/plotly/validators/violin/_span.py +++ b/plotly/validators/violin/_span.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SpanValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/violin/_spanmode.py b/plotly/validators/violin/_spanmode.py index a0991c24bf..b2f4fd5b9b 100644 --- a/plotly/validators/violin/_spanmode.py +++ b/plotly/validators/violin/_spanmode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SpanmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["soft", "hard", "manual"]), **kwargs, diff --git a/plotly/validators/violin/_stream.py b/plotly/validators/violin/_stream.py index 66b434f1ae..44193f94c3 100644 --- a/plotly/validators/violin/_stream.py +++ b/plotly/validators/violin/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/violin/_text.py b/plotly/validators/violin/_text.py index 81fcf55f8f..0ce2e9dce6 100644 --- a/plotly/validators/violin/_text.py +++ b/plotly/validators/violin/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/violin/_textsrc.py b/plotly/validators/violin/_textsrc.py index 1a4b39f804..d6518cfbe9 100644 --- a/plotly/validators/violin/_textsrc.py +++ b/plotly/validators/violin/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/violin/_uid.py b/plotly/validators/violin/_uid.py index 5cb00b2251..674688640f 100644 --- a/plotly/validators/violin/_uid.py +++ b/plotly/validators/violin/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/violin/_uirevision.py b/plotly/validators/violin/_uirevision.py index 0ad0a112bf..f07f54dd6c 100644 --- a/plotly/validators/violin/_uirevision.py +++ b/plotly/validators/violin/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/violin/_unselected.py b/plotly/validators/violin/_unselected.py index a05cab50b5..bbff5a1a4a 100644 --- a/plotly/validators/violin/_unselected.py +++ b/plotly/validators/violin/_unselected.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UnselectedValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/violin/_visible.py b/plotly/validators/violin/_visible.py index 4771b82a3a..9905b893af 100644 --- a/plotly/validators/violin/_visible.py +++ b/plotly/validators/violin/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/violin/_width.py b/plotly/validators/violin/_width.py index d2195a3d2b..ff699b456a 100644 --- a/plotly/validators/violin/_width.py +++ b/plotly/validators/violin/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/violin/_x.py b/plotly/validators/violin/_x.py index 7391cd6f57..bd7a2297a8 100644 --- a/plotly/validators/violin/_x.py +++ b/plotly/validators/violin/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/violin/_x0.py b/plotly/validators/violin/_x0.py index b9524e8d9d..02482f9877 100644 --- a/plotly/validators/violin/_x0.py +++ b/plotly/validators/violin/_x0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class X0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/violin/_xaxis.py b/plotly/validators/violin/_xaxis.py index d33cc6a66e..27e26cad55 100644 --- a/plotly/validators/violin/_xaxis.py +++ b/plotly/validators/violin/_xaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "x"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/violin/_xhoverformat.py b/plotly/validators/violin/_xhoverformat.py index f7e12ee84c..6c555a7383 100644 --- a/plotly/validators/violin/_xhoverformat.py +++ b/plotly/validators/violin/_xhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/violin/_xsrc.py b/plotly/validators/violin/_xsrc.py index 1bdb453ec4..39ad815517 100644 --- a/plotly/validators/violin/_xsrc.py +++ b/plotly/validators/violin/_xsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/violin/_y.py b/plotly/validators/violin/_y.py index b93ea417a3..be3cba9f98 100644 --- a/plotly/validators/violin/_y.py +++ b/plotly/validators/violin/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/violin/_y0.py b/plotly/validators/violin/_y0.py index bcd6829204..829f4c7f03 100644 --- a/plotly/validators/violin/_y0.py +++ b/plotly/validators/violin/_y0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Y0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/violin/_yaxis.py b/plotly/validators/violin/_yaxis.py index 755a91c271..8acd99269f 100644 --- a/plotly/validators/violin/_yaxis.py +++ b/plotly/validators/violin/_yaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "y"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/violin/_yhoverformat.py b/plotly/validators/violin/_yhoverformat.py index 69d96fa1ed..020ec99c9f 100644 --- a/plotly/validators/violin/_yhoverformat.py +++ b/plotly/validators/violin/_yhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/violin/_ysrc.py b/plotly/validators/violin/_ysrc.py index aaff2b3f1e..e8ac61ed3d 100644 --- a/plotly/validators/violin/_ysrc.py +++ b/plotly/validators/violin/_ysrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/violin/_zorder.py b/plotly/validators/violin/_zorder.py index b9a46cf558..5cb0165644 100644 --- a/plotly/validators/violin/_zorder.py +++ b/plotly/validators/violin/_zorder.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZorderValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/violin/box/__init__.py b/plotly/validators/violin/box/__init__.py index e10d0b18d3..1075b67a07 100644 --- a/plotly/validators/violin/box/__init__.py +++ b/plotly/validators/violin/box/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._width import WidthValidator - 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__, - [], - [ - "._width.WidthValidator", - "._visible.VisibleValidator", - "._line.LineValidator", - "._fillcolor.FillcolorValidator", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._width.WidthValidator", + "._visible.VisibleValidator", + "._line.LineValidator", + "._fillcolor.FillcolorValidator", + ], +) diff --git a/plotly/validators/violin/box/_fillcolor.py b/plotly/validators/violin/box/_fillcolor.py index d27a2acbb2..f0a2199e3c 100644 --- a/plotly/validators/violin/box/_fillcolor.py +++ b/plotly/validators/violin/box/_fillcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/violin/box/_line.py b/plotly/validators/violin/box/_line.py index ac2f81cfc8..8c37cd0a73 100644 --- a/plotly/validators/violin/box/_line.py +++ b/plotly/validators/violin/box/_line.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/violin/box/_visible.py b/plotly/validators/violin/box/_visible.py index e96053caac..e377fa8d2e 100644 --- a/plotly/validators/violin/box/_visible.py +++ b/plotly/validators/violin/box/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/violin/box/_width.py b/plotly/validators/violin/box/_width.py index 3297389c70..9279f5d518 100644 --- a/plotly/validators/violin/box/_width.py +++ b/plotly/validators/violin/box/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/violin/box/line/__init__.py b/plotly/validators/violin/box/line/__init__.py index 63a516578b..d49328faac 100644 --- a/plotly/validators/violin/box/line/__init__.py +++ b/plotly/validators/violin/box/line/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._width.WidthValidator", "._color.ColorValidator"] +) diff --git a/plotly/validators/violin/box/line/_color.py b/plotly/validators/violin/box/line/_color.py index 28b2ea677e..727cf83813 100644 --- a/plotly/validators/violin/box/line/_color.py +++ b/plotly/validators/violin/box/line/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/violin/box/line/_width.py b/plotly/validators/violin/box/line/_width.py index 8759f5e4b1..c85b4e1c4a 100644 --- a/plotly/validators/violin/box/line/_width.py +++ b/plotly/validators/violin/box/line/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/violin/hoverlabel/__init__.py b/plotly/validators/violin/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/violin/hoverlabel/__init__.py +++ b/plotly/validators/violin/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/violin/hoverlabel/_align.py b/plotly/validators/violin/hoverlabel/_align.py index 98c1da48da..f3ba823cf7 100644 --- a/plotly/validators/violin/hoverlabel/_align.py +++ b/plotly/validators/violin/hoverlabel/_align.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/violin/hoverlabel/_alignsrc.py b/plotly/validators/violin/hoverlabel/_alignsrc.py index 03c37f6c6a..5c601b78dc 100644 --- a/plotly/validators/violin/hoverlabel/_alignsrc.py +++ b/plotly/validators/violin/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/violin/hoverlabel/_bgcolor.py b/plotly/validators/violin/hoverlabel/_bgcolor.py index e55c4dafd4..6e54320288 100644 --- a/plotly/validators/violin/hoverlabel/_bgcolor.py +++ b/plotly/validators/violin/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/violin/hoverlabel/_bgcolorsrc.py b/plotly/validators/violin/hoverlabel/_bgcolorsrc.py index c578ef8e91..6e31ad119a 100644 --- a/plotly/validators/violin/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/violin/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/violin/hoverlabel/_bordercolor.py b/plotly/validators/violin/hoverlabel/_bordercolor.py index 25d19bc535..379d291639 100644 --- a/plotly/validators/violin/hoverlabel/_bordercolor.py +++ b/plotly/validators/violin/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/violin/hoverlabel/_bordercolorsrc.py b/plotly/validators/violin/hoverlabel/_bordercolorsrc.py index 2f862e00a2..f70084f413 100644 --- a/plotly/validators/violin/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/violin/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/violin/hoverlabel/_font.py b/plotly/validators/violin/hoverlabel/_font.py index 8c43898037..5a96c067c6 100644 --- a/plotly/validators/violin/hoverlabel/_font.py +++ b/plotly/validators/violin/hoverlabel/_font.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/violin/hoverlabel/_namelength.py b/plotly/validators/violin/hoverlabel/_namelength.py index 994b5c4db6..d5d9e316ac 100644 --- a/plotly/validators/violin/hoverlabel/_namelength.py +++ b/plotly/validators/violin/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/violin/hoverlabel/_namelengthsrc.py b/plotly/validators/violin/hoverlabel/_namelengthsrc.py index 4e961d627a..126970c892 100644 --- a/plotly/validators/violin/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/violin/hoverlabel/_namelengthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/violin/hoverlabel/font/__init__.py b/plotly/validators/violin/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/violin/hoverlabel/font/__init__.py +++ b/plotly/validators/violin/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/violin/hoverlabel/font/_color.py b/plotly/validators/violin/hoverlabel/font/_color.py index 3ce818bfcb..a55502f15f 100644 --- a/plotly/validators/violin/hoverlabel/font/_color.py +++ b/plotly/validators/violin/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/violin/hoverlabel/font/_colorsrc.py b/plotly/validators/violin/hoverlabel/font/_colorsrc.py index 92bda99163..09bd6bc5ee 100644 --- a/plotly/validators/violin/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/violin/hoverlabel/font/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/violin/hoverlabel/font/_family.py b/plotly/validators/violin/hoverlabel/font/_family.py index f024c13c14..f5cef79561 100644 --- a/plotly/validators/violin/hoverlabel/font/_family.py +++ b/plotly/validators/violin/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/violin/hoverlabel/font/_familysrc.py b/plotly/validators/violin/hoverlabel/font/_familysrc.py index 0690eb5f5e..fde6556905 100644 --- a/plotly/validators/violin/hoverlabel/font/_familysrc.py +++ b/plotly/validators/violin/hoverlabel/font/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/violin/hoverlabel/font/_lineposition.py b/plotly/validators/violin/hoverlabel/font/_lineposition.py index 9b67ce9d5c..5759cb8746 100644 --- a/plotly/validators/violin/hoverlabel/font/_lineposition.py +++ b/plotly/validators/violin/hoverlabel/font/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/violin/hoverlabel/font/_linepositionsrc.py b/plotly/validators/violin/hoverlabel/font/_linepositionsrc.py index 2689c37b62..237ada466f 100644 --- a/plotly/validators/violin/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/violin/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/violin/hoverlabel/font/_shadow.py b/plotly/validators/violin/hoverlabel/font/_shadow.py index 3b91703e46..019570a18b 100644 --- a/plotly/validators/violin/hoverlabel/font/_shadow.py +++ b/plotly/validators/violin/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/violin/hoverlabel/font/_shadowsrc.py b/plotly/validators/violin/hoverlabel/font/_shadowsrc.py index d7a7957b3c..7a49e1b91f 100644 --- a/plotly/validators/violin/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/violin/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/violin/hoverlabel/font/_size.py b/plotly/validators/violin/hoverlabel/font/_size.py index 31ec9b10a4..f992e1dc58 100644 --- a/plotly/validators/violin/hoverlabel/font/_size.py +++ b/plotly/validators/violin/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/violin/hoverlabel/font/_sizesrc.py b/plotly/validators/violin/hoverlabel/font/_sizesrc.py index f6952a0049..3d692043dc 100644 --- a/plotly/validators/violin/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/violin/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/violin/hoverlabel/font/_style.py b/plotly/validators/violin/hoverlabel/font/_style.py index 3e54c947d5..aee7aed036 100644 --- a/plotly/validators/violin/hoverlabel/font/_style.py +++ b/plotly/validators/violin/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/violin/hoverlabel/font/_stylesrc.py b/plotly/validators/violin/hoverlabel/font/_stylesrc.py index 84c5310301..e80512a24e 100644 --- a/plotly/validators/violin/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/violin/hoverlabel/font/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/violin/hoverlabel/font/_textcase.py b/plotly/validators/violin/hoverlabel/font/_textcase.py index 63e0821079..a99b5d76c9 100644 --- a/plotly/validators/violin/hoverlabel/font/_textcase.py +++ b/plotly/validators/violin/hoverlabel/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/violin/hoverlabel/font/_textcasesrc.py b/plotly/validators/violin/hoverlabel/font/_textcasesrc.py index 59e0715919..f4325f3ab9 100644 --- a/plotly/validators/violin/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/violin/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/violin/hoverlabel/font/_variant.py b/plotly/validators/violin/hoverlabel/font/_variant.py index 1c2ef5bb25..7b39624ebb 100644 --- a/plotly/validators/violin/hoverlabel/font/_variant.py +++ b/plotly/validators/violin/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/violin/hoverlabel/font/_variantsrc.py b/plotly/validators/violin/hoverlabel/font/_variantsrc.py index bf94c96ad7..29e334bd71 100644 --- a/plotly/validators/violin/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/violin/hoverlabel/font/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/violin/hoverlabel/font/_weight.py b/plotly/validators/violin/hoverlabel/font/_weight.py index 1117ec9dc1..8405870f12 100644 --- a/plotly/validators/violin/hoverlabel/font/_weight.py +++ b/plotly/validators/violin/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/violin/hoverlabel/font/_weightsrc.py b/plotly/validators/violin/hoverlabel/font/_weightsrc.py index 585e65673d..6ce664f641 100644 --- a/plotly/validators/violin/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/violin/hoverlabel/font/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/violin/legendgrouptitle/__init__.py b/plotly/validators/violin/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/violin/legendgrouptitle/__init__.py +++ b/plotly/validators/violin/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/violin/legendgrouptitle/_font.py b/plotly/validators/violin/legendgrouptitle/_font.py index 602f31327b..822931d007 100644 --- a/plotly/validators/violin/legendgrouptitle/_font.py +++ b/plotly/validators/violin/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/violin/legendgrouptitle/_text.py b/plotly/validators/violin/legendgrouptitle/_text.py index 591dd130ca..e6c3a7263c 100644 --- a/plotly/validators/violin/legendgrouptitle/_text.py +++ b/plotly/validators/violin/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/violin/legendgrouptitle/font/__init__.py b/plotly/validators/violin/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/violin/legendgrouptitle/font/__init__.py +++ b/plotly/validators/violin/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/violin/legendgrouptitle/font/_color.py b/plotly/validators/violin/legendgrouptitle/font/_color.py index 40c3b86544..f6b094d533 100644 --- a/plotly/validators/violin/legendgrouptitle/font/_color.py +++ b/plotly/validators/violin/legendgrouptitle/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/violin/legendgrouptitle/font/_family.py b/plotly/validators/violin/legendgrouptitle/font/_family.py index 372e622f25..5abe6fcfcf 100644 --- a/plotly/validators/violin/legendgrouptitle/font/_family.py +++ b/plotly/validators/violin/legendgrouptitle/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/violin/legendgrouptitle/font/_lineposition.py b/plotly/validators/violin/legendgrouptitle/font/_lineposition.py index df9ccadd19..4eef5a232e 100644 --- a/plotly/validators/violin/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/violin/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/violin/legendgrouptitle/font/_shadow.py b/plotly/validators/violin/legendgrouptitle/font/_shadow.py index 6eb96dd199..b0a6d3e788 100644 --- a/plotly/validators/violin/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/violin/legendgrouptitle/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/violin/legendgrouptitle/font/_size.py b/plotly/validators/violin/legendgrouptitle/font/_size.py index 1fc7e29c3d..10e77d25d6 100644 --- a/plotly/validators/violin/legendgrouptitle/font/_size.py +++ b/plotly/validators/violin/legendgrouptitle/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/violin/legendgrouptitle/font/_style.py b/plotly/validators/violin/legendgrouptitle/font/_style.py index 2f1ea404f8..09f37609d6 100644 --- a/plotly/validators/violin/legendgrouptitle/font/_style.py +++ b/plotly/validators/violin/legendgrouptitle/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/violin/legendgrouptitle/font/_textcase.py b/plotly/validators/violin/legendgrouptitle/font/_textcase.py index f27d38939f..f32cda9ec1 100644 --- a/plotly/validators/violin/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/violin/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/violin/legendgrouptitle/font/_variant.py b/plotly/validators/violin/legendgrouptitle/font/_variant.py index e03b238d5f..7517411310 100644 --- a/plotly/validators/violin/legendgrouptitle/font/_variant.py +++ b/plotly/validators/violin/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/violin/legendgrouptitle/font/_weight.py b/plotly/validators/violin/legendgrouptitle/font/_weight.py index 7c23be9ee8..d353fca2c5 100644 --- a/plotly/validators/violin/legendgrouptitle/font/_weight.py +++ b/plotly/validators/violin/legendgrouptitle/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/violin/line/__init__.py b/plotly/validators/violin/line/__init__.py index 63a516578b..d49328faac 100644 --- a/plotly/validators/violin/line/__init__.py +++ b/plotly/validators/violin/line/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._width.WidthValidator", "._color.ColorValidator"] +) diff --git a/plotly/validators/violin/line/_color.py b/plotly/validators/violin/line/_color.py index 3f9bd1696f..42c2b4d7e2 100644 --- a/plotly/validators/violin/line/_color.py +++ b/plotly/validators/violin/line/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/violin/line/_width.py b/plotly/validators/violin/line/_width.py index 9168699e17..a2ff5d00e3 100644 --- a/plotly/validators/violin/line/_width.py +++ b/plotly/validators/violin/line/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/violin/marker/__init__.py b/plotly/validators/violin/marker/__init__.py index 59cc1848f1..e15653f2f3 100644 --- a/plotly/validators/violin/marker/__init__.py +++ b/plotly/validators/violin/marker/__init__.py @@ -1,27 +1,16 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._symbol import SymbolValidator - from ._size import SizeValidator - from ._outliercolor import OutliercolorValidator - from ._opacity import OpacityValidator - from ._line import LineValidator - from ._color import ColorValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._symbol.SymbolValidator", + "._size.SizeValidator", + "._outliercolor.OutliercolorValidator", + "._opacity.OpacityValidator", + "._line.LineValidator", + "._color.ColorValidator", + "._angle.AngleValidator", + ], +) diff --git a/plotly/validators/violin/marker/_angle.py b/plotly/validators/violin/marker/_angle.py index bb12f00731..af2008eb03 100644 --- a/plotly/validators/violin/marker/_angle.py +++ b/plotly/validators/violin/marker/_angle.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AngleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/violin/marker/_color.py b/plotly/validators/violin/marker/_color.py index 1b9e537f7e..a6848b17da 100644 --- a/plotly/validators/violin/marker/_color.py +++ b/plotly/validators/violin/marker/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/violin/marker/_line.py b/plotly/validators/violin/marker/_line.py index 0a64320e15..c32ea70d36 100644 --- a/plotly/validators/violin/marker/_line.py +++ b/plotly/validators/violin/marker/_line.py @@ -1,31 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/violin/marker/_opacity.py b/plotly/validators/violin/marker/_opacity.py index 54b1ed78cf..328561df90 100644 --- a/plotly/validators/violin/marker/_opacity.py +++ b/plotly/validators/violin/marker/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), diff --git a/plotly/validators/violin/marker/_outliercolor.py b/plotly/validators/violin/marker/_outliercolor.py index 3ffa778f15..a2666baa8a 100644 --- a/plotly/validators/violin/marker/_outliercolor.py +++ b/plotly/validators/violin/marker/_outliercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutliercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/violin/marker/_size.py b/plotly/validators/violin/marker/_size.py index fc4079e7d3..760d79009f 100644 --- a/plotly/validators/violin/marker/_size.py +++ b/plotly/validators/violin/marker/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/violin/marker/_symbol.py b/plotly/validators/violin/marker/_symbol.py index 4dffec4060..b30d1df7bf 100644 --- a/plotly/validators/violin/marker/_symbol.py +++ b/plotly/validators/violin/marker/_symbol.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SymbolValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop( diff --git a/plotly/validators/violin/marker/line/__init__.py b/plotly/validators/violin/marker/line/__init__.py index 7778bf581e..e296cd4850 100644 --- a/plotly/validators/violin/marker/line/__init__.py +++ b/plotly/validators/violin/marker/line/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._width import WidthValidator - from ._outlierwidth import OutlierwidthValidator - from ._outliercolor import OutliercolorValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._width.WidthValidator", + "._outlierwidth.OutlierwidthValidator", + "._outliercolor.OutliercolorValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/violin/marker/line/_color.py b/plotly/validators/violin/marker/line/_color.py index c683688bfb..ea5ae16f18 100644 --- a/plotly/validators/violin/marker/line/_color.py +++ b/plotly/validators/violin/marker/line/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/violin/marker/line/_outliercolor.py b/plotly/validators/violin/marker/line/_outliercolor.py index c227746509..01abd73558 100644 --- a/plotly/validators/violin/marker/line/_outliercolor.py +++ b/plotly/validators/violin/marker/line/_outliercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutliercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/violin/marker/line/_outlierwidth.py b/plotly/validators/violin/marker/line/_outlierwidth.py index d58dcb7657..f22b9b84e7 100644 --- a/plotly/validators/violin/marker/line/_outlierwidth.py +++ b/plotly/validators/violin/marker/line/_outlierwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlierwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/violin/marker/line/_width.py b/plotly/validators/violin/marker/line/_width.py index b7515c2a91..15431d554d 100644 --- a/plotly/validators/violin/marker/line/_width.py +++ b/plotly/validators/violin/marker/line/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/violin/meanline/__init__.py b/plotly/validators/violin/meanline/__init__.py index 57028e9aac..2e1ba96792 100644 --- a/plotly/validators/violin/meanline/__init__.py +++ b/plotly/validators/violin/meanline/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._width.WidthValidator", "._visible.VisibleValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/violin/meanline/_color.py b/plotly/validators/violin/meanline/_color.py index 8baa987bd2..332a59d656 100644 --- a/plotly/validators/violin/meanline/_color.py +++ b/plotly/validators/violin/meanline/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/violin/meanline/_visible.py b/plotly/validators/violin/meanline/_visible.py index b7d9e09202..88beb2449d 100644 --- a/plotly/validators/violin/meanline/_visible.py +++ b/plotly/validators/violin/meanline/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/violin/meanline/_width.py b/plotly/validators/violin/meanline/_width.py index 4e62b834f3..b6a55d5000 100644 --- a/plotly/validators/violin/meanline/_width.py +++ b/plotly/validators/violin/meanline/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/violin/selected/__init__.py b/plotly/validators/violin/selected/__init__.py index e9bdb89f26..20900abc1a 100644 --- a/plotly/validators/violin/selected/__init__.py +++ b/plotly/validators/violin/selected/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.MarkerValidator"] +) diff --git a/plotly/validators/violin/selected/_marker.py b/plotly/validators/violin/selected/_marker.py index 44adbebc91..a52bcd16ae 100644 --- a/plotly/validators/violin/selected/_marker.py +++ b/plotly/validators/violin/selected/_marker.py @@ -1,21 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/violin/selected/marker/__init__.py b/plotly/validators/violin/selected/marker/__init__.py index 8c321a38bc..c9c7226fe4 100644 --- a/plotly/validators/violin/selected/marker/__init__.py +++ b/plotly/validators/violin/selected/marker/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._size.SizeValidator", "._opacity.OpacityValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/violin/selected/marker/_color.py b/plotly/validators/violin/selected/marker/_color.py index 62d77d9547..7f2f56a742 100644 --- a/plotly/validators/violin/selected/marker/_color.py +++ b/plotly/validators/violin/selected/marker/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/violin/selected/marker/_opacity.py b/plotly/validators/violin/selected/marker/_opacity.py index 26139543ba..9a292d564e 100644 --- a/plotly/validators/violin/selected/marker/_opacity.py +++ b/plotly/validators/violin/selected/marker/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/violin/selected/marker/_size.py b/plotly/validators/violin/selected/marker/_size.py index 111fa76f33..dfa1c551e2 100644 --- a/plotly/validators/violin/selected/marker/_size.py +++ b/plotly/validators/violin/selected/marker/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/violin/stream/__init__.py b/plotly/validators/violin/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/violin/stream/__init__.py +++ b/plotly/validators/violin/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/violin/stream/_maxpoints.py b/plotly/validators/violin/stream/_maxpoints.py index b931754a2d..11792a3f5e 100644 --- a/plotly/validators/violin/stream/_maxpoints.py +++ b/plotly/validators/violin/stream/_maxpoints.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/violin/stream/_token.py b/plotly/validators/violin/stream/_token.py index d83c3c7377..2fede884fc 100644 --- a/plotly/validators/violin/stream/_token.py +++ b/plotly/validators/violin/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/violin/unselected/__init__.py b/plotly/validators/violin/unselected/__init__.py index e9bdb89f26..20900abc1a 100644 --- a/plotly/validators/violin/unselected/__init__.py +++ b/plotly/validators/violin/unselected/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.MarkerValidator"] +) diff --git a/plotly/validators/violin/unselected/_marker.py b/plotly/validators/violin/unselected/_marker.py index 7bad4942f1..09c8c85c75 100644 --- a/plotly/validators/violin/unselected/_marker.py +++ b/plotly/validators/violin/unselected/_marker.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/violin/unselected/marker/__init__.py b/plotly/validators/violin/unselected/marker/__init__.py index 8c321a38bc..c9c7226fe4 100644 --- a/plotly/validators/violin/unselected/marker/__init__.py +++ b/plotly/validators/violin/unselected/marker/__init__.py @@ -1,19 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._size.SizeValidator", "._opacity.OpacityValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/violin/unselected/marker/_color.py b/plotly/validators/violin/unselected/marker/_color.py index 02c28349df..c054a2abed 100644 --- a/plotly/validators/violin/unselected/marker/_color.py +++ b/plotly/validators/violin/unselected/marker/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/violin/unselected/marker/_opacity.py b/plotly/validators/violin/unselected/marker/_opacity.py index acdbc93856..4e8c36574f 100644 --- a/plotly/validators/violin/unselected/marker/_opacity.py +++ b/plotly/validators/violin/unselected/marker/_opacity.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/violin/unselected/marker/_size.py b/plotly/validators/violin/unselected/marker/_size.py index 06eb018ee0..b9ce60234b 100644 --- a/plotly/validators/violin/unselected/marker/_size.py +++ b/plotly/validators/violin/unselected/marker/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/volume/__init__.py b/plotly/validators/volume/__init__.py index bad97b9a27..dd485aa43a 100644 --- a/plotly/validators/volume/__init__.py +++ b/plotly/validators/volume/__init__.py @@ -1,135 +1,70 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zsrc import ZsrcValidator - from ._zhoverformat import ZhoverformatValidator - from ._z import ZValidator - from ._ysrc import YsrcValidator - from ._yhoverformat import YhoverformatValidator - from ._y import YValidator - from ._xsrc import XsrcValidator - from ._xhoverformat import XhoverformatValidator - from ._x import XValidator - from ._visible import VisibleValidator - from ._valuesrc import ValuesrcValidator - from ._valuehoverformat import ValuehoverformatValidator - from ._value import ValueValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._textsrc import TextsrcValidator - from ._text import TextValidator - from ._surface import SurfaceValidator - from ._stream import StreamValidator - from ._spaceframe import SpaceframeValidator - from ._slices import SlicesValidator - from ._showscale import ShowscaleValidator - from ._showlegend import ShowlegendValidator - from ._scene import SceneValidator - from ._reversescale import ReversescaleValidator - from ._opacityscale import OpacityscaleValidator - from ._opacity import OpacityValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._lightposition import LightpositionValidator - from ._lighting import LightingValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._isomin import IsominValidator - from ._isomax import IsomaxValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._flatshading import FlatshadingValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._contour import ContourValidator - from ._colorscale import ColorscaleValidator - from ._colorbar import ColorbarValidator - from ._coloraxis import ColoraxisValidator - from ._cmin import CminValidator - from ._cmid import CmidValidator - from ._cmax import CmaxValidator - from ._cauto import CautoValidator - from ._caps import CapsValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/volume/_autocolorscale.py b/plotly/validators/volume/_autocolorscale.py index 2f2526b2d5..f001a99137 100644 --- a/plotly/validators/volume/_autocolorscale.py +++ b/plotly/validators/volume/_autocolorscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AutocolorscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/volume/_caps.py b/plotly/validators/volume/_caps.py index 3ca43c7b4f..23e437e548 100644 --- a/plotly/validators/volume/_caps.py +++ b/plotly/validators/volume/_caps.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CapsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/volume/_cauto.py b/plotly/validators/volume/_cauto.py index 3fd71964d8..e339266829 100644 --- a/plotly/validators/volume/_cauto.py +++ b/plotly/validators/volume/_cauto.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CautoValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/volume/_cmax.py b/plotly/validators/volume/_cmax.py index 7f4653dddf..b106f1074e 100644 --- a/plotly/validators/volume/_cmax.py +++ b/plotly/validators/volume/_cmax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/volume/_cmid.py b/plotly/validators/volume/_cmid.py index ab642903a5..df593a6eb9 100644 --- a/plotly/validators/volume/_cmid.py +++ b/plotly/validators/volume/_cmid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CmidValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), **kwargs, diff --git a/plotly/validators/volume/_cmin.py b/plotly/validators/volume/_cmin.py index 630476efb7..4d4c9b6004 100644 --- a/plotly/validators/volume/_cmin.py +++ b/plotly/validators/volume/_cmin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CminValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"cauto": False}), **kwargs, diff --git a/plotly/validators/volume/_coloraxis.py b/plotly/validators/volume/_coloraxis.py index 0be6415077..f7dfcd3c84 100644 --- a/plotly/validators/volume/_coloraxis.py +++ b/plotly/validators/volume/_coloraxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColoraxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_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]+)?$/"), diff --git a/plotly/validators/volume/_colorbar.py b/plotly/validators/volume/_colorbar.py index 868ee3aa4f..b9c5e63b65 100644 --- a/plotly/validators/volume/_colorbar.py +++ b/plotly/validators/volume/_colorbar.py @@ -1,278 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorbarValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/volume/_colorscale.py b/plotly/validators/volume/_colorscale.py index 5e83710f9f..53125298df 100644 --- a/plotly/validators/volume/_colorscale.py +++ b/plotly/validators/volume/_colorscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorscaleValidator(_plotly_utils.basevalidators.ColorscaleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"autocolorscale": False}), **kwargs, diff --git a/plotly/validators/volume/_contour.py b/plotly/validators/volume/_contour.py index a5c1cd2271..672ec3982c 100644 --- a/plotly/validators/volume/_contour.py +++ b/plotly/validators/volume/_contour.py @@ -1,22 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ContourValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/volume/_customdata.py b/plotly/validators/volume/_customdata.py index 78519bc1e6..518e70b7fb 100644 --- a/plotly/validators/volume/_customdata.py +++ b/plotly/validators/volume/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/_customdatasrc.py b/plotly/validators/volume/_customdatasrc.py index d1836b85d3..9d581c5a2f 100644 --- a/plotly/validators/volume/_customdatasrc.py +++ b/plotly/validators/volume/_customdatasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/volume/_flatshading.py b/plotly/validators/volume/_flatshading.py index 427727e430..92437b418d 100644 --- a/plotly/validators/volume/_flatshading.py +++ b/plotly/validators/volume/_flatshading.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FlatshadingValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/_hoverinfo.py b/plotly/validators/volume/_hoverinfo.py index 25501fb55a..172483b87e 100644 --- a/plotly/validators/volume/_hoverinfo.py +++ b/plotly/validators/volume/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/volume/_hoverinfosrc.py b/plotly/validators/volume/_hoverinfosrc.py index 337db39841..31f519bdfd 100644 --- a/plotly/validators/volume/_hoverinfosrc.py +++ b/plotly/validators/volume/_hoverinfosrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/volume/_hoverlabel.py b/plotly/validators/volume/_hoverlabel.py index b0375beaea..1f713955ca 100644 --- a/plotly/validators/volume/_hoverlabel.py +++ b/plotly/validators/volume/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/volume/_hovertemplate.py b/plotly/validators/volume/_hovertemplate.py index 31f03fe8dd..c5758ab749 100644 --- a/plotly/validators/volume/_hovertemplate.py +++ b/plotly/validators/volume/_hovertemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/volume/_hovertemplatesrc.py b/plotly/validators/volume/_hovertemplatesrc.py index c7d14b4476..f9c15f5303 100644 --- a/plotly/validators/volume/_hovertemplatesrc.py +++ b/plotly/validators/volume/_hovertemplatesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/volume/_hovertext.py b/plotly/validators/volume/_hovertext.py index b9570b24e3..1ca86e25c4 100644 --- a/plotly/validators/volume/_hovertext.py +++ b/plotly/validators/volume/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/volume/_hovertextsrc.py b/plotly/validators/volume/_hovertextsrc.py index 29c815fc12..61a88fec79 100644 --- a/plotly/validators/volume/_hovertextsrc.py +++ b/plotly/validators/volume/_hovertextsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/volume/_ids.py b/plotly/validators/volume/_ids.py index d5dc060e3c..8e64c06ed4 100644 --- a/plotly/validators/volume/_ids.py +++ b/plotly/validators/volume/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/_idssrc.py b/plotly/validators/volume/_idssrc.py index fb6d2546f7..09fed3f5e5 100644 --- a/plotly/validators/volume/_idssrc.py +++ b/plotly/validators/volume/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/volume/_isomax.py b/plotly/validators/volume/_isomax.py index 2031d8f297..3fd890ed5d 100644 --- a/plotly/validators/volume/_isomax.py +++ b/plotly/validators/volume/_isomax.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IsomaxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/_isomin.py b/plotly/validators/volume/_isomin.py index 8fc4808c0e..4ffe08c2bf 100644 --- a/plotly/validators/volume/_isomin.py +++ b/plotly/validators/volume/_isomin.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IsominValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/_legend.py b/plotly/validators/volume/_legend.py index 8ef46b6e9e..8880f2a007 100644 --- a/plotly/validators/volume/_legend.py +++ b/plotly/validators/volume/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/volume/_legendgroup.py b/plotly/validators/volume/_legendgroup.py index 560bd3449d..9a95b31a6c 100644 --- a/plotly/validators/volume/_legendgroup.py +++ b/plotly/validators/volume/_legendgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/volume/_legendgrouptitle.py b/plotly/validators/volume/_legendgrouptitle.py index aa90f0d603..622abaf19e 100644 --- a/plotly/validators/volume/_legendgrouptitle.py +++ b/plotly/validators/volume/_legendgrouptitle.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/volume/_legendrank.py b/plotly/validators/volume/_legendrank.py index cc8f829ad7..d585544e02 100644 --- a/plotly/validators/volume/_legendrank.py +++ b/plotly/validators/volume/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/volume/_legendwidth.py b/plotly/validators/volume/_legendwidth.py index ee091daf63..332a52bc14 100644 --- a/plotly/validators/volume/_legendwidth.py +++ b/plotly/validators/volume/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/volume/_lighting.py b/plotly/validators/volume/_lighting.py index a6dc7ec7fe..61b1b35e6b 100644 --- a/plotly/validators/volume/_lighting.py +++ b/plotly/validators/volume/_lighting.py @@ -1,39 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LightingValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/volume/_lightposition.py b/plotly/validators/volume/_lightposition.py index 0ec60509ba..8358a6218d 100644 --- a/plotly/validators/volume/_lightposition.py +++ b/plotly/validators/volume/_lightposition.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LightpositionValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/volume/_meta.py b/plotly/validators/volume/_meta.py index aa2a70ad64..4c1d07a2aa 100644 --- a/plotly/validators/volume/_meta.py +++ b/plotly/validators/volume/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/volume/_metasrc.py b/plotly/validators/volume/_metasrc.py index 559a211b88..3007d11b27 100644 --- a/plotly/validators/volume/_metasrc.py +++ b/plotly/validators/volume/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/volume/_name.py b/plotly/validators/volume/_name.py index 590af2b266..cd86d2c944 100644 --- a/plotly/validators/volume/_name.py +++ b/plotly/validators/volume/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/volume/_opacity.py b/plotly/validators/volume/_opacity.py index 38b093909b..99ffc2499b 100644 --- a/plotly/validators/volume/_opacity.py +++ b/plotly/validators/volume/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/volume/_opacityscale.py b/plotly/validators/volume/_opacityscale.py index 27b8b604db..8f55569d4b 100644 --- a/plotly/validators/volume/_opacityscale.py +++ b/plotly/validators/volume/_opacityscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityscaleValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/_reversescale.py b/plotly/validators/volume/_reversescale.py index d0e3e50648..b3289766b0 100644 --- a/plotly/validators/volume/_reversescale.py +++ b/plotly/validators/volume/_reversescale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ReversescaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/_scene.py b/plotly/validators/volume/_scene.py index ef43dfe33a..424bf12576 100644 --- a/plotly/validators/volume/_scene.py +++ b/plotly/validators/volume/_scene.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SceneValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "scene"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/volume/_showlegend.py b/plotly/validators/volume/_showlegend.py index 16d42b61a9..2aaa3131f4 100644 --- a/plotly/validators/volume/_showlegend.py +++ b/plotly/validators/volume/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/_showscale.py b/plotly/validators/volume/_showscale.py index 09feab94f5..2c1d9aaabd 100644 --- a/plotly/validators/volume/_showscale.py +++ b/plotly/validators/volume/_showscale.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowscaleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/_slices.py b/plotly/validators/volume/_slices.py index a8ed69ad1a..1c69b4d986 100644 --- a/plotly/validators/volume/_slices.py +++ b/plotly/validators/volume/_slices.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SlicesValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/volume/_spaceframe.py b/plotly/validators/volume/_spaceframe.py index c67077d140..fa89a10221 100644 --- a/plotly/validators/volume/_spaceframe.py +++ b/plotly/validators/volume/_spaceframe.py @@ -1,26 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SpaceframeValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/volume/_stream.py b/plotly/validators/volume/_stream.py index 9c0e63d5da..83906ecaca 100644 --- a/plotly/validators/volume/_stream.py +++ b/plotly/validators/volume/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/volume/_surface.py b/plotly/validators/volume/_surface.py index 2ac70d5227..20045b94e0 100644 --- a/plotly/validators/volume/_surface.py +++ b/plotly/validators/volume/_surface.py @@ -1,41 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SurfaceValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/volume/_text.py b/plotly/validators/volume/_text.py index 953fb1ed5f..44e0cd32e2 100644 --- a/plotly/validators/volume/_text.py +++ b/plotly/validators/volume/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/volume/_textsrc.py b/plotly/validators/volume/_textsrc.py index f3810a9632..08f61aae74 100644 --- a/plotly/validators/volume/_textsrc.py +++ b/plotly/validators/volume/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/volume/_uid.py b/plotly/validators/volume/_uid.py index cbd6dbfee1..42349a75e3 100644 --- a/plotly/validators/volume/_uid.py +++ b/plotly/validators/volume/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/volume/_uirevision.py b/plotly/validators/volume/_uirevision.py index 18ae368c7a..019aa9a68b 100644 --- a/plotly/validators/volume/_uirevision.py +++ b/plotly/validators/volume/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/volume/_value.py b/plotly/validators/volume/_value.py index 3d01802101..05dff6565a 100644 --- a/plotly/validators/volume/_value.py +++ b/plotly/validators/volume/_value.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/volume/_valuehoverformat.py b/plotly/validators/volume/_valuehoverformat.py index de37484e98..9098c703f6 100644 --- a/plotly/validators/volume/_valuehoverformat.py +++ b/plotly/validators/volume/_valuehoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValuehoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/_valuesrc.py b/plotly/validators/volume/_valuesrc.py index 90b461e8ed..cac480a946 100644 --- a/plotly/validators/volume/_valuesrc.py +++ b/plotly/validators/volume/_valuesrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValuesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/volume/_visible.py b/plotly/validators/volume/_visible.py index 5839b64d46..0a9ec35e67 100644 --- a/plotly/validators/volume/_visible.py +++ b/plotly/validators/volume/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/volume/_x.py b/plotly/validators/volume/_x.py index bad81ad954..4f1a0a6eda 100644 --- a/plotly/validators/volume/_x.py +++ b/plotly/validators/volume/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/volume/_xhoverformat.py b/plotly/validators/volume/_xhoverformat.py index aa1c789505..207940dffb 100644 --- a/plotly/validators/volume/_xhoverformat.py +++ b/plotly/validators/volume/_xhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/_xsrc.py b/plotly/validators/volume/_xsrc.py index 6dd4c7c11c..068ecf9451 100644 --- a/plotly/validators/volume/_xsrc.py +++ b/plotly/validators/volume/_xsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/volume/_y.py b/plotly/validators/volume/_y.py index 4856d47c60..6d48b5f30d 100644 --- a/plotly/validators/volume/_y.py +++ b/plotly/validators/volume/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/volume/_yhoverformat.py b/plotly/validators/volume/_yhoverformat.py index 952c8abcae..125a3a6f00 100644 --- a/plotly/validators/volume/_yhoverformat.py +++ b/plotly/validators/volume/_yhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/_ysrc.py b/plotly/validators/volume/_ysrc.py index 81b7c481fb..5557686c02 100644 --- a/plotly/validators/volume/_ysrc.py +++ b/plotly/validators/volume/_ysrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/volume/_z.py b/plotly/validators/volume/_z.py index 3344f4775f..28c091be01 100644 --- a/plotly/validators/volume/_z.py +++ b/plotly/validators/volume/_z.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/volume/_zhoverformat.py b/plotly/validators/volume/_zhoverformat.py index 76962dba65..7d6c1eb827 100644 --- a/plotly/validators/volume/_zhoverformat.py +++ b/plotly/validators/volume/_zhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/_zsrc.py b/plotly/validators/volume/_zsrc.py index 525ac4448a..a81eeccde5 100644 --- a/plotly/validators/volume/_zsrc.py +++ b/plotly/validators/volume/_zsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/volume/caps/__init__.py b/plotly/validators/volume/caps/__init__.py index 52779f59bc..8c47d2db5f 100644 --- a/plotly/validators/volume/caps/__init__.py +++ b/plotly/validators/volume/caps/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] +) diff --git a/plotly/validators/volume/caps/_x.py b/plotly/validators/volume/caps/_x.py index ec36820892..0b72b73549 100644 --- a/plotly/validators/volume/caps/_x.py +++ b/plotly/validators/volume/caps/_x.py @@ -1,28 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/volume/caps/_y.py b/plotly/validators/volume/caps/_y.py index 742099a6a4..9f2cb71a39 100644 --- a/plotly/validators/volume/caps/_y.py +++ b/plotly/validators/volume/caps/_y.py @@ -1,28 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/volume/caps/_z.py b/plotly/validators/volume/caps/_z.py index e2cd6b89c7..fc3d95a63f 100644 --- a/plotly/validators/volume/caps/_z.py +++ b/plotly/validators/volume/caps/_z.py @@ -1,28 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/volume/caps/x/__init__.py b/plotly/validators/volume/caps/x/__init__.py index 63a14620d2..db8b1b549e 100644 --- a/plotly/validators/volume/caps/x/__init__.py +++ b/plotly/validators/volume/caps/x/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._show.ShowValidator", "._fill.FillValidator"] +) diff --git a/plotly/validators/volume/caps/x/_fill.py b/plotly/validators/volume/caps/x/_fill.py index 78d2fc67d4..0f2bbddcda 100644 --- a/plotly/validators/volume/caps/x/_fill.py +++ b/plotly/validators/volume/caps/x/_fill.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/volume/caps/x/_show.py b/plotly/validators/volume/caps/x/_show.py index b8c756e69e..3a0b2eacbb 100644 --- a/plotly/validators/volume/caps/x/_show.py +++ b/plotly/validators/volume/caps/x/_show.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/caps/y/__init__.py b/plotly/validators/volume/caps/y/__init__.py index 63a14620d2..db8b1b549e 100644 --- a/plotly/validators/volume/caps/y/__init__.py +++ b/plotly/validators/volume/caps/y/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._show.ShowValidator", "._fill.FillValidator"] +) diff --git a/plotly/validators/volume/caps/y/_fill.py b/plotly/validators/volume/caps/y/_fill.py index ab08833f38..e449fb4453 100644 --- a/plotly/validators/volume/caps/y/_fill.py +++ b/plotly/validators/volume/caps/y/_fill.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/volume/caps/y/_show.py b/plotly/validators/volume/caps/y/_show.py index 60504380ba..15648cee2c 100644 --- a/plotly/validators/volume/caps/y/_show.py +++ b/plotly/validators/volume/caps/y/_show.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/caps/z/__init__.py b/plotly/validators/volume/caps/z/__init__.py index 63a14620d2..db8b1b549e 100644 --- a/plotly/validators/volume/caps/z/__init__.py +++ b/plotly/validators/volume/caps/z/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._show.ShowValidator", "._fill.FillValidator"] +) diff --git a/plotly/validators/volume/caps/z/_fill.py b/plotly/validators/volume/caps/z/_fill.py index 2e86e611ab..0f589bde7a 100644 --- a/plotly/validators/volume/caps/z/_fill.py +++ b/plotly/validators/volume/caps/z/_fill.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/volume/caps/z/_show.py b/plotly/validators/volume/caps/z/_show.py index c99ded1cc6..9e565e188c 100644 --- a/plotly/validators/volume/caps/z/_show.py +++ b/plotly/validators/volume/caps/z/_show.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/colorbar/__init__.py b/plotly/validators/volume/colorbar/__init__.py index 84963a2c1b..abd0778e60 100644 --- a/plotly/validators/volume/colorbar/__init__.py +++ b/plotly/validators/volume/colorbar/__init__.py @@ -1,111 +1,58 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._yref import YrefValidator - from ._ypad import YpadValidator - from ._yanchor import YanchorValidator - from ._y import YValidator - from ._xref import XrefValidator - from ._xpad import XpadValidator - from ._xanchor import XanchorValidator - from ._x import XValidator - from ._title import TitleValidator - from ._tickwidth import TickwidthValidator - from ._tickvalssrc import TickvalssrcValidator - from ._tickvals import TickvalsValidator - from ._ticktextsrc import TicktextsrcValidator - from ._ticktext import TicktextValidator - from ._ticksuffix import TicksuffixValidator - from ._ticks import TicksValidator - from ._tickprefix import TickprefixValidator - from ._tickmode import TickmodeValidator - from ._ticklen import TicklenValidator - from ._ticklabelstep import TicklabelstepValidator - from ._ticklabelposition import TicklabelpositionValidator - from ._ticklabeloverflow import TicklabeloverflowValidator - from ._tickformatstopdefaults import TickformatstopdefaultsValidator - from ._tickformatstops import TickformatstopsValidator - from ._tickformat import TickformatValidator - from ._tickfont import TickfontValidator - from ._tickcolor import TickcolorValidator - from ._tickangle import TickangleValidator - from ._tick0 import Tick0Validator - from ._thicknessmode import ThicknessmodeValidator - from ._thickness import ThicknessValidator - from ._showticksuffix import ShowticksuffixValidator - from ._showtickprefix import ShowtickprefixValidator - from ._showticklabels import ShowticklabelsValidator - from ._showexponent import ShowexponentValidator - from ._separatethousands import SeparatethousandsValidator - from ._outlinewidth import OutlinewidthValidator - from ._outlinecolor import OutlinecolorValidator - from ._orientation import OrientationValidator - from ._nticks import NticksValidator - from ._minexponent import MinexponentValidator - from ._lenmode import LenmodeValidator - from ._len import LenValidator - from ._labelalias import LabelaliasValidator - from ._exponentformat import ExponentformatValidator - from ._dtick import DtickValidator - from ._borderwidth import BorderwidthValidator - from ._bordercolor import BordercolorValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/volume/colorbar/_bgcolor.py b/plotly/validators/volume/colorbar/_bgcolor.py index 5e04811664..c1c6403c49 100644 --- a/plotly/validators/volume/colorbar/_bgcolor.py +++ b/plotly/validators/volume/colorbar/_bgcolor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/colorbar/_bordercolor.py b/plotly/validators/volume/colorbar/_bordercolor.py index 3cf7dc93c5..a7b9e9c27c 100644 --- a/plotly/validators/volume/colorbar/_bordercolor.py +++ b/plotly/validators/volume/colorbar/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/colorbar/_borderwidth.py b/plotly/validators/volume/colorbar/_borderwidth.py index 0fc61fa131..f527e321a9 100644 --- a/plotly/validators/volume/colorbar/_borderwidth.py +++ b/plotly/validators/volume/colorbar/_borderwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BorderwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/volume/colorbar/_dtick.py b/plotly/validators/volume/colorbar/_dtick.py index beb75921c0..5ee7e2f137 100644 --- a/plotly/validators/volume/colorbar/_dtick.py +++ b/plotly/validators/volume/colorbar/_dtick.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/volume/colorbar/_exponentformat.py b/plotly/validators/volume/colorbar/_exponentformat.py index 406ac26c3d..00f9fee7b9 100644 --- a/plotly/validators/volume/colorbar/_exponentformat.py +++ b/plotly/validators/volume/colorbar/_exponentformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ExponentformatValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["none", "e", "E", "power", "SI", "B"]), **kwargs, diff --git a/plotly/validators/volume/colorbar/_labelalias.py b/plotly/validators/volume/colorbar/_labelalias.py index e1eaf06e52..25e4ed0177 100644 --- a/plotly/validators/volume/colorbar/_labelalias.py +++ b/plotly/validators/volume/colorbar/_labelalias.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LabelaliasValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/colorbar/_len.py b/plotly/validators/volume/colorbar/_len.py index 031a3d5fc8..dfb728123f 100644 --- a/plotly/validators/volume/colorbar/_len.py +++ b/plotly/validators/volume/colorbar/_len.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/volume/colorbar/_lenmode.py b/plotly/validators/volume/colorbar/_lenmode.py index 9cf413d0a2..69867ff31e 100644 --- a/plotly/validators/volume/colorbar/_lenmode.py +++ b/plotly/validators/volume/colorbar/_lenmode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LenmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/volume/colorbar/_minexponent.py b/plotly/validators/volume/colorbar/_minexponent.py index 6e77c8b878..32cc25bfd2 100644 --- a/plotly/validators/volume/colorbar/_minexponent.py +++ b/plotly/validators/volume/colorbar/_minexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MinexponentValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/volume/colorbar/_nticks.py b/plotly/validators/volume/colorbar/_nticks.py index 80113752ac..b219560c26 100644 --- a/plotly/validators/volume/colorbar/_nticks.py +++ b/plotly/validators/volume/colorbar/_nticks.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NticksValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/volume/colorbar/_orientation.py b/plotly/validators/volume/colorbar/_orientation.py index dfb40e658c..49e6dfe2b2 100644 --- a/plotly/validators/volume/colorbar/_orientation.py +++ b/plotly/validators/volume/colorbar/_orientation.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["h", "v"]), **kwargs, diff --git a/plotly/validators/volume/colorbar/_outlinecolor.py b/plotly/validators/volume/colorbar/_outlinecolor.py index 4344235891..e96255db44 100644 --- a/plotly/validators/volume/colorbar/_outlinecolor.py +++ b/plotly/validators/volume/colorbar/_outlinecolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinecolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/colorbar/_outlinewidth.py b/plotly/validators/volume/colorbar/_outlinewidth.py index 23a7376625..7474400bf3 100644 --- a/plotly/validators/volume/colorbar/_outlinewidth.py +++ b/plotly/validators/volume/colorbar/_outlinewidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutlinewidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/volume/colorbar/_separatethousands.py b/plotly/validators/volume/colorbar/_separatethousands.py index 9b8fa68637..dd9d91a6ad 100644 --- a/plotly/validators/volume/colorbar/_separatethousands.py +++ b/plotly/validators/volume/colorbar/_separatethousands.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SeparatethousandsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/colorbar/_showexponent.py b/plotly/validators/volume/colorbar/_showexponent.py index fda6ad518f..12225dabfb 100644 --- a/plotly/validators/volume/colorbar/_showexponent.py +++ b/plotly/validators/volume/colorbar/_showexponent.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowexponentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/volume/colorbar/_showticklabels.py b/plotly/validators/volume/colorbar/_showticklabels.py index 4c95b5be1a..6e5665a696 100644 --- a/plotly/validators/volume/colorbar/_showticklabels.py +++ b/plotly/validators/volume/colorbar/_showticklabels.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticklabelsValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/colorbar/_showtickprefix.py b/plotly/validators/volume/colorbar/_showtickprefix.py index 1d56db9cda..11e58fd71c 100644 --- a/plotly/validators/volume/colorbar/_showtickprefix.py +++ b/plotly/validators/volume/colorbar/_showtickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowtickprefixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/volume/colorbar/_showticksuffix.py b/plotly/validators/volume/colorbar/_showticksuffix.py index ca0d51fa99..af67a3f5bc 100644 --- a/plotly/validators/volume/colorbar/_showticksuffix.py +++ b/plotly/validators/volume/colorbar/_showticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowticksuffixValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["all", "first", "last", "none"]), **kwargs, diff --git a/plotly/validators/volume/colorbar/_thickness.py b/plotly/validators/volume/colorbar/_thickness.py index 2c9aedfc8a..1be49722da 100644 --- a/plotly/validators/volume/colorbar/_thickness.py +++ b/plotly/validators/volume/colorbar/_thickness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/volume/colorbar/_thicknessmode.py b/plotly/validators/volume/colorbar/_thicknessmode.py index 389ac7245b..57bd5e9339 100644 --- a/plotly/validators/volume/colorbar/_thicknessmode.py +++ b/plotly/validators/volume/colorbar/_thicknessmode.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ThicknessmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["fraction", "pixels"]), **kwargs, diff --git a/plotly/validators/volume/colorbar/_tick0.py b/plotly/validators/volume/colorbar/_tick0.py index a816e01888..edbbe0a012 100644 --- a/plotly/validators/volume/colorbar/_tick0.py +++ b/plotly/validators/volume/colorbar/_tick0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Tick0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {"tickmode": "linear"}), **kwargs, diff --git a/plotly/validators/volume/colorbar/_tickangle.py b/plotly/validators/volume/colorbar/_tickangle.py index 6e4399f622..c7b0b7c095 100644 --- a/plotly/validators/volume/colorbar/_tickangle.py +++ b/plotly/validators/volume/colorbar/_tickangle.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/colorbar/_tickcolor.py b/plotly/validators/volume/colorbar/_tickcolor.py index c9b04e3653..00f30267cb 100644 --- a/plotly/validators/volume/colorbar/_tickcolor.py +++ b/plotly/validators/volume/colorbar/_tickcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/colorbar/_tickfont.py b/plotly/validators/volume/colorbar/_tickfont.py index ae4c8832f8..3c2d7cb05b 100644 --- a/plotly/validators/volume/colorbar/_tickfont.py +++ b/plotly/validators/volume/colorbar/_tickfont.py @@ -1,58 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickfont"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/volume/colorbar/_tickformat.py b/plotly/validators/volume/colorbar/_tickformat.py index d90a099b1f..2ffe316d18 100644 --- a/plotly/validators/volume/colorbar/_tickformat.py +++ b/plotly/validators/volume/colorbar/_tickformat.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/colorbar/_tickformatstopdefaults.py b/plotly/validators/volume/colorbar/_tickformatstopdefaults.py index f98a1f4dd5..c4e7ea5774 100644 --- a/plotly/validators/volume/colorbar/_tickformatstopdefaults.py +++ b/plotly/validators/volume/colorbar/_tickformatstopdefaults.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopdefaultsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Tickformatstop"), data_docs=kwargs.pop( "data_docs", diff --git a/plotly/validators/volume/colorbar/_tickformatstops.py b/plotly/validators/volume/colorbar/_tickformatstops.py index b3dfeef23a..7538d2f3d6 100644 --- a/plotly/validators/volume/colorbar/_tickformatstops.py +++ b/plotly/validators/volume/colorbar/_tickformatstops.py @@ -1,50 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickformatstopsValidator(_plotly_utils.basevalidators.CompoundArrayValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/volume/colorbar/_ticklabeloverflow.py b/plotly/validators/volume/colorbar/_ticklabeloverflow.py index f1b8e4f2e1..f0bdc5e195 100644 --- a/plotly/validators/volume/colorbar/_ticklabeloverflow.py +++ b/plotly/validators/volume/colorbar/_ticklabeloverflow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabeloverflowValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["allow", "hide past div", "hide past domain"]), **kwargs, diff --git a/plotly/validators/volume/colorbar/_ticklabelposition.py b/plotly/validators/volume/colorbar/_ticklabelposition.py index db52f99ffc..75bc650a40 100644 --- a/plotly/validators/volume/colorbar/_ticklabelposition.py +++ b/plotly/validators/volume/colorbar/_ticklabelposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/volume/colorbar/_ticklabelstep.py b/plotly/validators/volume/colorbar/_ticklabelstep.py index e058309c5b..ecc8ff4f23 100644 --- a/plotly/validators/volume/colorbar/_ticklabelstep.py +++ b/plotly/validators/volume/colorbar/_ticklabelstep.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklabelstepValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/volume/colorbar/_ticklen.py b/plotly/validators/volume/colorbar/_ticklen.py index 7680d6e8f0..8fad74165a 100644 --- a/plotly/validators/volume/colorbar/_ticklen.py +++ b/plotly/validators/volume/colorbar/_ticklen.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicklenValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/volume/colorbar/_tickmode.py b/plotly/validators/volume/colorbar/_tickmode.py index 96ed169985..94c38d20c9 100644 --- a/plotly/validators/volume/colorbar/_tickmode.py +++ b/plotly/validators/volume/colorbar/_tickmode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickmodeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), implied_edits=kwargs.pop("implied_edits", {}), values=kwargs.pop("values", ["auto", "linear", "array"]), diff --git a/plotly/validators/volume/colorbar/_tickprefix.py b/plotly/validators/volume/colorbar/_tickprefix.py index 2911fda0c7..def868f7f6 100644 --- a/plotly/validators/volume/colorbar/_tickprefix.py +++ b/plotly/validators/volume/colorbar/_tickprefix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickprefixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/colorbar/_ticks.py b/plotly/validators/volume/colorbar/_ticks.py index 486767020e..9996a229d3 100644 --- a/plotly/validators/volume/colorbar/_ticks.py +++ b/plotly/validators/volume/colorbar/_ticks.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["outside", "inside", ""]), **kwargs, diff --git a/plotly/validators/volume/colorbar/_ticksuffix.py b/plotly/validators/volume/colorbar/_ticksuffix.py index 70f5c9913e..08df5b9151 100644 --- a/plotly/validators/volume/colorbar/_ticksuffix.py +++ b/plotly/validators/volume/colorbar/_ticksuffix.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicksuffixValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/colorbar/_ticktext.py b/plotly/validators/volume/colorbar/_ticktext.py index 5916b6d86b..a9cd5b385d 100644 --- a/plotly/validators/volume/colorbar/_ticktext.py +++ b/plotly/validators/volume/colorbar/_ticktext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/colorbar/_ticktextsrc.py b/plotly/validators/volume/colorbar/_ticktextsrc.py index 0705e477f3..2e97dc9ba1 100644 --- a/plotly/validators/volume/colorbar/_ticktextsrc.py +++ b/plotly/validators/volume/colorbar/_ticktextsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TicktextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/volume/colorbar/_tickvals.py b/plotly/validators/volume/colorbar/_tickvals.py index 56999179b8..41b1979e99 100644 --- a/plotly/validators/volume/colorbar/_tickvals.py +++ b/plotly/validators/volume/colorbar/_tickvals.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/colorbar/_tickvalssrc.py b/plotly/validators/volume/colorbar/_tickvalssrc.py index c09d9e02b2..3fc0674fd4 100644 --- a/plotly/validators/volume/colorbar/_tickvalssrc.py +++ b/plotly/validators/volume/colorbar/_tickvalssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickvalssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/volume/colorbar/_tickwidth.py b/plotly/validators/volume/colorbar/_tickwidth.py index 0a4242444c..0804884464 100644 --- a/plotly/validators/volume/colorbar/_tickwidth.py +++ b/plotly/validators/volume/colorbar/_tickwidth.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TickwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/volume/colorbar/_title.py b/plotly/validators/volume/colorbar/_title.py index f53559f69d..4cf43ebb69 100644 --- a/plotly/validators/volume/colorbar/_title.py +++ b/plotly/validators/volume/colorbar/_title.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TitleValidator(_plotly_utils.basevalidators.TitleValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/volume/colorbar/_x.py b/plotly/validators/volume/colorbar/_x.py index 170aed8caf..4ca28cccc4 100644 --- a/plotly/validators/volume/colorbar/_x.py +++ b/plotly/validators/volume/colorbar/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/colorbar/_xanchor.py b/plotly/validators/volume/colorbar/_xanchor.py index 5171595d22..3fe23585cd 100644 --- a/plotly/validators/volume/colorbar/_xanchor.py +++ b/plotly/validators/volume/colorbar/_xanchor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["left", "center", "right"]), **kwargs, diff --git a/plotly/validators/volume/colorbar/_xpad.py b/plotly/validators/volume/colorbar/_xpad.py index 3cfdcfa8d2..7ee78c67e4 100644 --- a/plotly/validators/volume/colorbar/_xpad.py +++ b/plotly/validators/volume/colorbar/_xpad.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/volume/colorbar/_xref.py b/plotly/validators/volume/colorbar/_xref.py index 17bf3f82aa..fb237fa55d 100644 --- a/plotly/validators/volume/colorbar/_xref.py +++ b/plotly/validators/volume/colorbar/_xref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/volume/colorbar/_y.py b/plotly/validators/volume/colorbar/_y.py index a2f5901265..1e7030c0fb 100644 --- a/plotly/validators/volume/colorbar/_y.py +++ b/plotly/validators/volume/colorbar/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/colorbar/_yanchor.py b/plotly/validators/volume/colorbar/_yanchor.py index 3774110545..ab1fac44ca 100644 --- a/plotly/validators/volume/colorbar/_yanchor.py +++ b/plotly/validators/volume/colorbar/_yanchor.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["top", "middle", "bottom"]), **kwargs, diff --git a/plotly/validators/volume/colorbar/_ypad.py b/plotly/validators/volume/colorbar/_ypad.py index 919ae21ce4..9ad980e10f 100644 --- a/plotly/validators/volume/colorbar/_ypad.py +++ b/plotly/validators/volume/colorbar/_ypad.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YpadValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/volume/colorbar/_yref.py b/plotly/validators/volume/colorbar/_yref.py index 15276d97ac..b9933b7761 100644 --- a/plotly/validators/volume/colorbar/_yref.py +++ b/plotly/validators/volume/colorbar/_yref.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YrefValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["container", "paper"]), **kwargs, diff --git a/plotly/validators/volume/colorbar/tickfont/__init__.py b/plotly/validators/volume/colorbar/tickfont/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/volume/colorbar/tickfont/__init__.py +++ b/plotly/validators/volume/colorbar/tickfont/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/volume/colorbar/tickfont/_color.py b/plotly/validators/volume/colorbar/tickfont/_color.py index ae47f79177..95158273c8 100644 --- a/plotly/validators/volume/colorbar/tickfont/_color.py +++ b/plotly/validators/volume/colorbar/tickfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/colorbar/tickfont/_family.py b/plotly/validators/volume/colorbar/tickfont/_family.py index 3284e76d2f..e42568779a 100644 --- a/plotly/validators/volume/colorbar/tickfont/_family.py +++ b/plotly/validators/volume/colorbar/tickfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/volume/colorbar/tickfont/_lineposition.py b/plotly/validators/volume/colorbar/tickfont/_lineposition.py index dd2c847c4a..3fe8f32d9d 100644 --- a/plotly/validators/volume/colorbar/tickfont/_lineposition.py +++ b/plotly/validators/volume/colorbar/tickfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/volume/colorbar/tickfont/_shadow.py b/plotly/validators/volume/colorbar/tickfont/_shadow.py index 267a9e591b..7931f7ff7a 100644 --- a/plotly/validators/volume/colorbar/tickfont/_shadow.py +++ b/plotly/validators/volume/colorbar/tickfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/colorbar/tickfont/_size.py b/plotly/validators/volume/colorbar/tickfont/_size.py index 743f7b5c2a..49d5a54b8e 100644 --- a/plotly/validators/volume/colorbar/tickfont/_size.py +++ b/plotly/validators/volume/colorbar/tickfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/volume/colorbar/tickfont/_style.py b/plotly/validators/volume/colorbar/tickfont/_style.py index fcb73b3f58..d14a52ef76 100644 --- a/plotly/validators/volume/colorbar/tickfont/_style.py +++ b/plotly/validators/volume/colorbar/tickfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/volume/colorbar/tickfont/_textcase.py b/plotly/validators/volume/colorbar/tickfont/_textcase.py index b0397b4541..04ad9396d6 100644 --- a/plotly/validators/volume/colorbar/tickfont/_textcase.py +++ b/plotly/validators/volume/colorbar/tickfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/volume/colorbar/tickfont/_variant.py b/plotly/validators/volume/colorbar/tickfont/_variant.py index 4d1705732e..3083400964 100644 --- a/plotly/validators/volume/colorbar/tickfont/_variant.py +++ b/plotly/validators/volume/colorbar/tickfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/volume/colorbar/tickfont/_weight.py b/plotly/validators/volume/colorbar/tickfont/_weight.py index 50e15d0c69..b178412c22 100644 --- a/plotly/validators/volume/colorbar/tickfont/_weight.py +++ b/plotly/validators/volume/colorbar/tickfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/volume/colorbar/tickformatstop/__init__.py b/plotly/validators/volume/colorbar/tickformatstop/__init__.py index 559090a1de..59ff89e603 100644 --- a/plotly/validators/volume/colorbar/tickformatstop/__init__.py +++ b/plotly/validators/volume/colorbar/tickformatstop/__init__.py @@ -1,23 +1,14 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._value import ValueValidator - from ._templateitemname import TemplateitemnameValidator - from ._name import NameValidator - from ._enabled import EnabledValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._value.ValueValidator", + "._templateitemname.TemplateitemnameValidator", + "._name.NameValidator", + "._enabled.EnabledValidator", + "._dtickrange.DtickrangeValidator", + ], +) diff --git a/plotly/validators/volume/colorbar/tickformatstop/_dtickrange.py b/plotly/validators/volume/colorbar/tickformatstop/_dtickrange.py index 2292d75b7c..f782e37af4 100644 --- a/plotly/validators/volume/colorbar/tickformatstop/_dtickrange.py +++ b/plotly/validators/volume/colorbar/tickformatstop/_dtickrange.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DtickrangeValidator(_plotly_utils.basevalidators.InfoArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), items=kwargs.pop( "items", diff --git a/plotly/validators/volume/colorbar/tickformatstop/_enabled.py b/plotly/validators/volume/colorbar/tickformatstop/_enabled.py index 0562c837fa..640128f4ef 100644 --- a/plotly/validators/volume/colorbar/tickformatstop/_enabled.py +++ b/plotly/validators/volume/colorbar/tickformatstop/_enabled.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class EnabledValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/colorbar/tickformatstop/_name.py b/plotly/validators/volume/colorbar/tickformatstop/_name.py index b9ca37ebea..73c46a57fc 100644 --- a/plotly/validators/volume/colorbar/tickformatstop/_name.py +++ b/plotly/validators/volume/colorbar/tickformatstop/_name.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/colorbar/tickformatstop/_templateitemname.py b/plotly/validators/volume/colorbar/tickformatstop/_templateitemname.py index b92cda04be..1ce69381f2 100644 --- a/plotly/validators/volume/colorbar/tickformatstop/_templateitemname.py +++ b/plotly/validators/volume/colorbar/tickformatstop/_templateitemname.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TemplateitemnameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/colorbar/tickformatstop/_value.py b/plotly/validators/volume/colorbar/tickformatstop/_value.py index 961347a67b..a6192dc36f 100644 --- a/plotly/validators/volume/colorbar/tickformatstop/_value.py +++ b/plotly/validators/volume/colorbar/tickformatstop/_value.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ValueValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/colorbar/title/__init__.py b/plotly/validators/volume/colorbar/title/__init__.py index 1aae6a91aa..d5af3ccb3a 100644 --- a/plotly/validators/volume/colorbar/title/__init__.py +++ b/plotly/validators/volume/colorbar/title/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._text.TextValidator", "._side.SideValidator", "._font.FontValidator"], +) diff --git a/plotly/validators/volume/colorbar/title/_font.py b/plotly/validators/volume/colorbar/title/_font.py index 106ec7fa5e..a774b8edeb 100644 --- a/plotly/validators/volume/colorbar/title/_font.py +++ b/plotly/validators/volume/colorbar/title/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/volume/colorbar/title/_side.py b/plotly/validators/volume/colorbar/title/_side.py index 51c9230da5..95058c182c 100644 --- a/plotly/validators/volume/colorbar/title/_side.py +++ b/plotly/validators/volume/colorbar/title/_side.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SideValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["right", "top", "bottom"]), **kwargs, diff --git a/plotly/validators/volume/colorbar/title/_text.py b/plotly/validators/volume/colorbar/title/_text.py index 12c9d39663..a6ebb7a3a4 100644 --- a/plotly/validators/volume/colorbar/title/_text.py +++ b/plotly/validators/volume/colorbar/title/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/colorbar/title/font/__init__.py b/plotly/validators/volume/colorbar/title/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/volume/colorbar/title/font/__init__.py +++ b/plotly/validators/volume/colorbar/title/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/volume/colorbar/title/font/_color.py b/plotly/validators/volume/colorbar/title/font/_color.py index 84d2f45c2e..d53d67b2a8 100644 --- a/plotly/validators/volume/colorbar/title/font/_color.py +++ b/plotly/validators/volume/colorbar/title/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/colorbar/title/font/_family.py b/plotly/validators/volume/colorbar/title/font/_family.py index 8fc22e6831..95d6f43bac 100644 --- a/plotly/validators/volume/colorbar/title/font/_family.py +++ b/plotly/validators/volume/colorbar/title/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/volume/colorbar/title/font/_lineposition.py b/plotly/validators/volume/colorbar/title/font/_lineposition.py index 43a6b1ec8b..a20b48eea0 100644 --- a/plotly/validators/volume/colorbar/title/font/_lineposition.py +++ b/plotly/validators/volume/colorbar/title/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/volume/colorbar/title/font/_shadow.py b/plotly/validators/volume/colorbar/title/font/_shadow.py index d8a75c3768..0ddbc48cf5 100644 --- a/plotly/validators/volume/colorbar/title/font/_shadow.py +++ b/plotly/validators/volume/colorbar/title/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/colorbar/title/font/_size.py b/plotly/validators/volume/colorbar/title/font/_size.py index 95075d66c2..a58399ec76 100644 --- a/plotly/validators/volume/colorbar/title/font/_size.py +++ b/plotly/validators/volume/colorbar/title/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/volume/colorbar/title/font/_style.py b/plotly/validators/volume/colorbar/title/font/_style.py index 21fe72ee45..f370bc14a8 100644 --- a/plotly/validators/volume/colorbar/title/font/_style.py +++ b/plotly/validators/volume/colorbar/title/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/volume/colorbar/title/font/_textcase.py b/plotly/validators/volume/colorbar/title/font/_textcase.py index c5ca7ce220..5f0856bebc 100644 --- a/plotly/validators/volume/colorbar/title/font/_textcase.py +++ b/plotly/validators/volume/colorbar/title/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/volume/colorbar/title/font/_variant.py b/plotly/validators/volume/colorbar/title/font/_variant.py index 2840848d7c..fa77c03dfa 100644 --- a/plotly/validators/volume/colorbar/title/font/_variant.py +++ b/plotly/validators/volume/colorbar/title/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( "values", diff --git a/plotly/validators/volume/colorbar/title/font/_weight.py b/plotly/validators/volume/colorbar/title/font/_weight.py index 0df0a68364..a55fb96fed 100644 --- a/plotly/validators/volume/colorbar/title/font/_weight.py +++ b/plotly/validators/volume/colorbar/title/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/volume/contour/__init__.py b/plotly/validators/volume/contour/__init__.py index 8d51b1d4c0..1a1cc3031d 100644 --- a/plotly/validators/volume/contour/__init__.py +++ b/plotly/validators/volume/contour/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._width.WidthValidator", "._show.ShowValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/volume/contour/_color.py b/plotly/validators/volume/contour/_color.py index 21dc7dd171..d8c0896de0 100644 --- a/plotly/validators/volume/contour/_color.py +++ b/plotly/validators/volume/contour/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/contour/_show.py b/plotly/validators/volume/contour/_show.py index 2dda119169..07394ea8ba 100644 --- a/plotly/validators/volume/contour/_show.py +++ b/plotly/validators/volume/contour/_show.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/contour/_width.py b/plotly/validators/volume/contour/_width.py index 6a9cfb4f63..891c7ccfb8 100644 --- a/plotly/validators/volume/contour/_width.py +++ b/plotly/validators/volume/contour/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 16), min=kwargs.pop("min", 1), diff --git a/plotly/validators/volume/hoverlabel/__init__.py b/plotly/validators/volume/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/volume/hoverlabel/__init__.py +++ b/plotly/validators/volume/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/volume/hoverlabel/_align.py b/plotly/validators/volume/hoverlabel/_align.py index 699a124b26..f49d74952c 100644 --- a/plotly/validators/volume/hoverlabel/_align.py +++ b/plotly/validators/volume/hoverlabel/_align.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/volume/hoverlabel/_alignsrc.py b/plotly/validators/volume/hoverlabel/_alignsrc.py index fa1623625d..89de06f705 100644 --- a/plotly/validators/volume/hoverlabel/_alignsrc.py +++ b/plotly/validators/volume/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/volume/hoverlabel/_bgcolor.py b/plotly/validators/volume/hoverlabel/_bgcolor.py index ef638e52f2..419524047f 100644 --- a/plotly/validators/volume/hoverlabel/_bgcolor.py +++ b/plotly/validators/volume/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/volume/hoverlabel/_bgcolorsrc.py b/plotly/validators/volume/hoverlabel/_bgcolorsrc.py index fb9d54199d..78918d64c4 100644 --- a/plotly/validators/volume/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/volume/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/volume/hoverlabel/_bordercolor.py b/plotly/validators/volume/hoverlabel/_bordercolor.py index 413395a071..52940c6117 100644 --- a/plotly/validators/volume/hoverlabel/_bordercolor.py +++ b/plotly/validators/volume/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/volume/hoverlabel/_bordercolorsrc.py b/plotly/validators/volume/hoverlabel/_bordercolorsrc.py index 11739e7f87..2163601385 100644 --- a/plotly/validators/volume/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/volume/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/volume/hoverlabel/_font.py b/plotly/validators/volume/hoverlabel/_font.py index 99a69986ac..deb8273562 100644 --- a/plotly/validators/volume/hoverlabel/_font.py +++ b/plotly/validators/volume/hoverlabel/_font.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/volume/hoverlabel/_namelength.py b/plotly/validators/volume/hoverlabel/_namelength.py index 183c888e0c..1e2efec264 100644 --- a/plotly/validators/volume/hoverlabel/_namelength.py +++ b/plotly/validators/volume/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/volume/hoverlabel/_namelengthsrc.py b/plotly/validators/volume/hoverlabel/_namelengthsrc.py index 14c94db660..cc3ec855c5 100644 --- a/plotly/validators/volume/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/volume/hoverlabel/_namelengthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/volume/hoverlabel/font/__init__.py b/plotly/validators/volume/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/volume/hoverlabel/font/__init__.py +++ b/plotly/validators/volume/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/volume/hoverlabel/font/_color.py b/plotly/validators/volume/hoverlabel/font/_color.py index 82c7199d64..549c5bb0e6 100644 --- a/plotly/validators/volume/hoverlabel/font/_color.py +++ b/plotly/validators/volume/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/volume/hoverlabel/font/_colorsrc.py b/plotly/validators/volume/hoverlabel/font/_colorsrc.py index 83ac6c8ff4..5d3d2010d0 100644 --- a/plotly/validators/volume/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/volume/hoverlabel/font/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/volume/hoverlabel/font/_family.py b/plotly/validators/volume/hoverlabel/font/_family.py index 1731332694..df0f4345c1 100644 --- a/plotly/validators/volume/hoverlabel/font/_family.py +++ b/plotly/validators/volume/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/volume/hoverlabel/font/_familysrc.py b/plotly/validators/volume/hoverlabel/font/_familysrc.py index b517bb538a..b7420d787e 100644 --- a/plotly/validators/volume/hoverlabel/font/_familysrc.py +++ b/plotly/validators/volume/hoverlabel/font/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/volume/hoverlabel/font/_lineposition.py b/plotly/validators/volume/hoverlabel/font/_lineposition.py index 8356669e4f..d98e9b59b3 100644 --- a/plotly/validators/volume/hoverlabel/font/_lineposition.py +++ b/plotly/validators/volume/hoverlabel/font/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/volume/hoverlabel/font/_linepositionsrc.py b/plotly/validators/volume/hoverlabel/font/_linepositionsrc.py index 43683aae5e..3ebfcb667b 100644 --- a/plotly/validators/volume/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/volume/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/volume/hoverlabel/font/_shadow.py b/plotly/validators/volume/hoverlabel/font/_shadow.py index ad268f99da..6ba3fe2432 100644 --- a/plotly/validators/volume/hoverlabel/font/_shadow.py +++ b/plotly/validators/volume/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/volume/hoverlabel/font/_shadowsrc.py b/plotly/validators/volume/hoverlabel/font/_shadowsrc.py index e632b27076..eaa5e6f295 100644 --- a/plotly/validators/volume/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/volume/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/volume/hoverlabel/font/_size.py b/plotly/validators/volume/hoverlabel/font/_size.py index dcfaa0ad17..cd879c092a 100644 --- a/plotly/validators/volume/hoverlabel/font/_size.py +++ b/plotly/validators/volume/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/volume/hoverlabel/font/_sizesrc.py b/plotly/validators/volume/hoverlabel/font/_sizesrc.py index 8769f6f1b5..a7130ec578 100644 --- a/plotly/validators/volume/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/volume/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/volume/hoverlabel/font/_style.py b/plotly/validators/volume/hoverlabel/font/_style.py index 7b7f68e73e..55c5f707e1 100644 --- a/plotly/validators/volume/hoverlabel/font/_style.py +++ b/plotly/validators/volume/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/volume/hoverlabel/font/_stylesrc.py b/plotly/validators/volume/hoverlabel/font/_stylesrc.py index 5460a89281..3303b5de0c 100644 --- a/plotly/validators/volume/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/volume/hoverlabel/font/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/volume/hoverlabel/font/_textcase.py b/plotly/validators/volume/hoverlabel/font/_textcase.py index 0bbf27ebe5..4ace6beacf 100644 --- a/plotly/validators/volume/hoverlabel/font/_textcase.py +++ b/plotly/validators/volume/hoverlabel/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/volume/hoverlabel/font/_textcasesrc.py b/plotly/validators/volume/hoverlabel/font/_textcasesrc.py index 68d48a0422..5a16cf3138 100644 --- a/plotly/validators/volume/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/volume/hoverlabel/font/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/volume/hoverlabel/font/_variant.py b/plotly/validators/volume/hoverlabel/font/_variant.py index fc29be909f..5acbf596fe 100644 --- a/plotly/validators/volume/hoverlabel/font/_variant.py +++ b/plotly/validators/volume/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/volume/hoverlabel/font/_variantsrc.py b/plotly/validators/volume/hoverlabel/font/_variantsrc.py index b351b21800..898c54ba52 100644 --- a/plotly/validators/volume/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/volume/hoverlabel/font/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/volume/hoverlabel/font/_weight.py b/plotly/validators/volume/hoverlabel/font/_weight.py index fdb1f9d5cb..3edc42c9fa 100644 --- a/plotly/validators/volume/hoverlabel/font/_weight.py +++ b/plotly/validators/volume/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/volume/hoverlabel/font/_weightsrc.py b/plotly/validators/volume/hoverlabel/font/_weightsrc.py index 4fe8d5561b..80a10fa851 100644 --- a/plotly/validators/volume/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/volume/hoverlabel/font/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/volume/legendgrouptitle/__init__.py b/plotly/validators/volume/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/volume/legendgrouptitle/__init__.py +++ b/plotly/validators/volume/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/volume/legendgrouptitle/_font.py b/plotly/validators/volume/legendgrouptitle/_font.py index de8ce1802a..fc97b05939 100644 --- a/plotly/validators/volume/legendgrouptitle/_font.py +++ b/plotly/validators/volume/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/volume/legendgrouptitle/_text.py b/plotly/validators/volume/legendgrouptitle/_text.py index e5114d2784..fc279c0e3a 100644 --- a/plotly/validators/volume/legendgrouptitle/_text.py +++ b/plotly/validators/volume/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/volume/legendgrouptitle/font/__init__.py b/plotly/validators/volume/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/volume/legendgrouptitle/font/__init__.py +++ b/plotly/validators/volume/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/volume/legendgrouptitle/font/_color.py b/plotly/validators/volume/legendgrouptitle/font/_color.py index 0f5cb4269c..f699a45b8a 100644 --- a/plotly/validators/volume/legendgrouptitle/font/_color.py +++ b/plotly/validators/volume/legendgrouptitle/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/volume/legendgrouptitle/font/_family.py b/plotly/validators/volume/legendgrouptitle/font/_family.py index 08a1202521..edec9aaea9 100644 --- a/plotly/validators/volume/legendgrouptitle/font/_family.py +++ b/plotly/validators/volume/legendgrouptitle/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/volume/legendgrouptitle/font/_lineposition.py b/plotly/validators/volume/legendgrouptitle/font/_lineposition.py index 27d5f154aa..fdc62aa2c7 100644 --- a/plotly/validators/volume/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/volume/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/volume/legendgrouptitle/font/_shadow.py b/plotly/validators/volume/legendgrouptitle/font/_shadow.py index b9bd1a45b2..afd540faf0 100644 --- a/plotly/validators/volume/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/volume/legendgrouptitle/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/volume/legendgrouptitle/font/_size.py b/plotly/validators/volume/legendgrouptitle/font/_size.py index a4dc323b09..e90e23c5bc 100644 --- a/plotly/validators/volume/legendgrouptitle/font/_size.py +++ b/plotly/validators/volume/legendgrouptitle/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/volume/legendgrouptitle/font/_style.py b/plotly/validators/volume/legendgrouptitle/font/_style.py index 94199d7ba0..8893def33d 100644 --- a/plotly/validators/volume/legendgrouptitle/font/_style.py +++ b/plotly/validators/volume/legendgrouptitle/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/volume/legendgrouptitle/font/_textcase.py b/plotly/validators/volume/legendgrouptitle/font/_textcase.py index 6ee77668a6..95a134aafc 100644 --- a/plotly/validators/volume/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/volume/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/volume/legendgrouptitle/font/_variant.py b/plotly/validators/volume/legendgrouptitle/font/_variant.py index 82c74c104d..9b776128b7 100644 --- a/plotly/validators/volume/legendgrouptitle/font/_variant.py +++ b/plotly/validators/volume/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/volume/legendgrouptitle/font/_weight.py b/plotly/validators/volume/legendgrouptitle/font/_weight.py index fc7fc3e2d0..165f6705ff 100644 --- a/plotly/validators/volume/legendgrouptitle/font/_weight.py +++ b/plotly/validators/volume/legendgrouptitle/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/volume/lighting/__init__.py b/plotly/validators/volume/lighting/__init__.py index 028351f35d..1f11e1b86f 100644 --- a/plotly/validators/volume/lighting/__init__.py +++ b/plotly/validators/volume/lighting/__init__.py @@ -1,27 +1,16 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._vertexnormalsepsilon import VertexnormalsepsilonValidator - from ._specular import SpecularValidator - from ._roughness import RoughnessValidator - from ._fresnel import FresnelValidator - from ._facenormalsepsilon import FacenormalsepsilonValidator - from ._diffuse import DiffuseValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._vertexnormalsepsilon.VertexnormalsepsilonValidator", + "._specular.SpecularValidator", + "._roughness.RoughnessValidator", + "._fresnel.FresnelValidator", + "._facenormalsepsilon.FacenormalsepsilonValidator", + "._diffuse.DiffuseValidator", + "._ambient.AmbientValidator", + ], +) diff --git a/plotly/validators/volume/lighting/_ambient.py b/plotly/validators/volume/lighting/_ambient.py index d1880fe9d5..45309ab32d 100644 --- a/plotly/validators/volume/lighting/_ambient.py +++ b/plotly/validators/volume/lighting/_ambient.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AmbientValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/volume/lighting/_diffuse.py b/plotly/validators/volume/lighting/_diffuse.py index f28d2251cb..091f80e48e 100644 --- a/plotly/validators/volume/lighting/_diffuse.py +++ b/plotly/validators/volume/lighting/_diffuse.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DiffuseValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/volume/lighting/_facenormalsepsilon.py b/plotly/validators/volume/lighting/_facenormalsepsilon.py index 7ebedd2428..d0873497ee 100644 --- a/plotly/validators/volume/lighting/_facenormalsepsilon.py +++ b/plotly/validators/volume/lighting/_facenormalsepsilon.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FacenormalsepsilonValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/volume/lighting/_fresnel.py b/plotly/validators/volume/lighting/_fresnel.py index 1afd128397..318ee390f8 100644 --- a/plotly/validators/volume/lighting/_fresnel.py +++ b/plotly/validators/volume/lighting/_fresnel.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FresnelValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 5), min=kwargs.pop("min", 0), diff --git a/plotly/validators/volume/lighting/_roughness.py b/plotly/validators/volume/lighting/_roughness.py index de256c1858..8340ec85c9 100644 --- a/plotly/validators/volume/lighting/_roughness.py +++ b/plotly/validators/volume/lighting/_roughness.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class RoughnessValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/volume/lighting/_specular.py b/plotly/validators/volume/lighting/_specular.py index 7581692c0a..a07219dd72 100644 --- a/plotly/validators/volume/lighting/_specular.py +++ b/plotly/validators/volume/lighting/_specular.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SpecularValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 2), min=kwargs.pop("min", 0), diff --git a/plotly/validators/volume/lighting/_vertexnormalsepsilon.py b/plotly/validators/volume/lighting/_vertexnormalsepsilon.py index 45254909fc..b9e85b6e18 100644 --- a/plotly/validators/volume/lighting/_vertexnormalsepsilon.py +++ b/plotly/validators/volume/lighting/_vertexnormalsepsilon.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VertexnormalsepsilonValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/volume/lightposition/__init__.py b/plotly/validators/volume/lightposition/__init__.py index 52779f59bc..8c47d2db5f 100644 --- a/plotly/validators/volume/lightposition/__init__.py +++ b/plotly/validators/volume/lightposition/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] +) diff --git a/plotly/validators/volume/lightposition/_x.py b/plotly/validators/volume/lightposition/_x.py index 15c8ed7b4d..54889ee655 100644 --- a/plotly/validators/volume/lightposition/_x.py +++ b/plotly/validators/volume/lightposition/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 100000), min=kwargs.pop("min", -100000), diff --git a/plotly/validators/volume/lightposition/_y.py b/plotly/validators/volume/lightposition/_y.py index e392d07200..6e512f4170 100644 --- a/plotly/validators/volume/lightposition/_y.py +++ b/plotly/validators/volume/lightposition/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 100000), min=kwargs.pop("min", -100000), diff --git a/plotly/validators/volume/lightposition/_z.py b/plotly/validators/volume/lightposition/_z.py index bddb66ccdc..aea9dea552 100644 --- a/plotly/validators/volume/lightposition/_z.py +++ b/plotly/validators/volume/lightposition/_z.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 100000), min=kwargs.pop("min", -100000), diff --git a/plotly/validators/volume/slices/__init__.py b/plotly/validators/volume/slices/__init__.py index 52779f59bc..8c47d2db5f 100644 --- a/plotly/validators/volume/slices/__init__.py +++ b/plotly/validators/volume/slices/__init__.py @@ -1,13 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._z.ZValidator", "._y.YValidator", "._x.XValidator"] +) diff --git a/plotly/validators/volume/slices/_x.py b/plotly/validators/volume/slices/_x.py index 5f0fb5c1aa..24a11d353c 100644 --- a/plotly/validators/volume/slices/_x.py +++ b/plotly/validators/volume/slices/_x.py @@ -1,33 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/volume/slices/_y.py b/plotly/validators/volume/slices/_y.py index a209974de2..11504c569c 100644 --- a/plotly/validators/volume/slices/_y.py +++ b/plotly/validators/volume/slices/_y.py @@ -1,33 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/volume/slices/_z.py b/plotly/validators/volume/slices/_z.py index 1af2c745b8..bfd621970c 100644 --- a/plotly/validators/volume/slices/_z.py +++ b/plotly/validators/volume/slices/_z.py @@ -1,33 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/volume/slices/x/__init__.py b/plotly/validators/volume/slices/x/__init__.py index 9085068fff..69805fd611 100644 --- a/plotly/validators/volume/slices/x/__init__.py +++ b/plotly/validators/volume/slices/x/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._show import ShowValidator - from ._locationssrc import LocationssrcValidator - from ._locations import LocationsValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._show.ShowValidator", + "._locationssrc.LocationssrcValidator", + "._locations.LocationsValidator", + "._fill.FillValidator", + ], +) diff --git a/plotly/validators/volume/slices/x/_fill.py b/plotly/validators/volume/slices/x/_fill.py index 6bd4ea8cdb..67c9c7cf4f 100644 --- a/plotly/validators/volume/slices/x/_fill.py +++ b/plotly/validators/volume/slices/x/_fill.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/volume/slices/x/_locations.py b/plotly/validators/volume/slices/x/_locations.py index b3bca099de..ee9a9fdb73 100644 --- a/plotly/validators/volume/slices/x/_locations.py +++ b/plotly/validators/volume/slices/x/_locations.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LocationsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/slices/x/_locationssrc.py b/plotly/validators/volume/slices/x/_locationssrc.py index 2831e3eb7a..da3dd16181 100644 --- a/plotly/validators/volume/slices/x/_locationssrc.py +++ b/plotly/validators/volume/slices/x/_locationssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LocationssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/volume/slices/x/_show.py b/plotly/validators/volume/slices/x/_show.py index e3a03356af..09362dd4cf 100644 --- a/plotly/validators/volume/slices/x/_show.py +++ b/plotly/validators/volume/slices/x/_show.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/slices/y/__init__.py b/plotly/validators/volume/slices/y/__init__.py index 9085068fff..69805fd611 100644 --- a/plotly/validators/volume/slices/y/__init__.py +++ b/plotly/validators/volume/slices/y/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._show import ShowValidator - from ._locationssrc import LocationssrcValidator - from ._locations import LocationsValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._show.ShowValidator", + "._locationssrc.LocationssrcValidator", + "._locations.LocationsValidator", + "._fill.FillValidator", + ], +) diff --git a/plotly/validators/volume/slices/y/_fill.py b/plotly/validators/volume/slices/y/_fill.py index eaa0a4f5b6..580730c343 100644 --- a/plotly/validators/volume/slices/y/_fill.py +++ b/plotly/validators/volume/slices/y/_fill.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/volume/slices/y/_locations.py b/plotly/validators/volume/slices/y/_locations.py index ec36af5c38..f342f6ae44 100644 --- a/plotly/validators/volume/slices/y/_locations.py +++ b/plotly/validators/volume/slices/y/_locations.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LocationsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/slices/y/_locationssrc.py b/plotly/validators/volume/slices/y/_locationssrc.py index 3ddf7ccbb8..273999fb49 100644 --- a/plotly/validators/volume/slices/y/_locationssrc.py +++ b/plotly/validators/volume/slices/y/_locationssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LocationssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/volume/slices/y/_show.py b/plotly/validators/volume/slices/y/_show.py index 6314c8d550..df365e1b29 100644 --- a/plotly/validators/volume/slices/y/_show.py +++ b/plotly/validators/volume/slices/y/_show.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/slices/z/__init__.py b/plotly/validators/volume/slices/z/__init__.py index 9085068fff..69805fd611 100644 --- a/plotly/validators/volume/slices/z/__init__.py +++ b/plotly/validators/volume/slices/z/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._show import ShowValidator - from ._locationssrc import LocationssrcValidator - from ._locations import LocationsValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._show.ShowValidator", + "._locationssrc.LocationssrcValidator", + "._locations.LocationsValidator", + "._fill.FillValidator", + ], +) diff --git a/plotly/validators/volume/slices/z/_fill.py b/plotly/validators/volume/slices/z/_fill.py index 9fb3835d21..ce72fdaa16 100644 --- a/plotly/validators/volume/slices/z/_fill.py +++ b/plotly/validators/volume/slices/z/_fill.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/volume/slices/z/_locations.py b/plotly/validators/volume/slices/z/_locations.py index 780ce14d40..40e8815469 100644 --- a/plotly/validators/volume/slices/z/_locations.py +++ b/plotly/validators/volume/slices/z/_locations.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LocationsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/slices/z/_locationssrc.py b/plotly/validators/volume/slices/z/_locationssrc.py index cdf1f968c5..b3f089b365 100644 --- a/plotly/validators/volume/slices/z/_locationssrc.py +++ b/plotly/validators/volume/slices/z/_locationssrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LocationssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/volume/slices/z/_show.py b/plotly/validators/volume/slices/z/_show.py index 351ac46da7..aa92e3dd95 100644 --- a/plotly/validators/volume/slices/z/_show.py +++ b/plotly/validators/volume/slices/z/_show.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/spaceframe/__init__.py b/plotly/validators/volume/spaceframe/__init__.py index 63a14620d2..db8b1b549e 100644 --- a/plotly/validators/volume/spaceframe/__init__.py +++ b/plotly/validators/volume/spaceframe/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._show.ShowValidator", "._fill.FillValidator"] +) diff --git a/plotly/validators/volume/spaceframe/_fill.py b/plotly/validators/volume/spaceframe/_fill.py index 7a03080d9a..b929bd528c 100644 --- a/plotly/validators/volume/spaceframe/_fill.py +++ b/plotly/validators/volume/spaceframe/_fill.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/volume/spaceframe/_show.py b/plotly/validators/volume/spaceframe/_show.py index b44e6cae8f..d36420be9e 100644 --- a/plotly/validators/volume/spaceframe/_show.py +++ b/plotly/validators/volume/spaceframe/_show.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/volume/stream/__init__.py b/plotly/validators/volume/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/volume/stream/__init__.py +++ b/plotly/validators/volume/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/volume/stream/_maxpoints.py b/plotly/validators/volume/stream/_maxpoints.py index 758c0abd91..d458a79255 100644 --- a/plotly/validators/volume/stream/_maxpoints.py +++ b/plotly/validators/volume/stream/_maxpoints.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/volume/stream/_token.py b/plotly/validators/volume/stream/_token.py index fdc2a4af22..0e7442e303 100644 --- a/plotly/validators/volume/stream/_token.py +++ b/plotly/validators/volume/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/volume/surface/__init__.py b/plotly/validators/volume/surface/__init__.py index 79e3ea4c55..e200f4835e 100644 --- a/plotly/validators/volume/surface/__init__.py +++ b/plotly/validators/volume/surface/__init__.py @@ -1,21 +1,13 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._show import ShowValidator - from ._pattern import PatternValidator - from ._fill import FillValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._show.ShowValidator", + "._pattern.PatternValidator", + "._fill.FillValidator", + "._count.CountValidator", + ], +) diff --git a/plotly/validators/volume/surface/_count.py b/plotly/validators/volume/surface/_count.py index 77419b3c87..304e1cd74c 100644 --- a/plotly/validators/volume/surface/_count.py +++ b/plotly/validators/volume/surface/_count.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CountValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/volume/surface/_fill.py b/plotly/validators/volume/surface/_fill.py index 97313e9f47..852e6a6660 100644 --- a/plotly/validators/volume/surface/_fill.py +++ b/plotly/validators/volume/surface/_fill.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FillValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/volume/surface/_pattern.py b/plotly/validators/volume/surface/_pattern.py index 689a811f25..62bee613a8 100644 --- a/plotly/validators/volume/surface/_pattern.py +++ b/plotly/validators/volume/surface/_pattern.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class PatternValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/volume/surface/_show.py b/plotly/validators/volume/surface/_show.py index 80116262ec..c72626cbbb 100644 --- a/plotly/validators/volume/surface/_show.py +++ b/plotly/validators/volume/surface/_show.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/waterfall/__init__.py b/plotly/validators/waterfall/__init__.py index 74a3383093..3049f7babc 100644 --- a/plotly/validators/waterfall/__init__.py +++ b/plotly/validators/waterfall/__init__.py @@ -1,159 +1,82 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._zorder import ZorderValidator - from ._ysrc import YsrcValidator - from ._yperiodalignment import YperiodalignmentValidator - from ._yperiod0 import Yperiod0Validator - from ._yperiod import YperiodValidator - from ._yhoverformat import YhoverformatValidator - from ._yaxis import YaxisValidator - from ._y0 import Y0Validator - from ._y import YValidator - from ._xsrc import XsrcValidator - from ._xperiodalignment import XperiodalignmentValidator - from ._xperiod0 import Xperiod0Validator - from ._xperiod import XperiodValidator - from ._xhoverformat import XhoverformatValidator - from ._xaxis import XaxisValidator - from ._x0 import X0Validator - from ._x import XValidator - from ._widthsrc import WidthsrcValidator - from ._width import WidthValidator - from ._visible import VisibleValidator - from ._uirevision import UirevisionValidator - from ._uid import UidValidator - from ._totals import TotalsValidator - from ._texttemplatesrc import TexttemplatesrcValidator - from ._texttemplate import TexttemplateValidator - from ._textsrc import TextsrcValidator - from ._textpositionsrc import TextpositionsrcValidator - from ._textposition import TextpositionValidator - from ._textinfo import TextinfoValidator - from ._textfont import TextfontValidator - from ._textangle import TextangleValidator - from ._text import TextValidator - from ._stream import StreamValidator - from ._showlegend import ShowlegendValidator - from ._selectedpoints import SelectedpointsValidator - from ._outsidetextfont import OutsidetextfontValidator - from ._orientation import OrientationValidator - from ._opacity import OpacityValidator - from ._offsetsrc import OffsetsrcValidator - from ._offsetgroup import OffsetgroupValidator - from ._offset import OffsetValidator - from ._name import NameValidator - from ._metasrc import MetasrcValidator - from ._meta import MetaValidator - from ._measuresrc import MeasuresrcValidator - from ._measure import MeasureValidator - from ._legendwidth import LegendwidthValidator - from ._legendrank import LegendrankValidator - from ._legendgrouptitle import LegendgrouptitleValidator - from ._legendgroup import LegendgroupValidator - from ._legend import LegendValidator - from ._insidetextfont import InsidetextfontValidator - from ._insidetextanchor import InsidetextanchorValidator - from ._increasing import IncreasingValidator - from ._idssrc import IdssrcValidator - from ._ids import IdsValidator - from ._hovertextsrc import HovertextsrcValidator - from ._hovertext import HovertextValidator - from ._hovertemplatesrc import HovertemplatesrcValidator - from ._hovertemplate import HovertemplateValidator - from ._hoverlabel import HoverlabelValidator - from ._hoverinfosrc import HoverinfosrcValidator - from ._hoverinfo import HoverinfoValidator - from ._dy import DyValidator - from ._dx import DxValidator - from ._decreasing import DecreasingValidator - from ._customdatasrc import CustomdatasrcValidator - from ._customdata import CustomdataValidator - from ._constraintext import ConstraintextValidator - from ._connector import ConnectorValidator - from ._cliponaxis import CliponaxisValidator - from ._base import BaseValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/waterfall/_alignmentgroup.py b/plotly/validators/waterfall/_alignmentgroup.py index 66b314d995..00a5f6d71c 100644 --- a/plotly/validators/waterfall/_alignmentgroup.py +++ b/plotly/validators/waterfall/_alignmentgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignmentgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/waterfall/_base.py b/plotly/validators/waterfall/_base.py index 3b0a6a869d..e2cca0e0d0 100644 --- a/plotly/validators/waterfall/_base.py +++ b/plotly/validators/waterfall/_base.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BaseValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/waterfall/_cliponaxis.py b/plotly/validators/waterfall/_cliponaxis.py index 0113bfb38a..dbfa895ff4 100644 --- a/plotly/validators/waterfall/_cliponaxis.py +++ b/plotly/validators/waterfall/_cliponaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CliponaxisValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/waterfall/_connector.py b/plotly/validators/waterfall/_connector.py index 3fbedfecdc..c60a734b77 100644 --- a/plotly/validators/waterfall/_connector.py +++ b/plotly/validators/waterfall/_connector.py @@ -1,23 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ConnectorValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/waterfall/_constraintext.py b/plotly/validators/waterfall/_constraintext.py index 9a65200635..b4c3785dae 100644 --- a/plotly/validators/waterfall/_constraintext.py +++ b/plotly/validators/waterfall/_constraintext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ConstraintextValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["inside", "outside", "both", "none"]), **kwargs, diff --git a/plotly/validators/waterfall/_customdata.py b/plotly/validators/waterfall/_customdata.py index 3f2abd54ad..bc38b1c338 100644 --- a/plotly/validators/waterfall/_customdata.py +++ b/plotly/validators/waterfall/_customdata.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdataValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/waterfall/_customdatasrc.py b/plotly/validators/waterfall/_customdatasrc.py index c15d17ea62..5f96ce353e 100644 --- a/plotly/validators/waterfall/_customdatasrc.py +++ b/plotly/validators/waterfall/_customdatasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class CustomdatasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/_decreasing.py b/plotly/validators/waterfall/_decreasing.py index 3677db8b32..f764d71ff6 100644 --- a/plotly/validators/waterfall/_decreasing.py +++ b/plotly/validators/waterfall/_decreasing.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DecreasingValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/waterfall/_dx.py b/plotly/validators/waterfall/_dx.py index 333615690c..75a95b28a8 100644 --- a/plotly/validators/waterfall/_dx.py +++ b/plotly/validators/waterfall/_dx.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DxValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/waterfall/_dy.py b/plotly/validators/waterfall/_dy.py index 6162d9049d..a81b593236 100644 --- a/plotly/validators/waterfall/_dy.py +++ b/plotly/validators/waterfall/_dy.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DyValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/waterfall/_hoverinfo.py b/plotly/validators/waterfall/_hoverinfo.py index 525eefcf4b..d90603eb0e 100644 --- a/plotly/validators/waterfall/_hoverinfo.py +++ b/plotly/validators/waterfall/_hoverinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["all", "none", "skip"]), diff --git a/plotly/validators/waterfall/_hoverinfosrc.py b/plotly/validators/waterfall/_hoverinfosrc.py index e2a6baf14a..c39554f8c8 100644 --- a/plotly/validators/waterfall/_hoverinfosrc.py +++ b/plotly/validators/waterfall/_hoverinfosrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverinfosrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/_hoverlabel.py b/plotly/validators/waterfall/_hoverlabel.py index 1782fbbe59..3d48b13be6 100644 --- a/plotly/validators/waterfall/_hoverlabel.py +++ b/plotly/validators/waterfall/_hoverlabel.py @@ -1,50 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HoverlabelValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/waterfall/_hovertemplate.py b/plotly/validators/waterfall/_hovertemplate.py index bd1897144b..65cc71e005 100644 --- a/plotly/validators/waterfall/_hovertemplate.py +++ b/plotly/validators/waterfall/_hovertemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/waterfall/_hovertemplatesrc.py b/plotly/validators/waterfall/_hovertemplatesrc.py index 6db575e04c..fc1d7c91ab 100644 --- a/plotly/validators/waterfall/_hovertemplatesrc.py +++ b/plotly/validators/waterfall/_hovertemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/_hovertext.py b/plotly/validators/waterfall/_hovertext.py index 8e67e37b58..c9ea1bed7f 100644 --- a/plotly/validators/waterfall/_hovertext.py +++ b/plotly/validators/waterfall/_hovertext.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/waterfall/_hovertextsrc.py b/plotly/validators/waterfall/_hovertextsrc.py index 50bcee98b1..1c35f43072 100644 --- a/plotly/validators/waterfall/_hovertextsrc.py +++ b/plotly/validators/waterfall/_hovertextsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class HovertextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/_ids.py b/plotly/validators/waterfall/_ids.py index dd8798b51d..6ed9b1ca65 100644 --- a/plotly/validators/waterfall/_ids.py +++ b/plotly/validators/waterfall/_ids.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdsValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/waterfall/_idssrc.py b/plotly/validators/waterfall/_idssrc.py index 7480c978f7..047c0ccc5c 100644 --- a/plotly/validators/waterfall/_idssrc.py +++ b/plotly/validators/waterfall/_idssrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IdssrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/_increasing.py b/plotly/validators/waterfall/_increasing.py index 792c4f589c..5380a7db08 100644 --- a/plotly/validators/waterfall/_increasing.py +++ b/plotly/validators/waterfall/_increasing.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class IncreasingValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/waterfall/_insidetextanchor.py b/plotly/validators/waterfall/_insidetextanchor.py index 3cb72f8b0d..31801f2f86 100644 --- a/plotly/validators/waterfall/_insidetextanchor.py +++ b/plotly/validators/waterfall/_insidetextanchor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class InsidetextanchorValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["end", "middle", "start"]), **kwargs, diff --git a/plotly/validators/waterfall/_insidetextfont.py b/plotly/validators/waterfall/_insidetextfont.py index f9642da377..82252046c2 100644 --- a/plotly/validators/waterfall/_insidetextfont.py +++ b/plotly/validators/waterfall/_insidetextfont.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class InsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Insidetextfont"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/waterfall/_legend.py b/plotly/validators/waterfall/_legend.py index a68e467652..968924f557 100644 --- a/plotly/validators/waterfall/_legend.py +++ b/plotly/validators/waterfall/_legend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "legend"), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/waterfall/_legendgroup.py b/plotly/validators/waterfall/_legendgroup.py index 8cfac6d855..ff3d8bc1fd 100644 --- a/plotly/validators/waterfall/_legendgroup.py +++ b/plotly/validators/waterfall/_legendgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/waterfall/_legendgrouptitle.py b/plotly/validators/waterfall/_legendgrouptitle.py index 5157d3ad8c..294602dab9 100644 --- a/plotly/validators/waterfall/_legendgrouptitle.py +++ b/plotly/validators/waterfall/_legendgrouptitle.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendgrouptitleValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/waterfall/_legendrank.py b/plotly/validators/waterfall/_legendrank.py index 19e62098e5..c745919aa6 100644 --- a/plotly/validators/waterfall/_legendrank.py +++ b/plotly/validators/waterfall/_legendrank.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendrankValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/waterfall/_legendwidth.py b/plotly/validators/waterfall/_legendwidth.py index 33fbb7e7d3..2bf765ecda 100644 --- a/plotly/validators/waterfall/_legendwidth.py +++ b/plotly/validators/waterfall/_legendwidth.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LegendwidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/waterfall/_measure.py b/plotly/validators/waterfall/_measure.py index 128c69f90d..002b903cc5 100644 --- a/plotly/validators/waterfall/_measure.py +++ b/plotly/validators/waterfall/_measure.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MeasureValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/waterfall/_measuresrc.py b/plotly/validators/waterfall/_measuresrc.py index fc5a061e88..fb9c90362e 100644 --- a/plotly/validators/waterfall/_measuresrc.py +++ b/plotly/validators/waterfall/_measuresrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MeasuresrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/_meta.py b/plotly/validators/waterfall/_meta.py index 8a0bff122c..d7d64f15b3 100644 --- a/plotly/validators/waterfall/_meta.py +++ b/plotly/validators/waterfall/_meta.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetaValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/waterfall/_metasrc.py b/plotly/validators/waterfall/_metasrc.py index 9024394926..1532ab9da8 100644 --- a/plotly/validators/waterfall/_metasrc.py +++ b/plotly/validators/waterfall/_metasrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MetasrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/_name.py b/plotly/validators/waterfall/_name.py index 6dff281339..43642279f1 100644 --- a/plotly/validators/waterfall/_name.py +++ b/plotly/validators/waterfall/_name.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NameValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/waterfall/_offset.py b/plotly/validators/waterfall/_offset.py index bddd29bb3e..e63b5f052c 100644 --- a/plotly/validators/waterfall/_offset.py +++ b/plotly/validators/waterfall/_offset.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OffsetValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/waterfall/_offsetgroup.py b/plotly/validators/waterfall/_offsetgroup.py index b98ac8d2a6..9aafa903bd 100644 --- a/plotly/validators/waterfall/_offsetgroup.py +++ b/plotly/validators/waterfall/_offsetgroup.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OffsetgroupValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/waterfall/_offsetsrc.py b/plotly/validators/waterfall/_offsetsrc.py index 1fbe7bf0b0..935ceccbb5 100644 --- a/plotly/validators/waterfall/_offsetsrc.py +++ b/plotly/validators/waterfall/_offsetsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OffsetsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/_opacity.py b/plotly/validators/waterfall/_opacity.py index a1a5b0a20d..16cef0a593 100644 --- a/plotly/validators/waterfall/_opacity.py +++ b/plotly/validators/waterfall/_opacity.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OpacityValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), max=kwargs.pop("max", 1), min=kwargs.pop("min", 0), diff --git a/plotly/validators/waterfall/_orientation.py b/plotly/validators/waterfall/_orientation.py index 111510998c..fec8b2f8a6 100644 --- a/plotly/validators/waterfall/_orientation.py +++ b/plotly/validators/waterfall/_orientation.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OrientationValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), values=kwargs.pop("values", ["v", "h"]), **kwargs, diff --git a/plotly/validators/waterfall/_outsidetextfont.py b/plotly/validators/waterfall/_outsidetextfont.py index a027ab2303..15443b168a 100644 --- a/plotly/validators/waterfall/_outsidetextfont.py +++ b/plotly/validators/waterfall/_outsidetextfont.py @@ -1,87 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class OutsidetextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Outsidetextfont"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/waterfall/_selectedpoints.py b/plotly/validators/waterfall/_selectedpoints.py index c53675d549..16d1fb9229 100644 --- a/plotly/validators/waterfall/_selectedpoints.py +++ b/plotly/validators/waterfall/_selectedpoints.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SelectedpointsValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/waterfall/_showlegend.py b/plotly/validators/waterfall/_showlegend.py index abcedae929..c297ccd28f 100644 --- a/plotly/validators/waterfall/_showlegend.py +++ b/plotly/validators/waterfall/_showlegend.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShowlegendValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/waterfall/_stream.py b/plotly/validators/waterfall/_stream.py index a436dd4fd0..124eea51b1 100644 --- a/plotly/validators/waterfall/_stream.py +++ b/plotly/validators/waterfall/_stream.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StreamValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/waterfall/_text.py b/plotly/validators/waterfall/_text.py index 1f6da01b61..8b1ab37ae7 100644 --- a/plotly/validators/waterfall/_text.py +++ b/plotly/validators/waterfall/_text.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/waterfall/_textangle.py b/plotly/validators/waterfall/_textangle.py index ee7d15ea87..bd0d086329 100644 --- a/plotly/validators/waterfall/_textangle.py +++ b/plotly/validators/waterfall/_textangle.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextangleValidator(_plotly_utils.basevalidators.AngleValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/waterfall/_textfont.py b/plotly/validators/waterfall/_textfont.py index 8ce970c9f0..be090f0f56 100644 --- a/plotly/validators/waterfall/_textfont.py +++ b/plotly/validators/waterfall/_textfont.py @@ -1,85 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextfontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Textfont"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/waterfall/_textinfo.py b/plotly/validators/waterfall/_textinfo.py index 4334e1559b..e405501d3c 100644 --- a/plotly/validators/waterfall/_textinfo.py +++ b/plotly/validators/waterfall/_textinfo.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextinfoValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "plot"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/waterfall/_textposition.py b/plotly/validators/waterfall/_textposition.py index 9f588b0eb5..fe49130137 100644 --- a/plotly/validators/waterfall/_textposition.py +++ b/plotly/validators/waterfall/_textposition.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/waterfall/_textpositionsrc.py b/plotly/validators/waterfall/_textpositionsrc.py index 90be472cd7..ff54bb0565 100644 --- a/plotly/validators/waterfall/_textpositionsrc.py +++ b/plotly/validators/waterfall/_textpositionsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextpositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/_textsrc.py b/plotly/validators/waterfall/_textsrc.py index deabaa1cd0..f988ac6be3 100644 --- a/plotly/validators/waterfall/_textsrc.py +++ b/plotly/validators/waterfall/_textsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/_texttemplate.py b/plotly/validators/waterfall/_texttemplate.py index fcdb8ff6c3..6166e8e5e3 100644 --- a/plotly/validators/waterfall/_texttemplate.py +++ b/plotly/validators/waterfall/_texttemplate.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplateValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "plot"), **kwargs, diff --git a/plotly/validators/waterfall/_texttemplatesrc.py b/plotly/validators/waterfall/_texttemplatesrc.py index e8b5614c87..bd585e3772 100644 --- a/plotly/validators/waterfall/_texttemplatesrc.py +++ b/plotly/validators/waterfall/_texttemplatesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TexttemplatesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/_totals.py b/plotly/validators/waterfall/_totals.py index 8a5ec9cd99..3d2642c79a 100644 --- a/plotly/validators/waterfall/_totals.py +++ b/plotly/validators/waterfall/_totals.py @@ -1,19 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TotalsValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/waterfall/_uid.py b/plotly/validators/waterfall/_uid.py index 6c9561b24e..a0a147b500 100644 --- a/plotly/validators/waterfall/_uid.py +++ b/plotly/validators/waterfall/_uid.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UidValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/waterfall/_uirevision.py b/plotly/validators/waterfall/_uirevision.py index 6bb082428d..c4705dbdfa 100644 --- a/plotly/validators/waterfall/_uirevision.py +++ b/plotly/validators/waterfall/_uirevision.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class UirevisionValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/_visible.py b/plotly/validators/waterfall/_visible.py index 8615c9fd13..639c910f16 100644 --- a/plotly/validators/waterfall/_visible.py +++ b/plotly/validators/waterfall/_visible.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", [True, False, "legendonly"]), **kwargs, diff --git a/plotly/validators/waterfall/_width.py b/plotly/validators/waterfall/_width.py index fce66aa9b4..bfe4115fd7 100644 --- a/plotly/validators/waterfall/_width.py +++ b/plotly/validators/waterfall/_width.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/waterfall/_widthsrc.py b/plotly/validators/waterfall/_widthsrc.py index 740abde2fa..71e1b8b4c4 100644 --- a/plotly/validators/waterfall/_widthsrc.py +++ b/plotly/validators/waterfall/_widthsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/_x.py b/plotly/validators/waterfall/_x.py index 56fbdd6608..1798e990ba 100644 --- a/plotly/validators/waterfall/_x.py +++ b/plotly/validators/waterfall/_x.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/waterfall/_x0.py b/plotly/validators/waterfall/_x0.py index 9db7cdcdd1..a06aa37358 100644 --- a/plotly/validators/waterfall/_x0.py +++ b/plotly/validators/waterfall/_x0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class X0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/waterfall/_xaxis.py b/plotly/validators/waterfall/_xaxis.py index 6fe6367eb5..feb9493aee 100644 --- a/plotly/validators/waterfall/_xaxis.py +++ b/plotly/validators/waterfall/_xaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "x"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/waterfall/_xhoverformat.py b/plotly/validators/waterfall/_xhoverformat.py index 798da875ae..cec4e21664 100644 --- a/plotly/validators/waterfall/_xhoverformat.py +++ b/plotly/validators/waterfall/_xhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/_xperiod.py b/plotly/validators/waterfall/_xperiod.py index ba2f16bc3b..ce481bbb7a 100644 --- a/plotly/validators/waterfall/_xperiod.py +++ b/plotly/validators/waterfall/_xperiod.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XperiodValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/waterfall/_xperiod0.py b/plotly/validators/waterfall/_xperiod0.py index 9cbe13a87d..6a9f6fcd5c 100644 --- a/plotly/validators/waterfall/_xperiod0.py +++ b/plotly/validators/waterfall/_xperiod0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Xperiod0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/waterfall/_xperiodalignment.py b/plotly/validators/waterfall/_xperiodalignment.py index 5b5a78dd37..04086bb059 100644 --- a/plotly/validators/waterfall/_xperiodalignment.py +++ b/plotly/validators/waterfall/_xperiodalignment.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["start", "middle", "end"]), **kwargs, diff --git a/plotly/validators/waterfall/_xsrc.py b/plotly/validators/waterfall/_xsrc.py index 125b52958a..28633664ec 100644 --- a/plotly/validators/waterfall/_xsrc.py +++ b/plotly/validators/waterfall/_xsrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class XsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/_y.py b/plotly/validators/waterfall/_y.py index e309b41a16..5746e7ad08 100644 --- a/plotly/validators/waterfall/_y.py +++ b/plotly/validators/waterfall/_y.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YValidator(_plotly_utils.basevalidators.DataArrayValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/waterfall/_y0.py b/plotly/validators/waterfall/_y0.py index ffbafc7424..d058f00d06 100644 --- a/plotly/validators/waterfall/_y0.py +++ b/plotly/validators/waterfall/_y0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Y0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, ) diff --git a/plotly/validators/waterfall/_yaxis.py b/plotly/validators/waterfall/_yaxis.py index 47b68a530d..d9aae4afce 100644 --- a/plotly/validators/waterfall/_yaxis.py +++ b/plotly/validators/waterfall/_yaxis.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YaxisValidator(_plotly_utils.basevalidators.SubplotidValidator): + +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, + super().__init__( + plotly_name, + parent_name, dflt=kwargs.pop("dflt", "y"), edit_type=kwargs.pop("edit_type", "calc+clearAxisTypes"), **kwargs, diff --git a/plotly/validators/waterfall/_yhoverformat.py b/plotly/validators/waterfall/_yhoverformat.py index bd86a8daf9..23a9738538 100644 --- a/plotly/validators/waterfall/_yhoverformat.py +++ b/plotly/validators/waterfall/_yhoverformat.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YhoverformatValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/_yperiod.py b/plotly/validators/waterfall/_yperiod.py index d7863f3130..6e1bc49ef0 100644 --- a/plotly/validators/waterfall/_yperiod.py +++ b/plotly/validators/waterfall/_yperiod.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YperiodValidator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/waterfall/_yperiod0.py b/plotly/validators/waterfall/_yperiod0.py index 3e24a4792f..df4bf39321 100644 --- a/plotly/validators/waterfall/_yperiod0.py +++ b/plotly/validators/waterfall/_yperiod0.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class Yperiod0Validator(_plotly_utils.basevalidators.AnyValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), **kwargs, ) diff --git a/plotly/validators/waterfall/_yperiodalignment.py b/plotly/validators/waterfall/_yperiodalignment.py index 7d6d6fd603..f88018bf4f 100644 --- a/plotly/validators/waterfall/_yperiodalignment.py +++ b/plotly/validators/waterfall/_yperiodalignment.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YperiodalignmentValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["start", "middle", "end"]), **kwargs, diff --git a/plotly/validators/waterfall/_ysrc.py b/plotly/validators/waterfall/_ysrc.py index 363257a1f6..f2a1291e11 100644 --- a/plotly/validators/waterfall/_ysrc.py +++ b/plotly/validators/waterfall/_ysrc.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class YsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/_zorder.py b/plotly/validators/waterfall/_zorder.py index 5ee7a49bca..d8c8529d79 100644 --- a/plotly/validators/waterfall/_zorder.py +++ b/plotly/validators/waterfall/_zorder.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ZorderValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/waterfall/connector/__init__.py b/plotly/validators/waterfall/connector/__init__.py index 128cd52908..bd950c4fbd 100644 --- a/plotly/validators/waterfall/connector/__init__.py +++ b/plotly/validators/waterfall/connector/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._visible.VisibleValidator", "._mode.ModeValidator", "._line.LineValidator"], +) diff --git a/plotly/validators/waterfall/connector/_line.py b/plotly/validators/waterfall/connector/_line.py index 84ef2ac6d9..ae14921f62 100644 --- a/plotly/validators/waterfall/connector/_line.py +++ b/plotly/validators/waterfall/connector/_line.py @@ -1,24 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/waterfall/connector/_mode.py b/plotly/validators/waterfall/connector/_mode.py index 8cf2b29dfe..70225786de 100644 --- a/plotly/validators/waterfall/connector/_mode.py +++ b/plotly/validators/waterfall/connector/_mode.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ModeValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), values=kwargs.pop("values", ["spanning", "between"]), **kwargs, diff --git a/plotly/validators/waterfall/connector/_visible.py b/plotly/validators/waterfall/connector/_visible.py index d517a8e7cd..939d96b7fb 100644 --- a/plotly/validators/waterfall/connector/_visible.py +++ b/plotly/validators/waterfall/connector/_visible.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VisibleValidator(_plotly_utils.basevalidators.BooleanValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), **kwargs, ) diff --git a/plotly/validators/waterfall/connector/line/__init__.py b/plotly/validators/waterfall/connector/line/__init__.py index cff4146651..c5140ef758 100644 --- a/plotly/validators/waterfall/connector/line/__init__.py +++ b/plotly/validators/waterfall/connector/line/__init__.py @@ -1,15 +1,8 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + ["._width.WidthValidator", "._dash.DashValidator", "._color.ColorValidator"], +) diff --git a/plotly/validators/waterfall/connector/line/_color.py b/plotly/validators/waterfall/connector/line/_color.py index 528b014f3d..4eab33aab3 100644 --- a/plotly/validators/waterfall/connector/line/_color.py +++ b/plotly/validators/waterfall/connector/line/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/waterfall/connector/line/_dash.py b/plotly/validators/waterfall/connector/line/_dash.py index ed8535717e..f5106b78b0 100644 --- a/plotly/validators/waterfall/connector/line/_dash.py +++ b/plotly/validators/waterfall/connector/line/_dash.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class DashValidator(_plotly_utils.basevalidators.DashValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", ["solid", "dot", "dash", "longdash", "dashdot", "longdashdot"] diff --git a/plotly/validators/waterfall/connector/line/_width.py b/plotly/validators/waterfall/connector/line/_width.py index 483c363ca5..83d5b2ef71 100644 --- a/plotly/validators/waterfall/connector/line/_width.py +++ b/plotly/validators/waterfall/connector/line/_width.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "plot"), min=kwargs.pop("min", 0), **kwargs, diff --git a/plotly/validators/waterfall/decreasing/__init__.py b/plotly/validators/waterfall/decreasing/__init__.py index e9bdb89f26..20900abc1a 100644 --- a/plotly/validators/waterfall/decreasing/__init__.py +++ b/plotly/validators/waterfall/decreasing/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.MarkerValidator"] +) diff --git a/plotly/validators/waterfall/decreasing/_marker.py b/plotly/validators/waterfall/decreasing/_marker.py index cd4537d607..674dc6cda7 100644 --- a/plotly/validators/waterfall/decreasing/_marker.py +++ b/plotly/validators/waterfall/decreasing/_marker.py @@ -1,23 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/waterfall/decreasing/marker/__init__.py b/plotly/validators/waterfall/decreasing/marker/__init__.py index 9819cbc359..1a3eaa8b6b 100644 --- a/plotly/validators/waterfall/decreasing/marker/__init__.py +++ b/plotly/validators/waterfall/decreasing/marker/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._line.LineValidator", "._color.ColorValidator"] +) diff --git a/plotly/validators/waterfall/decreasing/marker/_color.py b/plotly/validators/waterfall/decreasing/marker/_color.py index 733ebb62c0..6d73a7e6e2 100644 --- a/plotly/validators/waterfall/decreasing/marker/_color.py +++ b/plotly/validators/waterfall/decreasing/marker/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/waterfall/decreasing/marker/_line.py b/plotly/validators/waterfall/decreasing/marker/_line.py index 94fa200b2d..f76e15a779 100644 --- a/plotly/validators/waterfall/decreasing/marker/_line.py +++ b/plotly/validators/waterfall/decreasing/marker/_line.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/waterfall/decreasing/marker/line/__init__.py b/plotly/validators/waterfall/decreasing/marker/line/__init__.py index 63a516578b..d49328faac 100644 --- a/plotly/validators/waterfall/decreasing/marker/line/__init__.py +++ b/plotly/validators/waterfall/decreasing/marker/line/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._width.WidthValidator", "._color.ColorValidator"] +) diff --git a/plotly/validators/waterfall/decreasing/marker/line/_color.py b/plotly/validators/waterfall/decreasing/marker/line/_color.py index 466b0efc38..1a13edcf75 100644 --- a/plotly/validators/waterfall/decreasing/marker/line/_color.py +++ b/plotly/validators/waterfall/decreasing/marker/line/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/waterfall/decreasing/marker/line/_width.py b/plotly/validators/waterfall/decreasing/marker/line/_width.py index 76dfdd5636..e1f62f0bff 100644 --- a/plotly/validators/waterfall/decreasing/marker/line/_width.py +++ b/plotly/validators/waterfall/decreasing/marker/line/_width.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/waterfall/hoverlabel/__init__.py b/plotly/validators/waterfall/hoverlabel/__init__.py index c6ee8b5967..bd6ede5882 100644 --- a/plotly/validators/waterfall/hoverlabel/__init__.py +++ b/plotly/validators/waterfall/hoverlabel/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._namelengthsrc import NamelengthsrcValidator - from ._namelength import NamelengthValidator - from ._font import FontValidator - from ._bordercolorsrc import BordercolorsrcValidator - from ._bordercolor import BordercolorValidator - from ._bgcolorsrc import BgcolorsrcValidator - from ._bgcolor import BgcolorValidator - from ._alignsrc import AlignsrcValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._namelengthsrc.NamelengthsrcValidator", + "._namelength.NamelengthValidator", + "._font.FontValidator", + "._bordercolorsrc.BordercolorsrcValidator", + "._bordercolor.BordercolorValidator", + "._bgcolorsrc.BgcolorsrcValidator", + "._bgcolor.BgcolorValidator", + "._alignsrc.AlignsrcValidator", + "._align.AlignValidator", + ], +) diff --git a/plotly/validators/waterfall/hoverlabel/_align.py b/plotly/validators/waterfall/hoverlabel/_align.py index 3723cd964e..3035fbb776 100644 --- a/plotly/validators/waterfall/hoverlabel/_align.py +++ b/plotly/validators/waterfall/hoverlabel/_align.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["left", "right", "auto"]), diff --git a/plotly/validators/waterfall/hoverlabel/_alignsrc.py b/plotly/validators/waterfall/hoverlabel/_alignsrc.py index f45e09f3cd..960f4b66be 100644 --- a/plotly/validators/waterfall/hoverlabel/_alignsrc.py +++ b/plotly/validators/waterfall/hoverlabel/_alignsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class AlignsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/hoverlabel/_bgcolor.py b/plotly/validators/waterfall/hoverlabel/_bgcolor.py index 4b28e5698c..05c7764d4d 100644 --- a/plotly/validators/waterfall/hoverlabel/_bgcolor.py +++ b/plotly/validators/waterfall/hoverlabel/_bgcolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/waterfall/hoverlabel/_bgcolorsrc.py b/plotly/validators/waterfall/hoverlabel/_bgcolorsrc.py index 1c01528085..4c3544f4d9 100644 --- a/plotly/validators/waterfall/hoverlabel/_bgcolorsrc.py +++ b/plotly/validators/waterfall/hoverlabel/_bgcolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BgcolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/hoverlabel/_bordercolor.py b/plotly/validators/waterfall/hoverlabel/_bordercolor.py index 81e3f7c5fd..a62cadb189 100644 --- a/plotly/validators/waterfall/hoverlabel/_bordercolor.py +++ b/plotly/validators/waterfall/hoverlabel/_bordercolor.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/waterfall/hoverlabel/_bordercolorsrc.py b/plotly/validators/waterfall/hoverlabel/_bordercolorsrc.py index 2ca194261a..5b55a9f344 100644 --- a/plotly/validators/waterfall/hoverlabel/_bordercolorsrc.py +++ b/plotly/validators/waterfall/hoverlabel/_bordercolorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class BordercolorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/hoverlabel/_font.py b/plotly/validators/waterfall/hoverlabel/_font.py index 3cee3f426c..2570c113ec 100644 --- a/plotly/validators/waterfall/hoverlabel/_font.py +++ b/plotly/validators/waterfall/hoverlabel/_font.py @@ -1,87 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - 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`. """, ), **kwargs, diff --git a/plotly/validators/waterfall/hoverlabel/_namelength.py b/plotly/validators/waterfall/hoverlabel/_namelength.py index f46ae01f67..6cfc423ba9 100644 --- a/plotly/validators/waterfall/hoverlabel/_namelength.py +++ b/plotly/validators/waterfall/hoverlabel/_namelength.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", -1), diff --git a/plotly/validators/waterfall/hoverlabel/_namelengthsrc.py b/plotly/validators/waterfall/hoverlabel/_namelengthsrc.py index cde07123f4..50a69c950e 100644 --- a/plotly/validators/waterfall/hoverlabel/_namelengthsrc.py +++ b/plotly/validators/waterfall/hoverlabel/_namelengthsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class NamelengthsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/hoverlabel/font/__init__.py b/plotly/validators/waterfall/hoverlabel/font/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/waterfall/hoverlabel/font/__init__.py +++ b/plotly/validators/waterfall/hoverlabel/font/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/waterfall/hoverlabel/font/_color.py b/plotly/validators/waterfall/hoverlabel/font/_color.py index 31bb419ae3..f84f8e0ece 100644 --- a/plotly/validators/waterfall/hoverlabel/font/_color.py +++ b/plotly/validators/waterfall/hoverlabel/font/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/waterfall/hoverlabel/font/_colorsrc.py b/plotly/validators/waterfall/hoverlabel/font/_colorsrc.py index 82dfbc4b75..78d9813ec3 100644 --- a/plotly/validators/waterfall/hoverlabel/font/_colorsrc.py +++ b/plotly/validators/waterfall/hoverlabel/font/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/hoverlabel/font/_family.py b/plotly/validators/waterfall/hoverlabel/font/_family.py index 8be63b586c..28564b483d 100644 --- a/plotly/validators/waterfall/hoverlabel/font/_family.py +++ b/plotly/validators/waterfall/hoverlabel/font/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/waterfall/hoverlabel/font/_familysrc.py b/plotly/validators/waterfall/hoverlabel/font/_familysrc.py index 39d79fa040..e95dc807f2 100644 --- a/plotly/validators/waterfall/hoverlabel/font/_familysrc.py +++ b/plotly/validators/waterfall/hoverlabel/font/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/hoverlabel/font/_lineposition.py b/plotly/validators/waterfall/hoverlabel/font/_lineposition.py index 2100b3818a..306c1b9c3b 100644 --- a/plotly/validators/waterfall/hoverlabel/font/_lineposition.py +++ b/plotly/validators/waterfall/hoverlabel/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/waterfall/hoverlabel/font/_linepositionsrc.py b/plotly/validators/waterfall/hoverlabel/font/_linepositionsrc.py index 7f076d1a73..14a69e69fe 100644 --- a/plotly/validators/waterfall/hoverlabel/font/_linepositionsrc.py +++ b/plotly/validators/waterfall/hoverlabel/font/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/hoverlabel/font/_shadow.py b/plotly/validators/waterfall/hoverlabel/font/_shadow.py index 76c963eaf1..17a1569572 100644 --- a/plotly/validators/waterfall/hoverlabel/font/_shadow.py +++ b/plotly/validators/waterfall/hoverlabel/font/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), **kwargs, diff --git a/plotly/validators/waterfall/hoverlabel/font/_shadowsrc.py b/plotly/validators/waterfall/hoverlabel/font/_shadowsrc.py index eba7ca46a9..fe72626296 100644 --- a/plotly/validators/waterfall/hoverlabel/font/_shadowsrc.py +++ b/plotly/validators/waterfall/hoverlabel/font/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/hoverlabel/font/_size.py b/plotly/validators/waterfall/hoverlabel/font/_size.py index 479ae91db8..4f634464f0 100644 --- a/plotly/validators/waterfall/hoverlabel/font/_size.py +++ b/plotly/validators/waterfall/hoverlabel/font/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/waterfall/hoverlabel/font/_sizesrc.py b/plotly/validators/waterfall/hoverlabel/font/_sizesrc.py index 20b1f1fcb1..f1e3da655e 100644 --- a/plotly/validators/waterfall/hoverlabel/font/_sizesrc.py +++ b/plotly/validators/waterfall/hoverlabel/font/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/hoverlabel/font/_style.py b/plotly/validators/waterfall/hoverlabel/font/_style.py index 3ece6f8e84..eacafcc592 100644 --- a/plotly/validators/waterfall/hoverlabel/font/_style.py +++ b/plotly/validators/waterfall/hoverlabel/font/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/waterfall/hoverlabel/font/_stylesrc.py b/plotly/validators/waterfall/hoverlabel/font/_stylesrc.py index f3f09f16b5..02111004d7 100644 --- a/plotly/validators/waterfall/hoverlabel/font/_stylesrc.py +++ b/plotly/validators/waterfall/hoverlabel/font/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/hoverlabel/font/_textcase.py b/plotly/validators/waterfall/hoverlabel/font/_textcase.py index 02386d21b9..d177b5ddc0 100644 --- a/plotly/validators/waterfall/hoverlabel/font/_textcase.py +++ b/plotly/validators/waterfall/hoverlabel/font/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/waterfall/hoverlabel/font/_textcasesrc.py b/plotly/validators/waterfall/hoverlabel/font/_textcasesrc.py index 5263db2514..c93838e57a 100644 --- a/plotly/validators/waterfall/hoverlabel/font/_textcasesrc.py +++ b/plotly/validators/waterfall/hoverlabel/font/_textcasesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/hoverlabel/font/_variant.py b/plotly/validators/waterfall/hoverlabel/font/_variant.py index 0050774093..bb224ca61b 100644 --- a/plotly/validators/waterfall/hoverlabel/font/_variant.py +++ b/plotly/validators/waterfall/hoverlabel/font/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), values=kwargs.pop( diff --git a/plotly/validators/waterfall/hoverlabel/font/_variantsrc.py b/plotly/validators/waterfall/hoverlabel/font/_variantsrc.py index a1ea5d6420..6fac9e445e 100644 --- a/plotly/validators/waterfall/hoverlabel/font/_variantsrc.py +++ b/plotly/validators/waterfall/hoverlabel/font/_variantsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/hoverlabel/font/_weight.py b/plotly/validators/waterfall/hoverlabel/font/_weight.py index ae931fe9b5..ff2e6af6a1 100644 --- a/plotly/validators/waterfall/hoverlabel/font/_weight.py +++ b/plotly/validators/waterfall/hoverlabel/font/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "none"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/waterfall/hoverlabel/font/_weightsrc.py b/plotly/validators/waterfall/hoverlabel/font/_weightsrc.py index 34ce4fa77f..feed245508 100644 --- a/plotly/validators/waterfall/hoverlabel/font/_weightsrc.py +++ b/plotly/validators/waterfall/hoverlabel/font/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/increasing/__init__.py b/plotly/validators/waterfall/increasing/__init__.py index e9bdb89f26..20900abc1a 100644 --- a/plotly/validators/waterfall/increasing/__init__.py +++ b/plotly/validators/waterfall/increasing/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.MarkerValidator"] +) diff --git a/plotly/validators/waterfall/increasing/_marker.py b/plotly/validators/waterfall/increasing/_marker.py index d2da29c39a..43849078f8 100644 --- a/plotly/validators/waterfall/increasing/_marker.py +++ b/plotly/validators/waterfall/increasing/_marker.py @@ -1,23 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/waterfall/increasing/marker/__init__.py b/plotly/validators/waterfall/increasing/marker/__init__.py index 9819cbc359..1a3eaa8b6b 100644 --- a/plotly/validators/waterfall/increasing/marker/__init__.py +++ b/plotly/validators/waterfall/increasing/marker/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._line.LineValidator", "._color.ColorValidator"] +) diff --git a/plotly/validators/waterfall/increasing/marker/_color.py b/plotly/validators/waterfall/increasing/marker/_color.py index 05670e3f7b..8f7e55ed93 100644 --- a/plotly/validators/waterfall/increasing/marker/_color.py +++ b/plotly/validators/waterfall/increasing/marker/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/waterfall/increasing/marker/_line.py b/plotly/validators/waterfall/increasing/marker/_line.py index 131eb78136..979c59f5ce 100644 --- a/plotly/validators/waterfall/increasing/marker/_line.py +++ b/plotly/validators/waterfall/increasing/marker/_line.py @@ -1,21 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/waterfall/increasing/marker/line/__init__.py b/plotly/validators/waterfall/increasing/marker/line/__init__.py index 63a516578b..d49328faac 100644 --- a/plotly/validators/waterfall/increasing/marker/line/__init__.py +++ b/plotly/validators/waterfall/increasing/marker/line/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._width.WidthValidator", "._color.ColorValidator"] +) diff --git a/plotly/validators/waterfall/increasing/marker/line/_color.py b/plotly/validators/waterfall/increasing/marker/line/_color.py index db94587181..a07f2eb5c0 100644 --- a/plotly/validators/waterfall/increasing/marker/line/_color.py +++ b/plotly/validators/waterfall/increasing/marker/line/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/waterfall/increasing/marker/line/_width.py b/plotly/validators/waterfall/increasing/marker/line/_width.py index 6573f78bf7..bcbfd04d03 100644 --- a/plotly/validators/waterfall/increasing/marker/line/_width.py +++ b/plotly/validators/waterfall/increasing/marker/line/_width.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), diff --git a/plotly/validators/waterfall/insidetextfont/__init__.py b/plotly/validators/waterfall/insidetextfont/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/waterfall/insidetextfont/__init__.py +++ b/plotly/validators/waterfall/insidetextfont/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/waterfall/insidetextfont/_color.py b/plotly/validators/waterfall/insidetextfont/_color.py index d140271002..0124eb8028 100644 --- a/plotly/validators/waterfall/insidetextfont/_color.py +++ b/plotly/validators/waterfall/insidetextfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/waterfall/insidetextfont/_colorsrc.py b/plotly/validators/waterfall/insidetextfont/_colorsrc.py index 24d0554816..4a108025c0 100644 --- a/plotly/validators/waterfall/insidetextfont/_colorsrc.py +++ b/plotly/validators/waterfall/insidetextfont/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/insidetextfont/_family.py b/plotly/validators/waterfall/insidetextfont/_family.py index 1be6e1d8c2..9762f90e30 100644 --- a/plotly/validators/waterfall/insidetextfont/_family.py +++ b/plotly/validators/waterfall/insidetextfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/waterfall/insidetextfont/_familysrc.py b/plotly/validators/waterfall/insidetextfont/_familysrc.py index f480a7654f..e8dc20c628 100644 --- a/plotly/validators/waterfall/insidetextfont/_familysrc.py +++ b/plotly/validators/waterfall/insidetextfont/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/insidetextfont/_lineposition.py b/plotly/validators/waterfall/insidetextfont/_lineposition.py index 1897bfaa53..c77dc121d7 100644 --- a/plotly/validators/waterfall/insidetextfont/_lineposition.py +++ b/plotly/validators/waterfall/insidetextfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/waterfall/insidetextfont/_linepositionsrc.py b/plotly/validators/waterfall/insidetextfont/_linepositionsrc.py index 134371abe2..d5af179d87 100644 --- a/plotly/validators/waterfall/insidetextfont/_linepositionsrc.py +++ b/plotly/validators/waterfall/insidetextfont/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/insidetextfont/_shadow.py b/plotly/validators/waterfall/insidetextfont/_shadow.py index 4b1c6ca368..f32bfb3f6e 100644 --- a/plotly/validators/waterfall/insidetextfont/_shadow.py +++ b/plotly/validators/waterfall/insidetextfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/waterfall/insidetextfont/_shadowsrc.py b/plotly/validators/waterfall/insidetextfont/_shadowsrc.py index cbe396e9a2..902258e09d 100644 --- a/plotly/validators/waterfall/insidetextfont/_shadowsrc.py +++ b/plotly/validators/waterfall/insidetextfont/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/insidetextfont/_size.py b/plotly/validators/waterfall/insidetextfont/_size.py index a3bb9e09af..819e3d2946 100644 --- a/plotly/validators/waterfall/insidetextfont/_size.py +++ b/plotly/validators/waterfall/insidetextfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/waterfall/insidetextfont/_sizesrc.py b/plotly/validators/waterfall/insidetextfont/_sizesrc.py index fd5346b381..0a3d7ffa32 100644 --- a/plotly/validators/waterfall/insidetextfont/_sizesrc.py +++ b/plotly/validators/waterfall/insidetextfont/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/insidetextfont/_style.py b/plotly/validators/waterfall/insidetextfont/_style.py index d62b252d69..02da4d1b1a 100644 --- a/plotly/validators/waterfall/insidetextfont/_style.py +++ b/plotly/validators/waterfall/insidetextfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/waterfall/insidetextfont/_stylesrc.py b/plotly/validators/waterfall/insidetextfont/_stylesrc.py index 4c4ae71321..fdf00f7b26 100644 --- a/plotly/validators/waterfall/insidetextfont/_stylesrc.py +++ b/plotly/validators/waterfall/insidetextfont/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/insidetextfont/_textcase.py b/plotly/validators/waterfall/insidetextfont/_textcase.py index 3145e1e66b..1d7e7b7ac2 100644 --- a/plotly/validators/waterfall/insidetextfont/_textcase.py +++ b/plotly/validators/waterfall/insidetextfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/waterfall/insidetextfont/_textcasesrc.py b/plotly/validators/waterfall/insidetextfont/_textcasesrc.py index 4a14f61a47..13494d4b7c 100644 --- a/plotly/validators/waterfall/insidetextfont/_textcasesrc.py +++ b/plotly/validators/waterfall/insidetextfont/_textcasesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/insidetextfont/_variant.py b/plotly/validators/waterfall/insidetextfont/_variant.py index 87fab5a63c..897c4e5d56 100644 --- a/plotly/validators/waterfall/insidetextfont/_variant.py +++ b/plotly/validators/waterfall/insidetextfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( diff --git a/plotly/validators/waterfall/insidetextfont/_variantsrc.py b/plotly/validators/waterfall/insidetextfont/_variantsrc.py index a32c1f1e0a..14500dce2d 100644 --- a/plotly/validators/waterfall/insidetextfont/_variantsrc.py +++ b/plotly/validators/waterfall/insidetextfont/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/insidetextfont/_weight.py b/plotly/validators/waterfall/insidetextfont/_weight.py index fdc5991699..352b03858f 100644 --- a/plotly/validators/waterfall/insidetextfont/_weight.py +++ b/plotly/validators/waterfall/insidetextfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/waterfall/insidetextfont/_weightsrc.py b/plotly/validators/waterfall/insidetextfont/_weightsrc.py index 5e7839d603..a705cb55a2 100644 --- a/plotly/validators/waterfall/insidetextfont/_weightsrc.py +++ b/plotly/validators/waterfall/insidetextfont/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/legendgrouptitle/__init__.py b/plotly/validators/waterfall/legendgrouptitle/__init__.py index ad27d3ad3e..64dac54dfa 100644 --- a/plotly/validators/waterfall/legendgrouptitle/__init__.py +++ b/plotly/validators/waterfall/legendgrouptitle/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._text.TextValidator", "._font.FontValidator"] +) diff --git a/plotly/validators/waterfall/legendgrouptitle/_font.py b/plotly/validators/waterfall/legendgrouptitle/_font.py index 0f1b1962f1..f61c6cf7e5 100644 --- a/plotly/validators/waterfall/legendgrouptitle/_font.py +++ b/plotly/validators/waterfall/legendgrouptitle/_font.py @@ -1,60 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FontValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_name, + parent_name, data_class_str=kwargs.pop("data_class_str", "Font"), data_docs=kwargs.pop( "data_docs", """ - color - - family - HTML font family - the typeface that will be - applied by the web browser. The web browser - will only be able to apply a font if it is - available on the system which it operates. - Provide multiple font families, separated by - commas, to indicate the preference in which to - apply fonts if they aren't available on the - system. The Chart Studio Cloud (at - https://chart-studio.plotly.com or on-premise) - generates images on a server, where only a - select number of fonts are installed and - supported. These include "Arial", "Balto", - "Courier New", "Droid Sans", "Droid Serif", - "Droid Sans Mono", "Gravitas One", "Old - Standard TT", "Open Sans", "Overpass", "PT Sans - Narrow", "Raleway", "Times New Roman". - lineposition - Sets the kind of decoration line(s) with text, - such as an "under", "over" or "through" as well - as combinations e.g. "under+over", etc. - shadow - Sets the shape and color of the shadow behind - text. "auto" places minimal shadow and applies - contrast text font color. See - https://developer.mozilla.org/en- - US/docs/Web/CSS/text-shadow for additional - options. - size - - style - Sets whether a font should be styled with a - normal or italic face from its family. - textcase - Sets capitalization of text. It can be used to - make text appear in all-uppercase 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, diff --git a/plotly/validators/waterfall/legendgrouptitle/_text.py b/plotly/validators/waterfall/legendgrouptitle/_text.py index 863602d3f2..d4f77cecde 100644 --- a/plotly/validators/waterfall/legendgrouptitle/_text.py +++ b/plotly/validators/waterfall/legendgrouptitle/_text.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/waterfall/legendgrouptitle/font/__init__.py b/plotly/validators/waterfall/legendgrouptitle/font/__init__.py index 983f9a04e5..b29a76f800 100644 --- a/plotly/validators/waterfall/legendgrouptitle/font/__init__.py +++ b/plotly/validators/waterfall/legendgrouptitle/font/__init__.py @@ -1,31 +1,18 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weight import WeightValidator - from ._variant import VariantValidator - from ._textcase import TextcaseValidator - from ._style import StyleValidator - from ._size import SizeValidator - from ._shadow import ShadowValidator - from ._lineposition import LinepositionValidator - from ._family import FamilyValidator - 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", - ], - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, + [], + [ + "._weight.WeightValidator", + "._variant.VariantValidator", + "._textcase.TextcaseValidator", + "._style.StyleValidator", + "._size.SizeValidator", + "._shadow.ShadowValidator", + "._lineposition.LinepositionValidator", + "._family.FamilyValidator", + "._color.ColorValidator", + ], +) diff --git a/plotly/validators/waterfall/legendgrouptitle/font/_color.py b/plotly/validators/waterfall/legendgrouptitle/font/_color.py index 8e487f6b89..c508d32990 100644 --- a/plotly/validators/waterfall/legendgrouptitle/font/_color.py +++ b/plotly/validators/waterfall/legendgrouptitle/font/_color.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/waterfall/legendgrouptitle/font/_family.py b/plotly/validators/waterfall/legendgrouptitle/font/_family.py index 1cf4b4be33..4d4103e7f2 100644 --- a/plotly/validators/waterfall/legendgrouptitle/font/_family.py +++ b/plotly/validators/waterfall/legendgrouptitle/font/_family.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/waterfall/legendgrouptitle/font/_lineposition.py b/plotly/validators/waterfall/legendgrouptitle/font/_lineposition.py index 0cd12504ed..ec53086c84 100644 --- a/plotly/validators/waterfall/legendgrouptitle/font/_lineposition.py +++ b/plotly/validators/waterfall/legendgrouptitle/font/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["none"]), flags=kwargs.pop("flags", ["under", "over", "through"]), diff --git a/plotly/validators/waterfall/legendgrouptitle/font/_shadow.py b/plotly/validators/waterfall/legendgrouptitle/font/_shadow.py index c1cc10caa0..e55a76eb73 100644 --- a/plotly/validators/waterfall/legendgrouptitle/font/_shadow.py +++ b/plotly/validators/waterfall/legendgrouptitle/font/_shadow.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), **kwargs, ) diff --git a/plotly/validators/waterfall/legendgrouptitle/font/_size.py b/plotly/validators/waterfall/legendgrouptitle/font/_size.py index 89e6ac69d2..46cc171caf 100644 --- a/plotly/validators/waterfall/legendgrouptitle/font/_size.py +++ b/plotly/validators/waterfall/legendgrouptitle/font/_size.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 1), **kwargs, diff --git a/plotly/validators/waterfall/legendgrouptitle/font/_style.py b/plotly/validators/waterfall/legendgrouptitle/font/_style.py index 13d4c757cc..ae230429b3 100644 --- a/plotly/validators/waterfall/legendgrouptitle/font/_style.py +++ b/plotly/validators/waterfall/legendgrouptitle/font/_style.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "italic"]), **kwargs, diff --git a/plotly/validators/waterfall/legendgrouptitle/font/_textcase.py b/plotly/validators/waterfall/legendgrouptitle/font/_textcase.py index de12cc6a7e..0404e6caad 100644 --- a/plotly/validators/waterfall/legendgrouptitle/font/_textcase.py +++ b/plotly/validators/waterfall/legendgrouptitle/font/_textcase.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop("values", ["normal", "word caps", "upper", "lower"]), **kwargs, diff --git a/plotly/validators/waterfall/legendgrouptitle/font/_variant.py b/plotly/validators/waterfall/legendgrouptitle/font/_variant.py index c5f64fcabc..d281cd47cf 100644 --- a/plotly/validators/waterfall/legendgrouptitle/font/_variant.py +++ b/plotly/validators/waterfall/legendgrouptitle/font/_variant.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), values=kwargs.pop( "values", diff --git a/plotly/validators/waterfall/legendgrouptitle/font/_weight.py b/plotly/validators/waterfall/legendgrouptitle/font/_weight.py index e6ccea00bf..c7cfa124a7 100644 --- a/plotly/validators/waterfall/legendgrouptitle/font/_weight.py +++ b/plotly/validators/waterfall/legendgrouptitle/font/_weight.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "style"), extras=kwargs.pop("extras", ["normal", "bold"]), max=kwargs.pop("max", 1000), diff --git a/plotly/validators/waterfall/outsidetextfont/__init__.py b/plotly/validators/waterfall/outsidetextfont/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/waterfall/outsidetextfont/__init__.py +++ b/plotly/validators/waterfall/outsidetextfont/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/waterfall/outsidetextfont/_color.py b/plotly/validators/waterfall/outsidetextfont/_color.py index 16735b2e8c..00e500b05c 100644 --- a/plotly/validators/waterfall/outsidetextfont/_color.py +++ b/plotly/validators/waterfall/outsidetextfont/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/waterfall/outsidetextfont/_colorsrc.py b/plotly/validators/waterfall/outsidetextfont/_colorsrc.py index 33c48a7e17..7dc299994f 100644 --- a/plotly/validators/waterfall/outsidetextfont/_colorsrc.py +++ b/plotly/validators/waterfall/outsidetextfont/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/outsidetextfont/_family.py b/plotly/validators/waterfall/outsidetextfont/_family.py index 9ca06821d8..31ddc6e626 100644 --- a/plotly/validators/waterfall/outsidetextfont/_family.py +++ b/plotly/validators/waterfall/outsidetextfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/waterfall/outsidetextfont/_familysrc.py b/plotly/validators/waterfall/outsidetextfont/_familysrc.py index c69a1c59cf..09c59e241b 100644 --- a/plotly/validators/waterfall/outsidetextfont/_familysrc.py +++ b/plotly/validators/waterfall/outsidetextfont/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/outsidetextfont/_lineposition.py b/plotly/validators/waterfall/outsidetextfont/_lineposition.py index b71df54763..c75efbd0c7 100644 --- a/plotly/validators/waterfall/outsidetextfont/_lineposition.py +++ b/plotly/validators/waterfall/outsidetextfont/_lineposition.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/waterfall/outsidetextfont/_linepositionsrc.py b/plotly/validators/waterfall/outsidetextfont/_linepositionsrc.py index c46bdf413f..2919f0ea59 100644 --- a/plotly/validators/waterfall/outsidetextfont/_linepositionsrc.py +++ b/plotly/validators/waterfall/outsidetextfont/_linepositionsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/outsidetextfont/_shadow.py b/plotly/validators/waterfall/outsidetextfont/_shadow.py index 3889171585..ea44525d6f 100644 --- a/plotly/validators/waterfall/outsidetextfont/_shadow.py +++ b/plotly/validators/waterfall/outsidetextfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/waterfall/outsidetextfont/_shadowsrc.py b/plotly/validators/waterfall/outsidetextfont/_shadowsrc.py index fde636f70c..837cd6bb7e 100644 --- a/plotly/validators/waterfall/outsidetextfont/_shadowsrc.py +++ b/plotly/validators/waterfall/outsidetextfont/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/outsidetextfont/_size.py b/plotly/validators/waterfall/outsidetextfont/_size.py index 8472a23f4c..1a8309842e 100644 --- a/plotly/validators/waterfall/outsidetextfont/_size.py +++ b/plotly/validators/waterfall/outsidetextfont/_size.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/waterfall/outsidetextfont/_sizesrc.py b/plotly/validators/waterfall/outsidetextfont/_sizesrc.py index fda25a09ab..a8b95ab6a5 100644 --- a/plotly/validators/waterfall/outsidetextfont/_sizesrc.py +++ b/plotly/validators/waterfall/outsidetextfont/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/outsidetextfont/_style.py b/plotly/validators/waterfall/outsidetextfont/_style.py index 69e9486086..941e889f9b 100644 --- a/plotly/validators/waterfall/outsidetextfont/_style.py +++ b/plotly/validators/waterfall/outsidetextfont/_style.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/waterfall/outsidetextfont/_stylesrc.py b/plotly/validators/waterfall/outsidetextfont/_stylesrc.py index fb2d4e66d2..6ab467ca14 100644 --- a/plotly/validators/waterfall/outsidetextfont/_stylesrc.py +++ b/plotly/validators/waterfall/outsidetextfont/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/outsidetextfont/_textcase.py b/plotly/validators/waterfall/outsidetextfont/_textcase.py index 55eb23a9c6..fe5dbfe22f 100644 --- a/plotly/validators/waterfall/outsidetextfont/_textcase.py +++ b/plotly/validators/waterfall/outsidetextfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/waterfall/outsidetextfont/_textcasesrc.py b/plotly/validators/waterfall/outsidetextfont/_textcasesrc.py index 85352b281b..149acdc1f2 100644 --- a/plotly/validators/waterfall/outsidetextfont/_textcasesrc.py +++ b/plotly/validators/waterfall/outsidetextfont/_textcasesrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/outsidetextfont/_variant.py b/plotly/validators/waterfall/outsidetextfont/_variant.py index 71ff45da1c..995ff5559c 100644 --- a/plotly/validators/waterfall/outsidetextfont/_variant.py +++ b/plotly/validators/waterfall/outsidetextfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( diff --git a/plotly/validators/waterfall/outsidetextfont/_variantsrc.py b/plotly/validators/waterfall/outsidetextfont/_variantsrc.py index 89bc65545b..1b33c9b2d2 100644 --- a/plotly/validators/waterfall/outsidetextfont/_variantsrc.py +++ b/plotly/validators/waterfall/outsidetextfont/_variantsrc.py @@ -1,16 +1,19 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/outsidetextfont/_weight.py b/plotly/validators/waterfall/outsidetextfont/_weight.py index 0f705a8a3d..2e1d202e79 100644 --- a/plotly/validators/waterfall/outsidetextfont/_weight.py +++ b/plotly/validators/waterfall/outsidetextfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/waterfall/outsidetextfont/_weightsrc.py b/plotly/validators/waterfall/outsidetextfont/_weightsrc.py index fd91b8ccfa..049c1b1463 100644 --- a/plotly/validators/waterfall/outsidetextfont/_weightsrc.py +++ b/plotly/validators/waterfall/outsidetextfont/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/stream/__init__.py b/plotly/validators/waterfall/stream/__init__.py index a6c0eed763..4738282312 100644 --- a/plotly/validators/waterfall/stream/__init__.py +++ b/plotly/validators/waterfall/stream/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._token.TokenValidator", "._maxpoints.MaxpointsValidator"] +) diff --git a/plotly/validators/waterfall/stream/_maxpoints.py b/plotly/validators/waterfall/stream/_maxpoints.py index da0888d8d6..ac6255e627 100644 --- a/plotly/validators/waterfall/stream/_maxpoints.py +++ b/plotly/validators/waterfall/stream/_maxpoints.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MaxpointsValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), max=kwargs.pop("max", 10000), min=kwargs.pop("min", 0), diff --git a/plotly/validators/waterfall/stream/_token.py b/plotly/validators/waterfall/stream/_token.py index 6fddd9c5c0..54d03da945 100644 --- a/plotly/validators/waterfall/stream/_token.py +++ b/plotly/validators/waterfall/stream/_token.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TokenValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), strict=kwargs.pop("strict", True), diff --git a/plotly/validators/waterfall/textfont/__init__.py b/plotly/validators/waterfall/textfont/__init__.py index 487c2f8676..3dc491e089 100644 --- a/plotly/validators/waterfall/textfont/__init__.py +++ b/plotly/validators/waterfall/textfont/__init__.py @@ -1,49 +1,27 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -if sys.version_info < (3, 7) or TYPE_CHECKING: - from ._weightsrc import WeightsrcValidator - from ._weight import WeightValidator - from ._variantsrc import VariantsrcValidator - from ._variant import VariantValidator - from ._textcasesrc import TextcasesrcValidator - from ._textcase import TextcaseValidator - from ._stylesrc import StylesrcValidator - from ._style import StyleValidator - from ._sizesrc import SizesrcValidator - from ._size import SizeValidator - from ._shadowsrc import ShadowsrcValidator - from ._shadow import ShadowValidator - from ._linepositionsrc import LinepositionsrcValidator - from ._lineposition import LinepositionValidator - from ._familysrc import FamilysrcValidator - from ._family import FamilyValidator - from ._colorsrc import ColorsrcValidator - 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", - ], - ) +__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", + ], +) diff --git a/plotly/validators/waterfall/textfont/_color.py b/plotly/validators/waterfall/textfont/_color.py index ea63d87ad8..6f4b94f62d 100644 --- a/plotly/validators/waterfall/textfont/_color.py +++ b/plotly/validators/waterfall/textfont/_color.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/waterfall/textfont/_colorsrc.py b/plotly/validators/waterfall/textfont/_colorsrc.py index e39858e618..cc5def1389 100644 --- a/plotly/validators/waterfall/textfont/_colorsrc.py +++ b/plotly/validators/waterfall/textfont/_colorsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/textfont/_family.py b/plotly/validators/waterfall/textfont/_family.py index 82668c5414..ab2a786499 100644 --- a/plotly/validators/waterfall/textfont/_family.py +++ b/plotly/validators/waterfall/textfont/_family.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilyValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), no_blank=kwargs.pop("no_blank", True), diff --git a/plotly/validators/waterfall/textfont/_familysrc.py b/plotly/validators/waterfall/textfont/_familysrc.py index f1036a6cb1..f0b9060a1e 100644 --- a/plotly/validators/waterfall/textfont/_familysrc.py +++ b/plotly/validators/waterfall/textfont/_familysrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class FamilysrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/textfont/_lineposition.py b/plotly/validators/waterfall/textfont/_lineposition.py index 84ef833959..e891d08a79 100644 --- a/plotly/validators/waterfall/textfont/_lineposition.py +++ b/plotly/validators/waterfall/textfont/_lineposition.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionValidator(_plotly_utils.basevalidators.FlaglistValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["none"]), diff --git a/plotly/validators/waterfall/textfont/_linepositionsrc.py b/plotly/validators/waterfall/textfont/_linepositionsrc.py index 1db65d5fed..00555872cb 100644 --- a/plotly/validators/waterfall/textfont/_linepositionsrc.py +++ b/plotly/validators/waterfall/textfont/_linepositionsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LinepositionsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/textfont/_shadow.py b/plotly/validators/waterfall/textfont/_shadow.py index 974c21c806..27b6cd5ac6 100644 --- a/plotly/validators/waterfall/textfont/_shadow.py +++ b/plotly/validators/waterfall/textfont/_shadow.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowValidator(_plotly_utils.basevalidators.StringValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), **kwargs, diff --git a/plotly/validators/waterfall/textfont/_shadowsrc.py b/plotly/validators/waterfall/textfont/_shadowsrc.py index dfaac9cd68..a70cd74cb2 100644 --- a/plotly/validators/waterfall/textfont/_shadowsrc.py +++ b/plotly/validators/waterfall/textfont/_shadowsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ShadowsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/textfont/_size.py b/plotly/validators/waterfall/textfont/_size.py index fa4793c0f1..d902145ffe 100644 --- a/plotly/validators/waterfall/textfont/_size.py +++ b/plotly/validators/waterfall/textfont/_size.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizeValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), min=kwargs.pop("min", 1), diff --git a/plotly/validators/waterfall/textfont/_sizesrc.py b/plotly/validators/waterfall/textfont/_sizesrc.py index b4b3a1236d..ce04f5443c 100644 --- a/plotly/validators/waterfall/textfont/_sizesrc.py +++ b/plotly/validators/waterfall/textfont/_sizesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class SizesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/textfont/_style.py b/plotly/validators/waterfall/textfont/_style.py index 0cf374d85b..1398872f39 100644 --- a/plotly/validators/waterfall/textfont/_style.py +++ b/plotly/validators/waterfall/textfont/_style.py @@ -1,11 +1,14 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StyleValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop("values", ["normal", "italic"]), diff --git a/plotly/validators/waterfall/textfont/_stylesrc.py b/plotly/validators/waterfall/textfont/_stylesrc.py index e7fe4f4eac..e67f6a0edf 100644 --- a/plotly/validators/waterfall/textfont/_stylesrc.py +++ b/plotly/validators/waterfall/textfont/_stylesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class StylesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/textfont/_textcase.py b/plotly/validators/waterfall/textfont/_textcase.py index be197115b7..1de7000eef 100644 --- a/plotly/validators/waterfall/textfont/_textcase.py +++ b/plotly/validators/waterfall/textfont/_textcase.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcaseValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_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"]), diff --git a/plotly/validators/waterfall/textfont/_textcasesrc.py b/plotly/validators/waterfall/textfont/_textcasesrc.py index 0df600db6a..2afcc8a270 100644 --- a/plotly/validators/waterfall/textfont/_textcasesrc.py +++ b/plotly/validators/waterfall/textfont/_textcasesrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class TextcasesrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/textfont/_variant.py b/plotly/validators/waterfall/textfont/_variant.py index e4d7a25bbc..bffd366170 100644 --- a/plotly/validators/waterfall/textfont/_variant.py +++ b/plotly/validators/waterfall/textfont/_variant.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantValidator(_plotly_utils.basevalidators.EnumeratedValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), values=kwargs.pop( diff --git a/plotly/validators/waterfall/textfont/_variantsrc.py b/plotly/validators/waterfall/textfont/_variantsrc.py index c3996d4a04..97a403638a 100644 --- a/plotly/validators/waterfall/textfont/_variantsrc.py +++ b/plotly/validators/waterfall/textfont/_variantsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class VariantsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/textfont/_weight.py b/plotly/validators/waterfall/textfont/_weight.py index 4a1036176b..fb40ae3649 100644 --- a/plotly/validators/waterfall/textfont/_weight.py +++ b/plotly/validators/waterfall/textfont/_weight.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightValidator(_plotly_utils.basevalidators.IntegerValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", True), edit_type=kwargs.pop("edit_type", "calc"), extras=kwargs.pop("extras", ["normal", "bold"]), diff --git a/plotly/validators/waterfall/textfont/_weightsrc.py b/plotly/validators/waterfall/textfont/_weightsrc.py index fcfc703880..38503e9283 100644 --- a/plotly/validators/waterfall/textfont/_weightsrc.py +++ b/plotly/validators/waterfall/textfont/_weightsrc.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WeightsrcValidator(_plotly_utils.basevalidators.SrcValidator): + +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, + super().__init__( + plotly_name, + parent_name, edit_type=kwargs.pop("edit_type", "none"), **kwargs, ) diff --git a/plotly/validators/waterfall/totals/__init__.py b/plotly/validators/waterfall/totals/__init__.py index e9bdb89f26..20900abc1a 100644 --- a/plotly/validators/waterfall/totals/__init__.py +++ b/plotly/validators/waterfall/totals/__init__.py @@ -1,11 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._marker.MarkerValidator"] +) diff --git a/plotly/validators/waterfall/totals/_marker.py b/plotly/validators/waterfall/totals/_marker.py index 23297a12c0..bf65ff02e5 100644 --- a/plotly/validators/waterfall/totals/_marker.py +++ b/plotly/validators/waterfall/totals/_marker.py @@ -1,22 +1,18 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class MarkerValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/waterfall/totals/marker/__init__.py b/plotly/validators/waterfall/totals/marker/__init__.py index 9819cbc359..1a3eaa8b6b 100644 --- a/plotly/validators/waterfall/totals/marker/__init__.py +++ b/plotly/validators/waterfall/totals/marker/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._line.LineValidator", "._color.ColorValidator"] +) diff --git a/plotly/validators/waterfall/totals/marker/_color.py b/plotly/validators/waterfall/totals/marker/_color.py index efe4635fc6..053d377c14 100644 --- a/plotly/validators/waterfall/totals/marker/_color.py +++ b/plotly/validators/waterfall/totals/marker/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/waterfall/totals/marker/_line.py b/plotly/validators/waterfall/totals/marker/_line.py index c6f80e2623..0cb613b9e0 100644 --- a/plotly/validators/waterfall/totals/marker/_line.py +++ b/plotly/validators/waterfall/totals/marker/_line.py @@ -1,23 +1,20 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class LineValidator(_plotly_utils.basevalidators.CompoundValidator): + +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, + super().__init__( + plotly_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, diff --git a/plotly/validators/waterfall/totals/marker/line/__init__.py b/plotly/validators/waterfall/totals/marker/line/__init__.py index 63a516578b..d49328faac 100644 --- a/plotly/validators/waterfall/totals/marker/line/__init__.py +++ b/plotly/validators/waterfall/totals/marker/line/__init__.py @@ -1,12 +1,6 @@ import sys -from typing import TYPE_CHECKING +from _plotly_utils.importers import relative_import -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"] - ) +__all__, __getattr__, __dir__ = relative_import( + __name__, [], ["._width.WidthValidator", "._color.ColorValidator"] +) diff --git a/plotly/validators/waterfall/totals/marker/line/_color.py b/plotly/validators/waterfall/totals/marker/line/_color.py index 7257783934..d43006c27b 100644 --- a/plotly/validators/waterfall/totals/marker/line/_color.py +++ b/plotly/validators/waterfall/totals/marker/line/_color.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class ColorValidator(_plotly_utils.basevalidators.ColorValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "style"), **kwargs, diff --git a/plotly/validators/waterfall/totals/marker/line/_width.py b/plotly/validators/waterfall/totals/marker/line/_width.py index 59f0d19205..495aec9db9 100644 --- a/plotly/validators/waterfall/totals/marker/line/_width.py +++ b/plotly/validators/waterfall/totals/marker/line/_width.py @@ -1,13 +1,16 @@ -import _plotly_utils.basevalidators +# --- THIS FILE IS AUTO-GENERATED --- +# Modifications will be overwitten the next time code generation run. +import _plotly_utils.basevalidators as _bv -class WidthValidator(_plotly_utils.basevalidators.NumberValidator): + +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, + super().__init__( + plotly_name, + parent_name, array_ok=kwargs.pop("array_ok", False), edit_type=kwargs.pop("edit_type", "style"), min=kwargs.pop("min", 0), diff --git a/pyproject.toml b/pyproject.toml index 7cc8b33a51..c64960354d 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,6 +46,9 @@ dependencies = [ [project.optional-dependencies] express = ["numpy"] +dev = [ + "black==25.1.0" +] [tool.setuptools.packages.find] where = ["."] @@ -61,7 +64,7 @@ plotly = [ [tool.black] line-length = 88 -target_version = ['py36', 'py37', 'py38', 'py39'] +target_version = ['py38', 'py39', 'py310', 'py311', 'py312'] include = '\.pyi?$' exclude = ''' diff --git a/tests/test_core/test_graph_objs/test_annotations.py b/tests/test_core/test_graph_objs/test_annotations.py index d4b1f6ccc5..f6f0cac798 100644 --- a/tests/test_core/test_graph_objs/test_annotations.py +++ b/tests/test_core/test_graph_objs/test_annotations.py @@ -5,6 +5,7 @@ A module intended for use with Nose. """ + from unittest import skip from plotly.exceptions import ( diff --git a/tests/test_core/test_graph_objs/test_data.py b/tests/test_core/test_graph_objs/test_data.py index 7b0f643835..b2e3ba4270 100644 --- a/tests/test_core/test_graph_objs/test_data.py +++ b/tests/test_core/test_graph_objs/test_data.py @@ -5,6 +5,7 @@ A module intended for use with Nose. """ + from unittest import skip diff --git a/tests/test_core/test_graph_objs/test_error_bars.py b/tests/test_core/test_graph_objs/test_error_bars.py index 83d6ad7af9..f29b8155be 100644 --- a/tests/test_core/test_graph_objs/test_error_bars.py +++ b/tests/test_core/test_graph_objs/test_error_bars.py @@ -5,6 +5,7 @@ A module intended for use with Nose. """ + from plotly.graph_objs import ErrorX, ErrorY from plotly.exceptions import PlotlyDictKeyError diff --git a/tests/test_core/test_graph_objs/test_scatter.py b/tests/test_core/test_graph_objs/test_scatter.py index 81bca41da4..12ab7eb4af 100644 --- a/tests/test_core/test_graph_objs/test_scatter.py +++ b/tests/test_core/test_graph_objs/test_scatter.py @@ -5,6 +5,7 @@ A module intended for use with Nose. """ + from plotly.graph_objs import Scatter from plotly.exceptions import PlotlyError diff --git a/tests/test_core/test_graph_objs/test_template.py b/tests/test_core/test_graph_objs/test_template.py index 7b03beea49..6ffa416ea0 100644 --- a/tests/test_core/test_graph_objs/test_template.py +++ b/tests/test_core/test_graph_objs/test_template.py @@ -416,7 +416,7 @@ def setUp(self): go.Bar(marker={"opacity": 0.7}), go.Bar(marker={"opacity": 0.4}), ], - "parcoords": [go.Parcoords(dimensiondefaults={"multiselect": True})] + "parcoords": [go.Parcoords(dimensiondefaults={"multiselect": True})], # no 'scattergl' }, ) diff --git a/tests/test_core/test_offline/test_offline.py b/tests/test_core/test_offline/test_offline.py index 37076f501a..d0a9c80e1c 100644 --- a/tests/test_core/test_offline/test_offline.py +++ b/tests/test_core/test_offline/test_offline.py @@ -2,6 +2,7 @@ test__offline """ + import json import os from unittest import TestCase diff --git a/tests/test_io/test_html.py b/tests/test_io/test_html.py index a056fd8f87..67f161af68 100644 --- a/tests/test_io/test_html.py +++ b/tests/test_io/test_html.py @@ -16,6 +16,7 @@ import mock from mock import MagicMock + # fixtures # -------- @pytest.fixture diff --git a/tests/test_optional/test_offline/test_offline.py b/tests/test_optional/test_offline/test_offline.py index ac09966563..88898e2c02 100644 --- a/tests/test_optional/test_offline/test_offline.py +++ b/tests/test_optional/test_offline/test_offline.py @@ -2,6 +2,7 @@ test__offline """ + import re from unittest import TestCase diff --git a/tests/test_optional/test_utils/test_utils.py b/tests/test_optional/test_utils/test_utils.py index 34a708dfe5..0a998a382b 100644 --- a/tests/test_optional/test_utils/test_utils.py +++ b/tests/test_optional/test_utils/test_utils.py @@ -2,6 +2,7 @@ Module to test plotly.utils with optional dependencies. """ + import datetime import math import decimal diff --git a/tests/test_plotly_utils/validators/test_boolean_validator.py b/tests/test_plotly_utils/validators/test_boolean_validator.py index ee739f0497..865f72e684 100644 --- a/tests/test_plotly_utils/validators/test_boolean_validator.py +++ b/tests/test_plotly_utils/validators/test_boolean_validator.py @@ -2,6 +2,7 @@ from _plotly_utils.basevalidators import BooleanValidator from ...test_optional.test_utils.test_utils import np_nan + # Boolean Validator # ================= # ### Fixtures ### diff --git a/tests/test_plotly_utils/validators/test_colorscale_validator.py b/tests/test_plotly_utils/validators/test_colorscale_validator.py index a40af5a184..1e1d6853c8 100644 --- a/tests/test_plotly_utils/validators/test_colorscale_validator.py +++ b/tests/test_plotly_utils/validators/test_colorscale_validator.py @@ -5,6 +5,7 @@ import inspect import itertools + # Fixtures # -------- @pytest.fixture() diff --git a/tests/test_plotly_utils/validators/test_dataarray_validator.py b/tests/test_plotly_utils/validators/test_dataarray_validator.py index fb85863a11..d3a3b42245 100644 --- a/tests/test_plotly_utils/validators/test_dataarray_validator.py +++ b/tests/test_plotly_utils/validators/test_dataarray_validator.py @@ -3,6 +3,7 @@ import numpy as np import pandas as pd + # Fixtures # -------- @pytest.fixture() diff --git a/tests/test_plotly_utils/validators/test_enumerated_validator.py b/tests/test_plotly_utils/validators/test_enumerated_validator.py index 6aa5fa9901..d86cabf63b 100644 --- a/tests/test_plotly_utils/validators/test_enumerated_validator.py +++ b/tests/test_plotly_utils/validators/test_enumerated_validator.py @@ -4,6 +4,7 @@ from _plotly_utils.basevalidators import EnumeratedValidator from ...test_optional.test_utils.test_utils import np_inf + # Fixtures # -------- @pytest.fixture() diff --git a/tests/test_plotly_utils/validators/test_flaglist_validator.py b/tests/test_plotly_utils/validators/test_flaglist_validator.py index 4ce30022da..8b9ce2f859 100644 --- a/tests/test_plotly_utils/validators/test_flaglist_validator.py +++ b/tests/test_plotly_utils/validators/test_flaglist_validator.py @@ -7,6 +7,7 @@ EXTRAS = ["none", "all", True, False, 3] FLAGS = ["lines", "markers", "text"] + # Fixtures # -------- @pytest.fixture(params=[None, EXTRAS]) diff --git a/tests/test_plotly_utils/validators/test_integer_validator.py b/tests/test_plotly_utils/validators/test_integer_validator.py index 64d27c0d23..75337c018b 100644 --- a/tests/test_plotly_utils/validators/test_integer_validator.py +++ b/tests/test_plotly_utils/validators/test_integer_validator.py @@ -7,6 +7,7 @@ import pandas as pd from ...test_optional.test_utils.test_utils import np_nan, np_inf + # ### Fixtures ### @pytest.fixture() def validator(): diff --git a/tests/test_plotly_utils/validators/test_number_validator.py b/tests/test_plotly_utils/validators/test_number_validator.py index bb81f630bf..d7f058db6a 100644 --- a/tests/test_plotly_utils/validators/test_number_validator.py +++ b/tests/test_plotly_utils/validators/test_number_validator.py @@ -6,6 +6,7 @@ import pandas as pd from ...test_optional.test_utils.test_utils import np_nan, np_inf + # Fixtures # -------- @pytest.fixture diff --git a/tests/test_plotly_utils/validators/test_string_validator.py b/tests/test_plotly_utils/validators/test_string_validator.py index 01c336df46..1ab9016fa0 100644 --- a/tests/test_plotly_utils/validators/test_string_validator.py +++ b/tests/test_plotly_utils/validators/test_string_validator.py @@ -54,7 +54,7 @@ def validator_no_blanks_aok(): # Not strict # ### Acceptance ### @pytest.mark.parametrize( - "val", ["bar", 234, np_nan(), "HELLO!!!", "world!@#$%^&*()", "", "\u03BC"] + "val", ["bar", 234, np_nan(), "HELLO!!!", "world!@#$%^&*()", "", "\u03bc"] ) def test_acceptance(val, validator): expected = str(val) if not isinstance(val, str) else val @@ -87,7 +87,7 @@ def test_rejection_values(val, validator_values): # ### No blanks ### -@pytest.mark.parametrize("val", ["bar", "HELLO!!!", "world!@#$%^&*()", "\u03BC"]) +@pytest.mark.parametrize("val", ["bar", "HELLO!!!", "world!@#$%^&*()", "\u03bc"]) def test_acceptance_no_blanks(val, validator_no_blanks): assert validator_no_blanks.validate_coerce(val) == val @@ -103,7 +103,7 @@ def test_rejection_no_blanks(val, validator_no_blanks): # Strict # ------ # ### Acceptance ### -@pytest.mark.parametrize("val", ["bar", "HELLO!!!", "world!@#$%^&*()", "", "\u03BC"]) +@pytest.mark.parametrize("val", ["bar", "HELLO!!!", "world!@#$%^&*()", "", "\u03bc"]) def test_acceptance_strict(val, validator_strict): assert validator_strict.validate_coerce(val) == val @@ -120,7 +120,7 @@ def test_rejection_strict(val, validator_strict): # Array ok # -------- # ### Acceptance ### -@pytest.mark.parametrize("val", ["foo", "BAR", "", "baz", "\u03BC"]) +@pytest.mark.parametrize("val", ["foo", "BAR", "", "baz", "\u03bc"]) def test_acceptance_aok_scalars(val, validator_aok): assert validator_aok.validate_coerce(val) == val @@ -130,9 +130,9 @@ def test_acceptance_aok_scalars(val, validator_aok): [ "foo", ["foo"], - np.array(["BAR", "", "\u03BC"], dtype="object"), + np.array(["BAR", "", "\u03bc"], dtype="object"), ["baz", "baz", "baz"], - ["foo", None, "bar", "\u03BC"], + ["foo", None, "bar", "\u03bc"], ], ) def test_acceptance_aok_list(val, validator_aok): @@ -173,7 +173,7 @@ def test_rejection_aok_values(val, validator_aok_values): "123", ["bar", "HELLO!!!"], np.array(["bar", "HELLO!!!"], dtype="object"), - ["world!@#$%^&*()", "\u03BC"], + ["world!@#$%^&*()", "\u03bc"], ], ) def test_acceptance_no_blanks_aok(val, validator_no_blanks_aok):